/*
  LSI landing page
  Brief
  - Audience: principals of Australian real-estate agencies deciding whether to let AI handle leads; their job is to apply for the pilot.
  - Message: LSI gives your agency named AI Employees that answer every lead in seconds and wait for your one-tap approval before anything that matters.
  - Constraints: static site (no build), LSI brand only (no vendor names), the LSI sun mascot, cockpit tokens from LSI docs/design.md, WCAG 2.2 AA, no overflow at 320px.

  Direction: "Golden hour over the obsidian cockpit" — cinematic dark, one luminous gold accent.
  References: Cosmoq (luminous horizon glow in the hero), Ashwin Gupta /impact (dense mono metric grid),
  Senthora (scroll-lit statement), Minitap (product mocks that carry real verdicts), Voxr (stat cards), ChatSpark (live chat as proof).
  Signature move: the LSI sun rises over a gold horizon in the first frame, with live telemetry chips around it.
  Dark-only by design: the product cockpit is dark, and the sunrise needs the night sky.
*/

/* Arial scaled to Geist's measure, so text keeps its line breaks when the web font swaps in. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 101.5%; ascent-override: 99.5%; descent-override: 29.5%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 550 800; size-adjust: 100%; ascent-override: 101%; descent-override: 30%; line-gap-override: 0%; }

:root {
  color-scheme: dark;

  /* Obsidian ramp, tinted toward hue 262 */
  --canvas: oklch(0.145 0.012 262);
  --surface: oklch(0.185 0.015 262);
  --surface-2: oklch(0.225 0.018 262);
  --surface-3: oklch(0.27 0.02 262);
  --line: oklch(0.97 0.01 262 / 0.1);
  --line-strong: oklch(0.97 0.01 262 / 0.18);

  --fg: oklch(0.97 0.006 262);
  --fg-2: oklch(0.8 0.016 262);
  --fg-3: oklch(0.7 0.016 262);

  /* Champagne gold (cockpit accent) and the mascot's sun yellow */
  --gold: oklch(0.8 0.135 86);
  --gold-hi: oklch(0.87 0.14 90);
  --sun: oklch(0.84 0.17 80);
  --on-gold: oklch(0.16 0.02 262);
  --cyan: oklch(0.78 0.12 230);
  --ok: oklch(0.76 0.15 160);
  --bad: oklch(0.72 0.17 18);

  --font: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --step-4: clamp(2.5rem, 1.7rem + 3.2vw, 4.25rem);

  --r-sm: 12px;
  --r-lg: 20px;
  --pad-card: 8px;

  --shadow-1: 0 1px 0 0 oklch(1 0 0 / 0.06) inset, 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-2: 0 1px 0 0 oklch(1 0 0 / 0.08) inset, 0 12px 32px -8px oklch(0 0 0 / 0.6), 0 2px 6px oklch(0 0 0 / 0.35);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --t-micro: 160ms;
  --t-state: 260ms;
  --t-enter: 600ms;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font: 400 var(--step-0) / 1.6 var(--font);
  letter-spacing: -0.006em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.muted { color: var(--fg-3); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--t-micro) ease, border-color var(--t-micro) ease, transform var(--t-micro) ease;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-state) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--gold {
  background: var(--gold); color: var(--on-gold);
  box-shadow: inset -3px 3px 8px oklch(0.96 0.08 95 / 0.75), inset 3px -3px 8px oklch(0.62 0.15 62 / 0.55), 0 8px 28px -10px oklch(0.8 0.15 86 / 0.7);
}
.btn--gold:hover { background: var(--gold-hi); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--ghost { background: oklch(1 0 0 / 0.04); color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: oklch(1 0 0 / 0.08); border-color: oklch(0.97 0.01 262 / 0.3); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-state) ease, border-color var(--t-state) ease;
}
.nav__inner {
  display: flex; align-items: center; gap: 24px; min-height: 72px;
  border: 1px solid transparent; border-radius: 999px; padding-inline: 0;
  transition: background-color var(--t-state) var(--ease-out), border-color var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out);
}
.nav.is-scrolled .nav__inner {
  min-height: 60px; padding-inline: 12px 8px; transform: translateY(10px);
  background: oklch(0.17 0.014 262 / 0.82); backdrop-filter: blur(14px);
  border-color: oklch(0.8 0.135 86 / 0.22); box-shadow: var(--shadow-2);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 36px; height: auto; }
