/* ============================================================================
   Neptune: site styles
   ----------------------------------------------------------------------------
   Palette is lifted from the app's default "Deep Instrument" theme
   (Neptune/Theme/AppTheme.swift) so the site reads as the same product.
   Page chrome is set in Geist (self-hosted, OFL). The phone mockups keep
   the system font on purpose: the app itself renders in SF Pro.

   Motion rules: every animation is either load choreography, a scroll
   reveal, or feedback on interaction, and all of it collapses to static
   under prefers-reduced-motion (bottom of the chrome section).
   ========================================================================= */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #050b0e;
  --bg-deep: #0b262c;
  --surface: #08181d;
  --card: #10232a;
  --card-raised: #163038;
  --border: #1d3a42;
  --border-bright: #2a545f;

  --text: #e9f5f6;
  --text-dim: #9db9be;
  --text-faint: #6a8c94;

  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-line: rgba(34, 211, 238, 0.28);
  --on-accent: #062026;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f85149;

  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0938rem);
  --text-lg: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  --text-hero: clamp(2.6rem, 1.2rem + 5vw, 5.5rem);

  --space-section: clamp(5.5rem, 3.5rem + 7vw, 10rem);
  --gutter: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur: 240ms;

  --font-ui: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-data: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-app: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-app-data: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  /* z-index scale */
  --z-header: 50;
  --z-grain: 60;
  --z-skip: 70;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(34, 211, 238, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #071820 45%, #08202a 75%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

/* Depth contours, the app's map motif. Fixed, very low contrast. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg,
    rgba(143, 174, 180, 0.04) 0 1px, transparent 1px 112px);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

/* Film grain: fixed, pointer-events-none, so it never repaints on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
strong { color: var(--text); font-weight: 600; }
.data { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: var(--z-skip);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding-top: 12px;
  animation: drop 900ms var(--ease) both;
}
.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 60px;
  max-width: 1120px;
  padding-inline: 0.75rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] .header-bar {
  background: rgba(8, 24, 29, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-color: rgba(42, 84, 95, 0.6);
  box-shadow: inset 0 1px 0 rgba(233, 245, 246, 0.06), 0 18px 40px -24px rgba(0, 10, 14, 0.9);
}
/* Reading progress, driven by the scroll timeline where supported. */
@supports (animation-timeline: scroll()) {
  .header-bar::after {
    content: "";
    position: absolute;
    left: 28px; right: 28px; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform-origin: left;
    animation: progress linear both;
    animation-timeline: scroll(root);
    opacity: 0;
    transition: opacity var(--dur);
  }
  .site-header[data-scrolled="true"] .header-bar::after { opacity: 0.8; }
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.wordmark .mark { width: 30px; height: 30px; transition: transform 500ms var(--ease-spring); }
.wordmark:hover .mark { transform: rotate(-8deg) scale(1.08); }

.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(143, 174, 180, 0.08); }
.nav a[aria-current="true"] { color: var(--text); background: var(--accent-soft); }
.header-cta { flex-shrink: 0; }
@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font: 600 var(--text-base) / 1 var(--font-ui);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
/* A highlight sweeps across on hover. */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 700ms var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(34, 211, 238, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover::before { transform: translateX(110%); }
.btn-primary:active { transform: scale(0.97); }
.btn-sm { min-height: 42px; padding: 0.55rem 1.15rem; font-size: 0.9375rem; }
.btn-lg { min-height: 58px; padding: 1rem 2rem; font-size: var(--text-lg); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
}
.text-link svg { color: var(--accent); transition: transform var(--dur) var(--ease-spring); }
.text-link:hover svg { transform: translateY(3px); }
.text-link:hover { color: var(--accent); }

/* ------------------------------------------------------------ typography -- */

.section { padding-block: var(--space-section) calc(var(--space-section) * 0.85); }
.section-head { max-width: 860px; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.section-title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 620;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-lede {
  margin: 1.25rem 0 0;
  max-width: 58ch;
  color: var(--text-dim);
  font-size: var(--text-lg);
  line-height: 1.55;
  text-wrap: pretty;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font: 500 0.8125rem / 1 var(--font-data);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fine { color: var(--text-faint); font-size: var(--text-sm); line-height: 1.6; max-width: 56ch; }
.fine.center { margin-inline: auto; text-align: center; }

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  overflow-x: clip;  /* sonar rings and glow are wider than a phone screen */
  min-height: min(100dvh, 980px);
  display: flex;
  align-items: center;
  padding-block: 3rem 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  color: var(--text-dim);
  font-size: var(--text-sm);
  font-weight: 500;
}
.hero-kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}
.hero h1 {
  margin: 0;
  font-size: var(--text-hero);
  font-weight: 640;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero h1 .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--accent);
}
/* Sonar line draws under "memory" once the headline has landed. */
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0.02em; right: 0.02em; bottom: 0.02em;
  height: 0.07em;
  border-radius: 1em;
  background: linear-gradient(90deg, var(--accent), rgba(34, 211, 238, 0.2));
  transform-origin: left;
  animation: sweep 1100ms var(--ease) 1050ms both;
}
@keyframes sweep { from { transform: scaleX(0); } }
.hero-lede {
  margin: 1.75rem 0 0;
  max-width: 34ch;
  color: var(--text-dim);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4375rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.5rem; }

