/* Index Point site styles. Design Spec v3 ("Bold record"), light only: vault
   04_Projects/Before You Pay/Brand Assets/Web Design/BYP-DESIGN-SPEC.md. The token block below is generated from
   site/tokens/ by site/scripts/build-tokens.js: edit those files, not the block. Components use tokens only. */
/* tokens:start (generated by scripts/build-tokens.js from tokens/*.css; edit those files, not this block) */
/* ── tokens/system.css ── */
/* Layer 2, system (Design Spec v3 sections 1b, 1d, 1e). The same for every brand and every mode: type, space, radii,
   sizes, motion, and the brand shades worked out from --brand. Never put a colour here that changes with the mode. */
:root {
  /* type */
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-hero: clamp(56px, 9vw, 148px);
  --fs-hero-long: clamp(46px, 6.4vw, 100px);
  --fs-statement: clamp(48px, 8vw, 124px);
  --fs-h2: clamp(36px, 4.4vw, 64px);
  --fs-h3: 24px;
  --fs-lede: 21px;
  --fs-body: 18px;
  --fs-small: 15.5px;
  --fs-label: 12.5px;
  /* space: website sections, and the 4px steps the app uses */
  --sec: 150px; --sec-tight: 96px; --gutter: 24px; --maxw: 1240px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  /* radii: 12 inputs and small things, 16 cards inside cards, 22 cards, 28 big panels, pills */
  --r-sm: 12px; --r-nest: 16px; --r-md: 22px; --r-lg: 28px; --r-pill: 999px;
  /* sizes */
  --control-h: 44px; --control-h-sm: 36px; --side-w: 264px; --content: 1240px;
  /* main and side layouts: the side column's width, and where a sticky column stops under the top bar */
  --aside-w: 340px; --stick-top: 96px;
  /* motion (section 1e): durations, curves, the gap between blocks arriving in turn */
  --d1: 120ms; --d2: 200ms; --d3: 320ms; --d4: 560ms; --d5: 900ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --stagger: 45ms;
  /* brand shades worked out from --brand (brand.css may pin them) */
  --brand-hover: var(--brand-hover-pin, color-mix(in oklab, var(--brand), #000 16%));
  --brand-top: color-mix(in oklab, var(--brand), #fff 12%);
  --brand-glow: color-mix(in oklab, var(--brand) 55%, transparent);
  --brand-on-ink: var(--brand-on-ink-pin, color-mix(in oklab, var(--brand) 42%, #fff));
  --brand-ink: #FFFFFF;   /* text on the brand colour */
}

/* ── tokens/modes.css ── */
/* Layer 3, modes (Design Spec v3 section 1c). Every colour, surface, line and shadow, by mode. Components ask for these
   names and never for a hex value, so a new mode is a new block here and nothing else.
   This file is light, the default, and the only mode the website (byp.css) gets. Dark and liquid glass are in
   modes-dark.css and modes-glass.css, copied into app.css only. Nothing turns them on yet: they wait for Lewis to
   update the global "Light only" rule, then the Appearance setting (spec 1c) sets data-theme on <html>. */
:root, [data-theme="light"] {
  color-scheme: light;
  /* ink: the dark moments (heroes, statements, sidebars, the email header) */
  --ink: #12171D; --ink-2: #1C242D; --ink-line: #2C3744; --ink-text: #B7C0CA; --ink-muted: #8995A2;
  /* the desk, surfaces, text and lines */
  --bg: #F6F4EE; --surface: #FFFFFF; --surface-2: #FBFAF6; --sunk: #EFEEE8;
  --text: #14191F; --text-2: #3A434E; --muted: #6E746C;
  --line: #E2DFD5; --line-2: #CFCBBF; --line-soft: #F0EEE7;
  /* the brand in this mode */
  --brand-text: var(--brand);
  --brand-wash: var(--brand-wash-pin, color-mix(in oklab, var(--brand) 9%, #fff));
  --brand-ring: color-mix(in oklab, var(--brand) 32%, transparent);
  /* status tones (spec section 2): the same jobs in every mode. Source labels are named uses of these. */
  --ok: #0B7E58; --ok-wash: #E9F6F0; --ok-dot: #10A877; --ok-on-ink: #5FD0AA;
  --info: #4E6683; --info-wash: #ECF0F5; --info-dot: #4E6683; --info-on-ink: #A9BBD3;
  --attn: #835B03; --attn-wash: #FBF3E0; --attn-dot: #E0A11A;
  --bad: #A8321F; --bad-wash: #FBEDEA; --bad-dot: #C8432F;
  --party: #7A4F68; --party-wash: #F3ECF0; --party-dot: #9C6A87; --party-on-ink: #D4A9C2;
  --off: #4A4F49; --off-wash: #EFEEE8; --off-dot: #8B9088;
  /* depth (section 1d): resting, raised, floating, over everything */
  --e1: 0 1px 2px rgba(20, 25, 31, .04), 0 6px 16px -10px rgba(20, 25, 31, .14);
  --e2: 0 2px 4px rgba(20, 25, 31, .05), 0 22px 40px -24px rgba(20, 25, 31, .38);
  --e3: 0 4px 10px rgba(20, 25, 31, .06), 0 30px 60px -28px rgba(20, 25, 31, .5);
  --e4: 0 10px 24px rgba(20, 25, 31, .08), 0 50px 100px -40px rgba(20, 25, 31, .6);
  /* the surface recipe (.surf, section 1d): fill, rim, blur, the highlight that follows the pointer */
  --card-fill: linear-gradient(180deg, #FFFFFF, #FEFDFB);
  --card-rim: linear-gradient(#E2DFD5, #E2DFD5);
  --card-blur: none;
  --card-glint: color-mix(in oklab, var(--brand) 6%, transparent);
  --scrim: rgba(18, 23, 29, .42);
  /* the app (Part B): the desk's light, table heads, fields, the sidebar frame, the top bar, the ink panel */
  --bg-art: radial-gradient(1200px 520px at 100% -10%, color-mix(in oklab, var(--brand) 7%, transparent), transparent 70%);
  --head: #FBFAF6;
  --field: #FFFFFF; --field-line: var(--line-2); --field-shadow: inset 0 1px 2px rgba(20, 25, 31, .04);
  --side-bg: radial-gradient(420px 320px at 0% 0%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 70%), #12171D;
  --side-line: #2C3744; --side-2: #1C242D; --side-text: #C9D1DA; --side-muted: #8995A2; --side-lbl: #5E6B78;
  --side-pill: #FFFFFF; --side-pill-text: #14191F; --side-pill-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6);
  --top-bg: color-mix(in oklab, #F6F4EE 82%, transparent);
  --ink-panel: radial-gradient(520px 260px at 0% 0%, color-mix(in oklab, var(--brand) 30%, transparent), transparent 70%), linear-gradient(#12171D, #12171D);
  --ink-rim: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  --orbs: 0;   /* the slow lights behind liquid glass, off */
}

/* ── tokens/brand.css ── */
/* Layer 1, brand (Design Spec v3 section 1b; vault 04_Projects/Before You Pay/Brand Assets/Web Design/BYP-DESIGN-SPEC.md).
   Index Point. The ONLY layer that differs between brands: system.css and modes.css are copies of the shared layers
   (from Before You Pay through Phillips Group) and stay identical across every brand. This file comes last, so its pins win.
   Teal #1D6A72 (Lewis, 21 Nov 2026). White on it 6.26:1 (rule 1); white on the hover 7.86:1; the on-ink teal on the
   ink 10.18:1; the brand on the paper desk 5.69:1. Not near a status tone (rule 2). Light only (the global rule). */
:root {
  --brand: #1D6A72;
  --brand-hover-pin: #175A61;
  --brand-wash-pin: #E8F1F2;
  --brand-on-ink-pin: #9CCBD0;
  --brand-deep: #134950;          /* Index Point's deep teal: headings in brand tone, the duotone's shadows */
  --brand-line: #C6DCDF;          /* teal hairlines (the comparison bar, focus rings on light) */
}
/* tokens:end */

/* Names used before v3, kept as aliases so the docs, admin and product widgets keep working */
:root {
  --paper: var(--bg);
  --white: var(--surface);
  --fs-h2-doc: clamp(24px, 2.6vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--brand-wash); color: var(--brand-deep); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.eyebrow { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s6); }
.on-ink .eyebrow, .eyebrow.on-ink { color: var(--brand-on-ink); }
.accent { color: var(--brand); }
.on-ink .accent { color: var(--brand-on-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Mark and names (Phillips Group logo system: round ends, 28 on a 240 grid, the full stop a circle) */
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.035em; text-decoration: none; font-size: 18px; color: var(--text); }
.mark-svg { display: block; flex: none; color: var(--brand); }
.fs { display: inline-block; width: .16em; height: .16em; border-radius: 50%; margin-left: .06em; background: var(--brand); font-style: normal; }

/* Top bar: clear over the ink hero, frosted paper once you scroll */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color var(--d3) var(--ease-out), box-shadow var(--d3) var(--ease-out); }
.topbar .mark, .topbar .mark-svg { color: var(--white); }
.topbar .fs { background: var(--brand-on-ink); }
.topbar.is-scrolled { background: var(--top-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.topbar.is-scrolled .mark { color: var(--text); }
.topbar.is-scrolled .mark-svg { color: var(--brand); }
.topbar.is-scrolled .fs { background: var(--brand); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--ink-text); transition: color var(--d2); }
.nav-links a:hover { color: var(--white); }
.topbar.is-scrolled .nav-links a { color: var(--text-2); }
.topbar.is-scrolled .nav-links a:hover { color: var(--brand); }
.nav-links a.nav-cta, .topbar.is-scrolled .nav-links a.nav-cta { color: var(--white); padding: 10px 18px; }

/* Buttons: pills with thickness (spec 1d): a gradient, a lit top edge and a glow in the brand */
.btn, .send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15.5px; font-weight: 700; text-decoration: none; border-radius: var(--r-pill); padding: 15px 26px; border: 0; cursor: pointer; transition: transform var(--d2) var(--ease-out), box-shadow var(--d2) var(--ease-out), background-color var(--d2), color var(--d2); }
.btn:hover, .send:hover { transform: translateY(-1px); }
.btn:active, .send:active { transform: scale(.97); }
.btn-primary, .send, .nav-cta { background: linear-gradient(180deg, var(--brand-top), var(--brand)); color: var(--brand-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 22px -12px var(--brand-glow); border-radius: var(--r-pill); }
.btn-primary:hover, .send:hover, .nav-cta:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 30px -12px var(--brand-glow); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 10px 26px -14px rgba(0,0,0,.6); }
.btn-line, .btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; }
.btn-line:hover, .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.on-ink .btn-line, .btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.on-ink .btn-line:hover, .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--brand-on-ink); color: var(--brand-on-ink); }
.btn:focus-visible, .nav-links a:focus-visible, .send:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.on-ink a:focus-visible, .on-ink .btn:focus-visible, .on-ink .send:focus-visible { outline-color: var(--brand-on-ink); }

/* Sections (spec 5): every section keeps its padding; neighbours change background so each break shows */
.sec { padding-block: var(--sec); }
.sec.tight { padding-block: var(--sec-tight); }
.bg-paper { background: var(--bg); }
.bg-white { background: var(--surface); }
.bg-ink { background: var(--ink-panel); color: var(--white); }
.bg-brand { background: radial-gradient(700px 360px at 100% 0%, color-mix(in oklab, var(--brand-on-ink) 22%, transparent), transparent 70%), var(--brand); color: var(--white); }
h2, .h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.intro { font-size: var(--fs-lede); line-height: 1.55; color: var(--text-2); max-width: 34ch; }
.on-ink .intro { color: var(--ink-text); }
.fine { font-size: 15px; color: var(--muted); }
.on-ink .fine { color: var(--ink-muted); }
.sec-head { max-width: 760px; margin-bottom: var(--s12); }
.sec-head .intro { margin-top: var(--s6); }
/* Heading beside text: eyebrow above, heading left, intro right */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s10) clamp(40px, 6vw, 96px); align-items: start; }
.split .intro { margin-top: 8px; }
/* Main and side (DESIGN.md): the long reading or working column and a narrow side column for the short things (facts,
   a summary, filters, contents). .stick keeps a column in view under the top bar only while it fits: shorter than the
   screen and than the column beside it (site.js decides, and re-checks as content opens or loads), so nothing in it
   is ever out of reach. The tools' two columns (.ip-cols) get the same behaviour without the class. */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, var(--aside-w)); gap: var(--s6); align-items: start; }
.with-side > * { min-width: 0; }
.stick { align-self: start; }
.stick.is-stuck, .ip-cols > .is-stuck { position: sticky; top: var(--stick-top); }
@media (max-width: 1000px) { .with-side { grid-template-columns: 1fr; } }

/* Ink hero (home) and page hero (docs, privacy, 404) */
.hero-ink, .page-hero { position: relative; overflow: hidden; background: var(--ink-panel); color: var(--white); }
.hero-ink { padding-block: clamp(140px, 16vw, 210px) clamp(96px, 11vw, 150px); }
.page-hero { padding-block: clamp(130px, 13vw, 170px) clamp(64px, 7vw, 96px); }
.bigmark { position: absolute; right: -6vw; top: 50%; width: min(62vw, 760px); transform: translate(var(--mx, 0px), calc(-50% + var(--my, 0px))); color: var(--white); opacity: .045; pointer-events: none; transition: transform var(--d5) var(--ease-out); }
.page-hero .bigmark { width: min(42vw, 460px); right: -4vw; opacity: .05; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
h1 { font-size: var(--fs-hero-long); font-weight: 800; line-height: .95; letter-spacing: -0.05em; text-wrap: balance; }
h1 .line { display: block; }
.hero-ink .lede, .page-hero .lede { margin-top: var(--s8); font-size: var(--fs-lede); line-height: 1.55; color: var(--ink-text); max-width: 32ch; }
.page-hero h1 { font-size: clamp(42px, 5.6vw, 84px); }
.page-hero .lede { max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--s10); }

/* The example record: a glass card on the ink hero that tilts towards the pointer (spec 1d) */
.record { position: relative; border-radius: var(--r-lg); padding: 26px 24px 22px; color: var(--white); background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -40px rgba(0,0,0,.75); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--d3) var(--ease-out); }
.rec-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.rec-nm { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.rec-id { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); }
.rec-rows { list-style: none; margin: 0; padding: 0; }
.rec-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.rec-rows li:last-child { border-bottom: 0; padding-bottom: 4px; }
.rec-k { font-size: 14px; color: var(--ink-text); }
.rec-v { font-size: 16px; font-weight: 700; text-align: right; white-space: nowrap; }
.rec-rows .tag { grid-column: 1 / -1; }
.example { position: absolute; top: -12px; left: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--brand-on-ink); padding: 4px 10px; border-radius: var(--r-pill); }

/* Source labels (spec principle 1): mono, a dot and the words, never colour alone */
.tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.on-ink .tag { color: var(--ink-muted); }
.on-ink .tag::before { background: var(--brand-on-ink); }

/* Surfaces (spec 1d): fill, rim, resting shadow; things you can press lift */
.surf { position: relative; background: var(--card-fill); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line), var(--e1); transition: transform var(--d2) var(--ease-out), box-shadow var(--d2) var(--ease-out); }
a.surf:hover, .surf.lift:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--brand-line), var(--e2); }

