/* Hallmark · shape: one tool's day, told in the app's own screens · genre: modern-minimal · theme: custom · job: book · idea: "the page follows one drill, DRL-014, through the custody record, and the hero lets you hand it over yourself" · vibe: "yard-precise, light, graphite and one amber signal"
 * paper: oklch(95.4% 0.003 248) · accent: oklch(77% 0.164 73) · display: Saira · body: Hanken Grotesk · hero: copy left, two live app screens right that you can release and accept · nav: wordmark, three anchors, one action · footer: wordmark over contact and legal links · imagery: the product built from its own screen code, plus the Blender render of the sticker's seven layers · signature: the two-name handover you can do in the hero
 * axes: light/grotesk-wide/chromatic-amber · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a calm page could read as any SaaS; the argument is that a tool changes hands only when two named people agree, and the hero makes you do exactly that */
/* Hallmark · waive 1 · Saira is the display face of the shipped app (apps/mobile/src/ds/tokens.ts) and the page sells that app · brand face pinned by the product */
/* Hallmark · dismissed 3 · the three equal columns in .steps hold three app screens in sequence, not icon tiles */
/* Hallmark · dismissed F4 · .s-btn and .s-btn.dark are buttons inside the app screens being shown, the page itself has one primary, .btn-primary */
/* Hallmark · dismissed 25 · .s-center p is a caption inside an app screen at the app's own measure */
/* Hallmark · dismissed 49 · the role tabs are two-line buttons by design, a name over a sentence */
/* Hallmark · dismissed 56 · .nav and .topbar never share a page: .topbar is the legal pages' bar and is no longer sticky */
/* Hallmark · dismissed 58 · the count includes the text inside eleven app screens and two sample tables; the page copy outside them is about 450 words */
/* Hallmark · waive 47b · nine phone frames, each holding a real app screen built from the app code · Paul asked for the phones on 2 December after seeing bare screens */
/* Hallmark · dismissed F7 · .sheet, .shot, .record and .plan are one card recipe on purpose: each holds a thing from the product (a file, a photo, a record, a plan) on the same white the app uses for cards */
/* Hallmark · dismissed F1 · the legal pages keep straight apostrophes because tests/security/legal-pages.test.mjs pins those exact sentences */
/* Hallmark · answered F19 · four weights because the mono outlier is a fifth role: Saira 700 heads, Hanken 400 and 600 body, Spline Sans Mono 500 for tool and sticker codes only */

