/* ════════════════════════════════════════════════════════════════════
   Guide Optik — marketing site
   hex.tech mechanics on Optik's brand: cool near-white graph-paper ground,
   corner registration / crop marks, monospace technical labels, an
   editorial serif-italic + black-grotesk headline stack, framed buttons,
   centered wordmark. The dark iPhone instruments float on the blueprint.
   Type: Newsreader (italic display) + Hanken Grotesk (grotesk + body).
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* light warm-grey terrain paper — never pure #fff */
  --paper:    oklch(0.949 0.004 92);
  --paper-2:  oklch(0.929 0.005 90);
  --card:     oklch(0.992 0.0015 95);
  --char:     oklch(0.205 0.008 80);   /* charcoal — the app's surface */

  /* warm ink — never pure #000 */
  --ink:      oklch(0.235 0.012 70);
  --ink-2:    oklch(0.44 0.012 66);
  --ink-3:    oklch(0.60 0.010 68);

  /* hairlines + registration marks */
  --line:     oklch(0.30 0.012 70 / 0.14);
  --line-2:   oklch(0.30 0.012 70 / 0.26);
  --line-on:  oklch(0.95 0.01 86 / 0.18);
  --reg:      oklch(0.45 0.012 70 / 0.55);   /* crop-mark color */
  --reg-on:   oklch(0.92 0.02 86 / 0.5);
  --dot:      oklch(0.45 0.012 75 / 0.10);

  /* accent — antique gold */
  --gold:      oklch(0.705 0.122 72);
  --gold-deep: oklch(0.585 0.112 64);
  --gold-soft: oklch(0.918 0.052 86);
  --gold-tint: oklch(0.945 0.038 86);
  --gold-lit:  oklch(0.82 0.135 82);

  /* condition bands */
  --sage:  oklch(0.575 0.072 146);
  --terra: oklch(0.565 0.128 41);

  --sh-sm: 0 1px 2px oklch(0.2 0.02 64 / 0.05), 0 3px 8px -2px oklch(0.2 0.02 64 / 0.06);
  --sh-md: 0 2px 6px oklch(0.2 0.02 64 / 0.05), 0 14px 30px -10px oklch(0.2 0.02 64 / 0.12);
  --sh-lg: 0 4px 12px oklch(0.2 0.02 64 / 0.07), 0 30px 60px -18px oklch(0.2 0.02 64 / 0.18);
  --sh-phone: 0 6px 16px oklch(0.2 0.02 64 / 0.10), 0 46px 90px -28px oklch(0.18 0.02 64 / 0.40);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --grotesk: "Hanken Grotesk", system-ui, sans-serif;
  --mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
  background-position: -13px -13px;
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* whole-page topographic ground — fixed behind content for depth */
.page-topo {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(135% 115% at 50% 38%, #000 52%, transparent 100%);
  mask-image: radial-gradient(135% 115% at 50% 38%, #000 52%, transparent 100%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* ── registration / crop marks (the hex signature) ───────────────── */
.reg { position: relative; }
.reg::after {
  content: ""; position: absolute; inset: -5px; pointer-events: none; z-index: 2;
  --t: 1.5px; --l: 8px; --c: var(--reg);
  background:
    linear-gradient(var(--c),var(--c)) left  top    / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c),var(--c)) left  top    / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) right top    / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c),var(--c)) right top    / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) left  bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c),var(--c)) left  bottom / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom / var(--t) var(--l) no-repeat;
}
.reg--light::after { --c: var(--reg-on); }

/* ── monospace technical labels ──────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 0.4em 0.7em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.tag--center { margin-inline: auto; }
.tag--mark { background: var(--gold-tint); border-color: oklch(0.7 0.12 72 / 0.3); color: var(--gold-deep); }

/* ── shared type ─────────────────────────────────────────────────── */
.display {
  font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 100%;
}
.display__serif {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 0.86em; letter-spacing: -0.012em; line-height: 1.04;
  margin-bottom: 0.06em;
}
.display__grotesk { display: block; font-family: var(--grotesk); font-weight: 800; }
.hl { color: var(--gold-deep); }

