/* Blevo website — the one stylesheet for www.blevo.app.
   Tokens mirror apps/ios/Blevo/Sources/Design/Tokens.swift and
   services/api/admin-web/index.html. Every colour on the site comes from here.
   Dark-only by brand decision (BLEVO_BRAND.md § Color system). */

:root {
  --bg: #07070A;
  --bg2: #0E0E14;
  --card: #15151C;
  --card2: #1C1C25;
  --text: #FFFFFF;
  --text2: rgba(255, 255, 255, .74);  /* body copy        ≈ 12:1 on --bg */
  --text3: rgba(255, 255, 255, .62);  /* small meta text  ≈ 7:1 on --card */
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --primary: #CCFF00;
  --primary-ink: #000000;
  --primary-dim: rgba(204, 255, 0, .14);
  --primary-line: rgba(204, 255, 0, .38);
  --orange: #FF4500;
  --gold: #FFD24A;
  --gold-dim: rgba(255, 210, 74, .14);
  --violet: #B45BFF;
  --violet-dim: rgba(180, 91, 255, .16);
  --live: #FF2D2D;
  --ghost: #1FA0FF;   /* the Blevo Ghost only (BLEVO_GHOST.md blue exception) */
  --ghost-dim: rgba(31, 160, 255, .16);
  --pass-top: #2A1352;
  --pass-bottom: #120A24;
  --pass-line: #3E2B66;
  --pass-gold: #E8C766;
  --pass-gold2: #FFD98A;
  --pass-dim: #B9A8E0;
  --badge-line: #A6A6A6;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --gutter: 20px;
  --maxw: 1140px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Motion curves (see the Motion section at the end). */
  --ease-out: cubic-bezier(.16, 1, .3, 1);        /* expo-out: arrivals        */
  --ease-settle: cubic-bezier(.18, 1.14, .34, 1); /* lands with a hint of overshoot */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* pops                      */
  --ease-io: cubic-bezier(.65, 0, .35, 1);        /* ambient drifts            */
}

/* ── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
p a, li a, dd a, td a, .prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--primary-line);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
p a:hover, li a:hover, dd a:hover, .prose a:hover { text-decoration-color: var(--primary); }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--primary); color: var(--primary-ink); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--primary-ink); font-weight: 700;
  padding: 12px 16px; border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.eyebrow {
  font: 700 12px/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow.muted { color: var(--text3); }
.lime { color: var(--primary); }
.gold { color: var(--gold); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 14px; border: 1px solid transparent;
  font: 700 16px/1 var(--font); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #D8FF3A; }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line2); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, .28); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; min-height: 56px; font-size: 17px; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Store badges (Apple / Google badge guidelines: black, white type, grey hairline) ── */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; min-width: 172px; padding: 0 16px 0 13px;
  background: #000; color: #fff;
  border: 1px solid var(--badge-line); border-radius: 10px;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
a.badge:hover { border-color: #fff; }
a.badge:active { transform: scale(.97); }
.badge-logo { width: 26px; height: 26px; flex: none; }
.badge-apple .badge-logo, .badge-ios .badge-logo { margin-top: -3px; }
.badge-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.badge-small { font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.badge-android .badge-small { font-size: 10px; letter-spacing: .06em; }
.badge-big { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-top: 3px; }
.badge.is-soon { border-style: dashed; border-color: rgba(255, 255, 255, .3); cursor: default; }
.badge.is-soon .badge-small { color: var(--text3); }
.badge.is-soon .badge-big { color: var(--text2); }
.badge.is-soon .badge-logo { opacity: .7; }
.badge-secondary { display: contents; }
.store-note { color: var(--text3); font-size: 14px; margin-top: 14px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(7, 7, 10, .82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  transform-origin: top;
}
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.wordmark { height: 18px; width: auto; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text2); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 10px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.site-header .btn-sm { margin-left: auto; }
@media (min-width: 880px) {
  .nav { display: flex; }
  .site-header .btn-sm { margin-left: 8px; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 48px 0 64px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 7vw, 72px); line-height: 1.02; font-weight: 900;
  letter-spacing: -.035em; margin: 18px 0 20px;
}
.hero h1 .lime { display: block; }
.lede { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--text2); max-width: 34em; }
.hero .badges { margin-top: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--text3); font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* ── Hero phone: CSS frame + notch around a real Home-tab screenshot ── */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; max-width: 86vw; aspect-ratio: 300 / 612;
  border-radius: 48px; padding: 12px;
  background: linear-gradient(145deg, #2A2A33, #0C0C10 40%, #1D1D24);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 120px -30px rgba(204, 255, 0, .35);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--bg); padding: 46px 14px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-screen.shot { padding: 0; display: block; }
.phone-screen.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-screen::before {
  content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #000;
}
.coin { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFE58A, var(--gold) 55%, #C9981A); flex: none; }
.app-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 14px;
  background: linear-gradient(160deg, #1B1F10, var(--card) 55%);
  border: 1px solid var(--primary-line);
}
.app-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%;
  border: 14px solid rgba(204, 255, 0, .08);
}
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 10px/1 var(--mono); letter-spacing: .14em; color: #fff;
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
.app-meta { font: 600 10px/1 var(--mono); letter-spacing: .12em; color: var(--text3); text-transform: uppercase; }
.app-card h3 { font-size: 19px; font-weight: 900; letter-spacing: -.02em; margin: 10px 0 2px; }
.app-sub { font-size: 12px; color: var(--text3); }
.meter { margin-top: 12px; }
.meter-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: 84%; border-radius: 99px; background: linear-gradient(90deg, #9BD400, var(--primary)); }
.meter-bar.w-62 span { width: 62%; }
.meter .app-row { margin-top: 7px; font-size: 12px; color: var(--text2); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; }
.pot { display: flex; gap: 8px; margin-top: 12px; }
.pot div { flex: 1; border-radius: 12px; background: rgba(255, 255, 255, .05); padding: 8px 10px; }
.pot b { display: block; font: 800 15px/1.2 var(--mono); }
.pot small { font-size: 10px; color: var(--text3); letter-spacing: .08em; text-transform: uppercase; }
.board { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 6px 12px; }
.board-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; border-top: 1px solid var(--line); }
.board-row:first-child { border-top: 0; }
.board-row .rk { width: 16px; font: 700 12px/1 var(--mono); color: var(--text3); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--primary-ink);
}
.av1 { background: #FF4D8D; } .av2 { background: var(--primary); } .av3 { background: #7AA7FF; } .av4 { background: var(--gold); }
.board-row .who { flex: 1; font-weight: 600; }
.board-row.me { color: var(--primary); }
.board-row .num { font-size: 12px; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(21, 21, 28, .92); border: 1px solid var(--line2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
}
.float-chip small { display: block; font-weight: 500; color: var(--text3); font-size: 11px; }
.chip-streak { right: calc(50% - 236px); top: 79%; }
.chip-pass { left: calc(50% - 244px); top: 50.5%; }
.chip-ico { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.chip-ico.flame { background: rgba(255, 69, 0, .16); color: #FF7A1A; }
.chip-ico.flame svg { width: 15px; height: 15px; }
.chip-ico.pass { background: rgba(255, 45, 45, .14); }
.chip-ico.pass::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); animation: pulse 1.6s ease-in-out infinite; }
@media (max-width: 520px) { .float-chip { display: none; } }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 900; letter-spacing: -.03em; margin: 14px 0 12px; }
.section-head p { color: var(--text2); font-size: 18px; }
@media (min-width: 960px) { .section { padding: 104px 0; } }

/* How it works */
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.step {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px 28px;
}
.step-n { display: flex; font: 800 13px/1 var(--mono); letter-spacing: .14em; color: var(--primary); margin-bottom: 28px; }
.step::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); opacity: .7; }
.step h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--text2); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Feature bento */
.bento { display: grid; gap: 14px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px;
}
.tile h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 8px; }
.tile p { color: var(--text2); }
.tile .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-dim); color: var(--primary);
}
.tile .icon svg { width: 22px; height: 22px; }
.tile-coins .icon { background: var(--gold-dim); color: var(--gold); }
.tile-ai .icon, .tile-passport .icon { background: var(--violet-dim); color: var(--violet); }
.tile-ghost .icon { background: var(--ghost-dim); color: var(--ghost); }
.tile-ghost { background: linear-gradient(160deg, #0A1826, var(--card) 60%); }
.tile-moments .icon { background: rgba(255, 69, 0, .14); color: #FF7A45; }
.tile-lead { background: linear-gradient(160deg, #161B08, var(--card) 60%); border-color: rgba(204, 255, 0, .22); }
.tile-lead h3 { font-size: clamp(24px, 3vw, 30px); }
.tile-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text2); font-size: 15px; }
.tile-list li { display: flex; gap: 10px; }
.tile-list li::before { content: "→"; color: var(--primary); font-weight: 700; }
.tile-coins { background: linear-gradient(160deg, #1D1908, var(--card) 60%); }
.tile-passport { background: linear-gradient(160deg, #1C1030, var(--card) 62%); }
.tile .fine { margin-top: 12px; font-size: 14px; color: var(--text3); }
.coin-row { display: flex; gap: 6px; margin-top: 18px; }
.coin-row .coin { width: 22px; height: 22px; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 3; }
  .tile-lead { grid-column: span 6; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
  .tile-third { grid-column: span 2; }
}
.mini-board { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 18px; padding: 6px 14px; }

/* Stats band */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.stat b { display: block; font: 800 clamp(30px, 4vw, 40px)/1.1 var(--mono); letter-spacing: -.03em; color: var(--primary); }
.stat span { color: var(--text3); font-size: 14px; }

/* Connector teaser */
.teaser {
  display: grid; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #17122A, var(--card) 55%);
  border: 1px solid var(--line2); border-radius: var(--r-lg); padding: 32px 26px;
}
.teaser h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 10px; }
.teaser p { color: var(--text2); }
.chat { display: grid; gap: 10px; }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.bubble.q { justify-self: end; background: var(--card2); border: 1px solid var(--line2); border-bottom-right-radius: 6px; }
.bubble.a { background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--text2); }
.bubble.a b { color: var(--text); }
@media (min-width: 860px) { .teaser { grid-template-columns: 1fr 1fr; padding: 48px; gap: 48px; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 20px; font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--text3); border-bottom: 2px solid var(--text3);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); border-color: var(--primary); }
.faq details.closing summary::after { transform: rotate(45deg) translateY(-3px); border-color: var(--text3); }
.faq summary:focus-visible { outline-offset: -2px; border-radius: var(--r); }
.faq .answer { padding: 0 20px; color: var(--text2); }
.faq .answer > :last-child { padding-bottom: 20px; }
.faq .answer p + p { margin-top: 10px; }

/* Download */
.download {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 32px; padding: 56px 24px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(204, 255, 0, .16), transparent 70%), var(--card);
  border: 1px solid rgba(204, 255, 0, .2);
}
.app-icon-wrap { position: relative; width: 88px; height: 88px; margin: 0 auto 22px; }
.download .app-icon { position: relative; width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8); }
.download h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.download p { color: var(--text2); font-size: 18px; margin: 14px auto 0; max-width: 32em; }
.download .badges { justify-content: center; margin-top: 30px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--text3); font-size: 14px; margin-top: 10px; max-width: 22em; }
.footer-col { display: flex; flex-direction: column; }
.footer-col h2 { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text3); margin-bottom: 6px; }
.footer-col a {
  display: flex; align-items: center; min-height: 44px;
  color: var(--text2); text-decoration: none; font-size: 15px; overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--text); }
