/* CFS marketing site · design system (direction B "Glyph", round 6, 28 Sep 2026)
   One brand colour (cobalt), one exception colour (signal orange, only ever for the flagged store),
   Geist for display and text, Geist Mono for the logo, labels, figures and buttons. */

/* Fonts are self-hosted (OFL, assets/fonts) as Latin cuts of the variable files: Basic Latin, Latin-1, punctuation,
   arrows and the few signs the site uses (Geist Mono adds box drawing and shapes), every OpenType feature the CSS uses
   (ss01, tnum and the defaults), and the full weight axis. 29 and 27 KB, against 70 KB each for the full files, which
   stay in assets/fonts (and the brand kit) as the source. Cut with fontTools:
     pyftsubset Geist-Variable.woff2 --unicodes="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+2190-2199,U+2212,U+2215,U+2248,U+2260,U+2264-2265,U+FEFF,U+FFFD"
       --layout-features+=ss01,tnum --name-IDs=0,1,2,3,4,5,6,13,14 --flavor=woff2 --output-file=Geist-Latin.woff2
   and the same for GeistMono-Variable.woff2 with ",U+2500-257F,U+25A0-25FF" added. A character outside the cut falls
   back like the rest of the stack. (Listing the full files for those characters through unicode-range doubled the
   cost of the first layout in Chrome, so they are not listed.) */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* Text paints at once in a local fallback (font-display: swap) whose size and line metrics are scaled to Geist's, so
   little moves when Geist arrives. size-adjust is the median width ratio over the site's own text, measured in Chrome
   (paragraphs for the regular and medium bands, headings with their letter-spacing for semibold and bold); ascent and
   descent are Geist's divided by it. Liberation Sans, Arimo and DejaVu Sans Mono share Arial's and Menlo's metrics, so
   Linux gets the same match. One face per weight band: Arial and Menlo come only in regular and bold, and
   font-synthesis is off. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo");
  font-weight: 100 449; size-adjust: 102.47%; ascent-override: 98.08%; descent-override: 28.79%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo");
  font-weight: 450 549; size-adjust: 104.96%; ascent-override: 95.75%; descent-override: 28.11%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold");
  font-weight: 550 649; size-adjust: 99.85%; ascent-override: 100.65%; descent-override: 29.54%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold");
  font-weight: 650 900; size-adjust: 102%; ascent-override: 98.53%; descent-override: 28.92%; line-gap-override: 0%; }
@font-face { font-family: "Geist Mono Fallback"; src: local("Menlo Regular"), local("Menlo-Regular"), local("DejaVu Sans Mono"), local("DejaVuSansMono");
  font-weight: 100 549; size-adjust: 99.66%; ascent-override: 100.84%; descent-override: 29.6%; line-gap-override: 0%; }
@font-face { font-family: "Geist Mono Fallback"; src: local("Menlo Bold"), local("Menlo-Bold"), local("DejaVu Sans Mono Bold"), local("DejaVuSansMono-Bold");
  font-weight: 550 900; size-adjust: 99.66%; ascent-override: 100.84%; descent-override: 29.6%; line-gap-override: 0%; }

:root {
  /* Colour. Written in OKLCH; every related colour is derived from its base with color-mix(in oklch, ...), so changing a
     base moves its family. The site is light. A dark section sets color-scheme: dark on itself (.on-night) and the
     tokens written with light-dark() follow, with no second set of variables. */
  color-scheme: light;
  --white: oklch(100% 0 none);
  --paper: oklch(97.53% 0.004 106.5);                            /* #F7F7F4 */
  --fill: oklch(95.02% 0.0054 117.9);                            /* quiet fills on paper */
  --night: oklch(18.41% 0.0586 272);                             /* dark sections, #0A0F2C */
  --shade: oklch(16.04% 0.0152 272.2);                           /* shadows; the ink colour, never flipped */

  --cobalt: oklch(46.05% 0.2405 266.7);                          /* the one brand colour, #1F3BDB */
  --cobalt-600: color-mix(in oklch, var(--cobalt) 86.6%, black);
  --cobalt-tint: color-mix(in oklch, var(--cobalt) 9.3%, white);
  --cobalt-ascii: color-mix(in oklch, var(--cobalt) 62%, transparent);
  --signal: oklch(70.25% 0.1956 40.7);                           /* the one store. Never decorative. #FF6A2B */
  --signal-tint: color-mix(in oklch, var(--signal) 11%, white);
  --signal-ink: oklch(49.87% 0.1547 37.8);                       /* orange text that meets contrast on its tint */

  --ink: light-dark(oklch(16.04% 0.0152 272.2), oklch(100% 0 none));               /* headlines */
  --text: light-dark(oklch(25% 0.0295 270), oklch(90.22% 0.0251 273.5));           /* body */
  --muted: light-dark(oklch(49.72% 0.0316 269.3), oklch(81.37% 0.0404 272.9));
  --faint: light-dark(oklch(52.5% 0.0304 271.5), oklch(64.19% 0.0703 273.9));     /* 4.5:1+ on fill and paper */
  --line: light-dark(oklch(91.91% 0.0084 271.3), oklch(33.06% 0.0957 270.9));
  --line-strong: light-dark(oklch(86.06% 0.0145 268.5), oklch(33.06% 0.0957 270.9));
  --accent: light-dark(var(--cobalt), oklch(77.32% 0.1153 273.1));                 /* cobalt as a text colour: links, eyebrows */
  --accent-hover: color-mix(in oklch, var(--accent), var(--ink) 18%);

  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1200px;
  --gutter: 24px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 0 color-mix(in oklch, var(--shade) 4%, transparent), 0 24px 60px -28px color-mix(in oklch, var(--shade) 28%, transparent);

  /* motion: one curve for things entering or leaving, one for things that move while staying on screen */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --nav-h: 76px;           /* shared by the sticky header and the anchor offset */
  --anchor-gap: 28px;      /* air between the header and an anchor target */

  /* Fluid sizes. Each is a straight line from its size on a 390px phone to its size on a 1440px desktop, written as
     rem + vw so it also follows the reader's font size, and bounded in rem. No maximum is more than 2.5 times its minimum. */
  --fs-display: clamp(2.75rem, 1.357rem + 5.714vw, 6.5rem);
  --fs-h1: clamp(2.5rem, 1.757rem + 3.048vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.536rem + 1.905vw, 3.25rem);
  --fs-lede: clamp(1.125rem, 1.032rem + 0.381vw, 1.375rem);
  --fs-stat: clamp(2.5rem, 1.943rem + 2.286vw, 4rem);
  --fs-quote: clamp(1.375rem, 1.189rem + 0.762vw, 1.875rem);
  --fs-verdict: clamp(1.1875rem, 1.025rem + 0.667vw, 1.625rem);
  --fs-fig: clamp(1.125rem, 0.939rem + 0.762vw, 1.625rem);
  --space-section: clamp(4.5rem, 3.386rem + 4.571vw, 7.5rem);
}