.brand__word { font-weight: 700; font-size: 1.375rem; letter-spacing: -0.04em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--fg-2); font-size: 0.9375rem;
  transition: color var(--t-micro) ease, background-color var(--t-micro) ease;
}
.nav__links a:hover { color: var(--fg); background: oklch(1 0 0 / 0.05); }
.nav__menu {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px;
  background: oklch(1 0 0 / 0.05); border: 1px solid var(--line-strong); color: var(--fg); cursor: pointer; place-items: center;
}
.nav__menu svg { width: 20px; height: 20px; }
.sheet {
  inset: 72px 16px auto auto; margin: 0; width: min(280px, calc(100vw - 32px));
  background: var(--surface-2); color: var(--fg); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 8px; box-shadow: var(--shadow-2);
}
.sheet nav { display: grid; gap: 2px; }
.sheet a:not(.btn) { padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; }
.sheet a:not(.btn):hover { background: oklch(1 0 0 / 0.06); }
.sheet .btn { margin-top: 6px; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: grid; }
}

/* ---------- Shared bits ---------- */
.eyebrow { color: var(--gold); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.01em; margin-bottom: 16px; }
.section-head { max-width: 40rem; }
.section-head h2 { font-size: var(--step-3); line-height: 1.06; letter-spacing: -0.035em; }
.section-head__sub { margin-top: 18px; color: var(--fg-2); font-size: var(--step-1); line-height: 1.5; max-width: 34em; }
.tag {
  display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--fg-2); font-size: 0.8125rem; white-space: nowrap;
}
.caption { color: var(--fg-3); font-size: 0.8125rem; margin-bottom: 10px; }
.handle { font-family: var(--mono); font-size: 0.8125rem; color: var(--cyan); font-weight: 400; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--fg-3); }
.dot--ok { background: var(--ok); }
.dot--gold { background: var(--gold); }
.dot--live { background: var(--cyan); box-shadow: 0 0 0 0 oklch(0.78 0.12 230 / 0.6); animation: live 2.4s ease-out infinite; }
@keyframes live { 70%, 100% { box-shadow: 0 0 0 8px oklch(0.78 0.12 230 / 0); } }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
}
.pill--gold { background: oklch(0.8 0.135 86 / 0.14); color: var(--gold-hi); }
.pill--cyan { background: oklch(0.78 0.12 230 / 0.14); color: var(--cyan); }
.avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), oklch(0.66 0.14 70));
  color: var(--on-gold); font-weight: 700; font-size: 1rem;
}
.avatar--human { background: var(--surface-3); color: var(--fg); }
.avatar--guest { background: oklch(0.78 0.12 230 / 0.2); color: var(--cyan); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); padding: 20px;
}
.ticks { display: grid; gap: 10px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 28px; color: var(--fg-2); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* ---------- Hero: the sunrise ---------- */
.hero { position: relative; overflow: clip; margin-top: -72px; padding-top: calc(72px + clamp(16px, 3vw, 40px)); }
.hero__sky {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 88%, oklch(0.62 0.15 70 / 0.38), transparent 70%),
    radial-gradient(40% 40% at 72% 80%, oklch(0.8 0.16 82 / 0.22), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, oklch(0.2 0.03 262), transparent 70%);
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background: url("/assets/grain.png") repeat;
}
.stars, .stars::before { position: absolute; inset: 0 0 30% 0; }
.stars {
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, var(--fg), transparent), radial-gradient(1px 1px at 28% 42%, var(--fg), transparent),
    radial-gradient(1.5px 1.5px at 46% 12%, var(--gold-hi), transparent), radial-gradient(1px 1px at 63% 30%, var(--fg), transparent),
    radial-gradient(1px 1px at 88% 16%, var(--fg), transparent), radial-gradient(1.5px 1.5px at 94% 48%, var(--gold-hi), transparent);
  animation: twinkle 4.4s ease-in-out infinite alternate;
}
.stars::before {
  content: "";
  background:
    radial-gradient(1px 1px at 6% 52%, var(--fg), transparent), radial-gradient(1.5px 1.5px at 36% 26%, var(--fg), transparent),
    radial-gradient(1px 1px at 54% 50%, var(--gold-hi), transparent), radial-gradient(1.5px 1.5px at 76% 8%, var(--fg), transparent),
    radial-gradient(1px 1px at 82% 36%, var(--fg), transparent);
  animation: twinkle 3.3s ease-in-out 1.2s infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: 0.18; } to { opacity: 0.6; } }
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-bottom: clamp(80px, 8vw, 104px);
}
.hero__copy { min-width: 0; position: relative; z-index: 3; }
/* max-width pins the break points, so the web-font swap can't add a line */
.hero h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650; max-width: 9em; }
.lede { margin-top: 20px; font-size: var(--step-1); line-height: 1.5; color: var(--fg-2); max-width: 32em; }
.hero__meta { margin-top: 24px; color: var(--fg-3); font-size: var(--step--1); max-width: 36em; }
.hero__meta a { color: var(--fg-2); text-underline-offset: 3px; }
.hero__meta a:hover { color: var(--gold-hi); }