.footer-legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text3); font-size: 13px; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ── Document pages (privacy, terms, support, delete account, claude) ── */
.doc-hero { padding: 48px 0 8px; }
.doc-hero h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.05; font-weight: 900; letter-spacing: -.035em; margin: 14px 0 12px; }
.doc-hero .lede { max-width: 40em; }
.updated { color: var(--text3); font-size: 14px; margin-top: 14px; font-family: var(--mono); letter-spacing: .02em; }
.doc-layout { display: grid; gap: 32px; padding: 32px 0 24px; }
.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px;
  align-self: start;
}
.toc h2 { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; align-items: baseline; padding: 7px 0;
  color: var(--text2); text-decoration: none; font-size: 15px; line-height: 1.35;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font: 600 11px/1 var(--mono); color: var(--text3); min-width: 20px; }
.toc a:hover { color: var(--text); }
@media (min-width: 1000px) {
  .doc-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
  .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
}
.prose { max-width: 68ch; color: var(--text2); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  color: var(--text); font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em;
  margin-top: 52px; padding-top: 8px; scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 18px; font-weight: 700; margin-top: 28px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--text3); }
.prose code, .code {
  font-family: var(--mono); font-size: .92em; color: var(--text);
  background: var(--card2); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose .table-wrap th, .prose .table-wrap td { padding: 12px 16px; }
.prose tr:last-child td { border-bottom: 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 700; white-space: nowrap; }
.summary-box {
  background: linear-gradient(160deg, #161B08, var(--card) 60%);
  border: 1px solid var(--primary-line); border-radius: var(--r); padding: 22px 22px 22px;
}
.summary-box .eyebrow { margin-bottom: 10px; }
.summary-box ul { margin: 0; padding-left: 20px; color: var(--text2); }
.summary-box li + li { margin-top: 8px; }
.summary-box li::marker { color: var(--primary); }
.note {
  background: var(--card); border: 1px solid var(--line2); border-left: 3px solid var(--primary);
  border-radius: var(--r-sm); padding: 16px 18px; color: var(--text2);
}
.path {
  display: inline; font-weight: 700; color: var(--text); white-space: normal;
}
.path .sep { color: var(--primary); padding: 0 .35em; }
.cards2 { display: grid; gap: 14px; }
@media (min-width: 720px) { .cards2 { grid-template-columns: 1fr 1fr; } }
.infocard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.infocard h3 { color: var(--text); font-size: 18px; font-weight: 800; margin: 12px 0 8px; }
.infocard h3 a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.infocard p, .infocard li { color: var(--text2); font-size: 15px; }
.infocard ol, .infocard ul { margin: 10px 0 0; padding-left: 20px; }
.infocard li + li { margin-top: 6px; }
.platform { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.platform svg { width: 16px; height: 16px; }

/* Connector page */
.url-box {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--primary-line); border-radius: var(--r); padding: 18px;
  max-width: 640px; margin-top: 28px;
}
.url-box .eyebrow { color: var(--text3); }
.url {
  display: block; font: 600 17px/1.4 var(--mono); color: var(--primary);
  background: #0B0B10; border: 1px solid var(--line2); border-radius: var(--r-sm);
  padding: 14px 16px; word-break: break-all; -webkit-user-select: all; user-select: all;
}
.doc-hero .note { max-width: 640px; margin-top: 14px; }
.url-box .hint { color: var(--text3); font-size: 14px; }
.numbered { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 12px; }
.numbered li { counter-increment: n; position: relative; padding-left: 44px; color: var(--text2); }
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: var(--primary-dim); color: var(--primary); font: 800 14px/1 var(--mono);
}
.numbered li b { color: var(--text); }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text2); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg);
}
.check-list.cross li::before { border: 0; transform: none; top: 3px; content: "×"; color: var(--text3); font-weight: 800; font-size: 18px; line-height: 1; left: 3px; }

/* ── Connector page (/connector): hero, constellation, demo chat, picker,
   permission map, trust flow. Resting styles here are the finished frame —
   what no-JS and reduced motion see; motion is in "Connector page motion". ── */
.hub-hero { position: relative; overflow: hidden; padding: 36px 0 44px; }
.hub-grid { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
.hub-grid > * { min-width: 0; }
.hub-hero h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; margin: 16px 0 18px; }
.hub-hero h1 .lime { display: block; }
.hub-hero .lede { max-width: 34em; }
.hub-hero .note { max-width: 640px; margin-top: 14px; }
.hub-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
@media (min-width: 960px) {
  .hub-hero { padding: 56px 0 72px; }
  .hub-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
}

/* The connector URL in a glass pill. (No backdrop-filter: the aurora behind
   it moves, and re-blurring it every frame costs more than it gives.) */
.hub-hero .url-box {
  position: relative; max-width: 580px; margin-top: 26px; gap: 12px; padding: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .015) 55%), rgba(12, 12, 17, .78);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 28px 60px -32px #000;
}
.hub-hero .url-box::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204, 255, 0, .75), transparent);
}
.url-row { display: flex; gap: 8px; align-items: center; }
.url-row .url { flex: 1; min-width: 0; }
.hub-hero .url-row { padding: 5px; background: rgba(0, 0, 0, .42); border: 1px solid var(--line2); border-radius: 999px; }
.hub-hero .url { background: none; border: 0; padding: 8px 4px 8px 14px; font-size: 16px; }
.hub-hero .url-box .hint { padding: 0 4px; }
@media (max-width: 420px) { .hub-hero .url { font-size: 13.5px; padding-left: 10px; } }

