/* BeamField product surfaces. One world: the anatomy of the QR code that bridges the two devices.
   White quiet zone, ink modules, and camera yellow for anything the phone touches. */

/* Display face: D-DIN Bold, self-hosted (SIL Open Font License 1.1, see /fonts/D-DIN-OFL-1.1.txt). */
@font-face { font-family: "D-DIN"; src: url("/fonts/D-DIN-Bold.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #ffffff;
  --paper-2: #f4f4f5;
  --paper-3: #e8e8ea;
  --ink: #0c0c0d;
  --ink-hover: #26262a;
  --ink-2: #3a3a3f;
  --ink-3: #66666c;
  --line: #dcdcdf;
  --yellow: #ffd60a;
  --yellow-deep: #f0c400;
  --yellow-wash: #fff5bf;
  --on-yellow-2: #4a3f00;
  --on-ink-2: #c8c8cc;
  --on-ink-3: #97979d;
  --ink-line: #2c2c30;
  --ok: #0a7a43;
  --ok-wash: #e3f4ea;
  --danger: #c0271c;
  --danger-wash: #fbe9e7;

  --font-micro: 14px;
  --font-caption: 15px;
  --font-small: 16px;
  --font-body: 17px;
  --font-lede: 20px;

  --face-display: "D-DIN", "DIN Alternate", "Bahnschrift", "DIN 2014", "Roboto Condensed", "Segoe UI Variable Display", system-ui, sans-serif;
  --face-text: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --face-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Roboto Mono", monospace;

  --unit: 8px;
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 8px;
  --frame: 2px solid var(--ink);
  --hair: 1px solid var(--line);
  --shadow-1: 0 1px 2px rgba(12,12,13,.06), 0 6px 16px -6px rgba(12,12,13,.14);
  --shadow-2: 0 2px 4px rgba(12,12,13,.06), 0 24px 48px -16px rgba(12,12,13,.24);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-snap: cubic-bezier(.22, 1, .36, 1);
  --fast: 140ms;
  --base: 240ms;
  --slow: 520ms;

  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper-2); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--face-text); font-size: var(--font-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); border-radius: var(--radius-1); }
