/* css/onboarding.css — first-run onboarding sequence (#502).
   Loaded AFTER style.css / theme.css (cascade-safe). Everything is namespaced
   under .ob- so it can't leak into the operator/booking UI. The flow renders as
   a full-viewport overlay (covers the SPA shell) driven by js/onboarding.js.
   Design + palette from the approved mockups (claudedocs/onboarding-mockups). */

.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: #0e241b;
  font-family: 'Outfit', system-ui, sans-serif;
  color: #fff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.ob-overlay * { box-sizing: border-box; }

/* screens — only the active one is shown */
.ob-screen { position: absolute; inset: 0; display: none; }
.ob-screen.is-active { display: block; }

.ob-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ob-scrim-full { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,11,.72) 0%, rgba(6,15,11,.14) 22%, rgba(7,17,12,.52) 52%, rgba(6,14,10,.95) 100%); }
.ob-scrim-preview { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,11,.85) 0%, rgba(6,15,11,.32) 20%, rgba(6,14,10,.20) 40%, rgba(6,14,10,.6) 66%, rgba(7,15,11,.98) 100%); }
.ob-band { position: absolute; top: 0; left: 0; right: 0; height: 34%; min-height: 220px;
  background-size: cover; background-position: center 34%; }
.ob-band:after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,11,.35) 0%, rgba(8,20,15,.2) 45%, #0e241b 99%); }

