/* =========================================================================
   PIC Assistance: shared stylesheet (all languages)
   Direction "Paper and bluestone": see ARCHITECTURE.md > Design direction.
   Conventions: lowercase-hyphen classes, component-first (.plan-card…),
   state classes .is-* (is-visible, is-highlighted, is-scrolled),
   JS hooks use data-* attributes, never classes.
   ========================================================================= */

/* ---------- Font (self-hosted, SIL OFL 1.1: fonts/OFL-SchibstedGrotesk.txt) ---------- */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/SchibstedGrotesk-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light dark;

  /* Palette: paper, bluestone ink, the accountant's folder, one teal accent */
  --paper: #f1f1ec;          /* page ground */
  --paper-2: #e5e5de;        /* one tone step: quiet surfaces */
  --sheet: #f9fafa;          /* a printed sheet lying on the ground */
  --ink: #142128;            /* bluestone ink */
  --ink-soft: #46555c;       /* secondary notes only */
  --stone: #22323a;          /* Belgian bluestone field */
  --on-stone: #eef0eb;
  --on-stone-soft: #bcc7c9;
  --stone-2: #2d3f48;        /* tone step inside the stone field */
  --folder: #dccba6;         /* the monthly folder for the accountant */
  --on-folder: #142128;
  --on-folder-soft: #4a4433;
  --teal: #0b6b66;           /* brand accent: actions and the "validated" mark */
  --teal-strong: #07524e;
  --teal-soft: #d3ebe6;
  --teal-on-dark: #8fd8cc;   /* the accent when it sits on the stone field */
  --teal-on-dark-strong: #b5e8df;
  --danger: #a3271b;
  --print-paper: #f9fafa;    /* printed objects (slip, ledger, calculator note, table): */
  --print-tone: #ecece6;     /* identical in light and dark, like real paper */
  --print-ink: #142128;
  --print-soft: #46555c;
  --print-rule: #d6d8d0;
  --mark-dot: #8fd8cc;

  /* Roles used by every component (fields re-map these, see .field-*) */
  --bg: var(--paper);
  --surface: var(--paper-2);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --border: #c9cbc3;         /* form fields and real tables only */
  --brand: var(--teal);
  --brand-strong: var(--teal-strong);
  --brand-soft: var(--teal-soft);
  --on-brand: #ffffff;
  --focus: var(--ink);
  --header-bg: var(--paper);

  /* Type: one family, five sizes */
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --step-small: 0.9375rem;                                  /* 15px  notes, labels */
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);   /* 17→19 running text */
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);      /* 20→24 leads, h3 */
  --step-head: clamp(1.75rem, 1.1rem + 2.7vw, 3.25rem);      /* 28→52 h2 */
  --step-display: clamp(2.25rem, 0.8rem + 5.2vw, 5.5rem);   /* 36→88 h1, figures */

  /* Space: 8px base */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 144px;
  --section: clamp(72px, 4rem + 6vw, 152px);

  /* Shape: near-square corners everywhere, decided once */
  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 18px 40px -18px rgba(20, 33, 40, 0.35), 0 2px 8px rgba(20, 33, 40, 0.08); /* floating things only */
  --shadow-sm: 0 1px 0 rgba(20, 33, 40, 0.06);

  /* Frame */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;

  /* Motion tokens (the motion layer builds on these; keep moves short).
     Rules: transform/opacity only (the FAQ height is the one exception);
     exits use the next step down from their entrance; presses scale 0.96–0.98;
     hover motion only on fine pointers; reduced motion keeps colour/opacity. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease: var(--ease-out);
  --dur-1: 120ms;   /* press, hover colour, exits */
  --dur-2: 200ms;   /* small state changes, popover in */
  --dur-3: 320ms;   /* panels, menus */
  --dur-4: 560ms;   /* section entrances */
  --press: scale(0.97);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10181c;
    --paper-2: #18232a;
    --sheet: #1c2930;
    --ink: #e9ece7;
    --ink-soft: #aab7ba;
    --stone: #1f3039;
    --on-stone: #eef0eb;
    --on-stone-soft: #b7c3c6;
    --stone-2: #29404b;
    --folder: #3a3426;
    --on-folder: #f1ebdc;
    --on-folder-soft: #cdc3ab;
    --teal: #6fcabd;
    --teal-strong: #9adbd1;
    --teal-soft: #173b38;
    --teal-on-dark: #8fd8cc;
    --teal-on-dark-strong: #b5e8df;
    --danger: #ff9b8f;
    --mark-dot: #0b6b66;
    --border: #3a4a52;
    --on-brand: #06201d;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.4);
  }
}