/* Copy buttons: a copy icon that morphs into a drawn check, plus a ripple. */
.copy-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  min-height: 44px; min-width: 104px; padding: 0 16px; border-radius: 999px;
  background: var(--card2); color: var(--text); border: 1px solid var(--line2);
  font: 700 14px/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .18s var(--ease);
}
.copy-btn:hover { border-color: rgba(255, 255, 255, .3); }
.copy-btn:active { transform: scale(.95); }
.copy-btn[hidden] { display: none; }
.hub-hero .copy-btn { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.hub-hero .copy-btn:hover { box-shadow: 0 8px 28px -8px rgba(204, 255, 0, .6); }
.copy-btn.ok { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.ci { width: 17px; height: 17px; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ci-copy { transform-origin: 10px 10px; transition: transform .35s var(--ease-out), opacity .2s var(--ease); }
.ci-ok { stroke-width: 2.3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s var(--ease-out) .1s; }
.copy-btn.ok .ci-copy { transform: scale(.3) rotate(-30deg); opacity: 0; }
.copy-btn.ok .ci-ok { stroke-dashoffset: 0; }
.copy-btn::after {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 140px; height: 140px; margin: -70px 0 0 -70px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
  opacity: 0; pointer-events: none;
}

/* Constellation: layered so the heavy lifting is compositor-only — each orbit
   is one rotating layer (its SVG lines ride along), each node counter-rotates
   to stay upright. Node positions match ORBITS in src/web/connector.ts. */
.cx { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; contain: layout style; }
.cx-par { position: absolute; inset: 0; translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 8px); }
.cx svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cx-rings { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: .25; }
.cx-rings .outer { stroke: rgba(255, 255, 255, .16); stroke-dasharray: .5 1.5; }
.cx-rings .faint { stroke: rgba(204, 255, 0, .035); stroke-width: 11; }
.cx-orbit { position: absolute; inset: 0; }
.o2 { translate: calc(var(--mx, 0) * 7px) calc(var(--my, 0) * 5px); }
.cx-ln { stroke: rgba(204, 255, 0, .2); stroke-width: .28; }
.o2 .cx-ln { stroke: rgba(255, 255, 255, .1); }
.cx-pk { stroke: var(--primary); stroke-width: .9; stroke-linecap: round; stroke-dasharray: 7 100; stroke-dashoffset: 7; opacity: 0; }
.cx-node {
  position: absolute; z-index: 1; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: 99px; white-space: nowrap;
  background: rgba(19, 19, 26, .94); border: 1px solid var(--line2);
  font: 650 clamp(10.5px, 2.55cqw, 12.5px)/1 var(--font); color: var(--text);
  box-shadow: 0 10px 22px -12px #000;
}
.cx-node i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.cx-node i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); opacity: 0; }
.cx-node::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid var(--primary); box-shadow: 0 0 20px -3px rgba(204, 255, 0, .6), inset 0 0 12px -5px rgba(204, 255, 0, .5); opacity: 0;
}
.p0 { left: 65.56%; top: 34.44%; } .p1 { left: 65.56%; top: 65.56%; } .p2 { left: 34.44%; top: 65.56%; } .p3 { left: 34.44%; top: 34.44%; }
.p4 { left: 50%; top: 8%; } .p5 { left: 86.37%; top: 29%; } .p6 { left: 86.37%; top: 71%; }
.p7 { left: 50%; top: 92%; } .p8 { left: 13.63%; top: 71%; } .p9 { left: 13.63%; top: 29%; }
.k0 { --k: 0; } .k1 { --k: 1; } .k2 { --k: 2; } .k3 { --k: 3; } .k4 { --k: 4; } .k5 { --k: 5; } .k6 { --k: 6; } .k7 { --k: 7; } .k8 { --k: 8; } .k9 { --k: 9; }
.cx-core { position: absolute; left: 50%; top: 50%; width: 23%; aspect-ratio: 1; translate: -50% -50%; }
.cx-halo { position: absolute; inset: -75%; border-radius: 50%; background: radial-gradient(closest-side, rgba(204, 255, 0, .26), rgba(204, 255, 0, .07) 55%, transparent); pointer-events: none; }
.cx-ping { position: absolute; inset: 0; border-radius: 30%; border: 1px solid rgba(204, 255, 0, .55); opacity: 0; }
.cx-chip {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 30%;
  background: linear-gradient(155deg, #20231A, #0C0C11 72%); border: 1px solid rgba(204, 255, 0, .38);
  box-shadow: 0 0 0 7px rgba(204, 255, 0, .035), 0 22px 44px -20px #000, 0 0 56px -10px rgba(204, 255, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.cx .cx-mark { position: static; width: 56%; height: auto; filter: drop-shadow(0 0 7px rgba(204, 255, 0, .5)); }
/* Phones: one orbit, drawn larger (scale composes with the entrance transform). */
@media (max-width: 560px) {
  .cx { width: min(100%, 300px); margin: -6px auto -10px; }
  .cx-par { scale: 1.36; }
  .cx-node { font-size: 9px; padding: 5px 8px 5px 6px; gap: 5px; }
  .cx-node i { width: 5px; height: 5px; }
  .o2, .cx-rings .outer { display: none; }
  .tool-grid .tool { padding: 6px 8px; font-size: 11.5px; }
}
.cx-band { padding: 18px 0; }
.cx-band .marquee-run span { font-size: clamp(18px, 2.4vw, 26px); }

/* Demo chat */
.demo-grid { display: grid; gap: 28px; align-items: center; }
.demo-grid > * { min-width: 0; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; } .demo-grid .section-head { margin: 0; } }
.demo {
  margin: 0; border-radius: 24px; overflow: hidden; contain: layout paint;
  background: linear-gradient(180deg, #121219, #0B0B10); border: 1px solid var(--line2);
  box-shadow: 0 50px 90px -50px #000, 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 80px -40px rgba(204, 255, 0, .25);
}
.demo-bar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 6px 4px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.demo-title { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 600; color: var(--text3); }
.demo-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; background: var(--primary-dim); color: var(--primary); font: 700 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.demo-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.demo-ctl { display: flex; }
.demo-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--text2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.demo-btn:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.demo-btn[hidden] { display: none; }
.demo-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.demo-btn .ic-play { fill: currentColor; stroke: none; display: none; }
.demo.paused .ic-pause { display: none; }
.demo.paused .ic-play { display: block; }
.demo-win { position: relative; padding: 20px 16px; }
.demo-track { display: grid; gap: 10px; align-content: start; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.msg.q { justify-self: end; background: #25252F; color: var(--text); border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.msg.a { justify-self: start; border: 1px solid var(--line2); color: var(--text2); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.msg.a.ok { border-color: var(--primary-line); background: linear-gradient(160deg, rgba(204, 255, 0, .08), transparent 70%); }
.msg.a.ok b { color: var(--primary); }
.tool {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0;
  padding: 6px 12px 6px 7px; border-radius: 99px; background: rgba(204, 255, 0, .06); border: 1px solid rgba(204, 255, 0, .2);
  font: 12.5px/1.2 var(--mono); transform-origin: 0 50%;
}
.demo .tool code { font: inherit; color: var(--primary); background: none; border: 0; padding: 0; overflow-wrap: anywhere; }
.tl-arg { color: var(--text3); white-space: nowrap; }
.tl-ic { position: relative; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(204, 255, 0, .12); }
.tl-ic .spin { position: absolute; inset: 1px; border-radius: 50%; border: 2px solid rgba(204, 255, 0, .18); border-top-color: var(--primary); opacity: 0; }
.tl-ic svg { width: 13px; height: 13px; fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.result { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.result div { display: grid; gap: 3px; padding: 10px 12px; border-radius: 11px; background: rgba(255, 255, 255, .03); }
.result b { font: 800 clamp(19px, 2.4vw, 24px)/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.result small { font-size: 12px; line-height: 1.3; color: var(--text3); }
.confirm {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; max-width: 420px;
  padding: 14px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 69, 0, .11), var(--card) 58%); border: 1px solid rgba(255, 69, 0, .34);
  transform-origin: 0 50%;
}
.confirm p b { display: block; color: var(--text); font-size: 15px; line-height: 1.35; }
.confirm p small { display: block; margin-top: 3px; color: var(--text3); font-size: 13px; }
.cf-lock { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 69, 0, .14); color: #FF7A45; }
.cf-lock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cf-btns { grid-column: 1 / -1; display: flex; gap: 8px; }
.cf-btn { position: relative; flex: 1; display: grid; place-items: center; min-height: 40px; border-radius: 12px; font-size: 14px; font-weight: 800; }
.cf-btn.yes { background: var(--primary); color: var(--primary-ink); }
.cf-btn.no { background: #25252F; color: var(--text2); }
.cf-btn.yes::after { content: ""; position: absolute; inset: -4px; border-radius: 15px; border: 2px solid var(--primary); opacity: 0; pointer-events: none; }
.demo figcaption { padding: 12px 18px 16px; border-top: 1px solid var(--line); color: var(--text3); font-size: 13px; }

/* Platform picker: a grid of in-page links; site.js turns it into a tab rail. */
.pf-picker { position: relative; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); scroll-margin-top: 90px; }
@media (min-width: 640px) { .pf-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .pf-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pf-tab {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px;
  min-height: 84px; padding: 14px 14px 12px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), transform .3s var(--ease-settle);
}
.pf-tab:hover { border-color: var(--line2); transform: translateY(-2px); }
.pf-tab b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.pf-tab small { font: 600 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.pf-mono {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line2);
  font: 800 12px/1 var(--mono); color: var(--text2); letter-spacing: 0;
}
/* JS: one rail, a lime pill (.pf-ind) slides under the chosen tab. */
.js .pf-picker[role="tablist"] {
  display: flex; gap: 2px; padding: 5px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 18px;
}
.js .pf-picker[role="tablist"]::-webkit-scrollbar { display: none; }
.js .pf-picker[role="tablist"] .pf-tab {
  z-index: 1; flex: 1 0 auto; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 14px; border: 0; border-radius: 13px; background: none; color: var(--text3);
}
.js .pf-picker[role="tablist"] .pf-tab:hover { color: var(--text); transform: none; }
.js .pf-picker[role="tablist"] .pf-tab[aria-selected="true"] { color: var(--text); }
.js .pf-picker[role="tablist"] .pf-tab b { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.js .pf-picker[role="tablist"] .pf-tab small, .js .pf-picker[role="tablist"] .pf-mono { display: none; }
.js .pf-picker[role="tablist"] .pf-tab:focus-visible { outline-offset: -2px; border-radius: 13px; }
.pf-ind {
  position: absolute; left: 0; top: 5px; bottom: 5px; width: 100px; border-radius: 13px; pointer-events: none; transform-origin: 0 0;
  background: linear-gradient(180deg, rgba(204, 255, 0, .17), rgba(204, 255, 0, .06));
  box-shadow: inset 0 0 0 1px rgba(204, 255, 0, .32), 0 8px 26px -10px rgba(204, 255, 0, .45);
}
.pf-ind::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2px; border-radius: 2px; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.pf-panels { margin-top: 16px; display: grid; gap: 14px; }
.pf-panel { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 18px; scroll-margin-top: 90px; }
.pf-panel[hidden] { display: none; }
.pf-panel:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }
@media (min-width: 760px) { .pf-panel { padding: 32px 34px; } }
.pf-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.pf-head .pf-mono { width: 46px; height: 46px; border-radius: 14px; font-size: 14px; background: var(--primary-dim); border-color: var(--primary-line); color: var(--primary); }
.pf-title { display: grid; gap: 4px; }
.pf-head h3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.pf-tag { font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.pf-avail { grid-column: 1 / -1; justify-self: start; padding: 6px 11px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font: 600 12px/1.4 var(--mono); letter-spacing: .02em; color: var(--text2); }
@media (min-width: 900px) { .pf-head { grid-template-columns: auto 1fr auto; } .pf-avail { grid-column: auto; justify-self: end; max-width: 26em; } }
.pf-body { display: grid; gap: 18px; max-width: 76ch; color: var(--text2); }
.pf-body > * { min-width: 0; }
.pf-body h4 { margin: 8px 0 0; color: var(--text); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.pf-body p b, .pf-body li b { color: var(--text); }
.pf-body code, .hub-section code { font-family: var(--mono); font-size: .9em; color: var(--text); background: var(--card2); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.pf-body .note { font-size: 15px; }
.pf-body p a, .pf-body li a { overflow-wrap: anywhere; }
/* Steps as a vertical stepper: a line joins the numbers. */
.stepper { gap: 18px; }
.stepper li::after {
  content: ""; position: absolute; left: 14px; top: 34px; bottom: -16px; width: 2px; margin-left: -1px; border-radius: 1px;
  background: linear-gradient(var(--primary-line), rgba(204, 255, 0, .06)); transform-origin: top;
}
.stepper li:last-child::after { display: none; }
.stepper li::before { box-shadow: inset 0 0 0 1px var(--primary-line); }
.stepper li:nth-child(2) { --n: 1; } .stepper li:nth-child(3) { --n: 2; } .stepper li:nth-child(4) { --n: 3; } .stepper li:nth-child(5) { --n: 4; }

/* Code cards (developers + editors). Scroll sideways inside, never the page. */
.snippet { position: relative; min-width: 0; border-radius: 14px; background: #0B0B10; border: 1px solid var(--line2); overflow: hidden; }
.snippet-label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 4px 4px 4px 14px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  font: 700 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text3);
}
.snippet-label > span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px rgba(204, 255, 0, .6); vertical-align: 1px; }
.snippet-label .copy-btn { min-width: 96px; font-size: 13px; letter-spacing: 0; text-transform: none; background: transparent; border-color: transparent; color: var(--text2); }
.snippet-label .copy-btn:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.snippet-label .copy-btn.ok { background: var(--primary); color: var(--primary-ink); }
.snippet pre { margin: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 16px; font: 13px/1.65 var(--mono); color: var(--text); tab-size: 2; }
.snippet pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.ln { display: inline-block; }
.code-tabs { display: grid; gap: 14px; min-width: 0; }
.ct-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ct-row::-webkit-scrollbar { display: none; }
.ct-btn { flex: none; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--text3); font: 700 13px/1 var(--font); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }
.ct-btn:hover { color: var(--text); }
.ct-btn[aria-selected="true"] { color: var(--primary); border-color: var(--primary-line); background: var(--primary-dim); }
.code-tabs .snippet[hidden] { display: none; }

/* Permission map: scopes (toggles) → the blevo.* tools they unlock. */
.perm { display: grid; gap: 14px; align-items: start; }
.perm > * { min-width: 0; }
.perm-col { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 16px 20px; }
.perm-col:first-child { background: linear-gradient(160deg, #161B08, var(--card) 55%); border-color: rgba(204, 255, 0, .2); }
.perm-col h3 { padding: 0 6px; color: var(--text); font-size: 20px; font-weight: 800; scroll-margin-top: 90px; }
.perm-col > p { padding: 0 6px; margin-top: 12px; color: var(--text2); font-size: 15px; }
.perm-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-right: 6px; }
.scope-list { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; }
.scope { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px; border-radius: 13px; color: var(--text2); font-size: 15px; line-height: 1.45; }
.scope b { color: var(--text); }
.scope::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(204, 255, 0, .07); box-shadow: inset 0 0 0 1px rgba(204, 255, 0, .22); opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; }
.scope.w::before { background: rgba(255, 69, 0, .07); box-shadow: inset 0 0 0 1px rgba(255, 69, 0, .28); }
.scope.act::before { opacity: 1; }
.scope:focus-visible { outline-offset: 0; border-radius: 13px; }
.sc-tog { position: relative; flex: none; width: 32px; height: 20px; margin-top: 1px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.sc-tog::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--primary); opacity: 1; transition: opacity .3s var(--ease); }
.sc-tog::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #0B0B10; transform: translateX(12px); transition: transform .45s var(--ease-spring), background-color .3s var(--ease); }
.scope.w .sc-tog::before { background: #FF6A2B; opacity: 0; }
.scope.w .sc-tog::after { background: rgba(255, 255, 255, .55); transform: none; }
.scope.w.act .sc-tog::before { opacity: 1; }
.scope.w.act .sc-tog::after { background: #0B0B10; transform: translateX(12px); }
.perm-note { font-size: 14px !important; color: var(--text3) !important; }
.cf-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; background: rgba(255, 69, 0, .1); border: 1px solid rgba(255, 69, 0, .32); color: #FF8A5B; font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cf-badge i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #FF6A2B; }
.cf-badge i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #FF6A2B; opacity: 0; }
.perm-tools { background: #0D0D12; border: 1px solid var(--line2); border-radius: 22px; padding: 22px; }
.perm-tools .eyebrow { color: var(--text3); }
.tool-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tool-grid .tool { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line2); color: var(--text2); font: 12.5px/1.2 var(--mono); transition: opacity .3s var(--ease), transform .4s var(--ease-settle); }
.hub-section .tool-grid .tool code { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.tool-grid .tool::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--primary); box-shadow: 0 0 18px -5px rgba(204, 255, 0, .7); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.tool-grid .tool.w::after { border-color: #FF6A2B; box-shadow: 0 0 18px -5px rgba(255, 106, 43, .7); }
.tool-lock { width: 7px; height: 7px; border-radius: 50%; background: #FF6A2B; }
.perm.hl .tool-grid .tool { opacity: .32; }
.perm.hl .tool-grid .tool.lit { opacity: 1; color: var(--text); transform: translate3d(0, -2px, 0); }
.perm.hl .tool-grid .tool.lit::after { opacity: 1; }
.cf-steps { display: grid; gap: 8px; margin: 20px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); counter-reset: c; }
.cf-steps li { counter-increment: c; position: relative; padding-left: 32px; color: var(--text2); font-size: 14px; }
.cf-steps li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 69, 0, .12); color: #FF8A5B; font: 800 12px/1 var(--mono); }
.cf-steps b { color: var(--text); }
@media (min-width: 960px) {
  .perm { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "r t" "c t"; }
  .perm-col:first-child { grid-area: r; }
  .perm-col:nth-child(2) { grid-area: c; }
  .perm-tools { grid-area: t; position: sticky; top: 92px; }
}

/* Trust flow: six stages joined by lines that draw in. Phones: a vertical
   list; wide screens: one row. */
.flow { position: relative; display: grid; gap: 14px; margin: 0 0 16px; padding: 22px 18px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.fl { --i: 0; position: relative; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 14px; min-height: 52px; }
.fl:nth-child(2) { --i: 1; } .fl:nth-child(3) { --i: 2; } .fl:nth-child(4) { --i: 3; } .fl:nth-child(5) { --i: 4; } .fl:nth-child(6) { --i: 5; }
.fl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #101016; border: 1px solid var(--line2); color: var(--primary); }
.fl-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--primary-line); background: radial-gradient(closest-side, rgba(204, 255, 0, .16), transparent); box-shadow: 0 0 26px -6px rgba(204, 255, 0, .55); }
.fl-dot svg { position: relative; z-index: 1; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fl-txt b { display: block; color: var(--text); font-size: 16px; line-height: 1.3; }
.fl-txt small { display: block; margin-top: 2px; color: var(--text3); font-size: 14px; line-height: 1.4; }
.fl-ln { position: absolute; left: 23px; top: 48px; width: 2px; height: calc(100% - 34px); overflow: visible; pointer-events: none; }
.fl-ln line { stroke: rgba(204, 255, 0, .55); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 0; }
.fl-ln .h { display: none; }
.fl-ln .fl-pk { stroke: #F4FFD0; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 100; stroke-dashoffset: 8; opacity: 0; }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 32px 22px 28px; }
  .fl { grid-template-columns: none; justify-items: center; align-items: start; text-align: center; gap: 14px; }
  .fl-ln { left: calc(50% + 30px); top: 23px; width: calc(100% - 48px); height: 2px; }
  .fl-ln .h { display: inline; }
  .fl-ln .v { display: none; }
}

/* Below: disconnect, privacy, FAQ. */
.hub-section .cards2 { margin-top: 4px; }
.hub-section .infocard { border-radius: 22px; padding: 24px; }
.hub-section .infocard h3 { font-size: 20px; margin-top: 0; }
.hub-section .infocard .check-list { margin-top: 14px; }
.hub-section .infocard p + p, .hub-section .infocard p + ul, .hub-section .infocard ul + p { margin-top: 12px; }
.hub-section .check-list li b { color: var(--text); }
.infocard.health { background: linear-gradient(160deg, #1C1030, var(--card) 62%); }
.hub-section .faq { margin-top: 4px; }
.hub-section h3[id] { scroll-margin-top: 90px; }
.sweep { color: var(--primary); }

/* Text chips: assistant names (plain text — they're trademarks, so no logos). */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2);
  font-size: 14px; font-weight: 600; color: var(--text2); white-space: nowrap;
}
a.chip { text-decoration: none; min-height: 40px; }
a.chip:hover { color: var(--text); border-color: var(--primary-line); }
.chip.more { color: var(--text3); border-style: dashed; }
.teaser .chips { margin-top: 20px; }
.teaser .actions-row { margin-top: 24px; }


/* ── Share pages ─────────────────────────────────────────────────────── */
.share-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.share-body main { flex: 1; }
.share-body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 520px; pointer-events: none; z-index: -1;
  background: radial-gradient(420px 300px at 50% -60px, rgba(204, 255, 0, .14), transparent 70%);
}
.share-header {
  width: 100%; max-width: 480px; margin: 0 auto; padding: 14px var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between;
}
.share-header .wordmark { height: 16px; }
.share-about {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  color: var(--text2); font-size: 14px; font-weight: 600; text-decoration: none;
}
.share-about:hover { color: var(--text); }
.share-wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 22px var(--gutter) 40px; }
.share-kicker { text-align: center; }
.share-title {
  text-align: center; font-size: clamp(30px, 8.4vw, 40px); line-height: 1.08; font-weight: 900;
  letter-spacing: -.03em; margin: 12px 0 10px; overflow-wrap: anywhere;
}
.share-lede { text-align: center; color: var(--text2); font-size: 17px; margin: 0 auto 24px; max-width: 26em; }
.share-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #171B0C, var(--card) 58%);
  border: 1px solid rgba(204, 255, 0, .24); border-radius: var(--r-lg); padding: 22px;
}
.share-card.neutral { background: var(--card); border-color: var(--line2); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crest svg { width: 26px; height: 26px; }
.card-top + .card-sub { margin-top: 14px; }
.card-name { font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; margin: 14px 0 4px; overflow-wrap: anywhere; }
.card-sub { color: var(--text2); font-size: 15px; }
.crest { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 18px; border-radius: 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.fact { background: rgba(10, 10, 14, .85); padding: 14px; }
.fact dt { font: 600 10.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.fact dd { margin: 6px 0 0; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.fact dd.lime { color: var(--primary); }
.fact dd.gold { color: var(--gold); }
.fact.wide { grid-column: 1 / -1; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: var(--primary-dim); color: var(--primary);
}
.pill.muted { background: rgba(255, 255, 255, .08); color: var(--text2); }
.pill.live-pill { background: rgba(255, 45, 45, .14); color: #FF7070; }
.pill.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
.reward {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  background: var(--gold-dim); border: 1px solid rgba(255, 210, 74, .28); border-radius: 14px; padding: 14px 16px;
}
.reward .coin { width: 28px; height: 28px; }
.reward b { color: var(--gold); }
.reward p { font-size: 14px; color: var(--text2); }
.share-actions { margin-top: 22px; display: grid; gap: 12px; }
.share-actions .hint { text-align: center; color: var(--text3); font-size: 13px; }
.share-stores { margin-top: 26px; text-align: center; }
.share-stores h2 { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text3); margin-bottom: 14px; }
.share-stores .badges { justify-content: center; }
.code-fallback {
  margin-top: 22px; text-align: center; color: var(--text2); font-size: 14px;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.code-fallback .code { font-size: 15px; letter-spacing: .12em; color: var(--primary); padding: 3px 8px; margin-left: 4px; }
.what { margin-top: 28px; display: grid; gap: 10px; }
.what li { font-size: 14px; }
.share-footer { width: 100%; max-width: 480px; margin: 0 auto; padding: 8px var(--gutter) 28px; }
.share-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.share-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text3); font-size: 13px; text-decoration: none; }
.share-footer a:hover { color: var(--text); }
.share-footer p { text-align: center; color: var(--text3); font-size: 12px; }

/* Ghost card */
.ghost-card { background: radial-gradient(260px 180px at 85% 10%, rgba(31, 160, 255, .20), transparent 70%), linear-gradient(165deg, #0B1624, var(--card) 60%); border-color: rgba(31, 160, 255, .34); }
.ghost-card .pill { background: var(--ghost-dim); color: #7CC6FF; }
.ghost-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.ghost-stats div { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.ghost-stats b { display: block; font: 800 20px/1.1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.ghost-stats small { display: block; margin-top: 4px; font: 600 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }
.ghost-art { position: absolute; right: -8px; top: -6px; width: 92px; opacity: .9; pointer-events: none; }

/* Passport card (Passport keeps its purple/gold/serif identity) */
.pass-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(165deg, var(--pass-top), var(--pass-bottom));
  border: 1px solid var(--pass-line); border-radius: var(--r-lg); padding: 28px 22px 24px;
}
.pass-card::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(232, 199, 102, .22); border-radius: 18px; pointer-events: none;
}
.pass-brand { font: 600 12px/1 var(--serif); letter-spacing: .3em; color: var(--pass-gold); }
.pass-word { font: 800 28px/1.1 var(--serif); letter-spacing: .08em; color: var(--pass-gold2); margin: 6px 0 20px; }
.pass-name { font-size: 26px; font-weight: 900; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pass-tier { font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--pass-gold); margin-top: 8px; }
.pass-stats { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.pass-stats div { flex: 1; max-width: 120px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(232, 199, 102, .18); border-radius: 14px; padding: 12px 6px; }
.pass-stats b { display: block; font: 800 22px/1.1 var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.pass-stats small { display: block; margin-top: 4px; font: 600 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pass-dim); }
.pass-fresh { margin-top: 20px; color: var(--pass-dim); font-size: 15px; }
.pass-id { margin-top: 18px; font: 600 12px/1 var(--mono); letter-spacing: .18em; color: var(--pass-dim); }

/* Error / empty states */
.state { text-align: center; padding: 28px 22px; }
.state-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); color: var(--text2);
}
.state-icon svg { width: 28px; height: 28px; }
.error-page { padding: 80px 0 40px; text-align: center; }
.error-page .error-code { margin: 0; max-width: none; font: 900 clamp(88px, 22vw, 180px)/1 var(--font); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--primary-line); }
.error-page h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 900; letter-spacing: -.03em; margin: 8px 0 12px; }
.error-page p { color: var(--text2); font-size: 17px; max-width: 30em; margin: 0 auto; }
.error-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.error-page .badges { justify-content: center; margin-top: 36px; }

/* Two store badges side by side on phones down to 360px wide. */
@media (max-width: 420px) {
  .badges { gap: 10px; }
  .badge { min-width: 0; height: 50px; padding: 0 12px 0 10px; gap: 8px; }
  .badge-logo { width: 22px; height: 22px; }
  .badge-big { font-size: 17px; }
  .badge-small { font-size: 10px; }
  .badge-android .badge-small { font-size: 9px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Motion
   Rules of the road:
   · Only transform / opacity / clip-path (and a little filter on text) move.
   · Content is never parked invisible unless html.js is present (site.js
     adds it); without JS every section is simply there.
   · Decorative CSS animations use fill-mode `both` and their resting (base)
     style is the finished frame, so reduced motion (animation: none) and
     no-JS both show the final state.
   · Anything inside a .rv block waits (paused) until it scrolls in (.in);
     .off (set by site.js when off-screen) and html.is-hidden pause loops.
   ════════════════════════════════════════════════════════════════════════ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.off, .off *, .off *::before, .off *::after,
.is-hidden *, .is-hidden *::before, .is-hidden *::after { animation-play-state: paused !important; }
.js .rv:not(.in) *, .js .rv:not(.in) *::before, .js .rv:not(.in) *::after { animation-play-state: paused !important; }

/* ── Header: transparent over the hero, frosted + a touch shorter once scrolled ── */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; visibility: hidden; }
.site-header::before { transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.site-header .header-row { transition: transform .5s var(--ease-out); }
.site-header .wordmark { transform-origin: left center; transition: transform .5s var(--ease-out); }
.js .site-header:not(.is-scrolled)::before { opacity: 0; }
.js .site-header.is-scrolled::before { transform: translateY(-8px); }
.js .site-header.is-scrolled .header-row { transform: translateY(-4px); }
.js .site-header.is-scrolled .wordmark { transform: scale(.94); }

/* Nav: underline slides in from the left, out to the right. */
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1.5px; border-radius: 1px;
  background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Buttons: primary glows on hover; the hero CTA is magnetic (site.js sets --bx/--by). */
.btn-primary { transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .3s var(--ease); }
.btn-primary:hover { box-shadow: 0 10px 34px -10px rgba(204, 255, 0, .6); }
.btn-magnet {
  translate: var(--bx, 0px) var(--by, 0px);
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .3s var(--ease), translate .6s var(--ease-spring);
}
a.badge:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(204, 255, 0, .45); }
.badge { transition: transform .3s var(--ease-settle), border-color .18s var(--ease), box-shadow .3s var(--ease); }

/* ── Hero: backdrop (aurora + receding track grid) ─────────────────────── */
.hero-fx, .hub-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; translate: calc(var(--mx, 0) * -18px) calc(var(--my, 0) * -12px); }
.a1 {
  width: 820px; height: 640px; right: -14%; top: -12%;
  background: radial-gradient(closest-side, rgba(204, 255, 0, .17), rgba(150, 255, 90, .06) 55%, transparent);
  animation: aurora-a 19s var(--ease-io) infinite alternate;
}
.a2 {
  width: 620px; height: 480px; left: -16%; top: -26%;
  background: radial-gradient(closest-side, rgba(255, 69, 0, .09), transparent);
  animation: aurora-b 25s var(--ease-io) infinite alternate;
}
@keyframes aurora-a { from { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-7%, 9%, 0) scale(1.08); } to { transform: translate3d(5%, 4%, 0) scale(.94); } }
@keyframes aurora-b { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(14%, 12%, 0) scale(1.15); } }
.floor {
  position: absolute; left: 50%; bottom: -2px; width: 1800px; height: 380px; margin-left: -900px;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(60% 100% at 62% 100%, #000 10%, transparent 72%);
  mask-image: radial-gradient(60% 100% at 62% 100%, #000 10%, transparent 72%);
  opacity: .55; overflow: hidden;
}
.floor-grid {
  position: absolute; left: 0; right: 0; top: -72px; bottom: 0;
  background-image: linear-gradient(rgba(204, 255, 0, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(204, 255, 0, .12) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: floor 3.2s linear infinite;
}
@keyframes floor { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 72px, 0); } }
@media (max-width: 760px) { .floor { display: none; } .a2 { animation: none; } }

/* ── Hero: copy choreography (~1.2 s, CSS-only so it starts with first paint).
   The h1 is never invisible: its words start as a soft, dim blur and pull
   into focus, so it paints (and counts as LCP) on the very first frame. ── */
.hero-copy .eyebrow { display: inline-block; animation: fade-up .7s var(--ease-out) both; }
:is(.hero, .hub-hero) h1 .w { display: inline-block; animation: word-in .95s var(--ease-out) both; }
:is(.hero, .hub-hero) h1 > .w:nth-child(1) { animation-delay: .06s; }
:is(.hero, .hub-hero) h1 > .w:nth-child(2) { animation-delay: .13s; }
:is(.hero, .hub-hero) h1 > .w:nth-child(3) { animation-delay: .2s; }
:is(.hero, .hub-hero) h1 .lime .w:nth-child(1) { animation-delay: .36s; }
:is(.hero, .hub-hero) h1 .lime .w:nth-child(2) { animation-delay: .43s; }
:is(.hero, .hub-hero) h1 .lime .w:nth-child(3) { animation-delay: .5s; }
@keyframes word-in {
  from { opacity: .16; transform: translate3d(0, .38em, 0); filter: blur(12px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: none; filter: none; }
}
/* The lime line lands last, then a glint sweeps across it. */
:is(.hero, .hub-hero) h1 .lime { position: relative; isolation: isolate; }
:is(.hero, .hub-hero) h1 .lime::before {
  content: ""; position: absolute; z-index: -1; left: -6%; top: 8%; width: 42%; height: 92%;
  background: radial-gradient(closest-side, rgba(204, 255, 0, .32), transparent);
  opacity: 0; animation: glow-sweep 1.5s var(--ease-io) .75s both;
}
@keyframes glow-sweep {
  from { opacity: 0; transform: translate3d(0, 0, 0) scale(.8); }
  35% { opacity: 1; }
  to { opacity: 0; transform: translate3d(170%, 0, 0) scale(1.1); }
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  :is(.hero, .hub-hero) h1 .lime .w {
    background: linear-gradient(100deg, var(--primary) 0 42%, #F7FFD9 50%, var(--primary) 58% 100%) 100% 0 / 300% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation-name: word-in, glint; animation-duration: .95s, 1.1s;
    animation-timing-function: var(--ease-out), var(--ease-io);
    animation-fill-mode: both;
  }
  :is(.hero, .hub-hero) h1 .lime .w:nth-child(1) { animation-delay: .36s, .82s; }
  :is(.hero, .hub-hero) h1 .lime .w:nth-child(2) { animation-delay: .43s, .94s; }
  :is(.hero, .hub-hero) h1 .lime .w:nth-child(3) { animation-delay: .5s, 1.06s; }
}
@keyframes glint { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero .lede { animation: fade-up .8s var(--ease-out) .5s both; }
.hero-actions { animation: fade-up .8s var(--ease-out) .6s both; }
.hero-points { animation: fade-in .8s var(--ease-out) .78s both; }

/* ── Hero: phone rises with a 3D tilt that settles, then floats ── */
.phone-par {
  transform: perspective(1400px) rotateY(calc(var(--mx, 0) * 7deg)) rotateX(calc(var(--my, 0) * -5deg)) translate3d(calc(var(--mx, 0) * 6px), calc(var(--my, 0) * 4px), 0);
}
.phone {
  animation: phone-in 1.2s var(--ease-settle) .22s both, phone-float 7s var(--ease-io) 1.5s infinite;
}
@keyframes phone-in {
  from { opacity: 0; transform: perspective(1400px) translate3d(0, 90px, 0) rotateX(26deg) rotateY(-16deg) rotateZ(3deg) scale(.9); }
  40% { opacity: 1; }
  to { opacity: 1; transform: perspective(1400px); }
}
@keyframes phone-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
.phone-glow {
  position: absolute; left: 50%; top: 55%; width: 440px; height: 520px; margin: -260px 0 0 -220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(204, 255, 0, .2), rgba(120, 255, 120, .06) 60%, transparent);
  animation: fade-in 1.4s var(--ease-out) .5s both, breathe 6s var(--ease-io) 1.9s infinite;
}
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.92); } }

/* Chips pop out of the phone on a spring, then drift out of phase. */
.float-chip { translate: calc(var(--mx, 0) * 16px) calc(var(--my, 0) * 10px); }
.chip-pass { translate: calc(var(--mx, 0) * 24px) calc(var(--my, 0) * 16px); transform-origin: 100% 50%; animation: chip-in .8s var(--ease-spring) 1.02s both, drift-a 8s var(--ease-io) 2s infinite; }
.chip-streak { transform-origin: 0 50%; animation: chip-in .8s var(--ease-spring) 1.18s both, drift-b 9.5s var(--ease-io) 2.2s infinite; }
@keyframes chip-in { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.55); } to { opacity: 1; transform: none; } }
@keyframes drift-a { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-5px, -9px, 0); } }
@keyframes drift-b { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(6px, 7px, 0); } }
.chip-n { font-weight: 700; color: var(--text2); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .float-chip { animation-name: chip-in, none; } }