/* Load choreography: each .load element rises in on its --i beat. */
.load { animation: rise 1000ms var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
.hero h1 .load { animation-name: rise-line; animation-duration: 1100ms; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes rise-line { from { transform: translateY(105%); } }
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } }

.hero-visual {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  animation: phone-in 1400ms var(--ease) 350ms both;
}
@keyframes phone-in {
  from { opacity: 0; transform: translateY(60px) rotateX(14deg) scale(0.94); }
}
.hero-visual figcaption {
  margin-top: 1.5rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  text-align: center;
}
.tilt {
  position: relative;
  width: min(320px, 78vw);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 600ms var(--ease);
  transform-style: preserve-3d;
}

/* Sonar rings: three pings radiating from behind the device. */
.sonar {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0; height: 0;
  pointer-events: none;
}
.sonar i {
  position: absolute;
  left: -340px; top: -340px;
  width: 680px; height: 680px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: radial-gradient(circle, transparent 55%, rgba(34, 211, 238, 0.05) 70%, transparent 71%);
  animation: ping 6.6s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
  opacity: 0;
}
.sonar i:nth-child(2) { animation-delay: 2.2s; }
.sonar i:nth-child(3) { animation-delay: 4.4s; }
@keyframes ping {
  0% { transform: scale(0.25); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: scale(1.15); opacity: 0; }
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 520px; height: 520px;
  translate: -50% -55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 65%);
  filter: blur(20px);
  z-index: -1;
}

/* Floating callouts pop in after the phone, then drift. */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  background: rgba(16, 35, 42, 0.78);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(233, 245, 246, 0.08), 0 20px 40px -20px rgba(0, 8, 12, 0.9);
  font-size: 0.8125rem;
  color: var(--text-dim);
  white-space: nowrap;
  transform: translateZ(40px);
}
.float-chip b { color: var(--accent); font-size: 1rem; }
.chip-a { left: -44%; top: 12%; animation: pop 800ms var(--ease-spring) 1500ms both, drift 7s ease-in-out 2400ms infinite; }
.chip-b { right: -30%; bottom: 24%; animation: pop 800ms var(--ease-spring) 1700ms both, drift 8s ease-in-out 2600ms infinite reverse; }
@keyframes pop { from { opacity: 0; scale: 0.8; } }
@keyframes drift { 50% { translate: 0 -10px; } }

