/* WIT Cars prototype v1. Tokens mirror ../../design-tokens.json (Blue Hour Bay). */
@font-face { font-family: "Archivo"; src: url(assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(assets/fonts/dm-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(assets/fonts/dm-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --blue: #2D3192; --black: #000; --gold: #D1AA4E; --white: #fff;
  --alert: #FF6B5E; --ok: #4CC38A;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-sheet: 28px;
  --sx: 20px;
}
[data-theme="dark"] {
  --bg: #000; --surface: rgba(255,255,255,.06); --surface2: rgba(255,255,255,.1); --text: #fff; --muted: rgba(255,255,255,.74); --faint: rgba(255,255,255,.52);
  --line: rgba(255,255,255,.12); --input: rgba(255,255,255,.2); --accent: var(--gold); --on-accent: #000; --sel: rgba(209,170,78,.16);
  --pbg: var(--gold); --ptext: #000; --danger: var(--alert); --success: var(--ok); --focus: var(--gold); --link-ul: var(--gold);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #fff; --surface: rgba(0,0,0,.04); --surface2: rgba(0,0,0,.07); --text: #000; --muted: rgba(0,0,0,.7); --faint: rgba(0,0,0,.56);
  --line: rgba(0,0,0,.12); --input: rgba(0,0,0,.24); --accent: var(--blue); --on-accent: #fff; --sel: rgba(45,49,146,.1);
  --pbg: #000; --ptext: var(--gold); --danger: #C4291C; --success: #16794A; --focus: var(--blue); --link-ul: var(--blue);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #000; color: #fff; font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow: hidden; }
::selection { background: var(--gold); color: #000; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus, var(--gold)); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }

/* ---------- stage: phone frame on desktop, full screen on phones ---------- */
.stage { height: 100%; display: flex; align-items: center; justify-content: center; gap: 72px; padding: 24px; background: #000; background-image: radial-gradient(rgba(209,170,78,.18) 1px, transparent 1.4px); background-size: 38px 38px; }
.side { width: 260px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.side-mark { width: 56px; height: 56px; }
.side-h { font-weight: 800; font-stretch: 118%; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.side-p { color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.55; }
.side-fine { color: rgba(255,255,255,.52); font-size: 13px; }
.phone { position: relative; width: 390px; height: 844px; max-height: calc(100vh - 48px); border-radius: 52px; overflow: hidden; background: var(--bg); color: var(--text); box-shadow: 0 0 0 10px #121218, 0 0 0 11px rgba(255,255,255,.14), 0 40px 100px -20px rgba(0,0,0,.9); isolation: isolate; }
.sbar { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 36px; z-index: 30; font-weight: 600; font-size: 16px; pointer-events: none; color: var(--text); }
.sbar.on-photo { color: #fff; }
.sbar-i { display: flex; gap: 6px; align-items: center; }
@media (max-width: 600px) {
  .stage { padding: 0; gap: 0; background: var(--bg, #000); }
  .side { display: none; }
  .phone { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
  .sbar { display: none; }
}
:root { --top: 54px; --bot: 20px; }
@media (max-width: 600px) { :root { --top: max(env(safe-area-inset-top), 12px); --bot: max(env(safe-area-inset-bottom), 12px); } }

/* ---------- screens ---------- */
.view { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); padding-top: var(--top); }
.scr.enter { animation: enter .42s var(--ease) both; }
.scr.enter-back { animation: enterBack .42s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px var(--sx) 24px; overscroll-behavior: contain; scrollbar-width: none; }
.body::-webkit-scrollbar { display: none; }
.foot { padding: 12px var(--sx) calc(var(--bot) + 8px); display: flex; flex-direction: column; gap: 10px; }
.with-tabs .foot { padding-bottom: 12px; }
.with-tabs { padding-bottom: calc(64px + var(--bot)); }

/* top bar */
.top { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px 0 8px; }
.top .grow { flex: 1; }
.top-t { font-weight: 700; font-stretch: 108%; font-size: 17px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--text); flex: none; }
.icon-btn:active { background: var(--surface); }
.icon-btn svg, .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 28px; height: 28px; }
.prog { flex: 1; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transform-origin: left; transition: transform .42s var(--ease); }
.skip { min-width: 44px; height: 44px; padding: 0 8px; color: var(--muted); font-weight: 600; font-size: 15px; }

/* type */
.display { font-weight: 800; font-stretch: 118%; font-size: 40px; line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.title { font-weight: 800; font-stretch: 115%; font-size: 30px; line-height: 1.07; letter-spacing: -.025em; text-wrap: balance; }
.h2 { font-weight: 800; font-stretch: 112%; font-size: 22px; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; }
.h3 { font-weight: 700; font-stretch: 108%; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.lede { font-size: 17px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.45; color: var(--muted); }
.fine { font-size: 13px; line-height: 1.45; color: var(--faint); }
.label { font-weight: 600; font-stretch: 108%; font-size: 13px; line-height: 16px; letter-spacing: .01em; color: var(--muted); }
.sec-t { font-weight: 700; font-stretch: 108%; font-size: 15px; color: var(--text); padding: 28px 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
.sec-t a, .sec-t button { font-weight: 600; font-size: 14px; color: var(--accent); }
.danger { color: var(--danger); } .success { color: var(--success); } .accent { color: var(--accent); }
.stack { display: flex; flex-direction: column; }
.g4 { gap: 4px; } .g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g24 { gap: 24px; }
.row-x { display: flex; align-items: center; gap: 12px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-stretch: 108%; font-size: 16px; line-height: 1.1; transition: transform .24s var(--ease), opacity .2s, background-color .2s; width: 100%; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--pbg); color: var(--ptext); }
.btn-line { box-shadow: inset 0 0 0 1.5px currentColor; color: var(--text); }
.stage > .side .btn-line { color: #fff; width: auto; }
.btn-text { min-height: 44px; color: var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--link-ul); font-weight: 600; font-size: 15px; }
.btn-sm { min-height: 44px; font-size: 15px; padding: 0 18px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn-on-blue { background: var(--gold); color: #000; }

/* quiz options */
.opts { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; }
.opt { min-height: 60px; padding: 14px 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--input); display: flex; align-items: center; gap: 14px; text-align: left; font-weight: 600; font-size: 16px; line-height: 1.3; transition: box-shadow .2s, background-color .2s, transform .24s var(--ease); }
.opt:active { transform: scale(.985); }
.opt .opt-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; flex: none; color: var(--accent); }
.opt .opt-sub { display: block; font-weight: 400; font-size: 14px; color: var(--muted); padding-top: 2px; }
.opt .tick { margin-left: auto; width: 24px; height: 24px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--input); display: grid; place-items: center; flex: none; }
.opt .tick svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--sel); }
.opt[aria-pressed="true"] .tick, .opt[aria-checked="true"] .tick { background: var(--accent); box-shadow: none; color: var(--on-accent); }
.opt[aria-pressed="true"] .tick svg, .opt[aria-checked="true"] .tick svg { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--input); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--sel); color: var(--text); }
.chip .ic { width: 16px; height: 16px; }

/* inputs */
.field { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; }
.input { height: 56px; border-radius: var(--r-md); border: 0; box-shadow: inset 0 0 0 1px var(--input); background: transparent; padding: 0 16px; font-size: 18px; font-weight: 600; width: 100%; caret-color: var(--accent); }
.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.input::placeholder { color: var(--faint); font-weight: 400; }
.input.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; padding: 20px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* WITSI */
.witsi { display: block; flex: none; border-radius: 33%; }
.witsi svg { width: 100%; height: 100%; overflow: visible; }
.witsi .w-bar { animation: idle 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.witsi .w-glint, .witsi .w-mouth { transform-box: fill-box; transform-origin: center; }
.witsi.thinking .w-glint { animation: glint 1.6s var(--ease) infinite; }
.witsi.speaking .w-mouth { animation: speak .5s ease-in-out infinite alternate; }
.witsi.found .w-bar { animation: blink 2.4s ease-in-out infinite; }
.witsi.happy .w-mouth { animation: pop .42s var(--ease) both; }
@keyframes idle { 0%, 100% { opacity: .86; } 50% { opacity: 1; } }
@keyframes glint { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(26px); opacity: 0; } }
@keyframes speak { from { transform: scaleY(.75); } to { transform: scaleY(1.2); } }
@keyframes blink { 0%, 86%, 100% { transform: scaleY(1); } 90% { transform: scaleY(.2); } }
@keyframes pop { from { transform: scaleX(.7); } to { transform: none; } }
.say { display: flex; gap: 12px; align-items: flex-start; padding-top: 4px; }
.say p { font-size: 15px; line-height: 1.45; color: var(--muted); padding-top: 2px; }
.say b { color: var(--text); font-weight: 600; }

/* lists */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; position: relative; text-align: left; width: 100%; }
.li + .li::before { content: ""; position: absolute; top: 0; left: 54px; right: 0; height: 1px; background: var(--line); }
.li.flush + .li.flush::before { left: 0; }
.li-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; flex: none; color: var(--text); }
.li-ic.alert { color: var(--danger); } .li-ic.ok { color: var(--success); } .li-ic.gold { color: var(--accent); }
.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.li-t { font-weight: 600; font-size: 16px; line-height: 1.3; }
.li-s { font-size: 14px; color: var(--muted); line-height: 1.35; }
.li-v { text-align: right; font-weight: 600; font-size: 15px; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.li-v small { font-weight: 400; font-size: 13px; color: var(--muted); }
.li .chev { width: 18px; height: 18px; color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-weight: 600; font-size: 12px; letter-spacing: .01em; white-space: nowrap; }
.pill .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.pill-alert { color: var(--danger); box-shadow: inset 0 0 0 1px currentColor; }
.pill-ok { color: var(--success); box-shadow: inset 0 0 0 1px currentColor; }
.pill-gold { color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; }
.pill-solid { background: var(--accent); color: var(--on-accent); }
.fill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; font-size: 13px; font-weight: 600; opacity: .9; border: 1px dashed transparent; }

/* panels */
.panel { border-radius: var(--r-lg); background: var(--surface); padding: 18px; }
.panel-blue { border-radius: var(--r-lg); background: var(--blue); color: #fff; padding: 20px; position: relative; overflow: hidden; }
.panel-blue .small, .panel-blue .fine { color: rgba(255,255,255,.78); }
.hair { height: 1px; background: var(--line); }
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--surface); }
.seg button { flex: 1; min-height: 40px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
[data-theme="dark"] .seg button[aria-pressed="true"] { background: rgba(255,255,255,.14); }
.blur { filter: blur(6px); user-select: none; pointer-events: none; }
.lockover { position: relative; }
.lockover .lock-cta { position: absolute; inset: 0; display: grid; place-items: center; }

/* tabs */
.tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(64px + var(--bot)); padding-bottom: var(--bot); display: flex; background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 600; font-stretch: 108%; font-size: 11px; color: var(--faint); min-height: 44px; }
.tab .ic { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--accent); }
.tab .witsi { transition: transform .24s var(--ease); }
.tab[aria-current="page"] .witsi { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); }

/* photo hero */
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.82)); }
.photo .on { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.lightbar { position: absolute; top: 0; bottom: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(209,170,78,.0) 20%, rgba(209,170,78,.28) 50%, rgba(209,170,78,0) 80%, transparent); mix-blend-mode: screen; animation: sweep 3.6s var(--ease) 2; pointer-events: none; }
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(320%); } }