/* reset (after good-css.com). min-width: 0 lets every flex and grid item shrink below its content, which is what
   overflow: clip needs: unlike hidden, clip does not make an item shrinkable by itself. */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { interpolate-size: allow-keywords; scrollbar-gutter: stable; text-wrap: pretty; overflow-wrap: break-word; font-synthesis: none;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-block-start: calc(var(--nav-h) + var(--anchor-gap)); overscroll-behavior-y: none; }
@media (any-pointer: coarse) { html { overscroll-behavior-y: auto; } }   /* touch keeps pull to refresh */
/* smooth only once the page has loaded (cfs.js sets the class). Arriving on a #hash jumps straight there, so the browser
   can hold the target in place while fonts and plans settle above it. */
@media (prefers-reduced-motion: no-preference) { html.is-loaded { scroll-behavior: smooth; } }
button, a, [role="button"] { touch-action: manipulation; }
button, [role="button"] { user-select: none; -webkit-user-select: none; }
input, textarea, select { font-size: max(16px, 1rem); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  min-height: 100svh;
}
img, svg, video { display: block; max-width: 100%; }
.cite-text { font-synthesis: style; }   /* citation titles are italic and Geist ships no italic, so this one place may slant */
a { color: inherit; text-decoration: none; }
a.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { a.link:hover { color: var(--accent-hover); } }
::selection { background: var(--cobalt); color: var(--white); }
:focus-visible { outline: max(2px, 0.08em) solid currentColor; outline-offset: 0.25em; }
/* a filled control has white text, so currentColor would vanish on the page: its ring takes the accent, which is cobalt
   on light and the light blue in a dark section */
:is(.btn-primary, .app-send, .fchip[aria-pressed="true"]):focus-visible { outline-color: var(--accent); }
/* light-text tiles sit on light sections: their ring is cobalt, not the tile's own text colour */
.type-tile:focus-visible { outline-color: var(--cobalt); }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
/* a whole section brings its own padding, so as an anchor target it sits flush under the header */
.section[id] { scroll-margin-block-start: calc(-1 * var(--anchor-gap)); }
.section-tight { padding: 80px 0; }
.section + .section { border-block-start: 1px solid var(--line); }
.on-white { background: var(--white); }
.on-night { color-scheme: dark; background: var(--night); color: var(--text); }
.on-night :is(.panel, .card, .app) { color-scheme: light; color: var(--text); }   /* a light surface inside a dark section flips back */
/* Two- and three-up grids are intrinsic: as many columns as fit at --min, capped at --cols, with no breakpoint.
   auto-fill keeps a short row's cards at their size. Small figure grids inside a panel use a smaller minimum.
   The four-up grid keeps its steps (4, 2, 1) on purpose: with exactly four cards an intrinsic grid passes through 3 + 1. */
.grid { display: grid; gap: 24px; --min: 16rem; }
:is(.panel, .app, .card) .grid { --min: 10.5rem; }
.g-2 { --cols: 2; --min: 20rem; }
:is(.panel, .app, .card) .g-2 { --min: 10.5rem; }
.g-3 { --cols: 3; }
.g-2, .g-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--min), 100% / var(--cols) - 4rem)), 1fr)); }   /* the 4rem leaves room for any gap a page sets */
/* four-up: 4, then 2, then 1, decided by the grid's own width. A container query (not the viewport) so a four-up grid
   inside a narrow column steps down too. */
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
:has(> .g-4) { container-type: inline-size; }
/* Cards built as label, title, text share their rows across a grid row, so the text lines up under titles of any length.
   Only for cards that space their parts with margins; a card spaced by a flex gap would lose that gap as a subgrid. */
