:root {
  --bg: #0F0C1A;
  --card: #1B1730;
  --card-inset: #100D22;
  --border: #383154;
  --border-subtle: #241E42;
  --gradient-widget: linear-gradient(135deg, #241C46, #5C3FA8);
  --accent: #5B4FE5;
  --accent-hover: #6B5FEF;
  --accent-light: #9D8FFF;
  --danger-bright: #FF7A6B;
  --danger-muted: #E8574A;
  --success: #6EE7B7;
  --text-primary: #FFFFFF;
  --text-secondary: #C7C0E0;
  --text-muted: #8981AC;
  --text-faintest: #5C5478;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Hero ─────────────────────────────────────────────── */

#hero {
  position: relative;
  width: 100%;
  padding: 120px 24px 100px;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(91, 79, 229, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(92, 60, 168, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 640px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-subhead {
  margin: 0 0 32px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero-microcopy {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Widget mock ──────────────────────────────────────── */

.hero-widget {
  display: flex;
  justify-content: center;
}

.widget-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--gradient-widget);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.widget-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
}

.wave-bar {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--danger-bright);
  animation: wave-pulse 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
}

.widget-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@keyframes wave-pulse {
  0%, 100% {
    height: 5px;
  }
  50% {
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-bar {
    animation: none;
    height: 10px;
  }
}

/* ── Problem / Solution ───────────────────────────────── */

#problem-solution {
  width: 100%;
  padding: 100px 24px;
  border-top: 1px solid var(--border-subtle);
}

.problem-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.problem-inner h2 {
  margin: 0 0 24px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.problem-body {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.problem-body:last-child {
  margin-bottom: 0;
}

.accuracy-stats {
  display: flex;
  gap: 16px;
  margin: 0 0 28px;
}

.stat-block {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
}

/* ── How it works ─────────────────────────────────────── */

#how-it-works {
  width: 100%;
  padding: 100px 24px;
  border-top: 1px solid var(--border-subtle);
}

.hiw-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.hiw-inner h2 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hiw-subhead {
  margin: 0 0 48px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Pipeline: stacked by default (mobile), horizontal from 900px up. */
.hiw-pipeline {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-items: stretch;
}

/* ── Stage card ──────────────────────────────────────── */

.hiw-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 28px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.hiw-card.active {
  border-color: var(--stage-color);
  background: var(--card);
}

.hiw-anim {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.hiw-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-muted);
  transition: color 0.35s ease;
}

.hiw-card.active .hiw-label {
  color: var(--text-primary);
}

.hiw-stats {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-faintest);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}

.hiw-card.active .hiw-stats {
  color: var(--text-secondary);
}

/* ── Stage 1: Listening — pulsing waveform bars ──────── */

.hiw-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
}

.hiw-wave-bar {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--stage-color);
  opacity: 0.45;
  transition: opacity 0.35s ease;
  animation: hiw-wave-pulse 1.05s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.09s);
  animation-play-state: paused;
}

.hiw-card.active .hiw-wave-bar {
  opacity: 1;
  animation-play-state: running;
}

@keyframes hiw-wave-pulse {
  0%, 100% { height: 6px; }
  50%      { height: 28px; }
}

/* ── Stage 2: Transcribing — three-dot typing indicator ─ */

.hiw-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
}

.hiw-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage-color);
  opacity: 0.45;
  transition: opacity 0.35s ease;
  animation: hiw-typing 1.25s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.16s);
  animation-play-state: paused;
}

.hiw-card.active .hiw-dot {
  animation-play-state: running;
}

@keyframes hiw-typing {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%           { transform: translateY(-8px); opacity: 1; }
}

/* ── Stage 3: Cleaning — twinkling sparkle + satellites ─ */

.hiw-sparkle {
  position: relative;
  width: 44px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stage-color);
  opacity: 0.45;
  transition: opacity 0.35s ease;
}

.hiw-card.active .hiw-sparkle {
  opacity: 1;
}

