/* ──────────────────────────────────────────────────────────
   WisperType — marketing site
   Design tokens ported from src/app.css
   ────────────────────────────────────────────────────────── */

:root,
:root[data-theme="light"] {
  --bg: #f6f6f8;
  --bg-elevated: #ffffff;
  --bg-surface: #ffffff;
  --bg-hover: #eeeef2;
  --bg-tint: #f0f0f4;
  --border: #e4e4e9;
  --border-subtle: #ececf0;
  --text: #0b0b10;
  --text-secondary: #4d4d57;
  --text-tertiary: #8c8c97;
  --text-quaternary: #b5b5be;
  --accent: #0b0b10;
  --accent-subtle: rgba(0, 0, 0, 0.05);
  --danger: #d23438;
  --success: #1a8f4a;
  --recording: #ff3b30;

  --shadow-xs: 0 1px 2px rgba(11, 11, 16, 0.04);
  --shadow-sm: 0 2px 6px rgba(11, 11, 16, 0.05), 0 1px 2px rgba(11, 11, 16, 0.03);
  --shadow-md: 0 14px 36px -12px rgba(14, 14, 22, 0.14), 0 3px 8px rgba(14, 14, 22, 0.05);
  --shadow-lg: 0 40px 80px -24px rgba(14, 14, 22, 0.22), 0 10px 28px -10px rgba(14, 14, 22, 0.12);
  --shadow-pill-light: 0 4px 14px rgba(0, 0, 0, 0.14), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-pill-dark: 0 6px 20px rgba(0, 0, 0, 0.55);

  --grad-hero: radial-gradient(900px 500px at 50% -10%, rgba(11, 11, 16, 0.05), transparent 60%);
  --grid-line: rgba(11, 11, 16, 0.04);
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-elevated: #0e0e10;
  --bg-surface: #161618;
  --bg-hover: #1d1d20;
  --bg-tint: #0a0a0c;
  --border: #232327;
  --border-subtle: #1a1a1d;
  --text: #ffffff;
  --text-secondary: #b0b0b8;
  --text-tertiary: #707078;
  --text-quaternary: #4a4a52;
  --accent: #ffffff;
  --accent-subtle: rgba(255, 255, 255, 0.06);
  --danger: #ff5e5e;
  --success: #4cd47a;
  --recording: #ff3b30;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 16px 36px -12px rgba(0, 0, 0, 0.6);

  --grad-hero: radial-gradient(900px 500px at 50% -10%, rgba(255, 255, 255, 0.05), transparent 60%);
  --grid-line: rgba(255, 255, 255, 0.04);
}

:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", monospace;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
  --max-narrow: 920px;
}
@supports (font-variation-settings: normal) {
  :root { --font: "Inter var", -apple-system, BlinkMacSystemFont, sans-serif; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "cv11", "calt";
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--text); color: var(--bg); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ─────────────── Type ─────────────── */
h1, h2, h3, h4 { letter-spacing: -0.028em; line-height: 1.08; color: var(--text); font-weight: 600; }
h1 { font-size: clamp(44px, 6.6vw, 84px); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-size: 18px; letter-spacing: -0.015em; }
h4 { font-size: 15px; }

.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--text);
  margin: 0 2px;
  line-height: 1.4;
}

/* ─────────────── Logo ─────────────── */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  color: var(--text);
  flex: 0 0 auto;
}
.logo-mark svg { width: 100%; height: auto; display: block; }
.logo-mark.sm { width: 20px; height: 20px; }
.logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ─────────────── Buttons ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px color-mix(in oklab, var(--text) 50%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--text-tertiary); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 14.5px; }

