/*
 * Design tokens — the single source of truth for visual values.
 *
 * Phase 9 replaces this file wholesale with values derived from Figma. Until
 * then, the values below are wireframe-grade: legible, neutral, deliberately
 * unstyled. The point is *that* tokens exist and *that* every component
 * references them — not that they look polished.
 *
 * Rule: no colour, font, size, spacing, or radius value may appear in
 * component or page CSS. If a new value is needed, add it here first.
 */

:root {
  /* Homepage V1: a real, continuous sky-to-paper canvas. */
  --home-canvas: #ffffff;
  /* Mobile marketing: Figma DUaGPHLOP4fxsZART2VCpK, 1:9 (402px).
     Separate from search/report tokens. Outer spacing is owned by composition. */
  --mk-font: "Otis Marketing Inter", system-ui, sans-serif;
  --mk-canvas: #ffffff;
  --mk-ink: #000000;
  --mk-body: #3c3c3c;
  --mk-night: #142143;
  --mk-night-fade: #152243;
  --mk-on-image: #ffffff;
  --mk-on-image-muted: rgba(255, 255, 255, 0.8);
  --mk-on-image-rule: rgba(255, 255, 255, 0.2);
  --mk-preview-rule: rgba(255, 255, 255, 0.1);
  --mk-faq-surface: #f7f7f7;
  --mk-overlay: rgba(0, 0, 0, 0.5);
  --mk-glass: rgba(255, 255, 255, 0.16);
  --mk-phone-max: 430px;
  --mk-heading-measure: 331px;
  --mk-gutter: 15px;
  --mk-text-inset: 16px;
  --mk-text-gutter: calc(var(--mk-gutter) + var(--mk-text-inset));
  --mk-hero-pad-top: 50px;
  --mk-hero-safe-gap: 24px;
  --mk-hero-heading-size: 20px;
  --mk-hero-heading-leading: 26px;
  --mk-listen-hint-duration: 2400ms;
  --mk-hero-sky-top: #004fbd;
  --mk-chip-icon-well: rgba(0, 0, 0, 0.3);
  /* Trust section: Figma Extraction, 232:26. */
  --mk-trust-gap: 24px;
  --mk-data-radius: 40px;
  --mk-data-title-size: 13px;
  --mk-data-detail-size: 11px;
  --mk-data-copy-gap: 9px;
  --mk-data-muted: #666666;
  --mk-data-logo-size: 42px;
  --mk-data-logo-overlap: 14px;
  --mk-data-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.25);
  --mk-space-xs: 8px;
  --mk-space-sm: 10px;
  --mk-space-md: 20px;
  --mk-space-lg: 30px;
  --mk-space-xl: 40px;
  --mk-space-2xl: 60px;
  --mk-space-3xl: 80px;
  --mk-panel-pad: 25px;
  --mk-card-gap: 22px;
  --mk-faq-pad: 24px;
  --mk-faq-closed-pad: 22px;
  --mk-heading-size: 40px;
  --mk-heading-leading: 40px;
  --mk-intro-size: 15px;
  --mk-intro-leading: 25px;
  --mk-feature-title-size: 20px;
  --mk-feature-title-leading: 25px;
  /* Lausanne 300's bundled UPM is 2048 but its cap metric is still 714.
     The actual H outline reaches 1462. Marketing-only correction; do not
     alter this font or the established report/search rendering globally. */
  --mk-lausanne-cap-correction: 0.365234375em;
  --mk-body-size: 14px;
  --mk-body-leading: 24px;
  --mk-faq-title-size: 18px;
  --mk-faq-title-leading: 25px;
  --mk-faq-body-size: 12px;
  --mk-faq-body-leading: 21px;
  --mk-caption-size: 12px;
  --mk-caption-leading: 25px;
  --mk-preview-title-size: 28px;
  --mk-preview-title-leading: 31px;
  --mk-preview-copy-size: 13px;
  --mk-preview-copy-leading: 24px;
  --mk-preview-height: 354px;
  --mk-preview-body-pad-top: 35px;
  --mk-preview-body-pad-bottom: 14px;
  --mk-preview-excerpt-height: 84px;
  --mk-preview-radius: 40px;
  --mk-preview-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --mk-control-size: 60px;
  --mk-control-radius: 30px;
  --mk-control-font-size: 18px;
  --mk-control-leading: 25px;
  --mk-control-icon: 20px;
  --mk-preview-dot: 5px;
  --mk-preview-meta-gap: 12px;
  --mk-panel-radius: 20px;
  --mk-panel-blur: 17px;
  --mk-control-blur: 20px;
  --mk-footer-size: 50px;
  --mk-footer-leading: normal;
  --mk-footer-min-height: 598px;
  --mk-footer-logo-width: 70px;
  --mk-footer-logo-height: 30px;
  --mk-reference-width: 402px;
  --mk-lounge-ratio: 402 / 331;
  --mk-portrait-ratio: 402 / 549;
  --mk-chart-ratio: 402 / 349;
  --mk-portrait-height: 549px;
  --mk-chart-height: 349px;
  --mk-image-portrait-position: 4% center;
  --mk-image-chart-position: center top;
  --mk-chart-source-ratio: 1;
  --mk-chart-protected-area: 40%;
  --mk-chart-image-offset: -8%;
  --mk-chart-canvas: #82a6cd;
  --mk-chart-image-mask: linear-gradient(to bottom, #000 75%, transparent 100%);
  --mk-image-city-position: center center;
  --mk-image-footer-position: center 50%;
  --mk-motion: 180ms cubic-bezier(0.2, 0.9, 0.25, 1);
  --mk-press-scale: 0.98;
  --mk-hero-fade:
    linear-gradient(180deg, var(--mk-hero-sky-top) 0%, rgba(1, 79, 189, 0) 54.808%),
    linear-gradient(180deg, transparent 55.311%, #ffffff 100%);
  --mk-preview-fade: linear-gradient(180deg, #152243 18.919%, rgba(21, 34, 67, 0) 81.892%);
  --mk-excerpt-fade: linear-gradient(180deg, #000000 calc(55% - 15px), transparent 100%);
  --mk-reader-fade: linear-gradient(0deg, #142143 10.702%, rgba(20, 33, 67, 0) 64.828%);
  --home-ink: #16384b;
  --home-muted: #536977;
  --home-rule: #d4dfe6;
  --home-surface: #ffffff;
  --home-blue: #0053de;
  --home-footer: #d5e4ee;
  --home-night: #103b63;
  --home-hero-background: linear-gradient(
    180deg,
    #0053de 0%,
    #2675df 40%,
    #8eb9e8 72%,
    #eef3f7 100%
  );
  --home-end-background: linear-gradient(180deg, #eef3f7 0%, #d5e4ee 100%);
  --home-max: 1080px;
  --home-copy-max: 660px;
  --home-gutter: clamp(24px, 5vw, 64px);
  --home-section-gap: clamp(72px, 12vw, 144px);
  --home-heading-size: clamp(34px, 5vw, 56px);
  --home-body-size: 18px;
  --home-small-size: 14px;
  --home-label-size: 12px;
  --home-pill-radius: 999px;
  --home-card-radius: 24px;
  --home-controls-shadow: 0 4px 20px rgb(0 0 0 / 16%);
  --home-card-shadow: 0 16px 48px rgb(25 57 84 / 8%);
  --home-image-shade: linear-gradient(180deg, rgb(0 24 52 / 12%), rgb(0 24 52 / 66%));
  --home-preview-header-height: 240px;
  --home-preview-height: 760px;
  --home-preview-fade-height: 200px;
  --home-preview-fade: linear-gradient(
    180deg,
    rgb(255 255 255 / 0) 0%,
    rgb(255 255 255 / 94%) 52%,
    #ffffff 78%
  );
  --home-focus: 3px;
  --home-letter-spacing: 0.11em;
  /* --- Colour ----------------------------------------------------------- */
  --color-bg: #ffffff;
  --color-fg: #111111;
  --color-muted: #555555;
  --color-border: #cccccc;
  --color-border-strong: #111111;
  --color-surface: #f4f4f4;
  --color-accent: #1a4fff;
  --color-error: #b00020;
  --color-success: #1f7a3a;
  /* Translucent foreground for modal/sheet backdrops. */
  --color-backdrop: rgba(17, 17, 17, 0.4);

  /* --- Sky palette (ticker catalogue backdrop) -------------------------- */
  /* A three-stop blue used only by the destination-ticker catalogue page to
   * preview the glassy tiles over sky. The report Hero no longer uses these —
   * Phase 9 moved it to destination photography (see Report v3 below). */
  --color-sky-light: #c7e2ff;
  --color-sky-mid: #93c5fd;
  --color-sky-deep: #60a5fa;

  /* --- Report v3 — Figma "Report Web Page" (node 138:114), Phase 9 ------- */
  /* The customer-facing flight briefing. Mobile-first (402px artboard); the
   * reading column grows to --report-measure, then centres. Type is TWK
   * Lausanne throughout, Reckless for the wordmark, IBM Plex Mono for the
   * ticker. Values are exact to Figma. INLINE_STYLES in
   * src/lib/generation/render.tsx mirrors the subset the stored HTML needs —
   * keep the two in sync. */
  --font-text: "TWK Lausanne", system-ui, sans-serif;
  --font-display: "Reckless", Georgia, serif;
  --font-display-weight: 400;

  --report-measure: 600px; /* reading-column cap on wide screens */
  --report-bg: #ffffff;
  --report-text: #000000;
  --report-text-muted: #6d6d6d; /* title connective words */
  --report-divider: #f5f5f5; /* 1px rule between sections */
  --report-footer-text: #292929;
  --report-meta-dot: #d9d9d9; /* 6px dot between date and time */
  --report-on-image: #ffffff; /* wordmark + ticker letters over the photo */

  --report-weight-light: 200; /* title connective words, footer fine print */
  --report-weight-body: 200; /* body + lede — ExtraLight (lausanne-200) */
  --report-weight-meta: 300; /* date · time line — kept heavier than the body */
  --report-weight-medium: 500; /* section labels, title entities */

  /* Type — size / line-height (px, exact to Figma). */
  --report-wordmark-height: 64px; /* inlined "Your Otis Briefing" SVG (aspect 275:73) */
  --report-title-size: 34px;
  --report-title-leading: 36px;
  --report-label-size: 30px;
  --report-label-leading: 35px;
  --report-body-size: 16px; /* body + lede */
  --report-body-leading: 29px;
  --report-body-tracking: 0.51px; /* section body only */
  --report-meta-size: 16px;
  --report-meta-leading: 36px;
  --report-footer-size: 14px;

  /* Spacing — vertical rhythm and header geometry. */
  --report-page-pad: 15px; /* page edge → 372px content band */
  --report-text-inset: 15px; /* content band → 342px text band */
  --report-block-gap: 40px; /* between every block; dividers centre in it */
  --report-label-body-gap: 35px;
  --report-paragraph-gap: 30px; /* between <p> blocks inside a body / lede */
  --report-title-meta-gap: 25px;
  --report-meta-gap: 16px; /* date · dot · time */
  --report-meta-dot-size: 6px;
  --report-header-height: 334px;
  --report-header-image-position: center calc(75% + 20px);
  --report-header-pad-top: 40px;
  --report-header-gap: 12px; /* wordmark → ticker */
  --report-ticker-group-gap: 40px; /* origin triplet → destination triplet */
  --report-audio-tip-gap: 20px; /* audio player → "Top Tip" line */
  --report-footer-gap: 16px; /* between footer lines */

  /* Effects. The wordmark drop-shadow is baked into the inlined SVG. */
  --report-header-fade: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0.35) 72%,
    rgba(255, 255, 255, 0.75) 86%,
    rgba(255, 255, 255, 0.95) 95%,
    #ffffff 100%
  );

  /* --- Front of house — Figma "Home Page" (332:9) + search (340:56) ----- */
  /* The home / search / flight-selection journey. Mobile-first (402px
   * artboard). UI face is Inter (Figma); until the woff2s land in
   * public/assets/fonts/ the stack falls back to the system sans — the
   * @font-face blocks in base.css are already wired, so the files are a
   * pure drop-in. Brand serif moments reuse --font-display (Reckless);
   * the flight ticker reuses the --ticker-* tokens. Values exact to Figma. */
  --font-ui:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;

  /* Palette (Home Page 340:131 — supersedes the 332:9 exploration). */
  --fo-ink: #123d62; /* field labels + committed values */
  --fo-ink-soft: rgba(18, 61, 98, 0.7); /* field placeholders */
  --fo-accent: #037ce1; /* selected day-chip date figure */
  --fo-accent-stroke: #008bff; /* selected day-chip 0.5px edge */
  --fo-hint: #767676; /* "Results will show here…" */
  --fo-body: #3d3d3d; /* white Large Button label; body copy */
  --fo-muted: #5a5a5a; /* unselected day-chip main label */
  --fo-muted-soft: #8a8a8a; /* unselected day-chip date figure */

  /* Shared surface geometry. */
  --fo-radius: 18px; /* fields, chips, buttons, cards */
  --fo-page-pad: 15px; /* page edge → 372px content band (= report) */
  --fo-content-max: 402px; /* the Figma artboard; form column cap */
  /* The product is mobile-first: the whole front-of-house page (sky
   * included) caps at the largest phone width and centres on anything
   * wider, so the header photo never stretches to desktop widths. */
  --fo-page-max: 430px;
  --fo-stack-gap: 6px; /* field → field */
  --fo-controls-gap: 14px; /* field stack → chip row → button (340:137) */
  --fo-block-gap: 20px; /* focused-step content rhythm */

  /* Search field card (node 340:139). */
  --fo-field-h: 83px;
  --fo-field-pad-x: 20px;
  --fo-field-gap: 12px; /* label → value (trimmed text boxes) */
  --fo-field-bg: rgba(255, 255, 255, 0.7);
  --fo-field-border: rgba(255, 255, 255, 0.9); /* 2px ring, search state */
  --fo-field-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  /* Figma "Glass" effect on the field cards (340:139 / 340:142 / 346:508):
   * frost radius 60 with a light rim (angle 225°, intensity 0.8,
   * refraction 0.33). The backdrop blur is the frost; the inset hairlines
   * approximate the rim — refraction itself has no CSS equivalent. */
  --fo-field-blur: 60px;
  --fo-field-glass-edge:
    inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 0.5px rgba(255, 255, 255, 0.35);
  --fo-field-label-size: 14px;
  --fo-field-value-size: 20px;

  /* Day chips (nodes 340:146 / 340:149 / 340:152) — date figure ABOVE the
   * day label. Figma pads 22px horizontally, but the chips flex-grow to
   * fill the row, so the pad only sets their minimum width — 14px keeps
   * "8 December" from overflowing the 372px band while rendering
   * identically in short months. */
  --fo-chip-pad-y: 20px;
  --fo-chip-pad-x: 14px;
  --fo-chip-pad-x-compact: 4px;
  --fo-chip-gap: 12px; /* date figure → main label */
  --fo-chip-row-gap: 8px; /* chip → chip (340:145) */
  --fo-chip-blur: 10px; /* BACKGROUND_BLUR on idle chips/date cells (340:149) */
  /* Selection cross-fade on chips/date cells — the state change is a soft
   * settle, never an instant cut. */
  --fo-chip-transition: 240ms cubic-bezier(0.2, 0.9, 0.25, 1);
  --fo-chip-bg: rgba(255, 255, 255, 0.5);
  --fo-chip-selected-bg: #ffffff;
  --fo-chip-selected-stroke-w: 0.5px;
  --fo-chip-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.4);
  --fo-chip-selected-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.4);
  --fo-chip-label-size: 18px;
  --fo-chip-date-size: 14px;
  --fo-chip-date-size-compact: 12px;

  /* Large Button (component 268:142; blue instance per 340:156). */
  --fo-button-pad-y: 24px;
  --fo-button-pad-x: 20px;
  --fo-button-size: 18px;
  --fo-button-bg: linear-gradient(180deg, #1092ff, #0077d9);
  --fo-button-stroke: rgba(255, 255, 255, 0.4); /* 1px top edge */
  --fo-button-text: #ffffff;
  --fo-button-text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  --fo-button-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --fo-button-white-bg: linear-gradient(180deg, #fafafa, #f0f0f0);
  --fo-button-white-stroke: rgba(0, 0, 0, 0.05);
  --fo-button-white-inset:
    inset 0 -2px 2px rgba(0, 0, 0, 0.05), inset 0 -6px 20px rgba(0, 0, 0, 0.05);

  /* Sky header (node 340:133 tall / 340:58 collapsed) — built as TWO
   * independent layers so the clouds can parallax against the sky and the
   * cloud top edge (the design's dividing line) is positioned exactly:
   *
   *   1. The sky is pure CSS — the exact gradient from Figma "sky"
   *      (node 442:11) plus its soft white glow rising from bottom-left.
   *      Time-of-day variants (dusk, dawn, night…) become alternative
   *      values for these two tokens — no asset work.
   *   2. The clouds are a transparent PNG
   *      (/assets/images/marketing/header-clouds.png) whose TOP EDGE is
   *      the cloud line; --fo-cloud-top* place that edge per state, and
   *      --fo-cloud-shift is a free parallax input for motion code.
   */
  /* The Figma frames measure from the PHYSICAL top of the phone — the 80px
   * above the brand INCLUDES the OS status bar, exactly like a native app.
   * In plain mobile browsing browser UI occupies that physical region, so
   * the page's share of every top-anchored measurement shrinks by one
   * status-bar height. --fo-chrome-offset is that single geometry
   * correction. Only an installed (standalone) app owns the physical top,
   * so only that display mode zeros the offset. */
  --fo-chrome-offset: 54px;
  --fo-header-h: calc(422px - var(--fo-chrome-offset));
  --fo-header-h-collapsed: calc(193px - var(--fo-chrome-offset));
  --fo-header-pad-top: calc(80px - var(--fo-chrome-offset));
  --fo-header-pad-bottom: 15px; /* header content → fade-out (340:132) */
  --fo-header-brand-gap: 35px; /* logo+tagline block → controls */
  --fo-sky-top: #0053de;
  --fo-sky-gradient-current: linear-gradient(
    175.51deg,
    var(--fo-sky-top) 2.19%,
    #0389f6 58.59%,
    #45affd 81.34%,
    #85cdfc 97.81%
  );
  /* Safari edge comparison controls. The vertical control changes only
   * direction; the matched version also holds the real sky colour through the
   * part of the hero that first travels beneath Safari's scroll-edge material.
   * The approved matched sky is the product default; local fixtures retain all
   * three versions for regression comparison. */
  --fo-sky-gradient-vertical: linear-gradient(
    180deg,
    var(--fo-sky-top) 2.19%,
    #0389f6 58.59%,
    #45affd 81.34%,
    #85cdfc 97.81%
  );
  --fo-sky-gradient: var(--fo-sky-gradient-matched);
  --fo-sky-gradient-matched: linear-gradient(
    180deg,
    var(--fo-sky-top) 0%,
    var(--fo-sky-top) 20%,
    #0389f6 58.59%,
    #45affd 81.34%,
    #85cdfc 97.81%
  );
  --fo-sky-glow: radial-gradient(
    120% 100% at 0% 100%,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0) 70%
  );
  /* Cloud line: distance from the header's top to the plate's top edge
   * (the peak clears the tagline and crests just above the From card,
   * per 340:131). Physical measurements, so they carry the chrome
   * offset too. */
  --fo-cloud-top: calc(170px - var(--fo-chrome-offset));
  --fo-cloud-top-collapsed: calc(64px - var(--fo-chrome-offset));
  --fo-cloud-shift: 0px; /* runtime parallax input (motion code sets it) */
  --fo-header-fade: linear-gradient(180deg, rgba(255, 255, 255, 0) 73%, #ffffff 100%);
  --fo-header-fade-collapsed: linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, #ffffff 100%);
  --fo-header-transition: 300ms ease;
  /* The cloud plate travels on its own, slower curve than the band —
   * the differential is what reads as parallax (mobile-principles §4). */
  --fo-cloud-transition: 450ms cubic-bezier(0.22, 0.9, 0.3, 1);
  --fo-morph-ghost: 300ms; /* exit ghost fade during the reverse morph */
  --fo-logo-w: 102px;
  --fo-logo-h: 44px;
  --fo-logo-gap: 20px; /* logo → tagline */
  --fo-tagline-size: 24px;
  --fo-tagline-leading: 28px;
  --fo-tagline-shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 0 6px rgba(0, 0, 0, 0.25);

  /* Message Chip (component 268:145). */
  --fo-msgchip-bg: rgba(0, 0, 0, 0.55);
  --fo-msgchip-blur: 7px;
  --fo-msgchip-border: rgba(0, 0, 0, 0.1);
  --fo-msgchip-radius: 40px;
  --fo-msgchip-icon: 20px; /* icon container; glyph is 10px inside */
  --fo-msgchip-glyph: 10px;
  --fo-msgchip-gap: 4px;
  --fo-msgchip-pad: 4px;
  --fo-msgchip-pad-text: 10px;
  --fo-msgchip-size: 13px;
  --fo-msgchip-tracking: -0.13px;
  --fo-msgchip-text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);

  /* Flight ticker row (component 284:97) — tiles are --ticker-*; this is
   * just the route-level layout. */
  --fo-ticker-dash-w: 10px;
  --fo-ticker-dash: rgba(0, 0, 0, 0.35);
  --fo-ticker-gap: 10px; /* triplet → dash → triplet */

  /* Search screens (Search • From 344:159 / • To 346:516): collapsed sky
   * header (80/15/30 pads, gap 14), white body with a 30px rhythm ending
   * in a grey pill. */
  --fo-search-pad-bottom: 30px; /* header content → fade-out */
  --fo-search-body-gap: 30px; /* body blocks + list → pill */
  --fo-header-opacity: 0.93; /* collapsed journey screens dim the sky a touch */

  /* Full-sky date selection sheet (Pick Date 371:10): the cloudless sky
   * gradient fills the viewport, glass containers in the field-card language
   * float at the 80px line on an 8px stack, and the dismiss pill goes
   * translucent white. */
  --fo-sheet-list-gap: 8px; /* selection card → selection card */
  --fo-pill-sky-bg: rgba(255, 255, 255, 0.8);
  --fo-pill-sky-text: #000000;
  --fo-pill-sky-pad: 13px 21px 14px;

  /* Dismiss pill — "Cancel" / "Back" (node 346:481). */
  --fo-pill-bg: #f6f6f6;
  --fo-pill-radius: 999px; /* fully round — a true pill on any height */
  --fo-pill-pad: 10.5px 21px 11.5px;
  --fo-pill-size: 15px;
  --fo-pill-text: #6a6a6a;

  /* Search-results hint (node 344:201). */
  --fo-hint-size: 16px;
  --fo-hint-icon: 14px;
  --fo-hint-gap: 10px;

  /* Result tiles — standardised in the Search Tile Cross-Examination audit. */
  --fo-tile-bg: #fbfbfb;
  --fo-tile-border: #efefef;
  --fo-tile-text: #111b32;
  --fo-tile-radius: 12px;
  --fo-tile-pad: 14px; /* airport tile */
  --fo-tile-pad-flight: 14px 10px 10px;
  --fo-tile-gap: 12px; /* airport name → meta row */
  --fo-tile-gap-flight: 11px; /* flight tile rows */
  --fo-tile-name-size: 20px;
  --fo-tile-name-leading: 20px;
  --fo-tile-meta-size: 16px;
  --fo-tile-meta-leading: 14px;
  --fo-tile-meta-muted: #6f6f6f; /* country */
  --fo-tile-meta-gap: 14px; /* badge → city → dot → country */
  --fo-tile-city-gap: 6px; /* flag → city */
  --fo-flight-meta-size: 16px; /* date · time / airline · number rows */
  --fo-flight-meta-gap: 11px;
  --fo-flight-route-gap: 5px;
  --fo-flight-schedule-size: 20px; /* typed-number result: time · date */
  --fo-flight-schedule-leading: 20px;
  --fo-flight-number-tile-h: 78px;
  --fo-flight-number-tile-pad: 14px;
  --fo-flight-number-tile-gap: 12px;
  --fo-flight-divider: #f1f1f1;
  --fo-flight-route-muted: rgba(0, 0, 0, 0.5);
  --fo-flight-results-pad-top: 24px;
  --fo-flight-results-pad-bottom: 35px;
  --fo-flight-results-gap: 28px;
  --fo-flight-results-return-bg: #ffffff;
  --fo-flight-results-return-text: #0081ff;
  --fo-flight-results-return-radius: 9px;
  --fo-flight-results-return-pad: 12px;
  --fo-flight-results-return-gap: 8px;
  --fo-flight-results-return-size: 13px;
  --fo-flight-results-return-leading: 14px;
  --fo-flight-results-return-icon: 14px;
  --fo-flight-results-return-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  --fo-flight-context-gap: 14px;
  --fo-flight-context-compact-gap: 20px;
  --fo-flight-context-compact-pad-x: 20px;
  --fo-flight-context-compact-pad-y: 20px;
  --fo-flight-context-compact-size: 16px;
  --fo-flight-context-compact-leading: 20px;
  --fo-flight-context-divider-width: 0.5px;
  --fo-flight-context-divider: rgba(17, 27, 50, 0.06);
  --fo-flight-context-transition: 160ms ease-out;
  --fo-flight-results-return-target: 44px;
  --fo-flight-results-return-compact-pad: 12px;
  --fo-flight-context-size: 29px;
  --fo-flight-context-leading: 33px;
  --fo-flight-context-muted: #696969;
  --fo-flight-context-text: #000000;
  --fo-flight-group-stack-gap: 28px;
  --fo-flight-group-gap: 14px;
  --fo-flight-group-header-inset: 0px;
  --fo-flight-group-identity-gap: 11px;
  --fo-flight-group-name-size: 16px;
  --fo-flight-group-name-leading: 20px;
  --fo-flight-choice-row-h: 67px;
  --fo-flight-choice-pad: 22px;
  --fo-flight-choice-meta-gap: 12px;
  --fo-flight-choice-time-size: 20px;
  --fo-flight-choice-time-tracking: -0.02em;
  --fo-flight-choice-text: #111b32;
  --fo-route-size: 26px; /* LHR → JFK, IBM Plex Mono Medium */
  --fo-route-gap: 12px;
  --fo-route-arrow-w: 14px;
  --fo-dot: 4px; /* separator dot in tiles (colour = --report-meta-dot) */
  --fo-flag: 14px;
  --fo-flag-w: 18px;
  --fo-flag-h: 12px;

  /* IATA badge. */
  --fo-iata-pad: 6px;
  --fo-iata-radius: 6px;
  --fo-iata-leading: 12px;
  --fo-iata-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  --fo-iata-size: 14px;
  --fo-iata-color: #0076d7;
  --fo-iata-tracking: 0.56px;

  /* Airline logo chip. */
  --fo-logochip: 30px;
  --fo-logochip-pad: 2px;
  --fo-logochip-radius: 5px;
  --fo-logochip-glyph: 14px;
  --fo-logochip-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.3);
  --fo-logochip-fallback: linear-gradient(135deg, #00379c, #00aeff);

  /* Pick-a-date cells (371:10 — idle 478:53, selected 373:65). */
  --fo-datecell-h: 75px;
  --fo-datecell-radius: 22px;
  --fo-datecell-size: 18px;

  /* Result / summary cards (extrapolated from the field-card language —
   * no canonical Figma frame for flight selection yet). */
  --fo-card-bg: #ffffff;
  --fo-card-pad: 20px;
  --fo-card-title-size: 24px; /* step headings, Reckless */
  --fo-card-title-leading: 28px;

  /* Payment — Paper page 3, frame DL-0 (402 × 882). One cloudless document
   * canvas paints the header, order tile and payment controls; the final sky
   * colour continues below the first viewport when the card form opens. */
  --fo-status-inset: clamp(24px, calc(12dvh - 36px), 44px);
  --fo-status-content-padding: max(0px, calc(var(--fo-status-inset) - var(--space-5)));
  --fo-payment-canvas: oklab(49.8% -0.033 -0.22);
  --fo-payment-sky-gradient: linear-gradient(
    in oklab 173.28deg,
    oklab(49.8% -0.033 -0.22) 2%,
    oklab(62.8% -0.057 -0.181) 58.62%,
    oklab(72.8% -0.064 -0.134) 81.47%,
    oklab(81.8% -0.052 -0.083) 98%
  );
  --fo-payment-sky-glow: radial-gradient(
    ellipse 120.62% 80.77% at 0% 100% in oklab,
    oklab(100% 0 0 / 20%) 0%,
    oklab(100% 0 0 / 0%) 100%
  );
  --fo-payment-sky-tail: oklab(81.8% -0.052 -0.083);
  --fo-payment-brand-pad-top: 49px;
  --fo-payment-brand-card-gap: 32px;
  --fo-payment-wordmark-gap: 6px;
  --fo-payment-wordmark-size: 34px;
  --fo-payment-wordmark-h: 25px;
  --fo-payment-wordmark-leading: 25px;
  --fo-payment-wordmark-logo-w: 59px;
  --fo-payment-wordmark-briefing-offset: 1px;
  --fo-payment-brand-logo-shadow: drop-shadow(0 0.97px 0.49px rgba(0, 0, 0, 0.25))
    drop-shadow(0 0 9.74px rgba(0, 0, 0, 0.4));
  --fo-payment-surface: rgba(255, 255, 255, 0.8);
  --fo-payment-surface-blur: 8px;
  --fo-payment-surface-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  --fo-payment-radius: 16px;
  --fo-payment-stack-gap: 12px;
  --fo-payment-logo-size: 16px;
  --fo-payment-logo-glyph-size: 10px;
  --fo-payment-visual-h: 226px;
  --fo-payment-visual-image-w: 484px;
  --fo-payment-visual-image-h: 316px;
  --fo-payment-visual-image-top: -28px;
  --fo-payment-tag-left: 16px;
  --fo-payment-tag-bottom: 16px;
  --fo-payment-tag-step: 36px;
  --fo-payment-tag-h: 28px;
  --fo-payment-tag-pad-inline: 10px;
  --fo-payment-tag-radius: 10px;
  --fo-payment-tag-bg: rgba(255, 255, 255, 0.2);
  --fo-payment-tag-blur: 4px;
  --fo-payment-tag-size: 12px;
  --fo-payment-tag-size-compact: 9.5px;
  --fo-payment-tag-pad-inline-compact: 8px;
  --fo-payment-tag-leading: 20px;
  --fo-payment-summary-gap: 14px;
  --fo-payment-summary-pad-block: 22px;
  --fo-payment-summary-pad-inline: 20px;
  --fo-payment-summary-sentence-row-gap: 4px;
  --fo-payment-summary-sentence-column-gap: 4px;
  --fo-payment-summary-sentence-size: 20px;
  --fo-payment-summary-sentence-leading: 24px;
  --fo-payment-summary-offer-gap: 5px;
  --fo-payment-summary-price-min-w: 64px;
  --fo-payment-summary-price-h: 27px;
  --fo-payment-summary-price-pad-inline: 8px;
  --fo-payment-summary-price-radius: 6px;
  --fo-payment-summary-price-bg: rgba(255, 255, 255, 0.4);
  --fo-payment-summary-price-size: 14px;
  --fo-payment-summary-price-leading: 22px;
  --fo-payment-summary-reassurance-h: 27px;
  --fo-payment-summary-reassurance-pad-inline: 8px;
  --fo-payment-summary-reassurance-radius: 6px;
  --fo-payment-summary-reassurance-bg: linear-gradient(
    in oklab 96.73deg,
    oklab(67.3% -0.068 -0.169 / 10%) 0.01%,
    oklab(56.1% 0.001 -0.241 / 10%) 100.01%
  );
  --fo-payment-summary-reassurance-size: 14px;
  --fo-payment-summary-reassurance-leading: 22px;
  --fo-payment-summary-reassurance-tracking: -0.02em;
  --fo-payment-wallet-summary-extra-gap: 10px;
  --fo-payment-edit-target-h: 44px;
  --fo-payment-edit-copy-gap: 20px;
  --fo-payment-edit-icon-size: 16px;
  --fo-payment-edit-bg: rgba(255, 255, 255, 0.3);
  --fo-payment-product-pad: 16px;
  --fo-payment-product-gap: 25px;
  --fo-payment-product-size: 14px;
  --fo-payment-product-leading: 18px;
  --fo-payment-dock-pad-top: 12px;
  --fo-payment-wallet-h: 54px;
  --fo-payment-wallet-radius: 16px;
  --fo-payment-alternate-h: 44px;
  --fo-payment-alternate-radius: 40px;
  --fo-payment-alternate-size: 15px;
  --fo-payment-alternate-width: 179px;
  --fo-payment-form-gap: 16px;
  --fo-payment-form-pad: 16px;
  --fo-payment-price-old-gap: 8px;

  /* --- Typography ------------------------------------------------------- */
  --font-sans:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-loose: 1.75;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* --- Spacing scale ---------------------------------------------------- */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* --- Radii ------------------------------------------------------------ */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.5rem;

  /* --- Borders ---------------------------------------------------------- */
  --border-width-thin: 1px;
  --border-width-thick: 2px;

  /* --- Content measure (max-width for legible columns) ------------------ */
  --measure-narrow: 32rem;
  --measure-medium: 36rem;
  --measure-wide: 64rem;
  /* Wider cap for visual elements (e.g. the turbulence visual) that read
   * better with more horizontal room than the prose measure. */
  --measure-chart: 50rem;

  /* --- Page padding (horizontal page margin on each side) --------------- */
  /* Mobile is the report's primary target; 15px keeps the visual close to
   * the screen edges without touching them. */
  --space-page-mobile: 15px;

  /* --- Destination ticker (Figma node 111:54) --------------------------- */
  /* A single glyph in a dark, glassy tile that evokes split-flap airport
   * boards; backs three-letter destination codes on reports. The tile
   * scales from one number: every internal dimension in the component CSS
   * is a unitless ratio of font-size (= the size token below), so only the
   * two sizes and the colours need to live here. The font is wired via
   * @font-face in base.css. */
  --font-ticker: "IBM Plex Mono", var(--font-mono);
  --ticker-size-default: 61px; /* tile height; width follows the 35:46 ratio */
  --ticker-size-small: 32px; /* small variant — same ratio */
  /* -25° on the Figma gradient handle; 153.5° is the faithful CSS
   * conversion for this aspect ratio. The 80% fill opacity lives in the
   * rgba alpha so the backdrop-blur reads through it. */
  --ticker-bg: linear-gradient(153.5deg, rgba(29, 29, 29, 0.8) 5%, rgba(0, 0, 0, 0.8) 95%);
  --ticker-border: #000000; /* 2px bottom stroke (ratio set in component) */
  --ticker-letter: #ffffff;
  --ticker-fold-top: rgba(0, 0, 0, 0.3); /* upper hairline of the fold */
  --ticker-fold-bottom: rgba(255, 255, 255, 0.1); /* lower hairline */
  /* Gap between the letters of a three-letter destination code, at the
   * reference size (scale it with the tiles where they're enlarged). */
  --ticker-code-gap: 3px;

  /* --- Audio player (Figma node 53:62) ---------------------------------- */
  /* The report audio player: a 62px pill (fixed height, fills width) with a
   * play/pause control that morphs, a gradient progress track + draggable
   * scrub, and a download button. The icon morph and progress are driven at
   * runtime by audioPlayerEnhancer.ts; these are the static design values. */
  --audio-height: 62px;
  --audio-radius: 22px;
  --audio-pad-y: 20px;
  --audio-pad-x: 22px;
  --audio-gap: 22px;
  --audio-bg: linear-gradient(180deg, #f8f8f8, #f0f0f0);
  --audio-border: #e8e8e8; /* bottom stroke */
  --audio-control-size: 22px; /* play/pause + download icon containers */
  --audio-icon: #0169bf; /* play / pause */
  --audio-download: #aaaaaa;
  --audio-download-hover: #888888; /* darken on hover */
  --audio-download-active: #666666; /* darker on press */
  --audio-track-height: 8px;
  --audio-track-radius: 4px;
  --audio-track: #e8e8e8;
  --audio-hit-pad: 5px; /* invisible grab/hover margin around the thin track */
  --audio-live: linear-gradient(90deg, #5dbbfd, #014fbe);
  --audio-scrub-size: 14px;
  --audio-scrub: #ffffff;
  --audio-scrub-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.25);
}

/* An installed standalone app owns the physical top of the screen, so there
 * is no browser status strip to subtract. Wider browser windows still render
 * the same capped mobile product and must not change its internal geometry. */
@media (display-mode: standalone) {
  :root {
    --fo-chrome-offset: 0px;
  }
}

/*
 * Breakpoints. CSS custom properties are not consultable inside @media
 * rule conditions, so the breakpoint literals live in base.css's
 * responsive utility classes. Token names are documented here for
 * grep-traceability:
 *
 *   --bp-md: 40rem
 *
 * If/when CSS custom-media (postcss-custom-media or native CSS5) lands
 * in this project, migrate breakpoint literals to var() references and
 * delete the responsive utility classes from base.css.
 */