/* Photo, edited to the brand (spec 9): a teal duotone over the free-licence photo */
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--brand-deep); box-shadow: var(--e2); aspect-ratio: 4 / 3; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.06); mix-blend-mode: luminosity; opacity: .92; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in oklab, var(--brand) 30%, transparent), color-mix(in oklab, var(--brand-deep) 55%, transparent)); mix-blend-mode: multiply; }
.photo .credit { position: absolute; z-index: 1; right: 12px; bottom: 10px; font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,.72); text-decoration: none; }

/* The data: sources as labelled chips, details behind a tap */
.sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: var(--s10); }
.src { padding: 16px 18px; display: grid; gap: 4px; }
.src b { font-size: 16px; letter-spacing: -0.01em; }
.src span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }

/* The data: the photo beside the sources */
.data-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s10) clamp(32px, 5vw, 72px); align-items: start; margin-top: var(--s12); }
.data-grid .photo { margin: 0; }
.data-grid .sources { margin: 0; padding: 0; list-style: none; }
.tool .tag, .tools + .more { margin-top: 0; }
.tools + .more { margin-top: var(--s10); }
.tools-cta { display: flex; justify-content: center; margin-top: var(--s10); }

/* Expanders (spec: the rest behind a tap) */
.more { margin-top: var(--s8); }
.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; color: var(--brand); }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--brand-line); font-weight: 600; transition: transform var(--d2) var(--ease-out); }
.more[open] summary::before { transform: rotate(45deg); }
.more-body { margin-top: var(--s6); display: grid; gap: var(--s4); color: var(--text-2); font-size: 16px; max-width: 60ch; }
.more-body p b { color: var(--text); }
.on-ink .more summary { color: var(--brand-on-ink); }

