/* walkbuddy.ai
   The app's own materials: night glass, cream type, lamp gold. Source Serif 4 for the voice (Light for display,
   Italic for the turn of a phrase), Source Sans 3 for reading, Source Code Pro for the trail's numbers and labels.
   One 12-column grid; a 4 px rhythm; a major-third type scale on an 18 px body. */

@font-face { font-family: 'Source Serif 4'; src: url('/assets/fonts/SourceSerif4-Light.woff') format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/assets/fonts/SourceSerif4-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/assets/fonts/SourceSerif4-Italic.woff') format('woff'); font-weight: 300 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/assets/fonts/SourceSerif4-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/assets/fonts/SourceSans3-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/assets/fonts/SourceSans3-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/assets/fonts/SourceSans3-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Source Code Pro'; src: url('/assets/fonts/SourceCodePro-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }

:root {
  /* colour */
  --bg-0: #04070D; --bg-1: #070B14; --bg-2: #0C1322; --bg-3: #131C30;
  --text: #F1EADB; --text-2: rgba(241, 234, 219, 0.76); --text-3: rgba(241, 234, 219, 0.54);
  --line: rgba(241, 234, 219, 0.11); --line-2: rgba(241, 234, 219, 0.2);
  --gold: #E2B867; --gold-2: #C9933B; --ink: #0B1220;
  --glass: rgba(9, 14, 25, 0.56); --glass-2: rgba(9, 14, 25, 0.78);
  /* type */
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-label: 0.75rem;        /* 12 */
  --fs-small: 0.9375rem;      /* 15 */
  --fs-body: 1.125rem;        /* 18 */
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.45vw, 1.4375rem);
  --fs-h4: 1.5rem;
  --fs-h3: clamp(1.875rem, 1.4rem + 1.4vw, 2.625rem);
  --fs-h2: clamp(2.5rem, 1.6rem + 3.6vw, 4.875rem);
  --fs-display: clamp(3rem, 1.2rem + 6.2vw, 7.25rem);
  /* space and layout */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(20px, 5vw, 72px);
  --col-gap: clamp(16px, 2vw, 32px);
  --radius: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg-1); color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--sans); font-kerning: normal; font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
p { margin: 0; text-wrap: pretty; hanging-punctuation: first; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.label { color: var(--text-3); }
.soft { color: var(--text-3); }
.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 50; background: var(--text); color: var(--ink); padding: var(--s3) var(--s4); border-radius: 10px; }
.skip:focus { top: var(--s4); }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(5, 9, 17, 0.62); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: var(--s5); height: 72px; }
.mark { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; }
.mark-buddy { width: 30px; height: 30px; }
.mark-name { font: 600 1.25rem/1 var(--serif); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: var(--s6); margin-left: auto; }
.nav-links a { font-size: var(--fs-small); color: var(--text-2); text-decoration: none; padding: var(--s3) 0; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: var(--s4); }
.hour-chip { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text-2); letter-spacing: 0.08em; }
.hour-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(226, 184, 103, 0.18); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 52px; padding: 0 var(--s5); border-radius: 999px;
  font: 600 1rem/1 var(--sans); letter-spacing: 0.005em; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out); }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:not([aria-disabled]):hover { background: #fff; transform: translateY(-1px); }
.btn[aria-disabled] { cursor: default; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-small { min-height: 40px; padding: 0 var(--s4); font-size: 0.875rem; }
.btn-link { min-height: 44px; padding: 0; color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); }
.btn-link:hover { text-decoration-color: var(--gold); }
.chip { min-height: 32px; padding: 0 var(--s3); border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 500 0.8125rem/1 var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--gold); }

