/* MegaComplex Parking design system: blue #42B9FC and white, with quiet neutral greys for structure.
   Green, amber and red appear only where they carry a meaning (go/paid, filling up, stop/owed).
   Every colour, size, radius and duration is a token here. */
@font-face { font-family: Inter; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --blue: #42B9FC; --blue-2: #22A6F2; --blue-text: #0374B5; --on-blue: #FFFFFF; --white: #FFFFFF; --ink: #101B2D;
  --bg: #F4F5F7; --card: #FFFFFF; --card-2: #F8F9FB; --surface: #EEF0F3; --surface-2: #E3E6EB;
  --hairline: rgba(16,24,40,.08); --hairline-2: rgba(16,24,40,.14); --field: #8A919E;
  --text: #101B2D; --text-2: #5B6474; --text-3: #7A8290;
  --primary: var(--blue); --primary-2: var(--blue-2); --on-primary: var(--on-blue);
  --tint: rgba(66,185,252,.13); --on-tint: var(--blue-text);
  --go: #0F7B4A; --go-text: #0F7B4A; --go-soft: #E4F4EB;
  --stop: #B3261E; --stop-text: #B3261E; --stop-soft: #FBEAE8;
  --warn: #D99A00; --warn-text: #8A5A00; --warn-soft: #FFF4D9;
  --series: var(--blue); --series-soft: rgba(66,185,252,.16); --grid: rgba(16,24,40,.08);
  --meter-track: var(--surface); --meter-fill: var(--blue);
  --hero: var(--blue); --on-hero: var(--on-blue); --on-hero-2: var(--on-blue);
  --on-signal: #FFFFFF;
  --glass: rgba(244,245,247,.8);
  --shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 6px 24px rgba(16,24,40,.06);
  --shadow-lift: 0 2px 4px rgba(16,24,40,.06), 0 14px 36px rgba(16,24,40,.10);
  --shadow-float: 0 24px 64px rgba(16,24,40,.22);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-s: 10px; --r-m: 14px; --r-tile: 18px; --r-l: 22px; --r-card: 26px; --r-full: 999px;
  --d-press: 120ms; --d-value: 200ms; --d-step: 280ms; --d-sheet: 420ms;
  --e-in: cubic-bezier(.2,.8,.2,1); --e-out: cubic-bezier(.4,0,1,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0F1A; --card: #121A29; --card-2: #172134; --surface: rgba(255,255,255,.06); --surface-2: rgba(255,255,255,.11);
    --hairline: rgba(255,255,255,.08); --hairline-2: rgba(255,255,255,.15); --field: #7D8594;
    --text: #F2F4F7; --text-2: #A5ADBA; --text-3: #8790A0;
    --primary: var(--blue); --primary-2: #6CC8FD; --on-primary: var(--on-blue); --blue-text: var(--blue);
    --tint: rgba(66,185,252,.18); --on-tint: #8FD3FD;
    --go-text: #4CC38A; --go-soft: rgba(76,195,138,.14);
    --stop-text: #FF8A80; --stop-soft: rgba(255,138,128,.14);
    --warn-text: #F5C451; --warn-soft: rgba(245,196,81,.14);
    --series: var(--blue); --series-soft: rgba(66,185,252,.16); --grid: rgba(255,255,255,.08);
    --meter-track: rgba(255,255,255,.1); --meter-fill: var(--blue);
    --hero: var(--blue); --glass: rgba(10,15,26,.78);
    --shadow-card: 0 0 0 1px rgba(255,255,255,.06);
    --shadow-lift: 0 0 0 1px rgba(255,255,255,.12);
    --shadow-float: 0 24px 64px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body { font: 400 17px/1.5 Inter, system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; min-height: 100dvh; font-feature-settings: 'cv11', 'ss01'; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-appearance: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
a { color: inherit; }
ol, ul { list-style: none; }
.ic { flex: none; display: block; }

/* Type */
.eyebrow { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.caption { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .01em; }
.small { font-size: 15px; line-height: 22px; }
.strong { font-weight: 600; }
.title { font-size: 20px; line-height: 26px; font-weight: 650; letter-spacing: -.015em; }
.headline { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.large { font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -.03em; }
.hero { font-size: clamp(38px, 5vw, 60px); line-height: 1.02; font-weight: 750; letter-spacing: -.045em; }
.display { font-size: 56px; line-height: 60px; font-weight: 650; letter-spacing: -.035em; }
.num { font-variant-numeric: tabular-nums; }
.code { letter-spacing: .14em; font-feature-settings: 'tnum', 'ss02'; white-space: nowrap; font-weight: 650; }
.plate { font-feature-settings: 'tnum', 'ss02'; white-space: nowrap; letter-spacing: .02em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.go-text { color: var(--go-text); }
.stop-text { color: var(--stop-text); }
.warn-text { color: var(--warn-text); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Surfaces */
.card, .panel { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: var(--s5); }
.card.tight { padding: var(--s4); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.stack { display: grid; gap: var(--s4); }
.stack-s { display: grid; gap: var(--s2); }
.row-flex { display: flex; align-items: center; gap: var(--s3); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--hairline); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--s5); }

/* Top bar */
.appbar { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline); }
.appbar-in { display: flex; align-items: center; gap: var(--s4); min-height: 64px; padding: 0 var(--s5); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.015em; text-decoration: none; white-space: nowrap; }
.mark { width: 32px; height: 32px; border-radius: 10px; background: var(--blue); color: var(--on-blue); display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.appbar .end { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.appbar .status.plain { background: var(--card); box-shadow: var(--shadow-card); }
.nav { display: flex; gap: var(--s1); margin-left: var(--s4); }
.nav a, .nav button { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--r-full); text-decoration: none;
  font-weight: 550; font-size: 15px; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--tint); color: var(--text); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--go-text); }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--go-soft); }
.live.off { color: var(--stop-text); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--on-blue); display: grid; place-items: center; font-weight: 650; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; min-width: 48px; padding: 0 26px;
  border: 0; border-radius: var(--r-full); background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 16px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform var(--d-press) var(--e-in), opacity var(--d-value), background var(--d-value), box-shadow var(--d-value); }
.btn:hover:not(:disabled) { background: var(--primary-2); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .3; cursor: default; }
.btn.wide { width: 100%; }
.btn.lg { height: 58px; font-size: 17px; padding: 0 30px; }
.btn.sm { height: 42px; padding: 0 18px; font-size: 15px; gap: 8px; }
.btn.soft, .btn.soft:hover:not(:disabled) { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.btn.soft:hover:not(:disabled) { background: var(--card-2); }
.btn.white, .btn.white:hover:not(:disabled) { background: #fff; color: #0374B5; }
.btn.ghost-light, .btn.ghost-light:hover:not(:disabled) { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.quiet { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text-2); cursor: pointer; min-height: 44px;
  padding: 0 var(--s1); text-decoration: none; font-weight: 550; }
.quiet:hover { color: var(--text); }
.quiet.stop-text, .quiet.stop-text:hover { color: var(--stop-text); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--hairline-2); flex: none; }
.icon-btn:hover:not(:disabled) { background: var(--card-2); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.lg { width: 52px; height: 52px; }
.kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--hairline-2);
  border-bottom-width: 2px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--card); }