/* Tools: small screens of what the data builds, each an example */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.tool { padding: 22px; display: grid; gap: 16px; align-content: start; }
.tool-cap { display: grid; gap: 4px; }
.tool-cap b { font-size: 18px; letter-spacing: -0.015em; }
.tool-cap span { font-size: 15px; color: var(--text-2); }
.screen { border-radius: var(--r-nest); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-soft); padding: 18px; display: grid; gap: 12px; font-size: 14px; }
.screen .scr-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.scr-big { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand-deep); line-height: 1; }
.scr-sub { color: var(--text-2); font-size: 13.5px; }
.scr-bar { position: relative; height: 8px; border-radius: 999px; background: var(--line); }
.scr-bar i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--brand-line); }
.scr-bar b { position: absolute; top: -6px; width: 4px; height: 20px; border-radius: 2px; background: var(--brand-deep); }
.scr-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.scr-rows li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.scr-rows li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transform: translateY(-1px); }
.scr-rows li.on::before { background: var(--brand); }
.scr-rows .d { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.scr-pill { font-family: var(--mono); font-size: 10.5px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--brand-wash); color: var(--brand-deep); white-space: nowrap; }

/* How it works: a drawn path from the records to your tool */
.flow { width: 100%; height: auto; display: block; margin-bottom: var(--s12); }
.flow .ln { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.flow .bx { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.flow .bx-brand { fill: var(--brand); }
.flow text { font-family: var(--mono); font-size: 13px; fill: var(--text-2); letter-spacing: .04em; }
.flow .t-on { fill: var(--brand-ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s10) var(--s8); }
.steps li { display: grid; gap: 10px; align-content: start; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.steps p { color: var(--text-2); font-size: 16px; }

/* Plans: names first, what each gives behind a tap */
.plans { display: flex; flex-wrap: wrap; gap: 10px; }
.plan { position: relative; }
.plan summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--e1); font-weight: 700; font-size: 15px; transition: box-shadow var(--d2); }
.plan summary::-webkit-details-marker { display: none; }
.plan summary:hover { box-shadow: inset 0 0 0 1px var(--brand-line), var(--e2); }
.plan summary .i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--brand-line); color: var(--brand); font-size: 11px; font-weight: 700; font-family: var(--mono); }
.plan[open] summary { box-shadow: inset 0 0 0 1.5px var(--brand), var(--e2); }
.plan p { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; width: min(300px, 80vw); padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--e3); font-size: 14.5px; color: var(--text-2); }
/* A choice is a centred card: text centred, the button below with clear space */
.choice { margin: var(--s12) auto 0; max-width: 560px; text-align: center; padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: var(--s6); }
.choice p { color: var(--text-2); font-size: 17px; }