/* ---------------------------------------------------------------- the 3D stage behind everything */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; opacity: 0; transition: opacity 1.4s; }
html.ready #scene { opacity: 1; }
#overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
#overlay .buddy { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity 0.4s; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
#overlay .place { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-bottom: 14px; opacity: 0; white-space: nowrap; }
#overlay .place::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 1px; height: 11px; background: currentColor; opacity: 0.55; }
#overlay .pn { font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
#overlay .pz { font: 400 0.625rem/1 var(--mono); letter-spacing: 0.08em; color: var(--text-3); }
#overlay .peak .pn { font: italic 400 1.125rem/1 var(--serif); letter-spacing: 0; text-transform: none; }
html[data-sky="day"] #overlay .place { color: var(--ink); }
html[data-sky="day"] #overlay .pn { color: var(--ink); text-shadow: 0 0 10px rgba(255, 255, 255, 0.55); }
html[data-sky="day"] #overlay .pz { color: rgba(11, 18, 32, 0.62); }
.veil { position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.82) 0%, rgba(4, 7, 13, 0.45) 34%, rgba(4, 7, 13, 0) 58%),
    linear-gradient(180deg, rgba(4, 7, 13, 0.55) 0%, rgba(4, 7, 13, 0) 18%, rgba(4, 7, 13, 0) 70%, rgba(4, 7, 13, 0.7) 100%); }
.grain { position: fixed; inset: -50%; z-index: 3; pointer-events: none; opacity: 0.075; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.loading { position: fixed; left: var(--gutter); bottom: var(--s6); z-index: 6; color: var(--text-3); }
html.no-webgl body.home { background: var(--bg-1) url('/assets/img/og.jpg') 70% center / cover fixed; }
main { position: relative; z-index: 4; }

/* ---------------------------------------------------------------- shared type */
.eyebrow { color: var(--text-3); margin-bottom: var(--s5); }
.sec-no { color: var(--gold); margin-right: 0.9em; }
.display { font: 300 var(--fs-display)/0.94 var(--serif); letter-spacing: -0.03em; max-width: 13ch; }
.display em { font-weight: 300; color: var(--gold); letter-spacing: -0.02em; }
.h2 { font: 300 var(--fs-h2)/1.0 var(--serif); letter-spacing: -0.025em; max-width: 14ch; }
.h3 { font: 400 var(--fs-h3)/1.08 var(--serif); letter-spacing: -0.015em; }
.h4 { font: 400 var(--fs-h4)/1.2 var(--serif); letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 36ch; margin-top: var(--s6); }
.sec-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 44ch; margin-top: var(--s5); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s7); }
.sec-head { max-width: 62rem; }