/* Live overlay on the screenshot: a patch over the baked-in step count (same
   number, same place) that site.js ticks up, plus a "+n" that floats away.
   Sized in container units so it tracks the screenshot at any phone width. */
.phone-screen.shot { container-type: inline-size; }
.ov { position: absolute; inset: 0; pointer-events: none; }
.ov-steps {
  position: absolute; left: 10.5%; width: 18.8%; top: 25%; height: 3.06%; overflow: hidden;
  background: linear-gradient(90deg, rgba(41, 65, 26, 0), #29411A 10%, #29411A 90%, rgba(41, 65, 26, 0));
  opacity: 0;
}
.js .ov-steps { opacity: 1; }
.ov-num {
  position: absolute; left: 0; right: 0; bottom: 11%; text-align: center;
  font: 700 5.75cqw/1 var(--font); letter-spacing: -.012em; color: #fff;
}
.ov-plus {
  position: absolute; left: 24.2%; top: 30.6%; opacity: 0;
  font: 800 3.2cqw/1 var(--mono); color: var(--primary); text-shadow: 0 0 8px rgba(204, 255, 0, .6);
}
.bump-a { animation: bump-a .5s var(--ease-out); }
.bump-b { animation: bump-b .5s var(--ease-out); }
@keyframes bump-a { from { transform: translate3d(0, 45%, 0); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes bump-b { from { transform: translate3d(0, 45%, 0); opacity: .2; } to { transform: none; opacity: 1; } }
.pop-a { animation: pop-a 1.2s var(--ease-out); }
.pop-b { animation: pop-b 1.2s var(--ease-out); }
@keyframes pop-a { 0% { opacity: 0; transform: translate3d(0, 6px, 0) scale(.7); } 18% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate3d(0, -16px, 0); } }
@keyframes pop-b { 0% { opacity: 0; transform: translate3d(0, 6px, 0) scale(.7); } 18% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate3d(0, -16px, 0); } }

/* ── Marquee band ── */
.marquee {
  overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 64s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-run { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.marquee-run span { font: 800 clamp(22px, 3.2vw, 36px)/1.1 var(--font); letter-spacing: -.025em; color: rgba(255, 255, 255, .26); white-space: nowrap; transition: color .3s var(--ease); }
.marquee-run span:hover { color: var(--text); }
.marquee-run i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px rgba(204, 255, 0, .7); flex: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ── Scroll reveals (site.js adds .in; stagger comes in as --d) ── */
.js .rv {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s);
}
.js .rv.in { opacity: 1; transform: none; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.section-head .eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 1px; background: var(--primary); transform-origin: left; }
.js .section-head.rv { opacity: 1; transform: none; }
.js .section-head.rv > * { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(6px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out); }
.js .section-head.rv > :nth-child(2) { transition-delay: .08s; }
.js .section-head.rv > :nth-child(3) { transition-delay: .16s; }
.js .section-head.rv.in > * { opacity: 1; transform: none; filter: none; }
.js .section-head.rv .eyebrow::before { transform: scaleX(0); transition: transform .9s var(--ease-out) .3s; }
.js .section-head.rv.in .eyebrow::before { transform: none; }

/* How it works: a rail draws across the three steps as you scroll, each step
   number rolls up like an odometer. */
.steps-rail { display: none; }
.roll { display: inline-block; height: 1em; overflow: hidden; }
.roll-strip { display: flex; flex-direction: column; }
.roll-strip span { display: block; height: 1em; }
.roll-strip.r1 { transform: translateY(-1em); }
.roll-strip.r2 { transform: translateY(-2em); }
.roll-strip.r3 { transform: translateY(-3em); }
.js .step.rv .roll-strip { transition: transform 1.1s var(--ease-settle) calc(var(--d, 0s) + .25s); }
.js .step.rv:not(.in) .roll-strip { transform: none; }
@media (min-width: 760px) {
  .steps-wrap { --col: calc((100% - 28px) / 3); }
  .steps-rail { display: block; position: relative; height: 14px; margin: 0 0 18px; }
  .rail-track { position: absolute; top: 6px; height: 2px; left: 30px; right: calc(var(--col) - 30px); border-radius: 2px; background: var(--line2); overflow: hidden; }
  .rail-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #9BD400, var(--primary)); transform-origin: left; transform: scaleX(var(--p, 1)); }
  .js-rail .rail-fill { transform: scaleX(var(--p, 0)); }
  .rail-node {
    position: absolute; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
    background: var(--primary); border: 2px solid var(--primary); box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(204, 255, 0, .55);
    transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .5s var(--ease-spring);
  }
  .rail-node.n1 { left: 30px; }
  .rail-node.n2 { left: calc(var(--col) + 14px + 30px); }
  .rail-node.n3 { left: calc(var(--col) * 2 + 28px + 30px); }
  .js-rail .rail-node:not(.on) { background: var(--bg); border-color: var(--line2); box-shadow: 0 0 0 4px var(--bg); transform: scale(.8); }
  @supports (animation-timeline: view()) {
    .steps-wrap { view-timeline: --steps block; }
    .rail-fill, .rail-node { animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --steps; animation-range: cover 10vh cover 50vh; }
    .rail-fill { animation-name: rail-grow; }
    .rail-node.n1 { animation-name: node-1; }
    .rail-node.n2 { animation-name: node-2; }
    .rail-node.n3 { animation-name: node-3; }
  }
}
@keyframes rail-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes node-1 { 0% { background: var(--bg); border-color: var(--line2); transform: scale(.8); } 4%, 100% { background: var(--primary); border-color: var(--primary); transform: none; } }
@keyframes node-2 { 0%, 48% { background: var(--bg); border-color: var(--line2); transform: scale(.8); } 53%, 100% { background: var(--primary); border-color: var(--primary); transform: none; } }
@keyframes node-3 { 0%, 95% { background: var(--bg); border-color: var(--line2); transform: scale(.8); } 100% { background: var(--primary); border-color: var(--primary); transform: none; } }

/* ── Feature tiles: each gets one signature micro-animation ── */
.tile:not(.tile-lead) { display: flex; flex-direction: column; }
.tile-vis { margin-top: auto; padding-top: 22px; }

/* Challenges: live crew board (site.js counts + FLIP-swaps the rows). */
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 6px; }
.board-row { position: relative; isolation: isolate; border-top: 0; }
.board-row + .board-row { border-top: 1px solid var(--line); }
.board-row::before { content: ""; position: absolute; inset: 2px -8px; z-index: -1; border-radius: 10px; background: var(--primary-dim); opacity: 0; }
.board-row.flash::before { animation: row-flash 1.2s var(--ease-out); }
@keyframes row-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

/* Coins: a coin spins in 3D while the reward counts up. */
.coin-vis { display: flex; align-items: center; gap: 14px; perspective: 500px; }
.coin3d { position: relative; width: 46px; height: 46px; flex: none; transform-style: preserve-3d; animation: coin-spin 1.7s cubic-bezier(.2, .75, .25, 1) .35s both, coin-idle 7s var(--ease-io) 3s infinite; }
.coin-face {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  font: 900 20px/1 var(--font); color: #8A6410;
  background: radial-gradient(circle at 34% 30%, #FFF0B0, var(--gold) 45%, #C9981A 78%, #A87B12);
  box-shadow: inset 0 0 0 3px rgba(255, 240, 180, .55), inset 0 -3px 6px rgba(120, 80, 0, .35);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.coin-face.back { transform: rotateY(180deg); }
@keyframes coin-spin { from { transform: translate3d(0, 0, 0) rotateY(0); } 35% { transform: translate3d(0, -14px, 0) rotateY(540deg); } to { transform: translate3d(0, 0, 0) rotateY(1080deg); } }
@keyframes coin-idle { 0%, 82% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.coin-earn b { display: block; font: 800 24px/1.1 var(--mono); color: var(--gold); letter-spacing: -.02em; }
.coin-earn small { display: block; margin-top: 3px; font-size: 13px; color: var(--text3); }

/* Ghost races: you (lime) chase a translucent ghost down the track and pip it. */
.race-labels { display: flex; align-items: baseline; gap: 14px; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.lbl-you { color: var(--primary); }
.lbl-ghost { color: #7CC6FF; }
.race-result { margin-left: auto; font-size: 13px; letter-spacing: .04em; color: var(--primary); animation: race-result 4.6s linear .6s infinite both; }
.track { position: relative; height: 14px; margin-top: 12px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .16)); }
.track::after { content: ""; position: absolute; right: 0; top: 0; width: 2px; height: 14px; border-radius: 1px; background: rgba(255, 255, 255, .4); }
.lane { position: absolute; left: 0; top: 0; width: calc(100% - 14px); height: 14px; }
.dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; animation: race-fade 4.6s linear .6s infinite both; }
.dot-you { background: var(--primary); box-shadow: 0 0 14px rgba(204, 255, 0, .8); }
.dot-ghost { background: rgba(31, 160, 255, .4); border: 1.5px solid rgba(124, 198, 255, .9); box-shadow: 0 0 16px rgba(31, 160, 255, .6); }
.lane-ghost { transform: translate3d(86%, 0, 0); animation: race-ghost 4.6s linear .6s infinite both; }
.lane-you { transform: translate3d(100%, 0, 0); animation: race-you 4.6s .6s infinite both; }
@keyframes race-ghost { 0% { transform: translate3d(0, 0, 0); } 74%, 100% { transform: translate3d(100%, 0, 0); } }
@keyframes race-you { 0% { transform: translate3d(0, 0, 0); animation-timing-function: cubic-bezier(.55, 0, .7, .95); } 70%, 100% { transform: translate3d(100%, 0, 0); } }
@keyframes race-fade { 0% { opacity: 0; } 4%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes race-result { 0%, 68% { opacity: 0; transform: translate3d(0, 4px, 0); } 73%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Passport: stamps thud onto the page one by one. */
.stamps { display: flex; flex-wrap: wrap; gap: 10px; }
.stamp {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  font: 800 11px/1 var(--mono); letter-spacing: .06em; color: var(--pass-gold2);
  border: 2px solid rgba(232, 199, 102, .7); box-shadow: inset 0 0 0 3px rgba(232, 199, 102, .14);
  animation: stamp .55s both;
}
.stamp.s1 { rotate: -10deg; animation-delay: .45s; }
.stamp.s2 { rotate: 7deg; border-radius: 12px; color: #D9B8FF; border-color: rgba(180, 91, 255, .7); box-shadow: inset 0 0 0 3px rgba(180, 91, 255, .14); animation-delay: .8s; }
.stamp.s3 { rotate: -4deg; animation-delay: 1.15s; }
.stamp.s4 { rotate: 12deg; border-style: dashed; animation-delay: 1.5s; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(2.1) translate3d(0, -4px, 0); animation-timing-function: cubic-bezier(.55, 0, .9, .4); }
  55% { opacity: 1; transform: scale(.9); animation-timing-function: var(--ease-out); }
  78% { transform: scale(1.04); }
  100% { opacity: 1; transform: none; }
}

/* Life Moments: training days fill in toward the event. */
.day-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.day-grid i { position: relative; aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.day-grid i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, #D8FF3A, #9BD400); animation: day-fill .45s var(--ease-settle) both; }
.day-grid i:nth-child(4)::after, .day-grid i:nth-child(9)::after { background: rgba(204, 255, 0, .3); }
.day-grid i.event { background: rgba(255, 69, 0, .5); box-shadow: 0 0 10px rgba(255, 69, 0, .5); }
.day-grid i.event::after { background: none; border: 2px solid #FF7A45; animation: event-ring 2.4s var(--ease-out) 1.4s infinite both; }
@keyframes day-fill { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes event-ring { 0% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: scale(1.9); } }
.day-label { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #FF9A70; }
.day-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* AI coach: typing… then the answer. */
.coach { display: grid; }
.coach > * { grid-area: 1 / 1; align-self: end; }
.typing { justify-self: start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px 16px 16px 6px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line); opacity: 0; animation: typing-life 2s linear .3s both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); animation: typing-dot .6s var(--ease-io) .3s 3 both; }
.typing i:nth-child(2) { animation-delay: .45s; }
.typing i:nth-child(3) { animation-delay: .6s; }
.coach-msg {
  padding: 12px 14px; border-radius: 16px 16px 16px 6px; font-size: 14px; line-height: 1.45; color: var(--text2);
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(180, 91, 255, .35); transform-origin: 0 100%;
  animation: bubble-in .6s var(--ease-settle) 2.2s both;
}
@keyframes typing-life { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes typing-dot { 0%, 100% { transform: none; opacity: .5; } 50% { transform: translate3d(0, -4px, 0); opacity: 1; } }
@keyframes bubble-in { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.94); } to { opacity: 1; transform: none; } }

/* Health: a heartbeat trace draws itself, then a scan light sweeps it. */
.health-side { display: grid; gap: 18px; }
.ecg { position: relative; overflow: hidden; height: 72px; padding: 4px 0; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.ecg svg { width: 100%; height: 100%; animation: ecg-draw 1.6s var(--ease-io) .5s both; }
.ecg-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(100% - 90px), rgba(204, 255, 0, .05) calc(100% - 40px), rgba(204, 255, 0, .16) calc(100% - 3px), transparent);
  transform: translate3d(-100%, 0, 0); animation: scan 2.8s linear 2.1s infinite;
}
@keyframes ecg-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(100%, 0, 0); } }
.ecg-bpm { position: absolute; left: 12px; top: 8px; font-size: 11px; color: var(--text3); }
.ecg-bpm b { display: inline-block; font-size: 15px; color: var(--text); animation: beat .97s var(--ease-out) 2.1s infinite; }
@keyframes beat { 0%, 100% { transform: none; } 12% { transform: scale(1.14); } }

/* Connector teaser: the conversation plays out in order. */
.chat .bubble { animation: bubble-in .6s var(--ease-settle) both; }
.chat .bubble.q { transform-origin: 100% 100%; }
.chat .bubble.a { transform-origin: 0 100%; }
.chat .bubble:nth-child(1) { animation-delay: .35s; }
.chat .bubble:nth-child(2) { animation-delay: 1s; }
.chat .bubble:nth-child(3) { animation-delay: 2.1s; }
.chat .bubble:nth-child(4) { animation-delay: 2.75s; }

/* Download: the app icon breathes. */
.app-icon-wrap::before {
  content: ""; position: absolute; inset: -40px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(204, 255, 0, .6) 42%, rgba(204, 255, 0, .16) 66%, transparent);
  animation: breathe 4.8s var(--ease-io) infinite;
}

/* ── Share pages: the card arrives, the CTA catches the light (CSS-only; no JS on share pages) ── */
.share-wrap > * { animation: fade-up .7s var(--ease-out) both; }
.share-wrap > :nth-child(2) { animation-delay: .06s; }
.share-wrap > :nth-child(3) { animation-delay: .12s; }
.share-wrap > .share-card, .share-wrap > .pass-card { animation: card-in 1s var(--ease-settle) .16s both; }
.share-wrap > :nth-child(n+5) { animation-delay: .36s; }
@keyframes card-in { from { opacity: 0; transform: perspective(1000px) translate3d(0, 28px, 0) rotateX(10deg) scale(.97); } to { opacity: 1; transform: none; } }
.share-actions .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.share-actions .btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  transform: translate3d(-100%, 0, 0); animation: shimmer 4.2s var(--ease-io) 1.2s infinite;
}
@keyframes shimmer { 0% { transform: translate3d(-100%, 0, 0); } 35%, 100% { transform: translate3d(100%, 0, 0); } }

