/* ==========================================================================
   tranvoro.com — marketing site stylesheet.

   Tokens are lifted verbatim from the product so the site and the app read as
   one company:
     · raw HSL triplets   app/src/client/Main.css  (:root, light theme)
     · semantic aliases   app/src/tms/theme/tms.css
     · component language .tms-panel / .tms-table / .tms-btn / .tms-pill …

   Single theme (light). The app has a dark mode; the marketing site does not —
   see marketing/BUILD_SPEC.md §2.2.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font — Inter, self-hosted, variable (one file covers 400–700).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --surface-page: #fcfcfd;      /* 220 15% 99% */
  --surface-card: #ffffff;      /* 0 0% 100%  */
  --surface-accent: #e9f2fb;    /* 210 71% 95% */
  --surface-subtle: #eef2f6;    /* 213 30% 95% */

  /* Text */
  --text-body: #1d263a;         /* 220 34% 17% */
  --text-subtle: #445169;       /* 220 21% 34% */
  --text-muted: #616875;        /* 219 9% 42%  — 4.98:1 on --surface-subtle */
  --text-on-primary: #ffffff;

  /* Brand */
  --brand-primary: #206ac5;     /* 213 72% 45% */
  --brand-primary-hover: #1d5faf;
  --brand-accent: #5a9be0;

  /* Lines & focus */
  --line: #e6e8ea;              /* 220 7% 91% */
  --line-strong: #d3d8de;
  --focus-ring: #206ac5;

  /* Status */
  --status-success: #2fb145;
  --status-danger: #d63838;

  /* Accessible variants for status text (the product's own green/amber do not
     reach 4.5:1 on white; the tints and dots keep the product values). */
  --ink-green: #15733a;
  --ink-amber: #8f5600;
  --ink-red: #c22f2f;
  --tint-green: rgba(47, 177, 69, 0.1);
  --tint-amber: rgba(245, 159, 0, 0.12);
  --tint-red: rgba(214, 56, 56, 0.1);
  --tint-blue: rgba(32, 106, 197, 0.1);

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Geometry / elevation (product values) */
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 12px;
  --shadow-lg: 0 8px 13px -3px rgba(0, 0, 0, 0.07), 0 3px 15px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);

  /* Layout */
  --page: 1120px;
  --page-wide: 1240px;
  --gutter: 24px;
}

@media (max-width: 479px) { :root { --gutter: 18px; } }
@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* `clip`, not `hidden`: hidden turns the root into a scroll container and
   silently kills position:sticky (the how-it-works rail). */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: none;
  overflow-x: clip;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { max-width: 100%; }
a { color: var(--brand-primary); }
a:hover { color: var(--brand-primary-hover); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--surface-accent); color: var(--text-body); }

/* Utility ---------------------------------------------------------------- */
.u-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 18px;
  background: var(--brand-primary); color: #fff;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  transition: top .15s;
}
.skip:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: var(--page-wide); }

.band { padding: 72px 0; }
.band--page   { background: var(--surface-page); }
.band--card   { background: var(--surface-card); }
.band--subtle { background: var(--surface-subtle); }
.band--accent { background: var(--surface-accent); }
.band--tight  { padding: 48px 0; }

.band + .band--card,
.band + .band--subtle,
.band + .band--page { border-top: 1px solid var(--line); }

@media (min-width: 768px)  { .band { padding: 96px 0; } .band--tight { padding: 56px 0; } }
@media (min-width: 1024px) { .band { padding: 112px 0; } }

/* Section head ----------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--brand-primary);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; flex: 0 0 auto;
  align-self: flex-start; margin-top: 0.62em;
  background: var(--brand-primary); border-radius: 2px;
}

h1, .h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
}
h2, .h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
}
h3, .h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6; color: var(--text-subtle);
}
.measure { max-width: 62ch; }
.measure-narrow { max-width: 52ch; }
.small { font-size: 0.875rem; line-height: 1.55; color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* Grid and flex children default to min-width:auto, which lets wide content
   (a dense product table) widen its track and push the page sideways. */
.hero__grid > *, .spine > *, .pilot__grid > *, .ea__grid > *,
.cmp > *, .caps > *, .cap-shots > *, .shotpair > *, .probs > *, .limits > *,
.facts > *, .foot__grid > * { min-width: 0; }
.shot, .shot__frame, .ui, .ui-main, .ui-body, .ui-panel, .ui-tblwrap { min-width: 0; max-width: 100%; }

