/* Layout: night-showroom spec sheet. Product under a spotlight left, price ladder right; one deliberate dark look. */
:root {
  --bg: #0a0c0b;            /* showroom black, faint green bias */
  --surface: #111413;
  --surface-2: #171b19;
  --surface-3: #1e2320;
  --ink: #eef1ee;
  --ink-2: #a8b2ab;
  --ink-3: #737e77;
  --line: #242a26;
  --line-strong: #343c37;
  --forest: #1f5a3f;        /* deep forest, for large fills */
  --accent: #55b585;        /* forest green, readable on black */
  --accent-strong: #2f7d57; /* buttons with white text */
  --accent-ink: #ffffff;
  --accent-soft: #12271c;
  --ok: #55b585;
  --warn: #e2b358;
  --warn-soft: #2e2511;
  --danger: #f07a6c;
  --danger-soft: #331815;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 40px rgba(0, 0, 0, .35);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: .8125rem;
  --step-0: .9375rem;
  --step-1: 1.0625rem;
  --step-2: 1.25rem;
  --step-3: 1.625rem;
  --step-4: 2.125rem;
  --step-5: clamp(2.1rem, 4.2vw, 3.1rem);

  --radius: 14px;
  --radius-sm: 9px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.wrap {
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 var(--step-0)/1 var(--font-body); padding: .9rem 1.3rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); color: var(--accent-ink); }
.btn-primary:hover { background: #378f64; }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: #ffffff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 0 .95rem; height: 38px; font-size: var(--step--1); }
.btn svg { flex: none; }
.btn-lg { padding: 1.05rem 1.6rem; font-size: var(--step-1); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* ---------- Banner ---------- */
.banner { background: var(--warn-soft); color: var(--ink); border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.banner .wrap { padding-block: .55rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.banner strong { color: var(--warn); }
.banner a { color: var(--warn); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font: 800 .8rem/1 var(--font-display); font-stretch: 125%; flex: none; letter-spacing: .02em;
}
.brand-name { display: block; font: 700 var(--step-0)/1.15 var(--font-display); font-stretch: 118%; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand-tag { display: block; font: 400 var(--step--1)/1.3 var(--font-body); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.live-pill {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  font: 500 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.live-pill[data-mode="preview"] .live-dot { background: var(--warn); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(85, 181, 133, .55); } 70% { box-shadow: 0 0 0 8px rgba(85, 181, 133, 0); } 100% { box-shadow: 0 0 0 0 rgba(85, 181, 133, 0); } }
@media (max-width: 560px) { .live-pill { display: none; } .brand-tag { display: none; } }
@media (max-width: 900px) { .header-actions .btn { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.25rem, 3.5vw, 2.75rem) clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.gallery { display: grid; gap: .8rem; min-width: 0; }
.gallery-frame {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(60% 55% at 52% 42%, rgba(220, 235, 226, .16), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(47, 125, 87, .28), transparent 70%),
    linear-gradient(180deg, #151917 0%, #0c0e0d 100%);
  border: 1px solid var(--line);
}
@media (orientation: landscape) and (max-height: 500px) {
  .gallery-frame { aspect-ratio: auto; height: min(62vh, 300px); }
}
.gallery-frame::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 17%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.gallery-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; position: relative; z-index: 1; display: block; }
.gallery-frame svg { width: 100%; height: 100%; position: relative; z-index: 1; }
.temp-chip {
  position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: baseline; gap: .35rem;
  background: rgba(10, 12, 11, .7); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .4rem .75rem; font: 600 .8rem/1 var(--font-mono); color: var(--accent);
}
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumbs button { position: relative; width: 76px; height: 57px; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; border: 2px solid var(--line); background: var(--surface); }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .9rem; background: rgba(0, 0, 0, .35); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { font-size: var(--step--1); color: var(--ink-3); }

.swatches { display: flex; gap: .55rem; flex-wrap: wrap; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch label {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; user-select: none;
  padding: .4rem .85rem .4rem .4rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 500; font-size: var(--step--1); white-space: nowrap; transition: border-color .15s ease, box-shadow .15s ease;
}
.swatch .dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .3); }
/* Selected colour: the whole pill turns green with a tick, so the choice is unmistakable. */
.swatch input:checked + label { background: var(--accent); border-color: var(--accent); color: #06140d; font-weight: 650; box-shadow: 0 0 0 3px var(--accent-soft); }
.swatch input:checked + label::after { content: "\2713"; font-weight: 800; margin-left: -.1rem; }
.swatch input:checked + label .dot { border-color: rgba(6, 20, 13, .45); }
.swatch input:checked + label .count { color: rgba(6, 20, 13, .7); }
.swatch input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch .count { font-family: var(--font-mono); color: var(--ink-3); font-size: .75rem; }

.buybox { display: grid; gap: 1.2rem; min-width: 0; }
.buybox h1 { font-size: var(--step-5); font-weight: 750; text-transform: uppercase; font-stretch: 118%; letter-spacing: .005em; }
.buybox .lede { color: var(--ink-2); font-size: var(--step-1); max-width: 46ch; }

.price-block { display: grid; gap: .35rem; }
.price-row { display: flex; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; }
.price-main { font: 800 var(--step-5)/1 var(--font-display); font-stretch: 112%; letter-spacing: -.01em; }
.price-was { font: 500 var(--step-1)/1 var(--font-mono); color: var(--ink-3); text-decoration: line-through; }
.price-row { position: relative; }
.price-plus {
  font: 500 var(--step-0)/1 var(--font-body); color: var(--ink-2); margin-left: -.4rem; cursor: help;
  text-decoration: underline dotted; text-underline-offset: 4px; text-decoration-color: var(--ink-3);
}
.price-plus:hover, .price-plus:focus-visible, .price-plus[aria-expanded="true"] { color: var(--ink); }
.pp-i {
  display: inline-flex; align-items: center; justify-content: center; width: 1.05rem; height: 1.05rem; margin-left: .35rem;
  border-radius: 50%; border: 1px solid currentColor; font: 700 .66rem/1 var(--font-body); font-style: normal; vertical-align: .1em;
}
/* Touch screens can't hover: plain text with a green ⓘ, and a tall enough tap area to open the prices. */
@media (hover: none), (max-width: 560px) {
  .price-plus {
    display: inline-flex; align-items: center; gap: .1rem; margin-left: 0; padding: .45rem 0; min-height: 36px;
    text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .price-plus .pp-i { color: var(--accent); }
  .price-plus[aria-expanded="true"] { color: var(--ink); }
  .ship-tip { width: min(320px, calc(100vw - 32px)); }
}
.ship-tip {
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 15; width: min(320px, 100%);
  display: grid; gap: .5rem; padding: .85rem .95rem; border-radius: 12px;
  background: var(--surface-3); border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  font: 400 var(--step--1)/1.4 var(--font-body); color: var(--ink-2); cursor: default;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.price-plus[aria-expanded="true"] .ship-tip { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .price-plus:not([data-closed]):hover .ship-tip { opacity: 1; visibility: visible; transform: none; } }
.ship-tip .st-title { font-weight: 600; color: var(--ink); }
.ship-tip .st-note { color: var(--ink-3); border-top: 1px solid var(--line); padding-top: .5rem; }
.ship-row { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .6rem; align-items: baseline; }
.ship-row b { font: 600 var(--step-0)/1 var(--font-mono); color: var(--accent); }
.tier .t-ship { font: 500 .7rem/1 var(--font-body); color: var(--ink-3); margin-left: .25rem; }
#ship-quote { color: var(--accent); }
.price-label { font-size: var(--step--1); color: var(--ink-2); }
.save-chip { display: inline-flex; align-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: var(--step--1); padding: .35rem .7rem; border-radius: 999px; border: 1px solid rgba(85, 181, 133, .25); }

/* Battery + tier ladder */
.charge { display: grid; gap: .8rem; padding: 1.1rem 1.15rem 1.15rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.charge-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; }
.charge-count { font: 800 var(--step-4)/1 var(--font-display); font-stretch: 112%; }
.charge-count span:not(.num) { font: 500 var(--step-0)/1 var(--font-body); color: var(--ink-3); }
.charge-count .num { color: var(--ink); }
.charge-count-wrap { display: grid; gap: .55rem; justify-items: start; }
.eoi-wrap { position: relative; display: inline-block; max-width: 100%; }
.eoi-chip {
  display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; padding: .4rem .7rem .4rem .75rem; border-radius: 18px;
  background: var(--accent-soft); border: 1px solid rgba(85, 181, 133, .3); color: var(--ink-2);
  font: 400 var(--step--1)/1.25 var(--font-body); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.eoi-chip b { color: var(--accent); font-weight: 700; }
.eoi-chip .pp-i { margin-left: 0; color: var(--accent); flex: none; }
.eoi-chip:hover, .eoi-chip[aria-expanded="true"] { border-color: rgba(85, 181, 133, .65); }
.eoi-chip.no-links { cursor: default; }
.eoi-chip.no-links:hover { border-color: rgba(85, 181, 133, .3); }
/* Where the interest came from: a small popover, like the delivery prices. Hover on desktop, tap on phones. */
.eoi-tip {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 15; width: min(300px, calc(100vw - 32px));
  display: grid; gap: .7rem; padding: .85rem .95rem; border-radius: 12px;
  background: var(--surface-3); border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  font: 400 var(--step--1)/1.4 var(--font-body); color: var(--ink-2);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.eoi-tip::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
@media (hover: hover) { .eoi-wrap:not([data-closed]):hover .eoi-tip { opacity: 1; visibility: visible; transform: none; } }
.eoi-chip[aria-expanded="true"] + .eoi-tip { opacity: 1; visibility: visible; transform: none; }
.eoi-chip.no-links + .eoi-tip { display: none; }
.eoi-tip .st-title { font-weight: 600; color: var(--ink); }
.eoi-tip-group { display: grid; gap: .15rem; justify-items: start; }
.eoi-tip-group > span { font: 600 .7rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .1rem; }
.eoi-tip a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(85, 181, 133, .6); text-underline-offset: 2px; padding: .15rem 0; }
.eoi-tip a:hover, .eoi-tip a:focus-visible { color: var(--accent); }
.eoi-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(85, 181, 133, .2); flex: none; }
.charge-next { font-size: var(--step--1); color: var(--ink-2); }
.charge-next b { color: var(--accent); }
.battery { display: flex; align-items: center; gap: 4px; }
.battery-cell { position: relative; flex: 1; height: 32px; border-radius: 8px; border: 2px solid var(--ink-2); padding: 3px; }
.battery-nub { width: 6px; height: 13px; border-radius: 0 3px 3px 0; background: var(--ink-2); flex: none; }
.battery-fill {
  height: 100%; width: var(--pct, 0%); border-radius: 4px; background-color: var(--accent);
  background-image: repeating-linear-gradient(115deg, transparent 0 10px, rgba(255, 255, 255, .14) 10px 20px);
  animation: charge 2.4s linear infinite; transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
@keyframes charge { from { background-position: 0 0; } to { background-position: -46px 0; } }
.battery-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--bg); z-index: 2; }
.battery-mark::after {
  content: attr(data-units); position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font: 600 .66rem/1 var(--font-mono); color: var(--ink-3);
}
.battery-mark[data-reached="true"]::after { color: var(--accent); }
.battery-mark:last-of-type { background: transparent; }
.tiers { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: .5rem; }
.tier { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; display: grid; gap: .15rem; background: var(--surface-2); min-width: 0; }
.tier .t-units { font: 600 .7rem/1.2 var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.tier .t-price { font: 800 var(--step-2)/1.1 var(--font-display); font-stretch: 112%; }
.tier .t-label { font-size: .75rem; color: var(--ink-3); }
.tier[data-state="reached"] { border-color: rgba(85, 181, 133, .45); background: var(--accent-soft); }
.tier[data-state="reached"] .t-units, .tier[data-state="reached"] .t-label { color: var(--accent); }
.tier[data-state="next"] { border-color: var(--line-strong); border-style: dashed; }
.tier[data-state="locked"] .t-price { color: var(--ink-2); }
@media (max-width: 560px) {
  .tier { padding: .55rem .6rem; }
  .tier .t-label, .tier .t-word { display: none; }
}
.charge-foot { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--ink-3); }
.split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.split span { height: 100%; transition: width .6s ease; }
.split-legend { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-2); }
.split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; border: 1px solid rgba(255, 255, 255, .25); vertical-align: -1px; }
.updated-at { font: 500 .72rem/1.3 var(--font-mono); color: var(--ink-3); }

.cta-row { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.closes { font-size: var(--step--1); color: var(--ink-2); }
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding-top: .25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 560px) { .trust-row { grid-template-columns: minmax(0, 1fr); } }
.trust-item { display: flex; gap: .55rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-2); }
.trust-item svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.25rem, 5vw, 3.75rem); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .55rem; margin-bottom: 1.6rem; max-width: 64ch; }
.section-head h2 { font-size: var(--step-4); font-weight: 750; text-transform: uppercase; font-stretch: 118%; }
.section-head p { color: var(--ink-2); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.section-head-row .section-head { margin-bottom: 0; }
/* Key specs */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.feature { display: grid; gap: .45rem; align-content: start; padding: 1.1rem 1.15rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: .25rem; }
.feature-ico svg { width: 21px; height: 21px; }
.feature h3 { font-size: var(--step-0); font-weight: 700; line-height: 1.25; }
.feature p { font-size: var(--step--1); color: var(--ink-2); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } .feature { grid-template-columns: 40px minmax(0, 1fr); column-gap: .85rem; } .feature-ico { grid-row: span 2; margin-bottom: 0; } }

/* Stage tracker */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stage { position: relative; padding: 0 .9rem 0 0; display: grid; gap: .45rem; align-content: start; min-width: 0; }
.stage-marker { display: flex; align-items: center; }
.stage-dot {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 600 .85rem/1 var(--font-mono); background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink-3); z-index: 1;
}
.stage-line { flex: 1; height: 2px; background: var(--line-strong); }
.stage:last-child .stage-line { visibility: hidden; }
.stage h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 108%; }
.stage p { font-size: var(--step--1); color: var(--ink-2); }
.stage .when { font: 500 .72rem/1.35 var(--font-mono); color: var(--ink-3); }
.stage[data-state="done"] .stage-dot { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.stage[data-state="done"] .stage-line { background: var(--accent-strong); }
.stage[data-state="current"] .stage-dot { background: var(--accent); border-color: var(--accent); color: #06140d; box-shadow: 0 0 0 5px var(--accent-soft); }
.stage[data-state="current"] h3 { color: var(--accent); }
.stage-badge { justify-self: start; font: 600 .66rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; padding: .32rem .5rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
/* "Now" sits on the progress line beside the dot, so every step's title starts at the same height. */
.stage-badge-line { margin: 0 .55rem 0 .75rem; flex: none; }
.stage-badge-stack { display: none; }
/* Upcoming steps: same pill as "Now", in grey. */
.stage-badge.stage-tag { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); letter-spacing: .06em; }
@media (max-width: 760px) {
  .stage-badge-line { display: none; }
  .stage-badge-stack { display: inline-block; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stage { grid-template-columns: 34px minmax(0, 1fr); column-gap: .9rem; padding: 0 0 1.25rem; }
  .stage-marker { grid-row: span 4; flex-direction: column; align-self: stretch; }
  .stage-line { width: 2px; height: auto; flex: 1; }
  .stage > :not(.stage-marker) { grid-column: 2; }
}

/* Tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button {
  font: 600 var(--step--1)/1 var(--font-body); color: var(--ink-2); background: transparent; border: 0; border-radius: 999px;
  padding: .6rem 1rem; cursor: pointer; display: inline-flex; gap: .5rem; align-items: center;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tabs .tab-count { font: 600 .72rem/1 var(--font-mono); padding: .2rem .4rem; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.tabs button[aria-selected="true"] .tab-count { background: var(--bg); color: var(--ink); }
.tab-note { font-size: var(--step--1); color: var(--ink-3); margin-top: 1rem; }

/* Tracker cards */
.tracker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .tracker-grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; display: grid; gap: .85rem; align-content: start; min-width: 0; }
.card h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 108%; }
.card-sub { font-size: var(--step--1); color: var(--ink-3); }
.bars { display: grid; gap: .55rem; }
.bar-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 2.5rem; gap: .6rem; align-items: center; font-size: var(--step--1); }
.bar-row .lbl { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Colour names are longer (White/Purple), so give them a wider label and a shorter bar. */
#c-colour .bar-row, #i-colour .bar-row { grid-template-columns: 6.5rem minmax(0, 1fr) 2.5rem; }
.bar-row .val { text-align: right; font-family: var(--font-mono); color: var(--ink); }
.bar-track { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar-track span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .6s ease; }
.bar-row[data-zero="true"] .lbl, .bar-row[data-zero="true"] .val { color: var(--ink-3); }
.milestones { display: grid; }
.milestone { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line-strong); font-size: var(--step--1); color: var(--ink-2); }
.milestone:last-child { border-bottom: 0; }
.milestone b { font: 600 var(--step-1)/1 var(--font-mono); color: var(--ink); }
.big-stat { display: grid; gap: .2rem; padding: .55rem 0; border-bottom: 1px dashed var(--line-strong); }
.big-stat:last-child { border-bottom: 0; }
.big-stat b { font: 800 var(--step-3)/1 var(--font-display); font-stretch: 112%; }
.big-stat span { font-size: var(--step--1); color: var(--ink-3); }

.updates { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.updates .update:first-child { border-color: rgba(85, 181, 133, .35); }
.updates .update:first-child time { color: var(--accent); }
.older-updates { margin-top: .6rem; }
.older-updates .update:first-child { border-color: var(--line); }
.older-updates .update:first-child time { color: var(--ink-3); }
.updates-more { margin-top: .75rem; }
.update { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.update time { font: 500 .78rem/1.5 var(--font-mono); color: var(--ink-3); }
@media (max-width: 560px) { .update { grid-template-columns: minmax(0, 1fr); gap: .25rem; } }

/* ---------- Register dialog ---------- */
dialog.sheet {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-strong);
  border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: rise .22s cubic-bezier(.2, .8, .2, 1); }
dialog.sheet::backdrop { background: rgba(3, 5, 4, .72); backdrop-filter: blur(4px); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.35rem 1rem; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: var(--step-3); font-weight: 750; text-transform: uppercase; font-stretch: 116%; }
.sheet-head p { color: var(--ink-2); font-size: var(--step--1); margin-top: .35rem; }
.sheet-close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.sheet-close:hover { border-color: var(--ink-3); }
.sheet-body { padding: 1.2rem 1.35rem 1.35rem; overflow-y: auto; }
.sheet-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.sheet-steps li { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .6rem; font-size: .72rem; line-height: 1.35; color: var(--ink-3); background: var(--surface-2); display: grid; gap: .2rem; align-content: start; min-width: 0; }
.sheet-steps .ss-num { font: 600 .68rem/1 var(--font-mono); color: var(--ink-3); }
.sheet-steps .ss-title { color: var(--ink-2); font-weight: 600; font-size: .76rem; }
.sheet-steps .ss-of { display: none; }
.sheet-steps li[data-state="done"] .ss-num { color: var(--accent); }
.sheet-steps li[data-state="current"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(85, 181, 133, .12); }
.sheet-steps li[data-state="current"] .ss-num, .sheet-steps li[data-state="current"] .ss-title { color: var(--accent); }
.sheet-steps li[data-state="current"] .ss-body { color: var(--ink-2); }
@media (max-width: 560px) {
  dialog.sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .sheet-head { padding-top: calc(1rem + env(safe-area-inset-top, 0px)); }
  .sheet-body { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  .sheet-steps { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .sheet-steps li { grid-template-columns: 1.4rem minmax(0, 1fr); column-gap: .5rem; row-gap: .1rem; align-items: baseline; padding: .45rem .65rem; }
  .sheet-steps li .ss-body { grid-column: 2; }
  .sheet-steps li:not([data-state="current"]) .ss-body, .sheet-steps .ss-now { display: none; }
}

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: var(--step--1); padding: 0; }
/* Colour pills in the form: keep their own padding (the rule above would strip it) so names sit inside the pill. */
.field .swatch label { padding: .5rem 1.1rem .5rem .45rem; gap: .6rem; font-weight: 500; min-height: 44px; }
.field .hint { font-size: .78rem; color: var(--ink-3); font-weight: 400; }
/* 16px text: iPhone Safari zooms the whole page in when a field's text is smaller, leaving it scrolling sideways. */
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .7rem .8rem; min-height: 44px;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); background: var(--surface-3); }
.field[data-invalid="true"] input, .field[data-invalid="true"] select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8rem; }
.field .hint.ok { color: var(--accent); font-weight: 500; }
#address-wrap { position: relative; }
.addr-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: .3rem; list-style: none;
  background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.addr-list li[data-i] { display: grid; gap: .1rem; padding: .6rem .65rem; border-radius: 7px; cursor: pointer; }
