/*
  Comet 70: electric scooter product page (Screenery template)
  A 1970s space-age brochure: cream ground, chocolate ink, supergraphic stripes in orange, mustard, teal and brown that run
  in from the edges and turn their corners round, sunburst panels, Shrikhand display type over Golos Text.

  Contents
   1. Tokens (palette, colourways, type, space, shape, motion)
   2. Base and browser surfaces
   3. Supergraphic stripes (.sg) and sunburst
   4. Components: buttons, fields, sliders, toggles, segmented, checks, alerts
   5. Header
   6. Hero
   7. Story
   8. Scooter drawing (.comet) and configurator
   9. Specs and dials
  10. Charging
  11. Test ride booking
  12. Finance
  13. Questions, footer
  14. Motion
  15. Narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --cream: #f3e6cc;         /* the ground */
  --paper: #fbf4e4;         /* raised paper panels */
  --sand: #e9d6ae;          /* rules, wells, sunburst rays */
  --sand-2: #e1c995;
  --choc: #3a2318;          /* ink */
  --choc-2: #5a3a28;        /* secondary ink, still 7:1 on cream */
  --choc-deep: #2a170f;     /* instrument binnacle */
  --orange: #cf5a1e;
  --orange-ink: #a5401a;    /* orange that reads as small text on cream */
  --mustard: #e2a530;
  --teal: #1d6f6c;
  --teal-deep: #175c5a;     /* test ride ground, cream text at 6:1 */
  --cream-dim: #e6d3b0;     /* secondary text on chocolate and teal */
  --chrome: #d9d2c4;
  --glass: rgb(160 214 210 / 0.55);

  /* Colourway: what the scooter's panels and stripes are painted. Set by html[data-colour]. */
  --body: var(--orange);
  --body-shade: #b14a17;
  --st1: var(--mustard);
  --st2: var(--cream);
  --st3: var(--choc);

  /* Type */
  --display: "Shrikhand", "Cooper Black", Georgia, serif;
  --sans: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-h2: clamp(2.2rem, 1.3rem + 3vw, 3.75rem);
  --fs-h1: clamp(3.6rem, 1.4rem + 7vw, 6rem);

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 120px;
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1260px;

  /* Shape: everything is rounded, like a 1974 dashboard */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 36px;
  --r-pill: 999px;
  --stripe: clamp(12px, 1.6vw, 22px);   /* supergraphic stripe width */
  --stripe-gap: clamp(5px, 0.6vw, 8px);

  /* Depth: soft and warm, with an offset */
  --lift: 0 2px 0 rgb(58 35 24 / 0.08), 0 18px 34px -18px rgb(58 35 24 / 0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop: cubic-bezier(0.34, 1.7, 0.5, 1);
  --t-fast: 160ms;
  --t-mid: 380ms;
  --t-slow: 900ms;
}