h1, h2, h3, h4, p, ol, ul, pre, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--face-display); font-weight: 700; letter-spacing: -.015em; line-height: 1; text-wrap: balance; }
/* Everywhere: no orphan word on a last line. Headings keep `balance`, set above. */
body { text-wrap: pretty; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--ink); accent-color: var(--ink); }
button { cursor: pointer; }
code, pre, kbd { font-family: var(--face-mono); }
:where(p, small, span, td) code { padding: .1em .35em; border-radius: var(--radius-1); background: var(--paper-2); font-size: max(14px, .92em); }
strong, b { font-weight: 650; }
[hidden] { display: none !important; }
.shell { width: min(100%, calc(var(--shell) + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; left: 12px; top: -64px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 650; text-decoration: none; transition: top var(--fast) var(--ease-out); }
.skip-link:focus { top: 12px; }
noscript { display: block; padding: 24px; }

@view-transition { navigation: auto; }

/* ---------- World primitives ---------- */
/* Finder eye: 7 modules across. Rounded ink ring, quiet gap, rounded centre, as on the real code. */
.finder, .brand-mark { --s: 56px; --ring: var(--ink); --gap: var(--paper); --eye: var(--ink); position: relative; display: block; width: var(--s); height: var(--s); flex: 0 0 var(--s); border: calc(var(--s) / 7) solid var(--ring); border-radius: calc(var(--s) * .33); background: var(--gap); }
.finder::after, .brand-mark::after { content: ""; position: absolute; inset: calc(var(--s) / 7); border-radius: calc(var(--s) / 7); background: var(--eye); }
.finder-yellow { --eye: var(--yellow); }
.on-ink .finder, .finder-invert { --ring: var(--paper); --gap: var(--ink); --eye: var(--yellow); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--face-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: inherit; }
.brand-mark { --s: 28px; --eye: var(--yellow); transition: transform var(--base) var(--ease-snap); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.on-ink .brand-mark { --ring: var(--paper); --gap: var(--ink); }

.button { --bg: var(--paper); --fg: var(--ink); min-height: 48px; padding: 0 20px; border: var(--frame); border-radius: var(--radius-2); background: var(--bg); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--face-display); font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: 0; text-decoration: none; white-space: nowrap; transition: background-color var(--fast) ease, color var(--fast) ease, transform var(--fast) var(--ease-out), box-shadow var(--fast) ease; }
.button svg { width: 18px; height: 18px; flex: 0 0 18px; transition: transform var(--base) var(--ease-out); }
.button:hover svg { transform: translateX(3px); }
.button:active { transform: scale(.975); }
.button-dark { --bg: var(--ink); --fg: var(--paper); }
.button-dark:hover { --bg: var(--ink-hover); }
.button-quiet:hover { --bg: var(--paper-2); }
.button-yellow { --bg: var(--yellow); }
.button-yellow:hover { --bg: var(--yellow-deep); }
.button-large { min-height: 56px; padding: 0 26px; font-size: 20px; }
.button-compact { min-height: 40px; padding: 0 14px; font-size: 16px; }
.button:disabled, .button.is-disabled { --bg: var(--paper-3); --fg: var(--ink-3); border-color: var(--paper-3); cursor: not-allowed; pointer-events: none; }
.button.is-complete { --bg: var(--ok); border-color: var(--ok); --fg: var(--paper); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--face-display); font-size: 18px; font-weight: 700; text-decoration: underline; }
.text-link svg { width: 18px; height: 18px; transition: transform var(--base) var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

.code-card { border-radius: var(--radius-3); background: var(--ink); color: #ededf0; overflow: hidden; box-shadow: var(--shadow-2); }
.code-top { min-height: 48px; padding: 0 20px; border-bottom: 1px solid var(--ink-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--on-ink-2); font-family: var(--face-mono); font-size: var(--font-micro); }
.code-top button { min-height: 32px; padding: 0 12px; border: 1px solid #55555c; border-radius: var(--radius-2); background: transparent; color: var(--paper); font-family: var(--face-display); font-size: var(--font-caption); font-weight: 700; transition: background-color var(--fast) ease, color var(--fast) ease; }
.code-top button:hover:not(:disabled) { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.code-top button:disabled { opacity: .45; cursor: not-allowed; }
.code-card pre { padding: 22px 20px 24px; overflow-x: auto; font-size: var(--font-caption); line-height: 1.7; tab-size: 2; scrollbar-color: #55555c transparent; }
.code-key { color: var(--yellow); }
.code-string { color: #a8e6bf; }
.code-comment { color: var(--on-ink-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color var(--base) ease; }
.site-header.is-scrolled { border-bottom-color: var(--ink); }
.nav { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 12px; font-family: var(--face-display); font-size: 18px; font-weight: 700; text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 12px calc(100% - 6px) / 0 3px; transition: background-size var(--base) var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background-size: calc(100% - 24px) 3px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; border: var(--frame); border-radius: var(--radius-2); background: var(--paper); place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }
/* Language switch: two links, no native control. One copy in the bar, one in the mobile menu, one in the footer. */
.lang-switch { display: inline-flex; border: var(--frame); border-radius: var(--radius-2); overflow: hidden; }
.lang-switch a, .nav-links .lang-switch a { min-width: 40px; min-height: 40px; padding: 0 8px; display: inline-grid; place-items: center; background: var(--paper); color: var(--ink); font-family: var(--face-display); font-size: var(--font-small); font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.lang-switch a + a { border-left: var(--frame); }
.lang-switch a:hover { background: var(--paper-2); }
.lang-switch a[aria-current="true"], .nav-links .lang-switch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.nav-links .lang-switch { display: none; }
.on-ink .lang-switch { border-color: var(--on-ink-3); }
.on-ink .lang-switch a { background: transparent; color: var(--paper); }
.on-ink .lang-switch a + a { border-left-color: var(--on-ink-3); }
.on-ink .lang-switch a:hover { background: var(--ink-line); }
.on-ink .lang-switch a[aria-current="true"] { background: var(--yellow); color: var(--ink); }

/* ---------- Landing: hero ---------- */
.hero { padding: clamp(20px, 2.4vw, 32px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; gap: clamp(24px, 2.4vw, 32px); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero h1 { font-size: clamp(46px, 6.5vw, 96px); line-height: .95; letter-spacing: -.025em; }
.hero h1 .line { display: block; }
.mark { background: var(--yellow); padding: 0 .12em; margin-inline: -.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-side { display: grid; gap: 22px; padding-bottom: 6px; }
.hero-copy { font-size: var(--font-lede); line-height: 1.45; color: var(--ink-2); max-width: 44ch; }
.hero-copy strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stage { --pad: clamp(14px, 2vw, 28px); position: relative; padding: var(--pad); background: var(--paper-2); display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, .34fr) auto; align-items: center; gap: 0; }
.stage > .finder { --s: clamp(40px, 5.2vw, 70px); position: absolute; z-index: 2; }
.sender-powered .brand-mark, .comparison-outcome .finder { flex-shrink: 0; }
.finder-tl { left: calc(var(--s) / -3.5); top: calc(var(--s) / -3.5); }
.finder-tr { right: calc(var(--s) / -3.5); top: calc(var(--s) / -3.5); }
.finder-bl { left: calc(var(--s) / -3.5); bottom: calc(var(--s) / -3.5); }

.browser { position: relative; z-index: 1; border: var(--frame); border-radius: var(--radius-3); background: var(--paper); box-shadow: var(--shadow-2); overflow: hidden; margin: 10px 0 10px clamp(12px, 2.4vw, 40px); }
.browser-bar { min-height: 40px; padding: 0 16px; border-bottom: var(--hair); background: var(--paper-2); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink-3); font-size: var(--font-micro); }
.browser-address { font-family: var(--face-mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-note { white-space: nowrap; }
.claim-form { padding: clamp(16px, 1.8vw, 24px); display: grid; gap: 14px; }
.claim-brand { display: flex; align-items: center; gap: 10px; font-size: var(--font-caption); color: var(--ink-3); }
.claim-brand img { width: 28px; height: 28px; border-radius: var(--radius-2); }
.claim-brand strong { color: var(--ink); font-size: var(--font-small); }
.claim-brand span { margin-left: auto; }
.claim-form h2 { font-size: clamp(26px, 2.6vw, 34px); }
.form-row { display: grid; gap: 10px; }
.form-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--font-small); font-weight: 650; }
.form-label span:last-child { font-weight: 400; font-size: var(--font-micro); color: var(--ink-3); }
.file-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.native-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.desktop-picker { min-height: 60px; padding: 8px 14px; border: 1.5px dashed var(--ink-3); border-radius: var(--radius-2); display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color var(--fast) ease, background-color var(--fast) ease; }
.desktop-picker:hover { border-color: var(--ink); background: var(--paper-2); }
.desktop-picker:has(+ .native-file:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); }
.desktop-picker-icon svg { width: 22px; height: 22px; }
.desktop-picker strong { display: block; font-size: var(--font-small); line-height: 1.25; }
.desktop-picker small { display: block; font-size: var(--font-micro); color: var(--ink-3); line-height: 1.25; }
.file-receipt { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 0; opacity: 0; overflow: hidden; padding: 0 10px; border: 0 solid var(--ink); border-radius: var(--radius-2); background: var(--yellow-wash); transition: height var(--slow) var(--ease-out), opacity var(--base) ease, padding var(--slow) var(--ease-out), border-width var(--fast) ease; }
.file-receipt.is-visible { height: 76px; opacity: 1; padding: 10px; border-width: 1.5px; }
.file-preview { width: 56px; height: 56px; border-radius: var(--radius-1); overflow: hidden; background: var(--paper); display: grid; place-items: center; font-family: var(--face-display); font-size: var(--font-micro); font-weight: 700; }
.file-preview img { width: 100%; height: 100%; object-fit: cover; animation: develop var(--slow) steps(6) both; }
.file-meta strong { display: block; font-size: var(--font-small); line-height: 1.25; }
.file-meta div { font-size: var(--font-micro); color: var(--on-yellow-2); }
.file-check { width: 28px; height: 28px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; }
.file-check svg { width: 16px; height: 16px; }
.claim-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.claim-security { display: inline-flex; align-items: center; gap: 8px; font-size: var(--font-micro); color: var(--ink-3); }
.claim-security svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* The module stream between phone and form. */
.stream { container-type: inline-size; position: relative; align-self: stretch; height: auto; min-height: 120px; }
/* At rest the lane is the code's timing pattern: a row of dots joining the two devices. */
.stream::before { content: ""; position: absolute; left: 10px; right: 10px; top: calc(50% - 5px); height: 10px; background: radial-gradient(circle, var(--ink) 0 3px, transparent 3.6px) 0 50% / 20px 10px repeat-x; transition: opacity var(--base) ease; }
.stage[data-step="send"] .stream::before { opacity: .25; }
.stage:is([data-step="landed"], [data-step="received"]) .stream::before { background-image: radial-gradient(circle, var(--yellow) 0 3px, var(--ink) 3px 4.4px, transparent 5px); }
.stream i { position: absolute; right: 0; top: calc(50% - 44px + var(--r) * 16px); width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); opacity: 0; }
.stage[data-step="send"] .stream i { animation: module-fly 1.25s var(--ease-in-out) both; animation-delay: calc(var(--i) * 75ms); }
@keyframes module-fly { 0% { opacity: 0; transform: translateX(0) scale(.4); } 14% { opacity: 1; transform: translateX(-10cqw) scale(1); } 84% { opacity: 1; transform: translateX(-92cqw) scale(1); } 100% { opacity: 0; transform: translateX(-104cqw) scale(.4); } }

/* The phone that plays scan, capture, send. */
.stage-phone { position: relative; z-index: 1; width: clamp(140px, 13vw, 184px); aspect-ratio: 9 / 18; padding: 9px; border-radius: 30px; background: var(--ink); box-shadow: var(--shadow-2); margin: 0 clamp(4px, 2vw, 32px) 0 0; transform: rotate(3deg); transition: transform var(--slow) var(--ease-snap); }
.stage[data-step="send"] .stage-phone { transform: rotate(0deg) translateX(-6px); }
.phone-screen { position: relative; height: 100%; border-radius: 22px; background: var(--paper); overflow: hidden; }
.scene { position: absolute; inset: 0; padding: 14px 12px; display: grid; grid-template-rows: 1fr auto; gap: 10px; justify-items: center; align-items: center; opacity: 0; transform: scale(.96); transition: opacity var(--base) ease, transform var(--slow) var(--ease-out); }
.scene b { font-family: var(--face-display); font-size: var(--font-small); font-weight: 700; padding-bottom: 6px; }
.stage:is([data-step="press"], [data-step="scan"]) .scene-scan, .stage[data-step="capture"] .scene-capture, .stage:is([data-step="send"], [data-step="landed"], [data-step="received"]) .scene-send { opacity: 1; transform: none; }
.scene-scan { background: var(--ink); color: var(--paper); }
.viewfinder { --gap: 18px; position: relative; width: 74%; aspect-ratio: 1; display: grid; place-items: center; }
.viewfinder::before, .viewfinder::after { content: ""; position: absolute; inset: calc(var(--gap) * -1); border: 3px solid var(--yellow); transition: inset var(--slow) var(--ease-snap); }
.viewfinder::before { clip-path: polygon(0 0, 28% 0, 28% 28%, 0 28%, 0 72%, 28% 72%, 28% 100%, 0 100%); }
.viewfinder::after { clip-path: polygon(100% 0, 72% 0, 72% 28%, 100% 28%, 100% 72%, 72% 72%, 72% 100%, 100% 100%); }
.stage[data-step="scan"] .viewfinder { --gap: 6px; }
.mini-qr { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.mini-qr-brand { position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid #fff; border-radius: 30%; background: #fff; overflow: hidden; display: grid; place-items: center; }
.mini-qr-brand img { width: 100%; height: 100%; object-fit: contain; }
.mini-qr svg { width: 100%; height: 100%; }
.scene-capture { background: var(--paper-2); }
.demo-photo { width: 86%; border: 4px solid var(--paper); box-shadow: var(--shadow-1); transform: rotate(-3deg); }
.stage[data-step="capture"] .demo-photo { animation: shutter var(--slow) var(--ease-out) both; }
@keyframes shutter { 0% { filter: brightness(3); transform: rotate(-3deg) scale(1.12); } 100% { filter: none; transform: rotate(-3deg) scale(1); } }
.scene-send { background: var(--yellow); }
.scene-check { width: 56px; height: 56px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; }
.scene-check svg { width: 30px; height: 30px; }
.scene-check path, .draw-check path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.stage:is([data-step="landed"], [data-step="received"]) .scene-check path, .is-drawn .draw-check path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--slow) var(--ease-out) 120ms; }

.hero-proof { margin-top: clamp(20px, 2vw, 28px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--frame); }
.hero-proof li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: var(--font-small); color: var(--ink-2); background: var(--paper); transition: background-color var(--base) ease, color var(--base) ease; }
.hero-proof li + li { border-left: var(--frame); }
.hero-proof b { width: 28px; height: 28px; flex: 0 0 28px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--face-display); font-size: var(--font-small); transition: background-color var(--base) ease, color var(--base) ease; }
.hero-proof strong { color: var(--ink); font-family: var(--face-display); font-size: 18px; }
.hero-proof li.is-active { background: var(--yellow); color: var(--ink); }

/* Scan-lock: viewfinder brackets snap onto Use phone. */
.claim-form .bf-trigger, .integration-sample .bf-trigger, .kit .bf-trigger { --bf-trigger-bg: var(--yellow); --bf-trigger-fg: var(--ink); --bf-trigger-border: var(--ink); --bf-trigger-hover: var(--yellow-deep); min-height: 60px; }
.bf-trigger::before, .bf-trigger::after { content: ""; position: absolute; inset: -22px; border: 1.5px solid var(--ink); box-shadow: inset 0 0 0 4px var(--yellow), inset 0 0 0 5.5px var(--ink); opacity: 0; pointer-events: none; }
.bf-trigger::before { clip-path: polygon(0 0, 22px 0, 22px 22px, 0 22px, 0 calc(100% - 22px), 22px calc(100% - 22px), 22px 100%, 0 100%); }
.bf-trigger::after { clip-path: polygon(100% 0, calc(100% - 22px) 0, calc(100% - 22px) 22px, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) calc(100% - 22px), calc(100% - 22px) 100%, 100% 100%); }
.bf-trigger.is-demo-guided::before, .bf-trigger.is-demo-guided::after { animation: scan-lock 1.9s var(--ease-snap) both; }
@keyframes scan-lock { 0% { opacity: 0; inset: -30px; } 22% { opacity: 1; inset: -8px; } 34% { inset: -11px; } 46% { inset: -8px; } 82% { opacity: 1; inset: -8px; } 100% { opacity: 0; inset: -8px; } }
@keyframes develop { from { filter: grayscale(1) contrast(.3) brightness(1.8); } to { filter: none; } }

/* Entrance: one authored moment, from a visible default. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line { animation: rise var(--slow) var(--ease-out) backwards; }
  .hero h1 .line:nth-child(2) { animation-delay: 70ms; }
  .hero-side { animation: rise var(--slow) var(--ease-out) 140ms backwards; }
  .stage > .finder { animation: stamp 420ms steps(4) backwards; }
  .stage > .finder-tr { animation-delay: 120ms; }
  .stage > .finder-bl { animation-delay: 240ms; }
  .browser { animation: rise 620ms var(--ease-out) 200ms backwards; }
  .stage-phone { animation: phone-in 720ms var(--ease-snap) 380ms backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes stamp { from { opacity: 0; transform: scale(.4); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(10deg); } }

/* ---------- Landing: sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4.4vw, 56px); }
.section h2, .final-cta h2 { font-size: clamp(34px, 4.3vw, 60px); }
.section-lede { font-size: var(--font-lede); line-height: 1.45; color: var(--ink-2); max-width: 58ch; }

.comparison-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: var(--frame); }
.comparison-panel { padding: clamp(20px, 3vw, 40px); display: grid; gap: 22px; align-content: start; }
.comparison-panel-old { background: var(--paper-2); }
.comparison-panel-new { border-left: var(--frame); }
.comparison-panel h3 { font-size: 26px; }
.mini-form { padding: 16px; border: var(--hair); border-radius: var(--radius-2); background: var(--paper); display: grid; gap: 10px; }
.mini-form > span { font-size: var(--font-small); font-weight: 650; }
.mini-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mini-picker, .mini-phone { min-height: 52px; padding: 0 14px; border-radius: var(--radius-2); display: flex; align-items: center; gap: 10px; font-size: var(--font-small); font-weight: 650; white-space: nowrap; }
.mini-picker { border: 1.5px dashed var(--ink-3); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.mini-phone { border: var(--frame); background: var(--yellow); font-family: var(--face-display); font-size: 18px; font-weight: 700; }
.mini-picker svg, .mini-phone svg { width: 20px; height: 20px; flex: 0 0 20px; }
.trail { display: grid; gap: 0; }
.trail li { position: relative; display: flex; align-items: center; gap: 14px; min-height: 40px; padding-left: 0; font-size: var(--font-small); color: var(--ink-2); }
.trail li::before { content: ""; width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: var(--ink); }
.trail li + li::after { content: ""; position: absolute; left: 5px; top: -14px; height: 28px; border-left: 2px dotted var(--ink); }
.trail-away li::before { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink-3); }
.trail-away li + li::after { border-left-color: var(--ink-3); }
.trail-here li::before { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }
.trail li.trail-end { color: var(--ink); font-weight: 650; }
.trail-count { font-family: var(--face-display); font-size: 20px; font-weight: 700; }
.comparison-panel-old .trail-count { color: var(--ink-3); }
.comparison-outcome { grid-column: 1 / -1; padding: 18px clamp(20px, 3vw, 40px); border-top: var(--frame); background: var(--ink); color: var(--paper); font-family: var(--face-display); font-size: clamp(20px, 2vw, 26px); font-weight: 700; display: flex; align-items: center; gap: 14px; }
.comparison-outcome .finder { --s: 28px; }
/* Visible by default; the steps count themselves out once the board scrolls into view. */
.js-motion .comparison-board.is-inview .trail li { animation: trail-in var(--slow) var(--ease-out) backwards; animation-delay: calc(var(--n, 0) * 120ms + 80ms); }
.js-motion .comparison-board.is-inview .mini-phone { animation: stamp-in var(--slow) var(--ease-snap) 160ms backwards; }
@keyframes trail-in { from { opacity: 0; transform: translateX(-12px); } }
@keyframes stamp-in { from { opacity: 0; transform: scale(.6); } }

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: var(--frame); }
.path { padding: clamp(24px, 3vw, 40px) clamp(0px, 3vw, 40px) 0 0; display: grid; gap: 14px; align-content: start; }
.path + .path { padding-left: clamp(20px, 3vw, 40px); padding-right: 0; border-left: var(--hair); }
.path h3 { font-size: 28px; }
.path-brand { display: flex; align-items: center; gap: 12px; }
.path p { color: var(--ink-2); max-width: 42ch; }
.path .button, .path .text-link { justify-self: start; margin-top: 6px; }

.on-ink { background: var(--ink); color: var(--paper); }
.on-ink .section-lede, .on-ink p { color: var(--on-ink-2); }
.on-ink ::selection { background: var(--yellow); color: var(--ink); }
.on-ink :focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 6px var(--ink), 0 0 0 8px var(--yellow); }
.security-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.security-copy { display: grid; gap: 18px; justify-items: start; }
.security-diagram { display: grid; gap: 0; border: 2px solid var(--paper); color: var(--paper); background: var(--ink); }
.security-diagram-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: clamp(18px, 2.4vw, 28px); }
.security-diagram-route + .security-diagram-route { border-top: 2px dashed var(--on-ink-3); grid-template-columns: minmax(0, 1fr); gap: 6px; }
.diagram-node { display: grid; justify-items: center; gap: 6px; text-align: center; font-family: var(--face-display); font-size: 20px; font-weight: 700; }
.diagram-node svg { width: 40px; height: 40px; padding: 8px; background: var(--paper); color: var(--ink); }
.diagram-node small { font-family: var(--face-text); font-size: var(--font-micro); font-weight: 400; color: var(--on-ink-2); }
.diagram-lane { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.diagram-lane b { color: var(--yellow); font-family: var(--face-display); font-size: var(--font-small); text-align: center; }
.diagram-lane::after { content: ""; width: 100%; height: 12px; background: radial-gradient(circle, var(--yellow) 0 4px, transparent 4.6px) 0 50% / 24px 12px repeat-x; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.is-inview .diagram-lane::after { animation: lane 1s linear infinite; }
@keyframes lane { to { background-position-x: 24px; } }
.security-diagram-route strong { font-family: var(--face-display); font-size: 20px; }
.security-diagram-route > span { font-size: var(--font-small); color: var(--on-ink-2); }
.security-diagram-route > small { font-size: var(--font-small); font-weight: 650; color: var(--yellow); }

.on-yellow { background: var(--yellow); }
.on-yellow .section-lede, .on-yellow p { color: var(--on-yellow-2); }
.on-yellow ::selection { background: var(--ink); color: var(--yellow); }
.on-yellow :focus-visible { box-shadow: 0 0 0 6px var(--paper); }
.on-yellow :where(p, span) code { background: rgba(12,12,13,.1); }
.developer-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.developer-copy { display: grid; gap: 18px; justify-items: start; }
.dev-points { display: grid; gap: 10px; }
.dev-points li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--font-body); color: var(--on-yellow-2); }
.dev-points li b { color: var(--ink); }
.dev-points svg { width: 22px; height: 22px; flex: 0 0 22px; padding: 3px; background: var(--ink); color: var(--yellow); margin-top: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Pricing: the month's volume on a slider, one column per plan on shared rows, the lifetime licence, the rules of the bill. */
.plan-meter { display: grid; gap: 12px; padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.6vw, 32px); border: var(--frame); border-radius: var(--radius-3); margin-bottom: clamp(36px, 4vw, 52px); }
.plan-meter label { font-family: var(--face-display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.plan-meter-track { position: relative; padding-bottom: 30px; }
.plan-meter input { --fill: 40%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 0; padding: 0; border: 0; background: transparent; cursor: grab; }
.plan-meter input:active { cursor: grabbing; }
.plan-meter input::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(to right, var(--ink) var(--fill), var(--paper-3) var(--fill)); }
.plan-meter input::-moz-range-track { height: 10px; border-radius: 5px; background: var(--paper-3); }
.plan-meter input::-moz-range-progress { height: 10px; border-radius: 5px; background: var(--ink); }
.plan-meter input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -11px; border: 5px solid var(--ink); border-radius: 11px; background: var(--yellow); box-shadow: inset 0 0 0 4px var(--paper); transition: transform var(--fast) var(--ease-out); }
.plan-meter input::-moz-range-thumb { box-sizing: border-box; width: 32px; height: 32px; border: 5px solid var(--ink); border-radius: 11px; background: var(--yellow); box-shadow: inset 0 0 0 4px var(--paper); }
.plan-meter input:hover::-webkit-slider-thumb, .plan-meter input:active::-webkit-slider-thumb { transform: scale(1.12); }
.plan-meter-ticks span { position: absolute; top: 36px; left: calc(16px + (100% - 32px) * var(--at)); transform: translateX(-50%); font-size: var(--font-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.plan-meter-ticks span::before { content: ""; position: absolute; left: calc(50% - 1px); top: -7px; width: 2px; height: 6px; background: var(--ink-3); }
.plan-meter-out { font-size: var(--font-lede); line-height: 1.35; color: var(--ink-2); }
.plan-meter-out strong { color: var(--ink); font-family: var(--face-display); font-size: 1.15em; font-variant-numeric: tabular-nums; }
.plans { display: grid; grid-template-columns: minmax(150px, 1.15fr) repeat(5, minmax(0, 1fr)); grid-template-rows: auto repeat(6, auto) auto; border-top: var(--frame); border-bottom: var(--frame); }
.plan-col { position: relative; grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; padding-inline: clamp(10px, 1.3vw, 18px); border-left: var(--hair); transition: background-color var(--base) ease, color var(--base) ease, transform var(--base) var(--ease-out), box-shadow var(--base) ease, border-radius var(--base) ease; }
.plan-labels { padding-left: 0; border-left: 0; }
.plan-col header { display: grid; gap: 6px; align-content: start; padding-block: 24px 18px; }
.plan-col h3 { font-size: 24px; }
.plan-price { display: grid; gap: 2px; }
.plan-price strong { font-family: var(--face-display); font-size: clamp(30px, 3vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; transition: color var(--base) ease; }
.plan-price span { font-size: var(--font-micro); color: var(--ink-3); }
.plan-col[data-col="enterprise"] .plan-price strong { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.3; }
.plan-sub { font-size: var(--font-micro); line-height: 1.35; color: var(--ink-2); }
.plan-col ul { grid-row: span 6; display: grid; grid-template-rows: subgrid; margin: 0; padding: 0; list-style: none; }
.plan-col li { display: flex; align-items: center; min-height: 58px; padding-block: 10px; border-top: var(--hair); font-size: var(--font-caption); line-height: 1.3; }
.plan-labels li { font-weight: 650; padding-right: 12px; }
.plan-col footer { display: flex; align-items: end; padding-block: 18px 24px; }
.plan-col footer .text-link { font-size: 16px; }
/* The pilot's button never leaves its column: it takes the column's width and wraps if it must. */
.plan-col footer .button { width: 100%; min-width: 0; height: auto; min-height: 48px; padding: 8px 12px; justify-content: space-between; white-space: normal; text-align: left; line-height: 1.15; }
.plan-cell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plan-yes { display: inline-grid; }
.plan-yes svg { width: 20px; height: 20px; }
.plan-no { color: var(--ink-3); }
.plan-flag { position: absolute; top: -14px; left: clamp(10px, 1.3vw, 18px); padding: 2px 8px; background: var(--yellow); color: var(--ink); font-family: var(--face-display); font-size: var(--font-micro); font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity var(--base) ease, transform var(--base) var(--ease-out); pointer-events: none; }
.plan-col[data-col="pilot"] { background: var(--yellow); border-left-color: transparent; }
.plan-col[data-col="pilot"] li { border-top-color: rgba(12, 12, 13, .16); }
.plan-col[data-col="pilot"] :is(.plan-price span, .plan-sub) { color: var(--on-yellow-2); }
.plan-col[data-col="pilot"] .plan-flag { display: none; }
.plan-col[data-col="pilot"] + .plan-col { border-left-color: transparent; }
.plan-col.is-match { z-index: 1; background: var(--ink); color: var(--paper); border-left-color: var(--ink); border-radius: var(--radius-3); transform: translateY(-10px); box-shadow: var(--shadow-2); }
.plan-col.is-match + .plan-col { border-left-color: transparent; }
.plan-col.is-match li { border-top-color: var(--ink-line); }
.plan-col.is-match .plan-price strong { color: var(--yellow); }
.plan-col.is-match :is(.plan-price span, .plan-sub) { color: var(--on-ink-2); }
.plan-col.is-match .plan-no { color: var(--on-ink-3); }
.plan-col.is-match .plan-flag { opacity: 1; transform: none; }
.plan-col.is-match :focus-visible { outline-color: var(--paper); }
.lifetime { margin-top: clamp(36px, 4vw, 52px); padding: clamp(24px, 3.6vw, 52px); border-radius: var(--radius-3); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 4.4vw, 72px); align-items: center; }
.lifetime-copy { display: grid; gap: 16px; justify-items: start; }
.lifetime .lifetime-tag { padding: 3px 10px; background: var(--yellow); color: var(--ink); font-family: var(--face-display); font-size: var(--font-micro); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.lifetime h3 { font-size: clamp(32px, 3.6vw, 50px); }
.lifetime-copy > p:not(.lifetime-tag) { color: var(--on-ink-2); max-width: 44ch; }
.lifetime-now { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lifetime-now strong { font-family: var(--face-display); font-size: clamp(60px, 7.4vw, 104px); line-height: .9; color: var(--yellow); font-variant-numeric: tabular-nums; }
.lifetime-now span { font-size: var(--font-lede); color: var(--on-ink-2); }
.lifetime.is-closed .lifetime-now { font-family: var(--face-display); font-size: 28px; font-weight: 700; }
.lifetime-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; }
.lifetime-steps li { display: grid; gap: 2px; align-content: start; }
.lifetime-steps i { display: block; height: 8px; margin-bottom: 8px; border-radius: 4px; background: var(--ink-line); overflow: hidden; }
.lifetime-steps b { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--yellow); transition: width var(--slow) var(--ease-out); }
.lifetime-steps strong { font-family: var(--face-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; color: var(--on-ink-2); font-variant-numeric: tabular-nums; }
.lifetime-steps span, .lifetime-steps small { font-size: var(--font-micro); color: var(--on-ink-3); }
.lifetime-steps .is-current strong { color: var(--paper); }
.lifetime-steps .is-current i { box-shadow: 0 0 0 1px var(--yellow); }
.lifetime-steps .is-current small { color: var(--yellow); font-weight: 650; }
.lifetime-steps .is-sold strong { color: var(--on-ink-3); text-decoration: line-through; }
.lifetime-steps .is-sold b { background: var(--on-ink-3); }
.lifetime-note { margin-top: 22px; font-size: var(--font-micro); color: var(--on-ink-3); max-width: 62ch; }
.pricing-facts { list-style: none; margin: clamp(36px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--frame); }
.pricing-facts li { display: grid; gap: 8px; align-content: start; padding: 24px clamp(16px, 2.4vw, 32px) 0 0; }
.pricing-facts li + li { padding-left: clamp(16px, 2.4vw, 32px); border-left: var(--hair); }
.pricing-facts h3 { font-size: 22px; }
.pricing-facts p { font-size: var(--font-small); color: var(--ink-2); }
.pricing-disclosure { margin-top: 28px; font-size: var(--font-small); color: var(--ink-3); }

.final-cta { position: relative; padding: var(--section) 0; border-top: var(--frame); overflow: hidden; }
.final-cta .shell { position: relative; display: grid; gap: 20px; justify-items: start; }
.final-cta .shell.final-grid { justify-items: stretch; }
.final-cta p { font-size: var(--font-lede); color: var(--ink-2); }
.final-cta .finder { --s: clamp(120px, 20vw, 280px); position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.footer { padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: var(--font-small); color: var(--on-ink-2); }
.footer-meta span { display: inline-flex; align-items: center; gap: 8px; }
.footer-meta svg { width: 18px; height: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-links a { padding: 8px 10px; font-family: var(--face-display); font-size: 18px; font-weight: 700; }

/* ---------- Shared page furniture ---------- */
.page-main { padding-bottom: var(--section); }
.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); display: grid; gap: 18px; justify-items: start; }
.page-hero h1, .console-hero h1, .report-hero h1 { font-size: clamp(36px, 4.8vw, 68px); max-width: 20ch; }
.page-hero p { font-size: var(--font-lede); line-height: 1.45; color: var(--ink-2); max-width: 62ch; }
.rows { margin: 0; border-top: var(--frame); }
.rows > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 8px 32px; padding: 20px 0; border-bottom: var(--hair); }
.rows dt { font-family: var(--face-display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.rows dd { margin: 0; color: var(--ink-2); max-width: 68ch; }
.rows-compact > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; }
.rows-compact dt { font-size: 19px; }
.rows-compact dd { font-size: var(--font-small); }
.page-note { margin-top: clamp(40px, 5vw, 64px); padding: clamp(22px, 3vw, 36px); background: var(--yellow); display: grid; gap: 12px; justify-items: start; }
.page-note h2 { font-size: 28px; }
.page-note p { color: var(--on-yellow-2); max-width: 62ch; }
.meter { height: 8px; background: var(--paper-3); overflow: hidden; }
.meter > * { display: block; width: 0; height: 100%; background: var(--ink); transition: width var(--slow) var(--ease-out); }
.meter-tall { height: 16px; }
.status-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: 1.5px solid var(--ink); font-family: var(--face-display); font-size: var(--font-caption); font-weight: 700; white-space: nowrap; }
.status-tag svg { width: 16px; height: 16px; }
.file-line { position: relative; }

/* ---------- Integration lab and Form Kit ---------- */
.integration-workbench, .starter-workbench { padding-bottom: var(--section); }
.workbench-toolbar { min-height: 52px; padding: 0 18px; border: var(--frame); border-bottom: 0; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: var(--font-small); }
.workbench-toolbar strong { display: inline-flex; align-items: center; gap: 10px; font-family: var(--face-display); font-size: 19px; }
.workbench-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.integration-status { color: var(--yellow); font-family: var(--face-display); font-weight: 700; }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: var(--frame); }
.workbench-grid > * { min-width: 0; }
.integration-live-pane { padding: clamp(20px, 3vw, 40px); background: var(--paper-2); display: grid; gap: 14px; align-content: center; }
.integration-sample { padding: clamp(18px, 2.4vw, 28px); border: var(--frame); border-radius: var(--radius-3); background: var(--paper); box-shadow: var(--shadow-1); display: grid; gap: 16px; }
.sample-form-context { display: grid; gap: 4px; }
.sample-form-context span, .sample-form-context small { font-size: var(--font-micro); color: var(--ink-3); }
.sample-form-context h2 { font-size: 28px; }
.integration-sample-result { min-height: 44px; padding: 10px 12px; background: var(--paper-2); font-size: var(--font-small); color: var(--ink-3); transition: background-color var(--base) ease, color var(--base) ease; }
.integration-sample-result.is-ready { background: var(--yellow-wash); color: var(--ink); font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--ink); }
.integration-sample-result.is-error { background: var(--danger-wash); color: var(--danger); font-weight: 650; }
.integration-experiment-note { padding: 14px 16px; border: var(--frame); background: var(--yellow); display: grid; gap: 2px; font-size: var(--font-small); }
.integration-experiment-note strong { font-family: var(--face-display); font-size: 19px; }
.integration-code-panel { border-radius: 0; box-shadow: none; border-left: var(--frame); display: grid; grid-template-rows: auto 1fr; }
.integration-contract { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--frame); border-top: 0; }
.integration-contract li { display: flex; gap: 14px; padding: 18px; }
.integration-contract li + li { border-left: var(--frame); }
.integration-contract b { width: 28px; height: 28px; flex: 0 0 28px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--face-display); }
.integration-contract strong { display: block; font-family: var(--face-display); font-size: 20px; line-height: 1.2; }
.integration-contract span { font-size: var(--font-small); color: var(--ink-2); }
.integration-security { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }

.starter-form-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: var(--font-small); }
.starter-brand-mark { width: 28px; height: 28px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--face-display); font-weight: 700; }
.starter-field, .pilot-field { display: grid; gap: 8px; align-content: start; }
.starter-field > label, .pilot-field > label, .pilot-project-switcher > label { font-size: var(--font-small); font-weight: 650; }
.pilot-field > label span { font-weight: 400; color: var(--ink-3); font-size: var(--font-micro); }
.starter-field > input, .pilot-field > input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--ink-3); border-radius: var(--radius-2); background: var(--paper); font-size: var(--font-small); transition: border-color var(--fast) ease, box-shadow var(--fast) ease; }
.starter-field > input:hover, .pilot-field > input:hover { border-color: var(--ink); }
.starter-field > input:focus-visible, .pilot-field > input:focus-visible { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px var(--yellow); }
.starter-field > input::placeholder, .pilot-field > input::placeholder { color: var(--ink-3); }
.pilot-field > small { font-size: var(--font-micro); color: var(--ink-3); }
.starter-file-state { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; background: var(--yellow-wash); box-shadow: inset 0 0 0 1.5px var(--ink); animation: rise var(--base) var(--ease-out); }
.starter-file-state > svg { width: 24px; height: 24px; }
.starter-file-state strong, .starter-file-state small { display: block; line-height: 1.3; }
.starter-file-state small { font-size: var(--font-micro); color: var(--on-yellow-2); }
.starter-file-state b { width: 26px; height: 26px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; }
.starter-file-state b svg { width: 16px; height: 16px; }
.draw-check path { stroke-dashoffset: 0; animation: draw-check var(--slow) var(--ease-out) 160ms backwards; }
@keyframes draw-check { from { stroke-dashoffset: 24; } }