/* Fields: a section can change the whole ground; components follow the roles */
.field-stone, .hero {
  --bg: var(--stone);
  --surface: var(--stone-2);
  --text: var(--on-stone);
  --muted: var(--on-stone-soft);
  --border: #4d626c;
  --brand: var(--teal-on-dark);
  --brand-strong: var(--teal-on-dark-strong);
  --brand-soft: #2c4a50;
  --on-brand: #06201d;
  --focus: var(--on-stone);
  color: var(--text);
}
.field-stone, .hero { background: var(--bg); }
.field-folder {
  --bg: var(--folder);
  --surface: color-mix(in srgb, var(--folder) 82%, var(--ink) 6%);
  --text: var(--on-folder);
  --muted: var(--on-folder-soft);
  --focus: var(--on-folder);
  background: var(--bg);
  color: var(--text);
}
/* A printed sheet: always paper and ink, in both colour schemes */
.slip, .ledger, .calc-result, .table-wrap {
  --bg: var(--print-paper);
  --surface: var(--print-tone);
  --text: var(--print-ink);
  --muted: var(--print-soft);
  --border: var(--print-rule);
  --brand: #0b6b66;
  --brand-strong: #07524e;
  --brand-soft: #d3ebe6;
  --on-brand: #ffffff;
  --focus: var(--print-ink);
  background: var(--bg);
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
::selection { background: var(--teal-soft); color: var(--ink); }
.field-stone ::selection, .hero ::selection { background: var(--teal-on-dark); color: #06201d; }
html { accent-color: var(--teal); caret-color: var(--teal); }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 750; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: var(--step-display); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: var(--step-head); }
h3, .h3 { font-size: var(--step-lead); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
strong { font-weight: 700; }
sup { line-height: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-sm); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus, .skip-link:hover { top: 12px; color: var(--paper); outline-color: var(--teal); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Type helpers ---------- */
.section-label {
  margin: 0 0 var(--space-4);
  font-size: var(--step-small); font-weight: 600; line-height: 1.4; letter-spacing: 0;
  color: var(--muted);
}
.lead { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.015em; color: var(--text); max-width: 40ch; }
.center { text-align: left; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); }

/* ---------- Buttons: flat, near-square, one fill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.3em; border-radius: var(--radius); border: 0;
  font: inherit; font-weight: 650; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -0.01em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-2) var(--ease); }
/* touch fires a sticky :hover on tap: the arrow nudge is for mice only */
@media (hover: hover) and (pointer: fine) { .btn:hover .icon { transform: translateX(3px); } }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: color-mix(in srgb, var(--surface) 80%, var(--text) 12%); color: var(--text); }
.btn-ink, .btn-light { background: var(--text); color: var(--bg); }
.btn-ink:hover, .btn-light:hover { background: color-mix(in srgb, var(--text) 85%, var(--bg)); color: var(--bg); }
.btn-lg { min-height: 56px; padding: 0.85em 1.5em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 650; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  transition: box-shadow var(--dur-2) var(--ease);
}
/* The header's ground lives on a pseudo-element: never put backdrop-filter,
   transform or filter on .site-header / .site-nav (breaks the fixed mobile menu). */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); }
.site-header.is-scrolled { /* taste-skill-ignore: sticky bar */ box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent), 0 8px 24px -16px rgba(0, 0, 0, 0.35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.1875rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 32px; height: 32px; }
.logo-mark rect { fill: var(--ink); rx: 4px; }
.logo-mark path { stroke: var(--paper); }
.logo-mark circle { fill: var(--mark-dot); }
.logo-text strong { font-weight: 800; }
.logo-text span { font-weight: 500; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--paper-2); color: var(--ink); cursor: pointer;
  transition: transform var(--dur-1) var(--ease);
}
.nav-toggle:active { transform: var(--press); }
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: currentColor; transition: transform var(--dur-3) var(--ease), opacity var(--dur-2); }
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu: fixed, fully opaque panel under the header (z 99 < header 100) */
.site-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
  display: flex; flex-direction: column; gap: var(--space-6);
  padding: var(--space-5) var(--gutter) var(--space-7); overflow-y: auto;
  background: var(--paper);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  /* closing: one step faster than opening */
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}
.nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease), visibility 0s; }
.nav-open { overflow: hidden; }