/* full-bleed blue */
.scr.blue { background: var(--blue); color: #fff; }
.scr.blue .lede, .scr.blue .small { color: rgba(255,255,255,.8); }
.scr.blue .btn-line { color: #fff; }
.scr.blue .btn-text { color: #fff; text-decoration-color: var(--gold); }
.scr.photo-bg { background: #000; color: #fff; padding-top: 0; }
.scr.photo-bg .bgimg { position: absolute; inset: 0; width: 100%; height: 62%; object-fit: cover; }
.scr.photo-bg .bgfade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,.2) 40%, #000 62%); }

/* reality check */
.find { display: flex; gap: 14px; padding: 16px 0; }
.find + .find { box-shadow: 0 -1px 0 var(--line); }
.find .n { width: 28px; height: 28px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--danger); color: var(--danger); display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px; }
.alert-head { display: flex; align-items: center; gap: 8px; color: var(--danger); font-weight: 700; font-stretch: 108%; font-size: 14px; letter-spacing: .02em; }

/* slider */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--p, 30%), var(--line) var(--p, 30%)); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 6px var(--sel), 0 4px 12px rgba(0,0,0,.4); }
.range::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 999px; background: #fff; }

/* calculating */
.calc-line { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,.55); transition: color .3s; }
.calc-line.done { color: #fff; }
.calc-line .dot { width: 22px; height: 22px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); display: grid; place-items: center; flex: none; }
.calc-line.done .dot { background: var(--gold); box-shadow: none; color: #000; }
.calc-line .dot svg { width: 12px; height: 12px; stroke-width: 3; opacity: 0; }
.calc-line.done .dot svg { opacity: 1; }

/* report numbers */
.big { font-weight: 800; font-stretch: 118%; font-size: 52px; line-height: .95; letter-spacing: -.035em; font-variant-numeric: tabular-nums lining-nums; }
.mid { font-weight: 800; font-stretch: 112%; font-size: 28px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }

/* paywall */
.plan { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--input); text-align: left; width: 100%; position: relative; }
.plan[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--sel); }
.plan .radio { width: 22px; height: 22px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--input); flex: none; }
.plan[aria-checked="true"] .radio { box-shadow: inset 0 0 0 7px var(--accent); }
.plan .tag { position: absolute; top: -11px; right: 14px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .tl-ic { width: 28px; height: 28px; border-radius: 999px; background: var(--surface2); display: grid; place-items: center; flex: none; color: var(--accent); }
.tl .tl-ic svg { width: 15px; height: 15px; }
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--sx) * -1); padding: 0 var(--sx); scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: center; flex: none; width: 78%; }
.countdown { font-family: var(--mono); font-weight: 500; font-size: 34px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* map */
.map { position: absolute; inset: 0; background: #05060f; }
.map svg { width: 100%; height: 100%; }
[data-theme="light"] .map { background: #eef0f7; }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pin .pin-h { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #000; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.pin.wit .pin-h { background: var(--gold); }
.pin .pin-l { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; white-space: nowrap; }
.me-dot { position: absolute; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 4px var(--blue), 0 0 0 14px rgba(45,49,146,.35); transform: translate(-50%, -50%); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.45); padding: 10px var(--sx) 12px; display: flex; flex-direction: column; max-height: 56%; }
.handle { width: 36px; height: 4px; border-radius: 999px; background: var(--input); align-self: center; margin-bottom: 12px; flex: none; }

/* chat */
.msgs { display: flex; flex-direction: column; gap: 14px; padding-bottom: 12px; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--surface2); border-bottom-right-radius: 6px; }
.msg.her { align-self: flex-start; background: transparent; box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; }
.composer { display: flex; gap: 8px; align-items: center; padding: 10px var(--sx) calc(var(--bot) + 6px); box-shadow: 0 -1px 0 var(--line); }
.with-tabs .composer { padding-bottom: 10px; }
.composer .input { height: 48px; border-radius: 999px; font-size: 16px; font-weight: 500; }
.send { width: 48px; height: 48px; border-radius: 999px; background: var(--pbg); color: var(--ptext); display: grid; place-items: center; flex: none; }

/* camera */
.cam { position: absolute; inset: 0; background: #000; color: #fff; display: flex; flex-direction: column; }
.cam-view { position: relative; flex: 1; margin: 0 16px; border-radius: var(--r-lg); overflow: hidden; background: #111; }
.cam-corners { position: absolute; inset: 22px; border-radius: 16px; }
.cam-corners i { position: absolute; width: 34px; height: 34px; border: 3px solid var(--gold); }
.cam-corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.cam-corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.cam-corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.cam-corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.shutter { width: 76px; height: 76px; border-radius: 999px; box-shadow: inset 0 0 0 4px #fff; display: grid; place-items: center; }
.shutter i { width: 60px; height: 60px; border-radius: 999px; background: #fff; transition: transform .2s var(--ease); }
.shutter:active i { transform: scale(.9); }
.bill { position: absolute; left: 50%; top: 50%; width: 64%; transform: translate(-50%, -50%) rotate(-3deg); background: #f4f1ea; color: #222; border-radius: 6px; padding: 16px 14px; font-family: var(--mono); font-size: 10.5px; line-height: 1.7; box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.bill b { font-weight: 500; display: block; font-size: 12px; text-align: center; padding-bottom: 6px; }
.bill .bl { display: flex; justify-content: space-between; }
.bill .bl.hl { background: rgba(255,107,94,.22); margin: 0 -4px; padding: 0 4px; }
.scanbar { position: absolute; left: 0; right: 0; height: 3px; background: var(--gold); box-shadow: 0 0 24px 6px rgba(209,170,78,.6); animation: scan 1.6s var(--ease) infinite alternate; }
@keyframes scan { from { top: 12%; } to { top: 86%; } }
.dmg { position: absolute; border: 2px solid var(--alert); border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0,0,0,0); }
.dmg span { position: absolute; top: -26px; left: -2px; background: var(--alert); color: #000; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }

/* toggles */
.tog { width: 52px; height: 32px; border-radius: 999px; background: var(--input); position: relative; flex: none; transition: background-color .2s; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 999px; background: #fff; transition: transform .24s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.tog[aria-checked="true"] { background: var(--accent); }
.tog[aria-checked="true"]::after { transform: translateX(20px); }

/* empty / states */
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px 28px; }
.empty .lede { max-width: 30ch; font-size: 16px; }
.empty-art { width: 120px; height: 120px; border-radius: 36px; display: grid; place-items: center; background: var(--surface); color: var(--faint); }
.empty-art svg { width: 48px; height: 48px; stroke-width: 1.5; }

/* cost bars */
.stackbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stackbar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* doc / membership */
.member { border-radius: var(--r-lg); background: var(--blue); color: #fff; padding: 20px; position: relative; overflow: hidden; min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; }
.member::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(209,170,78,.5), 0 0 0 26px rgba(209,170,78,.06); }
.washes { display: flex; gap: 5px; }
.washes i { width: 14px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); }
.washes i.on { background: var(--gold); }

/* index overlay */
.index { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); display: flex; justify-content: center; overflow-y: auto; color: #fff; }
.index-in { width: min(720px, 100%); padding: 32px 24px 64px; }
.index-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; position: sticky; top: -32px; background: #000; margin: -32px -24px 0; padding: 24px 24px 12px; z-index: 2; }
.index-top .icon-btn { color: #fff; }
.idx-g { padding-top: 24px; }
.idx-g h3 { font-weight: 700; font-stretch: 108%; font-size: 13px; letter-spacing: .04em; color: var(--gold); padding-bottom: 8px; }
.idx-list { display: flex; flex-wrap: wrap; gap: 8px; }
.idx-list button { min-height: 40px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: 14px; font-weight: 600; color: #fff; }
.idx-list button:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.idx-dot { position: absolute; z-index: 40; left: 0; top: 42%; width: 14px; height: 48px; border-radius: 0 10px 10px 0; display: grid; place-items: center; color: #fff; background: rgba(45,49,146,.7); opacity: .55; }
.idx-dot svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (min-width: 601px) { .idx-dot { display: none; } }


.toast { position: absolute; left: 20px; right: 20px; bottom: calc(84px + var(--bot)); z-index: 50; padding: 14px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; animation: enter .3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .lightbar, .scanbar { display: none; }
}

/* full-bleed screens always use the dark token set */
.scr.blue, .scr.photo-bg, .scr.cam-scr {
  --accent: var(--gold); --on-accent: #000; --pbg: var(--gold); --ptext: #000; --text: #fff; --muted: rgba(255,255,255,.8); --faint: rgba(255,255,255,.6);
  --line: rgba(255,255,255,.16); --input: rgba(255,255,255,.28); --surface: rgba(255,255,255,.1); --surface2: rgba(255,255,255,.16); --sel: rgba(209,170,78,.2); --focus: var(--gold);
  color: #fff;
}
.scr.cam-scr { background: #000; display: flex; flex-direction: column; }
.scr.cam-scr .cam-view { flex: 1; }
.mapscr { padding-top: 0 !important; }
.btn-danger { background: var(--danger); color: #fff; }
[data-theme="dark"] .btn-danger { color: #000; }
.modal { position: absolute; inset: 0; z-index: 45; background: rgba(0,0,0,.55); animation: fade .2s ease both; }
.modal .sheet { max-height: 80%; padding-bottom: calc(var(--bot) + 12px); animation: up .36s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
