/* Element Longevity — Ridli early access lander v2
   Brand tokens from elementlongevity.com: bg #040607/#060809,
   accent #65cef6 → #ff99cc, Silka 400–700 + Assistant. */

@font-face {
  font-family: "Silka";
  src: url("fonts/silka-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Silka";
  src: url("fonts/silka-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Silka";
  src: url("fonts/silka-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Silka";
  src: url("fonts/silka-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Assistant;
  src: url("fonts/assistant-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #040607;
  --bg-2: #060809;
  --bg-3: #0b0f12;
  --text: #f5f7f8;
  --text-muted: rgba(245, 247, 248, 0.7);
  --text-dim: rgba(245, 247, 248, 0.48);
  --cyan: #65cef6;
  --pink: #ff99cc;
  --ink: #060809;
  --grad: linear-gradient(90deg, #65cef6 0%, #ff99cc 100%);
  --border: rgba(255, 255, 255, 0.1);
  --font: "Silka", Assistant, system-ui, sans-serif;
  --nav-h: 76px;
  --announce-h: 42px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 6, 7, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 42px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--grad);
  color: var(--ink);
  padding: 14px 24px;
  font-size: 0.92rem;
  box-shadow: 0 8px 28px rgba(101, 206, 246, 0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(255, 153, 204, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 13px 22px;
  font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}
.btn-lg { padding: 18px 30px; font-size: 1.02rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}


/* ---------- Announce ---------- */
.announce {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(101, 206, 246, 0.22);
}
.announce a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-align: center;
}
.announce a span { text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover span { text-decoration-thickness: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--announce-h) + var(--nav-h) + 12px) 0 40px;
  overflow: hidden;
  background: #040607;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-frame {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 36%;
  transform: scale(1.04);
  animation: heroKen 22s ease-out forwards;
}
@keyframes heroKen {
  from { transform: scale(1.07) translate3d(8px, 0, 0); }
  to { transform: scale(1) translate3d(0, 0, 0); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,6,7,0.92) 0%, rgba(4,6,7,0.78) 28%, rgba(4,6,7,0.28) 48%, rgba(4,6,7,0.06) 64%, rgba(4,6,7,0.04) 100%),
    linear-gradient(180deg, rgba(4,6,7,0.28) 0%, transparent 22%, transparent 78%, rgba(4,6,7,0.4) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-copy { max-width: 620px; }

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 11px 20px 11px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(101, 206, 246, 0.32);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.12s forwards;
}
.access-badge .pulse {
  background: #060809;
  box-shadow: 0 0 0 0 rgba(6, 8, 9, 0.45);
}
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(101, 206, 246, 0.7);
  animation: pulse 2.2s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(101, 206, 246, 0.65); }
  70% { box-shadow: 0 0 0 12px rgba(101, 206, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(101, 206, 246, 0); }
}
@keyframes pulseInk {
  0% { box-shadow: 0 0 0 0 rgba(6, 8, 9, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(6, 8, 9, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 8, 9, 0); }
}
.access-badge .pulse { animation: pulseInk 2.2s ease-out infinite; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.7rem, 5.6vw, 5.15rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
}
.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.95s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) { animation-delay: 0.2s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.36s; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 32px;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.52s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.68s forwards;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- Device / Ridli chat ---------- */
.device-wrap {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: rise 1s var(--ease) 0.4s forwards;
}
.hero .device { width: 300px; }
.hero .device-screen { min-height: 0; }
.hero .bubble { font-size: 0.78rem; padding: 8px 10px; }
.hero .transcript { gap: 8px; padding: 12px; }
.hero .composer { margin: 6px 12px 12px; padding: 8px 14px; }
/* Spots + confetti: hidden on small screens (desktop-only addition). */
.spots-callout { display: none; }
.success { position: relative; overflow: hidden; }
.success .confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (min-width: 1061px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-right: 72px;
  }
  .hero-copy {
    max-width: 400px;
    flex: 0 1 400px;
  }
  .hero h1 {
    font-size: clamp(2.15rem, 4vw, 3.5rem);
    margin-bottom: 14px;
  }
  .hero-sub { margin-bottom: 18px; font-size: 1.06rem; }
  .hero-sub-end { white-space: nowrap; }
  .access-badge { margin-bottom: 16px; }
  .device-wrap {
    margin-top: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-self: center;
  }
  .hero .device {
    zoom: 1;
    width: 336px;
  }
  .hero .app-status { display: none; }
  .hero .app-bar { padding: 10px 14px 10px; }
  .hero .transcript { gap: 8px; padding: 10px 12px 8px; }
  .hero .bubble { font-size: 0.88rem; line-height: 1.35; padding: 9px 11px; }
  .hero .stack-card,
  .hero .checkin-card { padding: 10px 12px; }
  .hero .stack-card li,
  .hero .checkin-rows div { font-size: 0.84rem; }
  .hero .card-kicker { font-size: 0.66rem; }
  .hero .card-foot { font-size: 0.72rem; margin-top: 6px; }
  .hero .composer { margin: 6px 12px 12px; padding: 8px 14px; font-size: 0.8rem; }
  .hero .device-screen { min-height: 0; }
  .hero {
    padding: calc(var(--announce-h) + var(--nav-h) + 8px) 0 24px;
  }
  /* Natural cover size, top-anchored, runner (head ~62.3% in the photo) aligned to the type/phone gap (~50.7%). */
  /* 150% wide, shifted left 50%: fills the hero at every desktop width
     while keeping the runner (head ~62.3% in the photo) in the type/phone gap. Top-anchored so her head stays visible. */
  .hero-bg-frame {
    inset: auto;
    top: 0;
    left: -50%;
    width: 150%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 100%;
    transform: none;
  }
  .hero-bg img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 0%;
    position: static;
    left: auto;
    top: auto;
    transform: none;
    animation: none;
    display: block;
  }
  html.is-shot .hero-bg img { transform: none; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4,6,7,0.92) 0%, rgba(4,6,7,0.78) 18%, rgba(4,6,7,0.22) 28%, rgba(4,6,7,0.04) 38%, rgba(4,6,7,0.02) 62%, rgba(4,6,7,0.22) 80%, rgba(4,6,7,0.5) 100%),
      linear-gradient(180deg, rgba(4,6,7,0.22) 0%, transparent 18%, transparent 82%, rgba(4,6,7,0.38) 100%);
  }
  .spots-callout {
    display: block;
    margin-top: 22px;
    max-width: 280px;
  }
  .spots-label {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-muted);
  }
  .spots-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
  }
  .spots-bar-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--grad);
    opacity: 0.55;
  }
}

