/* Public home page (templates/pages/). Same tokens and feel as app.css ("Pipeline Board"): Instrument Sans,
   JetBrains Mono for numbers, #F2F4F7 ground, white cards, blue accent. Plain CSS, no build step, light only. */

/* The two typefaces, served from static/fonts/ (SIL Open Font License 1.1, see its README.txt): no request to Google.
   One variable-font file per subset holds every weight. Instrument Sans: one face for 400 to 700. JetBrains Mono:
   faces at 500 and 700 only, as Google's stylesheet declared them, so a 600 still renders as 700 and a 400 as 500. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin.fa41c43a3d8e.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.1ff13d113ba4.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.b636a65da4f0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.b636a65da4f0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.bd4781a31b42.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.bd4781a31b42.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* While Instrument Sans loads, text shows in Arial (or Helvetica / Liberation Sans, same widths) scaled to Instrument
   Sans' width, so the headline keeps its line breaks when the font arrives (no layout shift). Measured in Chrome. */
@font-face { font-family: "Instrument Sans Fallback"; font-weight: 400 500; size-adjust: 101%;
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"); }
@font-face { font-family: "Instrument Sans Fallback"; font-weight: 600 700; size-adjust: 96.7%;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"),
       local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"); }
:root {
  --bg: #F2F4F7; --surface: #FFFFFF; --surface-2: #F9FAFB; --line: #E4E7EC; --line-2: #D0D5DD;
  --ink: #101828; --text-2: #344054; --muted: #475467;
  --accent: #1D4ED8; --accent-ink: #1E3A8A; --accent-bg: #EEF2FF; --accent-line: #C7D7FE;
  --field-line: #858FA1;  /* form field borders: 3:1 against white (WCAG 1.4.11) */
  --ok: #067647; --ok-bg: #ECFDF3; --warn: #B93815; --warn-bg: #FFF4ED;
  --danger: #B42318; --danger-bg: #FEF3F2;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06);
  --lift: 0 1px 2px rgba(16,24,40,.06), 0 18px 40px -18px rgba(16,24,40,.24);
  --header-h: 64px; --gutter: 20px;
  --font: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); }
p { margin: 0; }
b { font-weight: 600; color: var(--ink); }
.mono { font-family: var(--mono); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }
/* Anchor jumps and keyboard focus both stop below the sticky header (scroll-padding covers focused elements too). */
html { scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 860px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip-link { position: absolute; left: 16px; top: 10px; z-index: 40; padding: 10px 14px; border-radius: 8px;
  background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: var(--lift); }
.skip-link:not(:focus) { transform: translateY(-300%); box-shadow: none; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.big { min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 16px; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px;
  text-decoration: none; white-space: nowrap; }
.site-brand:hover { color: var(--ink); }
.ring { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent); flex-shrink: 0; }
.site-menu { flex: 1; display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; gap: 2px; margin-inline: auto; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-actions { display: flex; gap: 10px; }
.site-actions .btn { min-height: 40px; }
.menu-toggle { display: none; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--text-2);
  font: 600 15px var(--font); cursor: pointer; }
.menu-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 1023px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 12px; padding: 8px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgba(16,24,40,.25); }
  .js .site-menu.open { display: flex; }
  .js .site-nav { flex-direction: column; margin: 0; }
  .js .site-nav a { display: flex; align-items: center; min-height: 48px; font-size: 17px; border-bottom: 1px solid var(--surface-2); }
  .js .site-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .js .site-actions .btn { min-height: 48px; }
  /* Without JavaScript the links stay on screen, in a row that scrolls sideways. The taller header does not stick,
     so it never covers a section after a jump. */
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-bar { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
  html:not(.js) .site-menu { flex-basis: 100%; flex-wrap: wrap; gap: 8px; min-width: 0; }
  html:not(.js) .site-nav { overflow-x: auto; margin: 0; flex-basis: 100%; }
  html:not(.js) .site-nav a { white-space: nowrap; flex-shrink: 0; }
}

/* ---------- sections */
.band { padding-block: 64px; }
.band.white { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .band { padding-block: 96px; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.12; }
.section-head p:not(.eyebrow) { margin-top: 14px; font-size: 18px; color: var(--muted); }
.section-head .eyebrow + h2 { margin-top: 10px; }
.eyebrow { font: 700 12.5px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.fine { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.center { text-align: center; margin-inline: auto; max-width: 720px; }
.sub-head { font-size: clamp(22px, 2.6vw, 26px); letter-spacing: -0.01em; margin: 64px 0 20px; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }

/* ---------- screenshot frames */
.shot { margin: 0; }
.shot figcaption, .hero-media figcaption, .diagram-figure figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.frame-browser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--lift); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
.browser-bar span { margin-left: 10px; padding: 1px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  font: 500 11.5px/1.5 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.frame-browser img { width: 100%; }
.frame-phone { background: #101828; padding: 2.2%; border-radius: 13% / 6.2%; box-shadow: 0 2px 6px rgba(16,24,40,.12), 0 28px 48px -24px rgba(16,24,40,.45); }
.frame-phone img { width: 100%; border-radius: 11% / 5.2%; }
.phone-shot { width: min(100%, 280px); margin-inline: auto; }
.phone-shot figcaption { text-align: center; }
@media (max-width: 479px) {
  .browser-bar { height: 22px; gap: 4px; padding: 0 8px; }
  .browser-bar i { width: 6px; height: 6px; }
  .browser-bar span { font-size: 9.5px; margin-left: 6px; padding: 0 6px; }
}

/* ---------- hero */
.hero { padding-block: 48px 64px; overflow: hidden; }
.hero-copy { max-width: 900px; }
.hero h1 { margin-top: 14px; font-size: clamp(36px, 5.6vw, 62px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.lead { margin-top: 20px; max-width: 620px; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.hero-media { margin: 48px 0 0; }
.hero-stage { position: relative; padding: 0 14% 11% 0; }
.hero-board img { aspect-ratio: 1600 / 1010; object-fit: cover; object-position: top; }
.hero-phone { position: absolute; right: 0; bottom: 0; width: 25%; }
@media (min-width: 900px) { .hero { padding-block: 72px 96px; } .hero-media { margin-top: 64px; } }
@media (max-width: 639px) {
  .hero-stage { padding: 0 18% 22% 0; }
  .hero-phone { width: 36%; }
  .hero-actions .btn { flex: 1 1 160px; }
}

/* ---------- before and after */
.compare { display: grid; gap: 20px; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; gap: 24px; } }
.compare-card { border-radius: 16px; padding: 28px; border: 1px solid var(--line); }
.compare-card h3 { font-size: 20px; margin-bottom: 8px; }
.compare-card.old { background: var(--surface-2); }
.compare-card.old h3 { color: var(--muted); }
.compare-card.new { background: var(--surface); border-color: var(--accent-line); box-shadow: var(--lift); }
.compare-card.new h3 { color: var(--accent); }
.marks { list-style: none; margin: 0; padding: 0; }
.marks li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.marks li:first-child { border-top: 0; }
.marks strong { color: var(--ink); font-weight: 600; }
.icon.x { color: #98A2B3; stroke-width: 2.2; margin-top: 1px; }
.icon.ok { color: var(--ok); stroke-width: 2.4; margin-top: 1px; }

/* ---------- diagrams */
.diagram-figure { margin: 0 0 8px; }
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram.tall { display: none; max-width: 400px; margin-inline: auto; }
@media (max-width: 1079px) { .diagram.wide { display: none; } .diagram.tall { display: block; } .diagram-figure figcaption { text-align: center; max-width: 520px; margin-inline: auto; } }
.diagram .node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.diagram .node.app rect { fill: var(--accent-bg); stroke: #A4BCFD; }
.diagram .t { font: 600 16px var(--font); fill: var(--ink); }
.diagram .s { font: 500 13px var(--font); fill: var(--muted); }
.diagram .s.end { text-anchor: end; }
.diagram .arrow { fill: none; stroke: #98A2B3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.band:not(.white) .diagram .node rect { filter: drop-shadow(0 1px 1px rgba(16,24,40,.05)); }

/* ---------- how it works */
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 64px; }
.step { display: grid; gap: 28px; align-items: center; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent); font: 700 16px var(--mono); margin-bottom: 16px; }
.step h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.015em; }
.step-copy > p { margin-top: 12px; font-size: 17px; color: var(--text-2); max-width: 520px; }
.step-copy > p.fine { font-size: 14.5px; color: var(--muted); }
@media (min-width: 900px) {
  .steps { gap: 96px; }
  .step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  .step:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .step:nth-child(even) .step-copy { order: 2; }
  .step .phone-shot { width: 280px; }
  .step:has(> .phone-shot) { grid-template-columns: 1fr 1fr; }
}
.pair-stage { position: relative; padding: 0 6% 15% 0; }
.pair-stage .sticker { position: absolute; right: 0; bottom: 0; width: 48%; padding: 2.5%; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 4px rgba(16,24,40,.08), 0 20px 36px -18px rgba(16,24,40,.4); }
.frame-zoom { position: relative; overflow: hidden; aspect-ratio: 780 / 504; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--line); box-shadow: var(--lift); }
.frame-zoom img { position: absolute; top: 0; left: 0; width: 205.13%; max-width: none; transform: translate(-50%, -22.63%); }  /* starts at the column tops (y 262 of 1158) */

/* ---------- features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.feature .icon, .need .icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); }
.feature h3 { margin-top: 18px; font-size: 17px; line-height: 1.3; }
.feature p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.feature-shot { max-width: 980px; margin: 56px auto 20px; }

/* ---------- Tesla */
.tesla-top { display: grid; gap: 40px; }
@media (min-width: 1024px) { .tesla-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; } }
.tesla-copy h3 { font-size: 20px; margin: 32px 0 14px; }
.tesla-copy h3:first-child { margin-top: 0; }
.see-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.see-list li { position: relative; padding-left: 18px; color: var(--text-2); }
.see-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: #12B76A; }
.commands { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 480px) { .commands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.commands li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--text-2); }
.commands .icon { width: 20px; height: 20px; color: var(--accent); }
.tag-pin { margin-left: auto; padding: 1px 6px; border-radius: 5px; background: var(--accent-bg); color: var(--accent);
  font: 700 10.5px/1.6 var(--mono); font-style: normal; letter-spacing: .04em; }
.callout { margin-top: 24px; padding: 20px 22px; border-radius: var(--radius); background: var(--accent-bg); border: 1px solid var(--accent-line); }
.callout h4 { font-size: 16px; color: var(--accent-ink); }
.callout p { margin-top: 6px; color: var(--text-2); }
.tesla-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; max-width: 560px; width: 100%; margin-inline: auto; }
.tesla-phones .phone-shot { width: 100%; }
.tesla-phones .phone-shot:last-child { margin-top: 48px; }
@media (min-width: 1024px) { .tesla-phones { gap: 24px; } }
.rule-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .rule-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .rule-grid { grid-template-columns: repeat(3, 1fr); } }
.rule { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rule h4 { font-size: 16.5px; line-height: 1.3; }
.rule p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.tesla .diagram-figure, #tesla .diagram-figure { margin-top: 64px; }
.needed { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .needed { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; } }
.needed-list { margin: 0; padding: 0; list-style: none; counter-reset: need; display: grid; gap: 18px; }
.needed-list li { position: relative; padding-left: 46px; color: var(--text-2); counter-increment: need; }
.needed-list li::before { content: counter(need); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--accent-bg); color: var(--accent); font: 700 14px var(--mono); }
.needed-list strong { display: block; color: var(--ink); font-weight: 600; }
.checklist-shot { margin-top: 48px; }
.checklist-shot .scroll { position: relative; overflow-x: auto; }
.checklist-shot .scroll:focus-visible { outline-offset: -3px; }  /* the frame around it clips anything outside */
.scroll-hint { display: none; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 719px) { .checklist-shot .scroll img { min-width: 720px; } .scroll-hint { display: block; } }

/* ---------- roles table */
.table-scroll { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.roles { width: 100%; min-width: 800px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
table.roles caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.roles th, table.roles td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
table.roles tbody tr:last-child > * { border-bottom: 0; }
table.roles thead th { background: var(--surface-2); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; }
table.roles th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink); width: 34%; min-width: 220px; }
table.roles th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left;
  box-shadow: inset -1px 0 0 var(--line); }
table.roles thead th:first-child { background: var(--surface-2); }
table.roles .addon { background: #F5F8FF; }
table.roles thead .addon { background: var(--accent-bg); color: var(--accent); }
.yes { width: 20px; height: 20px; margin: 0 auto; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.no { display: block; width: 10px; height: 2px; margin: 0 auto; background: var(--line-2); border-radius: 1px; }
.part { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); font-size: 12.5px; font-weight: 600; }
.table-hint { display: none; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 639px) {
  table.roles { min-width: 680px; font-size: 14px; }
  table.roles th[scope="row"] { min-width: 150px; width: 150px; }
  table.roles th, table.roles td { padding: 10px; }
}
@media (max-width: 859px) {
  .table-hint { display: block; }
  /* On phones the table scrolls inside its own box, so the role names stay on top of every row. */
  .table-scroll { overflow: auto; max-height: calc(100vh - var(--header-h) - 24px); max-height: calc(100svh - var(--header-h) - 24px); }
  table.roles thead th { position: sticky; top: 0; z-index: 2; }
  table.roles thead th:first-child { z-index: 3; }
}
#roles .fine { margin-top: 16px; }

/* ---------- quick start */
.quick-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.quick-card { padding: 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.quick-card h3 { font-size: 20px; }
.quick-card ol { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: quick; display: grid; gap: 14px; }
.quick-card li { position: relative; padding-left: 38px; color: var(--text-2); font-size: 15.5px; counter-increment: quick; }
.quick-card li::before { content: counter(quick); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--text-2); font: 700 12.5px var(--mono); }
#quick-start .fine.center { margin-top: 28px; }

/* ---------- security */
.sec-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 640px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }
.sec-grid li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.sec-grid .icon { color: var(--accent); margin-top: 1px; }
.sec-grid h3 { font-size: 16.5px; line-height: 1.35; }
.sec-grid p { margin-top: 6px; font-size: 15px; color: var(--text-2); }

/* ---------- what you need */
.need-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .need-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .need-grid { grid-template-columns: repeat(3, 1fr); } }
.need { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.need h3 { margin-top: 18px; font-size: 17px; }
.need p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.need p.fine { font-size: 14px; color: var(--muted); }
.sizes { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--text-2); display: grid; gap: 4px; }

