/* ── Fonts (self-hosted) ───────────────────────────────────────────────── */
@font-face { font-family: 'Archivo'; src: url(/assets/fonts/archivo.woff2) format('woff2-variations'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(/assets/fonts/fraunces.woff2) format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JB Mono'; src: url(/assets/fonts/jbmono.woff2) format('woff2-variations'); font-weight: 100 800; font-display: swap; }

/* ── Themes ────────────────────────────────────────────────────────────── */
:root, [data-pos="endurance"] {
  --bg: #0A0B0C; --bg-2: #101214; --surface: #15181B; --surface-2: #1C2024; --surface-3: #252A2F;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #F1F0EC; --muted: #9BA1A7; --faint: #6B7177;
  --accent: #3BF0C1; --accent-2: #22C9A0; --accent-ink: #03140F; --hot: #FF6B2C;
  --display: 'Archivo', system-ui, sans-serif; --display-stretch: 72%; --display-weight: 850; --display-case: uppercase; --display-track: -0.005em; --display-lh: .9;
  --radius: 14px; --radius-lg: 22px;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  --hero-veil: linear-gradient(90deg, rgba(10,11,12,.97) 0%, rgba(10,11,12,.86) 34%, rgba(10,11,12,.1) 62%, rgba(10,11,12,0) 100%);
  color-scheme: dark;
}
[data-pos="wellbeing"] {
  --bg: #F5F2EC; --bg-2: #EEE9E1; --surface: #FFFFFF; --surface-2: #FAF8F4; --surface-3: #F0ECE5;
  --line: rgba(23,25,27,.09); --line-2: rgba(23,25,27,.16);
  --text: #17191B; --muted: #62676C; --faint: #8C9196;
  --accent: #1E8A70; --accent-2: #16735D; --accent-ink: #FFFFFF; --hot: #C9764F;
  --display: 'Fraunces', Georgia, serif; --display-stretch: 100%; --display-weight: 480; --display-case: none; --display-track: -0.025em; --display-lh: 1.02;
  --shadow: 0 30px 70px -35px rgba(60,45,30,.35);
  --hero-veil: linear-gradient(90deg, rgba(245,242,236,.97) 0%, rgba(245,242,236,.88) 34%, rgba(245,242,236,0) 62%);
  color-scheme: light;
}
[data-pos="endurance"] [data-only="wellbeing"], [data-pos="wellbeing"] [data-only="endurance"] { display: none !important; }

/* ── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 'Archivo', system-ui, -apple-system, Segoe UI, sans-serif; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap, .wrap--narrow { width: calc(100% - 36px); } body { font-size: 16px; } }

.mono { font-family: 'JB Mono', ui-monospace, monospace; font-feature-settings: 'zero' 1; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); font-stretch: 110%;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.display, .h1, .h2, .h3 {
  font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight);
  text-transform: var(--display-case); letter-spacing: var(--display-track); line-height: var(--display-lh); margin: 0;
  text-wrap: balance;
}
.display { font-size: clamp(48px, 8vw, 120px); }
.h1 { font-size: clamp(42px, 6.2vw, 88px); }
.h2 { font-size: clamp(34px, 4.6vw, 64px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.08; }
[data-pos="wellbeing"] .display { font-size: clamp(44px, 6.4vw, 96px); }
[data-pos="wellbeing"] .h3 { font-weight: 500; }
.accent { color: var(--accent); }
[data-pos="wellbeing"] .display em, [data-pos="wellbeing"] .h1 em, [data-pos="wellbeing"] .h2 em { font-style: italic; color: var(--accent); }
[data-pos="endurance"] .display em, [data-pos="endurance"] .h2 em, [data-pos="endurance"] .h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); max-width: 38em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; color: var(--faint); }
p { margin: 0 0 1em; }
.stack > * + * { margin-top: var(--gap, 18px); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  --b: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid var(--b); background: var(--b); color: var(--accent-ink);
  font-weight: 750; font-size: 15.5px; letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .25s ease, color .2s ease;
}
[data-pos="endurance"] .btn { text-transform: uppercase; font-stretch: 105%; font-size: 14.5px; letter-spacing: .06em; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
[data-pos="endurance"] .btn--sm { font-size: 12.5px; }
.btn--lg { padding: 19px 34px; font-size: 16.5px; }
[data-pos="endurance"] .btn--lg { font-size: 15px; }
.btn--block { width: 100%; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--accent); text-decoration: none; font-weight: 650; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.link:hover { border-color: var(--accent); }

/* ── Announcement + header ─────────────────────────────────────────────── */
.announce {
  display: block; text-align: center; padding: 9px 16px; font-size: 13.5px; font-weight: 650; letter-spacing: .02em;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; position: relative; z-index: 51;
}
.announce span { opacity: .78; font-weight: 500; }
.hdr { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.is-scrolled, .hdr.is-open { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.hdr__inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo svg { width: 24px; height: 28px; }
.logo b { font-weight: 800; font-stretch: 118%; letter-spacing: .12em; font-size: 16px; }
.hdr__nav { display: flex; gap: 26px; margin-left: auto; }
.hdr__nav a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .2s; }
.hdr__nav a:hover { color: var(--text); }
.hdr__cta { display: flex; gap: 12px; align-items: center; }
.cur { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.cur button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.cur button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.hdr__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; position: relative; flex: none; }
.hdr__burger i, .hdr__burger i::before, .hdr__burger i::after { position: absolute; left: 13px; width: 17px; height: 1.8px; background: var(--text); border-radius: 2px; content: ''; transition: transform .25s, top .25s; }
.hdr__burger i { top: 21px; } .hdr__burger i::before { left: 0; top: -6px; } .hdr__burger i::after { left: 0; top: 6px; }
.hdr.is-open .hdr__burger i { background: transparent; }
.hdr.is-open .hdr__burger i::before { top: 0; transform: rotate(45deg); }
.hdr.is-open .hdr__burger i::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .hdr__burger { display: block; order: 3; }
  .hdr__cta { margin-left: auto; }
  .hdr__cta .cur { display: none; }
  .hdr__nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; padding: 12px 24px 28px; background: var(--bg);
    border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .hdr__nav a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .hdr.is-open .hdr__nav { transform: none; opacity: 1; pointer-events: auto; }
}
@media (max-width: 480px) { .hdr__cta .btn { padding: 10px 14px; } .logo b { font-size: 14px; letter-spacing: .1em; } .announce { font-size: 12.5px; } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sec--tight { padding: clamp(56px, 7vw, 96px) 0; }
.sec--alt { background: var(--bg-2); }
.sec__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 900px; justify-items: start; }
.sec__head--center { text-align: center; margin-inline: auto; justify-items: center; }
.sec__head--center .lead { margin-inline: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* image card */
.media { border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--surface-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.media:hover img { transform: scale(1.03); }
.media__cap { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.media__cap b { font-size: 20px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: .01em; }
.media__cap span { font-family: 'JB Mono', monospace; font-size: 12px; opacity: .85; }
.media::after { content: ''; position: absolute; inset: 50% 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.media--plain::after { display: none; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: calc(100svh - 109px); display: flex; align-items: center; overflow: hidden; padding: 40px 0 60px; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; position: relative; z-index: 2; width: min(1280px, 100% - 48px); }
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__price { font-size: 14.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero__price b { color: var(--text); font-weight: 750; }
.hero__price s { color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 650; color: var(--muted); background: color-mix(in srgb, var(--bg) 50%, transparent); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }
.hero__route { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; z-index: 2; opacity: .9; pointer-events: none; }
.hero__route path.line { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 5s .4s cubic-bezier(.4,.1,.2,1) forwards; vector-effect: non-scaling-stroke; }
.hero__route path.area { fill: url(#routeFill); opacity: 0; animation: fade 1.6s 2.5s forwards; }
.hero__route .mk { opacity: 0; animation: fade .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.chips { position: absolute; display: grid; gap: 8px; z-index: 3; }
.chip {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px; min-width: 220px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2);
  font-size: 13.5px; opacity: .3; transform: translateX(10px); transition: opacity .35s, transform .35s, border-color .3s;
}
.chip.is-on { opacity: 1; transform: none; }
.chip.is-active { border-color: var(--accent); }
.chip i { width: 10px; height: 22px; border-radius: 3px; flex: none; }
.chip span { flex: 1; font-weight: 600; }
.chip b { font-family: 'JB Mono', monospace; font-weight: 600; font-size: 13px; }
.chips__total { font-size: 11.5px; color: var(--muted); padding: 2px 6px; letter-spacing: .06em; font-family: 'JB Mono', monospace; }
[data-pos="endurance"] .chips__total { color: rgba(255,255,255,.7); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); margin-top: 6px; width: 100%; }
.hero-stats div { padding: 16px 14px 0 0; }
.hero-stats b { display: block; font-family: 'JB Mono', monospace; font-weight: 650; font-size: clamp(19px, 1.9vw, 25px); letter-spacing: -0.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }

/* photo hero (both positionings) */
.hero--photo { padding: 0; align-items: stretch; }
.hero__img { position: absolute; inset: 0; z-index: 0; }
.hero__img picture, .hero__img img { width: 100%; height: 100%; }
.hero__img img { object-fit: cover; object-position: 70% 50%; animation: kb 24s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1%, -1%); } }
.hero--photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--hero-veil); }
[data-pos="endurance"] .hero--photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 200px; z-index: 1; background: linear-gradient(transparent, rgba(10,11,12,.85)); }
.hero--photo .hero__grid { grid-template-columns: 1fr 1fr; margin-inline: auto; padding: 56px 0 120px; align-items: center; }
.hero--photo .chips { right: 2%; top: 30%; }
[data-pos="wellbeing"] .hero--photo .hero__grid { padding-bottom: 70px; }
[data-pos="wellbeing"] .hero--photo .chips { right: 3%; top: 36%; }
@media (max-width: 960px) {
  .hero { min-height: 0; flex-direction: column; }
  .hero__grid, .hero--photo .hero__grid { grid-template-columns: 1fr; padding: 28px 0 60px; }
  .hero__img { position: relative; height: 92vw; max-height: 640px; min-height: 340px; width: 100%; }
  .hero__img img { object-position: 60% 40%; }
  .hero--photo::before { inset: 0; background: linear-gradient(180deg, transparent 0, transparent calc(min(92vw, 640px) - 160px), var(--bg) min(92vw, 640px)); }
  [data-pos="endurance"] .hero--photo::after { display: none; }
  .hero--photo .chips { top: calc(min(92vw, 640px) - 250px); right: 12px; }
  .chip { min-width: 0; font-size: 12px; padding: 6px 10px 6px 8px; }
  .chip i { height: 16px; width: 8px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero__route { height: 80px; }
}
@media (max-width: 520px) { .hero--photo .chips { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__img img { animation: none; } }

/* ── Marquee ───────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.marquee__track span {
  font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); text-transform: var(--display-case);
  font-size: clamp(22px, 2.6vw, 36px); padding-right: 1.1em; white-space: nowrap; letter-spacing: var(--display-track);
}
.marquee__track span:nth-child(even) { color: var(--accent); }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ── Problem / compare ─────────────────────────────────────────────────── */
.compare { display: grid; grid-template-columns: .9fr 1fr 1fr; gap: 18px; align-items: stretch; }
.compare .media { min-height: 420px; }
.compare__col { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); background: var(--surface); }
.compare__col--good { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%); }
.compare__col h3 { margin-bottom: 18px; }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.compare li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.compare li::before { content: '✕'; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-3); color: var(--faint); margin-top: 2px; }
.compare__col--good li { color: var(--text); }
.compare__col--good li::before { content: '✓'; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.compare__big { font-family: 'JB Mono', monospace; font-size: clamp(40px, 5vw, 64px); font-weight: 650; letter-spacing: -0.04em; margin-top: 26px; line-height: 1; }
.compare__big small { font-size: 14px; color: var(--muted); letter-spacing: 0; font-family: 'Archivo', sans-serif; font-weight: 500; display: block; margin-top: 8px; }
@media (max-width: 1000px) { .compare { grid-template-columns: 1fr 1fr; } .compare .media { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16/10; } }
@media (max-width: 680px) { .compare { grid-template-columns: 1fr; } }

/* calculator */
.calc { margin-top: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 60px); }
.calc__inputs { display: grid; gap: 22px; align-content: start; }
.range { display: grid; gap: 10px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; color: var(--muted); }
.range__top b { color: var(--text); font-family: 'JB Mono', monospace; font-size: 18px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: var(--surface-3); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); cursor: grab; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-3); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: var(--muted); cursor: pointer; transition: .2s; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.calc__out { display: grid; gap: 14px; align-content: start; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 14px; font-size: 14px; }
.bar__track { height: 30px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 8px; background: var(--faint); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.bar--us .bar__fill { background: var(--accent); }
.bar b { font-family: 'JB Mono', monospace; font-size: 15px; min-width: 80px; text-align: right; }
.calc__save { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 6px; }
.calc__save div b { display: block; font-family: 'JB Mono', monospace; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.calc__save div span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .bar { grid-template-columns: 110px 1fr auto; } }

/* ── How it works (scroll-driven) ──────────────────────────────────────── */
.hiw { position: relative; height: 420vh; }
.hiw__sticky { position: sticky; top: 70px; height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hiw__device { height: min(80vh, 760px); display: grid; place-items: center; position: relative; }
.hiw__device .device-svg { height: 100%; width: auto; filter: drop-shadow(0 40px 50px rgba(0,0,0,.35)); }
.hiw__steps { position: relative; min-height: 380px; }
.hiw__step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(20px); transition: opacity .45s, transform .45s; pointer-events: none; display: grid; gap: 18px; }
.hiw__step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hiw__num { font-family: 'JB Mono', monospace; color: var(--accent); font-size: 14px; letter-spacing: .1em; }
.hiw__progress { display: flex; gap: 8px; margin-bottom: 34px; }
.hiw__progress i { height: 3px; flex: 1; border-radius: 3px; background: var(--surface-3); overflow: hidden; position: relative; }
.hiw__progress i b { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hiw__meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.hiw__meta div { border-left: 2px solid var(--accent); padding-left: 12px; }
.hiw__meta b { display: block; font-family: 'JB Mono', monospace; font-size: 22px; }
.hiw__meta span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .hiw { height: 400vh; }
  .hiw__sticky { grid-template-columns: 1fr; grid-template-rows: 50% 50%; gap: 0; top: 70px; height: calc(100svh - 70px); }
  .hiw__device { height: 100%; }
  .hiw__steps { min-height: 0; align-self: start; padding-top: 6px; }
  .hiw__step { gap: 10px; }
  .hiw__step .h2 { font-size: 28px; }
  .hiw__step .lead { font-size: 15px; }
  .hiw__meta { display: none; }
  .hiw__progress { margin: 10px 0 12px; }
}

/* ── Big numbers ───────────────────────────────────────────────────────── */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.nums > div { padding: clamp(24px, 3vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nums b { display: block; font-family: 'JB Mono', monospace; font-weight: 600; font-size: clamp(44px, 5.6vw, 84px); letter-spacing: -0.05em; line-height: 1; }
.nums b small { font-size: .36em; letter-spacing: 0; color: var(--muted); margin-left: .15em; }
.nums span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 24em; }
.nums span strong { color: var(--text); display: block; font-size: 16px; margin-bottom: 2px; }
@media (max-width: 860px) { .nums { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .nums { grid-template-columns: 1fr; } }
.mech { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.mech > div { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.mech h3 { margin-bottom: 10px; }
@media (max-width: 760px) { .mech { grid-template-columns: 1fr; } }

/* ── Presets ───────────────────────────────────────────────────────────── */
.presets-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.preset { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 22px; display: grid; gap: 14px; align-content: start; cursor: pointer; text-align: left; transition: border-color .25s, transform .25s; color: var(--text); }
.preset:hover, .preset.is-active { border-color: var(--accent); transform: translateY(-3px); }
.preset h3 { font-size: 20px; }
[data-pos="endurance"] .preset h3 { font-size: 22px; }
.preset p { color: var(--muted); font-size: 14px; margin: 0; }
.comp { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface-3); }
.comp i { display: block; height: 100%; min-width: 4px; }
.preset ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.preset li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.preset li b { font-family: 'JB Mono', monospace; font-weight: 600; }
.preset__time { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.preset__time b { color: var(--accent); font-family: 'JB Mono', monospace; }
@media (max-width: 1000px) { .presets-wrap { grid-template-columns: 1fr; } .presets-wrap .cfg__stage { height: 480px !important; min-height: 0 !important; } }
@media (max-width: 560px) { .presets { grid-template-columns: 1fr; } }

/* ── Cartridge sizes ───────────────────────────────────────────────────── */
.cart-hero { margin-bottom: 16px; aspect-ratio: 21/8; }
.cart-hero img { object-position: 50% 55%; }
.sizes { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 16px; align-items: end; }
.size { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: 26px; display: grid; gap: 16px; }
.size__art { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.size__art i { display: block; border-radius: 8px 8px 4px 4px; position: relative; }
.size__art i::after { content: ''; position: absolute; left: 50%; top: 22%; bottom: 12%; width: 5px; margin-left: -2.5px; border-radius: 3px; background: linear-gradient(to top, #fff 0 60%, rgba(255,255,255,.25) 60%); }
.size__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.size__head b { font-family: 'JB Mono', monospace; color: var(--accent); font-size: 14px; }
.size ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.size li { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--surface-3); }
@media (max-width: 900px) { .sizes { grid-template-columns: 1fr; } .cart-hero { aspect-ratio: 16/9; } }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.feat { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.feat b { display: block; margin-bottom: 6px; font-size: 16px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feat svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
@media (max-width: 960px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }

/* use cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { display: grid; gap: 16px; align-content: start; }
.case .media { aspect-ratio: 4/5; }
.case p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } .case .media { aspect-ratio: 16/10; } }

/* gallery (finishes) */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.gallery .media { aspect-ratio: 1/1; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* ── App / phone ───────────────────────────────────────────────────────── */
.phone { width: min(320px, 82vw); aspect-ratio: 9/19; border-radius: 46px; padding: 12px; background: #0c0d0e; border: 1px solid #2a2d31; box-shadow: var(--shadow), inset 0 0 0 2px #1a1c1f; margin-inline: auto; position: relative; }
.phone__screen { height: 100%; border-radius: 36px; background: #0f1416; overflow: hidden; color: #EDEFF0; padding: 50px 18px 18px; display: grid; gap: 12px; align-content: start; font-size: 12.5px; }
[data-pos="wellbeing"] .phone__screen { background: #FBFAF7; color: #17191B; }
.phone__notch { position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 2; }
.ph-title { font-size: 20px; font-weight: 800; font-stretch: 90%; }
.ph-card { border-radius: 16px; padding: 12px; background: rgba(255,255,255,.06); display: grid; gap: 8px; }
[data-pos="wellbeing"] .ph-card { background: #F0ECE5; }
.ph-row { display: flex; justify-content: space-between; align-items: center; }
.ph-row b { font-family: 'JB Mono', monospace; }
.ph-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
[data-pos="wellbeing"] .ph-bar { background: rgba(0,0,0,.08); }
.ph-bar i { display: block; height: 100%; background: #3BF0C1; border-radius: 4px; }
[data-pos="wellbeing"] .ph-bar i { background: #1E8A70; }
.ph-btn { margin-top: 4px; text-align: center; padding: 11px; border-radius: 999px; background: #3BF0C1; color: #03140F; font-weight: 800; }
[data-pos="wellbeing"] .ph-btn { background: #1E8A70; color: #fff; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303140F' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
[data-pos="wellbeing"] .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 15px; }

/* ── Configurator bits ─────────────────────────────────────────────────── */
.cfg { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.cfg__stage { border-radius: var(--radius-lg); border: 1px solid var(--line); height: min(78vh, 720px); display: grid; place-items: center; padding: 30px; position: relative; overflow: hidden; background: radial-gradient(70% 60% at 50% 45%, #2a2d31, #121314); transition: background .5s; }
.cfg__stage .device-svg { height: 100%; width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.3)); }
.cfg__stage[data-stage-finish="white"] { background: radial-gradient(70% 60% at 50% 45%, #FBFAF7, #E2DDD4); }
@media (max-width: 900px) { .cfg { grid-template-columns: 1fr; } .cfg__stage { height: 64vh; min-height: 420px; } }
.opt-group { display: grid; gap: 12px; }
.opt-group__label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.opt-group__label b { color: var(--text); }
.swatches { display: flex; gap: 16px; flex-wrap: wrap; }
.sw { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; position: relative; padding: 0; background: var(--c); transition: transform .2s; }
.sw::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid transparent; transition: border-color .2s; }
.sw[aria-pressed="true"]::after { border-color: var(--accent); }
.sw:hover { transform: scale(1.05); }
.schemes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scheme { border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: 12px; display: grid; gap: 9px; cursor: pointer; text-align: left; font-size: 14px; font-weight: 650; transition: border-color .2s; color: var(--text); }
.scheme[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.scheme__strip { display: flex; gap: 3px; height: 26px; align-items: flex-end; }
.scheme__strip i { flex: 1; border-radius: 3px 3px 1px 1px; display: grid; place-items: center; font-style: normal; font-family: 'JB Mono', monospace; font-size: 8px; }

/* ── Specs ─────────────────────────────────────────────────────────────── */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 32%; font-weight: 650; color: var(--muted); font-size: 15px; padding-right: 24px; }
.specs td { font-size: 16.5px; }
@media (max-width: 640px) { .specs th, .specs td { display: block; width: 100%; padding: 4px 0; border: 0; } .specs tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); } }

/* ── Backer / timeline / disclaimer ────────────────────────────────────── */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: t; margin-bottom: 28px; }
.timeline > div { padding: 26px 22px 26px 0; border-top: 2px solid var(--line-2); position: relative; }
.timeline > div:first-child { border-color: var(--accent); }
.timeline > div::before { counter-increment: t; content: '0' counter(t); position: absolute; top: -13px; left: 0; background: var(--bg); padding-right: 10px; font-family: 'JB Mono', monospace; font-size: 13px; color: var(--accent); }
.sec--alt .timeline > div::before { background: var(--bg-2); }
.timeline b { display: block; font-size: 18px; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; gap: 10px 20px; } }
.disclaimer { border: 1px solid color-mix(in srgb, var(--hot) 45%, transparent); background: color-mix(in srgb, var(--hot) 7%, transparent); border-radius: var(--radius); padding: 20px 22px; font-size: 14.5px; display: flex; gap: 14px; }
.disclaimer::before { content: '!'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--hot); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.disclaimer p { margin: 0; color: var(--text); }
.disclaimer strong { display: block; margin-bottom: 4px; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 50px 26px 0; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ── Final CTA / footer ────────────────────────────────────────────────── */
.final { text-align: center; padding: clamp(90px, 12vw, 170px) 0; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.final > * { position: relative; }
.final .display { margin-bottom: 28px; }
.ftr { border-top: 1px solid var(--line); padding: 56px 0 100px; font-size: 14px; color: var(--muted); }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.ftr h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--text); }
.ftr__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 760px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__grid > :first-child { grid-column: 1 / -1; } }

/* ── Buy bar / toast / consent ─────────────────────────────────────────── */
.buybar { position: fixed; left: 50%; bottom: 18px; z-index: 40; transform: translate(-50%, 160%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; gap: 22px; padding: 10px 10px 10px 24px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); width: max-content; max-width: calc(100% - 24px); }
.buybar.is-on { transform: translate(-50%, 0); }
.buybar__txt { font-size: 14px; line-height: 1.25; }
.buybar__txt b { display: block; font-size: 15px; }
.buybar__txt s { color: var(--faint); margin-left: 6px; }
@media (max-width: 520px) { .buybar { gap: 12px; padding-left: 16px; } .buybar__txt { font-size: 12.5px; } }
.toast { position: fixed; left: 50%; top: 86px; z-index: 80; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: .3s;
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 24px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: inherit; margin-left: 8px; }
.consent { position: fixed; left: 18px; bottom: 18px; z-index: 90; max-width: 460px; background: var(--surface); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 20px; padding: 20px; box-shadow: var(--shadow); font-size: 13.5px; transform: translateY(30px); opacity: 0; transition: .35s; }
.consent.is-on { transform: none; opacity: 1; }
.consent p { margin: 0 0 14px; color: var(--muted); }
.consent strong { color: var(--text); }
.consent__btns { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 520px) { .consent { left: 10px; right: 10px; bottom: 10px; } }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--muted); }
.input, select.input { width: 100%; padding: 15px 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface-2); font-size: 16px; transition: border-color .2s; }
.input:focus { outline: none; border-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.err { color: var(--hot); font-size: 13.5px; min-height: 1em; margin: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Reserve page ──────────────────────────────────────────────────────── */
.rsv { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); padding: 28px 0 100px; align-items: start; }
.rsv__stage { position: sticky; top: 86px; }
.rsv__stage .cfg__stage { height: calc(100vh - 130px); max-height: 820px; }
.rsv__panel { display: grid; gap: 16px; }
.step { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 18px; }
.step__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.step__head h2 { font-size: 21px; margin: 0; font-weight: 750; font-family: 'Archivo', sans-serif; letter-spacing: -0.01em; }
.step__head span { font-family: 'JB Mono', monospace; font-size: 12.5px; color: var(--accent); }
.finish-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finish-opt { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-weight: 650; text-align: left; color: var(--text); }
.finish-opt i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 1px solid var(--line-2); flex: none; }
.finish-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.slots { display: grid; gap: 14px; }
.slots__row { display: grid; gap: 8px; }
.slots__row > span { font-size: 12.5px; color: var(--muted); font-weight: 650; letter-spacing: .04em; }
.slots__grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.slot { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: transparent; cursor: pointer; text-align: left; min-height: 54px; font-size: 13.5px; transition: border-color .2s, background .2s; color: var(--text); position: relative; }
.slot:hover, .slot.is-hl { border-color: var(--accent); }
.slot.is-filled { border-style: solid; background: var(--surface-2); }
.slot__n { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: 'JB Mono', monospace; font-size: 11.5px; font-weight: 700; background: var(--surface-3); }
.slot__t { flex: 1; line-height: 1.25; }
.slot__t small { display: block; color: var(--muted); font-size: 12px; }
.slot__p { font-family: 'JB Mono', monospace; font-size: 12.5px; color: var(--muted); }
.slot__x { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 18px; padding: 0 4px; line-height: 1; }
.slot__x:hover { color: var(--hot); }
.rack-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.summary { display: grid; gap: 10px; font-size: 15px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__row span { color: var(--muted); }
.summary__row b { font-family: 'JB Mono', monospace; font-weight: 600; white-space: nowrap; }
.summary__row s { color: var(--faint); font-family: 'JB Mono', monospace; margin-right: 8px; font-size: 13px; }
.summary__total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 17px; }
.summary__total b { font-size: 20px; }
.summary__due { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 700; }
.summary__due b { color: var(--accent); font-family: 'JB Mono', monospace; font-size: 20px; }
.done { text-align: left; display: grid; gap: 16px; }
.done__badge { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.survey { display: grid; gap: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.survey fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.survey legend { font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 14px; cursor: pointer; transition: .15s; }
.opts input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 980px) {
  .rsv { grid-template-columns: 1fr; padding-top: 12px; }
  .rsv__stage { position: relative; top: 0; }
  .rsv__stage .cfg__stage { height: 56vh; min-height: 380px; }
}
@media (max-width: 460px) { .slots__grid { grid-template-columns: 1fr; } }

/* modal (picker) */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.is-on { opacity: 1; pointer-events: auto; }
.modal__box { width: min(640px, 100%); max-height: 86vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 26px; transform: translateY(16px); transition: transform .3s; }
.modal.is-on .modal__box { transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.modal__head h3 { margin: 0; font-size: 20px; }
.modal__close { border: 1px solid var(--line-2); background: none; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: 20px; flex: none; }
.pick { display: grid; gap: 8px; }
.pick__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; align-items: center; }
.pick__item:hover { border-color: var(--line-2); }
.pick__item b { font-size: 15.5px; }
.pick__item small { color: var(--muted); grid-column: 1; font-size: 13px; }
.pick__right { grid-row: 1 / 3; grid-column: 2; display: grid; gap: 8px; justify-items: end; }
.pick__item select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13px; }

/* ── Supplements page ──────────────────────────────────────────────────── */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(30px, 4vw, 50px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; position: sticky; top: 70px; z-index: 5; padding: 12px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.filters button { border: 1.5px solid var(--line-2); background: none; border-radius: 999px; padding: 9px 16px; font-weight: 650; font-size: 14px; cursor: pointer; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 24px; display: grid; gap: 14px; align-content: start; }
.pcard[hidden] { display: none; }
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pcard__cat { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pcard h3 { font-size: 22px; margin: 4px 0 0; }
[data-pos="endurance"] .pcard h3 { font-size: 26px; }
.pcard p { margin: 0; color: var(--muted); font-size: 14.5px; }
.pcard__art { display: flex; gap: 5px; align-items: flex-end; height: 64px; flex: none; }
.pcard__art i { display: block; border-radius: 5px 5px 2px 2px; background: var(--c); opacity: .25; transition: opacity .2s; }
.pcard__art i.is-on { opacity: 1; }
.pcard__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; }
.pcard__meta div { background: var(--surface-2); border-radius: 10px; padding: 9px 11px; }
.pcard__meta span { display: block; color: var(--muted); font-size: 11.5px; }
.pcard__opts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pcard__buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.pcard__buy b { font-family: 'JB Mono', monospace; font-size: 20px; }
.pcard select.input { padding: 9px 12px; font-size: 14px; border-radius: 10px; width: auto; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }

/* ── Planner ───────────────────────────────────────────────────────────── */
.planner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: 100px; }
.planner__in { position: sticky; top: 86px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 22px; }
.planner__out { display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 16px; }
.kpi b { display: block; font-family: 'JB Mono', monospace; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.recipe { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 22px; display: grid; gap: 14px; }
.recipe__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.recipe__head h3 { font-size: 20px; margin: 0; font-family: 'Archivo', sans-serif; font-weight: 750; text-transform: none; letter-spacing: -.01em; }
.recipe__head span { font-size: 13px; color: var(--muted); }
.recipe table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.recipe td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.recipe td:last-child { text-align: right; font-family: 'JB Mono', monospace; font-weight: 600; white-space: nowrap; }
.recipe td small { color: var(--muted); }
.recipe td i { display: inline-block; width: 8px; height: 14px; border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.machine { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); flex-wrap: wrap; }
.machine b { font-family: 'JB Mono', monospace; font-size: 28px; color: var(--accent); }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-3); flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 14px; }
.tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.p-field { display: grid; gap: 8px; }
.p-field > span { font-size: 13.5px; font-weight: 650; color: var(--muted); }
.p-field .seg button { padding: 8px 13px; font-size: 13px; }
@media (max-width: 960px) { .planner { grid-template-columns: 1fr; } .planner__in { position: relative; top: 0; } .kpis { grid-template-columns: 1fr 1fr; } }

/* ── Legal / prose ─────────────────────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 2em 0 .6em; font-family: 'Archivo', sans-serif; font-weight: 750; text-transform: none; }
.prose p, .prose li { color: var(--muted); }

/* ── Generated media: videos, photo configurator, details ──────────────── */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0; transition: opacity 1.4s ease; }
.hero__video.is-on { opacity: 1; }
.media--wide { aspect-ratio: 2 / 1; } .media--wide img, .media--wide video { object-position: 50% 40% !important; }
.media .inview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.media .inview-video.is-on { opacity: 1; }
@media (max-width: 760px) { .media--wide { aspect-ratio: 16 / 10; } }
.cart-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.cart-hero .media { min-height: 340px; }
@media (max-width: 900px) { .cart-hero { grid-template-columns: 1fr; } .cart-hero .media { min-height: 0; aspect-ratio: 16 / 10; } }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.details .media { aspect-ratio: 1 / 1; }
@media (max-width: 760px) { .details { grid-template-columns: 1fr; } }
.final--photo { color: var(--text); }
.final .final__bg { position: absolute; inset: 0; z-index: 0; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; }
.final--photo::before { z-index: 1; background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 45%, color-mix(in srgb, var(--bg) 88%, transparent) 100%); }
.final--photo > .wrap { z-index: 2; }
.cfg__stage--photo { padding: 0; background: var(--surface-2) !important; }
.cfg__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.cfg__photo.is-on { opacity: 1; }
.cfg__stage .device-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; opacity: 0; pointer-events: none; transition: opacity .35s; }
.cfg__stage.is-map .device-wrap { opacity: 1; pointer-events: auto; }
.cfg__stage.is-map .cfg__photo { opacity: 0; }
.cfg__stage[data-stage-finish="graphite"].is-map { background: radial-gradient(70% 60% at 50% 45%, #2a2d31, #121314) !important; }
.cfg__stage[data-stage-finish="white"].is-map { background: radial-gradient(70% 60% at 50% 45%, #FBFAF7, #E2DDD4) !important; }
.stage-tabs { position: absolute; top: 14px; left: 14px; z-index: 3; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(10px); }
.pcard__img { aspect-ratio: 4 / 3; margin: -24px -24px 2px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