.nav-list { list-style: none; display: flex; flex-direction: column; }
.nav-list a {
  display: block; padding: 12px 0;
  color: var(--ink); text-decoration: none; font-size: var(--step-head); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--teal); }

.lang-switch { list-style: none; display: flex; align-items: center; gap: 4px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px;
  border-radius: var(--radius); color: var(--ink-soft); font-weight: 650; font-size: var(--step-small); text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); background: var(--paper-2); }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--paper-2); }

.nav-cta { align-self: flex-start; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; flex-direction: row; align-items: center; gap: var(--space-5); padding: 0; overflow: visible;
    background: none; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav-list { flex-direction: row; gap: 2px; }
  .nav-list a { padding: 10px 12px; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; border-radius: var(--radius); }
  .nav-list a:hover { background: var(--paper-2); color: var(--ink); }
  .nav-list a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
  .nav-cta { align-self: auto; min-height: 44px; padding: 0.55em 1.1em; }
  .nav-open { overflow: visible; }
}

/* ---------- Sections & frame ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.section-end { padding-bottom: var(--section); }
.section-alt { background: var(--surface); }
/* Two paper sections in a row share their gap instead of doubling it */
.section:not(.field-stone):not(.field-folder):not(.hero) + .section:not(.field-stone):not(.field-folder) { padding-top: calc(var(--section) * 0.45); }

/* Section head: the label sits in the left margin like a field on a form */
.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { margin: 0; max-width: 30ch; }
.section-head .lead { margin: var(--space-5) 0 0; }
/* Below 960px the label follows the heading, as a filing tag */
@media (max-width: 959.98px) {
  .section-head, .page-hero .container { display: flex; flex-direction: column; }
  .section-head > .section-label, .page-hero .section-label { order: 1; margin: var(--space-3) 0 0; }
  .section-head > h2, .page-hero h1 { order: 0; }
  .section-head > .lead, .page-hero .lead { order: 2; }
}
@media (min-width: 960px) {
  .section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); align-items: baseline; }
  .section-head > * { grid-column: 4 / -1; }
  .section-head > .section-label { grid-column: 1 / 4; grid-row: 1; margin: 0; padding-right: var(--space-5); }
  .section-head .lead { grid-column: 4 / 11; }
}

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border-radius: var(--radius); padding: var(--space-5); }

/* ---------- Hero: two fields, the seam between "we" and "you" ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(64px, 16vh, 184px); padding-bottom: clamp(56px, 7vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-tag { margin: 0 0 var(--space-4); font-weight: 650; color: var(--brand); }
.hero h1 { margin: 0; }
/* from tablet up each half of the sentence holds one line in every language */
@media (min-width: 640px) { .hero h1 { font-size: clamp(2.25rem, (100vw - 2 * var(--gutter)) / 15.5, 5.5rem); } }
.hero-line { display: block; }
/* Line one sits on paper (our side), line two on bluestone (yours).
   The paper field is the first line's own background, spread upward. */
.hero-line-1 {
  position: relative; padding-bottom: 0.2em;
  background: var(--paper); color: var(--ink);
}
.hero-line-1::before { content: ""; position: absolute; z-index: -1; top: -100vh; bottom: 0; left: -100vw; right: -100vw; background: var(--paper); }
.hero-line-2 { padding-top: 0.2em; }
.hero-copy { margin-top: clamp(32px, 5vw, 64px); }
.hero-copy .lead { margin: 0; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0 var(--space-5); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--muted); font-size: var(--step-small); font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--brand); }

.hero-visual { margin-top: var(--space-7); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); }
  .hero h1 { grid-column: 1 / -1; }
  .hero-copy { grid-column: 1 / 7; }
  .hero-visual { grid-column: 8 / -1; margin-top: clamp(32px, 5vw, 64px); }
}