.head {
  font-family: var(--grotesk); font-weight: 800;
  font-size: clamp(1.95rem, 4.2vw, 3.1rem);
  line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance;
}
.head em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.012em; }
.sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.lead {
  font-family: var(--serif); font-weight: 420;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem); line-height: 1.42; color: var(--ink-2);
  max-width: min(56ch, 100%);
}

/* ── buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--grotesk);
  font-weight: 600; font-size: 0.97rem; letter-spacing: -0.01em;
  border-radius: var(--r-sm);
  padding: 0.72em 1.3em;
  border: 1px solid var(--line-2);
  cursor: pointer; white-space: nowrap; color: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s;
}
.btn--sm { padding: 0.5em 0.95em; font-size: 0.88rem; }
.btn--lg { padding: 0.82em 1.45em; font-size: 1.0rem; }

.btn--frame { background: var(--card); }
.btn--frame:hover { transform: translateY(-2px); border-color: var(--ink-3); box-shadow: var(--sh-sm); }
.btn--primary { background: var(--gold-tint); border-color: oklch(0.7 0.12 72 / 0.4); color: var(--gold-deep); }
.btn--primary:hover { background: var(--gold-soft); border-color: var(--gold); }
.btn--gold { background: var(--gold-lit); border-color: oklch(0.75 0.13 78 / 0.7); color: oklch(0.22 0.02 70); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -10px oklch(0.7 0.13 78 / 0.5); }
.btn--ondark { background: oklch(1 0 0 / 0.05); border-color: var(--line-on); color: var(--paper); }
.btn--ondark:hover { transform: translateY(-2px); background: oklch(1 0 0 / 0.12); border-color: oklch(0.95 0.01 86 / 0.32); }

.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.actions--center { justify-content: center; }

.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; }

/* ── hero / CTA action area ───────────────────────────────────────── */
.hero__cta, .cta__cta { display: grid; gap: 0.9rem; justify-items: center; width: 100%; }

/* secondary text link replacing the old ghost button */
.seelink { font-family: var(--grotesk); font-weight: 600; font-size: 0.95rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 0.3em; transition: color 0.2s, gap 0.2s var(--ease); }
.seelink:hover { color: var(--gold-deep); gap: 0.55em; }
.seelink--ondark { color: oklch(0.9 0.01 86 / 0.78); }
.seelink--ondark:hover { color: var(--gold-lit); }

/* ── nav ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: oklch(0.949 0.004 92 / 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%; max-width: var(--maxw);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0.85rem var(--pad);
}
.nav__side { display: flex; align-items: center; gap: 0.2rem; }
.nav__side--l { justify-self: start; }
.nav__side--r { justify-self: end; gap: 0.55rem; }
.nav__side a:not(.btn) {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
  padding: 0.42em 0.7em; border-radius: var(--r-sm); transition: color 0.2s, background 0.2s;
}
.nav__side a:not(.btn):hover { color: var(--ink); background: oklch(0.3 0.012 70 / 0.05); }
.nav__login:hover { color: var(--gold-deep) !important; }
.nav__social { display: inline-grid; place-items: center; padding: 0.42em !important; color: var(--ink-2); line-height: 0; }
.nav__social:hover { color: var(--gold-deep) !important; }
.nav__brand { justify-self: center; display: inline-flex; align-items: center; gap: 0.55rem; }
.gomark { display: block; color: inherit; overflow: visible; }
.nav__mark { width: 34px; height: 26px; color: var(--ink); }
.nav__word { font-family: var(--grotesk); font-weight: 800; font-size: 0.96rem; letter-spacing: 0.04em; }
.nav__brand.reg::after { inset: -7px -9px; }

/* ── hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(7.5rem, 13vw, 11rem) var(--pad) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1.5rem;
}
/* faint blueprint axes behind the hero text column */
.hero__axes {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(860px, 92%); height: clamp(30rem, 56vw, 44rem); z-index: -1; pointer-events: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent);
}
.hero__axes::before, .hero__axes::after {
  content: ""; position: absolute; left: -1px; right: -1px; height: 1px; background: var(--line);
}
.hero__axes::before { top: 38%; }
.hero__axes::after  { top: 62%; }
.hero .tag { font-size: 0.74rem; box-shadow: var(--sh-sm); }
.hero .lead { max-width: min(48ch, 100%); margin-top: -0.2rem; }
.hero .actions { margin-top: 0.3rem; }