.addr-list li[data-i]:hover, .addr-list li[aria-selected="true"] { background: var(--accent-soft); }
.addr-list .addr-main { color: var(--ink); font-size: var(--step-0); }
.addr-list .addr-sub { color: var(--ink-3); font-size: .78rem; }
.addr-list .addr-credit { padding: .35rem .65rem .2rem; text-align: right; font-size: .7rem; color: var(--ink-3); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-2); }
.field .check { align-items: center; font-weight: 400; line-height: 1.45; }
.field .check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; border-radius: 4px; accent-color: var(--accent-strong); flex: none; }
.form-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }
.form-msg { font-size: var(--step--1); }
.form-msg[data-tone="error"] { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success { display: grid; gap: 1rem; }
.pay-box { display: grid; gap: .7rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid rgba(85, 181, 133, .45); background: var(--accent-soft); }
.pay-box h3 { font-size: var(--step-2); font-weight: 750; text-transform: uppercase; font-stretch: 112%; }
.pay-rows { margin: 0; display: grid; }
.pay-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed rgba(85, 181, 133, .25); }
.pay-row:last-child { border-bottom: 0; }
.pay-row dt { color: var(--ink-2); font-size: var(--step--1); }
.pay-row dd { margin: 0; font: 600 var(--step-0)/1.3 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.pay-row dd.missing { color: var(--warn); font-family: var(--font-body); font-weight: 500; }
.pay-row .copy { font: 600 .72rem/1 var(--font-body); color: var(--accent); background: transparent; border: 1px solid rgba(85, 181, 133, .45); border-radius: 999px; padding: .4rem .65rem; cursor: pointer; }
.pay-row .copy:hover { background: rgba(85, 181, 133, .12); }
.pay-note { font-size: .8rem; color: var(--ink-2); }
@media (max-width: 560px) { .pay-row { grid-template-columns: minmax(0, 1fr) auto; } .pay-row dt { grid-column: 1 / -1; } }
.success-num { font: 800 clamp(3rem, 10vw, 4.5rem)/1 var(--font-display); font-stretch: 112%; color: var(--accent); }

/* Sticky mobile bar */
/* Terms page (?view=terms): only the terms, opened from the order form in a new tab. */
.terms-only main > :not(#faq), .terms-only .mobile-cta, .terms-only .header-actions { display: none !important; }
.terms-only #faq { border-top: 0; }
.terms-only #faq details:not(#terms) { display: none; }
.terms-only #terms > summary { display: none; }
.terms-only #terms { border: 0; background: none; }
.terms-only #terms .body { padding: 0; max-width: 72ch; }

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none;
  padding: .7rem max(16px, env(safe-area-inset-right, 0px)) calc(.7rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  align-items: center; justify-content: space-between; gap: .75rem;
}
.mobile-cta .m-count { font-size: var(--step--1); color: var(--ink-2); }
.mobile-cta .m-count b { color: var(--ink); font-family: var(--font-mono); }
@media (max-width: 900px) { .mobile-cta { display: flex; } body.has-mobile-cta { padding-bottom: 76px; } }
/* Netlify's "Powered by Netlify" badge sits bottom-right, so the Join button goes on the left. */
@media (max-width: 900px) { .mobile-cta { flex-direction: row-reverse; } }

/* ---------- Money + specs ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table th, .table td { text-align: left; padding: .65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 500; color: var(--ink-2); padding-right: 1rem; width: 45%; }
.table td.amt { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.table tr.total th, .table tr.total td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.table .note { display: block; font-size: .78rem; color: var(--ink-3); font-weight: 400; }
.margin-row th, .margin-row td { color: var(--accent) !important; }

/* ---------- Organiser ---------- */
.organiser { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 520px) { .organiser { grid-template-columns: minmax(0, 1fr); } }
.avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 800 2rem/1 var(--font-display); border: 1px solid var(--line-strong); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.org-meta { display: grid; gap: .7rem; min-width: 0; }
.org-meta h3 { font-size: var(--step-3); text-transform: uppercase; font-stretch: 116%; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1rem; font-size: var(--step--1); margin: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- FAQ + terms ---------- */
.accordion { display: grid; gap: .5rem; }
.accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.accordion summary { cursor: pointer; padding: .95rem 1.1rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font: 400 1.3rem/1 var(--font-mono); color: var(--ink-3); flex: none; }
.accordion details[open] summary::after { content: "–"; }
.accordion .body { padding: 0 1.1rem 1.1rem; color: var(--ink-2); display: grid; gap: .7rem; font-size: var(--step--1); max-width: 75ch; }
.accordion .body ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.acl-box { border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--ink); padding: .75rem .9rem; border-radius: 0 8px 8px 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: var(--step--1); color: var(--ink-3); }
.site-footer .wrap { display: grid; gap: .6rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 10px; font-size: var(--step--1); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 60; max-width: calc(100vw - 32px);
}
.toast[data-show="true"] { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[data-tone="error"] { background: var(--danger); color: #1a0705; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Admin: delivery address cell */
.addr-cell { min-width: 12rem; max-width: 18rem; font-size: .82rem; line-height: 1.35; color: var(--ink-2); }
.addr-cell .addr-ok { font-style: normal; color: var(--accent); }