.grid > .card:has(> .label:first-child + .h3.mt-16 + .small.mt-8:last-child) { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.stack > * + * { margin-block-start: var(--s, 16px); }
@container (width < 56rem) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (width < 34rem) { .g-4 { grid-template-columns: 1fr; } }
/* Two-column page layouts (.split, .feature) and every page-level head grid stack when the content column they sit in
   is narrower than 56rem: the column is the container, so the same rule holds in a full-width section or a narrow one. */
main > section, main > header, main > article, main > div, .footer { container-type: inline-size; }
@container (width < 60rem) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- type */
.display { font: 700 var(--fs-display)/0.96 var(--sans); letter-spacing: -0.052em; color: var(--ink); margin: 0; text-wrap: balance; }
.h1 { font: 700 var(--fs-h1)/1.0 var(--sans); letter-spacing: -0.045em; color: var(--ink); margin: 0; text-wrap: balance; }
.h2 { font: 700 var(--fs-h2)/1.04 var(--sans); letter-spacing: -0.04em; color: var(--ink); margin: 0; text-wrap: balance; }
.h3 { font: 600 22px/1.25 var(--sans); letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.h4 { font: 600 17px/1.35 var(--sans); letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.lede { font: 400 var(--fs-lede)/1.5 var(--sans); color: var(--text); margin: 0; max-width: 40ch; text-wrap: pretty; }
.body { font-size: 17px; line-height: 1.65; max-width: 64ch; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.mono { font-family: var(--mono); }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 7px; height: 13px; background: currentColor; display: inline-block; }
.label { font: 500 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede, .center .body { margin-inline: auto; }

/* ---------------------------------------------------------------- logo: CFS + cursor */
.logo { display: inline-flex; align-items: center; gap: 0.136em; font: 500 22px/1 var(--mono); letter-spacing: 0.06em; color: var(--cobalt); }
a.logo { min-block-size: 44px; margin-block: calc((1em - 44px) / 2); }   /* 44px target (WCAG 2.5.8); the negative margin keeps the layout of a 1em-tall logo */
.logo i { display: inline-block; width: 0.38em; height: 0.87em; background: currentColor; }   /* matches the drawn logo (brand/logos) */
@keyframes cursor { 50% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .logo.is-blink i { animation: cursor 1.1s steps(1) infinite; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; max-width: 100%;
  font: 500 16px/1 var(--mono); letter-spacing: 0.01em; border-radius: var(--r-sm); border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s; white-space: normal; text-align: center; cursor: pointer; }
.btn-primary { background: var(--cobalt); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--cobalt-600); } }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }   /* --accent keeps it readable in a dark section */
@media (hover: hover) and (pointer: fine) { .btn-outline:hover { background: color-mix(in oklch, var(--accent) 11%, transparent); } }
.btn-ghost { color: var(--ink); padding: 0 6px; }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { color: var(--accent); } }
.btn-sm { min-height: 38px; padding: 10px 16px; font-size: 14px; }
.btn:active, a.chip:active, button.chip:active { scale: 0.97; }
.card-link:active { scale: 0.985; }
@media (prefers-reduced-motion: no-preference) { .btn, a.chip, button.chip, .card-link { transition-property: background, color, border-color, scale, translate; transition-duration: .15s; transition-timing-function: var(--ease-out); } }
/* hit areas: small controls are at least 44px tall to a finger, whatever they look like */
.btn-sm, a.chip, button.chip, .nav-link { position: relative; }
:is(.btn-sm, a.chip, button.chip, .nav-link)::before { content: ""; position: absolute; inset-inline: 0; inset-block: min(0px, (100% - 44px) / 2); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }
.arrow::after { content: "→"; font-family: var(--mono); }

/* ---------------------------------------------------------------- nav */
.nav { container: nav / inline-size; position: sticky; inset-block-start: 0; z-index: 50; background: color-mix(in oklch, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-block-end: 1px solid transparent; transition: border-color .2s; }
.nav.is-stuck { border-block-end-color: var(--line); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 40px; }
.nav-in > nav { margin-inline: auto; }
.nav-links { display: flex; gap: 6px; padding: 0; margin: 0; }
.nav-links > li { list-style: none; position: relative; }
.nav-link { font: 400 16px/1 var(--mono); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); display: inline-flex; gap: 6px; align-items: center; }
.nav-link[aria-expanded="true"] { background: var(--fill); }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { background: var(--fill); } }
.nav-link[aria-current="page"] { color: var(--cobalt); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.menu { position: absolute; inset-block-start: 100%; inset-inline-start: -12px; min-width: 520px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px; display: none; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-links > li:focus-within:not(.is-dismissed) .menu { display: grid; }
@media (hover: hover) and (pointer: fine) { .nav-links > li:hover:not(.is-dismissed) .menu { display: grid; } }
.menu a { display: block; padding: 12px 14px; border-radius: var(--r); }
@media (hover: hover) and (pointer: fine) { .menu a:hover { background: var(--paper); } }
.menu b { display: block; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.menu span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); margin-block-start: 3px; }
.nav-burger, .nav-mobile-login { display: none; }
@container nav (width <= 77.5rem) {
  .nav-in > nav { display: none; }
  .nav-right { margin-inline-start: auto; }
  .nav-burger { display: inline-flex; }
  .nav.is-open .nav-in > nav { display: block; position: absolute; inset-block-start: 100%; inset-inline: 0; }
  .nav.is-open .nav-links { display: flex; flex-direction: column; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); border-block-end: 1px solid var(--line); }
  .nav.is-open .menu { position: static; display: grid; box-shadow: none; min-width: 0; grid-template-columns: 1fr; border: 0; padding: 0 0 8px; background: transparent; }
}
@container nav (width <= 40rem) {
  .nav-right .nav-login { display: none; }
  .nav-mobile-login { display: list-item; }
}

/* ---------------------------------------------------------------- ascii (the signature) */
.ascii { font: 400 13px/1.18 var(--mono); color: var(--cobalt-ascii); white-space: pre; margin: 0; user-select: none; letter-spacing: 0; }
.ascii .f { color: var(--signal); font-weight: 600; }
.ascii .t { color: var(--cobalt); font-weight: 500; }   /* labels inside plans */
.ascii-fade { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.glyph-field { font: 400 14px/1 var(--mono); color: var(--cobalt-ascii); letter-spacing: 0.18em; word-break: break-all; }
.glyph-field .f { color: var(--signal); }

/* ---------------------------------------------------------------- the product (CFS Analyst) */
.app { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); display: grid;
  grid-template-columns: 200px 1fr; overflow: clip; text-align: start; }