/* Fonts: the app's own files, served from this origin (CSP font-src 'self'). */
@font-face { font-family: "Saira"; src: url("/fonts/Saira_700Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/HankenGrotesk_400Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/HankenGrotesk_600SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("/fonts/SplineSansMono_500Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

/* Tokens. Every colour is the app's palette (apps/mobile/src/ds/tokens.ts) converted to OKLCH. */
:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-2xs: 0.75rem; --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1.0625rem; --text-lg: 1.25rem; --text-xl: 1.5625rem;
  --text-display: clamp(2.6rem, 4.2vw + 0.6rem, 4.75rem);
  --text-section: clamp(2rem, 2.2vw + 1rem, 3.25rem);
  --text-title: clamp(1.25rem, 0.6vw + 0.95rem, 1.5rem);
  --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.3125rem);
  --text-price: clamp(2.75rem, 3vw + 1.5rem, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;

  --color-paper: oklch(95.4% 0.003 248);       /* #EEF0F2, the app's ground */
  --color-paper-2: oklch(97.6% 0.003 265);     /* #F6F7F9 */
  --color-paper-3: oklch(93% 0.006 255);       /* #E5E8EC */
  --color-surface: oklch(99.4% 0.002 255);     /* card white, a hair off absolute */
  --color-ink: oklch(20.5% 0.01 268);          /* #15171C */
  --color-ink-2: oklch(37.7% 0.019 261);       /* #3C424C */
  --color-muted: oklch(50.5% 0.02 259);        /* #5E6570, 5.1:1 on paper */
  --color-faint: oklch(76.8% 0.014 258);       /* #AEB4BD, rules and icons only */
  --color-rule: oklch(89% 0.009 258);          /* #D7DBE1 */
  --color-rule-soft: oklch(93% 0.006 255);     /* #E5E8EC */
  --color-accent: oklch(77% 0.164 73);         /* #F2A100, the app's amber */
  --color-accent-ink: oklch(19.1% 0.03 86);    /* #1A1304, 8.7:1 on amber */
  --color-accent-soft: oklch(96.1% 0.043 87);  /* #FFF1D2 */
  --color-accent-deep: oklch(50.8% 0.108 73);  /* text on accent-soft, 5.3:1 */
  --color-focus: oklch(50.8% 0.12 73);         /* ring on light grounds, 5:1 */
  --color-field: oklch(23.4% 0.009 256);       /* #1B1E22, the render's own background */
  --color-field-2: oklch(27.2% 0.016 264);     /* #23272F */
  --color-field-ink: oklch(96% 0.004 255);
  --color-field-muted: oklch(76.8% 0.014 258); /* 8:1 on field */
  --color-field-rule: oklch(34% 0.014 260);
  --color-good: oklch(45% 0.11 156);           /* green text, 5:1 on its soft */
  --color-good-soft: oklch(93.8% 0.029 160);
  --color-bad: oklch(48% 0.15 33);
  --color-bad-soft: oklch(92.4% 0.031 35);
  --color-info: oklch(51.9% 0.171 260);
  --color-info-soft: oklch(94% 0.023 258);
  --color-error: oklch(48% 0.17 30);
  --color-av-red: oklch(57.1% 0.17 33);        /* avatar fills from the app */
  --color-av-blue: oklch(51.9% 0.171 260);
  --color-av-green: oklch(55.9% 0.131 156);
  --color-av-ink: oklch(99.4% 0.002 255);

  --font-display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "Spline Sans Mono", ui-monospace, "Cascadia Mono", monospace;

  --radius-pill: 999px; --radius-control: 12px; --radius-card: 18px; --radius-screen: 30px; --radius-tile: 9px;
  --rule-hair: 1px;
  --shadow-card: 0 1px 2px oklch(20% 0.01 260 / 0.06);
  --shadow-screen: 0 24px 48px -20px oklch(20% 0.02 260 / 0.28), 0 0 0 1px oklch(30% 0.01 260 / 0.06);
  --color-phone: oklch(19% 0.008 262);          /* graphite body, a step under the ink */
  --color-phone-rim: oklch(58% 0.01 260);        /* the brushed edge catching light */
  --color-phone-rim-2: oklch(31% 0.01 262);
  --color-phone-glass: oklch(8% 0.005 262);      /* the camera lens */
  --shadow-phone: 0 40px 70px -30px oklch(20% 0.02 260 / 0.5), 0 14px 28px -14px oklch(20% 0.02 260 / 0.35);
  --gradient-photo-left: linear-gradient(90deg, oklch(17% 0.01 260 / 0.92) 0%, oklch(17% 0.01 260 / 0.7) 34%, oklch(17% 0.01 260 / 0) 62%);
  --gradient-photo-bottom: linear-gradient(0deg, oklch(17% 0.01 260 / 0.94) 0%, oklch(17% 0.01 260 / 0.6) 45%, oklch(17% 0.01 260 / 0) 75%);
  --gradient-field-fade: linear-gradient(180deg, oklch(23.4% 0.009 256 / 0) 30%, oklch(23.4% 0.009 256 / 1) 78%);
  --gradient-field-left: linear-gradient(90deg, oklch(23.4% 0.009 256 / 0.9) 0%, oklch(23.4% 0.009 256 / 0.55) 40%, oklch(23.4% 0.009 256 / 0.1) 75%);
  --gradient-hero: linear-gradient(90deg, oklch(17% 0.01 260 / 0.94) 0%, oklch(17% 0.01 260 / 0.74) 34%, oklch(17% 0.01 260 / 0.12) 64%, oklch(17% 0.01 260 / 0.1) 100%), linear-gradient(0deg, oklch(17% 0.01 260 / 0.55) 0%, oklch(17% 0.01 260 / 0) 35%);
  --shadow-rings: 0 0 0 14px oklch(99% 0.002 255 / 0.65), 0 0 0 30px oklch(99% 0.002 255 / 0.32), 0 1px 2px oklch(20% 0.01 260 / 0.06);
  --color-accent-hover: oklch(72% 0.16 72);
  --tracking-display: -0.022em;
  --nav-h: 72px;
}

/* Base: the decisions the Floor already made. */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-faint) var(--color-paper); scroll-padding-top: calc(var(--nav-h) + var(--space-lg)); scroll-behavior: smooth; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; font-synthesis: none; caret-color: var(--color-accent-deep); }
::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; letter-spacing: var(--tracking-display); }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
ol, ul { margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .code { font-family: var(--font-outlier); font-weight: 500; font-size: 0.92em; letter-spacing: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-control); }
.skip:focus-visible { top: var(--space-md); }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 104px; --section-gap-l: 120px; --nav-h: 64px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 64px; --section-gap: 80px; --section-gap-l: 96px; --gap-columns: 16px; } }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill);
  border: 1px solid transparent; font-weight: 600; font-size: var(--text-md); line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-faint); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-color var(--dur-micro) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-ink); }
