/* Postcurve website. The tokens and components are the extension's own
   (extension/src/ui/theme.css, components.css, dashboard.css), so the site
   looks like the product it describes. No scripts, no cookies, and nothing
   loaded from anyone else: fonts are served from this site. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
}

/* ─── Tokens (as in the extension) ─────────────────────────────────────── */

:root {
  color-scheme: light;
  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #f3f3f6;
  --surface-3: #ebebf0;
  --border: #e6e6eb;
  --border-strong: #d4d4dc;
  --text: #111116;
  --text-muted: #5d5d6b;
  --text-faint: #6d6d7a;
  --accent: #6a4cf5;
  --accent-hover: #5a3be6;
  --accent-text: #5b3df0;
  --accent-soft: #efebff;
  --accent-soft-2: #e2dbff;
  --on-accent: #ffffff;
  --flame: #f59e0b;
  --flame-text: #a65700;
  --flame-soft: #fff4dc;
  --up: #087f56;
  --up-soft: #e3f6ee;
  --down: #c4303a;
  --down-soft: #fde8e8;
  --radius: 14px;
  --radius-md: 10px;
  --radius-small: 8px;
  --font: 'Geist', ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --shadow-sm: 0 1px 2px rgb(17 17 22 / 5%);
  --shadow: 0 1px 2px rgb(17 17 22 / 4%), 0 4px 16px -6px rgb(17 17 22 / 8%);
  --shadow-lg: 0 12px 40px -12px rgb(17 17 22 / 25%);
  --shadow-xl: 0 40px 100px -30px rgb(40 24 120 / 35%);
  /* The site's own: header glass, page grid and glow. */
  --header-bg: rgb(247 247 249 / 78%);
  --grid-line: rgb(17 17 22 / 5%);
  --glow: color-mix(in oklch, var(--accent) 18%, transparent);
  --wrap: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0c0c10;
    --surface: #141418;
    --surface-2: #1b1b21;
    --surface-3: #24242c;
    --border: #24242c;
    --border-strong: #34343e;
    --text: #f2f2f5;
    --text-muted: #a3a3b2;
    --text-faint: #838390;
    --accent: #8b7bff;
    --accent-hover: #a094ff;
    --accent-text: #9d8cff;
    --accent-soft: #1f1b3a;
    --accent-soft-2: #2a2450;
    --on-accent: #0c0c10;
    --flame: #ffb547;
    --flame-text: #ffb547;
    --flame-soft: #2c210f;
    --up: #3ecf8e;
    --up-soft: #0f2a1f;
    --down: #ff6b6b;
    --down-soft: #321617;
    --shadow-sm: 0 1px 0 rgb(255 255 255 / 3%) inset;
    --shadow: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 8px 24px -12px rgb(0 0 0 / 60%);
    --shadow-lg: 0 24px 60px -16px rgb(0 0 0 / 80%);
    --shadow-xl: 0 50px 120px -30px rgb(0 0 0 / 85%);
    --header-bg: rgb(12 12 16 / 72%);
    --grid-line: rgb(255 255 255 / 4%);
    --glow: color-mix(in oklch, var(--accent) 24%, transparent);
  }
}

/* ─── Base ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 650;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Links inside running text are underlined, not told apart by color alone. */
p a:not(.button) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent-soft-2);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(var(--wrap), 100% - 64px);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ─── Shared components (copies of the extension's) ───────────────────── */

.mark {
  flex: none;
  filter: drop-shadow(0 2px 6px rgb(106 76 245 / 35%));
}

/* The wordmark ends in the logo's amber breakout dot, raised to the x-height. */
.wordmark-dot {
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--flame);
  vertical-align: 0.36em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.button:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.button:active {
  transform: translateY(1px);
}

.button .icon {
  width: 16px;
  height: 16px;
  transition: translate 160ms ease;
}

.button:hover .icon {
  translate: 2px 0;
}

.button-primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgb(106 76 245 / 70%);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-lg {
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .button-primary {
    background: #6a4cf5;
  }

  .button-primary:hover {
    background: #7c5cff;
  }
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 13px 0 11px;
  border: 1px solid color-mix(in oklch, var(--flame) 35%, transparent);
  border-radius: 999px;
  background: var(--flame-soft);
  color: var(--flame-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--flame);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--flame);
  opacity: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 20px;
}