/* Connector teaser chips pop in after the heading (paused until the block reveals). */
.teaser .chips .chip { animation: chip-in .6s var(--ease-spring) both; }
.teaser .chips li:nth-child(n+2) .chip { animation-delay: .08s; }
.teaser .chips li:nth-child(n+3) .chip { animation-delay: .16s; }
.teaser .chips li:nth-child(n+4) .chip { animation-delay: .24s; }
.teaser .chips li:nth-child(n+5) .chip { animation-delay: .32s; }
.teaser .chips li:nth-child(n+6) .chip { animation-delay: .4s; }
.teaser .chips li:nth-child(n+7) .chip { animation-delay: .48s; }
.teaser .chips li:nth-child(n+8) .chip { animation-delay: .56s; }
.teaser .chips li:nth-child(n+9) .chip { animation-delay: .64s; }

/* ── Connector page motion ──
   Hero: copy arrives like the homepage's (the h1 words pull into focus, never
   invisible); the constellation assembles, orbits turn (80 s / 120 s, opposite
   ways), packets run core → node → core in a 9 s sequence and each node lights
   as its packet lands. Everything loops only while on screen (.off pauses). */
.hub-copy > :not(h1) { animation: fade-up .8s var(--ease-out) both; }
.hub-copy > .lede { animation-delay: .45s; }
.hub-copy > .url-box { animation-delay: .55s; }
.hub-copy > :nth-child(n+5) { animation-delay: .65s; }
.cx-par { animation: cx-in 1.3s var(--ease-settle) .15s both; }
@keyframes cx-in { from { opacity: 0; transform: scale(.82) rotate(-8deg); } to { opacity: 1; transform: none; } }
.o1 { animation: cx-spin 80s linear infinite; }
.o2 { animation: cx-spin 120s linear infinite reverse; }
.o1 .cx-node { animation: cx-spin 80s linear infinite reverse; }
.o2 .cx-node { animation: cx-spin 120s linear infinite; }
@keyframes cx-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cx-pk { animation: cx-pk 9s linear infinite; animation-delay: calc(var(--k) * .9s + 1.2s); }
@keyframes cx-pk {
  0% { stroke-dashoffset: 7; opacity: 0; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
  1% { opacity: 1; }
  9% { stroke-dashoffset: -93; opacity: 1; }
  10.5%, 12.5% { stroke-dashoffset: -93; opacity: 0; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
  13.5% { opacity: 1; }
  21% { stroke-dashoffset: 7; opacity: 1; }
  22%, 100% { stroke-dashoffset: 7; opacity: 0; }
}
.cx-node::after, .cx-node i::after { animation: cx-lit 9s var(--ease-io) infinite; animation-delay: calc(var(--k) * .9s + 1.2s); }
@keyframes cx-lit { 0%, 8% { opacity: 0; } 10%, 19% { opacity: 1; } 30%, 100% { opacity: 0; } }
.cx-chip { animation: cx-breathe 5.5s var(--ease-io) 1.4s infinite; }
@keyframes cx-breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.045); } }
.cx-halo { animation: fade-in 1.4s var(--ease-out) .3s both, breathe 5.5s var(--ease-io) 1.7s infinite; }
.cx-ping { animation: cx-ping 4.5s var(--ease-out) 1.4s infinite; }
.cx-ping.late { animation-delay: 3.65s; }
@keyframes cx-ping { 0% { opacity: .75; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(2.3); } }