.link:active { color: var(--color-ink-2); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 88%, transparent); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.nav.is-scrolled { border-bottom-color: var(--color-rule-soft); }
.nav-inner { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-h); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; white-space: nowrap; }
.mark { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--color-accent); color: var(--color-accent-ink); display: grid; place-items: center; }
.mark svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: var(--space-lg); margin-left: auto; list-style: none; }
.nav-links a { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); text-decoration: none; padding: var(--space-xs) 0; transition: color var(--dur-micro) var(--ease-out); }
.nav-links a:hover { color: var(--color-ink); }
.nav-menu { display: none; margin-left: auto; position: relative; }
.nav-menu summary { list-style: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: 1px solid var(--color-rule); font-weight: 600; font-size: var(--text-sm); cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--color-surface); }
.nav-menu ul { position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); list-style: none; min-width: 200px; padding: var(--space-xs); background: var(--color-surface); border-radius: var(--radius-control); box-shadow: var(--shadow-screen); }
.nav-menu a { display: block; padding: var(--space-sm) var(--space-md); border-radius: 8px; text-decoration: none; font-weight: 600; }
.nav-menu a:hover { background: var(--color-paper-2); }
@media (max-width: 60rem) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav-inner { gap: var(--space-sm); }
}
@media (max-width: 26rem) { .wordmark .wordmark-text { display: none; } }

/* ---------- Section rhythm ---------- */
.section { padding-block: var(--section-gap) 0; }
.section-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); max-width: 46rem; }
.section-head h2 { font-size: var(--text-section); line-height: 1.04; max-width: 20ch; }
.section-head p { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 44ch; }

/* ---------- Hero ---------- */
/* Dark photographic hero, like the sticker band: a Gemini photo of a site tool container at dusk,
   darkened on the left for the headline. One slow settle on load (transform only, skipped under
   reduced motion); nothing waits on it to be visible. */
.hero { position: relative; isolation: isolate; overflow: clip; background: var(--color-field); color: var(--color-field-ink); padding-block: var(--space-xl) var(--space-3xl); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/img/hero-yard.webp") 100% 55% / cover no-repeat; transform-origin: 75% 55%; animation: hero-settle 18s var(--ease-out) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gradient-hero); }
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero :focus-visible { outline-color: var(--color-accent); }
.hero .lede { color: var(--color-field-muted); }
.hero .link { color: var(--color-field-ink); text-decoration-color: var(--color-field-muted); }
.hero .link:hover { text-decoration-color: var(--color-field-ink); }
.hero .handover-caption { color: var(--color-field-muted); }
.hero .handover-caption strong { color: var(--color-field-ink); }
@media (max-width: 48rem) { .hero::before { background-image: url("/img/hero-yard-sm.webp"); background-position: 70% 40%; } }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; min-height: min(calc(100svh - var(--nav-h) - var(--space-lg) - var(--space-2xl)), 760px); }
.hero-copy { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); align-content: center; }
.hero-copy h1 { font-size: var(--text-display); line-height: 0.98; max-width: 12ch; }
.hero-copy h1 .line-2 { display: block; }
.hero-copy .lede { font-size: var(--text-lead); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xs); }
.hero-demo { grid-column: 6 / span 7; justify-self: end; width: 100%; max-width: 680px; }
@media (max-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; max-height: none; gap: var(--space-2xl); }
  .hero-copy, .hero-demo { grid-column: 1; }
  .hero-demo { justify-self: start; }
}

/* The handover demo: two app screens, one yard and one technician. */
.handover { margin: 0; display: grid; gap: var(--space-md); }
.handover-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); align-items: start; }
.handover-screens > .phone:nth-child(2) { margin-top: var(--space-lg); }
.handover-caption { order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); min-height: 44px; font-size: var(--text-md); color: var(--color-ink-2); }
.handover-caption strong { font-weight: 600; color: var(--color-ink); }
.who { display: block; font-size: var(--text-xs); color: var(--color-muted); margin-bottom: var(--space-xs); padding-left: var(--space-2xs); }
@media (max-width: 40rem) {
  .phone { margin-inline: auto; }
  .handover-screens { grid-template-columns: minmax(0, 1fr); }
  .handover-screens > .phone:nth-child(2) { margin-top: 0; }
}

/* ---------- App screens, built from the app's primitives ---------- */
/* The phone: a graphite Android body around each app screen, built in CSS so the screen stays real HTML. */
.phone {
  /* Real phone proportions: a Pixel 8 body is 70.8 x 150.5 mm. The screen fills the body and,
     like a real phone, anything taller than it is simply below the fold. */
  position: relative; display: flex; width: 100%; max-width: 288px; aspect-ratio: 70.8 / 150.5;
  padding: var(--space-xs); border-radius: 44px;
  background: var(--color-phone);
  box-shadow: inset 0 0 0 1.5px var(--color-phone-rim), inset 0 0 0 4px var(--color-phone-rim-2), var(--shadow-phone);
}
.phone::before, .phone::after { content: ""; position: absolute; right: -3px; width: 4px; border-radius: 0 3px 3px 0; background: var(--color-phone-rim-2); box-shadow: inset -1px 0 0 var(--color-phone-rim); }
.phone::before { top: 19%; height: 7%; }
.phone::after { top: 29%; height: 11%; }
.screen {
  --s-pad: var(--space-md);
  position: relative; display: flex; flex-direction: column;
  flex: 1; width: 100%; min-height: 0;
  background: var(--color-paper); border-radius: 36px; /* concentric: 44 - 8 */
  overflow: hidden; font-size: 14px; line-height: 1.35; color: var(--color-ink);
}