/* starburst mark by the serif line */
.spark {
  display: inline-block; width: 0.62em; height: 0.62em; margin-left: 0.18em; vertical-align: 0.32em;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2.1' stroke-linecap='round'%3E%3Cpath d='M12 2v6M12 16v6M2 12h6M16 12h6M5 5l4 4M15 15l4 4M19 5l-4 4M9 15l-4 4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2.1' stroke-linecap='round'%3E%3Cpath d='M12 2v6M12 16v6M2 12h6M16 12h6M5 5l4 4M15 15l4 4M19 5l-4 4M9 15l-4 4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── iPhone device mockups ──────────────────────────────────────── */
.hero__shot { width: 100%; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.phone {
  position: relative; width: 300px; flex: none; padding: 1.55%;
  border-radius: 14.5% / 6.65%;
  background: linear-gradient(150deg, oklch(0.46 0.006 82), oklch(0.22 0.006 80) 46%, oklch(0.15 0.005 80) 72%, oklch(0.3 0.006 84));
  box-shadow:
    inset 0 0 0 1.2px oklch(0.6 0.008 88 / 0.5),
    inset 0 1.5px 1.5px oklch(1 0 0 / 0.28),
    inset 0 -1.5px 2px oklch(0 0 0 / 0.5),
    var(--sh-phone);
}
.phone__screen {
  position: relative; width: 100%; aspect-ratio: 900 / 1955;
  border-radius: 12.4% / 5.7%; overflow: hidden;
  background: oklch(0.08 0.004 80); box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.8);
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phones { position: relative; display: flex; justify-content: center; align-items: center; padding-top: 0.5rem; }
.phone--main { z-index: 3; width: clamp(220px, 29vw, 312px); }
.phone--side { z-index: 1; width: clamp(178px, 23vw, 256px); }
.phone--left  { transform: rotate(-8deg) translateY(34px); transform-origin: bottom right; margin-right: -4.5%; }
.phone--right { transform: rotate(8deg) translateY(34px);  transform-origin: bottom left;  margin-left: -4.5%; }
.feature__shot { position: relative; display: flex; justify-content: center; }
.phone--feature { width: clamp(248px, 33vw, 316px); }

/* ── data strip ──────────────────────────────────────────────────── */
.strip {
  margin: clamp(4rem, 9vw, 6.5rem) 0 0;
  padding: clamp(2rem, 4vw, 2.8rem) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper-2); display: grid; gap: 1.2rem;
}
.strip__label { text-align: center; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.strip .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 2.8rem; list-style: none; padding-right: 2.8rem; flex: none; }
.marquee li { display: inline-flex; align-items: baseline; gap: 0.45rem; font-family: var(--grotesk); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; color: var(--ink); }
.marquee em { font-family: var(--mono); font-weight: 400; color: var(--ink-3); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.marquee li::before { content: ""; width: 6px; height: 6px; background: var(--gold); align-self: center; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── section head ────────────────────────────────────────────────── */
.section-head { max-width: 52rem; display: grid; gap: 1rem; justify-items: start; margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }

/* ── bento ───────────────────────────────────────────────────────── */
.bento-sec { max-width: var(--maxw); margin: 0 auto; padding: clamp(4.5rem, 10vw, 7.5rem) var(--pad) 0; }
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(180px, auto); }
.cell {
  position: relative; overflow: hidden; grid-column: span 2;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; gap: 1.1rem; box-shadow: var(--sh-sm);
  transition: transform 0.5s var(--ease), border-color 0.35s, box-shadow 0.5s var(--ease);
}
.cell:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--sh-md); }
.cell__head { display: grid; gap: 0.5rem; justify-items: start; }
.cell__title { font-family: var(--grotesk); font-size: 1.32rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.cell__copy { color: var(--ink-2); font-size: 0.96rem; line-height: 1.5; }
.cell--live { grid-column: span 4; }
.cell--live .readout { order: 2; }
.cell--live .cell__copy { order: 3; }
.cell--sync { grid-column: span 6; flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
.cell--sync .cell__head { max-width: 46ch; }
.cell--sync .syncdots { flex: none; justify-content: flex-end; max-width: 22rem; }
.cell--map { grid-column: span 2; grid-row: span 2; justify-content: flex-end; padding: 0; background: #000; }

.readout { display: grid; gap: 0.5rem; width: 100%; }
.readout__row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); }
.readout__name { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.95rem; }
.readout__val { font-family: var(--mono); font-weight: 500; font-size: 0.88rem; letter-spacing: -0.01em; color: var(--ink); }
.readout__val em { font-size: 0.74rem; color: var(--ink-3); margin-left: 0.15rem; }
.wave { width: 18px; height: 18px; border-radius: 5px; flex: none; background: linear-gradient(var(--gold), var(--gold-deep));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 7c2 0 2 2 4 2s2-2 4-2 2 2 4 2 2-2 4-2 2 2 4 2v2c-2 0-2-2-4-2s-2 2-4 2-2-2-4-2-2 2-4 2-2-2-4-2zm0 6c2 0 2 2 4 2s2-2 4-2 2 2 4 2 2-2 4-2 2 2 4 2v2c-2 0-2-2-4-2s-2 2-4 2-2-2-4-2-2 2-4 2-2-2-4-2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 7c2 0 2 2 4 2s2-2 4-2 2 2 4 2 2-2 4-2 2 2 4 2v2c-2 0-2-2-4-2s-2 2-4 2-2-2-4-2-2 2-4 2-2-2-4-2zm0 6c2 0 2 2 4 2s2-2 4-2 2 2 4 2 2-2 4-2 2 2 4 2v2c-2 0-2-2-4-2s-2 2-4 2-2-2-4-2-2 2-4 2-2-2-4-2z'/%3E%3C/svg%3E") center/contain no-repeat; }

.cell__map { position: relative; flex: 1; min-height: 200px; background: url("assets/shots/app-map.webp") center 22% / cover no-repeat, var(--char); }
.cell__map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000 2%, oklch(0.18 0.01 80 / 0.85) 18%, transparent 55%); }
.cell--map .cell__head { padding: 0 clamp(1.5rem, 2.6vw, 2rem) clamp(1.5rem, 2.6vw, 2rem); position: relative; z-index: 1; margin-top: -3.2rem; }
.cell--map .cell__title { color: var(--paper); }
.cell--map .cell__copy { color: oklch(0.92 0.01 86 / 0.82); }
.pin { position: absolute; z-index: 1; width: 13px; height: 13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid var(--paper); box-shadow: var(--sh-sm); }
.pin--a { top: 28%; left: 38%; background: var(--gold-lit); }
.pin--b { top: 46%; left: 58%; background: var(--sage); }