/* The day's slip: what PIC Assistance hands back, each line checked by a person */
.slip { border-radius: var(--radius); padding: var(--space-5) var(--space-5) var(--space-4); }
.slip-title { margin: 0 0 var(--space-3); font-size: var(--step-small); font-weight: 700; color: var(--muted); }
.slip-list { list-style: none; display: flex; flex-direction: column; }
.slip-list li { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-3) 0; }
.slip-list li + li { /* taste-skill-ignore: rules of a printed slip (data-ui) */ box-shadow: inset 0 1px 0 var(--surface); }
.slip-text strong { display: block; font-size: var(--step-body); font-weight: 650; line-height: 1.3; }
.slip-text small { display: block; color: var(--muted); font-size: var(--step-small); }
.slip-ok { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.slip-ok .icon { width: 17px; height: 17px; stroke-width: 2.6; }
.slip-foot { /* taste-skill-ignore: printed slip */ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: var(--space-3) 0 0; padding-top: var(--space-3); box-shadow: inset 0 1px 0 var(--surface); font-size: var(--step-small); font-weight: 650; color: var(--muted); }
.slip-foot span:last-child { color: var(--brand); }
.slip-note { margin: var(--space-4) 0 0; color: var(--muted); font-size: var(--step-small); }
.slip-note strong { color: var(--text); }

/* ---------- Audience: one trade per poster line ---------- */
.audience-section { padding-top: 0; }
.audience { display: grid; gap: var(--space-6); }
.audience h2 { margin: 0; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; color: var(--muted); max-width: 26ch; }
.audience-list { list-style: none; container-type: inline-size; }
/* sized to the column so the longest trade ("Kinesitherapeuten") never overflows */
.audience-list li { font-size: min(var(--step-display), 10.4cqi); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
@media (min-width: 960px) {
  .audience { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); align-items: start; }
  .audience h2 { grid-column: 9 / -1; grid-row: 1; text-align: right; justify-self: end; padding-top: 0.6em; }
  .audience-list { grid-column: 1 / 9; grid-row: 1; }
}

/* ---------- Services: the ledger sheet ---------- */
.ledger { border-radius: var(--radius); padding: var(--space-2) clamp(20px, 4vw, 56px); }
.service-row { display: grid; gap: var(--space-2); padding: var(--space-5) 0; }
.service-row + .service-row { /* taste-skill-ignore: rules of a printed ledger (data-ui) */ box-shadow: inset 0 1px 0 var(--surface); }
.service-row h3 { margin: 0; }
.service-row p { margin: 0; max-width: 46ch; }
.tag { justify-self: start; font-size: var(--step-small); font-weight: 650; color: var(--muted); }
.tag-premium { color: var(--brand); }
@media (min-width: 760px) {
  .service-row { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--space-5); align-items: baseline; padding: var(--space-6) 0; }
  .tag { justify-self: end; text-align: right; }
}

/* ---------- Peppol: the deadline as a figure on the folder field ---------- */
.band { display: grid; gap: var(--space-6); align-items: start; }
.band h2 { margin-bottom: var(--space-4); }
.band p { max-width: 52ch; margin: 0; }
.band .section-label { margin-bottom: var(--space-4); }
.band-date { margin: 0; font-size: var(--step-display); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.band-date span { display: block; }
.band > .btn { justify-self: start; }
.band > div { display: contents; }
.band > div > .section-label { margin: 0; }
@media (min-width: 960px) {
  .band { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); row-gap: var(--space-4); }
  .band-date { grid-column: 1 / 6; grid-row: 1 / 3; font-size: clamp(5rem, 1rem + 9vw, 10rem); }
  .band > div > .section-label { grid-column: 1 / 6; grid-row: 3; align-self: start; margin-top: var(--space-4); }
  .band > div > h2 { grid-column: 6 / -1; grid-row: 1; margin: 0; max-width: 24ch; }
  .band > div > p { grid-column: 6 / -1; grid-row: 2; }
  .band > .btn { grid-column: 6 / -1; grid-row: 3; margin-top: var(--space-4); }
}
@media (max-width: 959.98px) {
  .band-date { order: -2; font-size: clamp(4rem, 2rem + 10vw, 6rem); }
  .band > div > .section-label { order: -1; margin-top: calc(-1 * var(--space-4)); }
}

/* ---------- How it works: lines that step across ---------- */
.steps { list-style: none; display: grid; gap: clamp(40px, 5vw, 64px); }
.step h3 { margin: 0 0 var(--space-3); font-size: var(--step-head); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; max-width: 18ch; }
.step p { margin: 0; max-width: 44ch; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); }
  .step { grid-column: 1 / span 8; display: grid; grid-template-columns: subgrid; }
  .step:nth-child(2) { grid-column: 2 / span 8; }
  .step:nth-child(3) { grid-column: 3 / span 8; }
  .step:nth-child(4) { grid-column: 4 / span 8; }
  .step > * { grid-column: 1 / -1; }
}