/* Plan-updated glow when the chat lands */
.device-wrap.is-playing .updated-pill[data-step="7"] {
  animation: chatIn 0.4s var(--ease) 4.55s forwards, planGlow 1.6s ease 4.85s;
}
.device-wrap.is-complete .updated-pill,
html.is-shot .updated-pill {
  box-shadow: 0 0 16px 2px rgba(101, 206, 246, 0.45), 0 0 28px 4px rgba(255, 153, 204, 0.28);
}
@keyframes planGlow {
  0% { box-shadow: 0 0 0 0 rgba(101, 206, 246, 0); }
  35% { box-shadow: 0 0 22px 6px rgba(101, 206, 246, 0.7), 0 0 40px 10px rgba(255, 153, 204, 0.4); }
  100% { box-shadow: 0 0 16px 2px rgba(101, 206, 246, 0.45), 0 0 28px 4px rgba(255, 153, 204, 0.28); }
}


.device-glow {
  position: absolute;
  width: 80%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101,206,246,0.28) 0%, rgba(255,153,204,0.16) 42%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.device {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.05) 40%, rgba(101,206,246,0.2) 80%, rgba(255,153,204,0.28));
  box-shadow:
    0 40px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.08);
}
.device-screen {
  background: #070a0c;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 640px;
}
.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.app-status-icons { display: flex; gap: 4px; align-items: center; }
.app-status-icons i {
  display: block;
  width: 10px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255,255,255,0.55);
}
.app-status-icons i:nth-child(2) { width: 12px; height: 8px; }
.app-status-icons i:nth-child(3) { width: 16px; height: 8px; background: var(--cyan); }
.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.app-bar img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.app-id { flex: 1; min-width: 0; }
.app-id strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.app-id span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 600;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(101,206,246,0.35);
  border-radius: 999px;
  padding: 4px 8px;
}
.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(101,206,246,0.6);
  animation: pulse 2s ease-out infinite;
}
.transcript {
  flex: 1;
  overflow: hidden;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  margin: 0;
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 500;
}
.bubble.you {
  align-self: flex-end;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-right-radius: 6px;
  color: var(--text);
}
.bubble.ridli {
  align-self: flex-start;
  background: rgba(101, 206, 246, 0.08);
  border: 1px solid rgba(101, 206, 246, 0.18);
  border-bottom-left-radius: 6px;
}
.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(101, 206, 246, 0.08);
  border: 1px solid rgba(101, 206, 246, 0.16);
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: typ 1s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typ {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.stack-card, .checkin-card {
  align-self: stretch;
  background: rgba(8, 12, 16, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 12px 14px 12px;
  position: relative;
  overflow: hidden;
}
.stack-card::before, .checkin-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
}
.card-kicker {
  margin: 0 0 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.stack-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.stack-card li {
  font-size: 0.8rem;
  font-weight: 600;
  padding-left: 14px;
  position: relative;
}
.stack-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}
.card-foot {
  margin: 8px 0 0;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
}
.checkin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.checkin-top .card-kicker { margin: 0; }
.updated-pill {
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--grad);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.checkin-rows { display: grid; gap: 6px; }
.checkin-rows div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  font-size: 0.78rem;
  align-items: baseline;
}
.checkin-rows span { color: var(--text-dim); font-weight: 600; }
.checkin-rows strong { font-weight: 600; }
.composer {
  margin: 8px 12px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
}

