/* SureCite public site, round 8 (18 October 2026).

   Direction kept from round 4, "the register": Source Serif 4 for headings,
   Public Sans for text, ink-black actions, one blue for what is cited or
   linked, hairline rules instead of boxes. Round 8 applies the vault's
   "Landing Page and Marketing Playbook" (18 Oct 2026):
   - a full-width coloured hero panel (the brand blue, darkened) with the real
     product overlapping its lower edge; the same panel on every page's hero
     and on the closing band;
   - one headline on one line at every width (sized from the viewport, never
     wrapped);
   - section titles are real titles: no small eyebrow labels;
   - the logo is exactly as tall as the header's main button (--hdr-btn);
   - section links collapse into a sideways-scrolling tab row under the
     header; they never vanish and never push the button off-screen;
   - designed focus styles: underline and colour for links and FAQ
     questions, a ring only for buttons and fields;
   - dark mode designed, reduced motion respected.

   The pre-round-8 stylesheet is kept, frozen, at concepts/base-r7.css for the
   internal concept pages that still use its classes.

   Tokens: primitives -> semantic roles. Components use semantic roles only. */

/* ---------- Primitives ---------- */
:root {
  --n-0: #ffffff;
  --n-25: #f5f6f7;
  --n-50: #eceef0;
  --n-100: #dadde1;
  --n-200: #b9bec4;
  --n-500: #5b626b;
  --n-700: #3a4048;
  --n-900: #111418;
  --n-950: #0e1012;
  --n-d0: #131518;
  --n-d1: #1a1d21;
  --n-d2: #202328;
  --n-d3: #2a2e33;
  --n-d4: #3c4249;
  --n-d5: #969da6;
  --n-d6: #c4c8ce;
  --n-d7: #eceef0;

  --blue-700: #2e46a4;
  --blue-100: #e6eafa;
  --blue-300: #a9b8f2;
  --blue-900: #1d2749;
  /* The panel blue: blue-700 taken down toward ink, so the hero, the closing
     band and the policy pages share one colour that is already the brand's. */
  --navy: #1b2858;
  --navy-d: #18224a;
  --tint: #e9edf9;
  --tint-d: #161d36;

  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Semantic roles: light ---------- */
:root {
  --bg: var(--n-25);
  --bg-sunk: var(--n-50);
  --surface: var(--n-0);
  --field: var(--n-0);
  --text: var(--n-900);
  --text-2: var(--n-700);
  --muted: var(--n-500);
  --rule: var(--n-100);
  --rule-strong: var(--n-200);
  --rule-ink: var(--n-900);
  --ink: var(--n-900);
  --ink-hover: #2b3038;
  --on-ink: var(--n-0);
  --accent: var(--blue-700);
  --accent-tint: var(--blue-100);
  --focus: var(--blue-700);
  --law-text: #1d5c31;
  --guide-text: #6b4f00;
  --danger: #a3261a;

  --panel: var(--navy);
  --panel-text: #ffffff;
  --panel-muted: #c9d1ef;
  --panel-rule: rgba(255, 255, 255, .22);
  --panel-link: #dfe5ff;
  --hl: var(--blue-300);
  --shot-bg: var(--tint);
  --shadow-shot: 0 1px 2px rgba(17, 20, 24, .06), 0 18px 40px -18px rgba(17, 20, 24, .35);

  /* Layout and rhythm */
  --wrap: 1200px;
  --gutter: 16px;
  --col-gap: 24px;
  --sy: clamp(72px, 9vw, 120px);
  --radius-s: var(--radius-badge);
  --radius: var(--radius-control);
  --radius-l: var(--radius-panel);
  --control-h: 44px;
  --hdr-btn: 36px;
  --hdr-row: 64px;
  --tab-row: 44px;
  --header-h: calc(var(--hdr-row) + var(--tab-row));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t: 160ms;

  /* ---------- One style per role (consistency pass, 19 Oct 2026) ----------
     Vault: "Website Consistency System". Every rule below uses these and no
     literal size, gap or radius; a new section reuses a role or adds a token
     here with its name. Measured by tools/site_checks/consistency.mjs at 1440,
     820 and 390 px. Where the app (web/src/index.css) renders the same role it
     uses the same value: label, table header, numbers, buttons, fields,
     badges, panels and the focus ring. */
  --fs-label: .9375rem;                                    /* the one label above a heading, 500 */
  --fs-page-title: clamp(2.25rem, 1.55rem + 3vw, 4rem);    /* h1 on inner pages */
  --fs-section: clamp(2rem, 1.5rem + 2vw, 3rem);           /* every section h2 */
  --fs-feature: clamp(1.75rem, 1.45rem + 1.2vw, 2.375rem); /* h3 beside a large picture, or over a group */
  --fs-card: 1.375rem;                                     /* h3/h4 in a card, step, list or document */
  --fs-body: 1.0625rem;                                    /* all running text */
  --lh-body: 1.6;
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);  /* the sentence under a heading */
  --fs-small: .875rem;                                     /* fine print */
  --fs-caption: .8125rem;                                  /* captions, table headers, meta lines */
  --fs-control: .875rem;                                   /* buttons (the app's text-small) */
  --fs-field: 1rem;                                        /* typed text in a field */
  --fs-badge: .75rem;                                      /* a citation or status badge */
  --gap-label: 16px;                                       /* label to heading */
  --gap-head: clamp(36px, 5vw, 64px);                      /* heading block to its content, every section */
  --gap-text: 16px;                                        /* heading to words, words to words */
  --gap-media: 24px;                                       /* words to picture in a card */
  --radius-badge: 4px;
  --radius-control: 6px;                                   /* buttons and fields, site and app */
  --radius-panel: 8px;                                     /* panels, specimens, picture frames, site and app */
  --pad-control: 16px;
  /* One underline system (Omar, 19 Oct 2026: "underlines are touching and
     sometimes under ... make the underlines squared"). Every underline sits at
     the same depth below the baseline, clear of the deepest descender of
     both fonts (Source Serif 4 0.26 em, Public Sans 0.17 em, measured), is a
     straight squared line (text-decoration, never a rounded bar) and never
     breaks around letters. The app (web/src/index.css) uses the same values.
       --ul-offset     depth below the baseline, every underline
       --ul-thickness  a text link
       --ul-strong     a focused link, the current page in the nav, an active tab
       --ul-accent     the highlighted word in a heading */
  --ul-offset: 0.32em;
  --ul-thickness: 1px;
  --ul-strong: 2px;
  --ul-accent: 0.075em;

  color-scheme: light;
}