/* content column — centered, capped for desktop, full-height with scroll */
.ob-pad { position: relative; z-index: 10; height: 100%; width: 100%;
  max-width: 480px; margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 28px max(30px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto; }
.ob-spacer { flex: 1 1 auto; min-height: 18px; }

/* progress */
.ob-prog { display: flex; gap: 6px; margin-bottom: 22px; flex: none; }
.ob-prog i { height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); flex: 1; transition: background .25s; }
.ob-prog i.on { background: #c2a262; }

/* brand + type */
.ob-logo { width: 46px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.ob-wordmark { text-align: center; font-weight: 600; letter-spacing: .36em; font-size: 13px; color: #fff; margin-top: 12px; text-transform: uppercase; }
.ob-eyebrow { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: #c2a262; font-weight: 600; margin-bottom: 12px; text-shadow: 0 1px 12px rgba(0,0,0,.75); }
.ob-h1 { font-size: 30px; line-height: 1.14; font-weight: 600; letter-spacing: -.015em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5); margin: 0; }
.ob-h1 .it { font-style: italic; color: #d4b67a; font-weight: 500; }
.ob-sub { font-size: 14.5px; line-height: 1.5; color: #e8e0d0; margin-top: 12px; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.ob-why { font-size: 13px; color: #c7d2cb; margin-top: 8px; line-height: 1.45; }
.ob-trust { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #e8e0d0; font-size: 12.5px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.ob-trust svg { width: 15px; height: 15px; stroke: #c2a262; fill: none; stroke-width: 1.6; flex: none; }
.ob-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 600;
  background: rgba(6,15,11,.5); border: 1px solid rgba(255,255,255,.14); padding: 7px 12px; border-radius: 999px; }
.ob-live .d { width: 8px; height: 8px; border-radius: 50%; background: #41d98a; box-shadow: 0 0 0 4px rgba(65,217,138,.25); }

/* CTAs */
.ob-cta { display: block; width: 100%; text-align: center; padding: 17px; border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer;
  font-family: inherit; background: linear-gradient(135deg, #c2a262, #d4b67a); color: #10241a; border: none; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.ob-cta.ghost { background: rgba(10,20,15,.35); color: #fff; border: 1.5px solid rgba(255,255,255,.4); box-shadow: none; margin-top: 12px; }
.ob-escape { display: block; width: 100%; text-align: center; color: #e8e0d0; font-size: 13.5px; margin-top: 14px; font-weight: 500; background: none; border: none; cursor: pointer; font-family: inherit; }
.ob-flex-none { flex: none; }

/* option cards (segment) */
.ob-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 16px; cursor: pointer; font-family: inherit;
  background: rgba(20,32,26,.55); border: 1px solid rgba(255,255,255,.14); margin-bottom: 11px; text-align: left; color: #fff; }
.ob-opt .ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(194,162,98,.16); flex: none; }
.ob-opt .ic svg { width: 21px; height: 21px; stroke: #c2a262; fill: none; stroke-width: 1.7; }
.ob-opt .txt { flex: 1; min-width: 0; }
.ob-opt .t { display: block; font-size: 15.5px; font-weight: 600; color: #fff; }
.ob-opt .d { display: block; font-size: 12px; color: #c7d2cb; margin-top: 3px; line-height: 1.35; }
.ob-opt.sel { background: rgba(194,162,98,.16); border-color: rgba(194,162,98,.6); }
.ob-opt.sel .t { color: #d4b67a; }

/* pills (use-case) */
.ob-pill { display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px 16px; border-radius: 14px; cursor: pointer; font-family: inherit;
  background: rgba(20,32,26,.55); border: 1px solid rgba(255,255,255,.14); margin-bottom: 10px; text-align: left; color: #fff; }
.ob-pill .ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(194,162,98,.16); flex: none; }
.ob-pill .ic svg { width: 18px; height: 18px; stroke: #c2a262; fill: none; stroke-width: 1.7; }
.ob-pill .t { font-size: 15px; font-weight: 600; color: #fff; flex: 1; }
.ob-pill.sel { background: rgba(194,162,98,.16); border-color: rgba(194,162,98,.6); }
.ob-pill.sel .t { color: #d4b67a; }

.ob-check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: #c2a262; display: none; align-items: center; justify-content: center; flex: none; }
.ob-opt.sel .ob-check, .ob-pill.sel .ob-check { display: flex; }
.ob-check svg { width: 13px; height: 13px; stroke: #10241a; stroke-width: 3; fill: none; }

/* glass app card (previews) */
.ob-card { background: rgba(9,20,15,.62); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.5); flex: none; }
.ob-appbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.ob-appbar .ttl { font-size: 13px; font-weight: 600; color: #e8e0d0; letter-spacing: .02em; }
.ob-dot3 { display: flex; gap: 4px; } .ob-dot3 i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.3); }
.ob-field { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 11px 13px; margin-bottom: 9px; }
.ob-field .pin { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ob-field .tx { font-size: 13px; color: #fff; }
.ob-veh { display: flex; gap: 8px; margin-top: 3px; }
.ob-veh .v { flex: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; padding: 9px 6px; text-align: center; background: rgba(255,255,255,.05); }
.ob-veh .v.on { border-color: rgba(194,162,98,.6); background: rgba(194,162,98,.16); }
.ob-veh .vt { font-size: 10.5px; color: #c7d2cb; } .ob-veh .vp { font-size: 13px; font-weight: 600; color: #fff; margin-top: 2px; } .ob-veh .v.on .vp { color: #d4b67a; }
.ob-drv { display: flex; align-items: center; gap: 12px; }
.ob-drv .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#294237,#16281f); border: 1px solid rgba(194,162,98,.6); flex: none; display: flex; align-items: center; justify-content: center; color: #c2a262; font-weight: 700; font-size: 15px; }
.ob-drv .nm { font-size: 14px; font-weight: 600; color: #fff; } .ob-drv .mt { font-size: 12px; color: #c7d2cb; margin-top: 1px; }
.ob-eta { margin-left: auto; text-align: right; } .ob-eta .n { font-size: 21px; font-weight: 700; color: #d4b67a; line-height: 1; } .ob-eta .l { font-size: 10px; color: #c7d2cb; letter-spacing: .06em; text-transform: uppercase; }

/* final screen */
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ob-chip { padding: 8px 13px; border-radius: 999px; background: rgba(194,162,98,.18); border: 1px solid rgba(194,162,98,.6); font-size: 12.5px; color: #d4b67a; font-weight: 600; }
.ob-seal { width: 66px; height: 66px; border-radius: 50%; background: rgba(194,162,98,.2); border: 1.5px solid rgba(194,162,98,.6); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.ob-seal svg { width: 30px; height: 30px; stroke: #d4b67a; stroke-width: 2.4; fill: none; }
.ob-mt14 { margin-top: 14px; } .ob-mt18 { margin-top: 18px; } .ob-mt22 { margin-top: 22px; }

@media (min-width: 640px) {
  .ob-band { height: 40%; }
}