.hiw-sparkle-main,
.hiw-spark {
  display: block;
  animation-name: hiw-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.hiw-sparkle-main {
  animation-duration: 1.6s;
}

.hiw-spark {
  position: absolute;
}

.hiw-spark-a {
  top: 1px;
  right: 3px;
  animation-duration: 1.15s;
  animation-delay: 0.35s;
}

.hiw-spark-b {
  bottom: 2px;
  left: 4px;
  animation-duration: 1.35s;
  animation-delay: 0.7s;
}

.hiw-card.active .hiw-sparkle-main,
.hiw-card.active .hiw-spark {
  animation-play-state: running;
}

@keyframes hiw-twinkle {
  0%, 100% { transform: scale(0.78) rotate(0deg);   opacity: 0.45; }
  50%      { transform: scale(1.12) rotate(45deg);  opacity: 1; }
}

/* ── Stage 4: Done — checkmark badge scale-pulse ─────── */

.hiw-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--stage-color);
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid var(--stage-color);
  opacity: 0.45;
  transition: opacity 0.35s ease;
  animation: hiw-check-pulse 1.7s ease-in-out infinite;
  animation-play-state: paused;
}

.hiw-card.active .hiw-check {
  opacity: 1;
  animation-play-state: running;
}

@keyframes hiw-check-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.09); }
}

/* ── Connectors ──────────────────────────────────────────
   Flat by default: no animation property at all, so bars sit
   at their declared 3px baseline rather than freezing mid-wave.
   The animation is applied only by .active, so removing .active
   drops the bars back to flat instantly and a re-added .active
   always restarts the wave from its 0% keyframe.            */

.hiw-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-conn-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.hiw-conn-bar {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s ease;
}

.hiw-connector.active .hiw-conn-bar {
  background: var(--stage-color);
  animation: hiw-conn-wave 0.85s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
}

@keyframes hiw-conn-wave {
  0%, 100% { height: 3px; }
  50%      { height: 16px; }
}

/* Mobile connectors: rotate the same bars to read as vertical flow. */
.hiw-connector {
  height: 34px;
  width: 100%;
}

.hiw-conn-bars {
  transform: rotate(90deg);
}

@media (min-width: 900px) {
  .hiw-pipeline {
    grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
  }

  .hiw-connector {
    height: auto;
    width: auto;
  }

  .hiw-conn-bars {
    transform: none;
  }
}

@media (max-width: 899px) {
  .hiw-card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 18px;
    padding: 20px 22px;
    text-align: left;
  }

  .hiw-anim {
    flex: 0 0 auto;
    width: 52px;
  }

  .hiw-label {
    flex: 1 1 auto;
  }

  .hiw-stats {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hiw-wave-bar,
  .hiw-dot,
  .hiw-sparkle-main,
  .hiw-spark,
  .hiw-check,
  .hiw-connector.active .hiw-conn-bar {
    animation: none;
  }

  .hiw-wave-bar {
    height: 16px;
  }

  .hiw-connector.active .hiw-conn-bar {
    height: 9px;
  }
}

/* ── Features (bento grid) ────────────────────────────── */

#features {
  width: 100%;
  padding: 100px 24px;
  border-top: 1px solid var(--border-subtle);
}

.features-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.features-inner h2 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.features-kicker {
  margin: 0 0 44px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Bento: single column by default, 4x2 bento from 900px up. */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}

.bento-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.bento-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.bento-copy {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ── 1. AI-powered cleanup ───────────────────────────── */

.ai-badge {
  align-self: flex-start;
  padding: 3px 10px;
  background: var(--accent);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  border-radius: 999px;
}

.cleanup-demo {
  display: grid;
  margin-top: auto;
  padding: 18px 18px;
  background: var(--card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.cleanup-line {
  grid-area: 1 / 1;
  margin: 0;
  align-self: center;
  font-size: 14px;
  line-height: 1.5;
  animation-duration: 7s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.cleanup-before {
  color: var(--text-muted);
  font-weight: 400;
  animation-name: feat-fade-a;
}

.cleanup-after {
  color: var(--text-primary);
  font-weight: 500;
  animation-name: feat-fade-b;
}

@keyframes feat-fade-a {
  0%, 42%  { opacity: 1; }
  50%, 92% { opacity: 0; }
  100%     { opacity: 1; }
}

@keyframes feat-fade-b {
  0%, 42%  { opacity: 0; }
  50%, 92% { opacity: 1; }
  100%     { opacity: 0; }
}

/* ── 2. Hotkey capture ───────────────────────────────── */

.hotkey-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 4px;
}

.keycaps {
  display: flex;
  align-items: center;
  gap: 6px;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 5px 9px;
  background: var(--card-inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  animation: feat-key-press 3.4s ease-in-out infinite;
}

.keycap-b {
  animation-delay: 0.5s;
}

.keycap-plus {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faintest);
}

@keyframes feat-key-press {
  0%, 6% {
    transform: translateY(0);
    background: var(--card-inset);
    border-color: var(--border);
    color: var(--text-secondary);
  }
  12%, 24% {
    transform: translateY(2px);
    background: rgba(157, 143, 255, 0.18);
    border-color: var(--accent-light);
    color: var(--text-primary);
  }
  32%, 100% {
    transform: translateY(0);
    background: var(--card-inset);
    border-color: var(--border);
    color: var(--text-secondary);
  }
}

.hotkey-confirm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
  animation: feat-key-confirm 3.4s ease-in-out infinite;
}

@keyframes feat-key-confirm {
  0%, 32%   { opacity: 0; transform: scale(0.82); }
  44%, 80%  { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(0.82); }
}

/* ── 3. Toggle or push-to-talk ───────────────────────── */

.mode-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  margin-bottom: 4px;
}

.mode-track {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  animation: feat-toggle-track 6s ease-in-out infinite;
}

.mode-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  animation: feat-toggle-knob 6s ease-in-out infinite;
}