/* ─────────────── NAV ─────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border-subtle); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; }
.nav-links {
  display: flex;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); background: var(--accent-subtle); }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle:hover { color: var(--text); border-color: var(--text-tertiary); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ─────────────── Layout helpers ─────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .lede {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 14px;
  line-height: 1.55;
}

/* ─────────────── HERO (Linear-style, left-aligned) ─────────────── */
.hero {
  position: relative;
  padding: 70px 0 0;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 60px;
  z-index: 1;
}
.hero h1 {
  font-weight: 600;
  margin-bottom: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  letter-spacing: -0.038em;
  line-height: 1.04;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--text-tertiary);
}
.hero-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.55;
  margin-top: 40px;
}
.hero-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  justify-self: end;
}
.hero-meta-line .dot-pill {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
}
.hero-ctas {
  display: flex;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.dot { opacity: 0.5; }

/* Hero stage — anchored at bottom, partially visible */
.hero-stage {
  position: relative;
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 0 28px 0;
}
.hero-stage-inner {
  position: relative;
  background: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 56px 28px 80px;
  overflow: hidden;
}
.hero-stage-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 50% 60%, color-mix(in oklab, var(--text) 6%, transparent), transparent 70%);
  pointer-events: none;
}

/* App snippet card showing typed result */
.typed-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
  z-index: 1;
}
.typed-card .typed-app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.typed-card .typed-app-bar img { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 4px; }
.typed-text {
  position: relative;
  min-height: 56px;
}
.typed-caret {
  display: inline-block;
  width: 1.5px;
  height: 18px;
  background: var(--text);
  vertical-align: -3px;
  margin-left: 1px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* HUD pill — the REAL thing (95×20, 7 bars) · theme-reactive like the app */
.hud-pill {
  --pill-bg: rgba(44, 44, 46, 0.96);
  --pill-bar: rgba(255, 255, 255, 0.92);
  --pill-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.55);
  width: 95px;
  height: 20px;
  border-radius: 10px;
  background: var(--pill-bg);
  box-shadow: var(--pill-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
:root[data-theme="light"] .hud-pill {
  --pill-bg: rgba(255, 255, 255, 0.97);
  --pill-bar: rgba(0, 0, 0, 0.82);
  --pill-shadow:
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.08);
}
.hud-pill .bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.hud-pill .bar {
  width: 2px;
  height: 3px;
  background: var(--pill-bar);
  border-radius: 1px;
  animation: barWave 1.1s ease-in-out infinite;
}
.hud-pill .bar:nth-child(1) { animation-delay: -0.0s; }
.hud-pill .bar:nth-child(2) { animation-delay: -0.13s; }
.hud-pill .bar:nth-child(3) { animation-delay: -0.27s; }
.hud-pill .bar:nth-child(4) { animation-delay: -0.41s; }
.hud-pill .bar:nth-child(5) { animation-delay: -0.55s; }
.hud-pill .bar:nth-child(6) { animation-delay: -0.69s; }
.hud-pill .bar:nth-child(7) { animation-delay: -0.83s; }
@keyframes barWave {
  0%, 100% { height: 3px; }
  20%      { height: 14px; }
  40%      { height: 6px; }
  60%      { height: 17px; }
  80%      { height: 4px; }
}

/* HUD floating below typed-card */
.hud-floating {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hud-trail {
  font-size: 10.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ─────────────── LOGO STRIP ─────────────── */
.logos {
  padding: 56px 28px 8px;
  text-align: center;
}
.logos-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  opacity: 0.85;
}
.logos-row .app-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.logos-row .app-pill img { width: 16px; height: 16px; border-radius: 3px; }

/* ─────────────── SPEED SECTION ─────────────── */
.speed {
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.speed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.speed-side {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.speed-side + .speed-side { border-left: 1px solid var(--border-subtle); }
.speed-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 16px;
}
.speed-num {
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.speed-num .unit {
  font-size: 0.3em;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0;
}
.speed-desc { font-size: 13.5px; color: var(--text-secondary); max-width: 320px; line-height: 1.55; }
.speed-side.win::after {
  content: "Faster";
  position: absolute;
  top: 60px;
  right: 48px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.speed-foot {
  text-align: center;
  padding: 18px 28px 48px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
}

/* ─────────────── PRIVACY ─────────────── */
.privacy-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

/* "Your Mac" boundary — matches the app's card style */
.mac-boundary {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.mac-tl {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  gap: 7px;
}
.mac-badge {
  position: absolute;
  top: 11px;
  right: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.mac-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 12px 0 20px;
}
.flow-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  min-width: 220px;
}
.flow-node.primary { background: var(--bg); border-color: var(--border); }
.flow-node svg { display: none; }
.flow-line {
  width: 1.5px;
  height: 22px;
  background: var(--border);
}
.mac-footline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  width: 100%;
  justify-content: center;
  font-size: 11.5px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.mac-foot-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
}

/* ─────────────── SHOWCASE / APP MOCK ─────────────── */
.app-window {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tl {
  position: absolute;
  top: 11px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.tl-dot { width: 12px; height: 12px; border-radius: 50%; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }
.app-shell {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  padding-top: 34px;
  background: var(--bg);
  height: 100%;
}
.app-sidebar {
  display: flex;
  flex-direction: column;
  padding: 6px 8px 10px;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 18px 8px;
}
.app-brand .logo-mark { width: 26px; height: 26px; font-size: 10.5px; border-radius: 7px; }
.app-brand .logo-text { font-size: 13.5px; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav-bottom { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.app-nav-item svg { width: 14px; height: 14px; flex: 0 0 auto; opacity: 0.85; }
.app-nav-item.active { background: var(--bg-surface); color: var(--text); box-shadow: var(--shadow-xs); }
.app-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.app-main-header { padding: 14px 22px 4px; }
.app-main-header h2 { font-size: 18px; letter-spacing: -0.015em; }
.app-body { flex: 1; padding: 10px 22px 12px; overflow: hidden; }
.app-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 11.5px;
  text-align: center;
}
.history-group-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-tertiary);
  font-weight: 600;
  padding: 0 2px 8px;
}
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-hover);
  border-radius: 14px;
  min-height: 40px;
}
.history-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.history-time {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.tabs { display: flex; gap: 4px; padding: 0 22px 14px; }
.tab {
  padding: 6px 14px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
}
.tab.active { background: var(--accent-subtle); color: var(--text); font-weight: 500; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border-subtle);
  gap: 16px;
}
.setting-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.setting-sub { font-size: 11.5px; color: var(--text-tertiary); }
.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-hover);
  border-radius: 999px;
}
.seg button {
  padding: 4px 12px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
}
.seg button.on { background: var(--bg-elevated); color: var(--text); box-shadow: var(--shadow-xs); }

/* ─────────────── FEATURES BENTO ─────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 10px;
}
.bento-card {
  position: relative;
  padding: 22px 22px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.bento-card:hover { border-color: var(--text-tertiary); }
.bento-card .chip {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bento-card h3 { margin-bottom: 6px; font-size: 16px; }
.bento-card p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }
.bento-card .visual { margin-top: auto; padding-top: 18px; }
.b-wide { grid-column: span 4; }
.b-half { grid-column: span 3; }
.b-third { grid-column: span 2; }

/* visual elements */
.mini-dictionary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  background: var(--bg-hover);
  border-radius: 10px;
}
.mini-term { font-size: 13px; color: var(--text); font-weight: 500; }
.mini-hint { font-size: 11px; color: var(--text-tertiary); }