@media (max-width: 960px) {
  .hero { min-height: 0; padding-block: 2.5rem 4rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
  .chip-a { left: -12%; }
  .chip-b { right: -10%; }
}
@media (max-width: 560px) {
  .float-chip { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
  .chip-a { left: -6%; top: 14%; }
  .chip-b { right: -6%; }
}

/* ---------------------------------------------------------------- phones -- */

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 660;
  background: #01070a;
  border-radius: 46px;
  padding: 11px;
  border: 1px solid #2b4a53;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 50px 90px -30px rgba(0, 6, 10, 0.95),
    0 30px 80px -40px rgba(34, 211, 238, 0.25),
    inset 0 1px 1px rgba(233, 245, 246, 0.14);
}
/* The app renders in SF Pro, so the recreated screens do too. */
.phone-screen { font-family: var(--font-app); }
.phone-screen .data { font-family: var(--font-app-data); }

/* In-screen data animates each time its phone becomes the active one. */
.score-arc { stroke-dashoffset: 207.3; transition: stroke-dashoffset 1400ms var(--ease) 250ms; }
.is-active .score-arc { stroke-dashoffset: 45.6; }
.fbar i, .lift-bar i { transform-origin: left; transform: scaleX(0); transition: transform 1000ms var(--ease); }
.is-active .fbar i, .is-active .lift-bar i { transform: scaleX(1); }
.is-active .fbar:nth-child(2) i, .is-active .lift-row:nth-child(2) .lift-bar i { transition-delay: 120ms; }
.is-active .fbar:nth-child(3) i, .is-active .lift-row:nth-child(3) .lift-bar i { transition-delay: 240ms; }
.is-active .fbar:nth-child(4) i, .is-active .lift-row:nth-child(4) .lift-bar i { transition-delay: 360ms; }
.yc-marker { transition: left 1400ms var(--ease) 300ms, opacity 400ms; }
.yc-phone:not(.is-active) .yc-marker { left: 4% !important; opacity: 0; }

/* --------------------------------------------------------------- numbers -- */

.numbers { padding-block: 1rem clamp(3rem, 2rem + 3vw, 5rem); }
.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--border);
}
.num { padding: 1.75rem 1.5rem 0 0; }
.num + .num { padding-left: 1.5rem; border-left: 1px solid var(--border); }
.num dd {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.num dt { margin-top: 0.6rem; color: var(--text-dim); font-size: var(--text-sm); }
@media (max-width: 760px) {
  .num-grid { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { padding-left: 0; border-left: 0; }
  .num:nth-child(n + 3) { border-top: 1px solid var(--border); margin-top: 1.75rem; }
}

.marquee {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li {
  padding-inline: 1.5rem;
  color: var(--text-faint);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee li::after { content: "~"; margin-left: 3rem; color: var(--accent); opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------- walkthrough (story) -- */

.story { position: relative; }
.story-copy { max-width: 520px; }
.step-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font: 500 0.9375rem / 1 var(--font-data);
}
.step-label::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.step-title {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.step-title em { font-style: normal; color: var(--accent); }
.step-body { margin: 1.25rem 0 0; color: var(--text-dim); font-size: var(--text-lg); line-height: 1.55; }
.points { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.points em { font-style: normal; color: var(--text); }

.phone-wrap { width: min(300px, 76vw); margin-inline: auto; }

@media (min-width: 961px) {
  .story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    column-gap: clamp(2rem, 1rem + 4vw, 6rem);
  }
  /* A rail down the copy column fills as you read. */
  .story::before, .story::after {
    content: "";
    position: absolute;
    left: calc(var(--gutter) + 4px);
    top: 0; bottom: 0;
    width: 1px;
    background: var(--border);
  }
  .story::after {
    background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, 0.3));
    transform-origin: top;
    transform: scaleY(var(--progress, 0));
    transition: transform 600ms var(--ease);
  }
  .story-step { display: contents; }
  .story-copy {
    grid-column: 1;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2.25rem;
    opacity: 0.28;
    transition: opacity 600ms var(--ease);
  }
  .story-copy.is-active { opacity: 1; }
  .story-copy .step-label { margin-left: -2.25rem; gap: 1.6rem; }
  .story-copy .step-label::before { background: var(--bg); position: relative; z-index: 1; }
  .story-step:nth-child(1) .story-copy { grid-row: 1; }
  .story-step:nth-child(2) .story-copy { grid-row: 2; }
  .story-step:nth-child(3) .story-copy { grid-row: 3; }
  .story-step:nth-child(4) .story-copy { grid-row: 4; }
  .story-phone {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
    position: sticky;
    top: max(5.5rem, calc(50vh - 290px));
    width: min(290px, calc((100vh - 8rem) * 0.485));
    margin-top: calc(46vh - 290px);
    opacity: 0;
    transform: translateY(40px) scale(0.95) rotate(1.5deg);
    transition: opacity 650ms var(--ease), transform 900ms var(--ease);
    pointer-events: none;
  }
  .story-phone.is-active { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  .story-step + .story-step { margin-top: clamp(4rem, 3rem + 4vw, 6rem); }
  .story-phone { margin-top: 2.5rem; }
}

/* ------------------------------------------------------------ year class -- */

.chain {
  position: relative;
  list-style: none;
  margin: 0 0 clamp(4rem, 3rem + 4vw, 6rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
/* The connector draws left to right as the chain enters. */
.chain::before {
  content: "";
  position: absolute;
  left: 6px; right: 0; top: 6px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border-bright) 80%, transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1600ms var(--ease) 200ms;
}
.chain.in::before { transform: scaleX(1); }
.chain li {
  position: relative;
  padding-top: 2.25rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i) * 260ms + 300ms);
}
.chain.in li { opacity: 1; transform: none; }
.chain-dot {
  position: absolute;
  top: 0; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.chain b { display: block; font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.chain p { margin: 0.6rem 0 0; color: var(--text-dim); font-size: 0.9688rem; line-height: 1.55; }
.chain em { font-style: normal; color: var(--text); }
@media (max-width: 860px) {
  .chain { grid-template-columns: 1fr; gap: 1.75rem; padding-left: 2rem; }
  .chain::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto;
    background: linear-gradient(180deg, var(--accent), var(--border-bright)); transform-origin: top; transform: scaleY(0); }
  .chain.in::before { transform: scaleY(1); }
  .chain li { padding-top: 0; }
  .chain-dot { left: -2rem; top: 0.3rem; }
}

.prime-inline {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--success);
  font: 600 0.75rem / 1.4 var(--font-data);
  letter-spacing: 0.06em;
}

.yc-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.yc-copy { display: grid; gap: 1.25rem; }
.note, .why {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 48, 56, 0.6), rgba(16, 35, 42, 0.4));
  border: 1px solid var(--border);
}
.note {
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(52, 211, 153, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(22, 48, 56, 0.7), rgba(16, 35, 42, 0.5));
  border-color: rgba(52, 211, 153, 0.25);
}
.note h3, .why h3 { margin: 0; font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.note p, .why p { margin: 0.75rem 0 0; color: var(--text-dim); line-height: 1.6; }
.why { background: transparent; border-style: dashed; padding: 1.5rem 1.75rem; }
.why h3 { font-size: var(--text-lg); }
@media (max-width: 860px) { .yc-split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- bento -- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile {
  position: relative;
  grid-column: span 2;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card-raised), var(--card));
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  transition: transform 500ms var(--ease), border-color var(--dur) var(--ease);
}
/* Spotlight: a soft light follows the cursor across the tile and its edge. */
.tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.tile:hover::before { opacity: 1; }
.tile:hover { transform: translateY(-4px); border-color: var(--border-bright); }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 500ms var(--ease-spring);
}
.tile:hover .tile-icon { transform: scale(1.08) rotate(-4deg); }
.tile-icon svg { width: 22px; height: 22px; }
.tile h3 { margin: 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; text-wrap: balance; }
.tile p { margin: 0.6rem 0 0; color: var(--text-dim); font-size: 0.9688rem; line-height: 1.6; max-width: 62ch; }
.tile-feature {
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
    linear-gradient(180deg, var(--card-raised), var(--card));
}
.tile-feature h3 { font-size: var(--text-xl); max-width: 26ch; }
.tile-feature p { font-size: var(--text-base); }
.lenses {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.lenses li {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(5, 11, 14, 0.45);
  border: 1px solid var(--border);
}
.lenses b { display: block; color: var(--accent); font-weight: 600; }
.lenses span { display: block; margin-top: 0.25rem; color: var(--text-dim); font-size: var(--text-sm); line-height: 1.45; }
.tile-tint { background: linear-gradient(160deg, #123a42, var(--card) 70%); }
/* Explore tile: a faint field of map pins behind the copy. */
.tile-map {
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  background:
    radial-gradient(circle at 78% 40%, rgba(34, 211, 238, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 62%, rgba(34, 211, 238, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(34, 211, 238, 0.4) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 28%, rgba(34, 211, 238, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 32%, rgba(34, 211, 238, 0.3) 0 2px, transparent 3px),
    repeating-radial-gradient(circle at 80% 50%, rgba(143, 174, 180, 0.07) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, var(--card-raised), var(--card));
}
.tile-map p { max-width: 56ch; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.full { grid-column: span 2; }
  .lenses { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.full { grid-column: span 1; }
}

/* ------------------------------------------------------------- coverage -- */

.coverage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; max-width: 380px; }
.st {
  display: grid;
  place-items: center;
  aspect-ratio: 1.9;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-faint);
  font: 500 1rem / 1 var(--font-data);
  letter-spacing: 0.04em;
  background: rgba(16, 35, 42, 0.4);
  transition: transform 600ms var(--ease-spring), background 600ms var(--ease);
}
.st.deep {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 10px 30px -14px rgba(34, 211, 238, 0.8);
}
.states.reveal .st { opacity: 0; transform: scale(0.8); transition: opacity 500ms var(--ease), transform 600ms var(--ease-spring); }
.states.reveal.in .st { opacity: 1; transform: none; }
.states .st:nth-child(3n + 2) { transition-delay: 80ms; }
.states .st:nth-child(3n) { transition-delay: 160ms; }
.states .st:nth-child(n + 4) { transition-delay: 200ms; }
.states .st:nth-child(n + 7) { transition-delay: 300ms; }
.states .st:nth-child(n + 10) { transition-delay: 400ms; }
.states .st:nth-child(n + 13) { transition-delay: 500ms; }

.legend { display: grid; gap: 0.6rem; margin: 0 0 2rem; color: var(--text-dim); font-size: var(--text-sm); }
.legend span { display: flex; align-items: center; gap: 0.7rem; }
.key { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border-bright); flex-shrink: 0; }
.key.deep { background: var(--accent); border-color: var(--accent); }
.facts { margin: 0; display: grid; gap: 0; }
.facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
}
.facts dt { font-size: 2.25rem; font-weight: 500; letter-spacing: -0.04em; color: var(--text); line-height: 1; }
.facts dt small { font-size: 1rem; color: var(--text-faint); letter-spacing: 0; }
.facts dd { margin: 0; color: var(--text-dim); line-height: 1.55; }
@media (max-width: 860px) {
  .coverage { grid-template-columns: 1fr; }
  .states { max-width: 100%; grid-template-columns: repeat(5, 1fr); }
  .states .st { transition-delay: 0ms !important; }
  .facts div { grid-template-columns: 5.5rem 1fr; gap: 1rem; }
  .facts dt { font-size: 1.75rem; }
}

/* -------------------------------------------------------------- honesty -- */

.honesty-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.honesty-head { position: sticky; top: 7rem; }
.refusals { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.refusals li {
  position: relative;
  padding: 1.5rem 0 1.5rem 3.25rem;
  border-top: 1px solid var(--border);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--text-dim);
}
.refusals li:last-child { border-bottom: 1px solid var(--border); }
/* An empty-set mark for each thing Neptune declines to do. */
.refusals li::before {
  content: "\2205";
  position: absolute;
  left: 0; top: 1.35rem;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 500 1.05rem / 1 var(--font-data);
}
@media (max-width: 860px) {
  .honesty-grid { grid-template-columns: 1fr; }
  .honesty-head { position: static; }
}

/* ------------------------------------------------------------ incognito -- */

.incognito-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.incognito .fine { margin-top: 1.25rem; }
.incog-demo {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card-raised), var(--card));
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0, 8, 12, 0.9);
}
.incog-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.5rem; }
.incog-label { color: var(--text-faint); font-size: var(--text-sm); }
.redact { position: relative; font-weight: 600; }
.redact::after {
  content: "";
  position: absolute;
  inset: -2px -6px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, #1f4650 0 6px, #18363e 6px 12px);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 900ms var(--ease) 500ms;
}
.incog-demo.in .redact::after { transform: scaleX(1); }
.incog-map {
  position: relative;
  height: 150px;
  margin-block: 0.75rem;
  border-radius: var(--radius);
  background:
    repeating-radial-gradient(circle at 40% 60%, rgba(143, 174, 180, 0.09) 0 1px, transparent 1px 22px),
    #0b1c22;
  overflow: hidden;
}
.incog-map::after {
  content: "Map hidden";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: var(--text-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(8, 24, 29, 0.4);
  opacity: 0;
  transition: opacity 700ms var(--ease) 900ms;
}
.incog-demo.in .incog-map::after { opacity: 1; }
.incog-map i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
@media (max-width: 860px) { .incognito-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- closing -- */

.cta-panel {
  position: relative;
  padding: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 80% at 50% 110%, rgba(34, 211, 238, 0.2), transparent 60%),
    linear-gradient(180deg, #0d2a32, #081b21);
  border: 1px solid var(--border-bright);
  box-shadow: inset 0 1px 0 rgba(233, 245, 246, 0.07);
}
.cta-panel .section-title { max-width: 20ch; margin-inline: auto; }
.cta-panel .section-lede { margin-inline: auto; max-width: 48ch; }
.sonar-cta { inset: 110% auto auto 50%; z-index: -1; }
.sonar-cta i { border-color: rgba(34, 211, 238, 0.25); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.75rem; margin: 2.5rem 0 2rem; }

/* --------------------------------------------------------------- footer -- */

.site-footer { padding-block: 2.5rem 3rem; color: var(--text-faint); font-size: var(--text-sm); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* -------------------------------------------------------------- reveals -- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }
/* Containers whose children choreograph themselves stay put. */
.chain.reveal, .states.reveal { opacity: 1; transform: none; }

/* No JS: show everything. site.js adds .js to <html>. */
html:not(.js) .reveal, html:not(.js) .story-copy, html:not(.js) .story-phone { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .chain li, .states .st { opacity: 1 !important; transform: none !important; }
  .sonar i { animation: none; opacity: 0.35; }
  .sonar i:nth-child(1) { transform: scale(0.45); }
  .sonar i:nth-child(2) { transform: scale(0.7); }
  .sonar i:nth-child(3) { transform: scale(0.95); }
  .marquee-track { animation: none; }
  .tilt { transform: none !important; }
}

/* ============================================================================
   In-app screen components (inside .phone-screen). Carried over unchanged
   from the previous stylesheet; they recreate the app's real screens.
   ========================================================================= */

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #050b0e 0%, #071820 55%, #0b262c 100%);
  display: flex;
  flex-direction: column;
  /* Screens are authored at a fixed logical width, then scaled to whatever
     the frame is, so the app UI keeps its real proportions instead of
     reflowing like a web page. */
  font-size: 11px;
  line-height: 1.45;
}

/* Dynamic Island. */
.phone-screen::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 20px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem 0.3rem;
  font-family: var(--font-data);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}
