/* MindAction website. Bootstrap 5 provides the reboot, grid helpers and utilities; this file carries the Storybook identity.
   Every colour is a semantic token; light and dark are both defined (prefers-color-scheme). No inline styles, no third-party hosts. */

@font-face {
  font-family: "Fredoka";
  src: url("/lib/fonts/fredoka-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka";
  src: url("/lib/fonts/fredoka-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  src: url("/lib/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url("/lib/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --paper: #fff9ef;
  --paper-2: #f6efe0;
  --surface: #fffefa;
  --ink: #253f3a;
  --ink-2: #4a5f5a;
  --primary: #326f68;
  --primary-hover: #285b55;
  --on-primary: #ffffff;
  --sage: #b5c9b6;
  --sage-wash: #e9f0e3;
  --line: #cdd8c9;
  --line-strong: #738780;
  --amber: #e7ad68;
  --amber-ink: #8a5a1c;
  --lavender: #695da0;
  --blue: #406d87;
  --green: #36765b;
  --forest: #25423d;
  --on-forest: #f3f8f4;
  --on-forest-2: #d3e3d8;
  --focus: #1f5f57;
  --phone: #1c2a28;
  --shadow: 0 22px 44px -20px rgb(37 63 58 / 0.45), 0 8px 16px -10px rgb(37 63 58 / 0.3);
  --soft-shadow: 0 10px 24px -14px rgb(37 63 58 / 0.35);
  --font-display: "Fredoka", "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #223735;
    --paper-2: #2b4240;
    --surface: #35524a;
    --ink: #edf4f1;
    --ink-2: #d3e3d8;
    --primary: #abdcc6;
    --primary-hover: #c6e9d9;
    --on-primary: #172b28;
    --sage: #4f7467;
    --sage-wash: #2b4240;
    --line: #4c6b62;
    --line-strong: #a7c5b6;
    --amber-ink: #f0c285;
    --lavender: #d2c8f1;
    --blue: #b3d9e5;
    --green: #b0d9c0;
    --forest: #172b28;
    --on-forest: #edf4f1;
    --on-forest-2: #d3e3d8;
    --focus: #abdcc6;
    --phone: #0f1a18;
    --shadow: 0 22px 44px -20px rgb(0 0 0 / 0.7), 0 8px 16px -10px rgb(0 0 0 / 0.5);
    --soft-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.6);
  }
}

/* ---- Base ------------------------------------------------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1.125rem;
  --bs-body-line-height: 1.65;
  --bs-link-color-rgb: 50, 111, 104;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.3rem + 4.2vw, 4.75rem); line-height: 1.02; font-weight: 650; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem); line-height: 1.08; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.4rem; }
p { text-wrap: pretty; }
a { color: var(--primary); text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--primary-hover); }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.text-link { font-weight: 700; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: 0.75rem 1.25rem; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Browser surfaces */
* { scrollbar-color: var(--line-strong) transparent; }
input, textarea { caret-color: var(--primary); }

/* ---- Buttons ----------------------------------------------------------------------------------------------------------- */
.btn-site {
  --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: 0.6rem; --bs-btn-border-radius: 999px; --bs-btn-border-width: 2px;
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-site--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: var(--soft-shadow); }
.btn-site--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); transform: translateY(-1px); }
.btn-site--primary:active { transform: translateY(0); }