.stage { position: relative; min-width: 0; aspect-ratio: 1 / 1.02; width: min(100%, 500px); justify-self: center; z-index: 1; }
.stage::before {
  content: ""; position: absolute; inset: 8% 6% 12%; border-radius: 50%;
  background: radial-gradient(closest-side, oklch(0.84 0.17 80 / 0.38), transparent);
  animation: breathe 4.8s ease-in-out 1.6s infinite alternate;
}
@keyframes breathe { from { opacity: 0.55; transform: scale(0.94); } to { opacity: 1; transform: scale(1.04); } }
.stage__rays {
  position: absolute; inset: -30%;
  background: repeating-conic-gradient(from 0deg at 50% 62%, oklch(0.86 0.15 86 / 0.09) 0deg 4deg, transparent 4deg 15deg);
  mask: radial-gradient(closest-side at 50% 62%, #000 30%, transparent 100%);
  opacity: 0; animation: rays 1600ms var(--ease-out) 500ms forwards;
}
.stage__sun {
  position: absolute; left: 7%; top: 2%; width: 86%; height: auto;
  animation: rise 1300ms var(--ease-out) 120ms both;
}
@keyframes rise { from { transform: translateY(46%) scale(0.92); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes rays { to { opacity: 1; } }

.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  background: oklch(0.2 0.016 262 / 0.82); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
  font-size: 0.875rem; color: var(--fg-2);
  animation: chip-in var(--t-enter) var(--ease-out) both;
}
.chip b { color: var(--fg); font-weight: 600; }
.chip--a { left: -6%; top: 14%; animation-delay: 1100ms; }
.chip--b { right: -4%; top: 44%; animation-delay: 1180ms; }
.chip--c { left: 2%; bottom: 10%; animation-delay: 1260ms; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }

.horizon {
  position: absolute; left: 50%; bottom: 0; z-index: 2; translate: -50% 0;
  width: max(1800px, 160vw); height: 220px; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(var(--canvas), var(--canvas));
  box-shadow: 0 -1px 0 0 oklch(0.9 0.14 88 / 0.85), 0 -10px 40px -6px oklch(0.8 0.16 82 / 0.55), 0 -60px 160px -20px oklch(0.7 0.16 70 / 0.45);
  transform: translateY(150px);
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; }
  .stage { width: min(100%, 400px); }
  .chip--a { left: 0; }
  .chip--b { right: 0; }
}
@media (max-width: 420px) {
  .chip { font-size: 0.8125rem; padding: 8px 12px; }
  .chip--a { top: 6%; }
}

/* ---------- Statement ---------- */
.statement { padding: var(--section) 0 calc(var(--section) * 0.6); }
.statement__text {
  font-size: var(--step-3); line-height: 1.18; letter-spacing: -0.035em; font-weight: 600; max-width: 22em;
}
@supports (animation-timeline: view()) {
  .statement__text .w { animation: lit linear both; animation-timeline: view(); animation-range: entry 30% cover 50%; }
  @keyframes lit { from { color: oklch(0.97 0.006 262 / 0.4); } to { color: var(--fg); } }
}

.bubble {
  position: relative; max-width: 30em; padding: 12px 16px 26px; border-radius: 18px; line-height: 1.5; font-size: 1rem;
}
.bubble--in { background: var(--surface-2); border-bottom-left-radius: 6px; }
.bubble--out { margin-left: auto; background: oklch(0.36 0.07 250); border-bottom-right-radius: 6px; }
.bubble__who { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--gold-hi); margin-bottom: 4px; }
.bubble__time { position: absolute; right: 12px; bottom: 6px; font-size: 0.75rem; color: oklch(0.97 0.006 262 / 0.7); }
.note { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 10px; font-size: 0.8125rem; color: var(--fg-3); text-align: right; }