@keyframes feat-toggle-track {
  0%, 42%  { background: var(--border); }
  50%, 92% { background: var(--accent); }
  100%     { background: var(--border); }
}

@keyframes feat-toggle-knob {
  0%, 42%  { transform: translateX(0); }
  50%, 92% { transform: translateX(20px); }
  100%     { transform: translateX(0); }
}

.mode-labels {
  position: relative;
  display: grid;
  min-width: 92px;
}

.mode-label {
  grid-area: 1 / 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.mode-label-a { animation-name: feat-fade-a; }
.mode-label-b { animation-name: feat-fade-b; }

/* ── 4. Projects understand your context ─────────────── */

.projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px 11px;
  background: rgba(91, 79, 229, 0.16);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  white-space: nowrap;
}

.history-rows {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-row {
  padding: 10px 13px;
  background: var(--card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  animation: feat-row-in 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}

@keyframes feat-row-in {
  0%        { opacity: 0; transform: translateY(7px); }
  14%, 78%  { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(7px); }
}

.projects-caption {
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── 6. Bring your own API key — demoted strip ───────── */

.byok-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin: 16px 0 0;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.byok-strip svg {
  flex: 0 0 auto;
  color: var(--text-faintest);
}

/* ── Bento layout: 4 x 2 from 900px ──────────────────── */

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Largest box — most important feature: 2 cols x 2 rows. */
  .feat-cleanup {
    grid-column: span 2;
    grid-row: span 2;
    padding: 28px;
  }

  /* Second-largest: 2 cols x 1 row. */
  .feat-projects {
    grid-column: span 2;
  }
}

/* Paused by JS when the section is off-screen (fail-safe: default is running). */
#features.is-paused .cleanup-line,
#features.is-paused .keycap,
#features.is-paused .hotkey-confirm,
#features.is-paused .mode-track,
#features.is-paused .mode-knob,
#features.is-paused .mode-label,
#features.is-paused .history-row {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .cleanup-line,
  .keycap,
  .hotkey-confirm,
  .mode-track,
  .mode-knob,
  .mode-label,
  .history-row {
    animation: none;
  }

  .cleanup-before,
  .mode-label-a {
    opacity: 0;
  }

  .cleanup-after,
  .mode-label-b,
  .hotkey-confirm,
  .history-row {
    opacity: 1;
  }

  .mode-knob {
    transform: translateX(20px);
  }

  .mode-track {
    background: var(--accent);
  }
}

/* ── Pricing ──────────────────────────────────────────── */

#pricing {
  width: 100%;
  padding: 100px 24px;
  border-top: 1px solid var(--border-subtle);
}