/* ---------- Calculator: the live thing ---------- */
.calc { display: grid; gap: var(--space-7); }
@media (min-width: 960px) {
  .calc { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); align-items: start; }
  .calc-inputs { grid-column: 1 / 7; }
  .calc-result { grid-column: 8 / -1; }
}
.calc-inputs { display: flex; flex-direction: column; gap: var(--space-6); }
.calc-result { display: flex; flex-direction: column; gap: var(--space-4); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); }
.range-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: var(--space-3); }
.range-top label { font-weight: 650; }
.range-top output { font-weight: 750; font-size: var(--step-lead); letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }

input[type="range"] {
  --fill: 25%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: var(--radius-sm);
  background: linear-gradient(to right, var(--brand) var(--fill), var(--surface) var(--fill)); /* taste-skill-ignore: slider fill, a control state */
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--radius-sm); background: var(--surface); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: var(--radius-sm); background: var(--brand); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
  background: var(--brand); border: 4px solid var(--bg);
}
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 4px solid var(--bg); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 2px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 3px solid var(--focus); outline-offset: 2px; }
.range-scale { display: flex; justify-content: space-between; font-size: var(--step-small); color: var(--muted); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 650; padding: 0; margin-bottom: var(--space-3); }
.calc-needs { display: flex; flex-direction: column; gap: var(--space-2); }