/* Choice controls */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; border-radius: 10px; min-height: 40px; font-weight: 600; font-size: 15px; color: var(--text-2); cursor: pointer;
  transition: background var(--d-value), color var(--d-value); padding: 0 8px; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.chips { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: wrap; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r-full);
  border: 1px solid var(--hairline-2); background: var(--card); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background var(--d-value), border-color var(--d-value); }
.chip:hover { border-color: var(--text-3); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--hairline-2);
  background: var(--card); cursor: pointer; font-weight: 600; font-size: 14px; }
.pill[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pill .count { font-weight: 500; opacity: .65; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  background: var(--tint); color: var(--on-tint); white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.go { background: var(--go-soft); color: var(--go-text); }
.status.stop { background: var(--stop-soft); color: var(--stop-text); }
.status.warn { background: var(--warn-soft); color: var(--warn-text); }
.status.plain::before { display: none; }

/* Inputs */
.field { display: grid; gap: var(--s2); }
.input { width: 100%; height: 54px; padding: 0 18px; border: 1px solid var(--hairline-2); border-radius: var(--r-m); background: var(--card);
  font-size: 17px; transition: border-color var(--d-value), box-shadow var(--d-value); }
.input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px var(--tint); }
.input::placeholder { color: var(--text-3); }
.input.big { height: 62px; font-size: 21px; font-weight: 600; border-radius: var(--r-l); }
.input-wrap { position: relative; }
.input-wrap .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-wrap .input { padding-left: 50px; }
/* The car number looks like the plate it is */
.plate-input { width: 100%; height: 80px; border-radius: 16px; border: 3px solid var(--ink); background: #FFFFFF; color: var(--ink);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(16,27,45,.25); text-align: center; font-size: 34px; font-weight: 750;
  letter-spacing: .08em; font-feature-settings: 'tnum', 'ss02'; text-transform: uppercase; }
.plate-input::placeholder { color: rgba(16,27,45,.2); }
.plate-input:focus { outline: none; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(16,27,45,.25), 0 0 0 5px rgba(66,185,252,.3); }
.plate-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font-weight: 750; font-size: 15px; letter-spacing: .05em; font-feature-settings: 'tnum', 'ss02'; white-space: nowrap; }
.plate-badge.lg { height: 46px; font-size: 22px; border-radius: 9px; padding: 0 14px; }
.plate-badge.empty { border-style: dashed; color: var(--text-3); border-color: var(--hairline-2); background: transparent; font-weight: 600; letter-spacing: 0; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.stepper .val { text-align: center; }

/* Meters and rings */
.meter { height: 8px; border-radius: 4px; background: var(--meter-track); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 4px; background: var(--meter-fill); transition: width var(--d-step) var(--e-in); }
.meter.warn > i { background: var(--warn); }
.meter.stop > i { background: var(--stop); }
.ring { position: relative; display: grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring .track { stroke: var(--meter-track); }
.ring .arc { transition: stroke-dashoffset var(--d-step) var(--e-in); }

/* Lists */
.list > * + * { border-top: 1px solid var(--hairline); }
.li { display: flex; align-items: center; gap: var(--s3); min-height: 60px; padding: var(--s2) 0; }
button.li, a.li { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; text-decoration: none; }
button.li:hover, a.li:hover { background: var(--card-2); }
.icon-circle { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--on-tint); display: grid; place-items: center; flex: none; }
.icon-circle.go { background: var(--go-soft); color: var(--go-text); }
.icon-circle.stop { background: var(--stop-soft); color: var(--stop-text); }
.card.li { background: var(--card); }
.card.li:hover { background: var(--card-2); }
.timeline { display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 14px 1fr auto; gap: var(--s3); padding-bottom: var(--s4); }
.timeline li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--card); border: 2px solid var(--text-3); }
.timeline li::after { content: ''; position: absolute; left: 6px; top: 22px; bottom: 2px; width: 2px; background: var(--hairline); }
.timeline li:last-child::after { display: none; }
.timeline li.go::before { border-color: var(--go-text); background: var(--go-text); }
.timeline li.stop::before { border-color: var(--stop-text); background: var(--stop-text); }