/* ---------------------------------------------------------------- hero */
.hero { min-height: 100svh; display: flex; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-content: end; padding-top: 140px; padding-bottom: var(--s7); min-height: 100svh; }
.hero-copy { grid-column: 1 / span 9; align-self: center; }
.hero-foot { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; margin-top: var(--s8); }
.dial { grid-column: 1 / span 6; padding: var(--s5) var(--s5) var(--s4); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); }
.dial-head { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.dial-time { font: 300 2.25rem/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; min-width: 3.4ch; }
.dial-head .chip { margin-left: auto; }
.dial-range { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: var(--s3) 0 0; background: transparent; cursor: pointer; }
.dial-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--track); }
.dial-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--track); }
.dial-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg-2); box-shadow: 0 0 0 1px var(--gold), 0 4px 14px rgba(0, 0, 0, 0.5); transition: transform 0.2s var(--ease-out); }
.dial-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg-2); box-shadow: 0 0 0 1px var(--gold); }
.dial-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.dial { --track: linear-gradient(90deg, #0F1A31 0%, #1B2447 19%, #C98673 25%, #F3C08E 29%, #9CBBDD 38%, #B9D2EC 50%, #9CBBDD 64%, #F3C08E 73%, #C98673 78%, #1B2447 84%, #0F1A31 100%); }
.dial-ticks { display: flex; justify-content: space-between; color: var(--text-3); letter-spacing: 0.08em; margin-top: var(--s1); }
.dial-hint { font-size: var(--fs-small); line-height: 1.5; color: var(--text-3); margin-top: var(--s4); max-width: 46ch; }
.readout { grid-column: 9 / span 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: 0; padding-top: var(--s4); border-top: 1px solid var(--line-2); }
.readout dt { color: var(--text-3); margin-bottom: var(--s2); }
.readout dd { margin: 0; font-size: 0.9375rem; letter-spacing: 0.04em; color: var(--text); text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- the kora (pinned; the scroll is the steps) */
.journey { position: relative; height: 760vh; }
.stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-top: 104px; padding-bottom: var(--s5); }
.stage-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--col-gap); flex: 1; }
.j-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
.j-head .eyebrow { margin: 0; }
.j-hint { color: var(--text-3); }
.chapters { grid-column: 1 / span 5; position: relative; align-self: center; min-height: 23rem; }
.chapter { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; transform: translateY(18px); transition: opacity 0.45s, transform 0.7s var(--ease-out); pointer-events: none; }
.chapter.is-active { opacity: 1; transform: none; pointer-events: auto; }
.ch-no { color: var(--gold); margin-bottom: var(--s5); }
.ch-title { font: 300 clamp(2.5rem, 1.8rem + 2.6vw, 4.25rem)/1.0 var(--serif); letter-spacing: -0.025em; max-width: 12ch; }
.ch-text { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 32ch; margin-top: var(--s5); }
.ch-meta { display: flex; flex-wrap: wrap; gap: var(--s2) 0; margin-top: var(--s6); color: var(--text-2); }
.ch-meta span + span::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--line-2); vertical-align: middle; margin: 0 var(--s3); }
.j-gauge { grid-column: 9 / span 4; align-self: end; text-align: right; padding-bottom: var(--s4); }
.gauge-km { font: 300 clamp(4rem, 2.6rem + 5vw, 8.5rem)/0.86 var(--serif); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.035em; }
.gauge-km small { font: 400 0.875rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-left: 0.6em; }
.gauge-sub { color: var(--text-3); margin-top: var(--s3); }
.profile { position: relative; margin: var(--s5) auto 0; height: 168px; }
.profile svg { width: 100%; height: 132px; overflow: visible; cursor: crosshair; }
.profile-axis { position: relative; height: 22px; color: var(--text-3); }
.profile-axis span { position: absolute; top: 6px; transform: translateX(-50%); letter-spacing: 0.08em; font-size: 0.6875rem; }
.profile-axis span:first-child { transform: none; }
.profile-axis span:last-child { transform: translateX(-100%); }
.profile-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); padding: var(--s2) var(--s3); border-radius: 10px; background: var(--glass-2); border: 1px solid var(--line-2); color: var(--text); letter-spacing: 0.06em; pointer-events: none; white-space: nowrap; }
.pf-area { fill: url(#pfFill); }
.pf-line { fill: none; stroke: var(--line-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.pf-walked { fill: url(#pfWalked); }
.pf-walked-line { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pf-stop { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.pf-stop-label { font: 400 11px var(--mono); letter-spacing: 0.14em; fill: var(--text-3); text-transform: uppercase; }
.pf-dot { fill: var(--text); stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pf-cursor { stroke: var(--text-2); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------------------------------------------------------------- the app */
.app { position: relative; padding-block: clamp(120px, 16vh, 200px) clamp(96px, 12vh, 160px);
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 0, rgba(7, 11, 20, 0.88) 220px, rgba(7, 11, 20, 0.94) 100%); }
.features { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; margin-top: var(--s9); }
.feat-copy { grid-column: 1 / span 6; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: var(--s1); padding: var(--s1); border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.tab { min-height: 44px; padding: 0 var(--s5); border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 500 0.9375rem/1 var(--sans); cursor: pointer; transition: background 0.25s, color 0.25s; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--text); color: var(--ink); }
.panel { margin-top: var(--s7); }
.panel p { color: var(--text-2); font-size: var(--fs-body); line-height: 1.65; max-width: 44ch; margin-top: var(--s4); }
.panel.is-entering > * { animation: rise 0.6s var(--ease-out) both; }
.panel.is-entering > *:nth-child(2) { animation-delay: 0.05s; }
.panel.is-entering > *:nth-child(3) { animation-delay: 0.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.facts { list-style: none; margin: var(--s6) 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 34rem; }
.facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s4); align-items: baseline; padding: var(--s4) 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.5; color: var(--text); }
.facts .mono { color: var(--gold); font-size: 0.6875rem; }
.device { grid-column: 8 / span 5; position: relative; height: min(660px, 76vh); perspective: 1600px; display: flex; justify-content: center; align-items: center; }
.phone { position: relative; width: min(300px, 64vw); aspect-ratio: 600 / 1305; border-radius: 48px; padding: 10px; z-index: 2;
  background: linear-gradient(150deg, #343C4C 0%, #151A23 45%, #0B0E14 100%);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transform-style: preserve-3d; will-change: transform; }
.phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: 38px; }
.phone .screen { opacity: 0; transition: opacity 0.5s; }
.phone .screen.is-active { opacity: 1; }
.phone-back { position: absolute; z-index: 1; width: min(250px, 52vw); transform: translate(-40%, 8%) rotate(-7deg); opacity: 0.42; filter: saturate(0.7) brightness(0.75); }
@media (max-width: 1240px) { .phone-back { display: none; } }

/* ---------------------------------------------------------------- numbers */
.stats { background: rgba(7, 11, 20, 0.94); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: var(--s8) var(--s5) var(--s8) 0; }
.stat + .stat { padding-left: var(--s5); border-left: 1px solid var(--line); }
.stat-n { font: 300 clamp(2.75rem, 1.8rem + 3vw, 5rem)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.stat-n small { font: 400 0.8125rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-left: 0.5em; }
.stat-l { font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); max-width: 22ch; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- lamps */
.lamps { min-height: 118vh; display: flex; align-items: center; padding-block: var(--s10); }
.lamps-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.lamps-copy { grid-column: 1 / span 5; }
.lamp-form { margin-top: var(--s7); }
.lamp-form fieldset { border: 0; margin: 0 0 var(--s5); padding: 0; }
.lamp-form legend { margin-bottom: var(--s3); padding: 0; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; gap: 6px; min-height: 64px; padding: var(--s3) var(--s4); border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color 0.2s, background 0.2s; }
.seg b { font: 600 0.9375rem/1.1 var(--sans); }
.seg small { font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.seg input:checked + span { border-color: var(--gold); background: rgba(226, 184, 103, 0.12); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.lamp-status { margin-top: var(--s4); color: var(--text-3); }
.note { font-size: var(--fs-small); line-height: 1.6; color: var(--text-3); max-width: 46ch; margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- privacy */
.privacy { padding-block: clamp(120px, 16vh, 200px); background: linear-gradient(180deg, rgba(7, 11, 20, 0) 0, rgba(7, 11, 20, 0.92) 200px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: var(--s8); }
.card { padding: var(--s6); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s, transform 0.4s var(--ease-out); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .icon { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card .h4 { margin-top: var(--s6); }
.card p { font-size: 1rem; line-height: 1.6; color: var(--text-2); margin-top: var(--s3); }
.more { margin-top: var(--s6); }

/* ---------------------------------------------------------------- closing */
.closing { min-height: 92vh; display: flex; align-items: center; padding-block: var(--s10); }
.display-2 { font-size: clamp(3rem, 1.4rem + 6vw, 8rem); max-width: 12ch; }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; z-index: 4; background: var(--bg-0); border-top: 1px solid var(--line); padding-block: var(--s9) var(--s7); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s7); }
.foot-brand { grid-column: 1 / span 4; }
.foot-brand p { color: var(--text-3); font-size: var(--fs-small); line-height: 1.6; margin-top: var(--s4); max-width: 30ch; }
.foot-col { grid-column: span 2; display: flex; flex-direction: column; gap: var(--s3); }
.foot-col a { color: var(--text-2); text-decoration: none; font-size: var(--fs-small); }
.foot-col a:hover { color: var(--text); }
.foot-col .label, .foot-credits .label { margin-bottom: var(--s2); }
.foot-credits { grid-column: span 4; }
.foot-credits p:not(.label) { color: var(--text-3); font-size: 0.8125rem; line-height: 1.6; }
.foot-legal { grid-column: 1 / -1; color: var(--text-3); font-size: 0.8125rem; padding-top: var(--s5); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- text pages (privacy, support, terms, 404) */
body.page { background: var(--bg-1); }
body.page .nav { position: sticky; background: rgba(5, 9, 17, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.page-hero { padding-block: var(--s9) var(--s7); border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 140% at 85% -20%, rgba(226, 184, 103, 0.14), rgba(7, 11, 20, 0) 55%), linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.page-hero h1 { font: 300 clamp(2.75rem, 1.8rem + 3.4vw, 4.75rem)/1 var(--serif); letter-spacing: -0.025em; max-width: 16ch; }
.page-hero .sub { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); margin-top: var(--s5); max-width: 44ch; }
.page-hero .eyebrow { margin-bottom: var(--s5); }
.doc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: var(--s8) var(--s10); }
.toc { grid-column: 1 / span 3; position: sticky; top: 104px; align-self: start; }
.toc ol { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.toc a { color: var(--text-3); text-decoration: none; font-size: 0.875rem; line-height: 1.4; }
.toc a:hover, .toc a.is-here { color: var(--text); }
.doc { grid-column: 5 / span 7; font-size: 1.0625rem; line-height: 1.72; color: var(--text-2); }
.doc > :first-child { margin-top: 0; }
.doc h2 { font: 400 1.75rem/1.2 var(--serif); letter-spacing: -0.01em; color: var(--text); margin: var(--s8) 0 var(--s4); padding-top: var(--s5); border-top: 1px solid var(--line); scroll-margin-top: 104px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font: 600 1.0625rem/1.4 var(--sans); color: var(--text); margin: var(--s6) 0 var(--s2); }
.doc p { margin: 0 0 var(--s4); max-width: 66ch; }
.doc ul { margin: 0 0 var(--s4); padding-left: 1.1em; max-width: 66ch; }
.doc li { margin: var(--s2) 0; padding-left: 0.2em; }
.doc li::marker { color: var(--gold); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--text); text-decoration-color: var(--gold); }
.doc .soft { color: var(--text-3); }

/* ---------------------------------------------------------------- reveal states (set by site.js; content stays visible without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav-links { gap: var(--s5); }
  .hero-copy { grid-column: 1 / span 10; }
  .dial { grid-column: 1 / span 7; }
  .readout { grid-column: 8 / span 5; }
  .feat-copy { grid-column: 1 / span 7; }
  .device { grid-column: 8 / span 5; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { grid-column: span 3; }
  .foot-credits { grid-column: span 6; }
}
@media (max-width: 860px) {
  body { font-size: 1.0625rem; }
  .nav-row { height: 64px; }
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .nav-end .btn { display: none; }
  .veil { background: linear-gradient(180deg, rgba(4, 7, 13, 0.6) 0%, rgba(4, 7, 13, 0.15) 24%, rgba(4, 7, 13, 0.25) 52%, rgba(4, 7, 13, 0.88) 100%); }
  .hero-grid { padding-top: 110px; }
  .hero-copy, .dial, .readout { grid-column: 1 / -1; }
  .hero-copy { align-self: end; }
  .hero-foot { margin-top: var(--s7); row-gap: var(--s5); }
  .readout { order: -1; }
  .stage { padding-top: 84px; }
  .chapters { grid-column: 1 / -1; align-self: end; min-height: 17rem; }
  .j-gauge { grid-column: 1 / -1; grid-row: 1; justify-self: end; align-self: start; padding: 0; margin-top: var(--s6); }
  .j-head { grid-row: 1; }
  .gauge-km { font-size: 3.25rem; }
  .ch-title { font-size: 2.375rem; }
  .ch-text { font-size: 1.0625rem; }
  .profile { height: 112px; }
  .profile svg { height: 84px; }
  .pf-stop-label { display: none; }
  .features { margin-top: var(--s7); row-gap: var(--s7); }
  .feat-copy, .device { grid-column: 1 / -1; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 0 var(--s4); }
  .device { height: auto; padding-block: var(--s4); }
  .phone-back { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: var(--s6) var(--s4) var(--s6) 0; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lamps { min-height: 100vh; align-items: flex-end; }
  .lamps-copy { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .foot-col { grid-column: span 6; }
  .foot-credits { grid-column: 1 / -1; }
  .toc { display: none; }
  .doc { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.page-hero .page-meta { margin-top: var(--s5); }
.page-hero-tall { min-height: 62vh; display: flex; align-items: center; border-bottom: 0; }
.nav-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.5em; }