.status-bar .glyphs { display: flex; gap: 3px; align-items: center; }
.status-bar .bar { width: 2.5px; border-radius: 1px; background: var(--text); }

.screen-body {
  flex: 1;
  overflow: hidden;
  padding: 0.5rem 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.screen-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0;
}

/* In-app card. Mirrors Palette.card + hairline border + 16px radius. */
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
}

.app-eyebrow {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.3rem;
}

/* Bottom tab bar — 5 items max, icon + label, active item tinted. */
.tab-bar {
  flex-shrink: 0;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 0.5rem 0.35rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(8, 24, 29, 0.9);
  backdrop-filter: blur(8px);
}
.tab-bar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  font-weight: 600;
  color: var(--text-faint);
}
.tab-bar span[aria-current] { color: var(--accent); }
.tab-bar svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------ bento grid -- */

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

/* -- conditions score ---------------------------------------------------- */

.score-row { display: flex; align-items: center; gap: 0.75rem; }

.score-ring { position: relative; width: 62px; height: 62px; flex-shrink: 0; }
.score-ring svg { width: 100%; height: 100%; }
.score-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.score-bars { flex: 1; min-width: 0; display: grid; gap: 3px; }
.fbar {
  display: grid;
  grid-template-columns: 52px 1fr 22px;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
}
.fbar span { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbar i {
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  width: var(--w);
  opacity: 0.85;
}
.fbar b { color: var(--accent); text-align: right; font-size: 8.5px; font-weight: 700; }

.big-score { display: flex; align-items: center; gap: 0.6rem; }
.big-score > b { font-size: 38px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }

/* -- live trip ----------------------------------------------------------- */

.live-head { display: flex; align-items: center; justify-content: space-between; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--danger);
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
}
.live-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--danger); box-shadow: none; }
.live-head > b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }

.catch-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
}
.catch-row .fish-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.7);
}
.catch-row b { font-size: 10.5px; font-weight: 650; display: block; }
.catch-row p { margin: 0; font-size: 8.5px; color: var(--text-faint); }
.catch-row > span { font-size: 11px; font-weight: 700; }

.app-cta {
  margin-top: auto;
  margin-bottom: 0.5rem;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 0.62rem;
  cursor: default;
}

/* -- catch detail -------------------------------------------------------- */

.measure-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 9.5px;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}
.measure-row b { font-size: 14px; color: var(--text); font-weight: 700; }

.tier-chip {
  margin-left: auto;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--warning);
  background: rgba(251, 191, 36, 0.13);
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 5px;
  padding: 2px 6px;
}

.auto-chip {
  margin-left: 5px;
  font-size: 7px;
  letter-spacing: 0.09em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  padding: 1px 4px;
}

.cond-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem 0.3rem;
}
.cond-grid > div { display: flex; flex-direction: column; gap: 1px; }
.cond-grid span { font-size: 7.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.cond-grid b { font-size: 10px; font-weight: 650; }
/* Trend arrow is an indicator, not an alarm: falling pressure is a
   positive signal in this domain, so it must not borrow the danger colour. */
.cond-grid b i { color: var(--text-faint); font-style: normal; font-size: 8px; }

.map-stub {
  position: relative;
  height: 58px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 62% 45%, rgba(34, 211, 238, 0.14), transparent 55%),
    linear-gradient(140deg, #0a2028, #0f2e36);
  border: 1px solid var(--border);
  overflow: hidden;
}
/* Suggest contour/waterway lines without shipping a map tile. */
.map-stub::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(58deg, rgba(143,174,180,0.14) 0 1px, transparent 1px 15px);
}
.map-stub .pin {
  position: absolute;
  left: 58%; top: 44%;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--on-accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.22);
}