/* Progress */
.progress { height: 3px; background: var(--surface); overflow: hidden; position: relative; border-radius: 2px; }
.progress::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--text); border-radius: 2px; animation: run 1.1s var(--e-in) infinite; }
.bar-track { height: 4px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.bar-track > i { display: block; height: 100%; background: var(--go); border-radius: 2px; transform-origin: left; }

/* Rounded square tiles: hours on the home page and start times when booking */
.tiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.hour { position: relative; display: grid; align-content: space-between; gap: 6px; min-height: 96px; padding: 12px 12px 12px; border-radius: var(--r-tile);
  border: 1px solid var(--hairline-2); background: var(--card); cursor: pointer; text-align: left;
  transition: transform var(--d-press) var(--e-in), border-color var(--d-value), background var(--d-value), box-shadow var(--d-value); }
.hour:hover:not(:disabled) { border-color: var(--text); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.hour .t { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hour .n { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hour .bar { display: block; height: 4px; border-radius: 2px; background: var(--meter-track); overflow: hidden; }
.hour .bar b { display: block; height: 100%; border-radius: 2px; background: var(--meter-fill); }
.hour.low .n { color: var(--warn-text); }
.hour.low .bar b { background: var(--warn); }
.hour:disabled, .hour.full { opacity: .55; }
.hour:disabled { cursor: default; }
.hour:disabled .n, .hour.full .n { color: var(--stop-text); }
.hour.full[aria-pressed="true"] { opacity: 1; }
.hour[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-lift); }
.hour[aria-pressed="true"] .n { color: inherit; opacity: .85; }
.hour[aria-pressed="true"] .bar { background: rgba(127,127,127,.35); }
.hour[aria-pressed="true"] .bar b { background: currentColor; }
.legend { display: flex; gap: var(--s4); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--meter-fill); }
.hours12 { grid-template-columns: repeat(4, 1fr); }
.legend i.low { background: var(--warn); }
.legend i.none { background: var(--stop); }

/* Sheets: temporary layers carry the only strong shadow */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10,15,26,.34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade var(--d-sheet) var(--e-in); }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 520px; max-height: 92dvh; overflow: auto;
  background: var(--card); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-float); padding: var(--s3) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom));
  animation: sheet-up var(--d-sheet) var(--e-in); }