/* ---------- Pilot console ---------- */
.console-live { display: inline-flex; align-items: center; gap: 8px; font-size: var(--font-micro); color: var(--ink-2); white-space: nowrap; }
.console-live i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.console-main { padding-block: clamp(28px, 4vw, 56px) var(--section); display: grid; gap: 24px; }
.console-main > * { min-width: 0; }
.console-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 24px clamp(24px, 4vw, 64px); align-items: end; }
.console-hero > div:first-child { display: grid; gap: 14px; }
.console-hero p { color: var(--ink-2); max-width: 56ch; }
.pilot-project-switcher { display: grid; gap: 8px; }
.pilot-switcher-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.project-empty-state { display: grid; font-size: var(--font-small); }
.project-empty-state span { font-weight: 650; }
.project-empty-state small { font-size: var(--font-micro); color: var(--ink-3); }

.select-field { position: relative; min-width: 0; }
.enhanced-select-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.select-field select:not(.enhanced-select-native) { width: 100%; min-height: 48px; padding: 0 40px 0 14px; border: 1.5px solid var(--ink-3); border-radius: var(--radius-2); background: var(--paper); appearance: none; }
.select-field-arrow { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; translate: 0 -50%; pointer-events: none; }
.app-select { position: relative; }
.app-select-button { width: 100%; min-height: 48px; padding: 0 12px 0 14px; border: 1.5px solid var(--ink-3); border-radius: var(--radius-2); background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--font-small); text-align: left; transition: border-color var(--fast) ease; }
.app-select-button:hover, .is-open > .app-select-button { border-color: var(--ink); }
.app-select-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-select-button i { width: 20px; height: 20px; flex: 0 0 20px; transition: transform var(--base) var(--ease-out); }
.is-open > .app-select-button i { transform: rotate(180deg); }
.app-select-menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); padding: 4px; border: var(--frame); border-radius: var(--radius-2); background: var(--paper); box-shadow: var(--shadow-2); display: grid; transform-origin: top; animation: menu-in var(--base) var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scaleY(.96); } }
.app-select-menu button { min-height: 42px; padding: 0 10px; border: 0; border-radius: var(--radius-1); background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--font-small); text-align: left; }
.app-select-menu button:hover, .app-select-menu button:focus-visible { background: var(--yellow); outline: 0; box-shadow: none; }
.app-select-menu button[aria-selected="true"] { font-weight: 650; }
.app-select-menu i { width: 18px; height: 18px; flex: 0 0 18px; }

.pilot-setup-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--frame); }
.pilot-setup-rail > span { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink-3); transition: background-color var(--base) ease, color var(--base) ease; }
.pilot-setup-rail > span + span { border-left: var(--frame); }
.pilot-setup-rail i { width: 28px; height: 28px; flex: 0 0 28px; background: var(--paper-3); color: var(--ink-2); display: grid; place-items: center; font-family: var(--face-display); font-style: normal; font-weight: 700; transition: background-color var(--base) ease, color var(--base) ease; }
.pilot-setup-rail strong { display: block; font-family: var(--face-display); font-size: 19px; line-height: 1.15; }
.pilot-setup-rail small { font-size: var(--font-micro); }
.pilot-setup-rail > .is-complete { color: var(--ink); }
.pilot-setup-rail > .is-complete i { background: var(--ink); color: var(--paper); }
.pilot-setup-rail > .is-current { background: var(--yellow); color: var(--ink); }
.pilot-setup-rail > .is-current i { background: var(--ink); color: var(--yellow); }