/* ---------- Semantic roles: dark (designed, not inverted) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--n-950);
    --bg-sunk: var(--n-d0);
    --surface: var(--n-d1);
    --field: var(--n-d2);
    --text: var(--n-d7);
    --text-2: var(--n-d6);
    --muted: var(--n-d5);
    --rule: var(--n-d3);
    --rule-strong: var(--n-d4);
    --rule-ink: var(--n-d6);
    --ink: var(--n-d7);
    --ink-hover: #ffffff;
    --on-ink: var(--n-950);
    --accent: var(--blue-300);
    --accent-tint: var(--blue-900);
    --focus: var(--blue-300);
    --law-text: #9ed8ae;
    --guide-text: #ebcb7a;
    --danger: #f2a497;
    --panel: var(--navy-d);
    --shot-bg: var(--tint-d);
    --shadow-shot: 0 18px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--n-950);
  --bg-sunk: var(--n-d0);
  --surface: var(--n-d1);
  --field: var(--n-d2);
  --text: var(--n-d7);
  --text-2: var(--n-d6);
  --muted: var(--n-d5);
  --rule: var(--n-d3);
  --rule-strong: var(--n-d4);
  --rule-ink: var(--n-d6);
  --ink: var(--n-d7);
  --ink-hover: #ffffff;
  --on-ink: var(--n-950);
  --accent: var(--blue-300);
  --accent-tint: var(--blue-900);
  --focus: var(--blue-300);
  --law-text: #9ed8ae;
  --guide-text: #ebcb7a;
  --danger: #f2a497;
  --panel: var(--navy-d);
  --shot-bg: var(--tint-d);
  --shadow-shot: 0 18px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --gutter: 32px; --col-gap: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }
/* The section links fit beside the logo and buttons from 960 px; below it
   they move to the tab row, which makes the header taller. */