/* ---- Header ------------------------------------------------------------------------------------------------------------ */
.site-header { position: relative; z-index: 6; background: var(--paper); }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { display: block; width: auto; height: 2.25rem; }
.site-nav { display: flex; gap: 0.25rem; order: 3; width: 100%; margin-inline: -0.5rem; }
.site-nav a, .lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 0.75rem;
  color: var(--ink); text-decoration: none; border-radius: 999px; font-weight: 700; font-size: 1.02rem;
  transition: background-color 0.2s var(--ease);
}
.site-nav a:hover, .lang a:hover { background: var(--sage-wash); color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.site-header__end { display: flex; align-items: center; gap: 0.5rem; }
.lang { display: flex; align-items: center; }
.lang a[aria-current="true"] { background: var(--sage-wash); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
@media (min-width: 992px) {
  .site-header__bar { flex-wrap: nowrap; gap: 1.5rem; padding-block: 1.1rem; }
  .brand { margin-right: 0; }
  .brand img { height: 2.5rem; }
  .site-nav { order: 0; width: auto; margin: 0 auto; gap: 0.5rem; }
}
@media (max-width: 575.98px) {
  .site-header__end .btn-site { display: none; }
  .site-header__end { margin-left: auto; }
  .brand { margin-right: 0; }
}

/* ---- Hero -------------------------------------------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: clip; background: var(--paper); }
.hero__scene { position: absolute; inset: auto 0 0; z-index: -1; display: block; pointer-events: none; }
.hero__scene img { display: block; width: 100%; height: auto; }
/* The plate's tree crown touches its top edge, so the top of every scene fades into the paper instead of ending in a hard line. */
.hero__scene img, .companions__scene img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 34%); mask-image: linear-gradient(to bottom, transparent 0, black 34%); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 0; }
.hero__copy { position: relative; z-index: 3; max-width: 50rem; }
.hero__copy::before {
  content: ""; position: absolute; z-index: -1; inset: -1.5rem -3rem -1rem -4rem;
  background: radial-gradient(closest-side, var(--paper) 55%, transparent);
}
.hero__lead { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem); line-height: 1.4; color: var(--ink-2); margin: 1.25rem 0 1.75rem; max-width: 26rem; }
.hero__note { margin: 0.75rem 0 0; color: var(--ink-2); font-size: 1rem; }
.hero__stage {
  --phone-w: clamp(230px, 62vw, 290px);
  position: relative; width: var(--phone-w); justify-self: center; margin-bottom: 4rem; margin-top: 1rem;
}
.hero__pip, .hero__olive { position: absolute; z-index: 2; height: auto; width: auto; pointer-events: none; filter: drop-shadow(0 8px 10px rgb(37 63 58 / 0.18)); }
.hero__pip { right: calc(100% - 0.35rem); bottom: 0.6rem; height: calc(var(--phone-w) * 1.02); }
.hero__olive { left: calc(100% + 0.15rem); bottom: 1.1rem; height: calc(var(--phone-w) * 0.62); }
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero__stage { --phone-w: 280px; }
}
@media (min-width: 992px) {
  .hero { min-height: 46rem; }
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: start; padding-top: 3rem; min-height: 46rem; }
  .hero__stage { --phone-w: clamp(250px, 21vw, 310px); align-self: end; justify-self: center; margin: 0 0 4.1rem; }
}
@media (max-width: 767.98px) {
  .hero__stage { --phone-w: clamp(200px, 54vw, 250px); }
  .hero__pip { right: calc(100% - 1.9rem); height: calc(var(--phone-w) * 0.62); }
  .hero__olive { left: calc(100% - 0.2rem); height: calc(var(--phone-w) * 0.48); }
  .hero__scene { height: 15rem; }
  .hero__scene img { height: 100%; object-fit: cover; object-position: 78% 100%; }
  .hero__stage { margin-bottom: 4rem; }
  .hero__copy::before { inset: -1rem -1.25rem -0.5rem; }
}

/* ---- Phone frame (real screenshots only) ----------------------------------------------------------------------------------- */
.phone {
  --phone-w: 280px;
  position: relative; width: var(--phone-w); padding: calc(var(--phone-w) * 0.032);
  background: var(--phone); border-radius: calc(var(--phone-w) * 0.165);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgb(255 255 255 / 0.14);
}
.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--phone-w) * 0.135); background: var(--paper); }
.hero__stage .phone { width: 100%; --phone-w: inherit; }