/* -- factor lift --------------------------------------------------------- */

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(143, 174, 180, 0.09);
  font-size: 8.5px;
  font-weight: 600;
  text-align: center;
}
.seg span { padding: 3px 0; border-radius: 6px; color: var(--text-dim); }
.seg span[aria-selected="true"] { background: var(--card-raised); color: var(--text); }

.lift-row { padding: 0.55rem 0.7rem; }
.lift-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.4rem; }
.lift-head b { font-size: 10px; font-weight: 650; }
.lift-val { font-size: 12px; font-weight: 700; color: var(--accent); }
.lift-band { margin: 1px 0 4px; font-size: 8.5px; color: var(--text-dim); }
.lift-bar { height: 4px; border-radius: 2px; background: rgba(143, 174, 180, 0.14); overflow: hidden; }
.lift-bar i { display: block; height: 100%; width: var(--w); border-radius: 2px; background: var(--accent); }
.lift-n { margin: 3px 0 0; font-size: 7.5px; color: var(--text-faint); }
.lift-row.muted { opacity: 0.5; }
.lift-row.muted .lift-val { color: var(--text-faint); }

/* -- hourly match curve -------------------------------------------------- */

.spark { width: 100%; height: 52px; display: block; }
.spark-axis,
.day-strip {
  display: flex;
  justify-content: space-between;
  font-size: 7.5px;
  color: var(--text-faint);
  margin-top: 3px;
}
.day-strip { gap: 3px; }
.day-strip > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  border-radius: 7px;
  background: rgba(143, 174, 180, 0.06);
}
.day-strip b { font-size: 11px; font-weight: 700; color: var(--text-dim); }
.day-strip b.hot { color: var(--accent); }

