/* flows/v1/onboarding.css — LAT-2225 first-run onboarding wizard (/onboarding page).
 *
 * SELF-CONTAINED ON PURPOSE. This page renders no shell and no legacy
 * components, so it does not import the account v2 cascade; that keeps the
 * module removable (cut out = nothing else changes) and immune to layer-order
 * accidents. Token VALUES mirror css/account/v2/tokens/primitives.css
 * (--p-*); if the palette moves, update both (grep marker: LAT-2225-tokens).
 * The account app is light-only today; this page follows it.
 */
:root {
  --onb-ground: #f8fafc;        /* --p-canvas */
  --onb-card: #ffffff;          /* white surface */
  --onb-ink: #0f172a;           /* --p-ink */
  --onb-body: #334155;          /* --p-body */
  --onb-muted: #64748b;         /* --p-muted */
  --onb-line: #e2e8f0;          /* --p-border */
  --onb-accent: #c65000;        /* --p-accent */
  --onb-accent-hover: #a84400;  /* --p-accent-hover */
  --onb-accent-soft: #fff7ed;   /* --p-accent-soft */
  --onb-track: rgba(15, 23, 42, 0.08);
  --onb-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.06);
  --onb-r: 16px;
  --onb-r-sm: 8px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--onb-ground);
  color: var(--onb-ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* (step bar lives in css/flows/v1/chrome.css — shared flow chrome) */

/* screens */
.onb-screen { display: none; min-height: 100vh; padding: 84px 24px 48px; flex-direction: column; align-items: center; justify-content: center; }
.onb-screen.on { display: flex; }
.onb-wrap { width: 100%; max-width: 980px; }
.onb-center { display: flex; align-items: center; justify-content: center; }

h1 { font-size: clamp(23px, 3.2vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
.onb-sub { color: var(--onb-body); font-size: 15px; margin: 0 0 24px; max-width: 58ch; }
.onb-sub b { color: var(--onb-ink); font-weight: 500; }

.onb-spin { width: 26px; height: 26px; border: 3px solid var(--onb-line); border-top-color: var(--onb-accent); border-radius: 50%; animation: onbspin 800ms linear infinite; }
@keyframes onbspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .onb-spin { animation: none; } }

/* audience toggle */
.onb-aud { display: inline-flex; border: 1px solid var(--onb-line); border-radius: var(--onb-r-sm); background: var(--onb-card); padding: 4px; margin-bottom: 22px; }
.onb-aud button { border: none; background: transparent; color: var(--onb-muted); font-family: inherit; font-size: 14px; font-weight: 600; padding: 8px 20px; border-radius: 6px; cursor: pointer; }
.onb-aud button.on { background: var(--onb-accent); color: #fff; }
.onb-aud button:focus-visible { outline: 2px solid var(--onb-accent); outline-offset: 2px; }

/* plan cards */
.onb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.onb-plan { background: var(--onb-card); border: 1.5px solid var(--onb-line); border-radius: var(--onb-r); padding: 20px; cursor: pointer; position: relative; box-shadow: var(--onb-shadow); transition: border-color 120ms, transform 120ms; display: flex; flex-direction: column; gap: 6px; }
.onb-plan:hover { border-color: var(--onb-accent); transform: translateY(-2px); }
.onb-plan.sel { border-color: var(--onb-accent); outline: 2px solid var(--onb-accent-soft); }
.onb-plan:focus-visible { outline: 2px solid var(--onb-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .onb-plan { transition: none; } .onb-plan:hover { transform: none; } }
.onb-plan-tag { position: absolute; top: -10px; left: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; background: var(--onb-accent); color: #fff; border-radius: 20px; padding: 2px 10px; }
.onb-plan-name { font-weight: 600; font-size: 17px; }
.onb-plan-price { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.onb-plan-price small { font-size: 13px; font-weight: 500; color: var(--onb-muted); letter-spacing: 0; }
.onb-plan ul { margin: 4px 0 0; padding: 0 0 0 16px; font-size: 13px; color: var(--onb-muted); line-height: 1.55; }
.onb-plan-note { font-size: 12.5px; color: var(--onb-accent); font-weight: 600; margin-top: auto; padding-top: 8px; }
.onb-guarantee { margin-top: 16px; font-size: 13px; color: var(--onb-muted); text-align: center; }

/* survey pills: two columns max, one on narrow (operator, 2026-08-13) */
.onb-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 720px; }
@media (max-width: 560px) { .onb-pills { grid-template-columns: 1fr; } }
.onb-pill { display: flex; align-items: center; gap: 10px; background: var(--onb-card); border: 1.5px solid var(--onb-line); border-radius: var(--onb-r-sm); padding: 14px 18px; cursor: pointer; font-weight: 500; font-size: 14.5px; transition: border-color 120ms, background 120ms; }
.onb-pill:hover { border-color: var(--onb-accent); }
.onb-pill.sel { border-color: var(--onb-accent); background: var(--onb-accent-soft); }
.onb-pill:focus-visible { outline: 2px solid var(--onb-accent); outline-offset: 2px; }
.onb-pill .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--onb-muted); flex-shrink: 0; }
.onb-pill.sel .dot { border-color: var(--onb-accent); background: var(--onb-accent); }

/* nav */
.onb-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.onb-btn { border: none; border-radius: var(--onb-r-sm); padding: 12px 28px; font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit; background: var(--onb-accent); color: #fff; }
.onb-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.onb-btn:hover { background: var(--onb-accent-hover); }
.onb-btn:focus-visible { outline: 2px solid var(--onb-ink); outline-offset: 2px; }
.onb-ghost { background: transparent; color: var(--onb-muted); }
.onb-ghost:hover { background: transparent; color: var(--onb-ink); }

/* ── Screen 0: intro + founder welcome (LAT-2245) ─────────────────────────── */
.onb-s0-head { text-align: center; margin-bottom: 30px; }
.onb-s0-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: start; }
.onb-s0-steps { list-style: none; margin: 0; padding: 0; counter-reset: s0; }
.onb-s0-steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; margin-bottom: 18px; counter-increment: s0; }
.onb-s0-steps li > b, .onb-s0-steps li > span { grid-column: 2; }
.onb-s0-steps li::before {
  content: counter(s0); flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--onb-accent-soft); color: var(--onb-accent); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; border: 1px solid #fed7aa;
}
.onb-s0-steps b { display: block; color: var(--onb-ink); font-size: 15px; }
.onb-s0-steps span { display: block; color: var(--onb-muted); font-size: 13px; margin-top: 2px; }
.onb-s0-video button { position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: 12px; overflow: hidden; background: #000; cursor: pointer;
  box-shadow: var(--onb-shadow); }
.onb-s0-video img, .onb-s0-video video { display: block; width: 100%; height: auto; }
.onb-s0-playbtn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 50px; height: 50px; border-radius: 50%; background: rgba(198,80,0,.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.onb-s0-playbtn svg { margin-left: 3px; }
.onb-s0-cap { text-align: center; color: var(--onb-muted); font-size: 12.5px; margin-top: 8px; }
@media (max-width: 720px) {
  .onb-s0-grid { grid-template-columns: 1fr; gap: 24px; }
  .onb-s0-video { max-width: 420px; margin: 0 auto; }
}

/* ── v2 additions: the Team ceiling dropdown inside a plan card (LAT-2463).
   Crisp-select treatment matches lp/plans.html and pricing-v2.html:
   appearance:none hands text rendering back to the page (LAT-2451). ── */
.onb-plan-rate { font-size: 12.5px; font-weight: 600; color: var(--onb-accent); }
.onb-plan-sel { background: var(--onb-bg, #f8f9fa); border: 1px solid var(--onb-line); border-radius: 8px; position: relative; margin: 2px 0 4px; }
.onb-plan-sel::after { content: ""; position: absolute; right: 11px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--onb-muted); border-bottom: 2px solid var(--onb-muted); transform: rotate(45deg); pointer-events: none; }
.onb-plan-sel select { -webkit-appearance: none; appearance: none; width: 100%; font: inherit; font-size: 13.5px; font-weight: 600; color: inherit; border: 0; background: transparent; cursor: pointer; padding: 8px 30px 8px 10px; -webkit-font-smoothing: antialiased; line-height: 1.3; }
.onb-plan-sel select:focus { outline: 2px solid var(--onb-accent); outline-offset: -2px; border-radius: 8px; }