.ledger { display: grid; gap: 0.4rem; }
.ledger__row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); padding: 0.5rem 0.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); }
.ledger__amt { font-family: var(--mono); font-weight: 500; color: var(--ink); }

.handoff { display: flex; align-items: center; gap: 0.6rem; font-size: 0.86rem; font-weight: 600; }
.handoff__a, .handoff__b { padding: 0.45em 0.8em; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); }
.handoff__b { color: var(--gold-deep); border-color: oklch(0.7 0.12 72 / 0.4); background: var(--gold-tint); }
.handoff__line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); }

.syncdots { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.syncdots li { font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); padding: 0.42em 0.8em; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); }

/* ── feature rows ────────────────────────────────────────────────── */
.features { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--pad) 0; }
.feature { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(2rem, 6vw, 5.5rem); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature--rev .feature__text { order: 2; }
.feature__text { display: grid; gap: 1rem; justify-items: start; max-width: 30rem; }
.feature__title { font-family: var(--grotesk); font-size: clamp(1.6rem, 2.7vw, 2.3rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.032em; }
.feature__copy { color: var(--ink-2); }
.ticks { list-style: none; display: grid; gap: 0.5rem; margin-top: 0.2rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.34em; width: 0.95rem; height: 0.95rem; background: var(--gold-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.7 5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.7 5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.feature__shot::before { content: ""; position: absolute; inset: 8% 12%; background: radial-gradient(50% 55% at 50% 45%, oklch(0.82 0.09 84 / 0.45), transparent 70%); filter: blur(50px); z-index: -1; }

/* ── two seasons ─────────────────────────────────────────────────── */
.seasons { max-width: var(--maxw); margin: clamp(4rem, 9vw, 7rem) auto 0; padding: clamp(3rem, 7vw, 5rem) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.seasons__text { display: grid; gap: 1rem; justify-items: start; }
.toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.28rem; margin-top: 0.6rem; box-shadow: var(--sh-sm); }
.toggle__opt { font-family: var(--grotesk); font-size: 0.92rem; font-weight: 600; color: var(--ink-2); border: none; background: transparent; cursor: pointer; padding: 0.55em 1.15em; border-radius: 3px; transition: color 0.3s, background 0.4s var(--ease); }
.toggle__opt.is-active { color: var(--paper); background: var(--ink); }
.seasons__art { display: flex; justify-content: center; }
.swap-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; display: grid; gap: 0.7rem; box-shadow: var(--sh-lg); transition: opacity 0.24s var(--ease), transform 0.24s var(--ease); }
.swap-card.is-swapping { opacity: 0; transform: translateY(8px); }
.swap__label, .swap__metric { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.swap__row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; font-size: 0.97rem; }
.swap__metric { margin-top: 0.15rem; }

.chip { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.32em 0.6em; border-radius: 3px; display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
.chip--prime { color: oklch(0.42 0.07 146); background: oklch(0.6 0.07 146 / 0.16); }
.chip--high  { color: var(--terra);          background: oklch(0.56 0.13 41 / 0.13); }
.chip--low   { color: var(--ink-3);          background: oklch(0.3 0.012 70 / 0.07); }

/* ── quote ───────────────────────────────────────────────────────── */
.quote-sec { max-width: 60rem; margin: clamp(4rem, 9vw, 7rem) auto 0; padding: 0 var(--pad); }
.quote { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.quote__text { font-family: var(--grotesk); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; color: var(--ink); }
.quote__text em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.012em; }
.quote__by { display: grid; gap: 0.15rem; }
.quote__name { font-weight: 600; color: var(--ink); }
.quote__role { font-family: var(--mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }

/* ── dark finale: cinematic crescendo into the CTA ───────────────────
   Full-bleed warm near-black. The long light scroll dims to a lit cab
   before dawn: gold-foil instrument readout, topographic contours, then
   the raised CTA panel. ─────────────────────────────────────────────── */
.finale {
  --night:  oklch(0.155 0.006 78);   /* warm near-black ground */
  --night-2: oklch(0.115 0.005 78);  /* deeper, toward the floor */
  --foil:   oklch(0.86 0.135 84);    /* lit antique gold */
  --on-night: oklch(0.93 0.012 86);
  --on-night-2: oklch(0.93 0.012 86 / 0.62);
  --night-line: oklch(0.8 0.06 84 / 0.16);

  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(5rem, 11vw, 9rem);
  padding: clamp(5rem, 11vw, 9rem) var(--pad) clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 78%, var(--night-2) 100%);
}
/* the lights dim: paper fades into night at the top seam */
.finale::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 38%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--paper) -10%, transparent 62%);
  opacity: 0.06;
}
.finale__topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.65; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 35%, transparent 82%);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 35%, transparent 82%); }
.finale__glow { position: absolute; inset: -30% -20% auto -20%; height: 120%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 46% at 22% 8%, oklch(0.82 0.13 80 / 0.20), transparent 70%),
    radial-gradient(52% 56% at 78% 88%, oklch(0.55 0.10 64 / 0.22), transparent 72%); }