.card__head { display: flex; gap: 12px; align-items: center; line-height: 1.35; }
.card__head .muted { font-size: 0.875rem; }
.cma__label { margin-top: 20px; color: var(--fg-3); font-size: 0.875rem; }
.cma__range { font-family: var(--mono); font-size: var(--step-2); font-weight: 500; letter-spacing: -0.02em; color: var(--fg); margin-top: 2px; }
.cites { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cites li {
  font-size: 0.8125rem; padding: 4px 10px; border-radius: 999px; color: var(--fg-2);
  background: var(--surface-2); border: 1px solid var(--line);
}
.cites li::before { content: "↗ "; color: var(--gold); }
.verdict {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding: 10px 12px;
  border-radius: var(--r-sm); font-weight: 600; font-size: 0.9375rem;
}
.verdict svg { width: 18px; height: 18px; flex: none; }
.verdict--ok { background: oklch(0.76 0.15 160 / 0.12); color: var(--ok); }
.verdict--bad { background: oklch(0.72 0.17 18 / 0.13); color: var(--bad); }
.basis {
  margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; border: 1px solid currentColor;
}

.approval { border-color: oklch(0.8 0.135 86 / 0.35); padding: 20px; }
.approval__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.875rem; flex-wrap: wrap; }
.approval__ask { margin-top: 14px; font-size: var(--step-1); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
.diff { margin-top: 16px; display: grid; gap: 8px; font-size: 0.9375rem; }
.diff div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.diff dt { color: var(--fg-3); }
.diff .ok { color: var(--ok); }
.approval__actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; margin-top: 18px; }
.fake-btn {
  display: grid; place-items: center; min-height: 44px; border-radius: var(--r-sm);
  padding-inline: 16px; white-space: nowrap;
  background: var(--surface-3); font-weight: 600; font-size: 0.9375rem; text-align: center;
}
.fake-btn--gold { background: var(--gold); color: var(--on-gold); }

