/* CabAuto — coming soon. Direction: the page is the object (the ride slip and its folders). */
:root {
  --night: #0e1a2b;
  --paper: #f4f6f4;
  --surface: #e4e9e6;
  --ink: #0e1a2b;
  --muted: #3f4f63;
  --red: #c8102e;
  --red-deep: #9e0c24;
  --amber: #ffb81c;
  --amber-deep: #e9a300;
  --green: #096043;
  --blue: #1a44c8;
  --accent: var(--amber);
  --accent-ink: var(--night);

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4rem, 10vw, 10rem);

  --margin: clamp(16px, 3.4vw, 48px);
  --gutter: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 10vw, 150px);
  --chamfer: 10px;
  --bar-h: 60px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--night); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--amber); color: var(--night); padding: 10px 16px; }
.skip:focus { left: 8px; }

.wordmark { font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.wordmark span, .wordmark-sm span { color: var(--amber); }

/* One button shape: the folder tab's cut top corners */
.btn, .cell, .dlg-btn {
  clip-path: polygon(0 100%, 0 var(--chamfer), var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%);
}
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; background: var(--night); color: var(--paper); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.btn:active, .cell:active, .dlg-btn:active { transform: translateY(1px) scale(0.985); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #1f3352; } }

.h-head { font-size: var(--step-head); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.h-big { font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; }

/* ---------- HERO: tabbed folder stack ---------- */
.hero { position: relative; height: 100svh; min-height: 820px; background: var(--night); color: var(--paper); overflow: hidden; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 24px var(--margin) 0; }
.topbar .wordmark { font-size: var(--step-lead); grid-column: 2; }
.topbar-link { justify-self: end; font-size: var(--step-small); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .topbar-link:hover { color: var(--amber); } }
.hero-head { text-align: center; padding: 0 var(--margin); margin-top: clamp(28px, 4.5vh, 56px); }
.hero h1 { font-size: clamp(3.5rem, 7.4vw, 8.5rem); line-height: 0.92; letter-spacing: -0.045em; font-weight: 600; }
.h1-line { display: block; white-space: nowrap; }
.ten { color: var(--amber); }
.hero-sub { max-width: 46ch; margin: 24px auto 0; font-size: var(--step-lead); line-height: 1.35; }

.folders { position: absolute; left: 7vw; right: 7vw; top: max(54%, 470px); bottom: 0; }
.folder { position: absolute; left: 0; right: 0; top: calc(var(--n) * 52px); bottom: -80px; display: block; text-decoration: none; transition: transform var(--t-ui) var(--ease-out); }
.folder .tab { position: absolute; top: -40px; left: var(--tab); height: 41px; display: flex; align-items: center; padding: 0 30px; font-size: var(--step-body); font-weight: 500; white-space: nowrap; background: inherit; color: inherit; text-decoration: none; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%); }
.f1 { --n: 0; background: var(--paper); color: var(--ink); }
.f2 { --n: 1; background: var(--red); color: var(--paper); }
.f3 { --n: 2; background: var(--surface); color: var(--ink); }
.f4 { --n: 3; background: var(--green); color: var(--paper); }
.f5 { --n: 4; background: var(--blue); color: var(--paper); }
.f6 { --n: 5; background: var(--amber); color: var(--night); }
@media (hover: hover) and (pointer: fine) {
  a.folder:hover, a.folder:focus-visible { transform: translateY(-10px); }
}
.front-body { display: flex; align-items: flex-start; gap: 40px; padding: 24px 32px; }
.front-note { max-width: 46ch; font-size: var(--step-body); padding-top: 12px; }

/* ---------- STICKY BAR ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--bar-h); display: flex; align-items: center; gap: 32px; padding: 0 var(--margin); background: var(--night); color: var(--paper); transform: translateY(-100%); transition: transform 360ms var(--ease-out); }
.bar.is-on { transform: none; }
.bar .wordmark { font-size: var(--step-lead); }
.bar-nav { display: flex; gap: 24px; margin-left: auto; font-size: var(--step-small); }
.bar-nav a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color var(--t-hover) ease; }
.bar-nav a[aria-current="true"] { text-decoration-color: var(--amber); }
@media (hover: hover) and (pointer: fine) { .bar-nav a:hover { text-decoration-color: var(--paper); } .bar-btn:hover { background: var(--amber-deep); } }
.bar-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; background: var(--amber); color: var(--night); font-size: var(--step-small); font-weight: 600; text-decoration: none; white-space: nowrap; clip-path: polygon(0 100%, 0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% 100%); transition: background-color var(--t-hover) ease; }
@media (max-width: 1100px) { .bar-nav { display: none; } .bar-btn { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* ---------- PROMISE: the 10-minute clock ---------- */
.promise { background: var(--paper); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--section) var(--margin); align-items: center; }
.promise-copy { grid-column: 1 / 6; }
.promise .h-big { max-width: 12ch; }
.promise-lead { margin-top: 24px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
.rules { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 4px; max-width: 460px; }
.rules li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: baseline; padding: 16px 20px; background: var(--surface); }
.rules b { font-weight: 600; color: var(--red-deep); font-variant-numeric: tabular-nums; }
.watch { grid-column: 7 / 13; background: var(--night); color: var(--paper); padding: 40px; display: grid; gap: 32px; clip-path: polygon(0 100%, 0 var(--chamfer), var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%); }
.dial { position: relative; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial circle { fill: none; }
.d-base { stroke: #24364f; stroke-width: 22; }
.d-over { stroke: #4a1d2b; stroke-width: 22; }
.d-fill { stroke: var(--amber); stroke-width: 22; }
.d-late { stroke: var(--red); stroke-width: 22; }
.d-tick { stroke: #6f819a; stroke-width: 2; }
.d-tick.major { stroke: var(--paper); stroke-width: 4; }
.d-label { fill: var(--paper); font-family: var(--font); font-size: 15px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
.d-car { fill: var(--paper); stroke: var(--night); stroke-width: 4; }
.d-car-dot { fill: var(--night); }
.dial-read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; pointer-events: none; }
.dial-time { font-size: clamp(3rem, 6vw, 5.25rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.dial-state { font-size: var(--step-body); font-weight: 600; padding: 4px 14px; background: var(--amber); color: var(--night); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.watch.is-late .dial-state { background: var(--red); color: var(--paper); }
.watch.is-late .dial-time { color: #ff8a9b; }
.arrive label { display: block; font-weight: 500; }
.arrive output { display: inline-block; min-width: 6.4em; background: var(--amber); color: var(--night); padding: 0 8px; font-variant-numeric: tabular-nums; }
.watch.is-late .arrive output { background: var(--red); color: var(--paper); }
.arrive input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 12px 0 4px; touch-action: pan-y; }
.arrive-range { position: relative; }
.zone { position: absolute; top: 30px; height: 8px; }
.zone-ok { left: 0; width: 66.667%; background: var(--amber); }
.zone-late { left: 66.667%; right: 0; background: var(--red); }
.arrive input[type="range"] { position: relative; }
.arrive input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: transparent; }
.arrive input[type="range"]::-moz-range-track { height: 8px; background: transparent; }
.arrive input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; background: var(--paper); border: 4px solid var(--night); outline: 2px solid var(--paper); border-radius: 50%; transition: transform var(--t-press) var(--ease-out); }
.arrive input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; background: var(--paper); border: 4px solid var(--night); border-radius: 50%; }
.arrive input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.arrive-scale { position: relative; height: 1.5em; font-size: var(--step-small); }
.arrive-scale span { position: absolute; top: 0; }
.arrive-scale span:first-child { left: 0; }
.arrive-scale span:last-child { right: 0; }
.arrive-scale .mark { left: 66.667%; transform: translateX(-50%); font-weight: 600; color: var(--amber); }
.arrive-foot { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.btn-run { background: var(--amber); color: var(--night); flex: none; justify-content: center; }
@media (hover: hover) and (pointer: fine) { .btn-run:hover { background: var(--amber-deep); } }
.btn-run[disabled] { opacity: 0.75; cursor: progress; }
.watch-title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; margin-bottom: -8px; }
.verdict { font-size: var(--step-body); font-weight: 500; min-height: 3em; display: flex; align-items: center; }

/* ---------- RIDES: square plate, spare text ---------- */
.rides { background: var(--red); color: var(--paper); display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.rides-plate { display: flex; align-items: center; padding: var(--section) 40px; }
.plate { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--red-deep); }
.plate-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-ui) ease; }
.plate-img[data-for="airport"] { object-position: 64% 50%; }
.plate-img.is-on { opacity: 1; }
.stub { position: absolute; left: 0; bottom: 32px; display: flex; flex-direction: column; gap: 2px; padding: 16px 28px 16px 22px; background: var(--paper); color: var(--ink); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); }
.stub-k { font-size: var(--step-small); color: var(--muted); }
.stub-v { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.rides-text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: var(--section) var(--margin) var(--section) 40px; }
.ride-tabs { display: flex; gap: 28px; margin-top: 32px; }
.ride-tabs button { font-size: var(--step-body); padding: 6px 0; font-weight: 400; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 8px; transition: text-decoration-color var(--t-hover) ease; }
.ride-tabs button[aria-selected="true"] { font-weight: 600; text-decoration-color: var(--amber); }
@media (hover: hover) and (pointer: fine) { .ride-tabs button:hover { text-decoration-color: var(--paper); } .ride-tabs button[aria-selected="true"]:hover { text-decoration-color: var(--amber); } }
.ride-title { font-size: var(--step-head); line-height: 1; letter-spacing: -0.04em; font-weight: 600; max-width: 14ch; }
.ride-desc { max-width: 34ch; margin-top: 48px; }
.ride-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ride-facts li { background: var(--red-deep); padding: 6px 12px; font-size: var(--step-small); }
.ride-panel.swap .ride-title, .ride-panel.swap .ride-desc, .ride-panel.swap .ride-facts { animation: swap var(--t-ui) var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.cells { display: grid; grid-template-columns: 1fr; gap: 8px; max-width: 360px; }
.cell { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 72px; padding: 0 16px; font-weight: 500; text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cell-ink { background: var(--night); color: var(--paper); }
.cell-tone { background: var(--red-deep); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .cell-ink:hover { background: #1f3352; } .cell-tone:hover { background: #870a1f; } }

/* ---------- WHAT RUNS ITSELF: stacking colour sheets ---------- */
.auto { padding: 104px 0 0; background: var(--surface); }
.auto-title { padding: 0 var(--margin); }
.auto-lead { padding: 0 var(--margin); margin: 24px 0 48px; max-width: calc(42ch + 2 * var(--margin)); font-size: var(--step-lead); line-height: 1.35; }
.sheets { position: relative; }
.sheet { position: sticky; top: calc(var(--bar-h) + var(--k) * 72px); height: calc(86svh - var(--bar-h) - var(--k) * 72px); min-height: calc(600px - var(--k) * 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 72px 1fr; column-gap: var(--gutter); padding: 0 var(--margin); }
.s1 { --k: 0; background: var(--night); color: var(--paper); }
.s2 { --k: 1; background: var(--red); color: var(--paper); }
.s3 { --k: 2; background: var(--amber); color: var(--night); }
.s4 { --k: 3; background: var(--blue); color: var(--paper); }
.sheet-name { grid-column: 1 / 7; grid-row: 1; align-self: center; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.sheet-text { grid-column: 1 / 6; grid-row: 2; align-self: end; max-width: 40ch; padding-bottom: 56px; font-size: var(--step-body); }
.sheet-media { grid-column: 7 / 13; grid-row: 2; margin-right: calc(var(--margin) * -1); overflow: hidden; }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-ui { display: flex; justify-content: center; align-items: flex-start; padding-top: 40px; }
.s1 .sheet-ui { background: #1a2a40; }
.s3 .sheet-ui { background: var(--amber-deep); }

/* Product fragments (data-ui): the product's own conventions */
.ui-card { width: 440px; max-width: calc(100% - 32px); background: #fff; color: #141a22; border-radius: 12px; padding: 20px; font-size: 15px; line-height: 1.4; box-shadow: 0 1px 2px rgba(14, 26, 43, 0.12), 0 12px 32px rgba(14, 26, 43, 0.18); /* taste-skill-ignore: product card casts its own shadow */ }
.ui-row { display: flex; justify-content: space-between; align-items: center; }
.ui-head { font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.ui-pill { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: #e3f3ea; color: #0b5e3e; }
.ui-route { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.ui-route b { display: block; font-weight: 500; }
.ui-route small, .ui-person small { display: block; color: #556070; font-size: 13px; }
.ui-dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: #141a22; flex: none; }
.ui-dot-end { background: var(--amber); }
.ui-list { margin-top: 12px; border-top: 1px solid #e8ebee; /* taste-skill-ignore: product list rule */ }
.ui-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #eef0f2; /* taste-skill-ignore: product list rule */ }
.ui-list li span:first-child { color: #556070; }
.ui-ok { color: #0b5e3e; font-weight: 500; }
.ui-none { color: #141a22; font-weight: 500; }
.ui-btn { margin-top: 16px; background: #141a22; color: #fff; text-align: center; padding: 12px; border-radius: 8px; font-weight: 500; }
.ui-person { display: flex; align-items: center; gap: 12px; }
.ui-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 600; }
.ui-person b { font-weight: 600; }
.ui-msg { margin-top: 16px; gap: 8px; }
.ui-msg span { flex: 1; text-align: center; padding: 11px; border-radius: 8px; background: #f0f2f4; font-weight: 500; }
.ui-msg span:first-child { background: #141a22; color: #fff; }

/* ---------- ONE RIDE: itinerary on a slip ---------- */
.ride { background: var(--green); color: var(--paper); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--section) var(--margin); align-items: start; }
.ride-copy { grid-column: 1 / 6; grid-row: 1; }
.landing { grid-column: 1 / 6; grid-row: 2; }
.ride-lead { max-width: 30ch; margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; }
.delay { margin-top: 40px; }
.delay label { display: block; font-weight: 500; }
.delay output { display: inline-block; min-width: 4.6em; background: var(--amber); color: var(--night); padding: 0 8px; font-variant-numeric: tabular-nums; }
.delay input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 12px 0 4px; touch-action: pan-y; }
.delay input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: #054530; }
.delay input[type="range"]::-moz-range-track { height: 8px; background: #054530; }
.delay input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; background: var(--amber); border: 4px solid var(--paper); border-radius: 50%; transition: transform var(--t-press) var(--ease-out); }
.delay input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; background: var(--amber); border: 4px solid var(--paper); border-radius: 50%; }
.delay input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.delay-scale { display: flex; justify-content: space-between; font-size: var(--step-small); }
.delay-note { margin-top: 20px; max-width: 34ch; font-size: var(--step-body); font-weight: 500; min-height: 3em; }
.landing { margin-top: 40px; }
.landing { overflow: hidden; }
.landing-frame { overflow: hidden; aspect-ratio: 16 / 10; background: #054530; }
.landing video { width: 100%; height: 100%; object-fit: cover; object-position: 34% 50%; transform: scale(1.7); transform-origin: 34% 52%; }
.landing figcaption { margin-top: 10px; font-size: var(--step-small); }

.slip { grid-column: 7 / 12; grid-row: 1 / 3; justify-self: start; width: min(100%, 480px); position: relative; background: var(--paper); color: var(--ink); padding: 28px 28px 40px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M0 0h20L10 14z' fill='%23f4f6f4'/%3E%3C/svg%3E") repeat-x; }
.slip-top { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--step-small); color: var(--muted); }
.wordmark-sm { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.wordmark-sm span { color: var(--red); }
.slip-h { font-size: var(--step-body); font-weight: 600; margin-top: 28px; }
.slip-rows li { display: flex; align-items: baseline; gap: 8px; padding-top: 10px; font-size: var(--step-body); }
.slip-rows li span:first-child { flex: 0 1 auto; }
.slip-rows li i { flex: 1 1 24px; min-width: 24px; border-bottom: 4px dotted #9aa6b5; transform: translateY(-4px); }
.slip-rows li span:last-child { flex: none; white-space: nowrap; }
.slip-rows li.moves span:last-child { font-weight: 600; }
.slip-rows li.moves.flash span:last-child { animation: flash 700ms var(--ease-out); }
@keyframes flash { 0% { background: var(--amber); } 100% { background: transparent; } }
.slip-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin: 28px -28px 0; padding: 0 28px; background: var(--night); color: var(--paper); font-size: var(--step-body); font-weight: 500; }

/* ---------- QUESTIONS: answers as reading text ---------- */
.faq { background: var(--blue); color: var(--paper); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--section) var(--margin) 110px; }
.faq-h { grid-column: 1 / 4; font-size: var(--step-lead); letter-spacing: -0.02em; }
.faq-list { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr; gap: 6px; align-items: start; }
.qa { background: #1538a6; padding: 0 20px; transition: background-color var(--t-hover) ease; }
.qa[open] { background: #10307f; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-weight: 600; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor 0 0) center / 16px 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 16px no-repeat; transition: transform var(--t-ui) var(--ease-out); } /* taste-skill-ignore: drawn plus sign, not a fill */
.qa[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--amber); text-decoration-thickness: 2px; } }
.qa p { padding: 0 24px 20px 0; max-width: 60ch; line-height: 1.55; }

/* ---------- WAITLIST: first step, already open ---------- */
.cta { background: var(--amber); color: var(--night); min-height: 76svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 0 var(--margin); }
.cta-copy { grid-column: 1 / 6; align-self: end; padding-bottom: 72px; }
.h-cta { font-size: clamp(3rem, 6vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 600; max-width: 9ch; text-wrap: balance; }
.cta-copy p { max-width: 36ch; margin-top: 24px; font-size: var(--step-body); }
.dialog { grid-column: 7 / 12; align-self: center; margin: 96px 0; justify-self: start; width: min(100%, 440px); background: #fff; color: #141a22; border-radius: 14px; padding: 24px; box-shadow: 0 2px 4px rgba(14, 26, 43, 0.1), 0 24px 56px rgba(110, 72, 0, 0.28); /* taste-skill-ignore: open dialog casts its own shadow */ }
.dlg-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }
.dlg-label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 6px; padding: 0; }
.dlg-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cfd5dc; /* taste-skill-ignore: product input */ border-radius: 8px; background: #fff; font-size: 16px; transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.dlg-input:focus { outline: none; border-color: #141a22; box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.6); /* taste-skill-ignore: focus ring */ }
.dlg-input[aria-invalid="true"] { border-color: var(--red); }
.dlg-error { color: var(--red-deep); font-size: 14px; margin-top: 6px; }
.dlg-seg { border: 0; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dlg-seg legend { grid-column: 1 / -1; }
.dlg-seg label { position: relative; }
.dlg-seg input { position: absolute; opacity: 0; inset: 0; }
.dlg-seg span { display: flex; justify-content: center; align-items: center; height: 44px; border-radius: 8px; background: #f0f2f4; font-weight: 500; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.dlg-seg input:checked + span { background: #141a22; color: #fff; }
.dlg-seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.dlg-btn { width: 100%; height: 52px; margin-top: 20px; background: var(--night); color: var(--paper); font-weight: 500; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .dlg-btn:hover { background: #1f3352; } }
.dlg-btn[disabled] { opacity: 0.7; cursor: progress; }
.dlg-done { outline: none; }
.dlg-done p { font-size: 16px; }
.done-stub { display: inline-flex; flex-direction: column; margin-bottom: 18px; padding: 12px 30px 12px 16px; background: var(--amber); color: var(--night); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); animation: stub-in 600ms var(--ease-out); }
.done-stub span { font-size: 13px; }
.done-stub b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
@keyframes stub-in { from { clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%); } }
.dlg-link { margin-top: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- FOOTER: tiles ---------- */
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 10px; background: var(--paper); }
.tile { padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.t-statement { grid-column: 1 / 5; background: var(--night); color: var(--paper); }
.t-big { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; max-width: 22ch; }
.t-small { font-size: var(--step-small); }
.t-nav { grid-column: 5 / 8; background: var(--surface); justify-content: flex-start; gap: 6px; }
.t-nav a { font-size: var(--step-body); text-decoration: none; width: fit-content; }
.t-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.t-time { grid-column: 8 / 10; background: var(--green); color: var(--paper); }
.t-k { font-size: var(--step-small); }
.t-clock { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.t-mail { grid-column: 10 / 13; background: var(--red); color: var(--paper); }
.t-addr { font-size: var(--step-lead); font-weight: 500; text-underline-offset: 5px; }
.t-mark { grid-column: 1 / 9; min-height: 320px; background: var(--night); color: var(--paper); align-items: center; justify-content: center; overflow: hidden; }
.t-mark > span { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.t-mark > span span { color: var(--amber); }
.t-go { grid-column: 9 / 13; min-height: 320px; background: var(--amber); color: var(--night); text-decoration: none; transition: background-color var(--t-hover) ease; }
.t-go-text { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.t-go svg { align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .t-go:hover { background: var(--amber-deep); } .t-go:hover svg { transform: translate(6px, -6px); } }
.credits { grid-column: 1 / -1; padding: 16px calc(var(--margin) - 10px) 8px; font-size: var(--step-small); color: var(--muted); max-width: calc(60ch + var(--margin)); }

/* ---------- Motion layer ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-rise].is-in { opacity: 1; transform: none; }
  .js .folder { animation: folder-in 900ms var(--ease-out) both; animation-delay: calc(var(--n) * 80ms + 200ms); }
  @keyframes folder-in { from { transform: translateY(120px); } }
  .js [data-shutter] { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js [data-shutter] .plate-img { transform: scale(1.12); transition: opacity var(--t-ui) ease, transform 1500ms var(--ease-soft); }
  .js [data-shutter].is-in { clip-path: inset(0 0 0 0); }
  .js [data-shutter].is-in .plate-img { transform: none; }
  .sheet-media img { transform: scale(1.06); transition: transform 1600ms var(--ease-soft); }
  .sheet.is-in .sheet-media img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .faq-h { grid-column: 1 / 5; }
  .promise-copy { grid-column: 1 / 7; }
  .watch { grid-column: 7 / 13; padding: 28px; }
  .arrive-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .faq-list { grid-column: 5 / 13; }
  .slip { grid-column: 7 / 13; }
  .dialog { grid-column: 7 / 13; }
  .sheet-text { grid-column: 1 / 7; }
}
@media (max-width: 900px) {
  .rides { grid-template-columns: 1fr; min-height: 0; }
  .rides-plate { padding: 96px var(--margin) 0; }
  .plate { max-width: 640px; }
  .rides-text { padding: 40px var(--margin) 96px; }
  .ride { grid-template-columns: 1fr; padding: 96px var(--margin); }
  .promise { grid-template-columns: 1fr; padding: 96px var(--margin); row-gap: 48px; }
  .promise-copy, .watch { grid-column: 1; }
  .watch { max-width: 640px; }
  .ride-copy, .slip, .landing { grid-column: 1; grid-row: auto; }
  .landing { margin-top: 56px; }
  .slip { margin-top: 48px; width: 100%; max-width: 560px; }
  .faq { grid-template-columns: 1fr; padding: 96px var(--margin); }
  .faq-h, .faq-list { grid-column: 1; }
  .faq-h { margin-bottom: 32px; }
  .cta { grid-template-columns: 1fr; padding: 96px var(--margin); align-content: space-between; row-gap: 48px; }
  .cta-copy, .dialog { grid-column: 1; }
  .cta-copy { align-self: start; padding: 0; }
  .h-cta { font-size: 11vw; }
  .dialog { width: 100%; max-width: none; margin: 0; }
  .sheet { position: relative; top: auto; grid-template-columns: 1fr; grid-template-rows: 52px auto auto; height: auto; min-height: 0; padding-bottom: 40px; }
  .sheet-name { grid-column: 1; font-size: var(--step-body); }
  .sheet-media { grid-column: 1; grid-row: 2; margin: 0 calc(var(--margin) * -1); aspect-ratio: 4 / 3; }
  .sheet-text { grid-column: 1; grid-row: 3; padding: 20px 0 0; }
  .foot { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
  .t-mark { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .t-mark > span { font-size: 17vw; }
  .t-go { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .t-nav { grid-column: 1; order: 1; }
  .t-mail { grid-column: 2; order: 2; }
  .t-time { grid-column: 1; order: 3; }
  .t-statement { grid-column: 2; order: 4; }
  .credits { order: 5; }
  .tile { padding: 20px; justify-content: flex-start; gap: 16px; min-height: 180px; }
  .t-go, .t-time, .t-statement { justify-content: space-between; }
}

/* ---------- Phone ---------- */
@media (max-width: 620px) {
  .hero { min-height: 700px; }
  .topbar-link { font-size: 15px; }
  .topbar { grid-template-columns: auto 1fr; }
  .topbar-gap { display: none; }
  .topbar .wordmark { grid-column: 1; }
  .hero-head { margin-top: 64px; }
  .hero h1 { font-size: 14.5vw; }
  .hero-sub { font-size: 18px; margin-top: 20px; }
  .folders { left: 0; right: 0; top: max(50svh, 400px); }
  .folder { top: calc(var(--n) * 42px); }
  .folder .tab { top: -32px; height: 33px; font-size: var(--step-small); padding: 0 18px; }
  .f1 { --tab: 2% !important; } .f2 { --tab: 56% !important; } .f3 { --tab: 2% !important; } .f4 { --tab: 56% !important; } .f5 { --tab: 2% !important; } .f6 { --tab: 56% !important; }
  .front-body { flex-direction: column; gap: 12px; padding: 16px; }
  .front-body .btn { width: 100%; justify-content: center; }
  .front-note { padding: 0; }
  .rides-plate { padding: 72px 16px 0; }
  .rides-text { padding: 28px 16px 80px; gap: 32px; }
  .ride-tabs { gap: 20px; margin-top: 24px; }
  .promise { padding: 80px 16px; }
  .watch { padding: 24px 20px; }
  .dial-time { font-size: 14.5vw; }
  .rules li { grid-template-columns: 56px 1fr; padding: 14px 16px; }


  .ride-desc { margin-top: 20px; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }


  .cta { min-height: 84svh; }
  .h-cta { font-size: 14.5vw; }

  .dialog { width: 100%; }
  .slip { padding: 22px 18px 32px; }
  .slip-total { margin: 24px -18px 0; padding: 10px 18px; }
  .t-addr { font-size: var(--step-small); overflow-wrap: anywhere; }
  .credits { padding: 14px 8px 8px; }


}