.sec-head { max-width: 68ch; }
.sec-head .lead { margin-top: 18px; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-lg);
  font-family: inherit; font-size: 0.9375rem; font-weight: 600;
  line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--brand-primary); color: var(--text-on-primary); }
.btn--primary:hover { background: var(--brand-primary-hover); color: #fff; }
.btn--outline { background: var(--surface-card); border-color: var(--line-strong); color: var(--text-body); }
.btn--outline:hover { background: var(--surface-accent); border-color: var(--brand-primary); color: var(--brand-primary); }
.btn--ghost { background: transparent; color: var(--text-subtle); }
.btn--ghost:hover { background: var(--surface-accent); color: var(--brand-primary); }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 0.875rem; }
.btn--lg { min-height: 50px; padding: 0 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.btn__arrow { transition: transform .2s; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover .btn__arrow { transform: translateX(2px); }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--centered { justify-content: center; margin-top: 32px; }
.cta-row--spaced { margin-top: 32px; }
.cta-row--compact { margin-top: 28px; }

/* --------------------------------------------------------------------------
   6. Header / nav
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.site-head.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.6) blur(8px);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom-color: var(--line);
}
.site-head__inner {
  display: flex; align-items: center; gap: 12px;
  height: 68px;
}
@media (min-width: 640px) { .site-head__inner { gap: 16px; } }
.brand { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; flex: 0 0 auto; text-decoration: none; }
.brand__full { display: block; width: 148px; height: 34px; }
/* The header row carries the lockup, the persistent CTA and the menu button.
   Below 480px the lockup and the button shrink; below 360px there is no longer
   room for a wordmark at all and the mark carries the brand on its own. */
.brand__icon { display: none; width: 32px; height: 32px; border-radius: 8px; }
@media (max-width: 479px) {
  .brand__full { width: 132px; height: 30px; }
  .head__actions .btn { padding: 0 12px; font-size: 0.8125rem; }
}
@media (max-width: 359px) {
  .brand__full { display: none; }
  .brand__icon { display: block; }
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem; font-weight: 500; color: var(--text-subtle);
  text-decoration: none; transition: background-color .15s, color .15s;
}
.nav__link:hover { background: var(--surface-accent); color: var(--brand-primary); }
.head__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.head__signin { display: none; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 auto;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); color: var(--text-body); cursor: pointer;
}
.burger:hover { background: var(--surface-accent); }

@media (min-width: 1024px) {
  .nav { display: block; margin-left: 12px; }
  .head__signin { display: inline-flex; }
  .burger { display: none; }
}

/* Mobile panel ----------------------------------------------------------- */
.mnav {
  position: fixed; inset: 0; z-index: 150;
  display: none; flex-direction: column;
  background: var(--surface-card);
}
.mnav[data-open="true"] { display: flex; }
.mnav__head { display: flex; align-items: center; height: 68px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.mnav__close { margin-left: auto; }
.mnav__body { flex: 1; overflow-y: auto; padding: 12px var(--gutter) 32px; }
.mnav__list { list-style: none; }
.mnav__link {
  display: flex; align-items: center; min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem; font-weight: 500; color: var(--text-body); text-decoration: none;
}
.mnav__link:hover { color: var(--brand-primary); }
.mnav__cta { margin-top: 24px; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { padding: 40px 0 56px; background: var(--surface-page); }
@media (min-width: 768px)  { .hero { padding: 56px 0 72px; } }
@media (min-width: 1024px) { .hero { padding: 72px 0 88px; } }

.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; }
  /* The frame is deliberately wider and taller than its track: it runs off the
     right edge of the viewport and is cropped at the bottom, the way a real
     screenshot of a dense application is. */
  .hero .shot, .hero .shot__frame { max-width: none; }
  .hero .shot__frame { width: 700px; max-height: 520px; }
}
@media (min-width: 1200px) { .hero__grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; }
  .hero .shot__frame { width: 820px; max-height: 560px; } }
