/* Verabay landing — one stylesheet, no build step, no script, no external request.
   Follows the workbench design language (~/.car-ops/ui-redesign/mock/NOTES.md):
   near-black surfaces that step in lightness, one lime "signal" for "this is the one",
   plates for cars, pills only for chips and badges. Dark is the base; light follows the
   reader's system setting, where lime is only ever a fill behind dark ink. */

:root {
  color-scheme: dark light;

  --bg: #0A0C0B;
  --bg-end: #0A0C0B;
  --surface: #141715;
  --surface-2: #1C201D;
  --surface-3: #262B27;
  --line: #2A302B;
  --line-strong: #717B6E;
  --text: #F1F4EE;
  --text-2: #B4BBB0;

  --signal: #C8F53C;
  --signal-ink: #0E1208;
  --signal-ink-2: #2A3410;
  --signal-line: #3A4716;
  --signal-outline: transparent;

  --accent: #C8F53C;
  --btn-bg: #C8F53C;
  --btn-fg: #0E1208;
  --focus: #C8F53C;

  --danger: #FF9385;
  --danger-tint: #372A26;
  --warn: #F6C453;
  --warn-tint: #36311E;
  --neutral-tint: #2C302C;

  --plate-bg: #F1F4EE;
  --plate-ink: #0E1208;

  --shadow: none;
  --glow: radial-gradient(60% 55% at 78% 0%, rgba(200,245,60,.10), rgba(200,245,60,0) 70%);

  --type: Inter, "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  --gutter: 16px;
  --shell: 1200px;
  --band: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #EDF1EA;
    --bg-end: #E2EBEE;
    --surface: #FFFFFF;
    --surface-2: #F4F6F1;
    --surface-3: #E8ECE4;
    --line: #DCE2D7;
    --line-strong: #7A8475;
    --text: #131711;
    --text-2: #4A5446;

    --signal-outline: #131711;

    --accent: #3D5C00;
    --btn-bg: #131711;
    --btn-fg: #FFFFFF;
    --focus: #131711;

    --danger: #B42318;
    --danger-tint: #F8E9E8;
    --warn: #7A5200;
    --warn-tint: #F2EEE6;
    --neutral-tint: #EDEEEC;

    --plate-bg: #FFFFFF;
    --plate-ink: #131711;

    --shadow: 0 1px 2px rgba(19,23,17,.06), 0 10px 28px rgba(19,23,17,.07);
    --glow: none;
  }
}

@media (min-width: 600px) { :root { --gutter: 24px; --band: 80px; } }
@media (min-width: 1000px) { :root { --gutter: 32px; --band: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  font-family: var(--type);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg) linear-gradient(180deg, var(--bg), var(--bg-end)) no-repeat;
  min-height: 100vh;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }
ol, ul { list-style: none; }
b, strong { font-weight: 650; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 20;
  padding: 12px 16px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; }