.s-status { display: flex; justify-content: space-between; align-items: center; padding: var(--space-sm) var(--space-lg) var(--space-xs); font-size: 12px; font-weight: 600; }
.s-status .s-cam { width: 12px; height: 12px; border-radius: 50%; background: var(--color-phone-glass); box-shadow: inset 0 0 0 2px var(--color-phone-rim-2); }
.s-status > span:first-child, .s-sys { flex: 1; }
.s-sys { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-2xs); }
.s-sys svg { width: 14px; height: 14px; }
.s-sys svg.batt { width: 22px; height: 11px; }
.s-bar { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--s-pad) var(--space-sm); }
.s-bar .s-back { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--color-surface); box-shadow: var(--shadow-card); flex-shrink: 0; }
.s-bar .s-back svg, .s-ico svg { width: 18px; height: 18px; }
.s-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; line-height: 1.1; }
.s-sub { font-size: 12px; color: var(--color-muted); font-weight: 600; }
.s-body { flex: 1; display: grid; align-content: start; gap: var(--space-sm); padding: 0 var(--s-pad) var(--s-pad); }
.s-label { font-size: 12px; font-weight: 600; color: var(--color-muted); margin-top: var(--space-2xs); padding-left: var(--space-3xs); }
.s-card { background: var(--color-surface); border-radius: 14px; box-shadow: var(--shadow-card); padding: var(--space-sm); display: grid; gap: var(--space-sm); }
.s-row { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.s-row-text { display: grid; gap: var(--space-3xs); min-width: 0; flex: 1; }
.s-row-text b { font-weight: 600; font-size: 14px; line-height: 1.25; overflow-wrap: break-word; }
.s-row-text span { font-size: 12px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-glyph { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--color-paper-2); border: 1px solid var(--color-rule-soft); display: grid; place-items: center; color: var(--color-ink); }
.s-glyph svg { width: 22px; height: 22px; }
.s-glyph-lg { width: 52px; height: 52px; border-radius: 14px; }
.s-glyph-lg svg { width: 28px; height: 28px; }
.s-av { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--color-av-ink); background: var(--color-ink); }
.s-av.red { background: var(--color-av-red); }
.s-av.blue { background: var(--color-av-blue); }
.s-av.green { background: var(--color-av-green); }
.s-code { font-family: var(--font-outlier); font-weight: 500; font-size: 12px; color: var(--color-ink-2); }
.chip { display: inline-flex; align-items: center; gap: var(--space-2xs); flex-shrink: 0; padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; line-height: 1.2; background: var(--color-paper-2); color: var(--color-ink-2); white-space: nowrap; }
.chip.amber { background: var(--color-accent-soft); color: var(--color-accent-deep); }
.chip.good { background: var(--color-good-soft); color: var(--color-good); }
.chip.bad { background: var(--color-bad-soft); color: var(--color-bad); }
.chip.info { background: var(--color-info-soft); color: var(--color-info); }
.s-check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--color-ink); color: var(--color-surface); display: grid; place-items: center; }
.s-check svg { width: 13px; height: 13px; }
.s-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); width: 100%; min-height: 46px; border-radius: 13px; border: 0; font-weight: 600; font-size: 14px; background: var(--color-accent); color: var(--color-accent-ink); transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.s-btn svg { width: 18px; height: 18px; }
button.s-btn:hover { background: var(--color-accent-hover); }
button.s-btn:active { transform: scale(0.98); }
button.s-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.s-btn.ghost { background: var(--color-paper-3); color: var(--color-ink-2); }
.s-btn.dark { background: var(--color-field); color: var(--color-field-ink); }
.s-dock { padding: var(--space-sm) var(--s-pad) var(--space-md); display: grid; gap: var(--space-xs); }
.s-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: var(--space-xs) var(--space-xs) var(--space-sm); background: var(--color-surface); border-top: 1px solid var(--color-rule-soft); }
.s-tabs span { display: grid; justify-items: center; gap: var(--space-2xs); font-size: 11px; font-weight: 600; color: var(--color-muted); }
.s-tabs span svg { width: 20px; height: 20px; }
.s-tabs span.on { color: var(--color-ink); }
.s-tabs .s-badge { position: relative; }
.s-tabs .s-badge i { position: absolute; top: -3px; right: -7px; min-width: 15px; height: 15px; padding: 0 var(--space-2xs); border-radius: 8px; background: var(--color-bad); color: var(--color-av-ink); font-style: normal; font-size: 10px; line-height: 15px; text-align: center; }
.s-trail { display: grid; gap: 0; }
.s-trail li { list-style: none; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-xs) 0; font-size: 12.5px; color: var(--color-ink-2); }
.s-trail li::before { content: ""; width: 9px; height: 9px; margin-top: var(--space-2xs); border-radius: 50%; border: 2px solid var(--color-faint); background: var(--color-surface); }
.s-trail li.now::before { border-color: var(--color-ink); background: var(--color-ink); }
.s-trail b { color: var(--color-ink); font-weight: 600; }
.s-trail time { display: block; font-size: 11.5px; color: var(--color-muted); }
.s-empty { display: grid; justify-items: center; text-align: center; gap: var(--space-xs); padding: var(--space-xl) var(--space-sm); color: var(--color-muted); font-size: 13px; }
.s-empty b { color: var(--color-ink); font-size: 15px; font-weight: 600; }
.s-empty .s-glyph { background: var(--color-surface); }
.s-band { background: var(--color-field); color: var(--color-field-ink); border-radius: 16px; padding: var(--space-md); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-band div { display: grid; gap: var(--space-3xs); padding-inline: var(--space-sm); border-left: 1px solid var(--color-field-rule); }
.s-band div:first-child { padding-left: 0; border-left: 0; }
.s-band span { font-size: 11px; font-weight: 600; color: var(--color-field-muted); }
.s-band b { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.s-search { display: flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-sm); border-radius: 12px; background: var(--color-surface); color: var(--color-muted); font-size: 13px; box-shadow: var(--shadow-card); }
.s-search svg { width: 16px; height: 16px; }
.s-note { display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-sm); border-radius: 12px; font-size: 12.5px; font-weight: 600; }
.s-note svg { width: 18px; height: 18px; flex-shrink: 0; }
.s-note.good { background: var(--color-good-soft); color: var(--color-good); }
.s-list { display: grid; background: var(--color-surface); border-radius: 14px; box-shadow: var(--shadow-card); }
.s-list > .s-row { padding: var(--space-sm); border-top: 1px solid var(--color-rule-soft); }
.s-list > .s-row:first-child { border-top: 0; }
.s-list > .s-row.picked { box-shadow: inset 0 0 0 2px var(--color-accent); border-radius: 12px; }
.s-body-center { align-content: center; gap: var(--space-md); padding-bottom: var(--space-xl); }
.s-rings { justify-self: center; width: 120px; height: 120px; margin: var(--space-xl) 0; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface); box-shadow: var(--shadow-rings); color: var(--color-ink); }
.s-rings svg { width: 56px; height: 56px; }
.s-center { text-align: center; display: grid; gap: var(--space-sm); justify-items: center; }
.s-center .s-title { font-size: 20px; }
.s-center p { font-size: 13px; color: var(--color-muted); max-width: 30ch; }
.s-done { justify-self: center; width: 76px; height: 76px; margin-top: var(--space-lg); border-radius: 50%; display: grid; place-items: center; background: var(--color-good-soft); color: var(--color-good); }
.s-done svg { width: 38px; height: 38px; }