@media (min-width: 960px) { :root { --header-h: var(--hdr-row); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
/* Text links, everywhere: one thickness, one depth, one colour rule (the
   link's own colour at 45%, full on hover), never broken around letters.
   .link-underline gives any element the same underline. */
a, .link-underline {
  text-decoration-thickness: var(--ul-thickness); text-underline-offset: var(--ul-offset);
  text-decoration-skip-ink: none; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.link-underline { text-decoration-line: underline; }
@media (hover: hover) and (pointer: fine) { a:hover, .link-underline:hover { text-decoration-color: currentColor; } }
strong { font-weight: 600; color: var(--text); }
[hidden] { display: none !important; }
section[id], [id="law"] { scroll-margin-top: calc(var(--header-h) + 16px); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, .feature-title, .step h3, .faq summary, .numbered h4, .reasons h3, .declined-title, .compare-row-title {
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--text);
  font-optical-sizing: auto;
  text-wrap: balance;
  cursor: default;
}
h1 { font-size: var(--fs-page-title); line-height: 1.06; letter-spacing: -0.022em; }
h2 { font-size: var(--fs-section); line-height: 1.08; letter-spacing: -0.02em; }
/* The card heading: steps, reasons, the pilot items, numbered lists, the
   comparison's rows, document headings on the policy pages. */
.card-title, .step h3, .reasons h3, .numbered h4, .compare-row-title, .policy-prose h3, .col-title {
  font-family: var(--f-serif); font-weight: 400; color: var(--text);
  font-size: var(--fs-card); line-height: 1.25; letter-spacing: -0.01em;
}
/* The one label above a heading: same size and weight everywhere; only its
   colour changes on a dark panel. */
.label, .hero-kicker, .policy-hero .kicker, .feature-status { font-size: var(--fs-label); font-weight: 500; line-height: 1.4; color: var(--text-2); margin-bottom: var(--gap-label); }
p { text-wrap: pretty; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}
.skip {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

/* ---------- Focus: designed, not the browser's box (playbook, details 3) ----------
   Links and FAQ questions: an underline in the accent colour.
   Buttons, fields, tabs: a ring that follows the control's corners. */
:focus { outline: none; }
a:focus-visible {
  color: var(--accent);
  text-decoration-line: underline; text-decoration-thickness: var(--ul-strong);
  text-decoration-color: currentColor;
}
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, video:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; text-decoration: none;
}
.btn:focus-visible { color: inherit; }
.brand:focus-visible { color: var(--text); text-decoration: none; }
.brand:focus-visible .brand-word { text-decoration-line: underline; text-decoration-thickness: var(--ul-strong); text-underline-offset: var(--ul-offset); text-decoration-skip-ink: none; text-decoration-color: var(--accent); }

/* ---------- Shared text ---------- */
.section-lede { font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--text-2); margin-top: var(--gap-text); max-width: 60ch; }
.fine { font-size: var(--fs-caption); line-height: 1.5; color: var(--muted); }
.fine a { color: var(--accent); }
.col-title { margin-bottom: var(--gap-text); }
/* Figures: right-aligned in a cell, tabular, the same decimals in a column. */
.num { font-variant-numeric: tabular-nums lining-nums; text-align: end; white-space: nowrap; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-h); padding: 0 var(--pad-control);
  border: 1px solid transparent; border-radius: var(--radius-control);
  font: 500 var(--fs-control)/1 var(--f-sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t) var(--ease-out), border-color var(--t) var(--ease-out), color var(--t) var(--ease-out), transform 160ms var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-sm { height: var(--hdr-btn); padding: 0 14px; position: relative; }
/* A 44 px hit area around the 36 px header buttons, without moving anything. */
.btn-sm::after { content: ""; position: absolute; inset: -4px 0; }
.btn-block { width: 100%; }
.btn-on-panel { background: #ffffff; color: var(--n-900); }
.btn-ghost-panel { background: transparent; color: var(--panel-text); border-color: rgba(255, 255, 255, .45); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--ink-hover); }
  .btn-secondary:hover { background: var(--bg-sunk); border-color: var(--muted); }
  .btn-on-panel:hover { background: var(--n-50); }
  .btn-ghost-panel:hover { border-color: #ffffff; background: rgba(255, 255, 255, .08); }
}
.text-link {
  font-weight: 500; color: var(--text);
  text-decoration-line: underline;
  transition: text-decoration-color var(--t) var(--ease-out), color var(--t) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--accent); } }

.tag-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-caption); font-weight: 500; line-height: 1.3; white-space: nowrap; color: var(--text-2);
}
.tag-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tag-dot-law::before { background: var(--law-text); }
.tag-dot-guide::before { background: var(--guide-text); }

.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--bg-sunk); border: 1px solid var(--rule); border-radius: var(--radius);
}
.segmented button {
  position: relative; height: 30px; min-width: 24px; padding: 0 12px; border: 0; border-radius: var(--radius-s);
  background: transparent; color: var(--muted); cursor: pointer;
  font: 500 .8125rem/1 var(--f-sans);
  transition: background-color var(--t) var(--ease-out), color var(--t) var(--ease-out);
}
.segmented button::after { content: ""; position: absolute; inset: -7px 0; }
@media (hover: hover) and (pointer: fine) { .segmented button:hover { color: var(--text); } }
.segmented button[aria-selected="true"],
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--rule-strong); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; height: var(--hdr-row);
  text-decoration: none; color: var(--text); margin-inline-end: auto;
}
/* The logo is exactly as tall as the main button (Omar, 17 Oct; measured by
   tools/site_checks/fit.mjs). */