/* The four colourways (body panels, then the three stripes) */
html[data-colour="mustard"] { --body: var(--mustard); --body-shade: #c98d1e; --st1: var(--orange); --st2: var(--choc); --st3: var(--cream); }
html[data-colour="teal"]    { --body: var(--teal);    --body-shade: #145552; --st1: var(--mustard); --st2: var(--orange); --st3: var(--cream); }
html[data-colour="cocoa"]   { --body: #4a2c1c;        --body-shade: #331d12; --st1: var(--orange); --st2: var(--mustard); --st3: var(--teal); }

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: var(--choc-2) var(--sand); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--choc);
  font: 400 var(--fs-md)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  accent-color: var(--orange);
  caret-color: var(--orange);
}
::selection { background: var(--mustard); color: var(--choc); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--choc-2); border-radius: 99px; border: 3px solid var(--sand); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
h2 { font: 400 var(--fs-h2)/1.02 var(--display); letter-spacing: -0.01em; }
h3 { font: 800 var(--fs-lg)/1.2 var(--sans); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.dim { color: var(--choc-2); }
.small { font-size: var(--fs-sm); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.defs { position: absolute; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--choc); color: var(--cream); padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
.sect-lede { max-width: 60ch; margin-top: var(--s-4); font-size: var(--fs-lg); color: var(--choc-2); }
section { position: relative; }

/* ---------- 3. Supergraphic stripes and sunburst ---------- */
/* .sg holds four <i>, each one a stripe drawn as two borders and one rounded corner. Each is inset by one step so they nest. */
.sg { position: absolute; pointer-events: none; --step: calc(var(--stripe) + var(--stripe-gap)); --R: clamp(90px, 12vw, 180px); }
.sg i { position: absolute; display: block; border: 0 solid; }
.sg i:nth-child(1) { --n: 0; border-color: var(--choc); }
.sg i:nth-child(2) { --n: 1; border-color: var(--teal); }
.sg i:nth-child(3) { --n: 2; border-color: var(--mustard); }
.sg i:nth-child(4) { --n: 3; border-color: var(--orange); }

/* Runs in from the left along the bottom, turns up at the right (a ┘) */
.sg--hero { left: 0; right: var(--gutter); top: -40px; bottom: clamp(96px, 11vw, 150px); }
.sg--hero i {
  left: -40px; top: 0;
  right: calc(var(--n) * var(--step));
  bottom: calc(var(--n) * var(--step));
  border-bottom-width: var(--stripe); border-right-width: var(--stripe);
  border-bottom-right-radius: calc(var(--R) - var(--n) * var(--step));
}

/* Comes down the left edge and turns right along the top of the section (a ┌), then leaves off the right edge */
.sg--build { left: var(--gutter); right: -40px; top: 0; height: 140px; }
.sg--build i {
  right: 0; bottom: -10px;
  left: calc(var(--n) * var(--step));
  top: calc(var(--n) * var(--step));
  border-top-width: var(--stripe); border-left-width: var(--stripe);
  border-top-left-radius: calc(var(--R) - var(--n) * var(--step));
  -webkit-mask: linear-gradient(#000 40%, transparent);
          mask: linear-gradient(#000 40%, transparent);
}

/* Test ride: runs along the top from the left and turns down the right edge (a ┐) */
.sg--ride { left: -40px; right: var(--gutter); top: var(--s-7); height: 260px; }
.sg--ride i {
  left: 0; bottom: 0;
  right: calc(var(--n) * var(--step));
  top: calc(var(--n) * var(--step));
  border-top-width: var(--stripe); border-right-width: var(--stripe);
  border-top-right-radius: calc(var(--R) - var(--n) * var(--step));
  -webkit-mask: linear-gradient(#000 55%, transparent);
          mask: linear-gradient(#000 55%, transparent);
}
.sg--ride i:nth-child(1) { border-color: var(--choc); }
.sg--ride i:nth-child(2) { border-color: var(--cream); }

/* Footer: a straight band of four across the top */
.sg--foot { left: 0; right: 0; top: 0; height: calc(4 * var(--step)); }
.sg--foot i { left: 0; right: 0; top: calc(var(--n) * var(--step)); border-top-width: var(--stripe); }
.sg--foot i:nth-child(1) { border-color: var(--orange); }
.sg--foot i:nth-child(2) { border-color: var(--mustard); }
.sg--foot i:nth-child(3) { border-color: var(--teal); }
.sg--foot i:nth-child(4) { border-color: var(--cream); }

/* Sunburst: rays from the bottom centre, inside a rounded rectangle */
.sunburst {
  background:
    radial-gradient(circle at 50% 100%, var(--paper) 0 14%, transparent 14.2%),
    repeating-conic-gradient(from -90deg at 50% 100%, var(--sand) 0 6deg, var(--paper) 6deg 12deg);
}

/* ---------- 4. Components ---------- */
.btn {
  --bg: var(--choc); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 2px solid var(--bg); border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg);
  font: 700 1.1875rem/1 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 rgb(58 35 24 / 0.2), 0 10px 18px -10px rgb(58 35 24 / 0.5);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 3px 0 rgb(58 35 24 / 0.2), 0 16px 22px -12px rgb(58 35 24 / 0.55); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgb(58 35 24 / 0.2); }
.btn--orange { --bg: var(--orange); --fg: var(--choc-deep); }
.btn--choc { --bg: var(--choc); --fg: var(--cream); }
.btn--line { --bg: transparent; --fg: var(--choc); border-color: var(--choc); box-shadow: none; }
.btn--line:hover { background: var(--choc); color: var(--cream); box-shadow: none; }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; }

.group { border: 0; margin: 0; padding: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: var(--s-3); font: 400 var(--fs-xl)/1.1 var(--display); color: var(--choc); }
.hint { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--choc-2); }

/* Text fields */
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.field label small { font-weight: 400; color: var(--choc-2); }
.field input {
  min-height: 52px; padding: 12px 18px; width: 100%;
  border: 2px solid var(--choc-2); border-radius: var(--r-sm);
  background: var(--paper); color: var(--choc);
  font: 500 var(--fs-md)/1.2 var(--sans);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input::placeholder { color: #7a5c48; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgb(29 111 108 / 0.25); }
.field input[aria-invalid="true"] { border-color: var(--orange-ink); background: #fbeee2; }
.field-error { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; color: #8f3413; font-weight: 600; font-size: var(--fs-sm); }
.field-error::before { content: ""; margin-top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* Range sliders: chocolate track, orange fill (--p), a big round knob */
.slider { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px var(--s-3); }
.slider label { font-weight: 700; }
.slider output { font-weight: 800; font-size: var(--fs-lg); }
.slider input[type="range"] { grid-column: 1 / -1; }
input[type="range"] {
  --p: 30%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--orange) var(--p), var(--sand-2) var(--p)); box-shadow: inset 0 0 0 2px var(--choc); }
input[type="range"]::-moz-range-track { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--orange) var(--p), var(--sand-2) var(--p)); box-shadow: inset 0 0 0 2px var(--choc); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border-radius: 50%; background: var(--cream); border: 3px solid var(--choc); box-shadow: 0 3px 6px rgb(58 35 24 / 0.35); transition: transform var(--t-fast) var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--cream); border: 3px solid var(--choc); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline-offset: 0; }

/* Toggle rows */
.toggle { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-top: 2px solid var(--sand); cursor: pointer; }
.toggle:last-of-type { border-bottom: 2px solid var(--sand); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__track { position: relative; width: 58px; height: 34px; border-radius: 99px; background: var(--sand-2); box-shadow: inset 0 0 0 2px var(--choc); transition: background-color var(--t-mid) var(--ease-out); }
.toggle__knob { position: absolute; top: 5px; left: 5px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 2px var(--choc); transition: transform var(--t-mid) var(--ease-pop); }
.toggle input:checked + .toggle__track { background: var(--teal); }
.toggle input:checked + .toggle__track .toggle__knob { transform: translateX(24px); }
.toggle input:focus-visible + .toggle__track { outline: 3px solid var(--teal); outline-offset: 3px; }
.toggle__text { display: grid; gap: 2px; }
.toggle__text span { font-size: var(--fs-sm); color: var(--choc-2); }
.toggle__price { font-weight: 800; }

/* Segmented choice (radio pills) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: var(--r-md); background: var(--sand); }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; gap: 2px; place-content: center; text-align: center; min-height: 56px; padding: 8px 10px; border-radius: 14px; transition: background-color var(--t-mid) var(--ease-out), color var(--t-mid); }
.seg small { font-size: var(--fs-xs); color: var(--choc-2); }
.seg b { font-weight: 700; }
.seg input:checked + span { background: var(--choc); color: var(--cream); box-shadow: var(--lift); }
.seg input:checked + span small { color: var(--cream-dim); }
.seg input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Checkbox */
.check { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--choc); transition: background-color var(--t-fast); }
.check__box .ic { opacity: 0; transform: scale(0.4); transition: transform var(--t-mid) var(--ease-pop), opacity var(--t-fast); color: var(--cream); stroke-width: 2.5; }
.check input:checked + .check__box { background: var(--teal); box-shadow: inset 0 0 0 2px var(--choc); }
.check input:checked + .check__box .ic { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--teal); outline-offset: 3px; }
.check small { color: var(--choc-2); }
.check input[aria-invalid="true"] + .check__box { box-shadow: inset 0 0 0 2px var(--orange-ink); background: #fbeee2; }

.alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: #f8dcc8; border: 2px solid var(--orange-ink); color: var(--choc); }
.alert .ic { color: #8f3413; margin-top: 2px; }

/* ---------- 5. Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 2px solid var(--choc); }
.top__in { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.75rem/1 var(--display); }
.logo svg { width: 40px; height: 28px; fill: none; stroke-width: 4; }
.logo svg path:nth-child(1) { stroke: var(--mustard); }
.logo svg path:nth-child(2) { stroke: var(--orange); }
.logo svg path:nth-child(3) { stroke: var(--teal); }
.nav { display: flex; gap: var(--s-1); margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); transition: background-color var(--t-fast); }
.nav a:hover { background: var(--sand); }

/* ---------- 6. Hero ---------- */
.hero { overflow: hidden; padding-top: clamp(40px, 6vw, 88px); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: end; }
.hero__copy { padding-bottom: clamp(120px, 15vw, 210px); }
.hero__title { font: 400 var(--fs-h1)/0.92 var(--display); letter-spacing: -0.01em; color: var(--choc); }
.hero__title span { color: var(--orange); -webkit-text-stroke: 0; }
.hero__lede { margin-top: var(--s-5); max-width: 40ch; font-size: var(--fs-lg); line-height: 1.5; }
.hero__price { margin-top: var(--s-4); font-size: var(--fs-md); }
.hero__price strong { font-size: var(--fs-xl); font-weight: 800; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.hero__art { margin: 0 0 clamp(66px, 9.4vw, 136px); position: relative; }
.hero__art svg { width: 112%; max-width: none; height: auto; display: block; margin-left: -4%; }
.hero__facts {
  position: relative; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6);
  list-style: none; margin: 0 auto; padding-block: var(--s-5) var(--s-6);
  font-size: var(--fs-sm); color: var(--choc-2);
}
.hero__facts strong { color: var(--choc); font-weight: 800; font-size: var(--fs-md); margin-right: 4px; }
.art-use { width: 100%; height: auto; overflow: visible; }

/* ---------- 7. Story ---------- */
.story { padding: var(--s-9) 0 var(--s-8); }
.story__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__text { display: grid; gap: var(--s-4); max-width: 62ch; }
.story__text h2 { margin-bottom: var(--s-3); }
.story__sign { font-weight: 700; color: var(--choc-2); padding-top: var(--s-2); }
.story__sheet { margin: 0; display: grid; gap: var(--s-5); }
.sheet { border-radius: var(--r-lg); padding: var(--s-6) var(--s-5) var(--s-4); background: var(--paper); box-shadow: inset 0 0 0 2px var(--choc), var(--lift); position: relative; overflow: hidden; }
.sheet::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--sand) 1px, transparent 1px), linear-gradient(90deg, var(--sand) 1px, transparent 1px); background-size: 28px 28px; opacity: 0.7; }
.sheet svg { position: relative; }
.pins circle { fill: var(--choc); stroke: var(--cream); stroke-width: 4; }
.pins text { fill: var(--cream); font: 800 22px var(--sans); text-anchor: middle; }
.details { margin: 0; padding: 0; list-style: none; counter-reset: d; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
.details li { counter-increment: d; position: relative; padding-left: 44px; font-size: var(--fs-sm); color: var(--choc-2); }
.details li strong { color: var(--choc); display: block; font-size: var(--fs-md); }
.details li::before { content: counter(d); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--choc); color: var(--cream); font-weight: 800; display: grid; place-items: center; font-size: var(--fs-sm); }

/* ---------- 8. Scooter drawing and configurator ---------- */
.comet .c-shadow { fill: rgb(58 35 24 / 0.16); }
.comet .c-body { fill: var(--body); transition: fill var(--t-slow) var(--ease-out); }
.comet .st { fill: none; stroke-width: 11; transition: stroke var(--t-slow) var(--ease-out); }
.comet .st1 { stroke: var(--st1); }
.comet .st2 { stroke: var(--st2); }
.comet .st3 { stroke: var(--st3); }
.comet .c-tyre { fill: var(--choc); }
.comet .c-rim { fill: var(--chrome); stroke: var(--choc); stroke-width: 3; }
.comet .c-holes circle { fill: var(--choc-2); }
.comet .c-hub { fill: var(--body); stroke: var(--choc); stroke-width: 3; transition: fill var(--t-slow) var(--ease-out); }
.comet .c-fork { stroke: var(--choc-2); stroke-width: 16; stroke-linecap: round; }
.comet .c-floor { fill: var(--choc); }
.comet .c-ribs { stroke: var(--choc-2); stroke-width: 3; stroke-linecap: round; }
.comet .c-stand { fill: none; stroke: var(--choc-2); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.comet .c-seat { fill: var(--choc); }
.comet .c-piping { stroke: var(--cream); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; opacity: 0.8; }
.comet .c-script { font: 400 34px var(--display); fill: var(--cream); paint-order: stroke; stroke: var(--body-shade); stroke-width: 6; transition: stroke var(--t-slow); }
.comet .c-tail { fill: #c3321c; stroke: var(--choc); stroke-width: 3; }
.comet .c-bars { stroke: var(--choc); stroke-width: 10; stroke-linecap: round; }
.comet .c-bars.thin { stroke-width: 5; }
.comet .c-grip { fill: var(--choc-2); }
.comet .c-mirror { fill: var(--chrome); stroke: var(--choc); stroke-width: 4; }
.comet .c-lamp-ring { fill: var(--chrome); stroke: var(--choc); stroke-width: 4; }
.comet .c-lamp-glass { fill: #fff3cf; stroke: var(--mustard); stroke-width: 4; }
.comet .c-chrome-line { fill: none; stroke: #a59b8a; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.comet .c-chrome-line.thin { stroke: var(--chrome); stroke-width: 4; }
.comet .c-plate { fill: var(--choc); }
.comet .c-box { fill: var(--body); stroke: var(--choc); stroke-width: 4; transition: fill var(--t-slow) var(--ease-out); }
.comet .c-box-lid { stroke: var(--choc); stroke-width: 3; }
.comet .c-box-stripe { fill: var(--st1); transition: fill var(--t-slow); }
.comet .c-lamp { fill: #c3321c; }
.comet .c-screen { fill: var(--glass); stroke: var(--choc); stroke-width: 4; stroke-linejoin: round; }
.comet .c-glint { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: 0.8; }
.comet .c-speed path { fill: none; stroke: var(--choc-2); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset var(--t-mid) var(--ease-out); }
.comet.riding .c-speed path { stroke-dashoffset: 0; }

/* Accessories pop on and off: they shrink to their mount point */
.comet .acc { transform-box: fill-box; transition: transform 520ms var(--ease-pop), opacity 200ms; transform: scale(0.2); opacity: 0; }
.comet .acc-topbox { transform-origin: 50% 100%; }
.comet .acc-rack { transform-origin: 100% 50%; }
.comet .acc-screen { transform-origin: 30% 100%; }
.comet.has-topbox .acc-topbox, .comet.has-rack .acc-rack, .comet.has-screen .acc-screen { transform: scale(1); opacity: 1; }

/* Wheels: rotate about their own centre. Speed is --spin, set from the average speed slider. */
.comet .wheel { transform-box: fill-box; transform-origin: 50% 50%; }

.build { overflow-x: clip; padding: calc(var(--s-9) + 20px) 0 var(--s-9); background: var(--paper); border-top: 2px solid var(--choc); }
.build > .wrap:first-of-type { position: relative; padding-left: calc(var(--gutter) + 4 * (var(--stripe) + var(--stripe-gap)) + 24px); }
.build__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); margin-top: var(--s-7); align-items: start; }
.stage { position: sticky; top: 92px; }
.stage__panel { position: relative; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 40px) clamp(12px, 2vw, 28px) clamp(80px, 8vw, 96px); box-shadow: inset 0 0 0 2px var(--choc), var(--lift); overflow: hidden; }
.stage__panel { background:
    radial-gradient(ellipse 60% 28% at 50% 100%, var(--paper) 0 60%, transparent 61%),
    repeating-conic-gradient(from -90deg at 50% 92%, var(--sand) 0 5deg, var(--cream) 5deg 10deg); }
.art { width: 100%; height: auto; display: block; overflow: visible; }
.ride-btn {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 22px 10px 16px;
  border: 2px solid var(--choc); border-radius: var(--r-pill); background: var(--cream); color: var(--choc);
  font: 700 var(--fs-md)/1 var(--sans); white-space: nowrap; cursor: pointer; box-shadow: var(--lift);
  transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
html:not(.js) .ride-btn { display: none; }
.ride-btn:hover { transform: translateY(-2px); }
.ride-btn .ic { fill: currentColor; stroke-width: 2; }
.ride-btn[aria-pressed="true"] { background: var(--choc); color: var(--cream); }
.stage__name { position: absolute; left: clamp(18px, 3vw, 36px); top: clamp(16px, 2.4vw, 28px); font: 400 var(--fs-lg)/1 var(--display); color: var(--choc); }

.controls { display: grid; gap: var(--s-7); }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.swatch { position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: var(--cream); box-shadow: inset 0 0 0 2px var(--sand-2); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); transition: box-shadow var(--t-fast); }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch__dot { width: 40px; height: 40px; border-radius: 50%; flex: none; background: linear-gradient(180deg, var(--sw) 0 58%, var(--sw2) 58% 72%, var(--sw) 72%); box-shadow: inset 0 0 0 2px var(--choc); transition: transform var(--t-mid) var(--ease-pop); }
.swatch:hover { box-shadow: inset 0 0 0 2px var(--choc-2); }
.swatch:has(input:checked) { box-shadow: inset 0 0 0 3px var(--choc); background: var(--paper); }
.swatch:has(input:checked) .swatch__dot { transform: scale(1.08) rotate(-12deg); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }

.range-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: var(--s-5); align-items: center; }
.sliders { display: grid; gap: var(--s-3); }
.range-result { margin-top: var(--s-3); font-size: var(--fs-lg); }
.range-result strong { font: 400 2.75rem/1 var(--display); margin-right: 6px; }
.formula { display: grid; gap: 4px; margin-top: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--cream); box-shadow: inset 0 0 0 2px var(--sand-2); }
.formula > span:first-child { font-weight: 700; }
.formula .num { font-weight: 800; font-size: var(--fs-lg); }
.formula .small { color: var(--choc-2); }

/* Dials (range dial in the configurator, gauges in the specs) */
.dial svg, .gauge svg { width: 100%; height: auto; display: block; }
.dial__arc { fill: none; stroke: var(--sand-2); stroke-width: 14; stroke-linecap: round; }
.dial__ticks { fill: none; stroke: var(--choc); stroke-width: 8; stroke-dasharray: 1.4 18.6; stroke-dashoffset: 0.7; }
.dial__fill { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray var(--t-slow) var(--ease-out); }
.dial__fill--teal { stroke: var(--teal); }
.dial__nums text { font: 700 12px var(--sans); fill: var(--choc-2); text-anchor: middle; }
.dial__needle { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(var(--a)); transition: transform var(--t-slow) var(--ease-pop); }
.dial__needle path { fill: var(--choc); }
.dial__cap { fill: var(--orange); stroke: var(--choc); stroke-width: 3; }

.cost { width: 100%; margin-top: var(--s-4); border-collapse: collapse; font-size: var(--fs-md); }
.cost th, .cost td { padding: 10px 0; text-align: right; border-bottom: 2px solid var(--sand); }
.cost th[scope="row"], .cost thead th:first-child { text-align: left; font-weight: 500; }
.cost thead th { font-weight: 800; font-size: var(--fs-sm); padding-top: 0; }
.cost td { font-weight: 600; width: 32%; }
.cost tfoot th, .cost tfoot td { font-weight: 800; border-bottom: 0; font-size: var(--fs-lg); }
.bars { display: grid; gap: 6px; margin-top: var(--s-2); }
.bar { height: 14px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; transition: width var(--t-slow) var(--ease-out); }
.bar--e span { background: var(--teal); }
.bar--p span { background: var(--choc-2); }
.saving { margin-top: var(--s-4); font-size: var(--fs-lg); }
.saving strong { font-weight: 800; }
.assume { margin-top: var(--s-4); border-top: 2px solid var(--sand); }
.assume summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font-weight: 700; list-style: none; }
.assume summary::-webkit-details-marker { display: none; }
.assume summary .ic { transition: transform var(--t-mid) var(--ease-out); }
.assume[open] summary .ic { transform: rotate(180deg); }
.assume ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); font-size: var(--fs-sm); color: var(--choc-2); }