/* -- year class ---------------------------------------------------------- */

.yc-card { border-color: rgba(52, 211, 153, 0.32); }
.yc-top { display: flex; align-items: flex-start; gap: 1.1rem; }
.yc-age { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.yc-age i { font-style: normal; font-size: 9px; color: var(--text-dim); font-weight: 500; }

.prime-badge {
  margin-left: auto;
  align-self: center;
  font-family: var(--font-data);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--success);
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 999px;
  padding: 3px 8px;
}

/* Age axis 0-12: the prime band (ages 5-9) highlighted, marker at age 6. */
.yc-axis {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: rgba(143, 174, 180, 0.14);
  overflow: visible;
}
.yc-band {
  position: absolute;
  left: 41.7%;   /* age 5 of 12 */
  width: 33.3%;  /* through age 9 */
  top: 0; bottom: 0;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.5);
}
.yc-marker {
  position: absolute;
  left: 50%;     /* age 6 of 12 */
  top: 50%;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid #0b1f20;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}
.yc-ticks { display: flex; justify-content: space-between; font-size: 7.5px; color: var(--text-faint); margin-top: 4px; }
.yc-src { margin: 0.45rem 0 0; font-size: 7.5px; color: var(--text-faint); letter-spacing: 0.04em; }

.cohort-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 3.5px 0;
  border-bottom: 1px solid rgba(29, 58, 66, 0.6);
  font-size: 9.5px;
}
.cohort-row:last-child { border-bottom: 0; }
.cohort-row b { font-weight: 600; }
.cohort-row span { color: var(--text-dim); font-size: 8.5px; }

.match-callout {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 8.5px;
  line-height: 1.45;
  color: var(--text-dim);
}
.match-callout svg { width: 12px; height: 12px; color: var(--success); margin-top: 1px; }
.match-callout b { color: var(--text); font-weight: 650; }

/* Center ⊕ slot: the app renders it larger than its neighbours and with no
   text label, so it reads as an action rather than a destination. */
.tab-bar .fab-slot { justify-content: center; }
.tab-bar .fab-slot svg {
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.5));
}