/* Copy: ripple on success. */
.copy-btn.ok::after { animation: cp-ripple .7s var(--ease-out); }
@keyframes cp-ripple { from { opacity: .75; transform: scale(.1); } to { opacity: 0; transform: scale(1.3); } }

/* Headings: the lime words catch the light as their block reveals. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .js .section-head.rv .sweep {
    background: linear-gradient(100deg, var(--primary) 0 42%, #F7FFD9 50%, var(--primary) 58% 100%) 100% 0 / 300% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .js .section-head.rv.in .sweep { animation: glint 1.3s var(--ease-io) .45s both; }
}

/* Demo chat (site.js adds .demo-on, then .on / .done / .press on a timeline).
   The window keeps a fixed height; the track slides up as lines arrive. */
.demo-live i { animation: pulse 1.8s var(--ease-io) infinite; }
.js .demo.demo-on .demo-win { height: 468px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.js .demo.demo-on .demo-track { transition: transform .8s var(--ease-out), opacity .45s var(--ease); }
.js .demo.demo-on.fade .demo-track { opacity: 0; }
.js .demo.demo-on .dm { opacity: 0; transform: translate3d(0, 14px, 0) scale(.96); transition: opacity .45s var(--ease-out), transform .65s var(--ease-settle); }
.js .demo.demo-on .dm.on { opacity: 1; transform: none; }
.js .demo.demo-on .tool:not(.done) .spin { opacity: 1; animation: spin .75s linear infinite; }
.js .demo.demo-on .tool:not(.done) .tl-ic svg { stroke-dashoffset: 1; }
.js .demo.demo-on .tool .tl-ic svg { transition: stroke-dashoffset .4s var(--ease-out) .05s; }
.js .demo.demo-on .tool.done .tl-ic { animation: tl-done .5s var(--ease-spring); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tl-done { 40% { transform: scale(1.25); } }
.js .demo.demo-on .msg .tw { opacity: 0; transition: opacity .18s linear; }
.js .demo.demo-on .msg.on .tw { opacity: 1; transition-delay: calc(var(--i) * 38ms + .25s); }
.js .demo.demo-on .confirm.press .cf-btn.yes { animation: cf-press .55s var(--ease-out); }
.js .demo.demo-on .confirm.press .cf-btn.yes::after { animation: cf-ring .8s var(--ease-out) .08s; }
.js .demo.demo-on .confirm .cf-btn.no { transition: opacity .4s var(--ease); }
.js .demo.demo-on .confirm.press .cf-btn.no { opacity: .35; }
@keyframes cf-press { 0%, 100% { transform: none; } 30% { transform: scale(.93); } }
@keyframes cf-ring { from { opacity: .9; transform: scale(.96); } to { opacity: 0; transform: scale(1.12); } }
.demo.paused *, .demo.paused *::before, .demo.paused *::after { animation-play-state: paused !important; }

/* Picker: the chosen panel slides in from the side you moved toward; its
   steps' numbers pop and the stepper line draws down. */
.js .pf-picker[role="tablist"] + .pf-panels .pf-panel:not([hidden]) { animation: pf-in-r .5s var(--ease-out) both; }
.js .pf-picker[role="tablist"] + .pf-panels[data-dir="-1"] .pf-panel:not([hidden]) { animation-name: pf-in-l; }
@keyframes pf-in-r { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes pf-in-l { from { opacity: 0; transform: translate3d(-28px, 0, 0); } to { opacity: 1; transform: none; } }
.js [role="tabpanel"]:not([hidden]) .stepper li { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--n, 0) * .1s + .08s); }
.js [role="tabpanel"]:not([hidden]) .stepper li::before { animation: step-pop .55s var(--ease-spring) both; animation-delay: calc(var(--n, 0) * .1s + .16s); }
.js [role="tabpanel"]:not([hidden]) .stepper li::after { animation: step-line .5s var(--ease-io) both; animation-delay: calc(var(--n, 0) * .1s + .3s); }
@keyframes step-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes step-line { from { transform: scaleY(0); } to { transform: none; } }

/* Developer snippets type in, line by line, the first time they're seen. */
.js .code-tabs pre:not(.type) .ln { clip-path: inset(0 100% 0 0); }
.js .code-tabs pre.type .ln { animation: type-ln .42s steps(18, end) both; animation-delay: calc(var(--i, 0) * .13s); }
@keyframes type-ln { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .code-tabs pre.type code::after { content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--primary); animation: caret 1.1s steps(1) infinite, caret-on 0s calc(var(--n, 0) * .13s + .45s) both; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes caret-on { from { visibility: hidden; } to { visibility: visible; } }

/* Permissions: toggles flip on in turn as the block arrives; the confirm
   badge pulses; lit tools rise (see .perm.hl above). */
.js .perm-col.rv:not(.in) .scope:not(.w) .sc-tog::before { opacity: 0; }
.js .perm-col.rv:not(.in) .scope:not(.w) .sc-tog::after { transform: none; background: rgba(255, 255, 255, .55); }
.js .perm-col.rv .scope:not(.w) .sc-tog::before, .js .perm-col.rv .scope:not(.w) .sc-tog::after { transition-delay: calc(var(--s, 0) * 70ms + .35s); }
.scope:nth-child(2) { --s: 1; } .scope:nth-child(3) { --s: 2; } .scope:nth-child(4) { --s: 3; } .scope:nth-child(5) { --s: 4; }
.scope:nth-child(6) { --s: 5; } .scope:nth-child(7) { --s: 6; } .scope:nth-child(8) { --s: 7; } .scope:nth-child(9) { --s: 8; }
.cf-badge i::after { animation: cf-pulse 2s var(--ease-out) infinite; }
@keyframes cf-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.8); } }