.sheet::before { content: ''; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--surface-2); margin: 0 auto var(--s5); }
.sheet.drawer { top: 12px; bottom: 12px; right: 12px; left: auto; margin: 0; width: min(500px, calc(100% - 24px)); max-width: none; max-height: none;
  border-radius: 28px; padding: var(--s6); animation: drawer-in var(--d-sheet) var(--e-in); }
.sheet.drawer::before { display: none; }
@media (min-width: 720px) { .sheet:not(.drawer) { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 28px; padding: var(--s6); animation: fade var(--d-sheet) var(--e-in); }
  .sheet:not(.drawer)::before { display: none; } }
@media (max-width: 640px) { .sheet.drawer { inset: 0; width: 100%; border-radius: 0; padding: var(--s5); } }

/* USSD prompt, drawn like a neutral phone system alert */
.ussd { position: fixed; z-index: 45; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(300px, calc(100% - 48px)); text-align: center;
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-float); overflow: hidden; animation: pop var(--d-sheet) var(--e-in); }
.ussd .body { padding: var(--s5) var(--s4) var(--s4); display: grid; gap: var(--s3); }
.ussd .input { height: 44px; text-align: center; letter-spacing: .6em; font-size: 22px; border-radius: 10px; }
.ussd .acts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hairline); }
.ussd .acts button { background: none; border: 0; min-height: 50px; font-size: 17px; cursor: pointer; color: var(--text); }
.ussd .acts button + button { border-left: 1px solid var(--hairline); font-weight: 650; }
.ussd.inline { position: static; transform: none; width: 100%; box-shadow: none; border: 1px solid var(--hairline-2); animation: none; }