.summary { padding: var(--s-6); border-radius: var(--r-lg); background: var(--choc); color: var(--cream); box-shadow: var(--lift); }
.summary h3 { font: 400 var(--fs-xl)/1.1 var(--display); }
.summary__lines { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: 0; }
.summary__lines li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 10px 0; border-bottom: 1px solid rgb(243 230 204 / 0.22); font-size: var(--fs-sm); }
.summary__lines li span:last-child { font-weight: 700; }
.summary__lines li.pop { animation: line-in 480ms var(--ease-out); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s-4) 0; }
.summary__total strong { font: 400 2.5rem/1 var(--display); color: var(--mustard); }
.summary__note { font-size: var(--fs-sm); color: var(--cream-dim); margin-bottom: var(--s-5); }
.summary__note a { color: var(--cream); text-decoration-color: var(--mustard); }
.summary .btn--choc { --bg: var(--mustard); --fg: var(--choc-deep); }

/* ---------- 9. Specs ---------- */
.specs { padding: var(--s-9) 0; background: var(--choc); color: var(--cream); }
.specs h2 { color: var(--cream); }
.specs .sect-lede { color: var(--cream-dim); }
.cluster {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: clamp(12px, 3vw, 40px); align-items: end;
  margin-top: var(--s-7); padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 56px) clamp(20px, 3vw, 36px);
  border-radius: 200px 200px var(--r-lg) var(--r-lg) / 120px 120px var(--r-lg) var(--r-lg);
  background: var(--choc-deep); box-shadow: inset 0 0 0 3px #6b4630, inset 0 -18px 30px rgb(0 0 0 / 0.25);
}
.gauge { margin: 0; display: grid; gap: var(--s-3); text-align: center; }
.gauge svg { border-radius: 50% 50% 28px 28px; background: radial-gradient(circle at 50% 60%, #fff8e8, var(--cream) 70%); box-shadow: inset 0 0 0 4px var(--mustard), 0 10px 20px rgb(0 0 0 / 0.35); padding: 6px; }
.gauge figcaption { color: var(--cream-dim); font-size: var(--fs-sm); max-width: 28ch; margin-inline: auto; }
.gauge figcaption strong { color: var(--mustard); font-weight: 800; font-size: var(--fs-md); }
.dial__band { fill: none; stroke: var(--mustard); stroke-width: 10; }
.dial__band--peak { stroke: var(--orange); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-7); margin: var(--s-8) 0 0; }
.spec-list div { display: grid; grid-template-columns: 11rem 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid rgb(243 230 204 / 0.25); }
.spec-list dt { font-weight: 700; color: var(--mustard); }
.spec-list dd { margin: 0; color: var(--cream); }

/* ---------- 10. Charging ---------- */
.charging { padding: var(--s-9) 0; }
.charging__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.charging__art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 24px rgb(58 35 24 / 0.25)); }
.charging__art .sun { fill: var(--teal); }
.pack__handle { fill: none; stroke: var(--choc); stroke-width: 14; stroke-linecap: round; }
.pack__body { fill: var(--orange); stroke: var(--choc); stroke-width: 5; }
.pack__st1 { fill: var(--mustard); }
.pack__st2 { fill: var(--cream); }
.pack__st3 { fill: var(--choc); }
.pack__window { fill: var(--choc); }
.pack__level { fill: var(--mustard); transform-box: fill-box; transform-origin: 0 50%; }
.pack__cable { fill: none; stroke: var(--choc); stroke-width: 8; stroke-linecap: round; }
.pack__plug { fill: var(--cream); stroke: var(--choc); stroke-width: 5; }
.charging__art { border-radius: var(--r-lg); overflow: hidden; background: repeating-conic-gradient(from -90deg at 50% 100%, var(--teal) 0 6deg, var(--teal-deep) 6deg 12deg); }
.charging__art .sun { fill: transparent; }
.charging__text { display: grid; gap: var(--s-4); max-width: 60ch; }
.charge-line { list-style: none; margin: var(--s-5) 0 var(--s-3); padding: 54px 0 0; position: relative; display: block; height: 110px; }
.charge-line::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 18px; border-radius: 99px; background: linear-gradient(90deg, var(--orange) 0 75%, var(--teal) 75% 100%); box-shadow: inset 0 0 0 2px var(--choc); }
.charge-line li { position: absolute; top: 52px; left: calc(var(--at) * 1%); translate: calc(var(--at) * -1%) 0; font-size: var(--fs-sm); white-space: nowrap; text-align: center; }
.charge-line li::before { content: ""; position: absolute; top: -40px; left: calc(var(--at) * 1%); translate: -50% 0; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 3px var(--choc); }
.charge-line li:first-child { text-align: left; }
.charge-line li:last-child { text-align: right; }
.charge-line li .num { display: block; font-weight: 800; font-size: var(--fs-md); }
.charging__cost strong { font: 400 var(--fs-xl)/1 var(--display); color: var(--orange-ink); }