.brand-mark { width: var(--hdr-btn); height: var(--hdr-btn); flex-shrink: 0; }
.brand-word { font-family: var(--f-serif); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.header-signin, .header-cta { flex-shrink: 0; }

/* Section links. Below 960 px: their own row under the logo, scrolling
   sideways, the last tab fading at the edge so it reads as scrollable. */
.nav { order: 10; flex: 0 0 calc(100% + 2 * var(--gutter)); min-width: 0; margin-inline: calc(-1 * var(--gutter)); border-top: 1px solid var(--rule); }
.nav-list {
  display: flex; height: var(--tab-row); overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-inline: calc(var(--gutter) - 12px);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { flex-shrink: 0; display: flex; }
.nav-list a {
  display: flex; align-items: center; padding: 0 12px;
  font-size: .9375rem; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap;
  transition: color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.nav-list li:last-child a { padding-inline-end: 28px; }
/* The current page: a squared --ul-strong bar at the foot of the link's box,
   the same rule as the app's active tab (a border, never a rounded bar). */
@media (hover: hover) and (pointer: fine) { .nav-list a:hover { color: var(--text); box-shadow: inset 0 calc(-1 * var(--ul-strong)) 0 var(--rule-strong); } }
.nav-list a[aria-current="page"] { color: var(--text); box-shadow: inset 0 calc(-1 * var(--ul-strong)) 0 var(--accent); }
.nav-signin { display: none !important; }
/* Narrow phones: Sign in moves into the tab row so Get in touch always fits. */
@media (max-width: 419px) {
  .header-signin { display: none; }
  .nav-signin { display: flex !important; }
}
@media (min-width: 960px) {
  .header-row { flex-wrap: nowrap; column-gap: 16px; height: var(--hdr-row); }
  .nav { order: 0; flex: 0 1 auto; margin: 0 8px 0 0; border: 0; }
  .nav-list { height: auto; overflow: visible; padding: 0; gap: 4px; -webkit-mask-image: none; mask-image: none; }
  .nav-list li:last-child a { padding-inline-end: 12px; }
  .nav-list a { height: var(--hdr-btn); font-size: .875rem; }
}
@media (min-width: 1180px) { .nav-list { gap: 12px; } }

/* ---------- Hero: a full-width panel, the product overlapping its edge ---------- */
.hero { --overlap: clamp(64px, 15vw, 220px); }
.hero-panel {
  background: var(--panel); color: var(--panel-text);
  padding-block: clamp(48px, 8vw, 104px) calc(var(--overlap) + clamp(40px, 5vw, 64px));
}
.hero-kicker, .policy-hero .kicker { color: var(--panel-muted); }
/* One line at every width (playbook 2): the size follows the viewport so the
   heading shrinks instead of wrapping. 12.4em is the measured width of the
   headline in Source Serif 4 plus a margin; tools/site_checks checks it. */
.hero-title {
  color: var(--panel-text); white-space: nowrap;
  font-size: min(4.5rem, calc((100vw - 2 * var(--gutter)) / 12.4));
  line-height: 1.08; letter-spacing: -0.024em;
}
.hl { position: relative; display: inline-block; }
/* The highlighted word: a straight squared underline at the one depth, in
   the light brand blue (underline system above). */
.hl {
  text-decoration-line: underline; text-decoration-color: var(--hl);
  text-decoration-thickness: var(--ul-accent); text-underline-offset: var(--ul-offset); text-decoration-skip-ink: none;
}
.hero-lede { margin-top: 24px; max-width: 62ch; font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--panel-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-fine { margin-top: 20px; font-size: var(--fs-small); color: var(--panel-muted); }
.hero-panel-flat { padding-bottom: clamp(56px, 8vw, 104px); }
/* "Why SureCite" is half the length of the home headline, so its divisor is too. */
.hero-title-why { font-size: min(4.5rem, calc((100vw - 2 * var(--gutter)) / 6.6)); }
.hero .shot-hero { margin-top: calc(-1 * var(--overlap)); position: relative; }
.shot-caption { margin-top: 12px; font-size: var(--fs-caption); color: var(--muted); }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }

/* Links and focus on any panel */
.hero-panel a:not(.btn), .policy-hero a:not(.btn), .closing a:not(.btn) { color: var(--panel-link); }
.hero-panel :focus-visible, .policy-hero :focus-visible, .closing-text :focus-visible { outline-color: #ffffff; }
.hero-panel a:not(.btn):focus-visible, .policy-hero a:not(.btn):focus-visible, .closing-text a:focus-visible { color: #ffffff; }

/* ---------- Product shots: one frame, one radius, one shadow ---------- */
/* Every screenshot and the video sit in the same frame: the same corners,
   border, shadow and inner padding, the picture inside with small corners and
   a hairline. The hero's browser window is the one exception. */
/* One picture frame for the page (amendment 1, 19 Oct 2026): every picture
   below the hero is a schematic card (.doc) or the video, in the same border,
   corners, shadow and surface; nothing inside a frame is a shrunken
   screenshot. The hero's real screenshot is the one exception. */
.shot, .video video, .doc {
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-panel);
  overflow: hidden; box-shadow: var(--shadow-shot);
}
.shot img { width: 100%; height: auto; }
.shot-bar {
  display: flex; align-items: center; justify-content: center; height: 30px;
  background: var(--bg-sunk); border-bottom: 1px solid var(--rule);
  font-size: var(--fs-badge); color: var(--muted);
}
.shot-bar em { font-style: normal; }
/* Steps and small shots: the picture centred on a tinted panel of one fixed
   shape, so pictures of different shapes line up. */


/* ---------- Sections ---------- */
.section { padding-block: var(--sy); }
.section-sunk { background: var(--bg-sunk); }
.section-tight { padding-block: var(--sy); }
.section-head { max-width: 780px; margin-bottom: var(--gap-head); }

/* Video, then three numbered steps */
.video video { width: 100%; height: auto; }
.video figcaption { margin-top: 12px; font-size: var(--fs-caption); color: var(--muted); max-width: 80ch; }
/* Cards read top-down: number and title, then words, then the picture. In a
   row the cards share their rows (subgrid), so the pictures line up. */
.steps { display: grid; gap: 40px; margin-top: var(--gap-head); }
.step { display: grid; align-content: start; }
.step h3 { display: flex; align-items: baseline; gap: 12px; }
.step-no {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--rule-ink); font-family: var(--f-sans); font-size: var(--fs-small); font-weight: 600;
  font-variant-numeric: tabular-nums; transform: translateY(-2px);
}
.step > p { margin-top: 10px; color: var(--text-2); font-size: var(--fs-body); max-width: 46ch; }
.step .doc { margin-top: var(--gap-media); }
/* Step cards: in a row they share the row's height (subgrid); stacked on a
   phone each fits its content. */
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--col-gap); }
  .step { grid-row: span 3; grid-template-rows: subgrid; }
}