.shell { width: 100%; max-width: calc(var(--shell) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Top bar ---------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px;
  max-width: calc(var(--shell) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--text); text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
.mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--signal); color: var(--signal-ink);
  box-shadow: inset 0 0 0 1.5px var(--signal-outline);
}
.mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav-link:hover { background: var(--surface-3); }
.nav-link-app { background: var(--surface-3); border: 1px solid var(--line-strong); padding: 0 16px; margin-left: 4px; }
.nav-link-app:hover { border-color: var(--text); }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-size: 17px; font-weight: 650; text-decoration: none; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: var(--surface-3); color: var(--text); border-color: var(--line-strong); }
.btn-quiet:hover { filter: none; border-color: var(--text); }
.btn-ink { background: var(--signal-ink); color: #F1F4EE; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Type ------------------------------------------------------------------- */

.display {
  font-size: clamp(40px, 5.3vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em;
  text-wrap: balance;
}
.display-2 {
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.028em;
  text-wrap: balance;
}
.display-3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.lede { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.aside { margin-top: 16px; font-size: 15px; color: var(--text-2); }

/* Chips, badges, plates -------------------------------------------------- */

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px;
  border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
  background: var(--neutral-tint); color: var(--text-2);
}
.chip-urgent { background: var(--danger-tint); color: var(--danger); }
.chip-warn { background: var(--warn-tint); color: var(--warn); }
.chip-ink { background: var(--signal-ink); color: #F1F4EE; }

.plate {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  background: var(--plate-bg); color: var(--plate-ink);
  box-shadow: inset 0 0 0 2px var(--plate-bg), inset 0 0 0 3.5px var(--plate-ink), 0 0 0 1.5px var(--plate-ink);
  font-size: 15px; font-weight: 700; letter-spacing: .07em; line-height: 1.35; white-space: nowrap;
}
.is-signal .plate {
  background: var(--signal-ink); color: #F1F4EE;
  box-shadow: inset 0 0 0 2px var(--signal-ink), inset 0 0 0 3.5px #F1F4EE, 0 0 0 1.5px var(--signal-ink);
}

/* Hero ------------------------------------------------------------------- */

/* the first band below supplies the space under the hero */
.hero { padding: 40px 0 0; background: var(--glow) no-repeat; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy .chip { margin-bottom: 20px; }
@media (min-width: 1000px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 64px; }
}

.caption { margin-top: 14px; font-size: 15px; color: var(--text-2); }

/* Product panels drawn in HTML ------------------------------------------- */

.screen {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 12px;
}
.screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 14px; }
.screen-title { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.screen-note { display: flex; gap: 8px; align-items: center; padding: 14px 8px 6px; font-size: 15px; color: var(--text-2); }

.queue { display: grid; gap: 8px; }
.row { padding: 16px; border-radius: 14px; background: var(--surface-2); }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-name { font-size: 18px; font-weight: 650; }
.row-car { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 15px; font-weight: 600; }
.row-said { margin-top: 10px; font-size: 16px; }
.row-state { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }

.row.is-signal, .choice.is-signal { background: var(--signal); color: var(--signal-ink); box-shadow: inset 0 0 0 1.5px var(--signal-outline); }
.is-signal .row-state, .is-signal .choice-text em { color: var(--signal-ink-2); }
.screen .is-signal { position: relative; }

.cards { display: grid; gap: 8px; }
.card { padding: 18px; border-radius: 14px; background: var(--surface-2); }
.card-urgent { box-shadow: inset 0 0 0 1.5px var(--danger); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.figure { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.card-urgent .figure { color: var(--danger); }
.card-head { margin-top: 12px; font-size: 18px; font-weight: 650; }
.card-body { margin-top: 4px; font-size: 16px; color: var(--text-2); }
.card-kind { font-size: 14px; font-weight: 650; color: var(--text-2); }
.card-kind + .card-body { margin-top: 6px; color: var(--text); }
.card-plain .card-body { margin-top: 0; color: var(--text); }

.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; min-height: 56px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.dot { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-strong); }
.is-signal .dot { border-color: var(--signal-ink); background: radial-gradient(circle, var(--signal-ink) 0 42%, transparent 46%); }
.choice-text b { display: block; font-size: 16px; }
.choice-text em { display: block; margin-top: 2px; font-style: normal; font-size: 15px; color: var(--text-2); }
.choice.is-signal .choice-text em { color: var(--signal-ink-2); }

.timeline { display: grid; padding: 6px 8px 8px; }
.timeline li { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 12px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; grid-row: 1 / span 2; justify-self: center; margin-top: 4px;
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface);
}
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li:last-child::before { border-color: var(--signal-outline); background: var(--signal); box-shadow: 0 0 0 1.5px var(--signal-outline); border-width: 0; }
.when { grid-column: 2; font-size: 14px; font-weight: 600; color: var(--text-2); }
.what { grid-column: 2; font-size: 16px; font-weight: 600; }

/* Feature bands ---------------------------------------------------------- */

.band { padding: var(--band) 0; }
.band + .band { padding-top: 0; }
.feature-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .feature-flip .feature-copy { order: 2; }
}

/* Four points ------------------------------------------------------------ */

.points { display: grid; gap: 12px; }
@media (min-width: 720px) { .points { grid-template-columns: 1fr 1fr; } }
.point { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.point-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 19px; }
.point h3 { margin-top: 18px; font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
.point p { margin-top: 8px; color: var(--text-2); }

/* Being built now -------------------------------------------------------- */

.next-head { display: grid; gap: 8px; }
.next-head .aside { margin-top: 0; font-size: 17px; }
.next-list { display: grid; gap: 12px; margin-top: 28px; }
.next-list li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.next-list .step { flex: none; min-width: 28px; font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--text-2); }
@media (min-width: 900px) {
  .next-list { grid-template-columns: repeat(4, 1fr); }
  .next-list li { flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px; font-size: 18px; }
  .next-list .step { font-size: 56px; }
}

.preview-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 40px; font-size: 16px; color: var(--text-2); }
.shots { display: grid; gap: 12px; margin-top: 16px; }
.shot { padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot img { width: 100%; border-radius: 13px; }
.shot figcaption { padding: 12px 8px 6px; font-size: 15px; color: var(--text-2); }
.shot figcaption b { color: var(--text); }
.shot-phone { justify-self: center; width: 100%; max-width: 300px; border-radius: 30px; }
.shot-phone img { border-radius: 23px; }
@media (min-width: 900px) {
  .shots { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
  .shot-wide { grid-column: 1 / -1; }
  .shot-phone { max-width: none; }
}

/* Closing call ----------------------------------------------------------- */

.close-card {
  padding: 40px 24px; border-radius: 24px;
  background: var(--signal); color: var(--signal-ink);
  box-shadow: inset 0 0 0 1.5px var(--signal-outline);
}
.close-card .lede, .close-card .aside { color: var(--signal-ink-2); }
.close-card :focus-visible { outline-color: var(--signal-ink); }
.close-card .aside { font-weight: 500; }
@media (min-width: 900px) { .close-card { padding: 72px 64px; } }

/* Footer ----------------------------------------------------------------- */

.footer { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 15px; color: var(--text-2); }
.footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* The documentation page ------------------------------------------------- */
/* Denser than the front page on purpose: this is read, not scanned. */

.hero-doc { padding: 48px 0 8px; background: var(--glow) no-repeat; }
.doc { max-width: calc(760px + 2 * var(--gutter)); padding-top: 24px; padding-bottom: var(--band); }
.doc-part { padding-top: 48px; }
.doc-part h2 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc-part p { margin-top: 16px; font-size: 17px; line-height: 1.6; }
.doc-part a { font-weight: 600; }

.steps { display: grid; gap: 12px; margin-top: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--text-2); }
.steps h3 { font-size: 18px; line-height: 1.3; font-weight: 650; }
.steps p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.steps p b { color: var(--text); }

.doc-note { padding: 16px 18px; border-radius: 14px; background: var(--warn-tint); box-shadow: inset 4px 0 0 var(--warn); }
.doc-note b:first-child { color: var(--warn); }

.plain-list { display: grid; gap: 8px; margin-top: 20px; }
.plain-list li { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--text-2); }
.plain-list b { color: var(--text); }

.table-wrap { margin-top: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.roles { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.roles th { text-align: left; padding: 14px 18px; font-size: 14px; font-weight: 650; color: var(--text-2); background: var(--surface-2); }
.roles td { padding: 16px 18px; vertical-align: top; border-top: 1px solid var(--line); color: var(--text-2); }
.roles td:first-child { color: var(--text); white-space: nowrap; }
@media (max-width: 640px) {
  .roles thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .roles, .roles tbody, .roles tr, .roles td { display: block; }
  .roles tr { padding: 16px 18px; border-top: 1px solid var(--line); }
  .roles tr:first-child { border-top: 0; }
  .roles td { padding: 0; border: 0; }
  .roles td:first-child { font-size: 18px; }
  .roles td + td { margin-top: 10px; }
  .roles td[data-label]::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 650; color: var(--text); }
}

/* Motion ----------------------------------------------------------------- */
/* One deliberate moment, kept from the page this replaces: the safety enquiry arrived third and
   rises to the top, which is what the product does with a safety report. Panels further down lift
   into place once as you reach them. Nothing moves for a reader who asked for less motion. */

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    0%, 12% { transform: translateY(var(--rise, 230px)); opacity: 0; }
    30%     { opacity: 1; }
    100%    { transform: translateY(0); opacity: 1; }
  }
  @keyframes settle {
    0%, 12% { transform: translateY(-48px); }
    100%    { transform: translateY(0); }
  }
  .row-rise  { animation: rise 1.6s cubic-bezier(.2,.8,.2,1) both; }
  .row-shift { animation: settle 1.6s cubic-bezier(.2,.8,.2,1) both; }

  @keyframes lift {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @supports (animation-timeline: view()) {
    .reveal .screen {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 8% entry 46%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Print ------------------------------------------------------------------ */
/* Backgrounds are dropped when printing, which would leave light text on white paper. */

@media print {
  .nav { position: static; }
  .btn, .btn-ink, .chip-ink, .is-signal .plate { color: #131711; background: transparent; border: 1px solid #131711; box-shadow: none; }
  .row-rise, .row-shift, .reveal .screen { animation: none; }
}

/* Row headers in the roles table read as the role's name, not as a column label. */
.roles th[scope="row"] { padding: 16px 18px; vertical-align: top; border-top: 1px solid var(--line); background: none; font-size: 16px; color: var(--text); white-space: nowrap; }
@media (max-width: 640px) {
  .roles th[scope="row"] { display: block; padding: 0; border: 0; font-size: 18px; }
}
.doc-head { max-width: calc(760px + 2 * var(--gutter)); }
.doc-head .display { font-size: clamp(36px, 4.6vw, 56px); }
@media (max-width: 640px) { .roles th[scope="row"] + td { margin-top: 10px; } }
.hero-copy .chip { white-space: normal; border-radius: 16px; padding-block: 6px; }
/* On a phone the phone-sized preview is the legible one, so it leads. */
@media (max-width: 899px) { .shot-phone { order: -1; } }

/* In the product today / still coming */
.built { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 720px) { .built { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .built { grid-template-columns: repeat(3, 1fr); } .built .point:last-child { grid-column: span 3; } }
.built .point h3 { margin-top: 0; }
.next-head-2 { margin-top: 48px; }
.next-list { margin-top: 20px; }
@media (min-width: 900px) {
  .next-list { grid-template-columns: 1fr 1fr; }
  .next-list li { flex-direction: row; align-items: center; font-size: 17px; }
}