.app-side { border-inline-end: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; background: color-mix(in oklch, var(--paper) 31.8%, white); }
.app-side .logo { font-size: 20px; margin: 0 8px 20px; }
.app-nav { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; font: 400 14.5px/1 var(--sans); color: var(--text); }
.app-nav svg { flex: none; block-size: 1.65cap; inline-size: auto; stroke: var(--muted); fill: none; stroke-width: 1.6; }   /* sized by the label's capitals */
.app-nav.on { background: var(--cobalt-tint); color: var(--cobalt); }
.app-nav.on svg { stroke: var(--cobalt); }
.app-main { padding: 28px 32px 22px; display: flex; flex-direction: column; gap: 22px; min-width: 0; container-type: inline-size; }
.app-q { align-self: flex-end; max-width: 78%; background: var(--fill); border-radius: 12px; padding: 12px 16px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.app-a { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.app-mark { width: 30px; height: 30px; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; }
.app-mark i { width: 7px; height: 13px; background: var(--cobalt); display: block; }
.app-verdict { font: 700 var(--fs-verdict)/1.22 var(--sans); letter-spacing: -0.03em; color: var(--ink); margin: 2px 0 0; text-wrap: balance; }
.app-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-start: 18px; }
.app-fig { padding-inline-end: 18px; }
.app-fig + .app-fig { border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.app-fig b { display: block; white-space: nowrap; font: 400 var(--fs-fig)/1.1 var(--mono); color: var(--cobalt); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.app-fig span { display: block; font-size: 13.5px; color: var(--muted); margin-block-start: 6px; }
.app-compose { margin-block-start: auto; border: 1px solid var(--line); border-radius: 12px; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; color: var(--faint); font-size: 15px; }
.app-send { width: 34px; height: 34px; border-radius: 99px; background: var(--cobalt); display: grid; place-items: center; color: var(--white); font-size: 16px; }
.app { container-type: inline-size; }
@container (width < 44rem) { .app-side { display: none; } }
.app:has(> .app-side) { grid-template-columns: fit-content(200px) minmax(0, 1fr); }
/* figure triplets stack when they run out of room: inside an app mock that is the mock's own width (a container query);
   elsewhere there is no container to ask, so the viewport decides */
@container (width < 26rem) { .app-figs { grid-template-columns: 1fr; gap: 14px; } .app-fig + .app-fig { border-inline-start: 0; padding-inline-start: 0; } }

/* rank strip: the chain as a row of glyph blocks, the store in orange */
.rank { margin-block-start: 20px; }
.rank-row { display: flex; flex-direction: row-reverse; gap: 4px; }   /* weakest on the left, strongest on the right, as in the app */
.rank-row i { flex: 1; height: 13px; background: var(--cobalt); border-radius: 1.5px; }
.rank-row i.f { background: var(--signal); }
.rank-row.is-quiet i { background: color-mix(in oklch, var(--cobalt) 31.1%, white); }
.rank-row.is-quiet i.f { background: var(--signal); }
.rank-legend { display: flex; justify-content: space-between; font: 400 12.5px/1 var(--mono); color: var(--muted); margin-block-start: 10px; }

/* ---------------------------------------------------------------- cards & blocks */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card-link { transition: border-color .15s; display: block; }
@media (hover: hover) and (pointer: fine) { .card-link:hover { border-color: var(--cobalt); } }
.tile { border-block-start: 1px solid var(--line-strong); padding-block-start: 22px; }
.stat b { display: block; font: 400 var(--fs-stat)/1 var(--mono); color: var(--ink); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-block-start: 12px; color: var(--muted); font-size: 15px; max-width: 30ch; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 6px 10px; max-width: 100%; border-radius: 99px; font: 500 12.5px/1 var(--mono); background: var(--cobalt-tint); color: var(--cobalt); }
.chip-signal { background: var(--signal-tint); color: var(--signal-ink); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 24px; font-size: 15px; }
.kv dt { font: 500 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.kv dd { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-align: start; padding: 0 12px 12px 0; border-block-end: 1px solid var(--line-strong); }
.table td { padding: 14px 12px 14px 0; border-block-end: 1px solid var(--line); vertical-align: top; }
.table td, time { font-variant-numeric: tabular-nums; }
.table td.n { font-family: var(--mono); white-space: nowrap; }
.table tr.is-flag td { color: var(--signal-ink); }
.table tr.is-flag td:first-child { box-shadow: inset 3px 0 0 var(--signal); padding-inline-start: 12px; }
.callout { border-inline-start: 1px solid var(--line-strong); padding: 4px 0 4px 20px; }
.note { background: var(--fill); border-radius: var(--r); padding: 18px 20px; font-size: 15px; }
.prose { max-width: 70ch; }
/* Geist's 1ch is about 0.66em while running text averages about 0.47em a character, so a 52ch cap gives about 72
   characters a line. Only paragraphs and list items; figures, tables and code keep the full column. */
.prose > p, .prose > ul > li, .prose > ol > li { max-inline-size: 52ch; }
.prose p, .prose ul, .prose ol { font-size: 18px; line-height: 1.7; margin: 0 0 1.1em; }
.prose h2 { font: 700 30px/1.15 var(--sans); letter-spacing: -0.03em; color: var(--ink); margin: 2em 0 0.6em; }
.prose h3 { font: 600 21px/1.3 var(--sans); letter-spacing: -0.015em; color: var(--ink); margin: 1.6em 0 0.5em; }
.prose li { margin-block-end: 0.4em; }
.prose blockquote { margin: 1.6em 0; font: 500 24px/1.4 var(--sans); letter-spacing: -0.02em; color: var(--ink); border-inline-start: 1px solid var(--line-strong); padding-inline-start: 22px; }
.prose figure { margin: 2em 0; }
.prose figcaption { font: 400 13px/1.5 var(--mono); color: var(--muted); margin-block-start: 10px; }
.crumbs { font: 400 13px/1 var(--mono); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--cobalt); } }
.faq details { border-block-end: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 18px/1.4 var(--sans); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--cobalt); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--text); max-width: 70ch; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--white); border-block-start: 1px solid var(--line); padding: 72px 0 40px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 32px; }
/* column titles are <p class="label footer-title">: .label gives the type; this gives the old h4's spacing */
.footer .footer-title { margin: 6px 0 16px; line-height: 1; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--cobalt); } }
.footer-base { margin-block-start: 64px; padding-block-start: 24px; border-block-start: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); font: 400 13px/1.5 var(--mono); }
@container (width < 60rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- hero (direction B) */
.hero { position: relative; padding: 96px 0 0; overflow: clip; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .lede { margin-block-start: 26px; max-width: none; }
.hero-copy .btn-row { margin-block-start: 36px; }
.hero-stage { position: relative; margin-block-start: 64px; min-height: 560px; padding-block-end: 72px; display: flow-root; }
.hero-stage::after { content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 0; inset-block-end: 0; height: 180px; background: linear-gradient(to bottom, transparent, var(--paper)); z-index: 1; pointer-events: none; }
.hero-plan { position: absolute; inset: 0 -40px; display: flex; justify-content: center; overflow: clip; }
.hero-app { position: relative; z-index: 2; width: min(1080px, 100%); margin: 470px auto 0; }
@container (width <= 47.5rem) { .hero { padding-block-start: 56px; } .hero-stage { margin-block-start: 48px; } .hero-app { margin-block-start: 180px; } }

/* ---------------------------------------------------------------- utilities */
.mt-8 { margin-block-start: 8px; } .mt-16 { margin-block-start: 16px; } .mt-24 { margin-block-start: 24px; } .mt-32 { margin-block-start: 32px; } .mt-48 { margin-block-start: 48px; } .mt-64 { margin-block-start: 64px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* skip link: hidden until a keyboard user reaches it, then a readable pill above the sticky header */
.skip-link { position: fixed; z-index: 100; inset-block-start: 10px; inset-inline-start: 10px; padding: 10px 16px; border-radius: 99px;
  background: var(--white); color: var(--ink); font: 500 15px/1 var(--sans); box-shadow: var(--shadow); translate: 0 -200%; }
.skip-link:focus-visible { translate: 0 0; outline: 2px solid var(--cobalt); outline-offset: 2px; }
.study-note { font: 400 12px/1.5 var(--mono); color: var(--faint); }

/* chain field: every store in the chain as one glyph, the store in orange */
.chain-field { display: grid; grid-template-columns: repeat(auto-fill, minmax(8px, 1fr)); gap: 5px; }
.chain-field i { aspect-ratio: 1; background: color-mix(in oklch, var(--cobalt) 58.4%, white); border-radius: 1.5px; }
.chain-field i.f { background: var(--signal); outline: 3px solid color-mix(in oklch, var(--signal) 25%, transparent); }

/* ---------------------------------------------------------------- product panels (small, real UI) */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px 28px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 24px; }
.panel-title { font: 600 15px/1.3 var(--sans); color: var(--ink); }
.drivers { display: grid; gap: 14px; }
.driver { display: grid; grid-template-columns: 170px 1fr 74px; gap: 14px; align-items: center; font-size: 14.5px; }
.driver .track { height: 10px; background: var(--fill); border-radius: 2px; position: relative; }
.driver .track::after { content: ""; position: absolute; inset-inline-start: 50%; inset-block-start: -3px; inset-block-end: -3px; width: 1px; background: var(--line-strong); }
.driver .val { position: absolute; inset-block-start: 0; inset-block-end: 0; background: var(--cobalt); border-radius: 2px; }
.driver .val.neg { background: var(--ink); }   /* orange is reserved for the flagged store */
.driver .num { text-align: end; font-size: 13.5px; color: var(--muted); }
.sources { display: flex; gap: 8px; flex-wrap: wrap; }
.check { display: inline-flex; gap: 8px; align-items: center; font: 400 13px/1 var(--mono); color: var(--muted); }
.check::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--cobalt); display: inline-block; }
.hero-note { margin-block-start: 18px; }
.quote { font: 500 var(--fs-quote)/1.3 var(--sans); letter-spacing: -0.025em; color: var(--ink); margin: 0; text-wrap: balance; }
.quote-by { margin-block-start: 18px; }
.cta-band { position: relative; overflow: clip; }
.cta-band > .ascii { position: absolute; inset-inline-start: 50%; inset-block-end: -8px; transform: translateX(-50%); opacity: 0.6; }
.cta-band .wrap { position: relative; z-index: 2; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.feature.flip > :first-child { order: 2; }
@container (width < 60rem) { .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; } .feature.flip > :first-child { order: 0; } }
.feature + .feature { margin-block-start: clamp(4.5rem, 9vw, 7.5rem); }
/* a driver row sizes its label and value columns from its own width */
.drivers { container-type: inline-size; }
@container (width < 36rem) { .driver { grid-template-columns: 7.5rem 1fr 3.75rem; } }
@container (width < 24rem) { .driver { grid-template-columns: 1fr 4rem; row-gap: 6px; } .driver .track { grid-column: 1 / -1; order: 3; } }
.role { display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.role .h3 { margin-block-start: auto; }
.logo-row { display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: center; color: var(--faint); font: 500 15px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* chain lookup */
.lookup { --pad: 8px; display: flex; gap: 10px; background: var(--white); border: 1px solid var(--line-strong); border-radius: calc(var(--r-sm) + var(--pad)); padding: var(--pad); box-shadow: var(--shadow); }
.lookup input { flex: 1; border: 0; outline: 2px solid transparent; background: transparent; font: 400 18px/1 var(--sans); color: var(--ink); padding: 0 12px; min-width: 0; }
.lookup input::placeholder { color: var(--faint); }

/* code-like pre blocks inside content never widen the page */
.split > pre.ascii, .panel pre.ascii, .prose pre, pre.code { max-width: 100%; overflow-x: auto; }
.split > pre.ascii { font-size: clamp(12px, 1.1vw, 13px) !important; }
.chain-field { container-type: inline-size; }
@container (width < 30rem) { .chain-field { gap: 3px; grid-template-columns: repeat(auto-fill, minmax(6px, 1fr)); } }
.split > *, .feature > *, .grid > * { min-width: 0; }
.lookup input { width: 100%; }

/* shared fixes (from builder review, 28 Sep) */
.stack > * + .lede, .stack > * + .body, .stack > * + .small { margin-block-start: var(--s, 16px); }
.nav-burger { border: 1px solid var(--line-strong); }
/* key–value lists: term beside value while there is room for both, term above value when there is not */
.kv { grid-template-columns: minmax(8rem, 180px) minmax(0, 1fr); }
:has(> .kv) { container-type: inline-size; }
@container (width < 30rem) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .kv dd { margin-block-end: 12px; } }

/* ---------------------------------------------------------------- site plans, vector (plan.js) */
.is-plan { white-space: normal; line-height: 0; flex: none; }   /* a plan keeps its drawn width inside a flex row; it is cropped, never squeezed */
.plan-svg { display: block; max-width: none; overflow: visible; }
.plan-svg g { fill: none; stroke: var(--cobalt); stroke-linecap: round; stroke-linejoin: round; }
.plan-svg .pl-line { stroke-width: 1.25; stroke-dasharray: 4.2 2.6; opacity: 1; }
.plan-svg .pl-thin { stroke-width: 1; stroke-dasharray: 3 2.4; opacity: .82; }
.plan-svg .pl-dot { stroke-width: 1.2; stroke-dasharray: .1 3.4; opacity: .8; }
.plan-svg .pl-tree { stroke-width: 1.1; stroke-dasharray: 2.2 1.4; opacity: .95; }
.plan-svg .pl-center { stroke-width: 1.1; stroke-dasharray: 10 8; opacity: .7; }
.plan-svg .pl-dots { stroke: none; }
.plan-svg .pl-dotfill { fill: var(--cobalt); opacity: .5; }
.plan-svg .pl-text { stroke: none; fill: var(--cobalt); font: 500 12.5px/1 var(--mono); letter-spacing: .06em; }
.plan-svg .pl-text .pl-name { font-size: 13px; letter-spacing: .08em; }
.plan-svg .pl-flag { stroke: none; }
.plan-svg .pl-hash { fill: var(--signal); font: 600 13px/1 var(--mono); }
.plan-svg .pl-flagline { fill: none; stroke: var(--signal); stroke-width: 1.7; stroke-dasharray: 4 2.2; }
.plan-svg .pl-flagline.is-inner { stroke-width: 1; stroke-dasharray: 2 2; opacity: .8; }
.plan-svg .pl-flagline.is-dissolve { stroke-dasharray: 2 7; }
.plan-svg .pl-knock { fill: var(--paper); stroke: none; }
.plan-svg .pl-flagtxt { fill: var(--signal); font: 600 14px/1 var(--mono); letter-spacing: .04em; }
.on-white .plan-svg .pl-knock, .panel .plan-svg .pl-knock, .card .plan-svg .pl-knock { fill: var(--white); }
.on-night .plan-svg g { stroke: #8FA2FF; }
.on-night .plan-svg .pl-text, .on-night .plan-svg .pl-dotfill { fill: #8FA2FF; }
.on-night .plan-svg .pl-knock { fill: var(--night); }

/* generated plan illustrations (round 9): the paper ground multiplies away on paper and white */
.plan-img { display: block; max-width: none; flex: none; object-fit: cover; mix-blend-mode: multiply; }   /* flex: none: a sized image must not shrink in a flex row */
:is(.is-plan, .hero-plan) > picture { display: contents; }   /* the picture only offers AVIF and WebP; the image lays out as before */
.plan-img.is-night { mix-blend-mode: normal; }

/* hero, matched to the round-6 B mockup: one screen, two-line headline, the plan scaled to the card so unit 004 sits just right of it */
.hero { --card: min(1000px, 100vw - 2 * var(--gutter)); padding-block-start: 56px; }
.hero .display { font-size: clamp(44px, 4.5vw, 84px); max-width: 1240px; margin-inline: auto; }
.hero .hero-copy .lede { margin-block-start: 18px; }
.hero .hero-copy .btn-row { margin-block-start: 30px; }
.hero .hero-stage { margin-block-start: 44px; min-height: 0; height: calc(var(--card) * 0.72); padding-block-end: 0; overflow: clip; }
.hero .hero-stage::after { height: 90px; }
.hero-plan-b { position: absolute; inset: 0 auto auto 50%; width: calc(var(--card) * 2.06 + 50px); transform: translateX(-50%); display: block; }
.hero-plan-b img { width: 100%; height: auto; }
.hero .hero-app { width: var(--card); margin: calc(var(--card) * 0.075) auto 0; }
@container (width <= 47.5rem) { .hero .hero-stage { height: auto; padding-block-end: 32px; } .hero .hero-app { margin-block-start: 120px; } }

/* hero tuning against the mockup (1920×1080 reference) */
.hero { --card: min(1080px, 100vw - 2 * var(--gutter)); }
.hero .display { font-size: clamp(40px, 4.8vw, 92px); max-width: none; text-wrap: wrap; letter-spacing: -0.055em; }
.hero .hero-stage { margin-block-start: 40px; height: calc(var(--card) * 0.62); }
.hero-plan-b { inset-inline-start: calc(50% - var(--card) * 0.893 + 16px); width: calc(var(--card) * 1.87); transform: none; }
.hero .hero-app { margin-block-start: calc(var(--card) * 0.068); min-height: calc(var(--card) * 0.49); grid-template-columns: 210px 1fr; }
.hero .app-main { padding: 30px 34px 24px; gap: 26px; }
.hero .app-q { font-size: 16px; }
.hero .app-verdict { font-size: clamp(20px, 1.75vw, 31px); }
.hero .app-fig b { font-size: clamp(20px, 1.9vw, 36px); }
.hero .app-fig span { font-size: 14.5px; }
.hero .app-side .logo { font-size: 23px; }
.hero .app-nav { font-size: 15.5px; padding: 11px 10px; }
@container (width <= 62.5rem) { .br-lg { display: none; } }
@container (width <= 47.5rem) { .hero .hero-stage { height: auto; } .hero .hero-app { min-height: 0; margin-block-start: 120px; } .hero-plan-b { inset-inline-start: 50%; width: 1066px; transform: translateX(-62%); } }
.hero .hero-stage { margin-block-start: -18px; }
.hero .hero-app { margin-block-start: calc(var(--card) * 0.07); min-height: calc(var(--card) * 0.455); }
.hero .app-fig b { font-size: clamp(20px, 1.6vw, 31px); }
.hero .app-figs { grid-template-columns: 1fr 1fr 1.35fr; }
/* large screens: the mockup's nav and subhead scale */
@media (min-width: 100rem) { :root { --nav-h: 84px; } }   /* the header height is page-wide state, so the viewport decides */
@container nav (width >= 100rem) {
  .nav .wrap { width: min(1780px, 100% - 2 * 48px); }
  .nav .logo { font-size: 30px; }
  .nav-link { font-size: 17px; }
  .nav-right .btn-sm { height: 48px; padding: 0 24px; font-size: 16.5px; }
}
@container (width >= 100rem) {
  .hero .hero-copy .lede { font-size: 25px; }
  .hero .btn-row .btn { height: 52px; padding: 0 30px; font-size: 17px; }
  .hero .app-q { font-size: 17px; }
  .hero .app-fig span { font-size: 15.5px; }
}
@container (width <= 47.5rem) {
  .hero .hero-app { grid-template-columns: 1fr; }
  .hero .app-main { padding: 20px 18px 16px; gap: 18px; }
  .hero .app-q { max-width: 100%; font-size: 15px; }
  .hero .app-figs { grid-template-columns: 1fr; gap: 14px; }
  .hero .app-fig b { font-size: 24px; }
}
@container (width <= 47.5rem) { .hero .hero-stage { margin-block-start: 28px; } }

/* ---------------------------------------------------------------- audit fixes (round 10) */
/* CTA bands: the illustration sits below the content in normal flow, never under buttons */
.cta-band { padding-block-end: 0; overflow: clip; }
.cta-band > .ascii { position: relative; inset-inline-start: 50%; inset-block-end: auto; transform: translateX(-50%); width: max-content; margin-block-start: 64px; opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 62%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 62%, transparent); }
@container (width <= 40rem) { .cta-band > .ascii { margin-block-start: 40px; } }
/* hero: the plan starts below the buttons and fades in */
.hero .hero-stage { margin-block-start: 36px; }
.hero-plan-b { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px); mask-image: linear-gradient(to bottom, transparent 0, #000 70px); }
@container (width <= 47.5rem) { .hero .hero-stage { margin-block-start: 40px; } }
/* headings never leave one word on the last line */
h1, h2, h3, h4, .display, .h1, .h2, .h3, .quote, .app-verdict { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
/* wide tables scroll inside themselves on phones */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
@container (width <= 47.5rem) { .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; } }
/* placeholders in inputs and the composer meet contrast */
.app-compose, ::placeholder { color: var(--faint); }
.hero .hero-app { min-height: 0; }
@container (width >= 100rem) { .hero .hero-app { min-height: calc(var(--card) * 0.455); } }


/* CTA plans: full-bleed on wide screens; on phones the crop centres on the flagged unit */
@container (width >= 97.562rem) { .cta-band > .ascii .plan-img { width: 100vw !important; } }
@container (width <= 40rem) {
  .cta-band > .ascii { inset-inline-start: 50%; transform: translateX(calc(var(--fx, .5) * -880px)); }
  .cta-band > .ascii .plan-img { width: 880px !important; height: auto !important; }
}
/* from reviewer D */
.cta-band > .ascii { background: var(--paper); }
.cta-band.on-white > .ascii { background: var(--white); }
.btn-row > .btn-ghost:first-child { margin-inline-start: -6px; }
@container (width <= 47.5rem) { .table-wrap .table:not(.table-mobile-ready):not(.t-stack):not(.table-stack):not(.x-compare), .table.is-fit:not(.table-mobile-ready) { display: table; } }
/* from reviewer A */
.table td.n { text-align: end; }
.table td.n:first-child { text-align: start; }
.on-night .spec dt { color: var(--faint); }
@container (width <= 47.5rem) {
  .panel .table:not(.table-mobile-ready):not(.t-stack):not(.table-stack):not(.x-compare), .card .table:not(.table-mobile-ready):not(.t-stack):not(.table-stack):not(.x-compare) { display: table; }
  .table-wrap:has(.table-mobile-ready, .t-stack, .table-stack, .x-compare) { overflow: visible; }
  .crumbs a { padding: 14px 0; margin: -14px 0; }
  a.chip { height: 36px; padding: 0 14px; }
  .split > [style*="justify-self:end"] { justify-self: start !important; }
}
/* from reviewer B: standalone ghost links sit on the text lane */
.stack > .btn-ghost, .story > .btn-ghost { margin-inline-start: -6px; }

/* Polish: shared spacing, growing labels and visible recovery states. */
[hidden] { display: none !important; }
.stack > * + :is(.h1, .h2, .h3, .h4) { margin-block-start: var(--s, 16px); }
.stack > .btn-row { margin-block-start: max(32px, calc(var(--s, 16px) * 2)); }
.stack > .btn-ghost { justify-content: flex-start; text-align: start; }
.btn-row { align-items: flex-start; }
.btn-row > .link { align-self: center; }
.btn-row:has(.btn-ghost) { column-gap: 24px; }
.chip, .check, .eyebrow, .label { line-height: 1.4; }
.eyebrow::before { flex: none; }
.rank-legend { gap: 12px; line-height: 1.4; flex-wrap: wrap; }
.app-a > div { min-width: 0; }
.app-compose { min-height: 50px; height: auto; gap: 16px; padding-block: 8px; }
.app-send { flex: none; }
.sources { gap: 12px; }
a.chip { border: 1px solid var(--line-strong); text-decoration: underline; text-underline-offset: 3px; }
.lookup:focus-within { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.lookup:has(input:focus-visible) input { outline-color: transparent; }
.search-label { display: block; margin-block-end: 8px; font: 500 14px/1.4 var(--sans); }
.field-error { margin: 0; font: 500 14px/1.5 var(--sans); color: var(--ink); }
[aria-invalid="true"] { border-color: var(--ink); }
.demo-note { margin: 0; font: 400 13px/1.5 var(--mono); color: var(--muted); }
.copy-status { flex-basis: 100%; margin: 0; font: 400 13px/1.5 var(--sans); color: var(--muted); }
.copy-fallback { width: 100%; min-height: 100px; padding: 12px; font: 400 14px/1.5 var(--mono); color: var(--ink); border: 1px solid var(--line-strong); background: var(--white); }
.scroll-hint { margin: 0 0 12px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
:is(.on-night, .win, .x-term) .scroll-hint { color: #9AA3C7; }   /* light muted on night: about 7:1 on #0A0F2C */
.cell-label { display: none; }
.cell-value { display: contents; }
@container (width <= 47.5rem) {
  .table.table-mobile-ready { position: relative; display: block; min-width: 0 !important; overflow: visible; }
  .table-mobile-ready thead { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-mobile-ready tbody { display: block; }
  .table-mobile-ready tbody tr { display: grid; gap: 12px; padding-block: 24px; border-block-end: 1px solid var(--line); }
  .table-mobile-ready tbody tr:first-child { padding-block-start: 0; }
  .table.table-mobile-ready tbody td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; width: auto; padding: 0; border: 0; box-shadow: none; white-space: normal; text-align: start; }
  .table.table-mobile-ready tbody td:first-child, .table.table-mobile-ready tbody td:last-child { padding-inline: 0; box-shadow: none; }
  .table-mobile-ready .cell-label { display: block; font: 500 13px/1.5 var(--sans); color: var(--muted); }
  .table-mobile-ready .cell-value { display: block; min-width: 0; overflow-wrap: anywhere; }
  .table-mobile-ready td.n .cell-value { text-align: end; }
  .table-mobile-ready tr.is-flag { border-inline-start: 3px solid var(--signal); padding-inline-start: 12px; }
}
@container nav (width <= 40rem) {
  .nav-in { gap: 16px; }
  .nav-right { gap: 12px; }
  .nav .btn-sm { padding-inline: 12px; font-size: 13px; }
  .nav-link { min-height: 44px; }
}
@container (width <= 40rem) {
  .footer-grid { row-gap: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer li a { display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; }   /* WCAG 2.5.8 target; the ul gap shrinks to keep the column height */
  .footer ul { gap: 0; }
  .grid > .app-fig + .app-fig { border-inline-start: 0; padding-inline-start: 0; }
  .grid:has(> .app-fig) { row-gap: 24px !important; }
  .lookup { flex-wrap: wrap; gap: 12px; }
  .lookup input { min-height: 44px; flex-basis: 180px; }
  .lookup .btn { flex-grow: 1; }
  a.chip { height: auto; min-height: 40px; }
}

/* ---------------------------------------------------------------- scrollers that fade only when they overflow */
@property --fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes scroll-edges { from { --fade-start: 0px; --fade-end: 2rem; } 10%, 90% { --fade-start: 2rem; --fade-end: 2rem; } to { --fade-start: 2rem; --fade-end: 0px; } }
@supports (animation-timeline: scroll()) {
  :is(.table-wrap, .table-scroll, .t-scroll, .x-scroll, .plan-scroll) {
    animation: scroll-edges linear; animation-timeline: scroll(self inline);
    mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
    overscroll-behavior-x: contain;
  }
  /* a mask clips everything outside the border box, the focus ring included. A scroller that overflows is keyboard
     focusable (cfs.js), so while it has focus the fade steps aside and the ring is drawn inside the box. */
  :is(.table-wrap, .table-scroll, .t-scroll, .x-scroll, .plan-scroll):focus-visible { mask-image: none; outline-offset: -2px; }
}