/* Features: text beside a picture, alternating sides on wide screens */
.feature { display: grid; gap: var(--gap-media); align-items: start; }
.feature + .feature { margin-top: clamp(64px, 8vw, 112px); }
.feature-status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-on { background: var(--law-text); }
.feature-title { font-family: var(--f-serif); font-weight: 400; font-size: var(--fs-feature); line-height: 1.12; letter-spacing: -0.018em; margin-bottom: var(--gap-text); }
.feature-text > p:not(.feature-status) { color: var(--text-2); font-size: var(--fs-body); max-width: 52ch; }
.feature-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.feature-media { min-width: 0; }
/* Every feature picture: the same frame and width, top-aligned with its
   words; its height fits its content (never padded out to match another). */
@media (min-width: 1024px) {
  .feature { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .feature { column-gap: var(--col-gap); }
  .feature .feature-text { grid-column: 1 / span 5; }
  .feature .feature-media { grid-column: 7 / -1; }
}

/* Also in the pilot: three cards of one shape (title, words), sharing rows */
.cards { display: grid; gap: 0 var(--col-gap); }
.card { padding-block: 24px; border-top: 1px solid var(--rule-ink); }
.card h3 { margin-bottom: 10px; }
.card p, .card li { color: var(--text-2); font-size: var(--fs-body); }
.card ul { display: grid; gap: 8px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Coming next */
.next-list { display: grid; column-gap: var(--col-gap); border-top: 1px solid var(--rule-ink); }
.next-list li { padding-block: 14px; border-bottom: 1px solid var(--rule); color: var(--text-2); font-size: var(--fs-body); }
@media (min-width: 768px) { .next-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Why SureCite, on the home page */
.reasons { display: grid; gap: 0 var(--col-gap); }
.reasons li { padding-block: 24px; border-top: 1px solid var(--rule-ink); }
.reasons h3 { margin-bottom: 10px; }
.reasons p { color: var(--text-2); font-size: var(--fs-body); max-width: 42ch; }
@media (min-width: 900px) { .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.section-more { margin-top: 32px; }

/* How it is checked */
.checked-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .checked-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(2 * var(--col-gap)); } }
.numbered { counter-reset: n; border-top: 1px solid var(--rule-ink); }
.numbered li {
  counter-increment: n; display: grid; grid-template-columns: 36px 1fr; column-gap: 8px;
  padding-block: 18px; border-bottom: 1px solid var(--rule);
}
.numbered li::before {
  content: counter(n); grid-row: 1 / span 2; font-family: var(--f-serif); font-size: var(--fs-card);
  line-height: 1.25; color: var(--muted); font-variant-numeric: tabular-nums lining-nums;
}
.numbered h4 { margin-bottom: 4px; }
.numbered p { color: var(--text-2); font-size: var(--fs-body); }
.limits { border-top: 1px solid var(--rule-ink); }
.limits li { padding-block: 14px; border-bottom: 1px solid var(--rule); color: var(--text-2); font-size: var(--fs-body); }

/* FAQ: native disclosure; the question is the control */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); } .faq-wrap h2 { grid-column: 1 / span 4; } .faq { grid-column: 5 / -1; } }
.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding-block: 16px; cursor: pointer; list-style: none;
  font-size: var(--fs-card); line-height: 1.3;
  text-underline-offset: var(--ul-offset); text-decoration-thickness: var(--ul-strong); text-decoration-skip-ink: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--muted); transition: transform var(--t) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: none; color: var(--accent); text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--accent); } }