@media (min-width: 1440px) { .hero .shot__frame { width: 900px; max-height: 600px; } }
.hero h1 { margin-bottom: 22px; text-wrap: balance; }
.hero__sub { max-width: 54ch; }
.hero .cta-row { margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: 0.8125rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   8. Honest-stage strip
   -------------------------------------------------------------------------- */
.stage { background: var(--surface-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stage__inner { display: flex; align-items: flex-start; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.stage__mark {
  flex: 0 0 auto; margin-top: 3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--tint-blue);
}
.stage p { font-size: 0.9375rem; line-height: 1.6; color: var(--text-subtle); max-width: 92ch; }
.stage a {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-block: -10px; font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. Problem
   -------------------------------------------------------------------------- */
.chainfig { margin: 44px 0 0; }
.chainfig svg { display: block; width: 100%; height: auto; }

.probs { display: grid; gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; list-style: none; }
/* Five cards, so the last one widens rather than leaving a dead cell. */
@media (min-width: 640px) and (max-width: 1023px) {
  .probs { grid-template-columns: repeat(2, 1fr); }
  .prob:nth-child(5) { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .probs { grid-template-columns: repeat(6, 1fr); }
  .prob { grid-column: span 2; }
  .prob:nth-child(4), .prob:nth-child(5) { grid-column: span 3; }
}
.prob { background: var(--surface-card); padding: 26px 24px; }
.prob__n {
  display: block; font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 600; color: var(--brand-primary); margin-bottom: 10px;
}
.prob h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.prob p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

.closer {
  margin-top: 36px; padding-left: 18px;
  border-left: 3px solid var(--brand-primary);
  font-size: 1.0625rem; font-weight: 500; color: var(--text-body); max-width: 60ch;
}

/* --------------------------------------------------------------------------
   10. Spine — how it works
   -------------------------------------------------------------------------- */
.spine { margin-top: 56px; }
@media (min-width: 1024px) {
  .spine { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 64px; align-items: start; }
}

.rail { display: none; }
@media (min-width: 1024px) {
  .rail { display: block; position: sticky; top: 100px; }
  .rail__list { list-style: none; border-left: 1px solid var(--line); }
  .rail__item a {
    display: flex; align-items: baseline; gap: 12px;
    min-height: 44px; padding: 9px 0 9px 18px; margin-left: -1px;
    border-left: 2px solid transparent;
    font-size: 0.9375rem; color: var(--text-muted); text-decoration: none;
    transition: color .15s, border-color .15s;
  }
  .rail__item a:hover { color: var(--text-body); }
  .rail__item.is-active a { color: var(--brand-primary); border-left-color: var(--brand-primary); font-weight: 600; }
  .rail__n { font-family: var(--font-mono); font-size: 0.75rem; min-width: 14px; }
}

.steps { list-style: none; display: flex; flex-direction: column; gap: 56px; }
@media (min-width: 768px) { .steps { gap: 80px; } }
.step__tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-primary);
}
.step__tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary);
}
.step h3 { margin-bottom: 12px; max-width: 24ch; }
.step p { color: var(--text-muted); max-width: 66ch; }
.step .shot, .step .shotpair { margin-top: 28px; }

.spine-closer {
  margin-top: 64px; padding: 28px 32px;
  background: var(--surface-accent); border: 1px solid rgba(32, 106, 197, 0.2);
  border-radius: var(--radius-xl);
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem); font-weight: 600;
  letter-spacing: -0.01em; color: var(--text-body); text-align: center;
}

/* --------------------------------------------------------------------------
   11. Capabilities
   -------------------------------------------------------------------------- */
