/*
 * Splinter Train design system, from the Figma file « Splinter Train — BRAND IDENTITY », page « 11 — SITE V2 ».
 * Mobile first; breakpoints at 768 px (tab bar, grid board) and 1024 / 1280 px (the wide header). Light is the
 * canonical theme; the dark theme maps the same palette onto Encre Tunnel. Spacing is on a 4 px scale.
 * Rose Ticket (#FF5AA8) is never used for text on white; links and errors use Rose profond (#B0145A).
 */
@layer reset, tokens, base, components, pages, utilities;

@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-latin-wght-normal.woff2?v=dae95d421228') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  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: 'Figtree';
  src: url('/fonts/figtree-latin-ext-wght-normal.woff2?v=dae95d421228') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd, fieldset { margin: 0; }
  ul[class], ol[class] { padding: 0; list-style: none; }
  fieldset { border: 0; padding: 0; min-width: 0; }
  legend { padding: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  [hidden] { display: none !important; }
  table { border-collapse: collapse; }
}

@layer tokens {
  :root {
    /* Figma variables (Brand / Neutral). */
    --rose: #FF5AA8;
    --rose-deep: #B0145A;
    --rose-soft: #FFC2DF;
    --rose-light: #FFE4F0;
    --rose-pale: #FFF3F8;
    --encre: #151413;
    --encre-soft: #5C5850;
    --bord: #767268;
    --filet: #DAD7D0;
    --voile: #F3F2EF;
    --blanc: #FFFFFF;
  }
  :root, [data-theme="light"] {
    --bg: var(--blanc);
    --surface: var(--blanc);
    --sunken: var(--voile);
    --ink: var(--encre);
    --muted: var(--encre-soft);
    --line: var(--filet);
    --line-strong: var(--bord);
    --brand: var(--encre);
    --brand-ink: var(--blanc);
    --brand-soft: var(--rose-light);
    --brand-text: var(--rose-deep);
    --accent: var(--rose);
    --accent-ink: var(--encre);
    --open: var(--rose-soft);
    --open-ink: var(--encre);
    --open-soft: var(--rose-light);
    --open-text: var(--rose-deep);
    --pale: var(--rose-pale);
    --warn: #7A4A00;
    --warn-soft: #FBF0DD;
    --danger: var(--rose-deep);
    --danger-soft: var(--rose-pale);
    --credit: var(--rose);
    --credit-ink: var(--encre);
    --dot: var(--voile);
    --dot-line: var(--bord);
    /* Price bands of an open Snap seat (splinter/prices.py), the same in both themes, with Encre text. */
    --band-low: #8EDFA7;
    --band-mid: #FFC870;
    --band-high: #FF8F85;
    --focus: var(--encre);
    --inverse: var(--encre);
    --inverse-ink: var(--blanc);
    --scrim: rgba(21, 20, 19, 0.5);
    --shadow-1: 0 1px 2px rgba(21, 20, 19, 0.05);
    --shadow-2: 0 8px 24px rgba(21, 20, 19, 0.08);
    --shadow-3: 0 20px 50px rgba(21, 20, 19, 0.14);
    --header: var(--blanc);
    color-scheme: light;
  }
  /* The dark theme: Encre Tunnel as the page, Voile as the text, the roses kept for what they mean. */
  [data-theme="dark"] {
    --bg: #151413;
    --surface: #1E1C1A;
    --sunken: #2A2724;
    --ink: #F3F2EF;
    --muted: #C2BDB2;
    --line: #3B3733;
    --line-strong: #9A958A;
    --brand: #F3F2EF;
    --brand-ink: #151413;
    --brand-soft: #3A1F2D;
    --brand-text: #FF8CC4;
    --accent: #FF5AA8;
    --accent-ink: #151413;
    --open: #FFC2DF;
    --open-ink: #151413;
    --open-soft: #3A1F2D;
    --open-text: #FF8CC4;
    --pale: #241C20;
    --warn: #F0B455;
    --warn-soft: #33270F;
    --danger: #FF8CC4;
    --danger-soft: #3A1F2D;
    --credit: #FF5AA8;
    --credit-ink: #151413;
    --dot: #2A2724;
    --dot-line: #9A958A;
    --focus: #FFFFFF;
    --inverse: #F3F2EF;
    --inverse-ink: #151413;
    --scrim: rgba(0, 0, 0, 0.62);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 8px 22px rgba(0, 0, 0, 0.42);
    --shadow-3: 0 22px 56px rgba(0, 0, 0, 0.6);
    --header: #151413;
    color-scheme: dark;
  }
  :root {
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
    --space-7: 28px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-14: 72px; --space-16: 80px;
    --radius-sm: 12px; --radius: 16px; --radius-lg: 24px; --radius-xl: 32px; --radius-full: 999px;
    --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-base: 1rem;
    --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
    --text-3xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
    --text-4xl: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;
    --tap: 44px;
    --content: 1200px;
    --reading: 720px;
    --gutter: max(var(--space-4), env(safe-area-inset-left));
    --tabbar-h: calc(84px + env(safe-area-inset-bottom));
    --z-header: 30; --z-tabbar: 40; --z-menu: 50; --z-tip: 60; --z-toast: 70;
  }
  @media (min-width: 768px) { :root { --gutter: max(var(--space-8), env(safe-area-inset-left)); } }
  @media (prefers-reduced-motion: reduce) {
    :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; }
  }
}

@layer base {
  html { background: var(--bg); scroll-padding-top: 104px; }
  /* An icon keeps its size in any flex row. */
  .icon { flex: none; }
  body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--tabbar-h);
  }
  @media (min-width: 768px) { body { padding-bottom: 0; } }
  /* The page always reaches the bottom of the screen, so the footer never shows, then jumps, while it loads. */
  main { flex: 1; outline: none; min-height: 100dvh; }
  h1 { font-size: var(--text-3xl); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
  h2 { font-size: var(--text-xl); line-height: 1.2; letter-spacing: -0.01em; font-weight: 800; text-wrap: balance; }
  h3 { font-size: var(--text-lg); line-height: 1.25; font-weight: 700; }
  p { text-wrap: pretty; }
  a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
  @media (hover: hover) and (pointer: fine) { a:hover { text-decoration-thickness: 2px; } }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
  [tabindex="-1"]:focus { outline: none; }
  ::selection { background: var(--brand-soft); color: var(--ink); }
  strong { font-weight: 700; }
  small { font-size: var(--text-sm); }
  code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.9em; }
  input, select, textarea { font-size: max(16px, 1rem); }
  mark.todo { background: var(--warn-soft); color: var(--warn); padding: 0 4px; border-radius: 4px; font-weight: 600; }
}