.card-sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.caption {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* "vs typical" on a diverging scale, as MultipleChip draws it. */
.chip {
  display: inline-block;
  min-width: 44px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.chip-up-2 {
  background: var(--accent);
  color: var(--on-accent);
}

.chip-up-1 {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.chip-mid {
  background: var(--surface-3);
  color: var(--text-muted);
}

.chip-down-1 {
  background: var(--down-soft);
  color: var(--down);
}

.chip-down-2 {
  background: var(--down);
  color: var(--on-accent);
}

/* Reliability, as in the insight feed. */
.badge {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-exploratory {
  border-color: var(--border-strong);
  border-style: dashed;
  color: var(--text-muted);
}

.badge-moderate {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.badge-strong {
  background: var(--accent);
  color: var(--on-accent);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  list-style: none;
}

.segmented-option {
  display: grid;
  place-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--text-muted);
  font: 500 12.5px var(--font-mono);
}

.segmented-option.is-on {
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 8%),
    0 0 0 1px var(--border);
  color: var(--text);
  font-weight: 600;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-tile .icon {
  width: 22px;
  height: 22px;
}

.icon-flame {
  background: var(--flame-soft);
  color: var(--flame);
}

/* The Overview's highlight card: a gradient border from iris to amber. */
.highlight {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    radial-gradient(70% 140% at 100% 0%, color-mix(in oklch, var(--flame) 16%, transparent), transparent 70%) padding-box,
    radial-gradient(60% 120% at 0% 100%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 70%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, color-mix(in oklch, var(--flame) 80%, transparent), color-mix(in oklch, var(--accent) 70%, transparent)) border-box;
  box-shadow: var(--shadow);
}

.gradient-text {
  background: linear-gradient(120deg, var(--flame), var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.key {
  display: inline-block;
  width: 16px;
  height: 0;
  margin-right: 7px;
  vertical-align: middle;
  border-top: 2.5px solid var(--accent);
}

.key-typical {
  border-top: 2px dashed var(--text-faint);
}

/* ─── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  padding: 7px 12px;
  border-radius: var(--radius-small);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-nav a:not(.keep) {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-pill {
    display: none;
  }
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}

/* The dashboard's dotted chart grid, fading out from the top. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: 760px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 120px;
  right: -10%;
  z-index: -1;
  width: min(900px, 90vw);
  height: 700px;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.6vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.lede {
  max-width: 580px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust .icon {
  width: 16px;
  height: 16px;
  color: var(--up);
  stroke-width: 2.6;
}

.hero-stage {
  position: relative;
  margin: 0;
}

.window {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgb(139 123 255 / 6%);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-stage figcaption {
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 13px;
}

/* A copy of the post page's "Why it stands out" stat strip. */
.float-card {
  position: absolute;
  z-index: 2;
  padding: 16px 18px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.float-title {
  font-size: 14px;
  font-weight: 600;
}

.stat-cells {
  display: grid;
  grid-template-columns: repeat(3, auto);
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.stat-cells > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 16px;
}

.stat-cells > div + div {
  border-left: 1px solid var(--border);
}

.stat-cells span:first-child {
  color: var(--text-muted);
  font-size: 12px;
}

.stat-cells b {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-cells small {
  color: var(--text-faint);
  font-size: 11.5px;
}

.standout-mini {
  bottom: 56px;
  left: -40px;
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }

  /* The dashboard runs off the right edge, as if the app were open beside the copy. */
  .hero-stage {
    width: 760px;
  }
}

@media (min-width: 1300px) {
  .hero-stage {
    width: 860px;
  }
}

@media (max-width: 1099px) {
  .standout-mini {
    left: 50%;
    bottom: -28px;
    translate: -50% 0;
  }

  .hero-stage figcaption {
    margin-top: 48px;
  }
}

@media (max-width: 640px) {
  .standout-mini {
    position: static;
    margin-top: 14px;
    translate: none;
  }

  .stat-cells {
    grid-template-columns: 1fr;
  }

  .stat-cells > div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .hero-stage figcaption {
    margin-top: 12px;
  }
}

/* ─── Sections ─────────────────────────────────────────────────────────── */

.section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section-tight {
  padding-top: clamp(32px, 4vw, 56px);
}

.section-last {
  padding-top: clamp(32px, 4vw, 56px);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.eyebrow {
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4.2vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.page-title {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* ─── How it works ─────────────────────────────────────────────────────── */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 1000px) {
  .how-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
  }
}

.how-side {
  display: grid;
  gap: 20px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 13px;
  list-style: none;
}

/* The age chart: y labels in a gutter, the plot, then checkpoint ticks. */
.age-chart {
  position: relative;
  padding: 8px 0 0 44px;
}

.age-plot {
  position: relative;
  height: clamp(220px, 30vw, 300px);
  margin-right: 14px;
}

.age-layer,
.age-draw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.age-grid {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.age-typical {
  fill: none;
  stroke: var(--text-faint);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.age-typical-dots {
  stroke: var(--text-faint);
  stroke-width: 5;
  stroke-linecap: round;
}

.age-fill-top {
  stop-color: var(--accent);
  stop-opacity: 0.28;
}

.age-fill-bottom {
  stop-color: var(--accent);
  stop-opacity: 0;
}

.age-area {
  fill: url(#age-fill);
}

.age-post {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.age-post-dots-ring {
  stroke: var(--surface);
  stroke-width: 11;
  stroke-linecap: round;
}

.age-post-dots {
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
}

.age-gap {
  stroke: var(--text-faint);
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
}

.age-y {
  position: absolute;
  top: 8px;
  left: 0;
  width: 36px;
  height: clamp(220px, 30vw, 300px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.age-y li,
.age-x li {
  position: absolute;
  color: var(--text-muted);
  font: 500 11px var(--font-mono);
  white-space: nowrap;
}

.age-y li {
  right: 0;
  translate: 0 -50%;
}

.age-y li:nth-child(1) { top: 25%; }
.age-y li:nth-child(2) { top: 50%; }
.age-y li:nth-child(3) { top: 75%; }
.age-y li:nth-child(4) { top: 100%; }

.age-x {
  position: relative;
  height: 22px;
  margin: 10px 14px 0 0;
  padding: 0;
  list-style: none;
}

.age-x li {
  top: 0;
  translate: -50% 0;
}

/* log10 age from 5m to 7d, as in build.mjs. */
.age-x li:nth-child(1) { left: 0%; translate: -30% 0; }
.age-x li:nth-child(2) { left: 14.44%; }
.age-x li:nth-child(3) { left: 23.55%; }
.age-x li:nth-child(4) { left: 32.66%; }
.age-x li:nth-child(5) { left: 41.77%; }
.age-x li:nth-child(6) { left: 47.1%; }
.age-x li:nth-child(7) { left: 56.21%; }
.age-x li:nth-child(8) { left: 65.32%; }
.age-x li:nth-child(9) { left: 74.43%; }
.age-x li:nth-child(10) { left: 83.54%; }
.age-x li:nth-child(11) { left: 100%; translate: -70% 0; }

@media (max-width: 560px) {
  .age-x li:nth-child(2),
  .age-x li:nth-child(5),
  .age-x li:nth-child(8),
  .age-x li:nth-child(10) {
    display: none;
  }
}

/* The latest observation (3h, 1,400): the post is still live. */
.age-live {
  position: absolute;
  top: 12.5%;
  left: 47.1%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 3px var(--surface);
  translate: -50% -50%;
}

.age-live::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--flame);
  opacity: 0;
}

/* The chart's hover tooltip, pinned beside the latest observation. */
.age-tip {
  position: absolute;
  top: 12.5%;
  left: 47.1%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 168px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  translate: 22px -18%;
}

.age-tip p {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  white-space: nowrap;
}

.age-tip b {
  margin-left: auto;
  padding-left: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.age-tip .key {
  width: 10px;
  margin-right: 6px;
}

.age-tip-title {
  margin-bottom: 2px;
  color: var(--text) !important;
  font-weight: 600;
}

.age-tip-chip {
  gap: 6px;
  margin-top: 4px;
}

@media (max-width: 560px) {
  .age-tip {
    min-width: 0;
    translate: 16px -18%;
  }

  .age-tip p:not(.age-tip-title):not(.age-tip-chip) {
    display: none;
  }
}

.compare-rows {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
}

.compare-row {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in oklch, var(--accent) 6%, var(--surface));
}

.compare-row.is-unfair {
  background: var(--surface-2);
}

.compare-row dt {
  color: var(--text-muted);
  font-size: 13.5px;
}

.compare-row dd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.compare-row.is-unfair dd {
  color: var(--text-muted);
}

.checkpoints {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  margin-top: 4px;
}

.checkpoints .segmented-option {
  padding: 0;
  font-size: 12px;
}

/* ─── Features ─────────────────────────────────────────────────────────── */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(72px, 10vw, 128px);
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }

  .feature.flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .feature.flip .feature-copy {
    order: 2;
  }
}

.feature-copy h3 {
  margin-top: 20px;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.feature-copy > p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.ticks .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--up);
  stroke-width: 2.6;
}

/* A capture on a soft iris backdrop, like a card lifted off the dashboard. */
.feature-shot {
  position: relative;
  padding: clamp(10px, 2vw, 22px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in oklch, var(--accent) 20%, transparent), transparent 70%),
    radial-gradient(70% 70% at 0% 100%, color-mix(in oklch, var(--flame) 12%, transparent), transparent 70%),
    var(--surface-2);
}

.feature-shot img,
.share-shot img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* ─── More ─────────────────────────────────────────────────────────────── */

.more-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-tile {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .more-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .share-tile {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.share-tile {
  justify-content: space-between;
  gap: 22px;
  background:
    radial-gradient(80% 70% at 100% 0%, color-mix(in oklch, var(--flame) 12%, transparent), transparent 70%),
    var(--surface);
}

.share-tile h3,
.mini h3 {
  margin-top: 14px;
}

.share-tile p,
.mini p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.mini {
  gap: 0;
}

/* ─── Evidence rules ───────────────────────────────────────────────────── */

.rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rules {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rule {
  gap: 0;
}

.rule p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.rule-demo {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 8px;
  min-height: 112px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.rule-quote p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.rule-quote mark {
  padding: 0 3px;
  border-radius: 4px;
  background: var(--accent-soft-2);
  color: var(--text);
}

.rule-gap {
  position: relative;
  flex-direction: column;
  gap: 4px;
}

.rule-gap svg {
  width: 100%;
  max-width: 220px;
  height: 64px;
  overflow: visible;
}

.gap-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.gap-missing {
  fill: none;
  stroke: var(--text-faint);
  stroke-width: 1.5;
  stroke-dasharray: 2 5;
}

.gap-dots {
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
}

.rule-gap span {
  color: var(--text-muted);
  font: 500 11px var(--font-mono);
}

/* ─── Privacy ──────────────────────────────────────────────────────────── */

.privacy-panel {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(70% 90% at 0% 0%, color-mix(in oklch, var(--accent) 12%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}

.flow-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.flow-node strong {
  display: block;
  font-size: 15px;
}

.flow-node span:not(.icon-tile) {
  display: block;
  color: var(--text-muted);
  font-size: 13.5px;
}

.flow-node.is-brand {
  border-color: color-mix(in oklch, var(--accent) 50%, var(--border));
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* An arrow to the next node: right on wide screens, down on narrow ones. */
.flow-node:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 36px;
  background: linear-gradient(var(--accent), color-mix(in oklch, var(--accent) 20%, transparent));
  translate: -50% 0;
}

@media (min-width: 860px) {
  .flow-node:not(:last-child)::after {
    top: 50%;
    left: 100%;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), color-mix(in oklch, var(--accent) 20%, transparent));
    translate: 0 -50%;
  }
}

.flow-none {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 15px;
}

.flow-none strong {
  color: var(--text);
}

.flow-none .icon {
  width: 22px;
  height: 22px;
  color: var(--down);
}

.checks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px 32px;
  margin: 40px 0 36px;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .checks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.checks li {
  display: flex;
  gap: 12px;
}

.checks .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}

.checks strong {
  display: block;
  font-size: 15px;
}

.checks span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ─── Steps ────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  gap: 0;
}

.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 600 15px var(--font-mono);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.step h3 {
  margin-top: 18px;
}

.step p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ─── FAQ ──────────────────────────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 64px;
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }
}

.faq-list {
  gap: 0;
  padding: 6px 24px;
}

.faq-list details + details {
  border-top: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  margin-right: 4px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 200ms ease, translate 200ms ease;
}

.faq-list details[open] summary::after {
  rotate: -135deg;
  translate: 0 2px;
}

.faq-list summary:hover {
  color: var(--accent-text);
}

.faq-list details p {
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ─── Closing ──────────────────────────────────────────────────────────── */

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  text-align: center;
}

.final h2 {
  max-width: 720px;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.final p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 18px;
}

.final .mark {
  filter: drop-shadow(0 10px 28px rgb(106 76 245 / 50%));
}

/* ─── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 12px;
  line-height: 1.55;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 40px;
  align-content: start;
}

.footer-nav a {
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}

/* ─── Privacy policy page ──────────────────────────────────────────────── */

.doc {
  max-width: 760px;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
}

.doc h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.doc h2 {
  margin: 44px 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.doc p,
.doc li {
  color: var(--text-muted);
}

.doc p + p {
  margin-top: 14px;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc ul {
  margin: 12px 0;
  padding-left: 20px;
}

.doc li + li {
  margin-top: 6px;
}

.doc .meta {
  margin: 8px 0 20px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 15px;
}

/* ─── Motion ───────────────────────────────────────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: perspective(1600px) rotateX(10deg) translateY(36px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.92;
  }
}

@keyframes ping {
  0% {
    opacity: 0.6;
    scale: 1;
  }

  80%,
  100% {
    opacity: 0;
    scale: 2.8;
  }
}

@keyframes draw {
  from {
    clip-path: inset(-10% 100% -10% -2%);
  }

  to {
    clip-path: inset(-10% -2% -10% -2%);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 32px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .hero-copy > :nth-child(5) { animation-delay: 280ms; }

  .window {
    animation: stage-in 1000ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both;
    transform-origin: 50% 0;
  }

  .float-card {
    animation: pop 600ms cubic-bezier(0.2, 0.9, 0.3, 1.2) 800ms both;
  }

  .live-dot::after,
  .age-live::after {
    animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  }

  /* Scroll-driven where supported; elsewhere everything is simply shown. */
  @supports (animation-timeline: view()) {
    .age-draw {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 45%;
    }

    .age-tip,
    .age-live {
      animation: pop linear both;
      animation-timeline: view();
      animation-range: cover 40% cover 50%;
    }

    .feature-shot,
    .rule,
    .mini,
    .share-tile,
    .step {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