.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lang-grid .l {
  padding: 5px 10px;
  background: var(--bg-hover);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
}

.shortcut-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.kc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
}

.theme-preview {
  display: flex;
  gap: 8px;
}
.theme-card {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 14px;
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}
.theme-card.lt { background: #ffffff; color: #4d4d57; }
.theme-card.lt::before { content: ""; height: 6px; background: #eeeef2; border-radius: 99px; width: 70%; }
.theme-card.lt::after { content: ""; height: 6px; background: #eeeef2; border-radius: 99px; width: 50%; }
.theme-card.dk { background: #0e0e10; color: #b0b0b8; border-color: #232327; }
.theme-card.dk::before { content: ""; height: 6px; background: #1d1d20; border-radius: 99px; width: 70%; }
.theme-card.dk::after { content: ""; height: 6px; background: #1d1d20; border-radius: 99px; width: 50%; }

.saved-vis {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.saved-vis .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg-hover);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text);
}
.saved-vis .star { color: var(--text); }

/* Hud preview row in features */
.hud-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
}
.hud-row .label { font-size: 11.5px; color: var(--text-tertiary); }

/* ─────────────── PRICING TEASER ─────────────── */
.price-teaser {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.price-card .price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.price-card .price-tag .num {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-card .price-tag .per { color: var(--text-tertiary); font-size: 14px; }
.price-card .price-strike {
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.price-card .price-strike s { color: var(--text-quaternary); }
.price-card ul { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.price-card li .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  font-size: 10px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.price-card .btn { width: 100%; }

/* ─────────────── COMPARE ─────────────── */
.compare {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) + 4px);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.compare .vendor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}
.compare .vendor img,
.compare .vendor .logo-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}
.compare-top {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.compare-intro {
  padding: 12px 10px 12px 4px;
}
.compare-mini {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.compare-intro h3 {
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.compare-intro p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 30ch;
}
.compare-card {
  padding: 16px 16px 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg), var(--bg-elevated));
  min-height: 160px;
}
.compare-card.is-us {
  background: linear-gradient(180deg, #17171c, #0e0e12);
  border-color: #23232a;
}
.compare-card.is-us .vendor,
.compare-card.is-us p,
.compare-card.is-us .compare-card-tag {
  color: #f5f5f7;
}
.compare-card.is-us p { color: rgba(255,255,255,0.74); }
.compare-card-tag {
  margin: 14px 0 10px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
}
.compare-card.is-us .compare-card-tag {
  background: rgba(255,255,255,0.1);
}
.compare-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.compare-matrix {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
}
.compare-row + .compare-row {
  border-top: 1px solid var(--border-subtle);
}
.compare-row-head {
  background: var(--bg-tint);
}
.compare-cell {
  padding: 15px 16px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}
.compare-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.compare-label {
  color: var(--text-secondary);
  font-weight: 600;
}
.compare-cell.is-us {
  background: color-mix(in oklab, var(--text) 4%, transparent);
}
.compare-row-head .compare-cell.is-us {
  box-shadow: inset 0 -2px 0 var(--text);
}

/* Yes / no glyphs — quiet marks, not colored badges */
.compare .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  vertical-align: -2px;
}
.compare .mark.yes { background: color-mix(in oklab, var(--success) 18%, transparent); color: var(--success); }
.compare .mark.no  { background: var(--bg-hover); color: var(--text-quaternary); }

.compare .note {
  color: var(--text-tertiary);
  font-size: 12.5px;
  font-weight: 400;
  margin-left: 2px;
}

.compare .pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.1px;
}
.compare .pill-us {
  background: var(--text);
  color: var(--bg);
}

.compare-foot {
  text-align: center;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-quaternary);
}

/* ─────────────── FAQ ─────────────── */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
details:hover { border-color: var(--text-tertiary); }
details[open] { border-color: var(--text-tertiary); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--text-tertiary);
  border-bottom: 1.5px solid var(--text-tertiary);
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex: 0 0 auto;
}
details[open] summary::after { transform: rotate(-135deg); }
details p {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ─────────────── FINAL CTA ─────────────── */
.cta { padding: 40px 28px 100px; }
.cta-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--text);
  color: var(--bg);
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 50% 110%, color-mix(in oklab, var(--bg) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: var(--bg); margin-bottom: 12px; font-size: clamp(26px, 3vw, 36px); }
.cta-card p {
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  max-width: 460px;
  margin: 0 auto 24px;
  font-size: 14.5px;
}
.cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.cta-card .btn-primary { background: var(--bg); color: var(--text); }
.cta-card .btn-primary:hover { box-shadow: 0 10px 28px -8px color-mix(in oklab, var(--bg) 50%, transparent); }
.cta-card .btn-ghost {
  background: transparent;
  color: var(--bg);
  border-color: color-mix(in oklab, var(--bg) 25%, transparent);
}
.cta-card .btn-ghost:hover {
  background: color-mix(in oklab, var(--bg) 8%, transparent);
  border-color: color-mix(in oklab, var(--bg) 40%, transparent);
}
.cta-meta {
  font-size: 12px;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─────────────── FOOTER ─────────────── */
.footer { border-top: 1px solid var(--border-subtle); padding: 56px 0 40px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-col p {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 14px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-base {
  max-width: var(--max);
  margin: 50px auto 0;
  padding: 24px 28px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─────────────── FEATURE STRIP (landing) ─────────────── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fs-item {
  background: var(--bg-elevated);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background var(--transition);
}
.fs-item:hover { background: var(--bg-hover); }
.fs-chip {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.fs-title {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ─────────────── FEATURES PAGE (tabbed) ─────────────── */
.features-hero { padding: 72px 28px 24px; text-align: center; background: var(--bg); }
.features-hero h1 { font-size: clamp(36px, 4.4vw, 52px); margin-bottom: 14px; line-height: 1.05; }
.features-hero .lede { max-width: 520px; margin: 0 auto; font-size: 15.5px; color: var(--text-secondary); line-height: 1.55; }

.features-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}
.ft-container {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.ft-tabs {
  display: flex;
  gap: 2px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}
.ft-tabs::-webkit-scrollbar { display: none; }
.ft-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font);
}
.ft-tab:hover { color: var(--text); }
.ft-tab.active { background: var(--accent-subtle); color: var(--text); }

.ft-panel {
  display: none;
  padding: 56px 48px;
  min-height: 460px;
}
.ft-panel.active { display: grid; }
.ft-panel {
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.ft-copy .kicker { margin-bottom: 14px; }
.ft-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.08;
}
.ft-copy p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.ft-copy ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.ft-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-secondary);
}
.ft-copy li .check {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; flex: 0 0 auto; margin-top: 3px;
}
.ft-visual {
  position: relative;
  min-height: 320px;
  background: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dictionary mock — in-app style */
.dict-mock {
  width: 100%;
  max-width: 380px;
  padding: 20px 22px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.dict-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 4px;
}
.dict-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.45;
  margin-bottom: 14px;
}
.dict-inputrow { display: flex; gap: 6px; margin-bottom: 12px; }
.dict-input {
  flex: 1;
  padding: 7px 12px;
  background: var(--bg-hover);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.dict-add {
  padding: 6px 12px;
  background: var(--bg-hover);
  border: none;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
}
.dict-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 11px;
  background: var(--bg-hover);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.d-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-tertiary);
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

/* Saved mock — in-app style */
.saved-mock {
  width: 100%;
  max-width: 400px;
  padding: 20px 22px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.saved-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.saved-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-hover);
  border-radius: 12px;
}
.saved-text {
  flex: 1;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.saved-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.saved-time { font-size: 10px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.saved-ic { width: 13px; height: 13px; color: var(--text-tertiary); }

.ft-vis-langs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 320px; justify-content: center; }
.ft-vis-langs .l {
  padding: 7px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.ft-vis-langs .l.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.ft-vis-keys { display: flex; align-items: center; gap: 12px; color: var(--text-tertiary); font-size: 13px; }
.ft-vis-keys .kc {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 48px; padding: 0 14px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-bottom-width: 3px; border-radius: 10px;
  font-family: var(--font-mono); font-size: 14px; color: var(--text);
}

.ft-vis-hud {
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.ft-vis-hud .label { font-size: 11.5px; color: var(--text-tertiary); letter-spacing: 0.04em; }


/* Themes — mini app window previews */
.theme-window {
  width: 220px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  font-family: var(--font);
}
.theme-window .tw-tl {
  display: flex;
  gap: 4px;
  padding: 7px 9px;
}
.theme-window .tw-tl span {
  width: 7px; height: 7px; border-radius: 50%;
}
.theme-window .tw-tl span:nth-child(1) { background: #ff5f57; }
.theme-window .tw-tl span:nth-child(2) { background: #febc2e; }
.theme-window .tw-tl span:nth-child(3) { background: #28c840; }
.theme-window .tw-body {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 6px;
  padding: 0 6px 6px;
  height: 130px;
}
.theme-window .tw-side {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theme-window .tw-brand {
  display: flex; align-items: center; gap: 4px; padding: 2px 0 6px;
}
.theme-window .tw-mark {
  width: 12px; height: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-window .tw-mark svg { width: 100%; height: auto; display: block; }
.theme-window .tw-nav { display: flex; flex-direction: column; gap: 3px; }
.theme-window .tw-nav-item {
  height: 8px; border-radius: 99px;
}
.theme-window .tw-main {
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-window .tw-row { height: 6px; border-radius: 99px; width: 100%; }
.theme-window .tw-row.short { width: 60%; }

/* Light theme window */
.theme-window.lt { background: #f6f6f8; border: 1px solid #e4e4e9; }
.theme-window.lt .tw-mark { color: #0b0b10; }
.theme-window.lt .tw-nav-item { background: #eeeef2; }
.theme-window.lt .tw-nav-item.active { background: #ffffff; }
.theme-window.lt .tw-main { background: #ffffff; }
.theme-window.lt .tw-row { background: #eeeef2; }

/* Dark theme window */
.theme-window.dk { background: #000000; border: 1px solid #232327; }
.theme-window.dk .tw-mark { color: #ffffff; }
.theme-window.dk .tw-nav-item { background: #161618; }
.theme-window.dk .tw-nav-item.active { background: #1e1e20; }
.theme-window.dk .tw-main { background: #0e0e10; }
.theme-window.dk .tw-row { background: #1d1d20; }

@media (max-width: 820px) {
  .ft-panel { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────── SUBPAGES — Pricing ─────────────── */
.pricing-hero { padding: 72px 28px 32px; text-align: center; background: var(--bg); }
.pricing-hero h1 { font-size: clamp(36px, 4.4vw, 52px); margin-bottom: 14px; line-height: 1.05; }
.pricing-hero .lede { max-width: 460px; margin: 0 auto; font-size: 15px; color: var(--text-secondary); line-height: 1.55; }

.pricing-grid {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 28px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plan {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--text);
}
.plan .plan-badge {
  position: absolute;
  top: -10px;
  left: 22px;
  padding: 3px 10px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.plan h3 { font-size: 14px; margin-bottom: 4px; font-weight: 600; }
.plan .plan-sub { color: var(--text-tertiary); font-size: 12.5px; margin-bottom: 18px; line-height: 1.45; }
.plan .price-tag { display: inline-flex; align-items: baseline; gap: 5px; margin-bottom: 4px; }
.plan .price-tag .num { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan .price-tag .per { color: var(--text-tertiary); font-size: 12.5px; }
.plan .price-note { font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 18px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.plan li .check {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text); color: var(--bg);
  font-size: 8px; flex: 0 0 auto; margin-top: 2px;
}
.plan li.muted { color: var(--text-tertiary); }
.plan li.muted .check { background: var(--accent-subtle); color: var(--text-tertiary); }
.plan .btn { width: 100%; margin-top: auto; height: 38px; font-size: 13.5px; }

.pricing-mini-faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}
.market-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  text-align: center;
}
.market-pill.featured { border-color: var(--text); }
.market-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.market-row img { width: 14px; height: 14px; border-radius: 3px; }
.market-price {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.market-price span { font-size: 11px; font-weight: 400; color: var(--text-tertiary); margin-left: 2px; }
.market-tag {
  font-size: 10.5px;
  color: var(--text-tertiary);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ─────────────── SUBPAGES — VS WISPR ─────────────── */
.vs-hero {
  padding: 80px 28px 40px;
  text-align: center;
  background: var(--grad-hero), var(--bg);
}
.vs-hero .vs-badges {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.vs-hero .vs-vs {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.vs-hero .vs-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.vs-hero .vs-card img { width: 20px; height: 20px; border-radius: 5px; }

.vs-table-section { padding: 60px 28px; max-width: 1100px; margin: 0 auto; }
.vs-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 60px;
}
.vs-summary-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.vs-summary-card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 6px; }
.vs-summary-card h3 img { width: 22px; height: 22px; border-radius: 5px; }
.vs-summary-card .takeaway { color: var(--text-secondary); font-size: 14px; margin-bottom: 18px; line-height: 1.55; }
.vs-summary-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.vs-summary-card li { font-size: 13.5px; color: var(--text-secondary); display: flex; gap: 8px; align-items: flex-start; }
.vs-summary-card li::before { content: "—"; color: var(--text-tertiary); }

/* ─────────────── Reveal ─────────────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--easing), transform 600ms var(--easing); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─────────────── Responsive ─────────────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .speed-grid { grid-template-columns: 1fr; }
  .speed-side + .speed-side { border-left: none; border-top: 1px solid var(--border-subtle); }
  .speed-side { padding: 56px 28px; }
  .privacy-row { grid-template-columns: 1fr; gap: 32px; }
  .price-teaser { grid-template-columns: 1fr; gap: 32px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-wide, .b-half, .b-third { grid-column: span 2; }
  .compare { padding: 16px; }
  .compare-top { grid-template-columns: 1fr; }
  .compare-intro { padding: 4px 4px 8px; }
  .compare-intro p { max-width: none; }
  .compare-row { grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr)); }
  .compare-cell { padding: 13px 12px; font-size: 12.5px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .vs-summary { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding: 48px 20px 20px; }
}
@media (max-width: 560px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .bento { grid-template-columns: 1fr; }
  .b-wide, .b-half, .b-third { grid-column: span 1; }
  .compare { padding: 12px; border-radius: 22px; }
  .compare-card { min-height: 0; }
  .compare-matrix { border-radius: 18px; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row-head { display: none; }
  .compare-label {
    padding-bottom: 6px;
    background: var(--bg-tint);
  }
  .compare-cell { padding: 10px 12px; }
  .compare-cell:not(.compare-label)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }
  .compare-cell.is-us { background: transparent; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-inner { padding: 12px 18px; }
  .typed-card { padding: 18px; font-size: 15px; }
}

/* ──────────────────────────────────────────────────────────
   Download progress modal
   ────────────────────────────────────────────────────────── */
.dl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.48);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.dl-overlay.open { opacity: 1; pointer-events: auto; }

.dl-card {
  width: min(440px, calc(100vw - 32px));
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 26px 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(8px) scale(0.98);
  transition: transform 220ms cubic-bezier(.2,.9,.3,1);
}
.dl-overlay.open .dl-card { transform: translateY(0) scale(1); }

.dl-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.dl-sub {
  font-size: 13px;
  color: var(--text-tertiary);
  min-height: 18px;
}

.dl-bar-track {
  margin-top: 18px;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-hover);
  overflow: hidden;
  position: relative;
}
.dl-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--text);
  border-radius: 999px;
  transition: width 120ms linear;
}
.dl-bar-fill.indeterminate {
  width: 35% !important;
  animation: dl-indet 1.3s ease-in-out infinite;
}
@keyframes dl-indet {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.dl-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.1px;
}

.dl-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.dl-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font: 500 13px/1 inherit;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.dl-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--text-tertiary); }
.dl-btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.dl-btn.primary:hover { opacity: 0.88; background: var(--text); }

/* ——— Floating "download in progress" pill ———
   Shown when the user hits "Browse site" and the modal dismisses. Sits
   bottom-right, click to re-open the full dialog. The progress ring is
   an SVG with stroke-dashoffset driven from JS. */
.dl-pill {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  background: var(--bg-elevated, rgba(20,20,22,0.92));
  color: var(--text);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.18);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.dl-pill.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dl-pill:hover { border-color: var(--text-tertiary); }

.dl-pill-ring {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dl-pill-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* start the arc at 12 o'clock */
}
.dl-pill-ring-track {
  fill: none;
  stroke: var(--border, rgba(255,255,255,0.15));
  stroke-width: 3;
}
.dl-pill-ring-fill {
  fill: none;
  stroke: var(--accent, #6ee7ff);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 200ms ease;
}

.dl-pill-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.dl-pill-title {
  font-weight: 600;
  color: var(--text);
}
.dl-pill-meta {
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.dl-done-steps {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.dl-done-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dl-step;
}
.dl-done-steps li {
  counter-increment: dl-step;
  position: relative;
  padding-left: 24px;
}
.dl-done-steps li::before {
  content: counter(dl-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dl-done-steps li + li { margin-top: 6px; }
.dl-done-steps b { color: var(--text); font-weight: 600; }