/* ---------- Promotion rules (AI Employees page) ---------- */
.rules { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.rules div { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.rules dt { font-family: var(--mono); font-size: var(--step-2); color: var(--fg); letter-spacing: -0.03em; }
.rules dd { margin-top: 6px; color: var(--fg-2); }
@media (max-width: 900px) { .rules { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---------- Checker card (Compliance page) ---------- */
.checker {
  background: var(--canvas); border: 1px solid var(--line-strong); border-radius: calc(var(--r-sm) + 12px);
  padding: 12px; box-shadow: var(--shadow-2);
}
.checker__field { padding: 16px; border-radius: var(--r-sm); background: var(--surface-2); }
.checker__label { display: block; color: var(--fg-3); font-size: 0.8125rem; }
.checker__input { margin-top: 8px; font-family: var(--mono); font-size: var(--step-1); color: var(--fg); overflow-wrap: anywhere; }
.checker__result { padding: 4px 4px 0; }
.checker__result .verdict { margin-top: 12px; }
.checker__why { margin-top: 12px; padding: 0 8px; color: var(--fg-2); }
.fineprint { margin-top: 16px; padding: 12px 8px 4px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 0.8125rem; }

/* ---------- Pilot ---------- */
.pilot { position: relative; overflow: clip; padding: var(--section) 0 calc(var(--section) + 120px); text-align: center; }
.pilot__inner { display: grid; justify-items: center; position: relative; z-index: 3; }
.pilot__sun { width: 176px; height: auto; padding: 32px; margin-bottom: 8px; background: radial-gradient(closest-side, oklch(0.8 0.16 82 / 0.32), transparent); }
.pilot h2 { font-size: var(--step-3); line-height: 1.06; letter-spacing: -0.035em; max-width: 16em; }
.pilot .section-head__sub { margin-inline: auto; }
.horizon--low { transform: translateY(170px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: var(--fg-2); font-size: 0.9375rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__links a { color: var(--fg-2); text-decoration: none; padding: 10px 0; }
.footer__links a:hover { color: var(--gold-hi); }
.footer__legal a { color: inherit; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--gold-hi); }
.clocks { display: flex; gap: 16px; margin-left: auto; font-family: var(--mono); font-size: 0.8125rem; color: var(--fg-3); letter-spacing: 0.04em; }
.clocks time { color: var(--gold); }
@media (max-width: 860px) { .clocks { margin-left: 0; width: 100%; } }

/* ---------- Utilities ---------- */
.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; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Reading progress along the top edge (scroll-driven; absent where unsupported) */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 12px oklch(0.84 0.15 86 / 0.7); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* Headline: each word rises out of its own mask, once, on load */
.hw { display: inline-block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; vertical-align: top; }
.hw > span { display: inline-block; animation: word-up 900ms var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 55ms); }
@keyframes word-up { from { transform: translateY(105%); } }

/* ---------- Waitlist ---------- */
.waitlist { margin-top: 32px; max-width: 34rem; }
.waitlist__row {
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: oklch(0.2 0.016 262 / 0.85); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
  transition: border-color var(--t-micro) var(--ease-out);
}
.waitlist__row:focus-within { border-color: oklch(0.8 0.135 86 / 0.6); }
.waitlist input[type="email"], .waitlist input[type="text"] {
  min-width: 0; min-height: 48px; font: 400 1rem var(--font); color: var(--fg);
  background: transparent; border: 0; outline: 0;
}
.waitlist__row input { flex: 1; padding: 0 16px; border-radius: 999px; }
.waitlist__row input:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: -2px; }
.waitlist input::placeholder { color: var(--fg-3); }
.waitlist__status { margin-top: 12px; color: var(--fg-3); font-size: var(--step--1); min-height: 1.5em; }
.waitlist__status a { color: var(--fg-2); text-underline-offset: 3px; }
.waitlist__status[data-tone="error"] { color: var(--bad); }
.waitlist__status[data-tone="ok"] {
  color: var(--fg); font-size: 1rem; padding: 14px 16px; border-radius: var(--r-sm);
  background: oklch(0.76 0.15 160 / 0.1); border: 1px solid oklch(0.76 0.15 160 / 0.35);
}
.waitlist.is-done .waitlist__row, .waitlist.is-done .waitlist__fields, .waitlist.is-done > .btn { display: none; }
.waitlist.is-busy .btn svg { animation: nudge 700ms var(--ease-out) infinite alternate; }
@keyframes nudge { to { transform: translateX(4px); } }
@media (max-width: 480px) {
  .waitlist__row { flex-direction: column; border-radius: calc(var(--r-sm) + 6px); }
  .waitlist__row .btn { border-radius: var(--r-sm); }
}

.waitlist--stacked { margin: 32px auto 0; width: min(100%, 34rem); display: grid; gap: 12px; text-align: left; }
.waitlist__fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
.field { display: grid; gap: 6px; font-size: 0.875rem; color: var(--fg-2); }
.waitlist .field input {
  padding: 0 16px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-strong);
  transition: border-color var(--t-micro) var(--ease-out);
}
.waitlist .field input:focus-visible { border-color: var(--gold); outline: 2px solid oklch(0.87 0.14 90 / 0.5); outline-offset: 1px; }
.waitlist--stacked > .btn { width: 100%; }
.waitlist--stacked .waitlist__status { text-align: center; margin-top: 4px; }
.pilot__alt { margin-top: 20px; color: var(--fg-3); font-size: var(--step--1); }
.pilot__alt a { display: inline-block; padding: 12px 4px; color: var(--fg-2); text-underline-offset: 3px; }
.pilot__alt a:hover { color: var(--gold-hi); }
@media (max-width: 560px) { .waitlist__fields { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Proof strip: before → after, sitting on the horizon (Minitap) ---------- */
.proof { position: relative; z-index: 3; margin-top: -24px; }
.proof__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
}
.proof__item { padding: 24px 28px; min-width: 0; }
.proof__item + .proof__item { border-left: 1px solid var(--line); }
.proof__label { color: var(--fg-3); font-size: 0.875rem; }
.proof__vals { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); letter-spacing: -0.03em; line-height: 1.15; }
.proof__vals s { color: var(--fg-3); text-decoration-thickness: 1.5px; text-decoration-color: oklch(0.72 0.17 18 / 0.7); font-weight: 400; }
.proof__vals b { color: var(--gold-hi); font-weight: 600; }
.proof__arrow { color: var(--fg-3); font-size: 0.8em; }
.proof__foot { margin-top: 8px; color: var(--fg-2); font-size: 0.875rem; }
@media (max-width: 860px) {
  .proof__grid { grid-template-columns: minmax(0, 1fr); }
  .proof__item + .proof__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Story tour: auto-advancing steps beside a live stage (Senthora + ChatSpark) ---------- */
.story { padding: calc(var(--section) * 0.5) 0 var(--section); }
.tour { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.tour__steps { display: grid; gap: 4px; }
.tour__step {
  position: relative; display: grid; gap: 6px; width: 100%; padding: 18px 20px 20px; text-align: left; cursor: pointer;
  color: var(--fg-2); background: transparent; border: 1px solid transparent; border-radius: var(--r-lg); font: inherit;
  transition: background-color var(--t-state) var(--ease-out), border-color var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out);
}
.tour__step:hover { background: oklch(1 0 0 / 0.03); color: var(--fg); }
.tour__step[aria-selected="true"] { background: var(--surface); border-color: var(--line-strong); color: var(--fg); }
.tour__time { font-family: var(--mono); font-size: 0.8125rem; color: var(--gold); }
.tour__title { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.tour__desc { color: var(--fg-2); font-size: 0.9375rem; }
.js .tour__step:not([aria-selected="true"]) .tour__desc { display: none; }
.tour__bar { position: absolute; left: 20px; right: 20px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; }
.tour__bar::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--gold); }
.js .tour__step[aria-selected="true"] .tour__bar { opacity: 1; }
.js .tour__step[aria-selected="true"] .tour__bar::after { animation: tour-progress 7s linear forwards paused; }
.js .tour__step[aria-selected="true"]:last-child .tour__bar::after { animation-duration: 9s; }
.tour.is-playing .tour__step[aria-selected="true"] .tour__bar::after { animation-play-state: running; }
.tour.is-manual .tour__step[aria-selected="true"] .tour__bar::after { animation: none; transform: scaleX(1); }
@keyframes tour-progress { to { transform: scaleX(1); } }

.tour__pause {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 12px 0 0 8px; padding: 0 14px; border-radius: 999px;
  font: 500 0.875rem var(--font); color: var(--fg-2); background: transparent; border: 1px solid var(--line-strong); cursor: pointer;
}
.tour__pause:hover { color: var(--fg); border-color: oklch(0.97 0.01 262 / 0.3); }
.tour__pause svg { width: 16px; height: 16px; }
html:not(.js) .tour__pause { display: none; }

.tour__stage {
  position: relative; display: grid; padding: 12px; border-radius: calc(var(--r-lg) + 12px);
  background:
    radial-gradient(80% 60% at 80% 0%, oklch(0.8 0.135 86 / 0.12), transparent 70%),
    linear-gradient(var(--surface), oklch(0.16 0.013 262));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
}
.js .tour__stage { position: sticky; top: 104px; }
.tour__panel { padding: 8px; min-width: 0; display: grid; align-content: start; gap: 16px; }
.js .tour__panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 360ms var(--ease-out), transform 500ms var(--ease-out), visibility 0s 360ms; }
.js .tour__panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), visibility 0s; }
html:not(.js) .tour__panel + .tour__panel { border-top: 1px solid var(--line); padding-top: 20px; }