/* ---------- 11. Test ride ---------- */
.ride { padding: calc(var(--s-9) + 40px) 0 var(--s-9); background: var(--teal-deep); color: var(--cream); overflow: hidden; }
.ride__in { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ride__intro { display: grid; gap: var(--s-4); padding-top: var(--s-6); }
.ride__intro h2 { color: var(--cream); }
.ride__intro .dim { color: var(--cream-dim); }
.booking { position: relative; border-radius: var(--r-lg); background: var(--paper); color: var(--choc); padding: clamp(22px, 4vw, 44px); box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.5); }
.book-form { display: grid; gap: var(--s-6); }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.room { position: relative; cursor: pointer; }
.room input { position: absolute; opacity: 0; inset: 0; }
.room span { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 2px var(--sand-2); background: var(--cream); min-height: 72px; transition: box-shadow var(--t-fast), background-color var(--t-fast); }
.room small { font-size: var(--fs-xs); color: var(--choc-2); }
.room input:checked + span { box-shadow: inset 0 0 0 3px var(--choc); background: var(--mustard); }
.room input:checked + span small { color: var(--choc); }
.room input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }
.days { display: flex; gap: var(--s-2); overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { position: relative; flex: none; scroll-snap-align: start; }
.day input { position: absolute; opacity: 0; inset: 0; }
.day span { display: grid; place-items: center; width: 66px; min-height: 78px; padding: 8px 4px; border-radius: 18px; background: var(--cream); box-shadow: inset 0 0 0 2px var(--sand-2); cursor: pointer; line-height: 1.15; transition: background-color var(--t-fast), box-shadow var(--t-fast); }
.day b { font: 400 1.5rem/1 var(--display); }
.day small { font-size: var(--fs-xs); font-weight: 600; }
.day em { font-style: normal; font-size: 11px; color: #8f3413; font-weight: 700; }
.day input:checked + span { background: var(--choc); color: var(--cream); box-shadow: none; }
.day input:checked + span em { color: var(--mustard); }
.day input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--s-2); }
.slots > p, .days > p { grid-column: 1 / -1; margin: 0; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; }
.slot span { display: grid; place-items: center; min-height: 48px; border-radius: var(--r-pill); background: var(--cream); box-shadow: inset 0 0 0 2px var(--sand-2); font-weight: 700; cursor: pointer; transition: background-color var(--t-fast); }
.slot input:checked + span { background: var(--choc); color: var(--cream); box-shadow: 0 0 0 3px var(--mustard); }
.slot input:disabled + span { cursor: not-allowed; color: #7a5c48; background: repeating-linear-gradient(-45deg, var(--sand) 0 6px, var(--cream) 6px 12px); text-decoration: line-through; }
.slot input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }
.full-note { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-3); align-items: start; margin-top: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: #fbe7bf; box-shadow: inset 0 0 0 2px var(--mustard); }
.full-note .btn { grid-column: 2; justify-self: start; }
.full-note .ic { color: var(--choc); margin-top: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.fields .field:first-child { grid-column: 1 / -1; }
.book-foot { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
#book-btn { min-width: 210px; }
.spinner { display: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .btn__label::after { content: "…"; }
.booked { display: grid; gap: var(--s-3); justify-items: start; position: relative; overflow: hidden; padding-top: var(--s-4); }
.booked:focus { outline: none; }
.booked[hidden] { display: none; }
.booked h3 { font: 400 var(--fs-h2)/1 var(--display); color: var(--choc); }
.booked__when { font-size: var(--fs-xl); font-weight: 800; }
.booked__ref strong { font-weight: 800; }
.booked > :not(.booked__sun) { position: relative; z-index: 1; }
.booked__sun { position: absolute; right: -120px; top: -120px; z-index: 0; width: 240px; height: 240px; border-radius: 50%; background: repeating-conic-gradient(var(--mustard) 0 9deg, transparent 9deg 18deg); -webkit-mask: radial-gradient(circle, transparent 0 22%, #000 23% 70%, transparent 71%); mask: radial-gradient(circle, transparent 0 22%, #000 23% 70%, transparent 71%); opacity: 0.4; }
.booked .btn { margin-top: var(--s-3); }

/* ---------- 12. Finance ---------- */
.finance { padding: var(--s-9) 0; }
.finance__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.finance__text { display: grid; gap: var(--s-4); max-width: 60ch; }
.fin-controls { display: grid; gap: var(--s-5); margin-top: var(--s-4); }
.ticket { border-radius: var(--r-lg); padding: var(--s-6); background: var(--mustard); color: var(--choc); box-shadow: inset 0 0 0 2px var(--choc), var(--lift); position: relative; overflow: hidden; }
.ticket::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: repeating-conic-gradient(rgb(58 35 24 / 0.08) 0 8deg, transparent 8deg 16deg); }
.ticket__head { font-size: var(--fs-lg); font-weight: 700; }
.ticket__head .num { font: 400 3.25rem/1 var(--display); display: block; margin-bottom: 4px; }
.ticket__rows { margin: var(--s-5) 0 0; display: grid; position: relative; z-index: 1; }
.ticket__rows div { display: flex; justify-content: space-between; gap: var(--s-4); padding: 10px 0; border-top: 2px solid rgb(58 35 24 / 0.22); }
.ticket__rows dd { margin: 0; font-weight: 700; text-align: right; }
.ticket__rows .ticket__sum { border-top: 3px solid var(--choc); font-weight: 800; font-size: var(--fs-lg); }
.ticket__rows .ticket__sum dd { font-weight: 800; }
.ticket__apr { margin-top: var(--s-4); font-size: var(--fs-sm); position: relative; z-index: 1; }

/* ---------- 13. Questions, footer ---------- */
.faq { padding: var(--s-8) 0 var(--s-9); }
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list details { border-top: 2px solid var(--choc); }
.faq__list details:last-child { border-bottom: 2px solid var(--choc); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-3) 0; cursor: pointer; font-weight: 700; font-size: var(--fs-lg); list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .ic { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--sand); transition: transform var(--t-mid) var(--ease-out), background-color var(--t-fast); }
.faq__list details[open] summary .ic { transform: rotate(180deg); background: var(--mustard); }
.faq__list p { padding: 0 0 var(--s-5); max-width: 64ch; color: var(--choc-2); }

.foot { position: relative; background: var(--choc); color: var(--cream); padding: calc(4 * (var(--stripe) + var(--stripe-gap)) + var(--s-7)) 0 var(--s-6); }
.foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-6); }
.foot__logo { font: 400 3rem/1 var(--display); color: var(--mustard); margin-bottom: var(--s-3); }
.foot__brand p:last-child { color: var(--cream-dim); max-width: 42ch; }
.foot h3 { font-size: var(--fs-md); color: var(--mustard); margin-bottom: var(--s-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); color: var(--cream-dim); }
.foot ul a { color: var(--cream); text-decoration-color: var(--orange); }
.foot ul li { display: flex; gap: var(--s-3); justify-content: space-between; max-width: 240px; }
.foot__small { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid rgb(243 230 204 / 0.2); font-size: var(--fs-xs); color: var(--cream-dim); }

/* ---------- 14. Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes line-in { from { background: rgb(226 165 48 / 0.35); } to { background: transparent; } }
@keyframes stripe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes roll-in { from { translate: -60% 0; } to { translate: 0 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* The signature: the stripes slide in from the left, one after another, and the scooter rolls in on them */
  .sg--hero i { animation: stripe-in 1.3s var(--ease-out) both; animation-delay: calc(0.12s * var(--n)); }
  .hero__art svg { animation: roll-in 1.6s var(--ease-out) 0.25s both; }
  .hero__copy > * { animation: rise 0.9s var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.1s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.18s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.26s; }

  .comet.riding .wheel { animation: spin var(--spin, 0.9s) linear infinite; }
  .comet.riding .c-bob { animation: bob 0.5s ease-in-out infinite; }
  .charging__art .pack__level { animation: charge 4s var(--ease-out) infinite; }

  /* Scroll-driven: the section stripes draw across as they arrive (visible by default) */
  @supports (animation-timeline: view()) {
    .sg--build i, .sg--ride i { animation: stripe-in linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}
@keyframes charge { 0% { transform: scaleX(0.1); } 80%, 100% { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .comet .acc, .dial__needle, .dial__fill, .bar span, .toggle__knob { transition-duration: 1ms; }
}

/* ---------- 15. Narrow screens ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .build__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .range-grid { grid-template-columns: 1fr; }
  .dial--range { max-width: 220px; justify-self: center; }
  .spec-list { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { padding-bottom: var(--s-4); }
  .hero__art { margin-bottom: clamp(70px, 14vw, 110px); }
  .hero__art svg { width: 100%; margin-left: 0; }
  .sg--hero { right: var(--gutter); bottom: clamp(110px, 24vw, 150px); top: auto; height: calc(62vw + 40px); }
  .story__in, .charging__in, .finance__in, .faq__in, .ride__in { grid-template-columns: 1fr; }
  .build__grid { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; }
  .cluster { grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); }
  .gauge--big { grid-column: 1 / -1; grid-row: 1; max-width: 360px; margin-inline: auto; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .ride__intro { padding-top: var(--s-4); }
}
@media (max-width: 560px) {
  :root { --fs-lg: 1.125rem; }
  .top .btn { padding-inline: 14px; }
  .logo { font-size: 1.5rem; }
  .hero__lede { font-size: var(--fs-md); }
  .hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); padding-top: var(--s-4); }
  .sg--hero { bottom: 140px; }
  .hero__art { margin-bottom: 82px; }
  .details { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .swatch { padding-right: 10px; font-size: var(--fs-xs); gap: 8px; }
  .swatch__dot { width: 34px; height: 34px; }
  .rooms { grid-template-columns: 1fr; }
  .room span { min-height: 0; }
  .fields { grid-template-columns: 1fr; }
  .toggle { gap: var(--s-3); }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
  .cluster { grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 14px; }
  .gauge figcaption { font-size: var(--fs-xs); }
  .summary { padding: var(--s-5); }
  .ticket { padding: var(--s-5); }
  .ticket__head .num { font-size: 2.6rem; }
  .ticket__rows div { font-size: var(--fs-sm); }
  .foot__in { grid-template-columns: 1fr; }
  .seg--3 span { min-height: 52px; font-size: var(--fs-sm); }
  .stage__name { font-size: var(--fs-md); }
  .build > .wrap:first-of-type { padding-left: calc(var(--gutter) + 4 * (var(--stripe) + var(--stripe-gap)) + 12px); }
  .ride-btn { font-size: var(--fs-sm); bottom: 14px; min-height: 44px; }
  .stage__panel { padding-bottom: 72px; }
  .sg--ride { height: 110px; top: 28px; }
  .ride { padding-top: 150px; }
  /* Charging timeline turns vertical */
  .charge-line { height: auto; padding: 0; display: grid; gap: var(--s-4); }
  .charge-line::before { left: 9px; right: auto; top: 12px; bottom: 12px; width: 8px; height: auto; background: linear-gradient(180deg, var(--orange) 0 60%, var(--teal) 60% 100%); }
  .charge-line li, .charge-line li:first-child, .charge-line li:last-child { position: relative; top: 0; left: 0; translate: none; text-align: left; padding-left: 40px; white-space: normal; }
  .charge-line li::before { top: 2px; left: 0; translate: none; }
}