.caps { display: grid; gap: 24px; margin-top: 48px; }
@media (min-width: 640px)  { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .caps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.cap {
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 24px 22px;
}
.cap h3 {
  font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-primary); padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.cap__list { list-style: none; }
.cap__list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cap__list li:last-child { border-bottom: none; padding-bottom: 0; }
.cap__list b { display: block; font-size: 0.9375rem; font-weight: 600; margin-bottom: 3px; }
.cap__list span { display: block; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }

.cap-shots { display: grid; gap: 28px; margin-top: 48px; align-items: start; }
@media (min-width: 900px) { .cap-shots { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   12. Comparison tables
   -------------------------------------------------------------------------- */
.cmp { display: grid; gap: 32px; margin-top: 48px; align-items: start; }
@media (min-width: 900px) { .cmp { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

.cmp__card { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.cmp__title { padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 600; }
.cmp table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cmp th {
  text-align: left; padding: 11px 22px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--line); background: var(--surface-page);
}
.cmp th:last-child { color: var(--brand-primary); background: var(--surface-accent); }
.cmp td { padding: 15px 22px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.cmp td:first-child { color: var(--text-muted); width: 46%; }
.cmp td:last-child { color: var(--text-body); font-weight: 500; background: rgba(233, 242, 251, 0.45); }
.cmp tr:last-child td { border-bottom: none; }

/* Mobile: restack each row as label / value pairs — never scroll a table. */
@media (max-width: 599px) {
  .cmp table, .cmp thead, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .cmp tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .cmp tr:last-child { border-bottom: none; }
  .cmp td { border-bottom: none; padding: 8px 20px; }
  .cmp td:first-child { width: auto; }
  .cmp td::before {
    display: block; margin-bottom: 4px;
    font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-muted);
  }
  .cmp td:first-child::before { content: "Today"; }
  .cmp td:last-child { background: none; }
  .cmp td:last-child::before { content: "With Tranvoro"; color: var(--brand-primary); }
}

.caveat {
  margin-top: 32px; padding: 22px 24px;
  background: var(--surface-card); border: 1px solid var(--line);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem; line-height: 1.6; color: var(--text-subtle); max-width: 78ch;
}

/* --------------------------------------------------------------------------
   13. Limits
   -------------------------------------------------------------------------- */
.limits { list-style: none; display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 700px)  { .limits { grid-template-columns: repeat(2, 1fr); gap: 20px 32px; } }
@media (min-width: 1100px) { .limits { grid-template-columns: repeat(3, 1fr); } }
.limit {
  padding: 20px 22px;
  background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.limit b { display: block; font-size: 1rem; font-weight: 600; color: var(--text-body); margin-bottom: 5px; }
.limit span { display: block; font-size: 0.9375rem; line-height: 1.55; color: var(--text-subtle); }

/* --------------------------------------------------------------------------
   14. Early access
   -------------------------------------------------------------------------- */
.ea__grid { display: grid; gap: 44px; margin-top: 40px; align-items: start; }
@media (min-width: 1000px) { .ea__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; } }
.ea__body p + p { margin-top: 18px; }
.ea__body p { color: var(--text-subtle); }

.facts { list-style: none; display: grid; gap: 16px; }
.fact {
  display: flex; gap: 16px;
  padding: 20px 22px;
  background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-xl);
}
.fact__icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-accent); color: var(--brand-primary);
}
.fact b { display: block; font-size: 0.9375rem; font-weight: 600; margin-bottom: 3px; }
.fact span { display: block; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   15. Pilot + form
   -------------------------------------------------------------------------- */
.pilot__grid { display: grid; gap: 44px; margin-top: 44px; align-items: start; }
@media (min-width: 1000px) { .pilot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; } }

.howlist { list-style: none; counter-reset: how; margin-top: 32px; }
.howlist li { position: relative; padding: 0 0 26px 52px; counter-increment: how; }
.howlist li::before {
  content: counter(how);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-card); border: 1px solid var(--brand-primary); color: var(--brand-primary);
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600;
}
.howlist li::after {
  content: ""; position: absolute; left: 16px; top: 38px; bottom: 6px; width: 1px; background: var(--line-strong);
}
.howlist li:last-child { padding-bottom: 0; }
.howlist li:last-child::after { display: none; }
.howlist b { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.howlist span { display: block; font-size: 0.9375rem; line-height: 1.6; color: var(--text-muted); }

.formcard {
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 28px 24px;
}
@media (min-width: 640px) { .formcard { padding: 32px; } }
.formcard h3 { font-size: 1.25rem; margin-bottom: 6px; }
.formcard__note { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--text-body); }
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font-family: inherit; font-size: 1rem; color: var(--text-body);
  background: var(--surface-card); border: 1px solid #8a909a;
  border-radius: var(--radius-md);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(32, 106, 197, 0.18);
}
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--status-danger); }
.field__err { font-size: 0.8125rem; color: var(--ink-red); min-height: 0; }
.field__err:empty { display: none; }

.pot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { margin-top: 14px; font-size: 0.8125rem; line-height: 1.55; color: var(--text-muted); }
.consent a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }

.formstate {
  border-radius: var(--radius-lg); padding: 22px;
  border: 1px solid var(--line);
}
.formstate h3 { font-size: 1.25rem; margin-bottom: 8px; }
.formstate p { font-size: 0.9375rem; line-height: 1.6; color: var(--text-subtle); }
.formstate--ok { background: var(--tint-green); border-color: rgba(47, 177, 69, 0.35); }
.formstate--ok h3 { color: var(--ink-green); }
.formstate--err { background: var(--tint-red); border-color: rgba(214, 56, 56, 0.35); }
.formstate--err h3 { color: var(--ink-red); }
.formstate--mail { background: var(--surface-accent); border-color: rgba(32, 106, 197, 0.3); }
.formstate--mail h3 { color: var(--brand-primary); }
.formstate .btn { margin-top: 16px; }
.formstate:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.nojs { margin-top: 18px; }

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq { margin-top: 44px; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-primary); }
.faq summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.faq__sign { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: var(--text-muted); transition: transform .2s; }
.faq details[open] .faq__sign { transform: rotate(45deg); color: var(--brand-primary); }
@media (prefers-reduced-motion: reduce) { .faq__sign { transition: none; } }
.faq__a { padding: 0 4px 24px; max-width: 72ch; }
.faq__a p { color: var(--text-muted); line-height: 1.65; }
.faq__a p + p { margin-top: 12px; }

