/* R6-UX-08: a continuous studio and tinted surfaces, with a light phone path. */
:root {
  --bg:#080d0e;--panel:#101918;--soft:#17211f;--muted:#b1bcb6;
  --line:rgba(220,237,226,.12);--rail:92px;
  --glass:linear-gradient(135deg,rgba(211,233,219,.06),rgba(16,28,26,.02) 44%,rgba(5,12,13,.18)),rgba(10,20,19,.78);
}
body { background:var(--bg) }
.header { background:rgba(9,17,17,.87);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:inset 0 -1px rgba(235,247,239,.025) }
.journey {
  height:calc(100svh - var(--header));min-height:620px;
  grid-template-rows:62px minmax(0,1fr) var(--rail);isolation:isolate;
  background:radial-gradient(ellipse at 22% 64%,rgba(117,78,50,.06),transparent 56%),radial-gradient(ellipse at 93% 18%,rgba(67,110,105,.13),transparent 60%),#04080a;
}
/* Both bottom surfaces participate in the same parent grid row. */
.scene-column { display:contents }
.scene-column .scene { grid-column:1;grid-row:1/3;position:relative;top:auto;height:100%;min-height:0;border:0;background:transparent;mix-blend-mode:screen }
.scene-specs { grid-column:1;grid-row:3;align-self:stretch;min-height:var(--rail);position:relative;z-index:2;background:var(--glass);border-top:1px solid var(--line);-webkit-backdrop-filter:blur(14px) ;backdrop-filter:blur(14px) }
.scene-specs dl { gap:30px }
.scene-poster,.scene-video {
  inset:auto;left:50%;top:50%;max-width:none;object-fit:fill;transform-origin:center;
}
.scene:not([data-camera-ready]) .scene-poster { inset:0;left:0;top:0;width:100%;height:100%;object-fit:cover }
/* Feather is an opaque black matte inside the file. Masking both overlapping
   videos separately would brighten their translucent edges during a blend. */