/* Chat animation timeline (loops via JS) */
.chat-step { opacity: 0; transform: translateY(8px); }
.device-wrap.is-playing .chat-step[data-step="1"] { animation: chatIn 0.45s var(--ease) 0.15s forwards; }
.device-wrap.is-playing .chat-step[data-step="2"] { animation: chatIn 0.3s var(--ease) 0.85s forwards, chatOut 0.25s var(--ease) 1.7s forwards; }
.device-wrap.is-playing .chat-step[data-step="3"] { animation: chatIn 0.45s var(--ease) 1.75s forwards; }
.device-wrap.is-playing .chat-step[data-step="4"] { animation: chatIn 0.45s var(--ease) 2.2s forwards; }
.device-wrap.is-playing .chat-step[data-step="5"] { animation: chatIn 0.45s var(--ease) 3.15s forwards; }
.device-wrap.is-playing .chat-step[data-step="6"] { animation: chatIn 0.45s var(--ease) 4.0s forwards; }
.device-wrap.is-playing .chat-step[data-step="7"] { animation: chatIn 0.4s var(--ease) 4.55s forwards; }

.device-wrap.is-complete .chat-step { opacity: 1; transform: none; animation: none; }
.device-wrap.is-complete .typing { display: none; }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes chatOut {
  to { opacity: 0; height: 0; margin: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
}

@media (min-width: 1061px) and (max-height: 820px) {
  .hero { padding: calc(var(--announce-h) + var(--nav-h)) 0 16px; }
}
@media (min-width: 1061px) and (max-height: 790px) {
  .hero .device { zoom: 0.94; }
}
@media (min-width: 1061px) and (max-height: 720px) {
  .hero .device { zoom: 0.85; }
  .hero { padding: calc(var(--announce-h) + var(--nav-h)) 0 10px; }
}


@media (min-width: 1061px) {
  @keyframes chatInSlow {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes chatOutSlow {
    to { opacity: 0; height: 0; margin: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
  }
  /* User message, then 1.5s typing, reply + stack, ~3s pause, 1.5s typing, tonight + check-in. Hold ~9s (loop in JS). */
  .device-wrap.is-playing .chat-step[data-step="1"] { animation: chatInSlow 0.75s var(--ease) 0.4s forwards; }
  .device-wrap.is-playing .chat-step[data-step="2"] { animation: chatInSlow 0.4s var(--ease) 1.5s forwards, chatOutSlow 0.3s var(--ease) 3.0s forwards; }
  .device-wrap.is-playing .chat-step[data-step="3"] { animation: chatInSlow 0.75s var(--ease) 3.15s forwards; }
  .device-wrap.is-playing .chat-step[data-step="4"] { animation: chatInSlow 0.75s var(--ease) 4.15s forwards; }
  .device-wrap.is-playing .chat-step[data-step="typing2"] { animation: chatInSlow 0.4s var(--ease) 7.9s forwards, chatOutSlow 0.3s var(--ease) 9.4s forwards; }
  .device-wrap.is-playing .chat-step[data-step="5"] { animation: chatInSlow 0.75s var(--ease) 9.5s forwards; }
  .device-wrap.is-playing .chat-step[data-step="6"] { animation: chatInSlow 0.75s var(--ease) 10.4s forwards; }
  .device-wrap.is-playing .chat-step[data-step="7"] { animation: chatInSlow 0.6s var(--ease) 11.1s forwards; }
  .device-wrap.is-playing .updated-pill[data-step="7"] {
    animation: chatInSlow 0.6s var(--ease) 11.1s forwards, planGlow 1.8s ease 11.5s;
  }
}

/* ---------- Shared sections ---------- */
.section { position: relative; padding: 108px 0; }
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap.center { text-align: center; }
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 16px;
}
h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}
.lede {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
  font-weight: 500;
}
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 56px; max-width: 780px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.area-pills, .sport-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.center .area-pills { justify-content: center; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  font-size: 0.92rem;
}
.pill:hover {
  border-color: rgba(101,206,246,0.5);
  background: rgba(101,206,246,0.08);
}

.ridli-intro {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(101,206,246,0.12), transparent 60%),
    var(--bg);
}
.ridli-intro h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }

.how { background: var(--bg-2); }
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.how-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 26px 30px;
}
.how-num {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.how-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 700;
}
.how-card p { margin: 0; color: var(--text-muted); }

.break {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
.break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.break-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,6,7,0.15) 0%, rgba(4,6,7,0.15) 40%, rgba(4,6,7,0.92) 100%),
    linear-gradient(90deg, rgba(4,6,7,0.35), transparent 50%);
}
.break-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 28px;
}
.break-inner p {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 16ch;
  margin: 0;
}

.companion { background: var(--bg); }
.companion-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.companion-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.companion-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
}
.companion-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad);
  mask: radial-gradient(circle at center, transparent 4px, #000 5px);
  -webkit-mask: radial-gradient(circle at center, transparent 4px, #000 5px);
}
.mini-cards { display: grid; gap: 14px; }
.mini-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.025);
  position: relative;
  overflow: hidden;
}
.mini-card.highlight {
  border-color: rgba(101,206,246,0.35);
  background: linear-gradient(180deg, rgba(101,206,246,0.08), rgba(255,153,204,0.05));
}
.mini-card.highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
}
.mini-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.mini-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.sports { background: var(--bg-2); }
.sports-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.sports-photo {
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  position: relative;
}
.sports-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 40%;
}

.privacy-band {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(101,206,246,0.12), transparent 60%),
    var(--bg);
  padding: 88px 0;
  text-align: center;
}