.pricing-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.pricing-inner h2 {
  margin: 0 0 28px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.region-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 40px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.region-btn {
  appearance: none;
  margin: 0;
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.region-btn:hover {
  color: var(--text-secondary);
}

.region-btn.is-active {
  background: var(--accent);
  color: var(--text-primary);
}

.region-btn:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  text-align: left;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.pricing-card--featured {
  position: relative;
  border: 2px solid var(--accent);
  box-shadow: 0 12px 40px rgba(91, 79, 229, 0.22);
}

.pricing-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.pricing-tier {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  min-height: 42px;
}

.pricing-amount {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pricing-coming-soon {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pricing-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-annual {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
  min-height: 18px;
}

.pricing-card:not(.pricing-card--featured) .pricing-features {
  margin-top: 12px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.pricing-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pricing-cta:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.pricing-cta--primary {
  background: var(--accent);
  color: var(--text-primary);
  border: 2px solid var(--accent);
}

.pricing-cta--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.pricing-cta--outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.pricing-cta--outline:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.pricing-footnote {
  margin: 28px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

/* Region price visibility — only price-related spans toggle. */
#pricing .price-intl {
  display: none;
}

#pricing.region-international .price-in {
  display: none;
}

#pricing.region-international .price-intl {
  display: inline;
}

@media (min-width: 900px) {
  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
  }

  .pricing-card--featured {
    transform: translateY(-6px);
  }
}

/* ── Download ─────────────────────────────────────────── */

#download {
  width: 100%;
  padding: 100px 24px;
  border-top: 1px solid var(--border-subtle);
}

.download-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.download-primary h2 {
  margin: 0 0 28px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.download-cta {
  display: inline-flex;
}

.download-meta {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
}

.download-divider {
  width: 100%;
  max-width: 280px;
  height: 0;
  margin: 44px auto;
  border: none;
  border-top: 1px solid var(--border-subtle);
}

.download-secondary {
  max-width: 480px;
  margin: 0 auto;
}

.download-notify-lead {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

.notify-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.notify-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.notify-input::placeholder {
  color: var(--text-faintest);
}

.notify-input:focus {
  border-color: var(--accent-light);
}

.notify-input.is-invalid {
  border-color: var(--danger-muted);
}

.notify-submit {
  flex: 0 0 auto;
  appearance: none;
  margin: 0;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.notify-submit:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.notify-submit:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.notify-message {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.notify-message.is-success {
  color: var(--success);
}

.notify-message.is-error {
  color: var(--danger-muted);
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px 64px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 24px 32px;
}

.footer-brand {
  flex: 1 1 240px;
  max-width: 320px;
}

.footer-wordmark {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.footer-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
}

.footer-col {
  min-width: 120px;
}

.footer-col-heading {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-legal {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
  margin: 0;
  padding: 24px 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-faintest);
}

/* ── Responsive ───────────────────────────────────────── */

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
  }

  .hero-copy {
    text-align: left;
    flex: 1 1 0;
    min-width: 0;
  }

  .hero-ctas {
    justify-content: flex-start;
  }

  .hero-widget {
    flex: 0 0 auto;
  }

  .problem-inner {
    text-align: left;
  }

  .stat-block {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 639px) {
  #hero {
    padding: 80px 20px 72px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-subhead {
    font-size: 17px;
    margin-bottom: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }

  .hero-inner {
    gap: 40px;
  }

  #problem-solution {
    padding: 80px 20px;
  }

  .problem-inner h2 {
    font-size: 28px;
  }

  .problem-body {
    font-size: 16px;
  }

  .accuracy-stats {
    flex-direction: column;
  }

  .stat-number {
    font-size: 28px;
  }

  #how-it-works {
    padding: 80px 20px;
  }

  .hiw-inner h2 {
    font-size: 28px;
  }

  .hiw-subhead {
    font-size: 16px;
    margin-bottom: 36px;
  }

  #features {
    padding: 80px 20px;
  }

  .features-inner h2 {
    font-size: 28px;
  }

  .features-kicker {
    margin-bottom: 32px;
    font-size: 11px;
  }

  .bento-card {
    padding: 20px;
  }

  .cleanup-demo {
    padding: 14px;
  }

  .cleanup-line {
    font-size: 13px;
  }

  .byok-strip {
    padding: 14px 16px;
    font-size: 12px;
  }

  #pricing {
    padding: 80px 20px;
  }

  .pricing-inner h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .region-toggle {
    margin-bottom: 32px;
    width: 100%;
    max-width: 320px;
  }

  .region-btn {
    flex: 1 1 0;
    padding: 12px 14px;
  }

  .pricing-amount {
    font-size: 32px;
  }

  .pricing-coming-soon {
    font-size: 26px;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  #download {
    padding: 80px 20px;
  }

  .download-primary h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .download-cta {
    width: 100%;
  }

  .download-divider {
    margin: 36px auto;
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-submit {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 36px;
    padding: 56px 20px 28px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-columns {
    flex-direction: column;
    gap: 28px;
  }

  .footer-legal {
    padding: 0 20px;
  }
}
