/* Same tokens as the extension (src/assets/main.css). */
:root,
[data-theme='light'] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #fafafa;
  --muted: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --fg: #09090b;
  --fg-muted: #52525b;
  --fg-subtle: #a1a1aa;
  --accent: #7c3aed;
  --accent-fg: #ffffff;
  --accent-text: #6d28d9;
  --accent-soft: #f3efff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 16px 48px -12px rgb(0 0 0 / 0.18);
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0a0a0a;
  --muted: #141414;
  --border: #1f1f1f;
  --border-strong: #2e2e2e;
  --fg: #fafafa;
  --fg-muted: #a1a1aa;
  --fg-subtle: #63636b;
  --accent: #8b5cf6;
  --accent-fg: #ffffff;
  --accent-text: #a78bfa;
  --accent-soft: #1a1426;
  --shadow: 0 0 0 1px var(--border), 0 24px 64px -16px rgb(0 0 0 / 0.9);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

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

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

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

/* Theme-specific screenshots */
[data-theme='light'] .only-dark,
[data-theme='dark'] .only-light {
  display: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 24px;
  height: 24px;
}

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

.nav a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--fg-muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--fg);
  background: var(--muted);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg-muted);
  cursor: pointer;
}

.icon-button:hover {
  color: var(--fg);
  background: var(--muted);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

[data-theme='light'] .icon-moon,
[data-theme='dark'] .icon-sun {
  display: none;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.button:hover {
  background: var(--muted);
  border-color: var(--border-strong);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.button-primary:hover {
  background: color-mix(in oklab, var(--accent) 88%, black);
  border-color: transparent;
}

.button svg {
  width: 18px;
  height: 18px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

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

.hero {
  padding: 88px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
  font-size: 13px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero h1 {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 650;
}

.hero .lead {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--fg-muted);
  font-size: clamp(17px, 2vw, 19px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.fine-print {
  margin-top: 16px;
  color: var(--fg-subtle);
  font-size: 13px;
}

.hero-shot {
  margin-top: 64px;
}

/* Screenshot frame with a minimal browser bar. */
.frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.frame-bar .address {
  flex: 0 1 360px;
  height: 20px;
  margin-left: 18px;
  border-radius: 6px;
  background: var(--muted);
}

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

.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin-bottom: 12px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 500;
}

.section h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 650;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--fg-muted);
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.split.reverse .split-media {
  order: -1;
}

.split .section-head {
  margin-bottom: 0;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  color: var(--fg-muted);
}

.checklist li strong {
  color: var(--fg);
  font-weight: 500;
}

.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent-text);
}

.popup-shot {
  width: min(380px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--fg-muted);
  font-size: 14px;
}

/* ── Feature grid ───────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.feature {
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.feature:nth-child(3n) {
  border-right: 0;
}

.feature:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 8px 0 0;
  color: var(--fg-muted);
  font-size: 15px;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}

.steps h3 {
  font-size: 17px;
  font-weight: 600;
}

.steps p {
  margin: 8px 0 0;
  color: var(--fg-muted);
  font-size: 15px;
}

.steps a {
  color: var(--accent-text);
}

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

.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.privacy div {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.privacy h3 {
  font-size: 16px;
  font-weight: 600;
}

.privacy p {
  margin: 6px 0 0;
  color: var(--fg-muted);
  font-size: 15px;
}

.text-link {
  color: var(--accent-text);
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

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

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-of-type {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  color: var(--fg-subtle);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: -6px 0 20px;
  max-width: 680px;
  color: var(--fg-muted);
}

/* ── CTA + footer ───────────────────────────────────────────────────────── */

.cta {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 650;
}

.cta p {
  margin: 16px auto 0;
  max-width: 520px;
  color: var(--fg-muted);
  font-size: 17px;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--fg-subtle);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--fg-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

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

.policy {
  padding: 64px 0 96px;
}

.policy h1 {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 650;
}

.policy .updated {
  margin: 12px 0 0;
  color: var(--fg-subtle);
  font-size: 14px;
}

.policy .summary {
  margin: 40px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.policy .summary p {
  margin: 0;
  color: var(--fg-muted);
}

.policy h2 {
  margin: 48px 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.policy p,
.policy li {
  color: var(--fg-muted);
}

.policy ul {
  padding-left: 20px;
}

.policy li {
  margin: 8px 0;
}

.policy strong {
  color: var(--fg);
  font-weight: 500;
}

.policy code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--muted);
  color: var(--fg);
  font-size: 0.88em;
}

.policy a {
  color: var(--accent-text);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split.reverse .split-media {
    order: 0;
  }

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

  .feature:nth-child(3n) {
    border-right: 1px solid var(--border);
  }

  .feature:nth-child(2n) {
    border-right: 0;
  }

  .feature:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }

  .feature:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .steps,
  .privacy {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    padding: 56px 0 48px;
  }

  .section,
  .cta {
    padding: 64px 0;
  }

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

  .feature,
  .feature:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .frame-bar .address {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