/* ---- Stores ------------------------------------------------------------------------------------------------------------ */
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; margin: 0; align-items: center; }
.stores li { display: flex; }
.store {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.6rem; padding: 0.55rem 1.25rem 0.55rem 1rem;
  border-radius: 1rem; border: 2px dashed var(--line-strong); color: var(--ink); background: color-mix(in srgb, var(--paper) 88%, transparent);
  cursor: default;
}
.store .icon { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.store__state { font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
.store-badge { display: inline-flex; border-radius: 0.6rem; }
.store-badge img { display: block; height: 3.4rem; width: auto; }
.stores__note { margin: 0.75rem 0 0; font-size: 1rem; color: var(--ink-2); max-width: 30rem; }
.stores--cta .store { border-color: var(--on-forest-2); color: var(--on-forest); background: transparent; }
.stores--cta .store .icon, .stores--cta .store__state { color: var(--on-forest-2); }
.stores--cta + .stores__note { color: var(--on-forest-2); }

/* ---- Plan. Act. Reflect. Learn. ------------------------------------------------------------------------------------------- */
.loop { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.loop__intro p { color: var(--ink-2); max-width: 34rem; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; position: relative; }
.path__step { position: relative; padding-left: 4.75rem; }
.path__step h3 { margin-bottom: 0.15rem; }
.path__step p { margin: 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.5; }
.path__icon {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--tint); color: var(--tone); box-shadow: 0 0 0 4px var(--paper);
}
.path__icon .icon { width: 1.65rem; height: 1.65rem; }
.path__step:not(:last-child)::after {
  content: ""; position: absolute; left: 1.75rem; top: 4.1rem; bottom: -1.2rem; border-left: 2px dashed var(--line-strong); opacity: 0.55;
}
.path__step--plan { --tone: var(--primary); --tint: color-mix(in srgb, var(--primary) 16%, var(--paper)); }
.path__step--act { --tone: var(--amber-ink); --tint: color-mix(in srgb, var(--amber) 32%, var(--paper)); }
.path__step--reflect { --tone: var(--green); --tint: color-mix(in srgb, var(--green) 18%, var(--paper)); }
.path__step--learn { --tone: var(--lavender); --tint: color-mix(in srgb, var(--lavender) 18%, var(--paper)); }
@media (min-width: 992px) {
  .loop { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .path { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; padding-top: 0.4rem; }
  .path__step { padding: 4.75rem 0 0; }
  .path__step:not(:last-child)::after { left: 4.1rem; right: -1.1rem; top: 1.75rem; bottom: auto; border-left: 0; border-top: 2px dashed var(--line-strong); }
  .path__step p { font-size: 1rem; }
}

/* ---- Showcase (htmx enhanced) -------------------------------------------------------------------------------------------- */
.showcase { background: var(--paper-2); padding-block: clamp(3.5rem, 7vw, 6rem); }
.showcase__head { max-width: 40rem; margin-bottom: 2rem; }
.showcase__head p { color: var(--ink-2); }
.showcase__body { display: grid; gap: 2rem; align-items: start; }
.mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.mod { border-radius: 1.25rem; border: 2px solid transparent; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease); }
.mod--teal { --tone: var(--primary); }
.mod--lavender { --tone: var(--lavender); }
.mod--blue { --tone: var(--blue); }
.mod__link {
  display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; padding: 0.7rem 1rem; text-decoration: none; color: var(--ink); border-radius: 1.1rem;
}
.mod__link:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); }
.mod__icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, var(--paper-2)); }
.mod__label { display: flex; flex-direction: column; line-height: 1.2; }
.mod__kind { font-size: 0.92rem; font-weight: 700; color: var(--ink-2); }
.mod__name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.mod.is-active { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--soft-shadow); }
.mod__link[aria-current="true"] .mod__name { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tone); text-underline-offset: 0.2em; }
.mod__detail { padding: 0 1.25rem 1.25rem 1.25rem; animation: rise 0.45s var(--ease) both; }
.mod__detail p { margin: 0.25rem 0 0.75rem; color: var(--ink); font-size: 1.05rem; line-height: 1.55; }
.mod__detail ul { margin: 0; padding-left: 1.2rem; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.mod__detail li + li { margin-top: 0.35rem; }
.mod__detail li::marker { color: var(--tone); }
.stage { display: grid; justify-items: center; gap: 0.75rem; }
.phone--stage { --phone-w: clamp(230px, 64vw, 300px); animation: settle 0.5s var(--ease) both; }
.stage__caption { margin: 0; font-size: 0.95rem; color: var(--ink-2); text-align: center; max-width: 18rem; }
.hero__caption { position: absolute; top: calc(100% + 1.35rem); left: 50%; transform: translateX(-50%); width: max-content; max-width: 18rem; margin: 0; text-align: center; font-size: 0.95rem; line-height: 1.35; color: var(--ink-2); background: color-mix(in srgb, var(--paper) 94%, transparent); padding: 0.2rem 0.8rem; border-radius: 999px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0.4; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (min-width: 992px) {
  .showcase__body { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; }
  .stage { position: sticky; top: 1.5rem; }
  .phone--stage { --phone-w: clamp(260px, 22vw, 320px); }
}

/* ---- Companions ---------------------------------------------------------------------------------------------------------- */
.companions { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(7rem, 14vw, 12rem); background: var(--paper); }
.companions__scene { position: absolute; inset: auto 0 0; z-index: -1; display: block; pointer-events: none; }
.companions__scene img { display: block; width: 100%; height: auto; }
.companions__grid { display: grid; gap: 2.5rem; }
.companions__copy p { color: var(--ink-2); max-width: 34rem; }
.companions__copy h3 { margin-top: 1.75rem; }
.cast { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.35rem; color: var(--ink); max-width: 34rem; }
.cast li { margin: 0; }
.cast strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.modes { margin: 0; display: grid; gap: 0; max-width: 32rem; }
.modes > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.modes > div:last-child { border-bottom: 1px solid var(--line); }
.modes dt { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.modes dd { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.5; }
.companions__stage { display: flex; justify-content: center; align-items: flex-end; gap: clamp(1rem, 4vw, 3rem); }
.buddy { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 15rem; position: relative; z-index: 1; }
.buddy img { display: block; width: auto; height: clamp(11rem, 26vw, 17rem); margin-bottom: -2.5rem; filter: drop-shadow(0 8px 10px rgb(37 63 58 / 0.18)); }
.buddy--olive img { height: clamp(10rem, 24vw, 15.5rem); }
.bubble {
  position: relative; margin: 0 0 1rem; padding: 0.8rem 1rem; background: var(--surface); color: var(--ink); border: 2px solid var(--line-strong);
  border-radius: 1.1rem; font-size: 1.02rem; line-height: 1.4; box-shadow: var(--soft-shadow); font-weight: 600;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -0.65rem; width: 1rem; height: 1rem; background: var(--surface);
  border-right: 2px solid var(--line-strong); border-bottom: 2px solid var(--line-strong); transform: translateX(-50%) rotate(45deg);
}
@media (min-width: 992px) {
  .companions__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: start; }
  .companions__stage { padding-top: 3rem; }
}
@media (max-width: 575.98px) {
  .companions__stage { gap: 0.75rem; }
  .buddy { max-width: 10.5rem; }
  .bubble { font-size: 0.95rem; padding: 0.65rem 0.8rem; }
}

/* ---- Privacy summary ----------------------------------------------------------------------------------------------------- */
.privacy { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 6rem); align-items: center; }
.phone--side { --phone-w: clamp(230px, 62vw, 290px); justify-self: center; }
.phone-fig { margin: 0; display: grid; justify-items: center; gap: 0.75rem; justify-self: center; }
.privacy__copy > p { color: var(--ink-2); max-width: 36rem; }
.facts { margin: 1.5rem 0; max-width: 40rem; }
.facts > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.facts dt .icon { color: var(--primary); }
.facts dd { margin: 0.25rem 0 0 2.25rem; color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; }
@media (min-width: 992px) {
  .privacy { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; }
}

/* ---- Care note and closing call ------------------------------------------------------------------------------------------- */
.care { background: var(--sage-wash); padding-block: clamp(2.5rem, 5vw, 4rem); border-block: 1px solid var(--line); }
.care__inner { max-width: 62rem; }
.care__inner h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.care__inner p { max-width: 44rem; }
.cta { background: var(--forest); color: var(--on-forest); position: relative; overflow: clip; padding-block: clamp(3.5rem, 7vw, 6rem) 0; }
.cta h2, .cta h3 { color: var(--on-forest); }
.cta a { color: var(--on-forest); }
.cta__grid { display: grid; gap: 2rem; align-items: end; }
.cta__copy { padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.cta__copy > p { color: var(--on-forest-2); max-width: 36rem; }
.cta__pip { justify-self: end; height: clamp(11rem, 36vw, 19rem); width: auto; margin-top: -1rem; }
.contact { margin-top: 2rem; }
.contact h3 { font-size: 1.15rem; }
.contact p { margin: 0 0 0.25rem; }
@media (min-width: 992px) {
  .cta__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .cta__pip { margin-top: 0; }
}

/* ---- Footer ---------------------------------------------------------------------------------------------------------------- */
.site-footer { padding-block: 3rem 2rem; font-size: 1rem; }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__brand p { margin: 0.75rem 0 0; max-width: 24rem; color: var(--ink-2); }
.site-footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.site-footer__links a, .site-footer__links span { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__links span { max-width: 22rem; color: var(--ink-2); }
.lang--footer { flex-direction: column; align-items: flex-start; }
.lang--footer a { justify-content: flex-start; padding-inline: 0; font-weight: 600; }
.lang--footer a[aria-current="true"] { background: none; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; }
.site-footer__legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; color: var(--ink-2); font-size: 0.95rem; }
.site-footer__legal p { margin: 0; }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---- Legal pages and notices ------------------------------------------------------------------------------------------------ */
.legal { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.legal__head { max-width: 46rem; margin-bottom: 2.5rem; }
.legal__head h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); margin-bottom: 0.75rem; }
.legal__meta { color: var(--ink-2); margin-bottom: 0.75rem; font-weight: 700; }
.legal__intro { font-size: 1.2rem; max-width: 42rem; }
.legal__layout { display: grid; gap: 2rem; }
.legal__toc h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.legal__toc li { break-inside: avoid; }
.legal__toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 600; }
.legal__body { max-width: 46rem; }
.legal__body section { padding-top: 2rem; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.legal__body h2 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2rem); margin-bottom: 0.75rem; }
.legal__body p, .legal__body li { max-width: 70ch; }
.legal__body ul { padding-left: 1.3rem; }
.legal__body li + li { margin-top: 0.4rem; }
.legal__summary { background: var(--sage-wash); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.25rem 1.5rem; }
.legal__summary h2 { font-size: 1.35rem; }
.legal__summary ul { margin: 0; }
.legal__note { margin-top: 2rem; color: var(--ink-2); font-size: 1rem; }
.legal__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 1.5rem; }
.legal__links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 992px) {
  .legal__layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .legal__toc { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow: auto; }
  .legal__toc ol { columns: 1; }
}
.notice { padding-block: clamp(4rem, 10vw, 8rem); max-width: 46rem; }

/* ---- Dark theme: the woodland plate is multiplied onto the night-green paper so its cream sky dissolves into the page ---------- */
@media (prefers-color-scheme: dark) {
  /* The blend sits on the positioned wrapper (a stacking context), so it multiplies with the page paper and not with nothing. */
  .hero__scene, .companions__scene { mix-blend-mode: multiply; }
  .hero__scene img, .companions__scene img { filter: brightness(1.55) saturate(0.85); }
  .hero__copy::before { background: radial-gradient(closest-side, var(--paper) 55%, transparent); }
  .hero__pip, .hero__olive, .buddy img { filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.35)); }
}

/* ---- Reduced motion ---------------------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