.pilot-workspace, .console-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.console-card { min-width: 0; padding: clamp(18px, 2.4vw, 28px); border: var(--frame); background: var(--paper); display: grid; gap: 20px; align-content: start; }
.console-card-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.console-card-head h2 { font-size: 26px; line-height: 1.1; max-width: 24ch; }
.pilot-form { display: grid; gap: 0; }
.pilot-form-section { padding: 20px 0; border-top: var(--hair); display: grid; gap: 14px; }
.pilot-form-section-head { display: grid; gap: 2px; }
.pilot-form-section-head strong { font-family: var(--face-display); font-size: 20px; }
.pilot-form-section-head span { font-size: var(--font-small); color: var(--ink-3); }
.pilot-form-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pilot-field-wide, .pilot-brand-row { grid-column: 1 / -1; }
.pilot-brand-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.brand-preview { min-height: 48px; padding: 6px 12px 6px 6px; border: var(--hair); display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-preview > span { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; transition: background-color var(--base) ease; }
.brand-preview strong, .brand-preview small { display: block; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-preview small { font-size: var(--font-micro); color: var(--ink-3); }
.experiment-editor { display: grid; gap: 16px; }
.experiment-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.experiment-editor-head p { font-size: var(--font-small); color: var(--ink-3); }
.switch { position: relative; flex: 0 0 auto; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { display: block; width: 56px; height: 32px; border: var(--frame); background: var(--paper-3); transition: background-color var(--base) ease; }
.switch span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; background: var(--ink); transition: transform var(--base) var(--ease-snap); }
.switch input:checked + span { background: var(--yellow); }
.switch input:checked + span::after { transform: translateX(24px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); }
.allocation-control { display: grid; gap: 10px; transition: opacity var(--base) ease; }
.allocation-control.is-disabled { opacity: .45; }
.allocation-head, .allocation-scale { display: flex; justify-content: space-between; gap: 12px; font-size: var(--font-small); }
.allocation-head label { font-weight: 650; }
.allocation-head output { font-family: var(--face-display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.allocation-scale { color: var(--ink-3); font-size: var(--font-micro); font-variant-numeric: tabular-nums; }
.allocation-scale strong { color: var(--ink); }
.allocation-slider { position: relative; height: 32px; }
.allocation-slider-track { position: absolute; inset: 8px 0; background: linear-gradient(90deg, var(--yellow) 0 calc(8px + (100% - 16px) * var(--fill, .5)), var(--paper-3) 0); box-shadow: inset 0 0 0 1.5px var(--ink); }
.allocation-slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: ew-resize; }
.allocation-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 32px; background: var(--ink); border: 0; border-radius: 0; }
.allocation-slider input::-moz-range-thumb { width: 16px; height: 32px; background: var(--ink); border: 0; border-radius: 0; }
.allocation-slider input::-moz-range-track { background: transparent; }
.pilot-form-actions { padding-top: 20px; border-top: var(--hair); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: var(--font-micro); color: var(--ink-3); }
#project-form-note.is-error { color: var(--danger); font-weight: 650; }

.project-key-box, .pilot-origins { display: grid; gap: 8px; }
.project-key-box > span, .pilot-origins > span { font-size: var(--font-small); font-weight: 650; }
.project-key-box > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.project-key-box code { min-height: 40px; padding: 8px 12px; background: var(--paper-2); font-size: var(--font-caption); overflow-wrap: anywhere; display: flex; align-items: center; }
#allowed-origins-list { display: flex; flex-wrap: wrap; gap: 6px; }
#allowed-origins-list span { padding: 4px 10px; background: var(--paper-2); font-family: var(--face-mono); font-size: var(--font-micro); overflow-wrap: anywhere; }
#allowed-origins-list em { font-style: normal; font-size: var(--font-small); color: var(--ink-3); }
.pilot-readiness, .install-health { padding-top: 18px; border-top: var(--hair); display: grid; gap: 12px; }
.pilot-readiness-head, .install-health-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pilot-readiness-head strong, .install-health-head strong { display: block; font-family: var(--face-display); font-size: 20px; }
.pilot-readiness-head span, .install-health-head span { font-size: var(--font-small); color: var(--ink-3); }
.pilot-readiness-head b { font-family: var(--face-display); font-size: 28px; font-variant-numeric: tabular-nums; }
.pilot-readiness-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pilot-readiness-steps span { padding: 6px 8px; background: var(--paper-2); color: var(--ink-3); font-size: var(--font-micro); text-align: center; transition: background-color var(--base) ease, color var(--base) ease; }
.pilot-readiness-steps .is-ready { background: var(--ink); color: var(--paper); }
.install-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.install-health-grid > span { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.install-health-grid i { width: 12px; height: 12px; flex: 0 0 12px; margin-top: 5px; border-radius: 50%; background: var(--paper-3); box-shadow: inset 0 0 0 1.5px var(--ink-3); transition: background-color var(--base) ease; }
.install-health-grid i[data-state="ready"] { background: var(--ok); box-shadow: none; }
.install-health-grid i[data-state="waiting"] { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
.install-health-grid i[data-state="error"] { background: var(--danger); box-shadow: none; }
.install-health-grid strong, .install-health-grid small { display: block; line-height: 1.3; overflow-wrap: anywhere; }
.install-health-grid strong { font-size: var(--font-small); }
.install-health-grid small { font-size: var(--font-micro); color: var(--ink-3); }
.pilot-install-card .code-card { box-shadow: none; }
.pilot-install-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pilot-install-note { font-size: var(--font-micro); color: var(--ink-3); }

.results-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.refresh-label { font-size: var(--font-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.outcome-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .8fr); gap: 24px clamp(24px, 4vw, 56px); align-items: center; }
.outcome-comparison, .funnel { display: grid; gap: 16px; }
.outcome-row, .funnel-row { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.4fr) 64px; align-items: center; gap: 16px; }
.outcome-row strong, .funnel-row strong { display: block; font-size: var(--font-small); }
.outcome-row span, .funnel-row span { font-size: var(--font-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.outcome-row > b, .funnel-row > b { font-family: var(--face-display); font-size: 26px; font-variant-numeric: tabular-nums; text-align: right; }
.outcome-row-beamfield .meter > * { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pilot-signal { padding: 20px; background: var(--paper-2); display: grid; gap: 4px; }
.pilot-signal > span { font-size: var(--font-small); font-weight: 650; }
.pilot-signal > strong { font-family: var(--face-display); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.pilot-signal > small { font-size: var(--font-micro); color: var(--ink-3); }
.pilot-signal p { font-size: var(--font-micro); color: var(--ink-2); }
.is-positive { color: var(--ok); }
.is-negative { color: var(--danger); }
.signal-readiness { margin-block: 12px 4px; display: grid; gap: 6px; }
.signal-readiness > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: var(--font-micro); font-variant-numeric: tabular-nums; }
.ab-foot { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 16px; border-top: var(--hair); font-size: var(--font-micro); color: var(--ink-3); }
.ab-foot li { display: flex; align-items: center; gap: 8px; }
.ab-foot li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--frame); }
.metric-grid article { padding: 16px 18px; display: grid; gap: 2px; min-width: 0; }
.metric-grid article + article { border-left: var(--hair); }
.metric-grid span { font-size: var(--font-small); font-weight: 650; }
.metric-grid strong { font-family: var(--face-display); font-size: 40px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric-grid small { font-size: var(--font-micro); color: var(--ink-3); }
.metric-grid .metric-primary { background: var(--yellow); }
.metric-grid .metric-primary small { color: var(--on-yellow-2); }

.funnel-empty, .activity-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px; background: var(--paper-2); }
.funnel-empty > span, .activity-empty > span { width: 40px; height: 40px; padding: 9px; background: var(--ink); color: var(--yellow); }
.funnel-empty strong, .activity-empty strong { display: block; font-family: var(--face-display); font-size: 20px; }
.funnel-empty p, .activity-empty p { font-size: var(--font-small); color: var(--ink-2); }
.funnel-empty .text-link { grid-column: 2; justify-self: start; }
.activity-list { display: grid; }
.activity-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: var(--hair); animation: rise var(--base) var(--ease-out); }
.activity-row strong { display: block; font-size: var(--font-small); }
.activity-row span, .activity-row time { font-size: var(--font-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.activity-row div span { font-family: var(--face-mono); }
.activity-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
.activity-dot.state-completed, .activity-dot.state-complete { background: var(--ok); box-shadow: none; }
.activity-dot.state-failed { background: var(--danger); box-shadow: none; }

/* ---------- Report ---------- */
.report-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.report-nav > div { display: flex; gap: 10px; }
.report-main { padding-block: 24px var(--section); display: grid; gap: 24px; }
.report-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 24px; align-items: end; padding-bottom: 24px; border-bottom: var(--frame); }
.report-hero p { color: var(--ink-2); margin-top: 10px; }
.report-verdict { padding: 20px; background: var(--yellow); display: grid; gap: 2px; }
.report-verdict span { font-size: var(--font-small); font-weight: 650; }
.report-verdict strong { font-family: var(--face-display); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.report-verdict small { font-size: var(--font-micro); color: var(--on-yellow-2); }
.report-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: var(--frame); }
.report-comparison article { padding: 20px; display: grid; gap: 8px; }
.report-comparison article + article { border-left: var(--frame); }
.report-comparison span { font-size: var(--font-small); font-weight: 650; }
.report-comparison strong { font-family: var(--face-display); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.report-comparison small { font-size: var(--font-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.report-comparison .is-beamfield .meter > * { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Docs and trust ---------- */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; border-top: var(--frame); padding-top: 32px; }
.docs-nav { position: sticky; top: 100px; display: grid; gap: 2px; }
.docs-nav a { padding: 7px 12px; font-family: var(--face-display); font-size: 18px; font-weight: 700; line-height: 1.25; text-decoration: none; transition: background-color var(--fast) ease; }
.docs-nav a:hover { background: var(--yellow); }
/* Twelve links are taller than a short window: there the list scrolls away with the page. */
@media (max-height: 620px) { .docs-nav { position: static; } }
.docs-content { display: grid; gap: 56px; min-width: 0; max-width: 760px; }
.docs-content section { display: grid; gap: 14px; justify-items: start; scroll-margin-top: 100px; }
.docs-content section > * { max-width: 100%; }
.docs-content h2 { font-size: 34px; }
.docs-content h3 { margin-top: 14px; font-size: 24px; }
.docs-content p, .docs-content li { color: var(--ink-2); max-width: 68ch; }
.docs-content .code-card, .docs-content .rows, .docs-content .page-note { width: 100%; }
.docs-content .code-card { box-shadow: var(--shadow-1); }
.docs-content .rows { border-top: var(--hair); }
.docs-content .rows > div { padding: 16px 0; }
.docs-content .rows dt { font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.docs-content .rows dd { font-size: var(--font-small); overflow-wrap: anywhere; }
/* Beside the section list the column gets narrow before the phone layout: a name then sits above its text. */
@media (max-width: 920px) { .docs-content .rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
/* Inline code in a definition row or a list gets the same chip as in a paragraph. */
.docs-content :where(dt, dd, li) code { padding: .1em .35em; border-radius: var(--radius-1); background: var(--paper-2); font-size: .92em; }
.docs-content dt code { font-size: var(--font-caption); font-weight: 650; }
/* Under a reference row: the type and the default of an option. */
.docs-content .docs-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: var(--font-caption); color: var(--ink-3); }
.docs-meta b { color: var(--ink-2); }
.docs-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.docs-content .page-note { margin-top: 0; }
.docs-content .page-note h2 { font-size: 28px; }
.docs-content .page-note p { color: var(--on-yellow-2); }
.trust-status { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 24px; }
.trust-status h2 { font-size: clamp(28px, 3.2vw, 40px); max-width: 24ch; }
.trust-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 0 32px; border-top: var(--frame); }
.trust-checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; border-bottom: var(--hair); }
.trust-checklist i { grid-row: span 2; width: 28px; height: 28px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink-3); display: grid; place-items: center; }
.trust-checklist .is-ready i { background: var(--ink); color: var(--yellow); box-shadow: none; }
.trust-checklist i svg { width: 16px; height: 16px; }
.trust-checklist strong { font-size: var(--font-body); }
.trust-checklist small { font-size: var(--font-micro); color: var(--ink-3); }

/* ---------- Phone sender ---------- */
.send-page { --sender-accent: var(--ink); min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--paper); }
.send-top { min-height: 60px; padding: 10px 20px; border-bottom: var(--frame); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.send-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--font-small); }
.send-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send-brand-mark { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; overflow: hidden; background: var(--sender-accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.send-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.send-brand-mark.bf-has-logo { background: #fff; color: var(--ink); outline: 1px solid var(--line, #dcdcdf); outline-offset: -1px; }
.send-brand-mark.bf-has-logo img { object-fit: contain; }
.send-secure, .mobile-trust { display: inline-flex; align-items: center; gap: 6px; font-size: var(--font-micro); color: var(--ink-2); white-space: nowrap; }
.send-secure svg, .mobile-trust svg { width: 18px; height: 18px; flex: 0 0 18px; }
.send-main { width: min(100%, 520px); margin-inline: auto; padding: 28px 20px max(24px, env(safe-area-inset-bottom)); display: grid; grid-template-rows: auto auto 1fr; gap: 24px; }
.send-intro { display: grid; gap: 8px; }
.send-intro h1 { font-size: clamp(36px, 10vw, 48px); }
.send-sub { color: var(--ink-2); }
.sender-card > div, .sender-actions { display: grid; gap: 12px; }
.sender-action { min-height: 76px; padding: 12px 16px; border: var(--frame); border-radius: var(--radius-2); background: var(--paper); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; text-align: left; transition: transform var(--fast) var(--ease-out), background-color var(--fast) ease; -webkit-tap-highlight-color: transparent; }
.sender-action:active { transform: scale(.98); }
.sender-action-primary { background: var(--yellow); }
.sender-action-icon { width: 44px; height: 44px; padding: 10px; background: var(--ink); color: var(--paper); }
.sender-action-primary .sender-action-icon { color: var(--yellow); }
.sender-action strong { display: block; font-family: var(--face-display); font-size: 22px; line-height: 1.15; }
.sender-action small { font-size: var(--font-micro); color: var(--ink-2); }
.sender-action > svg { width: 22px; height: 22px; }
.sender-selected { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; align-items: center; gap: 12px; height: 0; opacity: 0; overflow: hidden; padding: 0 10px; background: var(--yellow-wash); transition: height var(--slow) var(--ease-out), opacity var(--base) ease, padding var(--slow) var(--ease-out); }
.sender-selected.is-visible { height: 84px; opacity: 1; padding: 10px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.sender-thumb { width: 64px; height: 64px; background: var(--paper); overflow: hidden; display: grid; place-items: center; font-family: var(--face-display); font-weight: 700; font-size: var(--font-micro); }
.sender-thumb img { width: 100%; height: 100%; object-fit: cover; animation: develop var(--slow) steps(6) both; }
.sender-selected-text strong { display: block; font-size: var(--font-body); }
.sender-selected-text div { font-size: var(--font-micro); color: var(--on-yellow-2); }
.sender-remove { width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; }
.sender-send { width: 100%; min-height: 60px; }
.sender-progress { height: 0; background: var(--paper-3); overflow: hidden; transition: height var(--base) var(--ease-out); }
.sender-progress.is-visible { height: 10px; }
.sender-progress span { display: block; width: 0; height: 100%; background: var(--ink); transition: width 120ms linear; }
.sender-status { display: flex; align-items: center; gap: 10px; font-size: var(--font-small); color: var(--ink-2); }
.sender-status-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: var(--paper-3); box-shadow: inset 0 0 0 1.5px var(--ink-3); animation: blink 1.2s steps(2, jump-none) infinite; }
.sender-status.is-connected { color: var(--ink); }
.sender-status.is-connected .sender-status-dot { background: var(--ok); box-shadow: none; animation: none; }
.sender-status.is-error { color: var(--danger); font-weight: 650; }
.sender-status.is-error .sender-status-dot { background: var(--danger); box-shadow: none; animation: none; }
.send-foot { align-self: end; display: grid; gap: 10px; justify-items: center; padding-top: 16px; }
.sender-powered { display: inline-flex; align-items: center; gap: 8px; font-size: var(--font-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sender-powered .brand-mark { --s: 18px; }
.sender-complete, .sender-error { padding: 32px 20px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.sender-complete { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); animation: rise var(--slow) var(--ease-out); }
.sender-complete h2, .sender-error h1 { font-size: 34px; }
.sender-complete p { color: var(--on-yellow-2); }
.sender-error p { color: var(--ink-2); }
.sender-error-mark { width: 56px; height: 56px; padding: 12px; background: var(--ink); color: var(--yellow); }
.sender-success-file { width: 100%; padding: 10px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); display: flex; align-items: center; gap: 12px; text-align: left; }
.sender-success-file > span { min-width: 56px; height: 44px; padding: 0 8px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--face-display); font-weight: 700; font-size: var(--font-micro); }
.sender-success-file strong, .sender-success-file small { display: block; line-height: 1.3; }
.sender-success-file small { font-size: var(--font-micro); color: var(--ink-3); }

/* ---------- Demo cue, pilot request, colour swatches ---------- */
.demo-cue { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: var(--font-micro); color: var(--ink); transition: opacity var(--base) ease; }
.demo-cue span { padding: 3px 8px; background: var(--yellow); }
.demo-cue svg { width: 18px; height: 18px; flex: 0 0 18px; rotate: -90deg; order: 2; }
.stage[data-step="press"] .demo-cue svg { animation: nudge-up 900ms var(--ease-out) 2; }
.stage.has-opened .demo-cue, .stage[data-step="received"] .demo-cue { display: none; }
@keyframes nudge-up { 50% { translate: 0 -5px; } }

.final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 96px); align-items: start; justify-items: stretch; }
.final-copy { display: grid; gap: 18px; justify-items: start; align-content: start; }
.final-cta .final-copy .finder { --s: 72px; position: relative; right: auto; top: auto; translate: none; }
.pilot-request { padding: clamp(20px, 2.6vw, 32px); border: var(--frame); border-radius: var(--radius-3); background: var(--paper); box-shadow: var(--shadow-1); display: grid; gap: 14px; }
.pilot-request .button { width: 100%; margin-top: 4px; }
.pilot-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.final-cta .pilot-request-note { font-size: var(--font-micro); color: var(--ink-3); }
.final-cta .pilot-request-note.is-error { color: var(--danger); font-weight: 650; }
.pilot-request-done { padding: 24px 0; display: grid; gap: 12px; justify-items: start; }
.pilot-request-done h3 { font-size: 30px; }
.final-cta .pilot-request-done p { font-size: var(--font-body); color: var(--ink-2); overflow-wrap: anywhere; }

.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.swatch { width: 40px; height: 40px; padding: 0; border: var(--frame); border-radius: var(--radius-2); background: var(--swatch); box-shadow: inset 0 0 0 3px var(--paper); transition: transform var(--fast) var(--ease-out), box-shadow var(--fast) ease; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 3px var(--yellow), 0 0 0 5px var(--ink); }
.swatch-hex { width: 104px; min-height: 40px; padding: 0 10px; border: 1.5px solid var(--ink-3); border-radius: var(--radius-2); background: var(--paper); font-family: var(--face-mono); font-size: var(--font-caption); }
.swatch-hex:focus-visible { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px var(--yellow); }
.swatch-hex.is-invalid { border-color: var(--danger); color: var(--danger); }

/* The console's sign-in: what is behind the door on the left, the door on the right. */
.console-main.is-signed-out { min-height: calc(100dvh - 78px); align-content: center; padding-block: clamp(24px, 5vw, 64px); }
.admin-gate { width: min(100%, 1040px); margin-inline: auto; border: var(--frame); border-radius: var(--radius-3); background: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); overflow: hidden; box-shadow: var(--shadow-2); animation: gate-rise var(--slow) var(--ease-out) both; }
.gate-stage { padding: clamp(28px, 4vw, 56px); display: grid; gap: clamp(28px, 4vw, 48px); align-content: space-between; }
.gate-lock { position: relative; width: 56px; height: 56px; margin: 18px; display: grid; place-items: center; }
.gate-lock::before, .gate-lock::after { content: ""; position: absolute; inset: -10px; border: 3px solid var(--yellow); animation: gate-lock 900ms var(--ease-snap) 240ms both; }
.gate-lock::before { clip-path: polygon(0 0, 28% 0, 28% 28%, 0 28%, 0 72%, 28% 72%, 28% 100%, 0 100%); }
.gate-lock::after { clip-path: polygon(100% 0, 72% 0, 72% 28%, 100% 28%, 100% 72%, 72% 72%, 72% 100%, 100% 100%); }
.gate-stage .gate-claim { color: var(--paper); font-family: var(--face-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; max-width: 13ch; }
.gate-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gate-points li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--font-small); color: var(--on-ink-2); animation: gate-in var(--slow) var(--ease-out) both; animation-delay: calc(380ms + var(--i) * 90ms); }
.gate-points svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; color: var(--yellow); }
.gate-card { padding: clamp(28px, 4vw, 56px); display: grid; gap: 24px; align-content: center; }
.gate-head { display: grid; gap: 10px; }
.gate-head strong { font-family: var(--face-display); font-size: clamp(28px, 2.8vw, 38px); line-height: 1.05; }
.gate-note { font-size: var(--font-body); color: var(--ink-2); }
.admin-gate-forms { display: grid; gap: 14px; }
.admin-gate-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; animation: gate-in var(--base) var(--ease-out) both; }
.gate-label { font-size: var(--font-small); font-weight: 650; }
.admin-gate input { min-height: 56px; padding: 0 16px; border: var(--frame); border-radius: var(--radius-2); background: var(--paper); font-size: var(--font-body); }
.admin-gate-form .button { width: 100%; justify-content: center; }
.admin-gate-switch { justify-self: start; min-height: 44px; padding: 0 14px 0 10px; border: var(--hair); border-radius: var(--radius-2); background: var(--paper); display: inline-flex; align-items: center; gap: 8px; font-size: var(--font-caption); font-weight: 650; color: var(--ink-2); cursor: pointer; transition: border-color var(--fast) ease, color var(--fast) ease, background-color var(--fast) ease; }
.admin-gate-switch:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.admin-gate-switch svg { width: 18px; height: 18px; }
.gate-foot { display: flex; align-items: flex-start; gap: 8px; padding-top: 20px; border-top: var(--hair); font-size: var(--font-micro); color: var(--ink-3); }
.gate-foot svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
@keyframes gate-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes gate-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes gate-lock { from { inset: -26px; opacity: 0; } }
.console-main.is-signed-out > :not(.admin-gate) { display: none; }
.console-shell.is-customer .pilot-workspace { grid-template-columns: minmax(0, 1fr); }
.account-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 12px 16px; align-items: end; }
.account-link { width: 100%; min-height: 48px; padding: 0 14px; border: var(--frame); border-radius: var(--radius-2); background: var(--paper-2); font-family: var(--face-mono); font-size: var(--font-micro); }
.account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.second-factor-card > .button { justify-self: start; }
.second-factor-setup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.second-factor-qr svg { display: block; width: 100%; height: auto; }
.second-factor-form { display: grid; gap: 16px; justify-items: start; max-width: 420px; }
.second-factor-form .pilot-field { width: 100%; }
.second-factor-form input[readonly] { font-family: var(--face-mono); background: var(--paper-2); }