/* Demo states. The markup ships in the finished state so it reads without scripting. */
/* Each element names its own display in --show; the state rules only decide whether it applies. */
.handover [data-show] { display: none; }
.handover[data-state="idle"] [data-show~="idle"],
.handover[data-state="sent"] [data-show~="sent"],
.handover[data-state="done"] [data-show~="done"] { display: var(--show, block); }
.chip { --show: inline-flex; }
.s-btn, .s-row, .s-note { --show: flex; }
.s-body, .s-empty, .s-card, .s-trail li { --show: grid; }
.handover-caption span, .handover-reset { --show: inline; }
.handover .enter { animation: rise var(--dur-long) var(--ease-out) both; }
.handover-reset { background: none; border: 0; padding: 0; min-height: 44px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* No hero entrance: the page arrives composed (modern-minimal), and nothing waits on an animation clock to be visible. */

/* ---------- Import ---------- */
.import-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.import-copy { grid-column: 1 / span 7; min-width: 0; }
.sheet { margin: 0; background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.sheet figcaption { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--color-rule-soft); font-size: var(--text-sm); font-weight: 600; }
.sheet figcaption svg { width: 18px; height: 18px; color: var(--color-good); }
.sheet-scroll { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.sheet th, .sheet td { text-align: left; padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--color-rule-soft); white-space: nowrap; }
.sheet th { font-weight: 600; color: var(--color-muted); background: var(--color-paper-2); }
.sheet td.n, .sheet th.n { color: var(--color-muted); width: 1%; padding-right: 0; font-variant-numeric: tabular-nums; }
.sheet tr:last-child td { border-bottom: 0; }
.import-arrow { display: none; }
.import-screen { grid-column: 9 / span 4; justify-self: end; }
@media (max-width: 64rem) {
  .import-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .import-copy, .import-screen { grid-column: 1; }
  .import-screen { justify-self: start; }
}

/* ---------- The sticker (change of paper) ---------- */
.field { position: relative; isolation: isolate; background: var(--color-field); color: var(--color-field-ink); margin-top: var(--section-gap); padding-block: var(--section-gap-s); }
/* The tool store opens the band: Gemini photo, faded into the field colour below and darkened behind the heading. */
.field::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: -1; height: clamp(420px, 52vw, 760px);
  background: var(--gradient-field-fade), var(--gradient-field-left), url("/img/tool-wall.webp") 70% 40% / cover no-repeat;
}
.field .section-head { min-height: clamp(220px, 24vw, 360px); align-content: center; }
@media (max-width: 48rem) {
  .field::before { background: var(--gradient-field-fade), var(--gradient-field-left), url("/img/tool-wall-sm.webp") 72% 40% / cover no-repeat; height: 520px; }
}
.field .section-head p { color: var(--color-field-muted); }
.field :focus-visible { outline-color: var(--color-accent); }
.sticker-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.sticker-figure { grid-column: 1 / span 6; margin: 0; }
.sticker-figure img { width: 100%; height: auto; border-radius: var(--radius-card); }
.layers { grid-column: 7 / span 6; list-style: none; counter-reset: layer; display: grid; }
.layers li { counter-increment: layer; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); padding: var(--space-sm) 0; border-top: 1px solid var(--color-field-rule); }
.layers li:first-child { border-top: 0; }
.layers li::before { content: counter(layer); grid-row: span 2; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-accent); line-height: 1.2; font-variant-numeric: tabular-nums; }
.layers b { font-weight: 600; }
.layers span { color: var(--color-field-muted); font-size: var(--text-sm); }
.sticker-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding-top: var(--space-xl); border-top: 1px solid var(--color-field-rule); }
.sticker-facts div { display: grid; gap: var(--space-xs); }
.sticker-facts dt { font-family: var(--font-display); font-weight: 700; font-size: var(--text-title); letter-spacing: -0.01em; }
.sticker-facts dd { margin: 0; color: var(--color-field-muted); max-width: 44ch; }
@media (max-width: 64rem) {
  .sticker-grid { grid-template-columns: minmax(0, 1fr); }
  .sticker-figure, .layers { grid-column: 1; }
  .sticker-facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Pairing: three screens in order ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: var(--space-lg); justify-items: start; align-content: start; }