/* ---------- Customer app ---------- */
.shell { max-width: 1200px; margin: 0 auto; padding: var(--s5) var(--s5) var(--s8); display: grid; gap: var(--s5); }
.dock { display: none; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin: var(--s4) 0 0; }
.home-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s5); align-items: stretch; }
.hero-card { background: var(--hero); color: var(--on-hero); border-radius: 30px; padding: var(--s7); display: flex; flex-direction: column; gap: var(--s5); position: relative; overflow: hidden; }
.hero-card .muted, .hero-card .eyebrow { color: var(--on-hero-2); }
.hero-card .icon-circle { background: rgba(255,255,255,.1); color: #fff; }
.hero-card .lead { font-size: 19px; line-height: 1.5; color: var(--on-hero-2); max-width: 470px; }
.hero-card .actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: auto; }
.hero-points { display: grid; gap: var(--s3); }
.hero-points div { display: flex; align-items: center; gap: var(--s3); font-size: 15px; }
.live-card { display: grid; gap: var(--s5); align-content: start; }
.avail { display: flex; align-items: center; gap: var(--s5); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.plan { display: flex; flex-direction: column; gap: var(--s3); transition: box-shadow var(--d-value), transform var(--d-press); }
.plan:hover { box-shadow: var(--shadow-lift); }
.plan .price { font-size: 32px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.plan .price small { font-size: 15px; font-weight: 550; color: var(--text-2); letter-spacing: 0; }
.plan .btn { margin-top: auto; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.how li { display: grid; gap: var(--s3); align-content: start; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--on-blue); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.step-num.done { background: var(--go); }
.mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.mine-card { display: grid; gap: var(--s3); text-decoration: none; transition: box-shadow var(--d-value); }
.mine-card:hover { box-shadow: var(--shadow-lift); }
.foot { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding: var(--s5) 0; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--hairline); }

/* Booking: one page, three questions, a live ticket that fills in */
.book { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s5); align-items: start; }
.book-main { display: grid; gap: var(--s4); min-width: 0; }
.book-head { display: flex; align-items: center; gap: var(--s4); padding: var(--s2) 0; }
.qcard { display: grid; gap: var(--s4); }
.qhead { display: flex; align-items: center; gap: var(--s3); }
.qhead h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.qhead .hint { margin-left: auto; }
.book-side { position: sticky; top: 88px; display: grid; gap: var(--s3); }
.product-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.product { display: grid; gap: 2px; text-align: left; padding: var(--s4); border-radius: var(--r-tile); border: 1.5px solid var(--hairline-2); background: var(--card);
  cursor: pointer; transition: border-color var(--d-value), background var(--d-value), color var(--d-value), box-shadow var(--d-value); }
.product:hover { border-color: var(--text-3); }
.product[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); box-shadow: var(--shadow-lift); }
.product[aria-pressed="true"] .muted { color: inherit; opacity: .75; }
.product .ic { margin-bottom: 8px; }
.product .caption { white-space: nowrap; }
.duration { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; padding: var(--s3); border-radius: var(--r-tile); background: var(--card-2); border: 1px solid var(--hairline); }
.duration .val { min-width: 120px; text-align: center; }
.cal { border: 1px solid var(--hairline-2); border-radius: var(--r-tile); padding: var(--s3); max-width: 420px; animation: fade var(--d-step) var(--e-in); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); }
.cal-head .icon-btn { width: 36px; height: 36px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border-radius: 12px; border: 1px solid transparent; background: none; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.cal-day:hover:not(:disabled) { border-color: var(--text-3); }
.cal-day.today { border-color: var(--hairline-2); }
.cal-day[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.cal-day:disabled { color: var(--text-3); opacity: .45; cursor: default; }
.qchips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.qchips .chip { width: 44px; justify-content: center; padding: 0; }
.net-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-full); background: var(--go-soft); color: var(--go-text);
  font-weight: 600; font-size: 13px; }