.faq details p { padding-bottom: 22px; color: var(--text-2); font-size: var(--fs-body); max-width: 62ch; }
.faq details a { color: var(--accent); }

/* ---------- Specimens (VAT check, law answer) ---------- */
.doc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  min-height: 56px; padding: 10px var(--doc-x); border-bottom: 1px solid var(--rule);
}
.doc-title { font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.doc-meta { font-size: var(--fs-caption); color: var(--muted); }
.doc-body { padding: 22px var(--doc-x) 26px; }
.doc-q { font-family: var(--f-serif); font-size: 1.1875rem; line-height: 1.45; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.doc-q-label { display: block; font-family: var(--f-sans); font-size: var(--fs-caption); font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.panel { padding-top: 18px; }
.doc-a { font-family: var(--f-serif); font-size: 1.125rem; line-height: 1.7; }
.cite { font-family: var(--f-sans); font-size: var(--fs-badge); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; padding-inline: 1px 2px; }
.cite-block {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border: 1px solid currentColor; border-radius: var(--radius-badge); font-size: var(--fs-badge); padding: 0;
}
.sources { width: 100%; border-collapse: collapse; margin-top: 20px; }
.sources td { padding: 12px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.src-no { width: 36px; }
.src-title { display: block; font-size: .9375rem; font-weight: 500; line-height: 1.4; }
.src-meta { display: block; font-size: var(--fs-caption); color: var(--muted); }
.src-kind { text-align: end; padding-inline-start: 12px !important; }
.declined { border-top: 2px solid var(--rule-ink); padding-top: 16px; }
.declined-title { font-size: 1.3125rem; line-height: 1.3; margin-bottom: 8px; }
.declined p:last-child { color: var(--text-2); font-size: .9375rem; }
.doc figcaption { padding: 12px var(--doc-x); border-top: 1px solid var(--rule); font-size: var(--fs-caption); color: var(--muted); }
/* One inner margin for every schematic card, 20 px, 24 px from 768 px. */
.doc { --doc-x: 20px; }
@media (min-width: 768px) { .doc { --doc-x: 24px; } .doc-body { padding-block: 26px 30px; } }

.doc-pad { padding: 14px var(--doc-x) 18px; display: grid; gap: 10px; align-content: start; }
.doc-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: 14px var(--doc-x) 18px; font-size: var(--fs-small); }
.doc-facts dt { color: var(--muted); }
.doc-facts dd { margin: 0; color: var(--text); }
.doc-flag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--text); }
.doc-line { font-size: var(--fs-small); color: var(--text-2); }
.doc-label { display: block; font-size: var(--fs-caption); font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.q-body { padding: 4px var(--doc-x) 20px; }
.q-group { padding: 16px 0 8px; border-bottom: 1px solid var(--rule-ink); font-size: var(--fs-caption); font-weight: 600; color: var(--text); }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.q-list:last-child .q-row:last-child { border-bottom: 0; padding-bottom: 0; }
.q-main { display: grid; gap: 2px; min-width: 0; }
.q-supplier { font-size: .9375rem; font-weight: 500; line-height: 1.4; }
.q-meta { font-size: var(--fs-caption); color: var(--muted); }
.q-amt { font-size: .9375rem; font-weight: 500; text-align: end; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.q-why { grid-column: 1 / -1; font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }

/* ---------- Closing band: the same panel as the hero ---------- */
.closing { background: var(--panel); color: var(--panel-text); padding-block: var(--sy); }
.closing-grid { display: grid; gap: var(--gap-head); }
.closing h2 { color: var(--panel-text); }
.closing-text p { margin-top: var(--gap-text); color: var(--panel-muted); font-size: var(--fs-lead); max-width: 46ch; }
.closing-text .closing-fine { font-size: var(--fs-small); margin-top: 24px; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 1024px) {
  .closing-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .closing-text { grid-column: 1 / span 5; }
  .closing .form-panel { grid-column: 7 / -1; }
}

/* ---------- Form ---------- */
.form-panel { background: var(--surface); color: var(--text); border: 1px solid var(--rule-strong); border-radius: var(--radius-panel); padding: 24px 20px; }
@media (min-width: 768px) { .form-panel { padding: 32px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: var(--fs-small); font-weight: 500; margin-bottom: 6px; color: var(--text); }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: var(--control-h); padding: 0 12px;
  font: 400 var(--fs-field)/1.4 var(--f-sans); color: var(--text);
  background: var(--field); border: 1px solid var(--rule-strong); border-radius: var(--radius-control);
  transition: border-color var(--t) var(--ease-out);
}
textarea { padding: 10px 12px; resize: vertical; min-height: 96px; }
textarea:focus::placeholder { color: transparent; }
select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
@media (hover: hover) and (pointer: fine) { input:hover, select:hover, textarea:hover { border-color: var(--muted); } }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--focus); }
.form-fine { margin-top: 14px; font-size: var(--fs-small); }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#contact-status { min-height: 1.4em; }
#contact-status.is-error { color: var(--danger); }
#contact-status.is-success { color: var(--law-text); }

/* ---------- Why page: the comparison ---------- */
.compare { width: 100%; border-collapse: collapse; }
.compare caption { text-align: start; font-size: var(--fs-small); color: var(--muted); padding-bottom: 12px; }
.compare th, .compare td { text-align: start; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); }
/* The table header: the same as the app's (13 px, 600, the second ink). */
.compare thead th { font-size: var(--fs-caption); font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--rule-ink); padding-block: 0 12px; }
.compare tbody th { width: 22%; font-weight: 400; font-size: var(--fs-body); }
.compare td { color: var(--text-2); font-size: var(--fs-body); width: 39%; }
.compare td.with { color: var(--text); }
.compare th:last-child, .compare td:last-child { padding-inline-end: 0; }
/* Phones: one card per row, both answers labelled; nothing scrolls sideways. */
@media (max-width: 767px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare tr { padding-block: 20px; border-top: 1px solid var(--rule-ink); }
  .compare th, .compare td { padding: 0; border: 0; }
  .compare td { margin-top: 12px; }
  .compare td::before { content: attr(data-label); display: block; font-size: var(--fs-caption); font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
}
.keeps { display: grid; gap: 0 var(--col-gap); margin-top: 24px; }
.keeps li { padding-block: 16px; border-top: 1px solid var(--rule); color: var(--text-2); font-size: var(--fs-body); }
@media (min-width: 768px) { .keeps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Our story (/story) ----------
   Vault "Our Story Page Guide" (18 Oct 2026), its "rules for new sites"
   governing: left-aligned at every width (WCAG 1.4.8, never justified); one
   text colour for the whole story, the lead larger by size only; a reading
   measure of about 65 characters; the quote centred (words and attribution),
   at most about 28 characters wide (set on the element that carries its
   size), one step below the heading, in italics, between two rules of the same
   colour and thickness; the attribution's role in the lighter brand colour. */
/* The heading follows the guide (large, at most about 12 characters a line)
   rather than the home hero's one-line rule: on one line it shrank to 21 px at
   320 px, below the quote and barely above the body text. */
.story-title { max-width: 11ch; color: var(--panel-text); font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.024em; }
.story { max-width: 50ch; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); text-align: start; }
.story > p { color: var(--text-2); }
.story > p + p, .story > figure + p { margin-top: 1.25em; }
.story .story-lead { font-size: var(--fs-lead); line-height: var(--lh-body); }
.story a { color: var(--accent); }
.story-quote { margin-block: clamp(40px, 6vw, 64px) 0; padding-block: clamp(28px, 4vw, 40px); border-block: 2px solid var(--accent); text-align: center; }
.story-quote + p { margin-top: clamp(40px, 6vw, 64px) !important; }
.story-quote blockquote { margin: 0; }
.story-quote blockquote p {
  max-width: 28ch; margin-inline: auto;
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.375rem); line-height: 1.3; letter-spacing: -0.01em;
  color: var(--text); text-wrap: balance;
}
.story-quote figcaption { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: var(--fs-body); font-weight: 500; line-height: 1.3; color: var(--text); }
.story-quote-mark { width: 26px; height: 26px; flex-shrink: 0; }
.story-role { color: var(--accent); }