.check { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.calc-needs .check { padding: var(--space-4); border-radius: var(--radius); background: var(--surface); transition: background-color var(--dur-2) var(--ease); }
.calc-needs .check:hover { background: color-mix(in srgb, var(--surface) 85%, var(--text) 10%); }
.calc-needs .check:has(input:checked) { background: var(--brand-soft); }
.calc-needs .check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-needs .check small { display: block; color: var(--muted); font-size: var(--step-small); }

.calc-label { margin: 0; font-weight: 650; color: var(--muted); }
.calc-big { margin: 0; font-size: var(--step-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc-unit { font-size: var(--step-lead); font-weight: 650; color: var(--muted); letter-spacing: -0.01em; white-space: nowrap; }
.calc-sub { margin: 0; color: var(--muted); }
.bars { display: grid; gap: var(--space-3); margin: var(--space-2) 0; }
.bar-row { display: grid; grid-template-columns: 9.5em 1fr; gap: var(--space-3); align-items: center; font-size: var(--step-small); font-weight: 650; }
.bar { height: 14px; border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
/* JS sets transform: scaleX(); composited, and short enough to follow a dragged slider */
.bar-fill { display: block; height: 100%; width: 100%; transform: scaleX(0.5); transform-origin: left center; transition: transform var(--dur-2) var(--ease); }
.bar-fill-cost { background: var(--stone); }
.bar-fill-plan { background: var(--brand); }
.calc-suggestion { margin: 0; padding: var(--space-4); border-radius: var(--radius); background: var(--surface); }
.calc-note { margin: 0; font-size: var(--step-small); color: var(--muted); }

/* ---------- Plans: tiles that step up ---------- */
.plans { display: grid; gap: var(--space-3); align-items: end; }
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-card[data-plan="essentiel"] { min-height: 560px; }
  .plan-card[data-plan="pro"] { min-height: 620px; }
  .plan-card[data-plan="premium"] { min-height: 680px; }
}
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-5);
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: var(--paper-2); color: var(--ink);
  outline: 3px solid transparent; outline-offset: 4px;
  transition: outline-color var(--dur-2) var(--ease);
}
.plan-card[data-plan="pro"] {
  --muted: var(--on-folder-soft); --text: var(--on-folder);
  background: var(--folder); color: var(--on-folder);
}
.plan-card[data-plan="premium"] {
  --bg: var(--stone); --surface: var(--stone-2); --text: var(--on-stone); --muted: var(--on-stone-soft);
  --brand: var(--teal-on-dark); --brand-strong: var(--teal-on-dark-strong); --on-brand: #06201d; --focus: var(--on-stone);
  background: var(--stone); color: var(--on-stone);
}
.plan-card.is-highlighted { outline-color: var(--teal); }
.plan-badge {
  align-self: flex-start; order: -1; margin: 0 0 calc(-1 * var(--space-2));
  font-size: var(--step-small); font-weight: 700; color: var(--brand);
  display: none;
}
.plan-card.is-highlighted .plan-badge { display: block; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
@starting-style { .plan-card.is-highlighted .plan-badge { opacity: 0; transform: translateY(4px); } }
.plan-name { margin: 0; font-size: var(--step-lead); }
.plan-tagline { margin: 6px 0 0; color: var(--muted); }
.plan-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.plan-amount { font-size: var(--step-display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.plan-period { color: var(--muted); font-weight: 650; }
.plan-setup { flex-basis: 100%; margin-top: var(--space-1); color: var(--muted); font-size: var(--step-small); font-weight: 600; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.plan-features li { position: relative; padding-left: 1.6em; }
.plan-features li::before {
  content: ""; position: absolute; left: 0.3em; top: 0.32em; width: 0.38em; height: 0.7em;
  border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.plan-features li.plan-inherit { font-weight: 700; }
.price-note { margin: var(--space-6) 0 0; color: var(--muted); font-size: var(--step-small); }
.price-note .link-arrow { white-space: nowrap; }

/* Plan picker */
.picker { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-7); }
.picker legend { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.segmented { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 12px 18px; border-radius: var(--radius); background: var(--paper-2); font-weight: 650; color: var(--ink); transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease); }
.segmented label:active span { transform: var(--press); }
.segmented label:hover span { background: color-mix(in srgb, var(--paper-2) 85%, var(--ink) 10%); }
.segmented input:checked + span { background: var(--ink); color: var(--paper); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Included in every plan */
.included { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-top: var(--space-7); }
.included li { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.included .icon { color: var(--brand); }

/* ---------- Comparison table (a real table keeps its rules) ---------- */
/* position: relative keeps the absolutely positioned .visually-hidden cell text
   inside the scroller (otherwise it widens the page by ~200px on phones) */
.table-wrap { position: relative; overflow-x: auto; border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--border); transition: background-color var(--dur-2) var(--ease); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { position: sticky; top: 0; background: var(--surface); font-size: var(--step-lead); font-weight: 750; letter-spacing: -0.02em; vertical-align: bottom; }
.compare thead th:first-child { font-size: var(--step-small); font-weight: 650; color: var(--muted); letter-spacing: 0; }
.compare thead th span { display: block; margin-top: 2px; font-size: var(--step-small); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.compare tbody th { font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .is-highlighted { background: var(--brand-soft); }
.compare .row-limit th, .compare .row-limit td { color: var(--muted); }
.yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.yes .icon { width: 16px; height: 16px; stroke-width: 2.8; }
.no { color: var(--muted); }

/* ---------- Do / don't: two butted fields ---------- */
#limites .grid-2 { gap: 0; }
.limit-card { padding: clamp(28px, 4vw, 56px); }
.limit-yes { background: var(--paper-2); border-radius: var(--radius) var(--radius) 0 0; }
.limit-no {
  --text: var(--on-folder); --muted: var(--on-folder-soft);
  background: var(--folder); color: var(--on-folder); border-radius: 0 0 var(--radius) var(--radius);
}
@media (min-width: 640px) {
  .limit-yes { border-radius: var(--radius) 0 0 var(--radius); }
  .limit-no { border-radius: 0 var(--radius) var(--radius) 0; }
}
.limit-card h3 { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); font-size: var(--step-head); letter-spacing: -0.035em; }
.limit-card h3 .icon { width: 0.8em; height: 0.8em; stroke-width: 2.4; }
.limit-card ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.limit-card li { display: flex; gap: var(--space-3); }
.limit-card li .icon { margin-top: 0.2em; stroke-width: 2.4; }
.limit-yes h3 .icon, .limit-yes li .icon { color: var(--brand); }
.limit-no h3 .icon, .limit-no li .icon { color: var(--on-folder); }
.limit-card p { margin: 0; max-width: 46ch; }

.callout {
  --text: var(--on-folder); --muted: var(--on-folder-soft);
  display: flex; gap: var(--space-4); align-items: flex-start; margin-top: var(--space-5);
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius);
  background: var(--folder); color: var(--on-folder);
}
.callout .icon { width: 28px; height: 28px; margin-top: 2px; }
.callout p { margin: 0; max-width: 70ch; }
.callout p + p { margin-top: var(--space-2); }

/* ---------- Team ---------- */
.team { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
/* Portrait slots: replace the monogram with the founders' photographs (square crop) */
.team-member { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(16px, 2.5vw, 32px); align-items: center; }
.avatar {
  grid-row: 1 / 3; display: grid; place-items: end start;
  width: clamp(72px, 9vw, 128px); aspect-ratio: 1; padding: 10px 12px; border-radius: var(--radius);
  background: var(--paper-2); color: var(--ink);
  font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.team-member:nth-child(2) .avatar { background: var(--folder); color: var(--on-folder); }
.team-member:nth-child(3) .avatar { background: var(--stone); color: var(--on-stone); }
.team-member h3 { margin: 0; align-self: end; font-size: var(--step-head); letter-spacing: -0.035em; line-height: 1.05; }
.team-member p { margin: 4px 0 0; align-self: start; color: var(--muted); }
@media (min-width: 960px) {
  .team { margin-left: calc((100% - 11 * var(--space-5)) / 12 * 3 + 3 * var(--space-5)); }
  .team-member { grid-template-columns: auto 1fr auto; }
  .avatar { grid-row: 1; }
  .team-member h3 { align-self: center; }
  .team-member p { align-self: center; margin: 0; }
  .trust-line { margin-left: calc((100% - 11 * var(--space-5)) / 12 * 3 + 3 * var(--space-5)); }
}
.trust-line { display: flex; align-items: flex-start; gap: var(--space-3); margin: var(--space-7) 0 0; font-weight: 600; max-width: 60ch; }
.trust-line .icon { color: var(--brand); margin-top: 0.1em; }

/* ---------- FAQ (native <details>) ---------- */
.faq { display: flex; flex-direction: column; gap: var(--space-2); }
@media (min-width: 960px) { .faq { margin-left: calc((100% - 11 * var(--space-5)) / 12 * 3 + 3 * var(--space-5)); } }
.faq-item { background: var(--paper-2); border-radius: var(--radius); transition: background-color var(--dur-2) var(--ease); }
.faq-item[open] { background: var(--sheet); }
@media (hover: hover) and (pointer: fine) {
  .faq-item:not([open]):hover { background: color-mix(in srgb, var(--paper-2) 92%, var(--ink) 8%); }
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-5); cursor: pointer; list-style: none;
  font-size: var(--step-lead); font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5v13M1.5 8h13' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5v13M1.5 8h13' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur-3) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 var(--space-5) var(--space-5); max-width: 68ch; }
.faq-answer p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq-item { interpolate-size: allow-keywords; }
    .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur-3) var(--ease), content-visibility var(--dur-3) allow-discrete; }
    .faq-item[open]::details-content { block-size: auto; }
  }
}

/* ---------- Closing call: the inverted field ---------- */
.cta-band h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; max-width: 16ch; margin-bottom: var(--space-5); }
.cta-band p { font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; }
.cta-band .hero-actions { margin-bottom: 0; }
@media (min-width: 640px) { .cta-band h2 { font-size: min(var(--step-display), calc((100vw - 2 * var(--gutter)) / 15)); } }
@media (min-width: 960px) {
  .cta-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); align-items: end; }
  .cta-band h2 { grid-column: 1 / -1; max-width: none; margin-bottom: var(--space-7); }
  .cta-band p { grid-column: 1 / 7; margin: 0; }
  .cta-band .hero-actions { grid-column: 8 / -1; justify-content: flex-end; margin: 0; }
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 112px) clamp(32px, 4vw, 56px); }
.page-hero h1 { max-width: 18ch; margin: 0; }
.page-hero .lead { margin: var(--space-5) 0 0; }
@media (min-width: 960px) {
  .page-hero .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); }
  .page-hero .container > * { grid-column: 1 / -1; }
  .page-hero .section-label { grid-column: 1 / 4; grid-row: 1; margin: 0.9em 0 0; }
  .page-hero .container > h1, .page-hero .container > .lead { grid-column: 4 / -1; }
  .notfound .container > * { grid-column: auto; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); }
  .contact-grid > .form { grid-column: 1 / 8; }
  .contact-grid > .contact-aside { grid-column: 9 / -1; }
}
.form {
  --bg: var(--sheet);
  display: flex; flex-direction: column; gap: var(--space-5);
  padding: clamp(20px, 4vw, 48px); border-radius: var(--radius); background: var(--sheet);
}
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field > label { font-weight: 650; }
.field > label.check { font-weight: 400; }
.req { color: var(--danger); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--paper); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { /* taste-skill-ignore: focus state */ outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--brand-soft); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { margin: 0; color: var(--danger); font-size: var(--step-small); font-weight: 650; }
.field-check .check span { font-size: var(--step-small); }
.hp { /* taste-skill-ignore: honeypot */ position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: var(--space-4); border-radius: var(--radius); background: var(--brand-soft); color: var(--text); }
.form-status.is-error { padding: var(--space-4); border-radius: var(--radius); background: var(--folder); color: var(--on-folder); }
.form-note { margin: 0; font-size: var(--step-small); color: var(--muted); }