.scene::after { background:radial-gradient(ellipse at 50% 45%,transparent 60%,rgba(4,8,9,.05)) }
.progress,.panels,.action-bar { position:relative;z-index:2;border-left:1px solid rgba(224,240,232,.07);background:var(--glass);-webkit-backdrop-filter:blur(14px) saturate(1.1) ;backdrop-filter:blur(14px) saturate(1.1) }
.progress { margin:0;padding-inline:34px;border-bottom:1px solid var(--line) }
.panels { align-self:stretch;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#4a5752 transparent;padding:34px clamp(28px,3.4vw,70px) }
.panel { flex:none;width:100%;max-width:640px;margin-block:auto }
.action-bar { grid-row:3;min-height:var(--rail);border-top:1px solid var(--line);box-shadow:inset 0 1px rgba(235,247,239,.025) }
.battery-option,.billing-options button,.bike-choice {
  background:linear-gradient(145deg,rgba(225,242,230,.055),rgba(15,29,27,.45));
  box-shadow:inset 0 1px rgba(238,250,243,.04),0 8px 24px rgba(0,0,0,.08);
}
.battery-option[aria-checked="true"],.billing-options button[aria-checked="true"] { background:linear-gradient(140deg,rgba(255,158,105,.09),rgba(19,32,27,.53)) }
input,textarea,select { background-color:rgba(14,25,23,.66) }
input:not([type="checkbox"]),textarea { box-shadow:inset 0 1px rgba(232,246,237,.035) }
.language select,.assistant-head select { background:transparent }
.button { border-radius:9px }
.primary { background:linear-gradient(145deg,#ffa26f,#ff8e55);box-shadow:inset 0 1px rgba(255,255,255,.16),0 5px 20px rgba(0,0,0,.12) }
.menu-toggle,.icon-button,.assistant-launcher { background-color:rgba(24,39,33,.53);box-shadow:inset 0 1px rgba(235,250,237,.04) }
dialog,.cookie-banner,dialog.assistant-panel { background:linear-gradient(140deg,rgba(213,236,220,.045),rgba(5,13,13,.15)),rgba(12,24,21,.96);box-shadow:inset 0 1px rgba(236,250,239,.07),0 24px 70px rgba(0,0,0,.35);-webkit-backdrop-filter:blur(14px) ;backdrop-filter:blur(14px) }
.info-sheet .dialog-head { background:#101d19 }
.assistant-head,.assistant-compose { background:rgba(18,35,27,.85) }
.assistant-context { background:rgba(19,35,29,.38) }
.support-strip,.footer { background:var(--bg) }
@media (min-width:741px) and (min-height:501px), (min-width:1001px) {
  .hero-title { font-size:clamp(40px,3.6vw,62px) }
  .lead,.panel-lead { font-size:15px;line-height:1.7 }
  .desktop-nav { font-size:13px }
  .header .brand { font-size:27px }
}
@media (min-width:1600px) {
  .hero-title { font-size:clamp(62px,2.9vw,78px) }
  .panel { max-width:660px }
  .scene-caption { font-size:11px }
}
@media (max-width:740px), (max-width:1000px) and (max-height:500px) {
  :root { --rail:78px }
  .journey { height:auto;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:44px auto auto auto auto }
  .scene-column .scene { grid-column:1;grid-row:2;height:clamp(128px,calc(34svh - 76px),260px);max-height:70vw }
  .scene-specs { grid-column:1;grid-row:3;min-height:56px;padding:5px 20px }
  .scene-specs dl { gap:20px }
  .scene-caption { font-size:7px }
  .progress { grid-column:1;grid-row:1;margin:0;padding-inline:20px;border-left:0 }
  .panels { grid-column:1;grid-row:4;display:block;overflow:visible;padding:18px 22px 22px;border-left:0;background:linear-gradient(135deg,rgba(202,225,209,.035),transparent 50%),rgba(8,19,18,.88) }
  .panel { max-width:none;margin:0 auto }
  .action-bar { grid-column:1;grid-row:5;position:sticky;bottom:0;min-height:78px;border-left:0;z-index:12 }
  .header,.progress,.panels,.action-bar,.scene-specs,dialog,.cookie-banner,dialog.assistant-panel { -webkit-backdrop-filter:none ;backdrop-filter:none }
  dialog::backdrop,.assistant-panel::backdrop { -webkit-backdrop-filter:none ;backdrop-filter:none }
}
@media (max-width:740px) and (max-height:740px) { .panels { padding-top:14px } }
@media (max-width:360px) { .panels,.scene-specs { padding-inline:18px }.scene-specs dl { gap:12px } }
@media (max-width:740px) and (max-height:600px) { .scene-column .scene { height:112px }.scene-specs { min-height:50px;padding-block:2px }.panels { padding-top:12px } }
@media (min-width:600px) and (max-width:1000px) and (max-height:500px) {
  .journey { height:calc(100svh - var(--header));min-height:0;grid-template-columns:minmax(0,45fr) minmax(0,55fr);grid-template-rows:44px minmax(0,1fr) var(--rail) }
  .scene-column .scene { grid-column:1;grid-row:1/3;height:100%;max-height:none }
  .scene-specs { grid-column:1;grid-row:3;min-height:var(--rail);flex-wrap:wrap }
  .scene-specs .text-button { max-width:none }
  .progress { grid-column:2;grid-row:1;padding-inline:12px }
  .panels { grid-column:2;grid-row:2;display:flex;overflow-y:auto;padding:12px 18px }
  .action-bar { grid-column:2;grid-row:3 }
}

/* R6-UX-09 (claude-a): the booking button is visibly locked until the required consent
   and turns into the brand action the moment it is ticked. Shape changes too, not only colour. */
.submit-hint { margin:2px 0 -4px;font-size:13px;line-height:1.5;color:var(--muted) }
.submit-hint:empty { display:none }
.button.primary.form-submit { transition:background-color .18s,color .18s,border-color .18s,box-shadow .18s }
.button.primary.form-submit:disabled,
.button.primary.form-submit:disabled:hover {
  opacity:1;cursor:not-allowed;transform:none;
  background:rgba(214,231,221,.06);color:#aeb9b3;
  border:1px dashed rgba(214,231,221,.28);box-shadow:none;
}
.button.primary.form-submit[data-state="sending"]:disabled {
  background:linear-gradient(145deg,#ffa26f,#ff8e55);color:var(--accent-ink);border-color:transparent;opacity:.72;cursor:progress;
}
.button.primary.form-submit:focus-visible { outline:2px solid #ffd2b8;outline-offset:3px }

/* R6-UX-09: on phones the booking form owns the screen; AI stays one tap away in Contacts (?). */
@media (max-width:740px), (max-width:1000px) and (max-height:500px) {
  body[data-stage="4"] .assistant-launcher[aria-expanded="false"] { display:none }
}
/* Desktop: the last field, consent and submit can always scroll clear of the AI launcher. */
@media (min-width:741px) and (min-height:501px), (min-width:1001px) {
  body[data-stage="4"] .panels { padding-bottom:84px }
}

/* R6-UX-09: stage stepper as quiet glass segments. Current = tinted fill + outline + bold label
   (not colour alone); done = accent number with a check; unavailable = dimmed and not-allowed. */
.progress { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;align-items:center;padding:9px 34px }
.progress button {
  min-height:44px;padding:6px 10px;border:1px solid transparent;border-radius:10px;background:transparent;
  display:flex;align-items:center;justify-content:center;gap:8px;color:#c6cfca;font-size:13px;line-height:1.2;
  transition:background-color .15s,border-color .15s,color .15s;
}
.progress button::after,.progress button[aria-current="step"]::after { content:none }
.progress button span { font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:#8f9c96;opacity:1;white-space:nowrap;flex:none;position:relative }
.progress button b { font-weight:600;white-space:nowrap }
.progress button:hover:not(:disabled):not([aria-current="step"]) { background:rgba(220,237,226,.06);color:var(--ink) }
.progress button[aria-current="step"] {
  color:#fff7f1;border-color:rgba(255,164,118,.55);
  background:linear-gradient(145deg,rgba(255,158,105,.17),rgba(255,146,93,.05));box-shadow:inset 0 1px rgba(255,226,208,.08);
}
.progress button[aria-current="step"] span,.progress button.done span { color:var(--accent) }
.progress button[aria-current="step"] b { font-weight:700 }
/* The check takes no inline width: in narrow desktop columns (1000-1280 px) it used to wrap under the number. */
.progress button.done span { margin-right:6px }
.progress button.done span::after { content:"";position:absolute;left:100%;top:50%;width:6px;height:3px;margin:-3.5px 0 0 3px;border-left:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(-45deg) }
.progress button:disabled { opacity:.42;cursor:not-allowed }
.progress button:focus-visible { outline:2px solid #ffd2b8;outline-offset:2px }
@media (max-width:740px), (max-width:1000px) and (max-height:500px) {
  .journey { grid-template-rows:56px auto auto auto auto }
  .progress { gap:4px;padding:6px 12px }
  .progress button { flex-direction:column;gap:1px;padding:4px 2px;font-size:12px }
  .progress button span { font-size:10px }
}
@media (max-width:360px) {
  .progress { padding-inline:8px;gap:3px }
  .progress button { font-size:11px }
}
@media (min-width:600px) and (max-width:1000px) and (max-height:500px) {
  .journey { grid-template-rows:56px minmax(0,1fr) var(--rail) }
}

/* R6-UX-09: tall phones give the scene more height so close-ups (whole wheel, both grips)
   fit at a useful size; short phones keep the UX-06 budget for the selection itself. */
@media (max-width:740px) and (min-height:800px) {
  .scene-column .scene { height:clamp(128px,calc(40svh - 76px),300px);max-height:75vw }
}

/* R6-UX-09: readability floor. No reading text below 12px; body/secondary copy 14–15px;
   form controls 16px on phones (no iOS zoom). Same faces (Manrope/Onest), same layout. */
.eyebrow { font-size:11px;letter-spacing:1px }
.scene-caption { font-size:11px }
.scene-specs dt { font-size:12px }
.chosen-config { font-size:12px }
.compact-summary>strong { font-size:15px }
.fact-link,.inline-facts { font-size:13px }
.text-button { font-size:13px }
.small-note,.price-note p,.context-note p,.context-note summary,.selected-summary { font-size:14px;line-height:1.6 }
.check { font-size:13px;line-height:1.6 }
.check a { font-size:inherit }
#bookingForm label>span { font-size:14px }
#bookingForm label small,.form-grid small { font-size:12px }
.call-link,.call-link strong { font-size:14px }
.battery-details strong,.battery-details span { font-size:13px }
.button { font-size:14px }
.account,.desktop-nav a { font-size:13px }
@media (max-width:740px), (max-width:1000px) and (max-height:500px) {
  .eyebrow { font-size:11px;letter-spacing:.8px;margin-bottom:10px }
  .scene-caption { font-size:10px;letter-spacing:1.2px }
  .scene-specs dt { font-size:12px }
  .scene-specs dd { font-size:16px }
  .lead,.panel-lead { font-size:15px;line-height:1.6 }
  .chosen-config { font-size:12px }
  .compact-summary>strong { font-size:15px }
  .small-note,.price-note p,.context-note p,.context-note summary,.selected-summary { font-size:14px }
  .check { font-size:14px }
  .fact-link,.inline-facts,.text-button { font-size:14px }
  .action-bar #next { font-size:13px;line-height:1.25 }
  .assistant-short { font-size:12px }
}
.compact-summary>span,.compact-summary>.chosen-config { font-size:12px }
.pickup-context,.pickup-context .text-button { font-size:13px }
.intro-price>span { font-size:13px }
@media (max-width:740px), (max-width:1000px) and (max-height:500px) {
  .compact-summary>span,.compact-summary>.chosen-config { font-size:12px }
  .compact-summary>strong { font-size:14px }
  .pickup-context,.pickup-context .text-button { font-size:14px }
  .intro-price>span { font-size:13px }
}
@media (max-width:360px) {
  .compact-summary>strong { font-size:13px }
  .action-bar #next { font-size:12px }
}

/* R6-UX-09: the scene's smoke continues, blurred, behind the tinted glass (haze.mjs).
   Glass is a little more transparent so the movement reads; text stays on solid enough tint. */
.scene-haze {
  position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;
  opacity:.85;image-rendering:auto;
}
:root { --glass:linear-gradient(135deg,rgba(211,233,219,.05),rgba(16,28,26,.02) 44%,rgba(5,12,13,.16)),rgba(10,20,19,.66) }
@media (max-width:740px), (max-width:1000px) and (max-height:500px) {
  .scene-haze { opacity:.75 }
  .panels { background:linear-gradient(135deg,rgba(202,225,209,.03),transparent 50%),rgba(8,19,18,.74) }
}