/* The home page's teaser: the opener sentence and one link (guide, structure 6). */
.story-teaser { padding-block: var(--sy); }
.story-teaser-line { font-family: var(--f-serif); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); line-height: 1.3; letter-spacing: -0.012em; color: var(--text); max-width: 46ch; margin-bottom: 14px; }

/* ---------- Footer, grouped ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 56px 40px; font-size: var(--fs-small); color: var(--text-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand, .footer-meta { grid-column: 1 / -1; }
.footer-brand .brand { height: auto; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand .brand-word { font-size: 1.25rem; }
.footer-brand p { margin-top: 14px; max-width: 44ch; }
.footer-head { font-family: var(--f-sans); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 10px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--text-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--accent); text-decoration-line: underline; } }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted); }
.theme-switch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.theme-switch-label { font-weight: 500; color: var(--text-2); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); column-gap: var(--col-gap); }
  .footer-brand { grid-column: auto; padding-inline-end: 48px; }
}

/* ---------- Policy pages and the 404: the same panel as the home hero ---------- */
.policy-hero { background: var(--panel); color: var(--panel-text); padding-block: clamp(48px, 8vw, 96px); }
.policy-hero h1 { color: var(--panel-text); max-width: 22ch; }
.policy-hero .lede, .policy-hero .section-lede { margin-top: 20px; font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--panel-muted); max-width: 62ch; }
.policy-hero .lede-2 { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--panel-rule); font-size: var(--fs-small); color: var(--panel-muted); max-width: 62ch; }
.policy-hero .btn-primary { background: #ffffff; color: var(--n-900); }
.policy-hero .btn-secondary { color: var(--panel-text); border-color: rgba(255, 255, 255, .45); }
@media (hover: hover) and (pointer: fine) {
  .policy-hero .btn-primary:hover { background: var(--n-50); }
  .policy-hero .btn-secondary:hover { background: rgba(255, 255, 255, .08); border-color: #ffffff; }
}
.policy-prose { max-width: 68ch; }
.policy-prose > * + * { margin-top: 16px; }
.policy-prose p, .policy-prose li { color: var(--text-2); font-size: var(--fs-body); }
.policy-prose ul, .policy-prose ol { padding-inline-start: 1.25em; }
.policy-prose ul { list-style: disc; }
.policy-prose ol { list-style: decimal; }
.policy-prose li + li { margin-top: 8px; }
.policy-prose a { color: var(--accent); }
.policy-prose h3 { margin-top: 32px; }
.policy-flag { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--rule-strong); border-radius: var(--radius-panel); background: var(--bg-sunk); font-size: var(--fs-body); }
.policy-flag p { color: var(--text-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-address { margin-top: 24px; user-select: all; }
.ar { font-family: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; font-size: var(--fs-small); }

/* ---------- Help pages (/help, built by tools/build_help_site.py, 9 Nov 2026) ---------- */
.help-prose h3 { margin-top: 40px; }
.help-prose h3:first-child { margin-top: 0; }
.help-shot { margin-block: 24px; }
.help-shot img { display: block; }
/* One screenshot per screen size: a wide screen shows the desktop shot (at
   least half its pixel width), a phone the phone shot (2x, at most 375px). */
.help-shot-phone { max-width: 377px; }
@media (max-width: 759px) { .help-shot-wide { display: none; } }
@media (min-width: 760px) { .help-shot-phone { display: none; } }
.help-open { margin-top: 40px; }
.help-list li + li { margin-top: 16px; }
.help-list a { font-weight: 500; }

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
@media (prefers-contrast: more) { :root { --rule: var(--n-200); --muted: var(--n-700); } }
@media print { .site-header, .form-panel, .video { display: none; } .hero-panel, .closing, .policy-hero { background: none; color: inherit; } }

/* Focus for links that set their own decoration (tab row, footer): the same
   accent underline, declared last so it wins. */
.footer-col a:focus-visible, .text-link:focus-visible {
  color: var(--accent); text-decoration-line: underline; text-decoration-thickness: var(--ul-strong);
  text-decoration-color: currentColor;
}
/* A nav link is a tab: on focus it gets the control ring, inside its box. */
.nav-list a:focus-visible { color: var(--accent); text-decoration: none; outline: 2px solid var(--focus); outline-offset: -2px; }