/* Statement band */
.statement { text-align: center; }
.statement .big { font-size: var(--fs-statement); font-weight: 800; line-height: .95; letter-spacing: -0.05em; text-wrap: balance; }
.statement .big span { display: block; color: color-mix(in oklab, var(--ink) 82%, var(--brand)); }
.statement p:not(.big) { margin: var(--s8) auto 0; max-width: 40ch; font-size: var(--fs-lede); color: color-mix(in oklab, var(--white) 86%, var(--brand)); }

/* Contact (ink) */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-lede { margin-top: var(--s6); color: var(--ink-text); font-size: var(--fs-lede); line-height: 1.55; max-width: 26ch; }
.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; padding: 28px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.06), 0 30px 60px -36px rgba(0,0,0,.7); }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-on-ink); }
.field label em { font-style: normal; text-transform: none; letter-spacing: .02em; color: var(--ink-muted); }
.field input, .field textarea { width: 100%; height: var(--control-h); font: inherit; font-size: 16px; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-sm); padding: 10px 14px; transition: border-color var(--d2), background-color var(--d2); }
.field textarea { height: auto; resize: vertical; min-height: 128px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-on-ink); background: rgba(255,255,255,.09); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brand-on-ink); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: color-mix(in oklab, var(--bad-dot) 70%, #fff); }
.field-error { font-size: 13px; color: color-mix(in oklab, var(--bad-dot) 45%, #fff); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts:empty { display: none; }
.ts { grid-column: 1 / -1; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-foot .note { font-size: 13.5px; color: var(--ink-text); }
.send[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-status { grid-column: 1 / -1; font-size: 14px; color: color-mix(in oklab, var(--bad-dot) 45%, #fff); }
.form-status:empty { display: none; }
.form-done { display: grid; gap: 8px; text-align: center; padding: 44px 24px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: var(--ink-text); }
.form-done-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.form-done:focus { outline: none; }
.noscript-note { font-size: 14px; color: var(--ink-text); }

/* Footer */
.footer { background: var(--ink); color: var(--ink-muted); padding-block: var(--s12) 40px; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .mark { color: var(--white); font-size: 17px; }
.footer .mark-svg { color: var(--white); }
.footer .fs { background: var(--brand-on-ink); }
.footer-links { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.footer-links a, .group-links a, .footer-legal a, .powered { text-decoration: underline; text-underline-offset: 2px; transition: color var(--d2); }
.footer-links a:hover, .group-links a:hover, .powered:hover { color: var(--white); }
.group-links { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--ink-line); line-height: 1.6; }
.group-links .gl { white-space: nowrap; }
.footer-legal { margin: var(--s4) 0 0; font-size: 12px; line-height: 1.6; opacity: .85; max-width: 780px; }
.addr a { white-space: nowrap; }
.footer-bottom { margin-top: var(--s6); display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; font-size: 12.5px; }
.powered { white-space: nowrap; }

/* Docs and plain pages: the reading column on paper under the page hero */
.page { padding-block: var(--sec-tight) var(--sec); }
.doc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { display: grid; gap: 4px; font-size: 14.5px; padding: 18px; }
.toc a { text-decoration: none; color: var(--text-2); padding: 5px 8px; border-radius: 8px; transition: background-color var(--d2), color var(--d2); }
.toc a:hover { color: var(--brand); background: var(--brand-wash); }
.prose { max-width: 780px; min-width: 0; padding: clamp(24px, 4vw, 48px); font-size: 17px; }
.prose h2 { font-size: var(--fs-h2-doc); line-height: 1.15; letter-spacing: -0.025em; margin: 56px 0 14px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; scroll-margin-top: 100px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose li + li { margin-top: 4px; }
.prose a { color: var(--brand); }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--brand-wash); color: var(--brand-deep); padding: 1px 6px; border-radius: 6px; }
.prose pre { background: var(--ink); color: var(--ink-text); border-radius: var(--r-sm); padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; margin: 16px 0; box-shadow: var(--e1); }
.prose pre code { background: none; color: inherit; padding: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--head); }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }
.callout { margin: 20px 0; padding: 18px 20px; border-left: 3px solid var(--brand); background: var(--brand-wash); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.callout p { color: var(--brand-deep); }

/* 404 */
.lost { padding-block: var(--sec-tight) var(--sec); }
.lost .choice { margin-top: 0; }

/* Motion (spec 1e): blocks rise in once as they come into view; the hero's lines rise in turn. Off for reduced motion
   and with ?motion=off (site.js only adds .motion when motion is allowed). */
.motion [data-reveal] { transition: opacity var(--d4) var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.motion [data-reveal]:not(.in) { opacity: 0; transform: translateY(14px); }
.motion .hero-ink h1 .line, .motion .hero-ink .lede, .motion .hero-ink .hero-cta, .motion .hero-ink .record { animation: rise var(--d4) var(--ease-out) both; }
.motion .hero-ink h1 .line:nth-child(2) { animation-delay: 90ms; }
.motion .hero-ink .lede { animation-delay: 180ms; }
.motion .hero-ink .hero-cta { animation-delay: 260ms; }
.motion .hero-ink .record { animation-delay: 220ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.motion .flow .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease-in-out); }
.motion .flow.in .ln { stroke-dashoffset: 0; }

/* Responsive (spec 5: 960 grids collapse; 520 phone tweaks; under 900 the hero's visual goes first) */
@media (max-width: 960px) {
  :root { --sec: 100px; --sec-tight: 72px; }
  .split, .contact-grid, .doc-grid { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: 1fr; }
  .data-grid .photo { position: relative; top: auto; aspect-ratio: 16 / 9; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > :not(:first-child) { order: -1; }
  .hero-ink { padding-top: 116px; }
  .bigmark { width: 90vw; right: -30vw; top: 30%; }
}
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .sources { grid-template-columns: 1fr; }
  .enquiry { grid-template-columns: 1fr; padding: 20px; }
  .send { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .nav-links a.nav-cta { padding: 9px 14px; font-size: 14px; }
  .record { padding: 22px 18px 18px; }
  .rec-rows li { padding: 11px 0; }
  .prose { padding: 22px 18px; }
  .toc { grid-template-columns: 1fr; }
  .plan p { width: min(280px, calc(100vw - 48px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