/* ---------- Security diagram ---------- */
.diagram-key { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--face-display); font-size: var(--font-caption); font-style: normal; font-weight: 700; }
.diagram-node .diagram-key svg { width: 20px; height: 20px; padding: 0; background: none; color: inherit; }
.diagram-lane b { display: inline-flex; align-items: center; gap: 8px; }
.diagram-lane b svg { width: 22px; height: 22px; flex: 0 0 22px; }
.diagram-lane small { order: 3; font-size: var(--font-micro); color: var(--on-ink-2); text-align: center; }
.diagram-lane::after { order: 2; }
.diagram-caption { margin: 0; padding: 0 clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px); font-size: var(--font-small); text-align: center; }
.on-ink .diagram-caption { color: var(--paper); }
.security-diagram-route.diagram-relay { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; }
.diagram-server { display: flex; align-items: center; gap: 12px; min-width: 0; }
.diagram-server > svg { width: 40px; height: 40px; flex: 0 0 40px; padding: 8px; border: 2px dashed var(--on-ink-3); color: var(--on-ink-2); }
.diagram-relay-state { position: relative; display: block; min-height: 1.5em; font-size: var(--font-small); }
.diagram-relay-state i { position: absolute; left: 0; top: 0; font-style: normal; white-space: nowrap; }
.diagram-relay-state i:first-child { opacity: 0; color: var(--yellow); }
.diagram-relay-state i:last-child { color: var(--on-ink-2); }
.diagram-never { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; }
.diagram-never li { display: inline-flex; align-items: center; gap: 6px; font-family: var(--face-display); font-size: var(--font-small); font-weight: 700; color: var(--paper); }
.diagram-never svg { width: 18px; height: 18px; padding: 2px; background: var(--paper); color: var(--ink); border-radius: 50%; }
.security-diagram-route > small.diagram-does { grid-column: 1 / -1; font-weight: 400; font-size: var(--font-micro); color: var(--on-ink-3); }
/* One loop: the server introduces the two browsers, the keys light up, then the file crosses without it. */
.is-inview .diagram-relay-state i:first-child { animation: relay-intro 8s linear infinite; }
.is-inview .diagram-relay-state i:last-child { animation: relay-idle 8s linear infinite; }
.is-inview .diagram-server > svg { animation: relay-box 8s linear infinite; }
.is-inview .diagram-key { animation: key-on 8s var(--ease-out) infinite; }
.is-inview .diagram-lane::after { animation: lane 1s linear infinite, lane-open 8s linear infinite; }
@keyframes relay-intro { 0%, 22% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes relay-idle { 0%, 22% { opacity: 0; } 27%, 100% { opacity: 1; } }
@keyframes relay-box { 0%, 22% { border-color: var(--yellow); color: var(--yellow); } 27%, 100% { border-color: var(--on-ink-3); color: var(--on-ink-2); } }
@keyframes key-on { 0%, 8% { scale: .8; opacity: .35; } 16%, 100% { scale: 1; opacity: 1; } }
@keyframes lane-open { 0%, 24% { opacity: .15; } 30%, 100% { opacity: 1; } }

/* ---------- Form Kit ---------- */
:root.kit-open, :root.kit-open body { overflow: hidden; }
.kit { border: var(--frame); background: var(--paper); display: grid; grid-template-rows: auto minmax(420px, 1fr) auto; }
.kit.is-fullscreen { position: fixed; inset: 0; z-index: 60; border: 0; grid-template-rows: auto minmax(0, 1fr) auto; }
.kit-top, .kit-bottom { display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 32px); }
.kit-top { border-bottom: var(--hair); }
.kit-bottom { border-top: var(--hair); }
.kit-meter { flex: 1 1 auto; }
.kit-meter > span { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
.kit-count { font-size: var(--font-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kit-screen { width: 44px; height: 44px; flex: 0 0 44px; padding: 10px; border: var(--frame); border-radius: var(--radius-2); background: var(--paper); transition: background-color var(--fast) ease; }
.kit-screen:hover { background: var(--yellow); }
.kit-body { display: grid; align-items: center; padding: clamp(24px, 5vw, 72px) clamp(16px, 6vw, 96px); overflow: auto; }
.kit-step { width: min(100%, 680px); margin-inline: auto; display: grid; gap: 16px; }
.kit-step h2 { font-size: clamp(30px, 4vw, 52px); }
.kit-hint { color: var(--ink-2); font-size: var(--font-lede); }
.kit-input { width: 100%; min-height: 64px; padding: 12px 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; font-family: var(--face-text); font-size: clamp(22px, 2.6vw, 30px); resize: vertical; }
.kit-input::placeholder { color: var(--ink-3); }
.kit-input:focus-visible { outline: 0; box-shadow: 0 4px 0 var(--yellow); }
.kit-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kit-choice { min-height: 60px; padding: 0 16px; border: var(--frame); border-radius: var(--radius-2); background: var(--paper); display: flex; align-items: center; gap: 12px; font-size: var(--font-lede); text-align: left; transition: background-color var(--fast) ease, transform var(--fast) var(--ease-out); }
.kit-choice:hover { background: var(--paper-2); }
.kit-choice:active { transform: scale(.98); }
.kit-choice[aria-checked="true"] { background: var(--yellow); }
.kit-choice kbd, .kit-enter kbd { min-width: 28px; height: 28px; padding: 0 6px; border: 1.5px solid var(--ink); background: var(--paper); display: inline-grid; place-items: center; font-family: var(--face-display); font-size: var(--font-caption); font-weight: 700; }
.kit-error { color: var(--danger); font-weight: 650; }
.kit-key { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: var(--font-micro); color: var(--ink-3); }
.kit-key svg { width: 18px; height: 18px; }
.kit-key .brand { gap: 6px; font-size: var(--font-small); color: var(--ink); }
.kit-key a.brand:hover { text-decoration: underline; }
.kit-key .brand-mark { --s: 18px; }
.kit-enter { font-size: var(--font-micro); color: var(--ink-3); white-space: nowrap; }
.kit.is-finished .kit-enter, .kit.is-finished .kit-key { visibility: hidden; }
.kit-review { margin: 0; border-top: var(--frame); }
.kit-review > div { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: var(--hair); }
.kit-review dt { font-family: var(--face-display); font-size: 19px; font-weight: 700; }
.kit-review dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.kit-review .text-link { padding: 0; border: 0; background: none; font-size: var(--font-small); }
.kit-done { justify-items: start; }
.kit-notes { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }

/* ---------- Sees / never sees ledger ---------- */
.ledger { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid var(--paper); }
.ledger-col { padding: clamp(16px, 2vw, 24px); display: grid; gap: 14px; align-content: start; }
.ledger-col h3 { font-size: 22px; }
.ledger-col ul { display: grid; gap: 10px; }
.ledger-col li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--font-small); line-height: 1.35; color: var(--on-ink-2); }
.ledger-col li svg { width: 22px; height: 22px; flex: 0 0 22px; padding: 3px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.ledger-never { background: var(--yellow); color: var(--ink); }
.on-ink .ledger-never li { color: var(--ink); font-weight: 650; }
.ledger-never li svg { background: var(--ink); color: var(--yellow); }
.js-motion .ledger.is-inview li { animation: trail-in var(--slow) var(--ease-out) backwards; animation-delay: calc(var(--n, 0) * 110ms + 80ms); }

/* ---------- Plan picker in the request form ---------- */
.plan-picker { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.plan-picker legend { padding: 0 0 8px; font-size: var(--font-small); font-weight: 650; }
.plan-picker label { position: relative; grid-column: span 2; cursor: pointer; }
.plan-picker input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.plan-picker label > span { height: 100%; padding: 10px 12px; border: var(--frame); margin-left: -2px; display: grid; gap: 2px; align-content: center; background: var(--paper); transition: background-color var(--fast) ease; }
.plan-picker label:nth-of-type(n + 4) > span { margin-top: -2px; }
.plan-picker label:first-of-type > span, .plan-picker label:nth-of-type(4) > span { margin-left: 0; }
.plan-picker label:nth-of-type(1) > span { border-top-left-radius: var(--radius-2); }
.plan-picker label:nth-of-type(3) > span { border-top-right-radius: var(--radius-2); }
.plan-picker label:nth-of-type(4) > span { border-bottom-left-radius: var(--radius-2); }
.plan-picker label:nth-of-type(6) > span { border-bottom-right-radius: var(--radius-2); }
.plan-picker strong { font-family: var(--face-display); font-size: 18px; line-height: 1.1; }
.plan-picker small { font-size: var(--font-micro); color: var(--ink-3); line-height: 1.2; }
.plan-picker label:hover > span { background: var(--paper-2); }
.plan-picker input:checked + span { background: var(--yellow); }
.plan-picker input:checked + span small { color: var(--on-yellow-2); }
.plan-picker input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); position: relative; z-index: 1; }
#pilot-volume-field { animation: rise var(--base) var(--ease-out); }

/* ---------- Form Kit calendar ---------- */
/* Two months side by side when there is room, one otherwise. Every month sits in a frame six weeks
   tall and fills only the weeks it has, so the question and the buttons around it never move. */
.kit-step { container-type: inline-size; }
.kit-date { --cell: 44px; position: relative; width: max-content; max-width: 100%; }
.kit-months { display: grid; grid-template-columns: repeat(2, calc(var(--cell) * 7)); gap: 32px; }
.kit-month { display: grid; gap: 4px; align-content: start; }
.kit-date-month { height: 44px; display: grid; place-items: center; font-family: var(--face-display); font-size: 22px; }
.kit-date > .kit-date-nav { position: absolute; top: 0; z-index: 1; }
.kit-date > .kit-date-nav[data-shift="-1"] { left: 0; }
.kit-date > .kit-date-nav[data-shift="1"] { right: 0; }
.kit-date-week, .kit-date-grid { display: grid; grid-template-columns: repeat(7, var(--cell)); }
.kit-date-week span { height: 28px; display: grid; place-items: center; font-size: var(--font-micro); color: var(--ink-3); }
.kit-date-grid { height: calc(var(--cell) * 6); grid-auto-rows: var(--cell); align-content: start; }
@container (max-width: 660px) {
  .kit-months { grid-template-columns: calc(var(--cell) * 7); }
  .kit-month:first-child { display: none; }
}
.kit-date-nav { width: 44px; height: 44px; padding: 10px; border: var(--frame); border-radius: var(--radius-2); background: var(--paper); transition: background-color var(--fast) ease, transform var(--fast) var(--ease-out); }
.kit-date-nav:hover:not(:disabled) { background: var(--yellow); }
.kit-date-nav:active:not(:disabled) { transform: scale(.94); }
.kit-date-nav:disabled { border-color: var(--paper-3); color: var(--ink-3); cursor: not-allowed; }
.kit-day { margin: 2px; border: 0; border-radius: 50%; background: transparent; font-size: var(--font-body); font-variant-numeric: tabular-nums; transition: background-color var(--fast) ease, transform var(--fast) var(--ease-out); }
.kit-day:hover:not(:disabled) { background: var(--paper-3); }
.kit-day:active:not(:disabled) { transform: scale(.9); }
.kit-day[data-today] { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 650; }
.kit-day[aria-pressed="true"] { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); font-weight: 650; }
.kit-day:disabled { color: var(--ink-3); opacity: .45; cursor: not-allowed; }
.kit-day:focus-visible { border-radius: 50%; }