.net-badge.unknown { background: var(--warn-soft); color: var(--warn-text); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
.kv dt { font-size: 13px; color: var(--text-2); font-weight: 500; }
.kv dd { font-weight: 650; }
.kv dd.nil { color: var(--text-3); font-weight: 500; }
.pay-note { display: flex; align-items: center; gap: var(--s2); justify-content: center; color: var(--text-2); font-size: 13px; }

/* Ticket, like a wallet pass */
.ticket { background: var(--card); border-radius: 28px; box-shadow: var(--shadow-card); overflow: hidden; position: relative; }
.ticket-head { background: var(--hero); color: var(--on-hero); padding: var(--s5); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.ticket-head .mark { background: #fff; color: #0374B5; }
.ticket-head .status { background: rgba(255,255,255,.14); color: #fff; }
.ticket-head .status.go { background: #E4F4EB; color: #0F7B4A; }
.ticket-body { padding: var(--s5); display: grid; gap: var(--s5); justify-items: center; text-align: center; }
.ticket-cut { position: relative; height: 0; border-top: 2px dashed var(--hairline-2); margin: 0 22px; }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket-cut::before { left: -35px; } .ticket-cut::after { right: -35px; }
.ticket-foot { padding: var(--s5); }
.ticket-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.qr { background: #fff; padding: 14px; border-radius: 20px; width: 212px; height: 212px; box-shadow: 0 0 0 1px rgba(16,24,40,.08); }
.qr svg { width: 100%; height: 100%; display: block; }
.pass-code { font-size: clamp(40px, 5vw, 54px); line-height: 1; }
.countdown { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-full); background: var(--tint); color: var(--on-tint); font-weight: 600; font-size: 15px;
  font-variant-numeric: tabular-nums; }
.countdown.go { background: var(--go-soft); color: var(--go-text); }
.countdown.stop { background: var(--stop-soft); color: var(--stop-text); }
.actions-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--s2); }
.pass-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.pass-side { display: grid; gap: var(--s4); }
.done-head { display: flex; align-items: center; gap: var(--s4); }
.done-head .icon-circle { width: 56px; height: 56px; border-radius: 18px; }
.wait { display: grid; justify-items: center; text-align: center; gap: var(--s3); padding: var(--s4) 0; }
.wait-phone { width: 88px; height: 88px; border-radius: 26px; background: var(--tint); color: var(--on-tint); display: grid; place-items: center; }

@media (max-width: 960px) {
  .home-hero, .book, .pass-layout { grid-template-columns: 1fr; }
  .plans, .how { grid-template-columns: 1fr; }
  .book-side { position: static; }
  .book-side .pay-row { display: none; }
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--glass); backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--hairline); padding: var(--s3) 20px calc(var(--s3) + env(safe-area-inset-bottom)); }
  .dock-in { max-width: 560px; margin: 0 auto; display: grid; gap: var(--s2); }
  .dock .sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
  .shell { padding: var(--s4) var(--s4) 150px; gap: var(--s4); }
  .hero-card { padding: var(--s6) var(--s5); }
  .hero-card .actions .btn { flex: 1; }
  .nav, #topCta { display: none; }
}
@media (max-width: 560px) {
  .chips.scroll { flex-wrap: nowrap; }
  .product-cards { grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
  .product { padding: 12px; }
  .product .caption { font-size: 11px; }
  .tiles-grid, .hours12 { grid-template-columns: repeat(3, 1fr); }
  .qchips { margin-left: 0; }
  .avail { gap: var(--s4); }
}

/* ---------- Gate panel ---------- */
.gate { height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.gate-body { display: grid; grid-template-columns: 1fr 380px; gap: var(--s4); padding: var(--s4); min-height: 0; }
.gate-main { display: grid; grid-template-rows: 1fr auto; gap: var(--s4); min-height: 0; min-width: 0; }
.stage { position: relative; border-radius: 30px; background: var(--card); box-shadow: var(--shadow-card); display: flex; flex-direction: column; justify-content: center;
  padding: var(--s7) var(--s8); overflow: hidden; min-height: 0; }
.stage.go { background: var(--go); color: var(--on-signal); box-shadow: none; }
.stage.stop { background: var(--stop); color: var(--on-signal); box-shadow: none; }
.stage.go .muted, .stage.stop .muted, .stage.go .quiet, .stage.stop .quiet { color: rgba(255,255,255,.92); }
.stage .progress { background: rgba(255,255,255,.3); }
.stage .progress::after { background: #fff; }
.chip-dir { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: var(--r-full); background: rgba(255,255,255,.18); font-weight: 650; font-size: 15px; }
.verdict-word { font-size: 40px; font-weight: 800; letter-spacing: .1em; line-height: 1; }
.verdict-plate { font-size: 112px; line-height: 1; font-weight: 800; letter-spacing: -.01em; margin: var(--s4) 0 var(--s5); white-space: nowrap; overflow: hidden; }
.verdict-facts { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); }
.verdict-facts dt { font-size: 13px; font-weight: 600; opacity: .8; }
.verdict-facts dd { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.verdict-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s6); }
.idle { display: grid; justify-items: center; gap: var(--s2); text-align: center; }
.idle .clock { font-size: clamp(64px, 9vw, 124px); line-height: 1; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--blue-text); }
.hints { display: flex; gap: var(--s5); margin-top: var(--s5); color: var(--text-2); font-size: 14px; flex-wrap: wrap; justify-content: center; }
.hints span { display: inline-flex; align-items: center; gap: 8px; }
.composer { position: relative; }
.composer .input { height: 70px; border-radius: 22px; padding: 0 150px 0 58px; font-size: 22px; font-weight: 600; background: var(--card); box-shadow: var(--shadow-card); border-color: var(--hairline); }
.composer .input:focus { border-color: var(--text); }
.composer > .ic { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.composer .go-btn { position: absolute; right: 10px; top: 10px; height: 50px; }
.composer .go-btn .kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .6; }
.composer .msg { position: absolute; left: 20px; bottom: calc(100% + 8px); }
.side { display: grid; gap: var(--s4); align-content: start; overflow: auto; min-height: 0; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.stat-mini { background: var(--card-2); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px; }
.stat-mini b { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.2; }
.pick-list { max-width: 720px; width: 100%; margin: 0 auto; }
@media (max-width: 1000px) {
  .gate { height: auto; min-height: 100dvh; }
  .gate-body { grid-template-columns: 1fr; }
  .stage { min-height: 60vh; padding: var(--s6) var(--s5); }
  .composer .input { font-size: 18px; }
}

/* ---------- Owner panel ---------- */
.owner { max-width: 1240px; margin: 0 auto; padding: var(--s5) var(--s5) var(--s8); display: grid; gap: var(--s4); }
.owner-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding: var(--s4) 0 var(--s2); }
.datectl { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border-radius: var(--r-full); padding: 4px; box-shadow: var(--shadow-card); }
.datectl .icon-btn { width: 36px; height: 36px; background: none; box-shadow: none; }
.daylabel { position: relative; padding: 0 12px; font-weight: 650; cursor: pointer; min-width: 110px; text-align: center; }
.daylabel input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.tile { display: grid; gap: var(--s2); align-content: start; }
.tile .value { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.tile .value small { font-size: .5em; font-weight: 600; color: var(--text-2); letter-spacing: -.01em; }
.tile.hero-tile { background: var(--hero); color: var(--on-hero); }
.tile.hero-tile .muted, .tile.hero-tile .value small, .tile.hero-tile .eyebrow { color: var(--on-hero-2); }
.delta { font-size: 13px; font-weight: 600; }
.charts { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s4); }
.breakdowns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axis-label { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .ref { stroke: var(--text-3); stroke-width: 1; opacity: .6; }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--series-soft); }
.chart .col { fill: var(--series); }
.chart .col.dim { opacity: .35; }
.chart .dot { fill: var(--series); stroke: var(--card); stroke-width: 2; }
.chart .cross { stroke: var(--text-3); stroke-width: 1; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--card); border-radius: 12px; box-shadow: var(--shadow-float); padding: 8px 12px;
  font-size: 13px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.tip b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.tip .key { display: inline-block; width: 12px; height: 2px; background: var(--series); vertical-align: middle; margin-right: 6px; }