.contact-aside { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-fact h2 { font-size: var(--step-lead); margin: 0 0 var(--space-2); }
.contact-fact p { margin: 0; }
.contact-fact p + p { margin-top: var(--space-1); color: var(--muted); }
.contact-fact:first-child { padding: var(--space-5); border-radius: var(--radius); background: var(--stone); color: var(--on-stone);
  --text: var(--on-stone); --muted: var(--on-stone-soft); --brand: var(--teal-on-dark); --brand-strong: var(--teal-on-dark-strong); --focus: var(--on-stone); }
.contact-email { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Prose (legal pages) ---------- */
.prose > * { max-width: 68ch; }
.prose h2 { font-size: var(--step-lead); margin-top: 2em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.35em; }
@media (min-width: 960px) {
  /* text starts on the same column as the page title (column 4 of 12) */
  .container.prose { padding-left: calc(min(100vw - 2 * var(--gutter), var(--container)) * 0.25 + 6px); }
}

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: grid; align-items: center; }
.notfound-code { font-size: clamp(6rem, 3rem + 14vw, 14rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; color: var(--teal); margin: 0 0 var(--space-5); }
.notfound .lead { margin-inline: 0; }

/* ---------- Footer: the name first ---------- */
.site-footer { padding-block: clamp(48px, 6vw, 96px) var(--space-6); background: var(--paper-2); color: var(--ink); overflow: hidden; }
.footer-mark {
  width: min(100% - 2 * var(--gutter), var(--container)); margin: 0 auto clamp(40px, 6vw, 88px);
  font-size: min(10.5rem, calc((100vw - 2 * var(--gutter)) / 6.9)); font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; white-space: nowrap;
}
.footer-mark span { color: var(--teal); }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); }
  .footer-grid > :nth-child(1) { grid-column: 1 / 6; }
  .footer-grid > :nth-child(2) { grid-column: 7 / 10; }
  .footer-grid > :nth-child(3) { grid-column: 10 / -1; }
}
.footer-grid .logo { display: none; }
.footer-tagline { margin: 0; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; max-width: 30ch; }
.footer-title { font-size: var(--step-small); font-weight: 650; letter-spacing: 0; color: var(--ink-soft); margin: 0 0 var(--space-3); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--teal); text-decoration: underline; }
.footer-bottom { margin-top: clamp(48px, 6vw, 96px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); color: var(--ink-soft); font-size: var(--step-small); }
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal (JS on and motion allowed; minimal, token-based) ---------- */
/* The stagger delay is per-property so it never leaks into later state
   transitions (e.g. the plan card highlight). */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity var(--dur-4) var(--ease) var(--reveal-delay, 0ms), transform var(--dur-4) var(--ease) var(--reveal-delay, 0ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-d1 { --reveal-delay: 70ms; }
  .js .reveal-d2 { --reveal-delay: 140ms; }
  .js .reveal-d3 { --reveal-delay: 210ms; }
  .js .plan-card.reveal {
    transition: opacity var(--dur-4) var(--ease) var(--reveal-delay, 0ms), transform var(--dur-4) var(--ease) var(--reveal-delay, 0ms), outline-color var(--dur-2) var(--ease);
  }
}

/* Reduced motion: state changes stay (colour, opacity), travel goes */
@media (prefers-reduced-motion: reduce) {
  .btn:active, .btn:hover .icon, .nav-toggle:active, .segmented label:active span { transform: none; }
  .btn .icon, .nav-toggle-bar, .bar-fill, .faq-item summary::after { transition: none; }
  .site-nav, .nav-open .site-nav { transform: none; }
  .site-nav { transition: opacity var(--dur-1) var(--ease), visibility 0s linear var(--dur-1); }
  .nav-open .site-nav { transition: opacity var(--dur-2) var(--ease), visibility 0s; }
  .plan-card.is-highlighted .plan-badge { transition: opacity var(--dur-2) var(--ease); }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .hero-visual, .pic-chat { display: none !important; }
  body { background: #fff; color: #000; }
  .hero-line-2::before { display: none; }
}