.stage-bar { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); line-height: 1.3; font-size: 0.9375rem; }
.stage-bar .muted { font-size: 0.8125rem; }
.avatar--sm { width: 36px; height: 36px; font-size: 0.875rem; }
.chat { display: grid; gap: 10px; }
.chat .bubble--in { grid-row: 1; justify-self: start; }
.chat .bubble--out, .chat .typing { grid-row: 2; grid-column: 1; justify-self: end; align-self: start; }
.chat .note { grid-row: 3; }
.bubble--past { opacity: 0.6; }
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 18px 18px 6px 18px; background: oklch(0.36 0.07 250); opacity: 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.97 0.006 262 / 0.8); animation: dot 900ms ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 150ms; }
.typing span:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { 50% { transform: translateY(-3px); opacity: 0.5; } }
.tour__panel.is-active .typing { animation: typing-life 1300ms linear both; }
.tour__panel.is-active .bubble--later { animation: slide-in 500ms var(--ease-out) 1300ms both; }
@keyframes typing-life { 0% { opacity: 0; } 10%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(12px); } }

/* Approval Card states */
.fake-btn { border: 0; color: var(--fg); font-family: var(--font); cursor: pointer; transition: background-color var(--t-micro) var(--ease-out), transform var(--t-micro) var(--ease-out); }
.fake-btn:hover { background: oklch(0.32 0.02 262); }
.fake-btn--gold { color: var(--on-gold); }
.fake-btn--gold:hover { background: var(--gold-hi); }
.fake-btn:active { transform: scale(0.97); }
.approval__result:empty { display: none; }
.approval__result { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 0.9375rem; color: var(--fg); background: var(--surface-2); animation: slide-in 400ms var(--ease-out) both; }
.approval[data-state="approve"] { border-color: oklch(0.76 0.15 160 / 0.55); }
.approval[data-state="approve"] .approval__result { background: oklch(0.76 0.15 160 / 0.12); }
.approval[data-state="approve"] [data-approval-pill] { background: oklch(0.76 0.15 160 / 0.16); color: var(--ok); animation: pop 560ms cubic-bezier(0.34, 1.28, 0.64, 1); }
.approval[data-state="reject"] [data-approval-pill] { background: oklch(0.72 0.17 18 / 0.16); color: var(--bad); }
@keyframes pop { from { transform: scale(0.6); } }

@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .js .tour__stage { position: relative; top: auto; }
}

/* ---------- Reduced motion: keep the meaning, drop the travel ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  *, *::before, *::after { animation-iteration-count: 1 !important; }
  .dot--live, .stars, .stars::before, .stage::before { animation: none; }
  .statement__text .w { animation: none !important; color: var(--fg); }
}

/* ---------- Privacy page ---------- */
.legal { max-width: 44rem; padding-block: clamp(32px, 6vw, 72px) var(--section); }
.legal h1 { font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.035em; }
.legal h2 { margin-top: 40px; font-size: var(--step-1); letter-spacing: -0.015em; }
.legal p { margin-top: 12px; color: var(--fg-2); max-width: 36em; }
.legal a:not(.btn) { color: var(--gold-hi); text-underline-offset: 3px; }
.legal ul, .legal ol { margin-top: 12px; padding-left: 1.25em; color: var(--fg-2); max-width: 36em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: 8px; }
.legal__back { margin-top: 40px; }