@layer components {
  /* Layout */
  .page { width: 100%; max-width: var(--content); margin: 0 auto; padding: var(--space-8) var(--gutter) var(--space-14); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  @media (min-width: 768px) { .page { padding-top: var(--space-10); gap: var(--space-12); } }
  .page-section { display: grid; gap: var(--space-6); }
  .section-head { display: grid; gap: var(--space-3); max-width: 52ch; }
  .section-head .lede { margin: 0; }
  .page.narrow, .narrow { max-width: calc(var(--reading) + 2 * var(--space-4)); }
  .page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
  .page-head > div { display: grid; gap: var(--space-2); min-width: 0; }
  .page-head.center { justify-content: center; text-align: center; }
  .lede { color: var(--muted); font-size: var(--text-base); max-width: 60ch; }
  .lede.big { font-size: var(--text-lg); }
  .hint { color: var(--muted); font-size: var(--text-sm); }
  .hint.center, .center { text-align: center; }
  .kicker { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--brand-text); font-size: var(--text-sm); font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; }
  .panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: none; display: grid; gap: var(--space-5); align-content: start; }
  .panel > h2 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-lg); }
  .panel-head { display: grid; gap: var(--space-1); }
  .card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: none; }
  .stack { display: grid; gap: var(--space-4); }
  .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
  .note { background: var(--sunken); border-radius: var(--radius); padding: var(--space-3) var(--space-4); color: var(--ink); font-size: var(--text-sm); }
  .note a { font-weight: 600; }
  .skip { position: absolute; left: var(--space-4); top: -100px; background: var(--brand); color: var(--brand-ink); padding: var(--space-2) var(--space-4); border-radius: var(--radius); z-index: 100; font-weight: 600; }
  .skip:focus { top: var(--space-2); }

  /* Buttons (kit 57:28): pills. M is the default (44 px, 15 px bold), L is .large (52 px, 17 px bold).
     Primaire = Encre, one main action per screen. Secondaire = white with a Bord line. Rose = booking an open seat
     only (and the few places Figma uses it). Rose profond = destructive. */
  .btn {
    --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-line: var(--line-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: var(--tap); padding: 0 var(--space-5); border-radius: var(--radius-full);
    border: 1.5px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-fg);
    font-weight: 700; font-size: 0.9375rem; line-height: 1.2; text-decoration: none; text-align: center;
    transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; white-space: nowrap;
  }
  .btn.primary { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-line: var(--brand); }
  .btn.rose { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-line: var(--encre); border-width: 2px; }
  .btn.quiet { --btn-bg: transparent; --btn-line: transparent; --btn-fg: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .btn.danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-line: var(--danger); }
  [data-theme="dark"] .btn.danger { --btn-fg: #151413; }
  .btn.on-dark { --btn-bg: #fff; --btn-fg: var(--encre); --btn-line: #fff; }
  .btn.small { min-height: 36px; padding: 0 var(--space-4); font-size: var(--text-sm); }
  .btn.large { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; }
  .btn.block { width: 100%; white-space: normal; }
  @media (hover: hover) and (pointer: fine) {
    .btn:hover:not(:disabled) { filter: brightness(0.95); }
    .btn.primary:hover:not(:disabled) { filter: none; background: #2C2A27; }
    .btn.quiet:hover:not(:disabled) { background: var(--sunken); }
    [data-theme="dark"] .btn:hover:not(:disabled) { filter: brightness(1.1); }
  }
  .btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
  .btn:focus-visible, .btn.is-focus { outline: 3px solid var(--focus); outline-offset: 3px; }
  .on-ink .btn:focus-visible, .on-ink :focus-visible { outline-color: #fff; }
  .btn:disabled { --btn-bg: var(--sunken); --btn-fg: var(--muted); --btn-line: var(--line-strong); border-style: dashed; cursor: not-allowed; }
  .btn.busy { position: relative; color: transparent; pointer-events: none; }
  .btn.busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin 0.7s linear infinite; }
  .btn.done { --btn-bg: var(--open-soft); --btn-fg: var(--ink); --btn-line: var(--ink); }
  .btn .icon { flex: none; }
  .icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--radius-full); background: transparent; color: var(--ink); -webkit-tap-highlight-color: transparent; }
  @media (hover: hover) and (pointer: fine) { .icon-btn:hover:not(:disabled) { background: var(--sunken); } }
  .icon-btn:disabled { opacity: 0.4; cursor: default; }
  .round-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); flex: none; }
  .linkish { display: inline-flex; align-items: center; gap: var(--space-1); background: none; border: 0; padding: var(--space-2) 0; min-height: var(--tap); color: var(--brand-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
  .back-link { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--muted); font-size: var(--text-sm); text-decoration: none; min-height: 44px; }
  .crumbs { display: flex; flex-wrap: wrap; gap: var(--space-1); color: var(--muted); font-size: var(--text-sm); }
  .crumbs a { color: var(--muted); text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; }
  .crumbs li + li::before { content: '/'; margin-right: var(--space-1); color: var(--line-strong); }
  .danger-text { color: var(--danger) !important; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Fields */
  .field { display: grid; gap: var(--space-2); min-width: 0; }
  .field > label, .field > .label, .field > legend, .label { font-weight: 700; font-size: var(--text-base); line-height: 1.2; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
    width: 100%; min-height: 52px; padding: 0 18px; border-radius: var(--radius);
    border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 1.0625rem;
    transition: border-color var(--dur-1), box-shadow var(--dur-1);
  }
  textarea { padding: var(--space-3) var(--space-4); }
  select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
  input:disabled, select:disabled { background: var(--sunken); color: var(--muted); }
  input[readonly] { background: var(--sunken); }
  ::placeholder { color: var(--muted); opacity: 0.8; }
  .form-error { color: var(--danger); font-size: var(--text-sm); font-weight: 600; }
  .form-status { color: var(--open-text); font-size: var(--text-sm); font-weight: 550; }
  .secret { position: relative; display: block; }
  .secret input { padding-right: 52px; }
  .secret .peek { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--muted); }
  .generate { justify-self: start; font-size: var(--text-sm); }
  .code-input { font-size: 1.5rem !important; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; text-align: center; max-width: 280px; }
  .check { display: flex; gap: var(--space-3); align-items: flex-start; min-height: var(--tap); padding: var(--space-2) 0; cursor: pointer; }
  .check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
  .check span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
  .check em { color: var(--open-text); font-style: normal; font-size: var(--text-sm); }
  .check-list { display: grid; gap: var(--space-1); }
  .phone-row { display: grid; grid-template-columns: minmax(124px, 38%) minmax(0, 1fr); gap: var(--space-2); }
  .phone-row select { padding-left: var(--space-3); padding-right: 32px; background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; }
  .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  /* Segmented control (kit 57:91): native radios on a Voile track, the chosen one in Encre. */
  .segmented { display: flex; padding: 4px; gap: 4px; background: var(--sunken); border-radius: var(--radius-full); width: 100%; min-height: 56px; }
  .segmented label { flex: 1; position: relative; min-width: 0; display: grid; }
  .segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .segmented span { display: grid; place-items: center; min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-full); font-weight: 700; font-size: var(--text-base); color: var(--ink); text-align: center; transition: background var(--dur-2) var(--ease-out), color var(--dur-2); }
  .segmented input:checked + span { background: var(--brand); color: var(--brand-ink); }
  .segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
  .segmented.fit { width: auto; display: inline-flex; }

  /* Filter pills (kit 57:35) */
  .chips { display: flex; gap: var(--space-2); }
  .chips.wrap { flex-wrap: wrap; }
  .chips.scroll-x { overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 3px var(--gutter); scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; }
  .chips.scroll-x::-webkit-scrollbar { display: none; }
  .chip { flex: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: 0 var(--space-5); border-radius: var(--radius-full); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; font-size: var(--text-base); scroll-snap-align: start; text-decoration: none; }
  .chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
  .chip.setup { border-style: dashed; color: var(--muted); }
  .chip.setup small { color: var(--brand-text); font-weight: 600; }
  .chip-check { position: relative; display: inline-flex; }
  .chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .chip-check span { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: 0 var(--space-4); border-radius: var(--radius-full); border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: var(--text-sm); }
  .chip-check small { font-weight: 500; color: var(--muted); }
  .chip-check input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
  .chip-check input:checked + span small { color: inherit; }
  .chip-check input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
  @media (hover: hover) and (pointer: fine) { .chip:hover, .chip-check:hover span { border-color: var(--ink); } }

  /* Switch (kit 57:69): 56 x 32; on = Encre track and a Rose knob. */
  .switch { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--tap); cursor: pointer; position: relative; font-weight: 600; }
  .switch input { position: absolute; opacity: 0; width: 56px; height: 32px; margin: 0; cursor: pointer; }
  .switch-track { flex: none; width: 56px; height: 32px; border-radius: var(--radius-full); background: var(--surface); border: 1.5px solid var(--line-strong); position: relative; transition: background var(--dur-2) var(--ease-out); }
  .switch-track::after { content: ''; position: absolute; top: 3.5px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform var(--dur-2) var(--ease-out), background var(--dur-2); }
  .switch input:checked + .switch-track { background: var(--encre); border-color: var(--encre); }
  .switch input:checked + .switch-track::after { transform: translateX(23px); background: var(--rose); }
  .switch input:focus-visible + .switch-track { outline: 3px solid var(--focus); outline-offset: 3px; }
  .switch input:disabled + .switch-track { opacity: 0.45; }
  .switch span:last-child { display: inline-flex; flex-direction: column; gap: 2px; }
  .switch.big span:last-child strong { font-size: var(--text-base); }
  .switch small { color: var(--muted); font-weight: 400; }
  .check-list .switch span:last-child { flex-direction: row; align-items: center; gap: var(--space-2); }

  /* Badges and tags */
  .badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 4px 12px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 700; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink); white-space: nowrap; }
  .badge.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
  .badge.open { background: var(--open); border-color: var(--open); color: var(--open-ink); }
  .badge.soon { background: var(--warn-soft); color: var(--warn); }
  .badge.warn { background: var(--warn-soft); color: var(--warn); }
  .badge.muted { background: var(--sunken); border-color: var(--sunken); color: var(--muted); }
  .badge.brand { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--ink); }
  .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--sunken); font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
  .tag.warn { background: var(--warn-soft); color: var(--warn); }
  .pill { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding: 0 var(--space-4); border-radius: var(--radius-full); border: 0; background: var(--surface); color: var(--ink); font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }
  .pill::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); box-shadow: inset 0 0 0 1px var(--encre); flex: none; }
  .pill .icon { display: none; }
  .pill.low::before { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--rose-deep); }

  /* Skeleton, empty state, spinner */
  .skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--sunken), var(--line), var(--sunken)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
  .skeleton.line { height: 18px; width: 60%; }
  .skeleton.line.wide { height: 34px; width: 80%; }
  .skeleton.block { height: 180px; }
  .skeleton.block.tall { height: 420px; }
  @keyframes shimmer { to { background-position: -200% 0; } }
  @media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
  .empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-10) var(--space-6); text-align: center; color: var(--ink); background: var(--sunken); border: 0; border-radius: var(--radius-xl); }
  .empty .mascot { width: min(220px, 60%); height: auto; }
  .empty h2, .empty h1 { color: var(--ink); }
  /* A whole page that is only an empty state (offline at start) keeps a heading of a section's size. */
  .empty h1 { font-size: var(--text-xl); line-height: 1.25; letter-spacing: -0.015em; }
  .empty .icon { color: var(--brand-text); }
  .spinner { width: 32px; height: 32px; margin: var(--space-4) auto 0; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }

  /* Progress of steps */
  .progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); counter-reset: none; }
  .progress li { display: grid; justify-items: center; gap: 6px; font-size: var(--text-xs); color: var(--muted); text-align: center; position: relative; }
  .progress li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sunken); color: var(--muted); font-weight: 700; font-size: var(--text-xs); }
  .progress li[aria-current="step"] { color: var(--ink); font-weight: 650; }
  .progress li[aria-current="step"] span { background: var(--brand); color: var(--brand-ink); }
  .progress li.done span { background: var(--rose-light); color: var(--encre); }

  /* Accordion: Voile rows; the open one turns Rose pâle, its round button Encre. */
  .accordion { display: grid; gap: var(--space-3); }
  .qa { background: var(--sunken); border: 0; border-radius: 20px; }
  .qa[open] { background: var(--pale); }
  .qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 64px; padding: var(--space-4) var(--space-6); font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none; border-radius: 20px; }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary .icon { flex: none; width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--surface); color: var(--ink); transition: transform var(--dur-2) var(--ease-out); }
  .qa[open] summary .icon { transform: rotate(180deg); background: var(--brand); color: var(--brand-ink); }
  .qa-body { padding: 0 var(--space-6) var(--space-6); display: grid; gap: var(--space-3); color: var(--ink); line-height: 1.55; }

  /* Toast: a dark pill. */
  .toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(var(--tabbar-h) + var(--space-3)); transform: translateX(-50%); width: max-content; max-width: min(560px, calc(100% - 2 * var(--space-4))); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-6); border-radius: var(--radius-full); background: var(--inverse); color: var(--inverse-ink); box-shadow: var(--shadow-3); font-weight: 700; animation: rise var(--dur-3) var(--ease-out); }
  .toast.error { background: var(--danger); color: #fff; }
  [data-theme="dark"] .toast.error { color: #151413; }
  .toast-action { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; min-height: var(--tap); padding: 0 var(--space-2); }
  @media (min-width: 768px) { .toast { bottom: var(--space-6); } }
  @keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

  /* Tip (hover bubble, mouse only) */
  .tip { position: fixed; left: 0; top: 0; z-index: var(--z-tip); width: 260px; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--inverse); color: var(--inverse-ink); box-shadow: var(--shadow-2); pointer-events: none; display: grid; gap: 2px; }
  .tip h3 { font-size: var(--text-base); }
  .tip .when, .tip .hint { color: inherit; opacity: 0.85; font-size: var(--text-sm); }
  .tip .price { font-size: var(--text-xl); font-weight: 800; color: var(--rose); }
  /* The slot panel: next to its cell, interactive (the pointer may move into it), always inside the screen. */
  .tip.slot-pop { width: min(320px, calc(100vw - 16px)); padding: var(--space-5); border-radius: 20px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-3); pointer-events: auto; max-height: calc(100vh - 16px); overflow: auto; }
  .slot-panel { display: grid; gap: var(--space-3); }
  .slot-chip { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .slot-route { font-weight: 800; font-size: var(--text-lg); line-height: 1.2; }
  .slot-when { color: var(--muted); font-size: var(--text-sm); margin-top: calc(-1 * var(--space-2)); }
  .slot-price { display: grid; font-size: 2.25rem; font-weight: 800; line-height: 1.05; }
  .slot-text { font-size: var(--text-sm); }
  .slot-read { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--text-xs); }
  .slot-done { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); border-radius: var(--radius); background: var(--brand-soft); font-weight: 700; font-size: var(--text-sm); }
  .slot-panel .hint { font-size: var(--text-xs); }
  .slot-panel .hint a { color: var(--brand-text); font-weight: 700; }
  .slot-panel [data-reload] { justify-self: start; }
  .slot-sheet .slot-panel { padding-bottom: var(--space-2); }
  .slot-sheet .slot-panel .slot-route { display: none; }
  .dot[aria-expanded="true"] { outline: 3px solid var(--focus); outline-offset: 2px; }

  /* Sheet: bottom sheet on a phone, dialog on a wider screen */
  .sheet { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 0 0 env(safe-area-inset-bottom); border: 0; border-radius: 28px 28px 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); overflow: auto; overscroll-behavior: contain; }
  .sheet[open] { animation: sheet-up var(--dur-3) var(--ease-out); }
  .sheet::backdrop { background: var(--scrim); }
  .sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: var(--space-2) auto 0; }
  .sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-5) 0; position: sticky; top: 0; background: var(--surface); z-index: 1; }
  .sheet-head h2 { font-size: var(--text-xl); outline: none; }
  .sheet-body { padding: var(--space-4) var(--space-5) var(--space-6); display: grid; gap: var(--space-4); }
  .sheet-actions { display: grid; gap: var(--space-2); }
  @media (min-width: 768px) {
    .sheet { width: min(520px, calc(100% - 48px)); margin: auto; border-radius: 28px; max-height: 86dvh; padding: 0; }
    .sheet.wide { width: min(var(--sheet-wide, 880px), calc(100% - 48px)); }
    .sheet[open] { animation: pop var(--dur-2) var(--ease-out); }
    .sheet-grip { display: none; }
    .sheet-head { padding-top: var(--space-5); }
  }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes pop { from { transform: scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
  .menu-list { display: grid; gap: 2px; }
  .menu-item { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); text-decoration: none; font-weight: 600; text-align: left; width: 100%; }
  @media (hover: hover) and (pointer: fine) { .menu-item:hover { background: var(--sunken); } }

  /* Top bar (kit 58:318 / 58:319). Desktop: a white band holding a Voile pill bar with the logo, the links and the
     actions. Phone: logo, balance chip, and a round Encre button that opens the menu (M06). */
  .topbar { position: sticky; top: 0; z-index: var(--z-header); background: var(--header); padding-top: env(safe-area-inset-top); }
  .topbar-inner { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; display: flex; align-items: center; gap: var(--space-2); min-height: 72px; padding: 0 var(--gutter); }
  .topbar .brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; min-height: var(--tap); flex: none; }
  .topbar .brand .mark { width: 52px; height: auto; }
  .topbar .brand .wordmark { width: 125px; height: auto; }
  [data-theme="dark"] .brand img, [data-theme="dark"] .mascot:not(.keep) { filter: invert(1) hue-rotate(180deg); }
  @media (max-width: 359px) { .topbar .brand .wordmark { width: 96px; } .topbar .brand .mark { width: 40px; } }
  .topnav { display: none; }
  .top-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
  .top-create, .top-signin { display: none; }
  .menu-wrap { position: relative; }
  .menu-btn { background: var(--surface); border: 1.5px solid var(--line-strong); }
  #menu-btn { background: var(--encre); color: #fff; border: 0; }
  [data-theme="dark"] #menu-btn { border: 1.5px solid var(--line-strong); }
  #menu-btn .burger { display: block; }
  #menu-btn .head { display: none; }
  .balance.pill { background: var(--sunken); }
  .lang-btn { display: none; font-size: 0.9375rem; font-weight: 700; width: auto; min-width: var(--tap); padding: 0 var(--space-3); }
  .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-menu); width: min(320px, calc(100vw - 2 * var(--space-4))); max-height: calc(100dvh - 90px); overflow: auto; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: var(--space-2); animation: pop var(--dur-2) var(--ease-out); }
  .menu.lang-menu { width: auto; min-width: 72px; padding: var(--space-1); }
  .lang-menu [role="menuitemradio"] { justify-content: center; font-weight: 700; letter-spacing: 0.04em; }
  .menu [role^="menuitem"] { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--tap); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); text-decoration: none; font-weight: 600; text-align: left; }
  .menu [role="menuitemradio"] { justify-content: space-between; }
  .menu [role="menuitemradio"][aria-checked="true"] { color: var(--ink); font-weight: 800; }
  @media (hover: hover) and (pointer: fine) { .menu [role^="menuitem"]:hover { background: var(--sunken); } }
  .menu-who { display: grid; padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: var(--space-2); font-weight: 700; }
  .menu-who span { color: var(--muted); font-size: var(--text-sm); font-weight: 450; overflow: hidden; text-overflow: ellipsis; }
  .menu-nav { display: grid; gap: 2px; }
  .menu-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 var(--space-4); border-radius: var(--radius-full); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
  .menu-nav a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); }
  .menu-langs { display: flex; gap: var(--space-2); padding: var(--space-4) var(--space-2) var(--space-2); }
  .menu-langs button { min-width: 56px; min-height: 40px; border-radius: var(--radius-full); border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; }
  .menu-langs button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
  .menu-balance { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2); min-height: 52px; padding: 0 var(--space-4); border-radius: var(--radius); background: var(--brand-soft); color: var(--ink); font-weight: 700; text-decoration: none; border: 0; width: calc(100% - 2 * var(--space-2)); text-align: left; }
  .menu-sep { height: 1px; background: var(--line); margin: var(--space-2); border: 0; }
  @media (max-width: 767px) {
    /* It lives in the header's layer, under the tab bar: it stops above the bar and scrolls, so its last items stay reachable. */
    .menu { position: fixed; left: 0; right: 0; top: calc(72px + env(safe-area-inset-top)); width: auto; max-height: calc(100dvh - 72px - env(safe-area-inset-top) - var(--tabbar-h)); border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: var(--space-2) var(--gutter) var(--space-4); box-shadow: 0 30px 0 100vh var(--scrim); }
  }
  /* Tab bar (kit 58:425), signed in on a phone: the current tab sits on Rose clair. */
  .tabbar { position: fixed; z-index: var(--z-tabbar); left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: var(--space-1); height: var(--tabbar-h); padding: var(--space-2) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom)); background: var(--header); border-top: 1.5px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 60px; border-radius: 18px; color: var(--ink); text-decoration: none; font-size: 0.8125rem; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .tabbar a[aria-current="page"] { background: var(--brand-soft); font-weight: 800; }
  .tabbar .tab-main { color: var(--ink); }
  /* Footer (kit 58:426): Encre, rounded on top, the brand then four columns of links. */
  .site-foot { width: 100%; margin: var(--space-12) 0 0; padding: var(--space-12) var(--gutter) var(--space-10); background: #151413; color: #fff; border-radius: 32px 32px 0 0; font-size: var(--text-sm); }
  .site-foot a { color: #fff; }
  .site-foot :focus-visible { outline-color: #fff; }
  .foot-inner { max-width: var(--content); margin: 0 auto; display: grid; gap: var(--space-10); }
  .foot-top { display: grid; gap: var(--space-8); }
  .foot-brand { display: grid; gap: var(--space-3); align-content: start; max-width: 260px; }
  .foot-brand img { width: 170px; height: auto; }
  .foot-brand p { color: #fff; font-size: var(--text-base); }
  .foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
  .foot-col { min-width: 0; }
  .foot-col h2 { font-size: 0.9375rem; font-weight: 800; color: var(--rose-light); margin-bottom: var(--space-3); }
  .foot-col ul { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; font-size: var(--text-base); text-decoration: none; }
  .foot-col a:hover { text-decoration: underline; }
  .foot-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); }
  .foot-note { color: #fff; font-size: var(--text-sm); max-width: 60ch; }
  .foot-bottom img { width: 70px; height: auto; flex: none; }
  .foot-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
  .foot-links a { color: inherit; min-height: 32px; display: inline-flex; align-items: center; }
  .offline.sim-bar { position: static; background: var(--rose-light); color: var(--encre); }
  .offline { position: sticky; top: calc(72px + env(safe-area-inset-top)); z-index: var(--z-header); margin: 0; padding: var(--space-2) var(--gutter); background: var(--warn-soft); color: var(--warn); font-size: var(--text-sm); font-weight: 600; text-align: center; }
  @media (min-width: 768px) {
    .tabbar { display: none; }
    .topbar { padding: var(--space-3) var(--gutter); }
    .topbar-inner { background: var(--sunken); border-radius: var(--radius-full); padding: 8px 10px 8px 20px; min-height: 64px; max-width: var(--content); }
    .topnav { display: flex; gap: 2px; margin-left: var(--space-2); }
    .topnav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-3); border-radius: var(--radius-full); color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
    .topnav a[aria-current="page"] { background: var(--surface); font-weight: 800; }
    .topnav a:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
    .top-create, .top-signin { display: inline-flex; }
    .top-signin:not(.primary) { --btn-bg: transparent; --btn-line: transparent; font-size: var(--text-base); }
    .lang-btn { display: inline-grid; background: transparent; }
    #theme-btn { background: transparent; }
    #menu-btn { background: var(--brand-soft); color: var(--ink); border: 1.5px solid var(--encre); }
    #menu-btn .burger { display: none; }
    #menu-btn .head { display: block; }
    html:not([data-auth="in"]):not([data-auth="guest"]) #menu-wrap { display: none; }
    .balance.pill { background: var(--surface); }
    .menu-nav, .menu-langs, .menu-nav + .menu-sep { display: none; }
    .site-foot { padding: 64px var(--gutter) var(--space-12); border-radius: 48px 48px 0 0; }
  }
  @media (min-width: 1024px) {
    .foot-top { grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); gap: var(--space-12); }
    .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
  }
  @media (min-width: 1280px) {
    .topbar { padding: var(--space-4) var(--gutter); }
    .topbar-inner { min-height: 72px; padding: 10px 12px 10px 20px; }
    .topbar .brand .mark { width: 72px; }
    .topbar .brand .wordmark { width: 150px; }
    .topnav { margin-left: var(--space-6); }
    .topnav a { padding: 0 var(--space-4); }
  }
  /* Tablets: the create button keeps its icon (its words stay for screen readers) so the bar fits. */
  @media (min-width: 768px) and (max-width: 1099px) {
    .topbar-inner { padding-left: 14px; }
    .topbar .brand .wordmark { display: none; }
    .topnav { margin-left: 0; }
    .topnav a { padding: 0 var(--space-2); }
    .btn.top-create { width: var(--tap); padding: 0; justify-content: center; }
    .top-create:not(.top-signup) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .btn.top-create.top-signup { width: auto; padding: 0 var(--space-4); }
  }

  /* Calendar */
  .date-pick { position: relative; }
  .native-date { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
  .date-trigger { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 48px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); text-align: left; font-weight: 550; }
  .date-trigger[aria-expanded="true"] { border-color: var(--brand); }
  .calendar { position: fixed; z-index: var(--z-menu); left: 0; right: 0; bottom: 0; padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom)); background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-3); border: 1px solid var(--line); display: grid; gap: var(--space-3); animation: sheet-up var(--dur-3) var(--ease-out); max-height: 90dvh; overflow: auto; }
  .cal-head { display: flex; align-items: center; justify-content: space-between; }
  .cal-title { font-size: var(--text-lg); text-transform: capitalize; outline: none; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .cal-grid .dow { text-align: center; font-size: var(--text-xs); color: var(--muted); font-weight: 650; padding: var(--space-1) 0; text-transform: capitalize; }
  .cal-grid .day { position: relative; display: grid; place-items: center; min-height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; font-variant-numeric: tabular-nums; font-weight: 550; }
  .cal-grid .day:disabled { color: var(--line-strong); cursor: default; }
  .cal-grid .day.later:not(:disabled) { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 5px, var(--sunken) 5px 7px); }
  .cal-grid .day.today span { text-decoration: underline; text-underline-offset: 4px; }
  .cal-grid .day.flex, .cal-grid .day.span { background: var(--brand-soft); }
  .cal-grid .day.end { outline: 2px solid var(--brand); outline-offset: -2px; }
  .cal-grid .day.picked { background: var(--brand); color: var(--brand-ink); }
  .cal-grid .day .seat { position: absolute; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--open); }
  .cal-grid .day.picked .seat { background: var(--brand-ink); }
  @media (hover: hover) and (pointer: fine) { .cal-grid .day:not(:disabled):not(.picked):hover { background: var(--sunken); } }
  .cal-key { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-xs); color: var(--muted); }
  .cal-key span { display: inline-flex; align-items: center; gap: 6px; }
  .cal-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
  .cal-key .key-sale { background: var(--surface); border: 1px solid var(--line-strong); }
  .cal-key .key-later { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line-strong) 3px 4px); }
  .cal-key .key-open { background: var(--open); border-radius: 50%; }
  .cal-key .key-span { background: var(--brand-soft); }
  .cal-done { justify-self: stretch; }
  @media (min-width: 768px) {
    .calendar { position: absolute; left: 0; right: auto; bottom: auto; top: calc(100% + 6px); width: 340px; border-radius: var(--radius-lg); padding: var(--space-4); animation: pop var(--dur-2) var(--ease-out); }
    .cal-done { display: none; }
  }

  /* Slot cells (kit 57:46): 36 px circles with a letter. Open = Rose doux + 2 px Encre + an extra-bold letter
     (never the colour alone); full = Voile; watched = dashed Rose profond; not up to date = dashed Bord. */
  .dot { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 0; background: var(--dot); color: var(--muted); font-size: 0.9375rem; font-weight: 600; transition: transform var(--dur-1) var(--ease-out); }
  .dot span { line-height: 1; }
  .dot.on { background: var(--open); box-shadow: inset 0 0 0 2px var(--encre); color: var(--encre); font-weight: 800; }
  .dot.on.band-low { background: var(--band-low); }
  .dot.on.band-mid { background: var(--band-mid); }
  .dot.on.band-high { background: var(--band-high); }
  .dot.stale { background: var(--surface); box-shadow: none; border: 1.5px dashed var(--line-strong); color: var(--muted); }
  .dot.watched:not(.on) { background: var(--surface); border: 2px dashed var(--rose-deep); color: var(--rose-deep); font-weight: 700; }
  .dot.watched.on { outline: 2px dashed var(--rose-deep); outline-offset: 2px; }
  .dot:focus-visible { background: var(--rose); box-shadow: inset 0 0 0 2px var(--encre); color: var(--encre); outline: 3px solid var(--focus); outline-offset: 2px; }
  .dot::before { content: ''; position: absolute; inset: -4px; }
  @media (hover: hover) and (pointer: fine) { .dot:hover { transform: scale(1.08); } }
  .dot.half { width: 100%; height: 52px; border-radius: var(--radius); justify-content: space-between; display: flex; align-items: center; padding: 0 var(--space-5); font-size: var(--text-base); color: var(--ink); }
  .dot.half.on { color: var(--encre); }
  .dot.half::before { inset: -4px 0; }

  /* Mascot illustrations (decorative, alt="") and the speech bubble (kit 57:92). */
  .mascot { display: block; height: auto; }
  .success-art { justify-self: center; margin: 0 auto var(--space-2); }
  .bubble { display: inline-block; background: var(--brand-soft); color: var(--ink); border-radius: 24px 24px 6px 24px; padding: 14px 22px; font-weight: 700; line-height: 1.35; max-width: 280px; }
  .mood-card { border-radius: var(--radius-xl); background: var(--sunken); padding: var(--space-6); }
  .mood-card.rose { background: var(--brand-soft); }
  .tone-pale { background: var(--pale); }
  .tone-voile { background: var(--sunken); }
  .tone-rose { background: var(--brand-soft); }
  .tone-ink { background: #151413; color: #fff; }
  .tone-ink .lede, .tone-ink .hint, .tone-ink p { color: #fff; }
  .box { border-radius: var(--radius-lg); padding: var(--space-6); }
  .box.bordered { border: 1.5px solid var(--line); background: var(--surface); }
  .eyebrow { color: var(--rose-deep); font-weight: 700; font-size: var(--text-sm); }
  .tone-ink .eyebrow { color: var(--rose); }
}

@layer pages {
  /* Board */
  /* The last reading, as the Rose clair pill of Figma D02, with the live dot; amber when the reading is late. */
  .status-line { display: inline-flex; align-items: center; gap: var(--space-2); justify-self: start; padding: 8px 16px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--ink); font-size: var(--text-sm); font-weight: 600; }
  .status-line.stale { background: var(--warn-soft); color: var(--warn); }
  .status-line.stale .live-dot { background: var(--warn); animation: none; }
  .board-hero .hero-side { justify-items: end; }
  @media (max-width: 767px) { .board-hero .hero-side { display: none; } }
  .board-tools { display: grid; gap: var(--space-3); }
  .legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); color: var(--muted); font-size: var(--text-sm); }
  .legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
  .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--dot-line); background: var(--dot); }
  .swatch.open { background: var(--open); border-color: var(--open); }
  .swatch.stale { background: repeating-linear-gradient(135deg, var(--dot) 0 2px, var(--sunken) 2px 4px); border-style: dashed; }
  .swatch.watched { background: var(--surface); border-color: var(--brand); }
  .swatch.band-low { background: var(--band-low); border-color: var(--encre); }
  .swatch.band-mid { background: var(--band-mid); border-color: var(--encre); }
  .swatch.band-high { background: var(--band-high); border-color: var(--encre); }
  /* The box takes the width of the legend row; the notes below wrap at that width (width 0, min-width 100%). */
  .legend-box { display: grid; gap: var(--space-2); width: fit-content; max-width: 100%; }
  /* The two Snap tickets: round for a seat assigned, square with a corner mark for a seat without a place. */
  .dot.seatless { border-radius: 10px; }
  .dot.half.seatless { border-radius: var(--radius); }
  .dot.on.seatless::after { content: ''; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
  .dot.half.on.seatless::after { top: 6px; right: 8px; }
  .swatch.shape { background: var(--surface); border-color: var(--ink); }
  /* Both tickets open: the round cell of the seat assigned, with a small square in the colour of the seat without a place. */
  .dot.both::after { content: ''; position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; box-sizing: border-box; border-radius: 4px; border: 2px solid var(--encre); background: var(--badge, var(--open)); }
  .dot.half.both::after { top: 6px; right: 8px; }
  .dot.both.also-low { --badge: var(--band-low); }
  .dot.both.also-mid { --badge: var(--band-mid); }
  .dot.both.also-high { --badge: var(--band-high); }
  .swatch.shape.both { position: relative; }
  .swatch.shape.both::after { content: ''; position: absolute; top: -6px; right: -7px; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--ink); background: var(--surface); }
  .swatch.shape.seatless { border-radius: 4px; background: linear-gradient(var(--ink), var(--ink)) top right / 5px 5px no-repeat, var(--surface); }
  .legend-gap { margin-left: var(--space-2); }
  .kind-mark { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; }
  .kind-mark.seatless { border-radius: 3px; background: linear-gradient(currentColor, currentColor) top right / 5px 5px no-repeat; }
  .tickets-row .chip { min-height: 40px; padding: 0 var(--space-4); font-size: var(--text-sm); }
  .kind-card { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--sunken); }
  .kind-pop { position: fixed; top: 0; left: 0; z-index: 60; width: min(430px, calc(100vw - 16px)); border: 1.5px solid var(--line); box-shadow: var(--shadow-2); color: var(--ink); pointer-events: none; }
  .kind-pop[hidden] { display: none; }
  .kind-pop .hint { font-size: var(--text-xs); }
  .kind-card h3 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-base); font-weight: 800; }
  .kind-card ul { display: grid; gap: var(--space-1); padding-left: 1.1em; font-size: var(--text-sm); line-height: 1.5; }
  .slot-offers { display: grid; gap: var(--space-4); }
  .slot-offers.two .slot-offer + .slot-offer { border-top: 1.5px solid var(--line); padding-top: var(--space-4); }
  .slot-offer { display: grid; gap: var(--space-2); }
  .slot-offer-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
  .slot-offer-head strong { font-weight: 800; }
  .slot-offer-tag { color: var(--muted); font-size: var(--text-xs); margin-top: -4px; }
  .slot-offers.two .slot-price { font-size: 1.75rem; }
  .legend-box .hint { width: 0; min-width: 100%; font-size: var(--text-xs); }
  .board-wrap { overflow: auto; max-height: 72dvh; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
  .board { width: 100%; font-size: var(--text-sm); }
  .board thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: var(--space-3) var(--space-1); border-bottom: 1px solid var(--line); text-align: center; font-weight: 600; color: var(--muted); }
  .board thead th span { display: block; font-size: var(--text-xs); text-transform: capitalize; }
  .board thead th strong { display: block; color: var(--ink); font-size: var(--text-base); }
  .board .route-col { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; padding: var(--space-2) var(--space-4); white-space: nowrap; font-weight: 650; border-right: 1px solid var(--line); }
  .board thead .route-col { z-index: 3; }
  .board tbody tr + tr td, .board tbody tr + tr th { border-top: 1px solid var(--line); }
  .board td { padding: var(--space-2) var(--space-1); text-align: center; content-visibility: auto; }
  .board .cell { display: flex; justify-content: center; gap: 6px; }
  .route-group { display: grid; gap: var(--space-3); }
  .group-title { font-size: var(--text-base); color: var(--muted); font-weight: 650; }
  .route-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4) 0 var(--space-3); box-shadow: var(--shadow-1); display: grid; gap: var(--space-3); content-visibility: auto; contain-intrinsic-size: auto 170px; }
  .route-card header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 var(--space-4); }
  .route-card h3 { font-size: var(--text-base); }
  .strip { display: grid; grid-auto-flow: column; grid-auto-columns: 56px; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--space-4); padding: 0 var(--space-4) var(--space-1); scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip-day { display: grid; gap: 4px; scroll-snap-align: start; }
  .strip-date { display: grid; justify-items: center; font-size: var(--text-xs); color: var(--muted); line-height: 1.2; }
  .strip-date span { text-transform: capitalize; }
  .strip-date strong { color: var(--ink); font-size: var(--text-sm); }
  .strip-empty { color: var(--muted); font-size: var(--text-sm); padding: var(--space-2) 0; grid-column: 1 / -1; }
  .board-body { display: grid; gap: var(--space-5); }
  /* The closing band of a page (Figma D01, D02): Splinter, a heading, one action. Rose clair, or Encre with a white Splinter. */
  .follow-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-6) var(--space-10); padding: var(--space-10) var(--space-12); border-radius: var(--radius-xl); background: var(--brand-soft); color: var(--ink); }
  .follow-band > div { display: grid; gap: var(--space-2); }
  .follow-band h2 { font-size: var(--text-2xl); }
  .follow-band.tone-ink { background: #151413; color: #fff; }
  .follow-band.tone-ink h2 { color: #fff; }
  @media (min-width: 768px) and (max-width: 1023px) {
    .follow-band { grid-template-columns: auto minmax(0, 1fr); padding: var(--space-8); }
    .follow-band > .btn { grid-column: 2; justify-self: start; }
  }
  @media (max-width: 767px) {
    .follow-band { grid-template-columns: minmax(0, 1fr); justify-items: start; padding: var(--space-8) var(--space-6); }
    .follow-band .mascot { width: 120px; }
  }
  .slot-when { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
  .slot-when span { display: inline-block; }
  .slot-when span::first-letter { text-transform: uppercase; }
  .slot-price { font-size: var(--text-3xl); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
  @media (min-width: 768px) {
    .board-tools { grid-template-columns: 1fr auto; align-items: center; }
    .chips.scroll-x { margin: 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; }
  }

  /* Landing */
  .landing-hero h1 { max-width: 16ch; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); max-width: 520px; }
  .landing-hero .hero-side { gap: 0; }
  .landing-hero .hero-art { position: relative; z-index: 1; margin-bottom: -18px; }
  .now-card { width: 100%; max-width: 360px; padding: var(--space-6); border-radius: var(--radius-lg); display: grid; gap: var(--space-1); }
  /* The side keeps a set width: sized on its content, the sentence of the card would widen it and squeeze the heading. */
  @media (min-width: 768px) {
    .hero.landing-hero { grid-template-columns: minmax(0, 1fr) clamp(240px, 36vw, 360px); }
  }
  .now-count { font-size: var(--text-2xl); font-weight: 800; line-height: 1.15; }
  .now-when { font-size: var(--text-sm); }
  @media (max-width: 767px) {
    .landing-hero .hero-side { display: contents; }
    .landing-hero .hero-art { order: -1; margin: 0 auto; width: 150px; }
    .now-card { order: 1; width: 100%; }
    .link-page .hero-side { grid-template-columns: minmax(0, 1fr) auto; align-items: end; justify-items: start; }
    .link-page .hero-side .hero-art { width: 96px; }
  }
  .trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); }
  .trust li { display: inline-flex; align-items: center; gap: var(--space-2); }
  .gift { display: inline-flex; align-items: center; gap: var(--space-2); justify-self: start; padding: 6px 14px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--ink); font-weight: 700; font-size: var(--text-sm); }
  .live h2 { display: flex; align-items: center; gap: var(--space-2); }
  .live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--open); box-shadow: 0 0 0 0 var(--open); animation: pulse 2s var(--ease-out) infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } }
  @media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
  .preview { display: grid; gap: var(--space-2); }
  .preview-row { display: grid; gap: var(--space-2); padding: var(--space-2) 0; border-top: 1px solid var(--line); }
  .preview-row:first-child { border-top: 0; }
  .preview-row strong { font-size: var(--text-sm); }
  .preview-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: var(--space-1); }
  .preview-day { display: grid; justify-items: center; gap: 3px; }
  .preview-day small { font-size: 0.6875rem; color: var(--muted); text-transform: capitalize; }
  .preview-day i { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--dot-line); background: var(--dot); }
  .preview-day i.on { background: var(--open); border-color: var(--open); }
  .preview-day i.on.band-low { background: var(--band-low); border-color: var(--band-low); }
  .preview-day i.on.band-mid { background: var(--band-mid); border-color: var(--band-mid); }
  .preview-day i.on.band-high { background: var(--band-high); border-color: var(--band-high); }
  .preview-day i.stale { border-style: dashed; }
  @media (min-width: 768px) { .preview-row { grid-template-columns: 200px 1fr; align-items: center; } }
  .how, .pricing-teaser { display: grid; gap: var(--space-6); }
  .steps-list { display: grid; gap: var(--space-4); }
  .steps-list li { background: var(--pale); border: 0; border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
  .steps-list li .mascot { height: 100px; width: auto; justify-self: start; }
  .steps-list li p { color: var(--ink); line-height: 1.55; }
  .step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: var(--text-sm); }
  .feature-grid, .channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
  .feature-card, .channel-grid .card { display: grid; gap: var(--space-3); align-content: start; }
  .feature-card h3, .channel-grid .card h3 { font-size: var(--text-lg); }
  .feature-card p, .channel-grid .card p { color: var(--ink); line-height: 1.55; margin: 0; }
  .feature-grid .card, .channel-grid .card { background: var(--sunken); border: 0; border-radius: 20px; }
  .feature-grid.channels .feature-card .icon { color: var(--brand-text); }
  @media (min-width: 768px) { .steps-list { grid-template-columns: repeat(3, 1fr); } }

  /* Plans and pricing: tchouchs, the monthly Pass, the yearly Pass (on the right, marked) */
  .plans { display: grid; gap: var(--space-4); align-items: stretch; }
  .plan { position: relative; background: var(--sunken); border: 0; border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-5); grid-template-rows: auto auto auto 1fr auto; align-content: start; box-shadow: none; }
  .plan-top { display: grid; gap: var(--space-1); }
  .plan h3 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xl); }
  .plan h3 .icon { color: var(--brand-text); }
  .plan-for { color: var(--muted); font-size: var(--text-sm); }
  .plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-2); min-height: 1.2em; }
  .plan-price strong { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
  .plan-price span, .plan-price small { color: var(--muted); font-weight: 550; }
  .plan-billed { color: var(--muted); font-size: var(--text-sm); margin-top: calc(-1 * var(--space-3)); }
  .plan .ticks { align-self: start; }
  .plan-cta { align-self: end; }
  /* The marked offer (Figma D09): an Encre card, its price in Rose Ticket, its button Rose. */
  .plan.featured { border: 0; box-shadow: none; padding-top: var(--space-8); background: #151413; color: #fff; }
  .plan.featured .plan-price strong { color: var(--rose); }
  .plan.featured .plan-for, .plan.featured .plan-price span, .plan.featured .plan-billed, .plan.featured .ticks, .plan.featured h3 .icon { color: #fff; }
  .plan.featured .btn.primary { --btn-bg: var(--rose); --btn-fg: var(--encre); --btn-line: var(--encre); border-width: 2px; }
  .plan.featured :focus-visible { outline-color: #fff; }
  .plan-ribbon { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: var(--space-1); padding: 4px 12px; border-radius: var(--radius-full); background: var(--rose-light); color: var(--encre); font-size: var(--text-xs); font-weight: 800; white-space: nowrap; box-shadow: var(--shadow-1); }
  .plan-current { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--tap); border-radius: var(--radius-full); background: var(--open-soft); color: var(--open-text); font-weight: 650; }
  .ticks { display: grid; gap: var(--space-2); }
  .ticks li { display: flex; gap: var(--space-2); align-items: flex-start; }
  .ticks .icon { flex: none; color: var(--open-text); margin-top: 2px; }
  .plan.featured .ticks .icon { color: var(--rose); }
  .pack-pick { display: grid; gap: var(--space-2); }
  .pack-option { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "amount price" "unit save"; align-items: center; gap: 2px var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; transition: border-color var(--dur-1), background var(--dur-1); }
  .pack-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .pack-amount { grid-area: amount; font-weight: 700; }
  .pack-price { grid-area: price; font-weight: 750; text-align: right; }
  .pack-unit { grid-area: unit; color: var(--muted); font-size: var(--text-sm); }
  .pack-save { grid-area: save; justify-self: end; padding: 1px 8px; border-radius: var(--radius-full); background: var(--open-soft); color: var(--open-text); font-size: var(--text-xs); font-weight: 700; }
  .pack-option:has(input:checked) { border: 2px solid var(--brand); padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px); background: var(--brand-soft); }
  .pack-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  @media (hover: hover) and (pointer: fine) { .pack-option:hover { border-color: var(--brand); } }
  .pick-list { display: grid; gap: var(--space-3); }
  .pick-list div { display: grid; gap: var(--space-1); }
  .pick-list dt { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
  .pick-list dt .icon { color: var(--brand-text); }
  .pick-list dd { margin: 0; color: var(--muted); }
  @media (min-width: 768px) {
    .plans.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: var(--space-3); }
    .pick-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (min-width: 900px) {
    .plans.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: var(--space-3); }
  }
  /* On a phone the window lists the offers one under the other; the marked one keeps room for its ribbon. */
  @media (max-width: 899px) { .plans.count-3 .plan.featured { margin-top: var(--space-2); } }
  @media (max-width: 767px) { .plans.count-2 .plan.featured, .plans.count-1 .plan.featured { margin-top: var(--space-2); } }
  .sheet.plans-sheet.wide { --sheet-wide: 1040px; }

  .rule, .secure { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--muted); font-size: var(--text-sm); }
  .rule .icon, .secure .icon { flex: none; margin-top: 2px; }
  .secure.center { justify-content: center; }
  .rule-table { width: 100%; font-size: var(--text-sm); }
  .rule-table th, .rule-table td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
  .rule-table td:last-child, .rule-table th:last-child { text-align: right; white-space: nowrap; font-weight: 650; }

  /* Savings simulator (pricing page) and its teaser (home page) */
  .simulator { display: grid; gap: var(--space-5); }
  .sim-head { display: grid; gap: var(--space-2); }
  .sim-head h2 { display: flex; align-items: center; gap: var(--space-2); }
  .sim-head h2 .icon { color: var(--brand-text); }
  .sim-grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
  .sim-inputs { display: grid; gap: var(--space-4); align-content: start; }
  .sim-trips-label { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
  .sim-trips-label output { min-width: 3ch; padding: 2px 12px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand-text); font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
  .sim-inputs input[type="range"] { width: 100%; height: var(--tap); margin: 0; accent-color: var(--brand); cursor: pointer; background: transparent; border: 0; padding: 0; }
  .sim-prices summary { cursor: pointer; color: var(--brand-text); font-weight: 650; min-height: var(--tap); display: flex; align-items: center; }
  .sim-prices[open] summary { margin-bottom: var(--space-2); }
  .sim-price-grid { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 480px) { .sim-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .money-input { position: relative; }
  .money-input input { width: 100%; padding-right: 36px; font-variant-numeric: tabular-nums; }
  .money-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
  .sim-result { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--open-soft); }
  .sim-label { color: var(--open-text); font-weight: 650; }
  .sim-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); }
  .sim-big strong { font-size: var(--text-4xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--open-text); font-variant-numeric: tabular-nums; }
  .sim-big span { color: var(--open-text); font-weight: 600; }
  .sim-result.none { background: var(--sunken); }
  .sim-result.none .sim-label, .sim-result.none .sim-big strong, .sim-result.none .sim-big span { color: var(--muted); }
  .sim-sub { color: var(--ink); font-weight: 550; }
  .sim-bars { display: grid; gap: var(--space-3); }
  .sim-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: center; font-size: var(--text-sm); }
  .sim-bar strong { font-variant-numeric: tabular-nums; }
  .sim-bar-track { grid-column: 1 / -1; grid-row: 2; height: 12px; border-radius: var(--radius-full); background: var(--surface); overflow: hidden; }
  .sim-bar-track i { display: block; height: 100%; border-radius: inherit; transition: width var(--dur-3) var(--ease-out); }
  .sim-bar.classic i { background: var(--line-strong); }
  .sim-bar.snap i { background: var(--open); }
  .sim-cost { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); color: var(--ink); }
  .sim-cost .icon { flex: none; margin-top: 1px; color: var(--credit-ink); background: var(--credit); border-radius: 50%; padding: 2px; }
  .sim-disclaimer { display: flex; gap: var(--space-2); align-items: flex-start; }
  .sim-disclaimer .icon { flex: none; margin-top: 2px; }
  @media (min-width: 900px) { .sim-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
  .savings-teaser { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-3) var(--space-4); }
  .savings-teaser h2 { margin-bottom: var(--space-1); }
  .savings-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--open-soft); color: var(--open-text); }
  .savings-teaser .btn { grid-column: 1 / -1; justify-self: start; }
  @media (min-width: 768px) { .savings-teaser { grid-template-columns: auto minmax(0, 1fr) auto; } .savings-teaser .btn { grid-column: auto; } }

  /* Guest visit: the line under the top bar, the sign-up window, the guest pages */
  .guest-bar { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: calc(var(--z-header) - 1); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); max-width: 100%; margin: 0; padding: 2px max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter))); background: var(--brand-soft); color: var(--brand-text); font-size: var(--text-sm); }
  .guest-bar p { display: flex; align-items: center; gap: var(--space-2); min-width: 0; padding: var(--space-1) 0; }
  /* A fixed height (two lines on a phone, one wider up), held from the first paint when boot.js knows it is a guest visit. */
  .guest-bar { height: 52px; }
  .guest-bar p span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.35; }
  @media (min-width: 720px) { .guest-bar { height: 40px; } .guest-bar p span { -webkit-line-clamp: 1; } }
  /* Shown by the attribute boot.js sets before the first paint (not by [hidden], so its place is held at once). */
  .guest-bar { display: none; }
  html[data-guest-bar="1"] .guest-bar { display: flex; }
  .guest-bar:empty { visibility: hidden; }
  .guest-bar .icon { flex: none; }
  .guest-bar strong { font-weight: 700; }
  .guest-bar .icon-btn { width: 36px; height: 36px; color: inherit; }
  .gate .sheet-head { justify-content: center; text-align: center; padding-top: var(--space-5); }
  .gate .sheet-head > div { display: grid; justify-items: center; gap: var(--space-3); }
  .gate .sheet-head h2 { font-size: var(--text-2xl); letter-spacing: -0.02em; max-width: 22ch; }
  .gate .sheet-close { position: absolute; top: var(--space-3); right: var(--space-3); }
  .gate .sheet-body { text-align: left; padding-top: var(--space-3); }
  .gate .lede { text-align: center; margin: 0 auto; }
  .gate-art { position: relative; width: 72px; height: 72px; }
  .gate-ring { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); }
  .gate-coin { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--credit); color: var(--credit-ink); border: 3px solid var(--surface); }
  .gate-summary { display: flex; align-items: center; gap: var(--space-2); justify-self: center; max-width: 100%; padding: var(--space-2) var(--space-4); border-radius: var(--radius); background: var(--sunken); font-weight: 650; font-size: var(--text-sm); }
  .gate-summary .icon { flex: none; color: var(--brand-text); }
  .gate-ticks { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .gate-note { margin-top: calc(-1 * var(--space-2)); }
  .guest-hero { display: grid; justify-items: center; text-align: center; gap: var(--space-4); }
  .guest-hero .ticks { text-align: left; justify-self: stretch; }
  .guest-hero .stack { width: 100%; }
  .guest-panel h2 { display: flex; align-items: center; gap: var(--space-2); }
  .guest-panel h2 .icon { color: var(--brand-text); }
  .example-list .alert-card { border: 1.5px dashed var(--line-strong); box-shadow: none; }
  .draft-note, .guest-note { display: flex; align-items: flex-start; gap: var(--space-2); }
  .draft-note { background: var(--open-soft); color: var(--open-text); font-weight: 600; }
  .draft-note .icon, .guest-note .icon { flex: none; margin-top: 2px; }
  .guest-note .icon { color: var(--brand-text); }
  .chip.setup.wanted { border-color: var(--brand); border-style: solid; background: var(--brand-soft); color: var(--brand-text); }
  .or-line { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); font-size: var(--text-sm); }
  .or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .hero-notes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
  .trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
  .trust li { display: inline-flex; align-items: center; gap: var(--space-2); }
  .trust li:not(.gift) { color: var(--muted); }
  .link-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
  .page.guide-page { max-width: 720px; gap: var(--space-10); }
  .qstack, .qgroup, .qpair, .qtrio { display: grid; gap: var(--space-4); }
  .qgroup > h2 { margin-bottom: var(--space-2); }
  .qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-7); box-shadow: none; display: grid; gap: var(--space-4); align-content: start; }
  .qcard h2, .qcard h3 { font-size: var(--text-lg); }
  .qcard p { line-height: 1.65; max-width: 62ch; color: var(--muted); }
  /* « Ça convient » / « Mieux vaut un billet classique »: the two tinted boxes of the palette, Rose clair and Voile. */
  .qcard.yes { background: var(--brand-soft); border-color: transparent; }
  .qcard.no { background: var(--sunken); border-color: transparent; }
  .qsplit { display: grid; gap: var(--space-3); }
  .qside { background: var(--sunken); border-radius: var(--radius); padding: var(--space-5); display: grid; gap: var(--space-2); align-content: start; }
  .qside.snap { background: var(--brand-soft); }
  .qside p { color: var(--ink); }
  .qtag { font-size: var(--text-xs); font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
  .qside.snap .qtag { color: var(--brand-text); }
  @media (min-width: 768px) {
    .qpair { grid-template-columns: 1fr 1fr; }
    .qsplit { grid-template-columns: 1fr 1fr; }
    .qtrio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  /* Auth and onboarding */
  .auth { max-width: 520px; }
  /* Sign-in and sign-up (Figma D14): a Rose clair panel with Splinter next to the form on a wide screen. */
  .auth-art { display: none; }
  @media (min-width: 1024px) {
    .auth.auth-split { max-width: var(--content); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: var(--space-8); }
    .auth-art { display: grid; align-content: end; gap: var(--space-2); padding: var(--space-10); border-radius: var(--radius-xl); background: var(--brand-soft); }
    .auth-art .mascot { justify-self: center; align-self: center; margin-bottom: auto; }
    .auth-art-title { font-size: var(--text-3xl); font-weight: 800; line-height: 1.1; }
  }
  .auth-card { display: grid; gap: var(--space-6); padding: var(--space-8) var(--space-6); border: 1.5px solid var(--line); border-radius: var(--radius-xl); align-content: start; }
  .auth-card form { display: grid; gap: var(--space-4); }
  .auth-card.center { text-align: center; justify-items: center; }
  .auth-card.center .stack { width: 100%; }
  .auth-switch { color: var(--muted); text-align: center; }
  .forgot { justify-self: start; font-size: var(--text-sm); }
  .sent-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); }
  .sent-mark.ok { background: var(--open-soft); color: var(--open-text); }
  .account-line { display: flex; gap: var(--space-2); flex-wrap: wrap; }
  .account-line span { color: var(--muted); }
  .terms span { display: inline; }
  .welcome { text-align: center; justify-items: center; }
  .welcome .stack { width: 100%; }
  .welcome-art { position: relative; width: 160px; height: 110px; color: var(--brand-text); }
  .welcome-art .loco { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
  .welcome-art .coin { position: absolute; color: var(--credit); animation: drop 0.9s var(--ease-out) both; }
  .welcome-art .c1 { left: 18px; top: 10px; animation-delay: 0.1s; }
  .welcome-art .c2 { left: 68px; top: 0; animation-delay: 0.25s; }
  .welcome-art .c3 { right: 18px; top: 16px; animation-delay: 0.4s; }
  @keyframes drop { from { opacity: 0; transform: translateY(-24px) scale(0.6); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .welcome-art .coin { animation: none; } }

  /* Alerts */
  .balance-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-weight: 600; }
  .alert-list { display: grid; gap: var(--space-3); }
  /* Figma D06: Voile cards, Rose clair when a seat is open, Splinter on the left in the mood of the status. */
  .alert-card { background: var(--sunken); border: 0; border-radius: var(--radius-lg); padding: var(--space-5) var(--space-5) var(--space-4); display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--space-5); row-gap: var(--space-3); box-shadow: none; content-visibility: auto; contain-intrinsic-size: auto 180px; }
  .alert-card > * { grid-column: 2; }
  .alert-card > .alert-art { grid-column: 1; grid-row: 1 / span 6; align-self: center; justify-self: center; }
  .alert-art .mascot { width: 84px; height: auto; }
  .alert-card.is-open { background: var(--brand-soft); }
  .alert-card.paused { background: var(--sunken); box-shadow: none; }
  @media (max-width: 479px) {
    .alert-card { grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-3); }
    .alert-art .mascot { width: 56px; }
  }
  .alert-card header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-2) var(--space-3); }
  .alert-card h2 { font-size: var(--text-lg); }
  .alert-card .when { color: var(--ink); font-size: var(--text-sm); }
  .alert-card footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); border-top: 1px solid var(--line); padding-top: var(--space-2); margin-top: var(--space-1); }
  .paid { color: var(--muted); font-size: var(--text-sm); font-weight: 550; }
  .round-mark { color: var(--brand-text); }
  .history { display: grid; gap: var(--space-2); }
  .history li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
  .history li div { display: grid; }
  .history li span { color: var(--muted); font-size: var(--text-sm); }
  @media (min-width: 1024px) { .alert-list { grid-template-columns: 1fr 1fr; } }

  /* Alert form */
  .form-page { max-width: 760px; padding-bottom: 140px; }
  .alert-form { display: grid; gap: var(--space-5); }
  .form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-7); display: grid; gap: var(--space-5); }
  .form-section > h2 { font-size: var(--text-lg); }
  .route-pick { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: var(--space-2); }
  .route-pick .swap { margin-bottom: 2px; background: var(--sunken); }
  /* Narrow phones: the arrival goes under the departure and the swap, so a city name is never cut. */
  @media (max-width: 479px) {
    .route-pick { grid-template-columns: minmax(0, 1fr) auto; }
    .route-pick > :last-child { grid-column: 1 / -1; }
  }
  .mode-pick { display: grid; gap: var(--space-2); }
  .mode-pick label { position: relative; }
  .mode-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .mode-pick span { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius); }
  .mode-pick svg { grid-row: span 2; color: var(--brand-text); }
  .mode-pick small { color: var(--muted); grid-column: 2; }
  .mode-pick input:checked + span { border: 2px solid var(--brand); background: var(--brand-soft); }
  .mode-pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
  .trip-summary { background: var(--brand-soft); color: var(--brand-text); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-weight: 600; }
  .sticky-bar { position: fixed; z-index: var(--z-header); left: 0; right: 0; bottom: var(--tabbar-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--gutter); background: var(--header); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .sticky-bar .btn { flex: none; }
  .cost-line { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 650; font-size: var(--text-sm); min-width: 0; }
  .cost-line .icon { flex: none; color: var(--credit-ink); background: var(--credit); border-radius: 50%; padding: 3px; }
  .cost-line.short { color: var(--danger); }
  @media (max-width: 420px) { .sticky-bar { flex-direction: column; align-items: stretch; } .sticky-bar .btn { width: 100%; } }
  @media (min-width: 768px) {
    .sticky-bar { position: sticky; bottom: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
    .mode-pick { grid-template-columns: 1fr 1fr; }
    .form-page { padding-bottom: var(--space-12); }
  }

  /* Account */
  .settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .big-number { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.02em; }
  .big-number .icon { color: var(--credit-ink); background: var(--credit); border-radius: 50%; padding: 4px; }
  .ok-line { display: flex; align-items: center; gap: var(--space-2); color: var(--open-text); font-weight: 600; }
  .ledger { display: grid; }
  .ledger li { display: grid; grid-template-columns: 52px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .ledger .delta { font-weight: 800; font-variant-numeric: tabular-nums; }
  .ledger .delta.plus { color: var(--open-text); }
  .ledger .delta.minus { color: var(--ink); }
  .ledger .what { display: grid; }
  .ledger small, .ledger time { color: var(--muted); font-size: var(--text-xs); }
  @media (min-width: 1024px) { .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } #wallet, #ledger, #danger { grid-column: 1 / -1; } }

  /* FAQ, legal */
  .faq-page section, .legal-page section { display: grid; gap: var(--space-5); }
  .pricing-page .page-head { margin-bottom: var(--space-2); }
  .legal-page section p { color: var(--ink); }
}

@layer pages {
  /* Shared page heads (Figma SITE V2): the heading on the left, Splinter on the right. */
  .hero { display: grid; gap: var(--space-6); align-items: center; }
  .hero-text { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
  .hero h1 { font-size: var(--text-4xl); }
  .hero-side { display: grid; justify-items: center; gap: var(--space-3); }
  .hero-art { justify-self: center; max-width: min(45vw, 160px); }
  @media (min-width: 768px) {
    .hero { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-10); }
    .hero-art { max-width: none; }
  }
  .balance .short { display: none; }
  .nav-short { display: none; }
  @media (min-width: 768px) and (max-width: 1279px) { .nav-long { display: none; } .nav-short { display: inline; } }
  @media (max-width: 767px) { .balance .long { display: none; } .balance .short { display: inline; } }

  /* Route cards (D05) */
  .link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--space-3); }
  .link-card { position: relative; display: grid; gap: var(--space-4); align-content: space-between; min-height: 132px; padding: var(--space-5); border-radius: 20px; background: var(--sunken); color: var(--ink); text-decoration: none; }
  .link-card.has-open { background: var(--pale); }
  .link-card .badge { justify-self: start; }
  .link-card strong { font-size: var(--text-base); font-weight: 700; padding-right: var(--space-8); }
  .link-arrow { position: absolute; right: var(--space-5); bottom: var(--space-5); font-weight: 700; font-size: 1.125rem; }
  @media (hover: hover) and (pointer: fine) { .link-card:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }

  /* Route page (D04 / M07) */
  .stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
  .stat { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-5); border-radius: 20px; }
  .stat strong { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; line-height: 1.1; }
  .stat strong.accent { color: var(--rose); }
  .stat span { font-size: var(--text-sm); }
  .tone-ink.stat span { color: #fff; }
  @media (max-width: 479px) { .stat { padding: var(--space-4); } .stat span { font-size: var(--text-xs); } }
  .strips { display: grid; gap: var(--space-6); }
  .ls-strip { display: grid; gap: var(--space-2); min-width: 0; }
  .ls-name { font-weight: 800; }
  .ls-days { display: flex; gap: var(--space-2); overflow-x: auto; padding: 4px 2px var(--space-2); scrollbar-width: thin; }
  .ls-day { flex: none; display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-3); border-radius: 18px; background: var(--sunken); min-width: 56px; }
  .ls-day.has-open { background: var(--pale); box-shadow: inset 0 0 0 1.5px var(--encre); }
  .ls-date { display: grid; justify-items: center; font-size: var(--text-xs); font-weight: 700; line-height: 1.2; }
  .ls-date abbr { text-decoration: none; }
  .ls-date strong { font-size: 1.125rem; font-weight: 800; }
  .ls-day .dot { width: 40px; height: 40px; text-decoration: none; cursor: pointer; }
  .next-days { display: grid; gap: var(--space-5); }
  .read-next { display: grid; gap: var(--space-1); text-decoration: none; color: var(--ink); background: var(--brand-soft); }
  .read-next strong { font-size: var(--text-lg); }
  .commute-band, .cta-band { display: grid; gap: var(--space-5); align-items: center; border-radius: var(--radius-xl); }
  .commute-band h2, .commute-band p { color: #fff; }
  @media (min-width: 768px) {
    .commute-band, .cta-band { grid-template-columns: auto minmax(0, 1fr) auto; padding: var(--space-8); }
  }
  .tri-grid { display: grid; gap: var(--space-3); }
  @media (min-width: 768px) { .tri-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .tri-grid h3 { margin-bottom: var(--space-2); }

  /* When seats drop (D11) */
  .heat-card { display: grid; gap: var(--space-4); overflow: hidden; }
  .heat-wrap { overflow-x: auto; }
  .heat { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 6px; }
  .heat caption { text-align: left; font-weight: 800; font-size: var(--text-lg); padding: 0 6px var(--space-3); }
  .heat caption span { font-weight: 500; color: var(--muted); font-size: var(--text-sm); }
  .heat th { font-size: var(--text-sm); font-weight: 700; text-align: left; }
  .heat thead th { text-align: center; color: var(--muted); font-weight: 600; }
  .heat abbr { text-decoration: none; }
  .heat td { height: 36px; border-radius: 10px; text-align: center; font-size: var(--text-xs); font-weight: 700; }
  .heat .heat-count { visibility: hidden; }
  .heat.counts .heat-count { visibility: visible; }
  .heat-0 { background: var(--sunken); }
  .heat-1 { background: var(--pale); box-shadow: inset 0 0 0 1px var(--rose-soft); }
  .heat-2 { background: var(--rose-light); }
  .heat-3 { background: var(--rose-soft); }
  .heat-4 { background: var(--encre); color: #fff; }
  .heat-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
  .heat-key { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--muted); }
  .heat-key i { display: inline-block; width: 28px; height: 18px; border-radius: 6px; }
  .bars { display: grid; gap: var(--space-4); }
  .bars li { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
  .bar-name { font-weight: 700; }
  .bar-track { height: 22px; }
  .bar-track i { display: block; height: 100%; border-radius: var(--radius-full); background: var(--rose-soft); }
  .bar-track i.fast { background: var(--encre); }
  @media (max-width: 479px) { .bars li { grid-template-columns: 1fr auto; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }
  .cta-band .mascot { justify-self: start; }
  .cta-band h2 { font-size: var(--text-xl); }

  /* 404 (D17) */
  .notfound { display: grid; gap: var(--space-8); align-items: center; padding: var(--space-8) 0; }
  .notfound-text { display: grid; gap: var(--space-4); justify-items: start; }
  .notfound-art { justify-self: center; max-width: 50vw; }
  @media (min-width: 768px) { .notfound { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-14); } }

  /* Legal pages and the accessibility statement (D18) */
  .legal-page section { display: grid; gap: var(--space-3); }
  .legal-page section ul { display: grid; gap: var(--space-2); padding-left: 1.2em; }
  .legal-page .chips { margin-bottom: calc(-1 * var(--space-4)); }
}

@layer utilities {
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .page > section, .page > .hero-stack, .page > .qstack, .page > .page-section {
        animation: section-in 0.55s var(--ease-out) both;
        animation-timeline: view();
        animation-range: entry 8% cover 28%;
      }
    }
  }
  @keyframes section-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  }
  @media (orientation: landscape) and (max-height: 500px) {
    .sheet { max-height: 100dvh; }
    .tabbar { --tabbar-h: calc(52px + env(safe-area-inset-bottom)); }
    .tabbar a span { display: none; }
  }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-2); }
}