/* --------------------------------------------------------------------------
   17. Final CTA
   -------------------------------------------------------------------------- */
.final { text-align: center; }
.final h2 { max-width: 20ch; margin: 0 auto; text-wrap: balance; }
.final p { margin: 18px auto 0; max-width: 46ch; color: var(--text-subtle); font-size: 1.0625rem; }
.final .cta-row { justify-content: center; margin-top: 30px; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-foot { background: var(--text-body); color: #cbd3e1; padding: 64px 0 0; }
.foot__grid { display: grid; gap: 40px; }
@media (min-width: 640px)  { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }
.foot__brand img { width: 158px; height: 36px; display: block; }
.foot__tag { margin-top: 16px; font-size: 0.9375rem; color: #e2e8f0; font-weight: 500; }
.foot__desc { margin-top: 6px; font-size: 0.875rem; color: #9aa6bb; max-width: 34ch; }
.foot h2 {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8f9cb3; margin-bottom: 16px;
}
.foot ul { list-style: none; }
.foot li { margin-bottom: 11px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: #cbd3e1; text-decoration: none; font-size: 0.9375rem; }
.foot a:hover { color: #ffffff; text-decoration: underline; }
.foot__bar {
  margin-top: 56px; padding: 22px 0; border-top: 1px solid #333f57;
  font-size: 0.8125rem; color: #9aa6bb; line-height: 1.6;
}

/* --------------------------------------------------------------------------
   19. Motion — entry only, ≤16px, once, opt-in.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease; }
  .rise.is-in { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Product screenshots

   Real captures of the running app (see deploy/vps/landing-tools/). Every
   <img> declares its intrinsic box so the browser reserves the space before
   the bytes arrive — seventeen unreserved images would otherwise be seventeen
   layout shifts.
   -------------------------------------------------------------------------- */
.shot { margin: 0; }
.shot picture { display: block; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  box-shadow: 0 1px 2px rgba(29, 38, 58, .04), 0 12px 28px -12px rgba(29, 38, 58, .18);
}
.shot__cap {
  margin-top: 12px;
  font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted);
}

/* A screenshot inside a spine step, and the hero shot below the headline. */
.step .shot, .step .shotpair { margin-top: 28px; }
.hero__shot { margin-top: 48px; }
@media (min-width: 1024px) { .hero__shot { margin-top: 56px; } }

/* Before/after and side-by-side pairs. Stacked on narrow screens, where the
   connecting arrow turns to point down. */
.shotpair { display: grid; gap: 20px; align-items: center; }
.shotpair .shot__cap { display: none; }
.shotpair__arrow { display: flex; justify-content: center; color: var(--text-muted); }
.shotpair__arrow svg { transform: rotate(90deg); }
@media (min-width: 900px) {
  .shotpair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; }
  .shotpair__arrow svg { transform: none; }
}

/* The capability gallery — two up on wide screens. */
.cap-shots { display: grid; gap: 32px; margin-top: 48px; }
@media (min-width: 900px) { .cap-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }

/* --------------------------------------------------------------------------
   21. Legal pages (privacy.html, terms.html)
   -------------------------------------------------------------------------- */
.legal { padding: 56px 0 88px; }
.legal__wrap { max-width: 760px; }
.legal__back { display: inline-flex; align-items: center; gap: 7px; font-size: 0.875rem; font-weight: 500; text-decoration: none; margin-bottom: 28px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 10px; }
.legal__meta { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.legal p { color: var(--text-subtle); margin-bottom: 14px; max-width: 68ch; }
.legal ul { margin: 0 0 16px 20px; padding: 0; }
.legal li { color: var(--text-subtle); margin-bottom: 8px; max-width: 66ch; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.legal th { text-align: left; padding: 11px 14px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-subtle); border-bottom: 1px solid var(--line); }
.legal td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-subtle); }
.legal tr:last-child td { border-bottom: none; }