.finale__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; display: grid; gap: clamp(2rem, 4vw, 3.25rem); }

/* — crescendo: asymmetric statement + lit instrument — */
.crescendo { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.crescendo__copy { display: grid; gap: 1.2rem; justify-items: start; max-width: 34rem; }
.tag--dark { background: oklch(1 0 0 / 0.05); border-color: var(--night-line); color: oklch(0.86 0.04 86 / 0.82); }
.crescendo__title { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.0; letter-spacing: -0.032em; color: var(--on-night); text-wrap: balance; }
.crescendo__serif { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 0.82em; letter-spacing: -0.012em; color: oklch(0.9 0.02 86 / 0.84); margin-bottom: 0.1em; }
.crescendo__grot { display: block; font-family: var(--grotesk); font-weight: 800; }
.crescendo__grot .hl { color: var(--foil); }
.crescendo__sub { font-family: var(--serif); font-weight: 420; font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.45; color: var(--on-night-2); max-width: 38ch; }

/* the lit instrument panel — gold foil readout glowing on night */
.instrument {
  position: relative; display: grid; gap: 0.55rem;
  background: linear-gradient(165deg, oklch(1 0 0 / 0.06), oklch(1 0 0 / 0.02));
  border: 1px solid var(--night-line); border-radius: var(--r-lg);
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.08) inset, 0 40px 80px -30px oklch(0 0 0 / 0.8),
              0 0 0 1px oklch(0.8 0.1 84 / 0.05);
}
.instrument__cap { display: flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: oklch(0.86 0.04 86 / 0.6); margin-bottom: 0.35rem; }
.instrument__row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1rem; border-radius: var(--r-sm);
  background: oklch(1 0 0 / 0.03); border: 1px solid oklch(1 0 0 / 0.06);
}
.instrument__name { font-weight: 600; font-size: 0.96rem; color: var(--on-night); }
.instrument__val { font-family: var(--mono); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  color: var(--foil); text-shadow: 0 0 18px oklch(0.82 0.13 82 / 0.45); }
.instrument__val em { font-size: 0.66rem; color: oklch(0.86 0.06 86 / 0.5); margin-left: 0.3rem; }
.instrument__src { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: oklch(0.86 0.04 86 / 0.4); margin-top: 0.3rem; }
/* condition chips read brighter on night */
.instrument .chip--prime { color: oklch(0.78 0.11 146); background: oklch(0.6 0.09 146 / 0.18); }
.instrument .chip--high  { color: oklch(0.74 0.13 41);  background: oklch(0.56 0.13 41 / 0.2); }
.instrument .chip--low   { color: oklch(0.82 0.05 86 / 0.7); background: oklch(1 0 0 / 0.06); }