.hbars { display: grid; gap: var(--s3); }
.hbar { display: grid; grid-template-columns: 110px 1fr auto; gap: var(--s3); align-items: center; font-size: 15px; }
.hbar .track { height: 10px; background: var(--meter-track); border-radius: 5px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--series); border-radius: 0 4px 4px 0; }
.hbar .v { font-weight: 650; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
.exc-banner { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: 18px; background: var(--stop-soft); color: var(--stop-text);
  font-weight: 600; border: 0; cursor: pointer; text-align: left; width: 100%; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.toolbar .pills { display: flex; gap: var(--s2); flex-wrap: wrap; }
.search { width: 240px; height: 40px; border-radius: var(--r-full); padding-left: 42px; font-size: 15px; }
.tbl { width: 100%; }
.trow { display: grid; grid-template-columns: 1.3fr 1fr .7fr .7fr .9fr 1fr 1fr; gap: var(--s3); align-items: center; min-height: 64px; padding: 0 var(--s3);
  border-top: 1px solid var(--hairline); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.trow:hover { background: var(--card-2); }
.trow.head { min-height: 36px; border-top: 0; cursor: default; font-size: 13px; font-weight: 600; color: var(--text-2); }
.trow.head:hover { background: none; }
.trow > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: var(--s7) var(--s4); text-align: center; color: var(--text-2); display: grid; gap: var(--s2); justify-items: center; }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr; } .charts, .breakdowns { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .owner { padding: var(--s3) var(--s3) var(--s7); }
  .tiles { gap: var(--s2); } .tile { padding: var(--s4); }
  .trow { grid-template-columns: 1.3fr 1fr .9fr; }
  .c-type, .c-in, .c-out, .c-stay { display: none; }
  .search { width: 100%; }
}

/* ---------- Sign-in: navy statement on the left, the form on the right ---------- */
.signin { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.signin-side { background: var(--hero); color: var(--on-hero); padding: var(--s7); display: flex; flex-direction: column; gap: var(--s5); }
.signin-side .muted { color: var(--on-hero-2); }
.signin-side .mark { background: #fff; color: #0374B5; }
.signin-side .points { margin-top: auto; display: grid; gap: var(--s3); }
.signin-side .points div { display: flex; gap: var(--s3); align-items: center; }
.signin-side .icon-circle { background: rgba(255,255,255,.1); color: #fff; }
.signin-form { display: grid; place-items: center; padding: var(--s5); }
.signin-form form { width: min(380px, 100%); display: grid; gap: var(--s4); }
@media (max-width: 860px) { .signin { grid-template-columns: 1fr; } .signin-side { padding: var(--s6) var(--s5); } .signin-side .points { display: none; } }

/* ---------- Dev tools ---------- */
.devpage { max-width: 1240px; margin: 0 auto; padding: var(--s5); display: grid; grid-template-columns: 1fr 380px; gap: var(--s4); align-items: start; }
.dev-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.dev-cards .wide { grid-column: 1 / -1; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.screen-link { display: grid; gap: 6px; padding: var(--s4); border-radius: var(--r-tile); background: var(--card-2); border: 1px solid var(--hairline); text-decoration: none;
  transition: box-shadow var(--d-value), border-color var(--d-value); }
.screen-link:hover { border-color: var(--text-3); box-shadow: var(--shadow-lift); }
.device { position: sticky; top: 96px; width: 360px; height: 740px; border-radius: 54px; background: #0b0b0c; padding: 12px; box-shadow: var(--shadow-float); }
.device-screen { height: 100%; border-radius: 42px; background: var(--bg); overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; }
.device-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px 6px; font-size: 14px; font-weight: 650; }
.device-island { width: 110px; height: 30px; border-radius: 20px; background: #0b0b0c; }
.device-top { padding: 6px var(--s4) 10px; border-bottom: 1px solid var(--hairline); display: grid; gap: 8px; }
.device-top select { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--hairline-2); background: var(--card); padding: 0 10px; font-weight: 600; }
.thread { overflow: auto; padding: var(--s4); display: grid; gap: 10px; align-content: start; }
.bubble { max-width: 88%; background: var(--card); border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-size: 15px; line-height: 1.4; word-break: break-word; box-shadow: var(--shadow-card); }
.bubble a { color: inherit; font-weight: 600; }
.device-foot { padding: var(--s3); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 15px; background: var(--surface-2); transition: background var(--d-value); pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--d-value) var(--e-in); }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(20px); }
input[type=range] { width: 100%; accent-color: var(--blue-text); }
@media (max-width: 1000px) { .devpage { grid-template-columns: 1fr; } .device { position: static; margin: 0 auto; width: 100%; max-width: 360px; } .dev-cards, .screens { grid-template-columns: 1fr; } }

/* Motion: only in answer to an action */
.step-in { animation: step var(--d-step) var(--e-in); }
.settle { animation: settle 420ms var(--e-in); }
.rise { animation: rise var(--d-step) var(--e-in); }
.fade-in { animation: fade var(--d-step) var(--e-in); }
@keyframes step { from { opacity: 0; transform: translateY(8px); } }
@keyframes settle { from { opacity: 0; transform: scale(.97) translateY(8px); } }
@keyframes rise { from { clip-path: inset(100% 0 0 0 round 30px); } to { clip-path: inset(0 0 0 0 round 30px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes drawer-in { from { transform: translateX(110%); } }
@keyframes run { from { left: -30%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 120ms !important; transition-duration: 120ms !important; }
  @keyframes step { from { opacity: 0; } }
  @keyframes settle { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; } }
  @keyframes pop { from { opacity: 0; } }
  @keyframes sheet-up { from { opacity: 0; } }
  @keyframes drawer-in { from { opacity: 0; } }
  .progress::after { animation: none; left: 0; width: 100%; opacity: .5; }
}