/* Entrances play once. After that they are switched off, so nothing can replay them. */
.is-settled .hero h1 .line, .is-settled .hero-side, .is-settled .stage > .finder, .is-settled .browser, .is-settled .stage-phone { animation: none; }

/* ---------- Preview for one prospect ---------- */
.preview-tag { padding: 4px 10px; background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: var(--font-small); font-weight: 650; color: var(--ink); }
/* Two columns on a wide screen, the words on the left and the form to try on the right. The columns
   fold into one by themselves when there is not room for both. */
.preview-layout { padding-block: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.preview-copy { display: grid; gap: 18px; justify-items: start; }
.preview-copy h1 { font-size: clamp(34px, 4vw, 56px); max-width: 16ch; }
.preview-lede { font-size: var(--font-lede); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.preview-setup { margin-top: 10px; padding-top: 20px; border-top: var(--frame); display: grid; gap: 14px; width: 100%; }
.preview-setup h2 { font-size: 24px; }
.preview-setup ol { margin: 0; padding: 0; list-style: none; counter-reset: setup; display: grid; gap: 14px; }
.preview-setup li { counter-increment: setup; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
.preview-setup li::before { content: counter(setup); grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--face-display); font-size: 18px; border-radius: var(--radius-1); }
.preview-setup strong { font-size: var(--font-body); line-height: 1.3; }
.preview-setup span { grid-column: 2; font-size: var(--font-small); line-height: 1.45; color: var(--ink-2); }
.preview-stage { display: grid; gap: 16px; }
.preview-form { width: 100%; }
.preview-form-head { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
.preview-form-head:not(:has(.preview-logo)) { grid-template-columns: minmax(0, 1fr); }
.preview-logo { width: 48px; height: 48px; object-fit: contain; border-radius: var(--radius-1); background: #fff; }
.preview-form .bf-trigger { white-space: nowrap; }
.preview-done { padding: 10px 12px; background: var(--yellow-wash); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: var(--font-small); font-weight: 650; }
.preview-disclaimer { max-width: 640px; font-size: var(--font-micro); line-height: 1.45; color: var(--ink-3); }

/* ---------- Plan of a project in the console ---------- */
.plan-status { padding: 14px 16px; border: var(--frame); display: grid; gap: 10px; }
.plan-status-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-status-head strong { display: block; font-family: var(--face-display); font-size: 22px; line-height: 1.1; }
.plan-status-head span:not(.status-tag) { font-size: var(--font-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plan-status .meter > span { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
.plan-status.is-paused { background: var(--danger-wash); border-color: var(--danger); }
.plan-status.is-paused .status-tag { border-color: var(--danger); color: var(--danger); }
.plan-status.is-paused .meter > span { background: var(--danger); box-shadow: none; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-actions .select-field { flex: 1 1 220px; }
.plan-actions .app-select-button { min-height: 40px; }

/* ---------- Agreement page and acceptance ---------- */
.doc-layout { display: grid; grid-template-columns: minmax(200px, .42fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; border-top: var(--frame); padding-top: 32px; }
.doc-toc { position: sticky; top: 104px; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; }
.doc-toc li { counter-increment: toc; border-bottom: var(--hair); }
.doc-toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px; padding: 10px 0; font-size: var(--font-caption); line-height: 1.3; color: var(--ink-2); text-decoration: none; transition: color var(--fast) ease; }
.doc-toc a::before { content: counter(toc); font-family: var(--face-display); font-weight: 700; color: var(--ink); }
.doc-toc a:hover { color: var(--ink); text-decoration: underline; }
.doc { max-width: 820px; display: grid; gap: 40px; }
.doc section { scroll-margin-top: 104px; }
.doc-source { font-size: var(--font-small); color: var(--ink-3); }
.print-brand { display: none; }
.doc section { display: grid; gap: 14px; }
.doc h2 { font-size: 28px; }
.doc p, .doc li { color: var(--ink-2); max-width: 72ch; }
.doc-list { display: grid; gap: 10px; padding-left: 1.4em; }
ol.doc-list { list-style: decimal; }
ul.doc-list { list-style: square; }
.doc-list li::marker { color: var(--ink); font-weight: 650; }
.doc .rows { border-top: var(--hair); }
.pilot-accept { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--font-small); color: var(--ink-2); cursor: pointer; }
.pilot-accept input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 1px 0 0; border: var(--frame); border-radius: var(--radius-2); background: var(--paper); display: grid; place-items: center; cursor: pointer; transition: background-color var(--fast) ease; }
.pilot-accept input::after { content: ""; width: 12px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); rotate: -45deg; translate: 0 -2px; scale: 0; transition: scale var(--base) var(--ease-out); }
.pilot-accept input:checked { background: var(--yellow); }
.pilot-accept input:checked::after { scale: 1; }
/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .security-layout, .developer-grid, .integration-security { grid-template-columns: minmax(0, 1fr); }
  .pilot-workspace, .console-grid, .outcome-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Tablet widths: a six-column price table and a full header do not fit. The plans become cards,
   two per row; the header keeps its links and gives up the language switch (it stays in the footer). */
@media (max-width: 1040px) {
  .lang-switch-bar { display: none; }
  .nav-links a { padding-inline: 9px; white-space: nowrap; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 14px; border: 0; }
  .plan-labels { display: none; }
  .plan-col, .plan-col[data-col="pilot"], .plan-col[data-col="pilot"] + .plan-col, .plan-col.is-match, .plan-col.is-match + .plan-col { grid-row: auto; grid-template-rows: none; padding-inline: 18px; border: var(--frame); border-radius: var(--radius-3); transform: none; }
  .plan-col[data-col="enterprise"] { grid-column: 1 / -1; }
  .plan-col ul { grid-row: auto; grid-template-rows: none; }
  .plan-col li { justify-content: space-between; gap: 16px; min-height: 0; text-align: right; }
  .plan-cell-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; text-align: left; color: var(--ink-3); }
  .plan-col[data-col="pilot"] .plan-cell-label { color: var(--on-yellow-2); }
  .plan-col.is-match .plan-cell-label { color: var(--on-ink-3); }
  .plan-flag { top: 18px; left: auto; right: 18px; }
  .lifetime { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --font-micro: 15px; --font-caption: 16px; --font-small: 17px; --font-body: 18px; --font-lede: 20px; }
  html { scroll-padding-top: 76px; }
  .nav { min-height: 60px; gap: 10px; }
  .brand { font-size: 20px; gap: 8px; }
  .nav-cta { min-height: 44px; padding: 0 14px; font-size: 17px; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: grid; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px var(--gutter) 16px; border-bottom: var(--frame); background: var(--paper); display: none; align-items: stretch; }
  .site-header.is-open .nav-links { display: grid; animation: menu-in var(--base) var(--ease-out); }
  .nav-links a { padding: 14px 0; border-bottom: var(--hair); font-size: 22px; background: none; }
  .nav-actions .lang-switch { display: none; }
  .nav-links .lang-switch { display: inline-flex; justify-self: start; margin-top: 14px; }
  .nav-links .lang-switch a { min-height: 44px; min-width: 48px; padding: 0 8px; border-bottom: 0; font-size: 18px; }
  .console-live { display: none; }
  .hero-actions .button, .final-actions .button { flex: 1 1 100%; }
  .stage { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .stage .stream, .stage .stage-phone { display: none; }
  .browser { margin: 22px 0; }
  .browser-bar { flex-wrap: wrap; gap: 0 16px; padding-block: 6px; }
  .browser-note { white-space: normal; }
  .hero-proof li.is-active { background: var(--paper); color: var(--ink-2); }
  .claim-brand span { display: none; }
  .file-line, .mini-field { grid-template-columns: minmax(0, 1fr); }
  .form-label { flex-wrap: wrap; gap: 2px 12px; }
  .mini-phone { justify-content: center; }
  .claim-foot .button, .pilot-install-actions .button, .pilot-form-actions .button { width: 100%; }
  .hero-proof, .integration-contract { grid-template-columns: minmax(0, 1fr); }
  .hero-proof li + li, .integration-contract li + li { border-left: 0; border-top: var(--frame); }
  .comparison-board, .paths, .workbench-grid, .report-comparison, .trust-checklist, .ledger { grid-template-columns: minmax(0, 1fr); }
  .comparison-panel-new, .report-comparison article + article, .integration-code-panel { border-left: 0; border-top: var(--frame); }
  .trust-checklist { grid-template-rows: none; grid-auto-flow: row; }
  .path, .path + .path { padding: 24px 0; border-left: 0; }
  .path + .path { border-top: var(--hair); }
  .security-diagram-route:first-child { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .diagram-lane::after { width: 12px; height: 60px; background: radial-gradient(circle, var(--yellow) 0 4px, transparent 4.6px) 50% 0 / 12px 24px repeat-y; -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
  .is-inview .diagram-lane::after { animation-name: lane-down; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-col[data-col="enterprise"] { grid-column: auto; }
  .plan-meter-out { font-size: var(--font-body); }
  .lifetime-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-facts { grid-template-columns: minmax(0, 1fr); }
  .pricing-facts li, .pricing-facts li + li { padding: 20px 0 0; border-left: 0; }
  .pricing-facts li + li { margin-top: 20px; border-top: var(--hair); }
  .final-grid, .kit-notes, .admin-gate, .admin-gate-form, .account-form, .second-factor-setup, .kit-choices { grid-template-columns: minmax(0, 1fr); }
  .second-factor-qr { max-width: 220px; }
  .kit-review > div { grid-template-columns: minmax(0, 1fr) auto; }
  .kit-review dd { grid-column: 1 / -1; grid-row: 2; }
  .kit-enter, .kit-key-by, .kit-key svg { display: none; }
  .kit-key .brand { font-size: var(--font-caption); }
  .kit-bottom { padding-inline: 12px; }
  .kit-bottom .button { padding: 0 14px; }
  .kit-bottom { gap: 10px; }
  .diagram-never { justify-content: flex-start; }
  .security-diagram-route.diagram-relay { grid-template-columns: minmax(0, 1fr); }
  .diagram-relay-state i { white-space: normal; }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
  .console-hero, .report-hero, .docs-layout, .pilot-brand-row, .pilot-form-section-grid { grid-template-columns: minmax(0, 1fr); }
  .pilot-switcher-row { grid-template-columns: minmax(0, 1fr); }
  .pilot-setup-rail, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-setup-rail > span:nth-child(3) { border-left: 0; }
  .pilot-setup-rail > span:nth-child(n + 3), .metric-grid article:nth-child(n + 3) { border-top: var(--frame); }
  .metric-grid article:nth-child(3) { border-left: 0; }
  .outcome-row, .funnel-row { grid-template-columns: minmax(0, 1fr) 64px; }
  .outcome-row .meter, .funnel-row .meter { grid-column: 1 / -1; grid-row: 2; }
  .install-health-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; grid-auto-flow: column; overflow-x: auto; justify-content: start; }
  .docs-nav a { white-space: nowrap; }
  .report-nav { flex-wrap: wrap; padding-block: 12px; }
}
@keyframes lane-down { to { background-position-y: 24px; } }

/* Printing a document page (the data processing agreement, the report): the document only, with
   the brand on the first page and the page number on each. Grids become blocks: a grid that is cut
   by a page break prints its rows on top of each other. */
@page { size: A4; margin: 18mm 16mm 20mm; @bottom-left { content: "BeamField · beamfield.app"; font: 9pt system-ui, sans-serif; color: #66666c; } @bottom-right { content: counter(page) " / " counter(pages); font: 9pt system-ui, sans-serif; color: #66666c; } }
@media print {
  .skip-link, .site-header, .footer, .report-nav > div, .page-hero .hero-actions, .doc-toc, .page-note, .bf-backdrop { display: none !important; }
  html, body { overflow: visible; }
  body { font-size: 10.5pt; line-height: 1.45; }
  .shell { width: auto; padding-inline: 0; }
  .page-main, .report-main { padding-bottom: 0; }
  .print-brand { display: flex; align-items: center; gap: 8pt; margin: 0 0 18pt; padding-bottom: 10pt; border-bottom: 1.5pt solid #0c0c0d; font-family: var(--face-display); font-size: 15pt; }
  .print-brand a { margin-left: auto; font-family: var(--face-text); font-size: 9.5pt; color: #3a3a3f; }
  .page-hero { display: block; padding-block: 0 14pt; }
  .page-hero h1 { font-size: 26pt; max-width: none; }
  .page-hero p { margin-top: 8pt; font-size: 11.5pt; max-width: none; }
  .doc-layout, .doc, .doc section, .doc-list { display: block; }
  .doc-layout { padding-top: 14pt; }
  .doc { max-width: none; }
  .doc section { margin-bottom: 16pt; }
  .doc h2 { font-size: 15pt; margin-bottom: 6pt; break-after: avoid; }
  .doc p, .doc li, .rows dd { max-width: none; }
  .doc p + p, .doc p + ol, .doc p + ul, .doc p + dl, .doc dl + p { margin-top: 6pt; }
  .doc-list li { margin-bottom: 5pt; break-inside: avoid; }
  .rows > div, .rows-compact > div { display: block; padding: 7pt 0; break-inside: avoid; }
  .rows dt, .rows-compact dt { font-size: 11.5pt; margin-bottom: 2pt; break-after: avoid; }
  .rows-compact dd { font-size: 10.5pt; }
  .doc a, .print-brand a, .doc-source a { color: inherit; text-decoration: underline; }
  .doc-source { margin-top: 14pt; font-size: 9.5pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .is-inview .diagram-lane::after, .is-inview .diagram-key, .is-inview .diagram-relay-state i, .is-inview .diagram-server > svg, .workbench-dot, .sender-status-dot { animation: none !important; }
  /* No motion: the lock simply holds on the control while it is called out. */
  .bf-trigger.is-demo-guided::before, .bf-trigger.is-demo-guided::after { animation: none !important; opacity: 1; inset: -8px; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