/* ---------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.faq summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover h3 { color: var(--accent); }
.faq details p { padding: 0 2px 22px; max-width: 68ch; color: var(--text-2); }
@media (prefers-reduced-motion: no-preference) { .faq summary::after { transition: transform .2s ease; } }

/* ---------- request a demo */
.demo-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.demo-copy h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.demo-copy > p:not(.eyebrow) { margin-top: 14px; font-size: 18px; color: var(--muted); }
.contact { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.contact li { display: flex; gap: 16px; align-items: baseline; font-size: 16px; }
.contact span { width: 56px; flex-shrink: 0; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.demo-card { padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--lift); }
@media (max-width: 479px) { .demo-card { padding: 20px; } }
.demo-form { display: grid; gap: 16px; }
@media (min-width: 640px) { .demo-form { grid-template-columns: 1fr 1fr; } }
.demo-form .form-error, .demo-form .field:has(textarea), .demo-form > button { grid-column: 1 / -1; }
.demo-form > button { justify-self: start; min-width: 200px; }
@media (max-width: 639px) { .demo-form > button { justify-self: stretch; } }
.demo-form .form-note { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 400 16px/1.4 var(--font); }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; font-weight: 500; }
.form-error { padding: 12px 14px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); font-size: 15px; font-weight: 500; }
.demo-thanks h3 { font-size: 22px; color: var(--ok); }
.demo-thanks p { margin-top: 8px; color: var(--text-2); }