.access {
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(101,206,246,0.1), transparent 60%),
    var(--bg-2);
  padding: 108px 0;
}
.access-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: start;
}
.perks { display: grid; gap: 20px; margin-top: 36px; }
.perk {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}
.perk svg { width: 22px; height: 22px; margin-top: 2px; }
.perk h3 { margin: 0 0 4px; font-size: 1.08rem; letter-spacing: -0.02em; }
.perk p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.form-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: 24px 24px 0 0;
  background: var(--grad);
}
.form-card h3 {
  margin: 8px 0 6px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.form-card .form-lede {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}
form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
label .opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.req { color: var(--pink); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  background: rgba(4, 6, 7, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { min-height: 110px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'><path d='M1 1l5 5 5-5' stroke='%2365cef6' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
option { color: #111; }
input:hover, select:hover, textarea:hover { border-color: rgba(101,206,246,0.45); }
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(101,206,246,0.15);
  outline: none;
}
.form-note {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.form-card .btn { width: 100%; margin-top: 4px; }
.form-error { display: none; color: #ffb3c9; font-size: 0.88rem; margin: 0; }
.form-error.is-on { display: block; }

.success { display: none; text-align: center; padding: 36px 10px 24px; }
.success.is-on, .is-success .success { display: block; }
.is-success form, .is-success .form-lede, .is-success h3.form-title { display: none; }
.success:focus, .success:focus-visible { outline: none; }
.form-card.is-success {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: var(--ink);
}
.success h3 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.success p { color: var(--text-muted); margin: 0 auto; max-width: 36ch; }

.faq { background: var(--bg); }
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(101,206,246,0.4); box-shadow: 0 8px 25px rgba(101,206,246,0.1); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex: 0 0 auto;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  margin: 0;
}

.footer {
  background: #020303;
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer .logo img { height: 36px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.disclaimer {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 0 18px;
}
.legal {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .companion-grid, .sports-row, .access-grid, .how-grid, .field-row {
    grid-template-columns: 1fr;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: calc(var(--announce-h) + var(--nav-h)) 0 48px;
  }
  .hero-bg {
    position: relative;
    height: 360px;
    flex: 0 0 360px;
  }
  .hero-bg img { object-position: 68% 28%; animation: none; transform: none; }
  .hero-shade {
    background: linear-gradient(180deg, transparent 42%, rgba(4,6,7,0.55) 78%, rgba(4,6,7,1) 100%);
  }
  .hero-inner {
    padding: 22px 28px 0;
  }
  .hero .device, .device { width: min(100%, 360px); }
  .device-wrap { margin-top: 22px; }
  .sports-photo { min-height: 360px; }
  .nav-links { display: none; }
  .logo img { height: 32px; }
  :root { --nav-h: 68px; --announce-h: 40px; }
  .announce a { font-size: 0.84rem; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 24px; }
  .hero-bg { height: 300px; flex-basis: 300px; }
  .hero-bg img { object-position: 70% 26%; }
  .hero-inner { padding: 16px 18px 0; }
  .hero h1 { font-size: clamp(2.05rem, 9.8vw, 2.6rem); margin-bottom: 10px; }
  .hero-sub { font-size: 0.98rem; margin-bottom: 14px; }
  .access-badge {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    padding: 10px 16px 10px 14px;
    margin-bottom: 16px;
  }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .hero-actions .btn { width: 100%; padding: 13px 18px; font-size: 0.92rem; }
  .hero-actions .btn-ghost {
    background: none;
    border: 0;
    padding: 6px 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    box-shadow: none;
  }
  .hero-actions .btn-ghost:hover { color: var(--cyan); transform: none; }
  .nav-cta .btn { padding: 9px 14px; font-size: 0.75rem; }
  .logo img { height: 28px; }
  .nav-inner { padding: 0 16px; }
  .announce a { font-size: 0.78rem; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
  .form-card { padding: 26px 18px 22px; }
  .hero .device, .device { width: min(100%, 348px); padding: 8px; border-radius: 32px; zoom: 1; }
  .device-screen { min-height: 0; border-radius: 24px; }
  .app-status { display: none; }
  .app-bar { padding: 10px 12px 10px; }
  .app-bar img { width: 32px; height: 32px; }
  .transcript { gap: 7px; padding: 10px 10px 8px; }
  .bubble { font-size: 0.76rem; padding: 8px 10px; }
  .stack-card, .checkin-card { padding: 9px 11px 10px; }
  .stack-card li { font-size: 0.76rem; gap: 4px; }
  .stack-card ul { gap: 4px; }
  .card-foot { margin-top: 6px; }
  .checkin-rows { gap: 4px; }
  .checkin-rows div { font-size: 0.74rem; }
  .composer { display: none; }
  .break { min-height: 52vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-bg img { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .access-badge, .hero h1 .line, .hero-sub, .hero-actions, .device-wrap {
    opacity: 1;
    transform: none;
  }
  .chat-step { opacity: 1; transform: none; }
  .typing { display: none; }
}

/* Screenshot helpers */
html.is-shot { scroll-behavior: auto !important; }
html.is-shot [data-reveal],
html.is-shot .access-badge,
html.is-shot .hero h1 .line,
html.is-shot .hero-sub,
html.is-shot .hero-actions,
html.is-shot .device-wrap {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
html.is-shot .hero-bg img { animation: none; transform: scale(1); }
html.is-shot .pulse, html.is-shot .live-pill i { animation: none; }
html.is-shot .device-wrap .chat-step {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
html.is-shot .typing { display: none !important; }