/* Trust flow: each line draws, then the next stage lights; afterwards a
   light packet runs down the chain every few seconds. */
.js .flow.rv:not(.in) .fl-ln line:not(.fl-pk) { stroke-dashoffset: 100; }
.js .flow.rv .fl-ln line:not(.fl-pk) { transition: stroke-dashoffset .5s var(--ease-io) calc(var(--i) * .4s + .5s); }
.js .flow.rv:not(.in) .fl-dot::after { opacity: 0; transform: scale(.6); }
.js .flow.rv:not(.in) .fl-dot { color: var(--text3); }
.js .flow.rv .fl-dot::after { transition: opacity .45s var(--ease-out), transform .6s var(--ease-spring); transition-delay: calc(var(--i) * .4s + .15s); }
.js .flow.rv .fl-dot { transition: color .4s var(--ease) calc(var(--i) * .4s + .15s); }
.js .flow.rv.in .fl-pk { animation: fl-pk 6s linear infinite; animation-delay: calc(var(--i) * .42s + 3.4s); }
@keyframes fl-pk { 0% { stroke-dashoffset: 8; opacity: 1; } 7% { stroke-dashoffset: -100; opacity: 1; } 7.5%, 100% { stroke-dashoffset: -100; opacity: 0; } }


/* ── Legal / doc pages stay calm: just the TOC settles in. ── */
.toc { animation: fade-up .7s var(--ease-out) .12s both; }

/* ── Reduced motion: nothing moves. Every animation and transition is off,
   so each element shows its resting (final) frame; reveals are instant. ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .section-head.rv > * { opacity: 1; transform: none; filter: none; }
  .js .step.rv .roll-strip.r1 { transform: translateY(-1em); }
  .js .step.rv .roll-strip.r2 { transform: translateY(-2em); }
  .js .step.rv .roll-strip.r3 { transform: translateY(-3em); }
  .js .section-head.rv .eyebrow::before, .js-rail .rail-fill { transform: none; }
  .phone-par, .float-chip, .aurora, .btn-magnet { transform: none; translate: none; }
  .cx-par, .o2 { translate: none; }
  .js .demo.demo-on .dm, .js .demo.demo-on .msg .tw { opacity: 1; transform: none; }
  .js .demo.demo-on .demo-win { height: auto; -webkit-mask-image: none; mask-image: none; }
  .js .demo.demo-on .demo-track { transform: none !important; opacity: 1; }
  .js .code-tabs pre .ln { clip-path: none; }
}