/* Honeypot for the demo form: off screen and out of the tab order, never display:none (some bots skip those). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 32px; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-2); }
.copyright { margin-left: auto; color: var(--muted); font-size: 14px; }
@media (max-width: 639px) { .footer-bar { flex-direction: column; align-items: flex-start; } .copyright { margin-left: 0; } }
@media (max-width: 639px) { .footer-links { gap: 0 24px; } .footer-links a { display: inline-flex; align-items: center; min-height: 44px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- print: no menu or buttons, the whole roles table, every FAQ answer (landing.js opens them) */
@media print {
  .site-header, html:not(.js) .site-header { position: static; }
  .menu-toggle, .js .menu-toggle, .site-menu, .js .site-menu, .hero-actions, .table-hint, .scroll-hint, .demo-card { display: none; }
  .table-scroll { overflow: visible; max-height: none; }
  table.roles { min-width: 0; font-size: 12px; }
  table.roles thead th { position: static; white-space: normal; letter-spacing: 0; font-size: 10px; }
  table.roles th, table.roles td { padding: 6px; }
  table.roles th[scope="row"] { min-width: 0; width: 30%; }
  table.roles th:first-child { position: static; }
  .no { -webkit-print-color-adjust: exact; print-color-adjust: exact; }  /* the "no" dash is a background */
  .checklist-shot .scroll { overflow: visible; }
  .checklist-shot .scroll img { min-width: 0; }
}
