:root {
  --blue: #4A6CF7;
  --blue-dark: #3a5ce5;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f7f8fb;
  --card: #ffffff;
  --success: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1100px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ─── Header ─────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--blue); }
@media (max-width: 640px) {
  .nav .nav-link { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 6vw, 80px);
  text-align: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .subhead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.trust-bar {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 24px;
}
.trust-bar span { margin: 0 10px; }

.hero-screenshot {
  margin: 48px auto 0;
  max-width: 900px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ─── Section generic ────────────────────────────────────────────── */
section { padding: clamp(48px, 6vw, 96px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.eyebrow { color: var(--blue); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; margin-bottom: 10px; }

/* ─── Feature grid ───────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.card .ico {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(74, 108, 247, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-2); margin: 0; font-size: 0.95rem; }

/* ─── Privacy band (full-width dark) ─────────────────────────────── */
.band-privacy {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  padding: clamp(60px, 8vw, 96px) 0;
}
.band-privacy h2 { color: #fff; }
.band-privacy .lead {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
  color: #cbd5e1;
}
.band-privacy .promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.band-privacy .promise {
  text-align: left;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}
.band-privacy .promise strong { color: #fff; display: block; margin-bottom: 4px; }
.band-privacy .promise p { color: #94a3b8; margin: 0; font-size: 0.92rem; }
.band-privacy .section-head p { color: #cbd5e1; }

/* ─── How it works ───────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step { position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); margin: 0; }

/* ─── Pro upsell ─────────────────────────────────────────────────── */
.pro-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.pro-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 4px 0 6px;
}
.pro-card .price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.pro-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
}
.pro-card .feature-list li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.pro-card .feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.pro-card .fine { color: var(--muted); font-size: 0.85rem; margin-top: 16px; margin-bottom: 0; }

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.4rem;
  color: var(--muted);
  line-height: 1;
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 48px 0 32px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.site-footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--blue); }
.site-footer .legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── Article (for privacy/refunds/changelog pages) ───────────────── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
}
.prose h1 { margin-bottom: 8px; }
.prose .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.prose h2 { margin-top: 48px; margin-bottom: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 32px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--soft); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 16px;
  margin: 16px 0;
  color: var(--ink-2);
  background: var(--soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* ─── Comparison / Why ───────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}
.why {
  padding: 24px;
  border-left: 3px solid var(--blue);
  background: var(--soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.why strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.why p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ─── Focus ──────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Print ──────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .hero-screenshot { display: none; }
  body { color: #000; }
}