/* live pulse */
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--foil); flex: none; box-shadow: 0 0 10px oklch(0.82 0.13 82 / 0.8); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--foil); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(3.4); opacity: 0; } }

/* ── CTA panel (now raised on the dark finale) ───────────────────────── */
.cta__panel { position: relative; overflow: hidden; text-align: center; border-radius: var(--r-xl);
  background: linear-gradient(180deg, oklch(0.235 0.008 80), oklch(0.195 0.007 80));
  border: 1px solid oklch(0.8 0.06 84 / 0.12);
  padding: clamp(2.5rem, 5.5vw, 3.75rem) var(--pad) clamp(3rem, 7vw, 4.5rem); display: grid; justify-items: center; align-content: start; gap: 0.95rem;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.06) inset, 0 50px 100px -34px oklch(0 0 0 / 0.85); }
.cta__topo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }
.cta__panel::after { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 130%; pointer-events: none; background: radial-gradient(42% 60% at 50% 18%, oklch(0.82 0.13 80 / 0.3), transparent 65%); }
.cta__panel > *:not(.cta__topo) { position: relative; z-index: 1; }
.cta__emblem { display: grid; place-items: center; width: 76px; height: 60px; color: var(--gold-lit); }
.cta__emblem .gomark { width: 64px; height: 50px; }
.cta__emblem.reg::after { inset: -10px -6px; }
.cta__title { font-family: var(--grotesk); font-size: clamp(2rem, 4.8vw, 3.3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.032em; text-wrap: balance; color: var(--paper); }
.cta__title em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.012em; }
.cta__title .hl { color: var(--gold-lit); }
.cta__sub { color: oklch(0.9 0.01 86 / 0.72); font-size: 1.06rem; max-width: 46ch; }
.cta .actions { margin-top: 0.4rem; }

/* ── footer ──────────────────────────────────────────────────────── */
.foot { max-width: var(--maxw); margin: clamp(4rem, 8vw, 6rem) auto 0; padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad) clamp(2rem, 4vw, 2.6rem); border-top: 1px solid var(--line); }
.foot__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: clamp(2rem, 4vw, 3rem); }
.foot__brandcol { display: grid; gap: 0.7rem; align-content: start; max-width: 28ch; }
.foot__brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--grotesk); font-weight: 800; font-size: 0.98rem; letter-spacing: 0.04em; }
.foot__mark { width: 32px; height: 24px; color: var(--ink); }
.foot__tag { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-3); line-height: 1.5; }
.foot__col { display: grid; gap: 0.55rem; align-content: start; }
.foot__h { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.2rem; }
.foot__col a { font-size: 0.94rem; color: var(--ink-2); transition: color 0.2s; }
.foot__col a:hover { color: var(--gold-deep); }
.foot__fine { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--ink-3); }