.steps .phone { max-width: 288px; }
.steps h3 { display: flex; gap: var(--space-sm); align-items: baseline; font-size: var(--text-title); line-height: 1.2; }
.steps h3::before { content: counter(step); color: var(--color-accent-deep); font-variant-numeric: tabular-nums; }
.steps p { color: var(--color-ink-2); max-width: 30ch; margin-top: calc(var(--space-sm) * -1); }
@media (max-width: 64rem) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .steps li { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; column-gap: var(--gap-columns); }
  .steps .phone { grid-row: span 2; }
  .steps p { margin-top: 0; }
}
@media (max-width: 40rem) {
  .steps { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(82%, 300px); gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: var(--space-md); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .steps li { grid-template-columns: minmax(0, 1fr); scroll-snap-align: start; }
  .steps .phone { grid-row: auto; }
  .sheet .opt { display: none; }
}

/* Pairing opens with the drill itself, the sticker on its flank. */
.pair-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; margin-bottom: var(--space-2xl); }
.pair-head .section-head { grid-column: 1 / span 5; margin-bottom: 0; }
.shot { grid-column: 7 / span 6; margin: 0; background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.shot img { width: 100%; height: auto; }
@media (max-width: 64rem) { .pair-head { grid-template-columns: minmax(0, 1fr); } .pair-head .section-head, .shot { grid-column: 1; } }

/* ---------- The record ---------- */
.record { background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-xs) var(--space-xl) var(--space-lg); }
.record-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); padding: var(--space-lg) 0 var(--space-md); }
.record-head .s-glyph { width: 48px; height: 48px; }
.record-head b { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: -0.01em; }
.record-head span { color: var(--color-muted); font-size: var(--text-sm); }
.record table { width: 100%; border-collapse: collapse; }
.record th, .record td { text-align: left; padding: var(--space-md) var(--space-md) var(--space-md) 0; border-top: 1px solid var(--color-rule-soft); vertical-align: middle; }
.record th { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); white-space: nowrap; }
.record td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--color-ink-2); width: 8.5rem; }
.record td:last-child { padding-right: 0; }
.record .person { display: inline-flex; align-items: center; gap: var(--space-sm); font-weight: 600; white-space: nowrap; }
.record .person .s-av { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
@media (max-width: 48rem) {
  .record { padding-inline: var(--space-md); }
  .record thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .record tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); padding: var(--space-md) 0; border-top: 1px solid var(--color-rule-soft); }
  .record td { display: block; padding: 0; border: 0; width: auto !important; }
  .record td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .record td:nth-child(3) { grid-row: 1; grid-column: 2; }
}

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.role-tabs { grid-column: 1 / span 5; display: grid; gap: var(--space-xs); }
.role-tab { display: grid; gap: var(--space-2xs); text-align: left; padding: var(--space-lg); border-radius: var(--radius-card); border: 1px solid var(--color-rule); background: transparent; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.role-tab b { font-family: var(--font-display); font-size: var(--text-title); font-weight: 700; letter-spacing: -0.01em; }
.role-tab span { color: var(--color-ink-2); }
.role-tab:hover { border-color: var(--color-faint); }
.role-tab[aria-selected="true"] { background: var(--color-surface); border-color: var(--color-surface); box-shadow: var(--shadow-card); }
.role-tab[aria-selected="true"] b { color: var(--color-ink); }
.role-tab[aria-selected="false"] b, .role-tab[aria-selected="false"] span { color: var(--color-muted); }
.role-tab:active { background: var(--color-paper-2); }
.role-panels { grid-column: 7 / span 6; display: grid; gap: var(--space-2xl); justify-items: center; }
.role-panel { width: 100%; display: grid; justify-items: center; }

.js .role-panels { gap: 0; }
@media (max-width: 64rem) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .role-tabs, .role-panels { grid-column: 1; }
  .role-panels, .role-panel { justify-items: start; }
}

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.plans .plan { grid-column: span 4; align-self: stretch; }
.plans-wide .plan { grid-column: span 6; }
.plans-aside { grid-column: span 4; display: grid; gap: var(--space-md); align-content: start; padding-top: var(--space-xl); color: var(--color-ink-2); }
.plans-aside p { max-width: 36ch; }
.plan { display: grid; grid-template-rows: auto auto 1fr; gap: var(--space-lg); padding: var(--space-xl); background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.plan h3 { font-size: var(--text-xl); letter-spacing: -0.01em; display: flex; align-items: center; gap: var(--space-sm); }
.plan .price { font-family: var(--font-display); font-weight: 700; font-size: var(--text-price); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--font-body); font-weight: 400; font-size: var(--text-md); letter-spacing: 0; color: var(--color-muted); }
.plan .for { color: var(--color-ink-2); margin-top: var(--space-xs); }
.plan ul { list-style: none; display: grid; align-content: start; border-top: 1px solid var(--color-rule-soft); }
.plan li { display: flex; gap: var(--space-sm); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-rule-soft); }
.plan li svg { width: 18px; height: 18px; margin-top: var(--space-2xs); flex-shrink: 0; color: var(--color-good); }
.plans-note { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
@media (max-width: 64rem) { .plans .plan { grid-column: span 6; } .plans-aside { grid-column: 1 / -1; padding-top: 0; } }
@media (max-width: 48rem) { .plans { grid-template-columns: minmax(0, 1fr); } .plans .plan, .plans-aside { grid-column: 1; } .plan { padding: var(--space-lg); } }

/* ---------- Questions ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.faq-grid .section-head { grid-column: 1 / span 4; margin-bottom: 0; align-content: start; }
.faq { grid-column: 6 / span 7; border-top: 1px solid var(--color-rule); }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); min-height: 64px; padding: var(--space-md) 0; cursor: pointer; font-weight: 600; font-size: var(--text-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--dur-short) var(--ease-in-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-ink-2); }
.faq details p { padding: 0 0 var(--space-lg); color: var(--color-ink-2); max-width: 60ch; }
@media (max-width: 64rem) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq-grid .section-head, .faq { grid-column: 1; } .faq-grid .section-head { margin-bottom: var(--space-lg); } }

/* ---------- Book a demo ---------- */
.demo { margin-top: var(--section-gap); padding-bottom: var(--section-gap-s); background: var(--color-surface); }
/* The handover photo, full bleed, darkened only on the left where the heading sits. */
.demo-band {
  position: relative; display: grid; align-items: center; min-height: clamp(420px, 42vw, 620px); margin-bottom: var(--space-3xl);
  background: var(--color-field) url("/img/handover.webp") 62% center / cover no-repeat; color: var(--color-field-ink);
}
.demo-band::before { content: ""; position: absolute; inset: 0; background: var(--gradient-photo-left); }
.demo-band .container { position: relative; }
.demo-band .section-head { margin-bottom: 0; max-width: 30rem; }
.demo-band .section-head p { color: var(--color-field-ink); }
.demo:not(:has(.demo-band)) { padding-top: var(--section-gap-s); }
.demo-grid > .section-head { grid-column: 1 / span 5; margin-bottom: 0; }
.demo-next { grid-column: 1 / span 5; display: grid; gap: var(--space-md); align-content: start; font-size: var(--text-lead); color: var(--color-ink-2); }
.demo-next p { max-width: 34ch; }
.demo-next h3 { font-size: var(--text-xl); color: var(--color-ink); letter-spacing: -0.01em; }
@media (max-width: 48rem) {
  .demo-band { background-image: url("/img/handover-sm.webp"); background-position: 68% center; align-items: end; padding-block: var(--space-3xl) var(--space-xl); }
  .demo-band::before { background: var(--gradient-photo-bottom); }
}
.demo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }

.demo-form { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); }
.field-row { display: grid; gap: var(--space-xs); align-content: start; }
.field-row.wide { grid-column: 1 / -1; }
.field-row label { font-size: var(--text-sm); font-weight: 600; }
.field-row label small { font-weight: 400; color: var(--color-muted); font-size: var(--text-sm); }
.input { width: 100%; min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-control); background: var(--color-paper-2); font-size: 1rem; transition: background-color var(--dur-micro) var(--ease-out); }
.select-wrap { position: relative; display: block; }
.select-wrap svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; color: var(--color-ink-2); }
select.input { appearance: none; padding-right: var(--space-2xl); }
.input:hover { background-color: var(--color-surface); }
.input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; background-color: var(--color-surface); }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--color-error); }
.field-help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-error); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }
.form-privacy { flex-basis: 100%; font-size: var(--text-sm); color: var(--color-muted); }
.form-status { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 44ch; }
.form-status.is-error { color: var(--color-error); }
.form-status.is-ok { color: var(--color-good); font-weight: 600; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 64rem) { .demo-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } .demo-next, .demo-form { grid-column: 1; } }
@media (max-width: 40rem) { .demo-form { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); } .field-help:empty { min-height: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--color-field); color: var(--color-field-ink); padding-block: var(--space-3xl) var(--space-xl); }
.footer :focus-visible { outline-color: var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.footer .wordmark { grid-column: 1 / span 6; font-size: clamp(1.5rem, 2vw + 0.75rem, 2.25rem); }
.footer .mark { width: 44px; height: 44px; border-radius: 12px; }
.footer .mark svg { width: 34px; height: 34px; }
.footer-links { grid-column: 7 / span 6; justify-self: end; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); list-style: none; }
.footer-links a { color: var(--color-field-ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-small { grid-column: 1 / -1; margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-field-rule); color: var(--color-field-muted); font-size: var(--text-sm); }
@media (max-width: 48rem) { .footer .wordmark, .footer-links { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Pricing page and legal pages ---------- */
.page-head { padding-block: var(--space-3xl) var(--space-2xl); display: grid; gap: var(--space-md); }
.page-head h1 { font-size: var(--text-display); line-height: 1; max-width: 16ch; }
.page-head p { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 46ch; }
.seat-table { width: 100%; max-width: 64rem; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.seat-table caption { font-variant-numeric: tabular-nums; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: var(--text-title); padding-bottom: var(--space-md); letter-spacing: -0.01em; }
.seat-table th, .seat-table td { text-align: left; padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--color-rule-soft); }
.seat-table thead th { border-top: 0; font-size: var(--text-sm); color: var(--color-muted); font-weight: 600; background: var(--color-paper-2); white-space: nowrap; }
.seat-table td.num, .seat-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.seat-table tbody th { font-weight: 600; }

.topbar { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-h); padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto; background: var(--color-paper); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--color-accent) url("/favicon.svg") center / cover no-repeat; flex-shrink: 0; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: var(--space-lg); }
.topnav a { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.topnav a:hover { color: var(--color-ink); }
.topnav .cta-sm { color: var(--color-ink); }
.legal { padding-block: var(--space-2xl) var(--section-gap-s); }
.legal-inner { max-width: 46rem; margin-inline: auto; padding-inline: var(--gutter); }
.legal .kicker { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.legal h1 { font-size: var(--text-section); line-height: 1.05; margin-top: var(--space-xs); }
.legal-meta { margin-top: var(--space-md); color: var(--color-ink-2); }
.legal-intro { margin-top: var(--space-lg); font-size: var(--text-lead); color: var(--color-ink-2); }
.legal-callout { margin-top: var(--space-xl); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.legal-content { margin-top: var(--space-2xl); line-height: 1.7; }
.legal-content h2 { font-size: var(--text-xl); letter-spacing: -0.01em; margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.legal-content h3 { font-family: var(--font-body); font-size: var(--text-md); font-weight: 600; letter-spacing: 0; margin-top: var(--space-lg); margin-bottom: var(--space-xs); }
.legal-content p, .legal-content li { color: var(--color-ink-2); max-width: 68ch; }
.legal-content p + p { margin-top: var(--space-sm); }
.legal-content ul, .legal-content ol { padding-left: var(--space-lg); display: grid; gap: var(--space-xs); margin-block: var(--space-sm); }
.legal a, .legal-callout a { font-weight: 600; }
.foot { max-width: var(--container); margin-inline: auto; padding: var(--space-xl) var(--gutter); border-top: 1px solid var(--color-rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); }
.foot-brand { font-family: var(--font-display); font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.foot-links a { color: var(--color-ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--color-ink); text-decoration: underline; }
@media (max-width: 40rem) { .topnav { gap: var(--space-md); } .topnav a:not(.cta-sm) { display: none; } }

/* ---------- Print: the legal pages and pricing print clean on A4 ---------- */
@media print {
  @page { size: A4; margin: 16mm; }
  html, body { background: var(--color-surface); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nav, .topbar, .skip, .hero-demo, .demo, .footer { display: none; }
  .legal-content h2, .legal-content h3 { break-after: avoid; }
  .legal-content p, .plan, .seat-table tr, .record tr { break-inside: avoid; }
}

/* ---------- Reduced motion: every motion has an end state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .spinner.keep-motion { animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
}