/* ── legal pages (privacy.html / terms.html) ─────────────────────── */
/* Static documents — no script.js. Tokens only: no new colors, fonts,
   radii, or shadows. The nav frost is applied permanently here since the
   JS that toggles .is-stuck is absent. */
.legal-page .nav {
  background: oklch(0.949 0.004 92 / 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(6.5rem, 12vw, 9rem) var(--pad) 0;
}
.legal__doc {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: clamp(1.8rem, 4.5vw, 3.2rem) clamp(1.2rem, 4vw, 3rem);
}
.legal__doc.reg::after { inset: -9px; }
.legal__head { display: grid; gap: 0.85rem; justify-items: start; padding-bottom: 1.7rem; }
.legal__title {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.01em;
}
.legal__meta {
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3);
}
.legal__toc {
  margin-bottom: 0.4rem; padding: 1.1rem 1.3rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.legal__toc ol { list-style: none; display: grid; gap: 0.5rem; padding: 0; margin: 0; }
.legal__toc a { font-size: 0.92rem; color: var(--ink-2); transition: color 0.2s; }
.legal__toc a:hover { color: var(--gold-deep); }
.legal__num {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.05em; color: var(--gold-deep); margin-right: 0.6em;
}
.legal__section { padding-top: 1.7rem; margin-top: 1.7rem; border-top: 1px solid var(--line); }
.legal__section h2 {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.2; margin-bottom: 0.9rem;
}
.legal__section h2 .legal__num { font-style: normal; vertical-align: 0.18em; }
.legal__section h3 { font-family: var(--grotesk); font-weight: 700; font-size: 1.02rem; margin: 1.3rem 0 0.5rem; }
.legal__section p, .legal__section li { font-size: 1rem; line-height: 1.65; color: var(--ink); }
.legal__section p + p { margin-top: 0.85rem; }
.legal__section ul { padding-left: 1.25rem; margin: 0.85rem 0; display: grid; gap: 0.5rem; }
.legal__section a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal__callout {
  margin: 1.1rem 0; padding: 1.1rem 1.25rem;
  background: var(--gold-tint); border: 1px solid oklch(0.7 0.12 72 / 0.4); border-radius: var(--r-sm);
}
.legal-page .foot { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media print {
  .legal-page .nav, .legal-page .foot__top, .legal__toc { display: none; }
  body.legal-page { background: #fff; }
  .legal { padding-top: 1rem; max-width: 100%; }
  .legal__doc { border: none; box-shadow: none; padding: 0; }
  .legal__doc.reg::after { display: none; }
}

/* ── reveals ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
}

/* ── responsive ──────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .cell, .cell--live, .cell--sync { grid-column: span 2; }
  .cell--sync { flex-direction: column; align-items: flex-start; }
  .cell--sync .syncdots { justify-content: flex-start; }
  .cell--map { grid-column: span 2; grid-row: auto; min-height: 320px; }
}
@media (max-width: 880px) {
  .nav__side--l { display: none; }
  .nav__sublink { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__brand { justify-self: start; }
  .phone--side { display: none; }
  .phone--main { width: min(282px, 72vw); }
  .feature, .seasons { grid-template-columns: 1fr; }
  .crescendo { grid-template-columns: 1fr; gap: 2.4rem; }
  .feature--rev .feature__text { order: 0; }
  .feature__shot { order: 2; margin-top: 0.5rem; }
  .phone--feature { width: min(290px, 76vw); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brandcol { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .display { font-size: clamp(2rem, 9.4vw, 3rem); }
  .head br, .feature__title br { display: none; }
  .nav__login { display: none; }
  .readout__row { grid-template-columns: 1fr auto; }
  .readout__val { display: none; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__fine { flex-direction: column; gap: 0.4rem; }
}
