:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #5b5bd6;
  --accent-soft: #ececfb;
  --good: #1f8a4c;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --bg-soft: #16161c;
    --text: #f5f5f7;
    --muted: #a1a1aa;
    --line: #2c2c34;
    --accent: #8b8bf5;
    --accent-soft: #1e1e3a;
    --good: #4cc38a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px;
}
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -0.02em; margin: 20px 0 16px; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 21px; color: var(--muted); max-width: 680px; margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.button {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--accent); }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
section.soft .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; }
.icon { font-size: 28px; margin-bottom: 10px; display: block; }

.platforms { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; text-align: center; }
.platforms div { min-width: 140px; }
.platforms .icon { font-size: 40px; }
.platforms p { color: var(--muted); margin: 4px 0 0; font-size: 15px; }

/* Price */
.price { text-align: center; }
.price .amount { font-size: 72px; font-weight: 800; letter-spacing: -0.03em; }
.price ul { list-style: none; padding: 0; margin: 24px auto 0; max-width: 460px; text-align: left; }
.price li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.price li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 10px; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-size: 17px; }
.compare tbody th { font-weight: 600; width: 34%; }
.compare .us { background: var(--accent-soft); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 600; cursor: pointer; font-size: 17px; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.prose h1 { font-size: 44px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose p, .prose li { color: var(--text); }
.prose .meta { color: var(--muted); }
pre {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; overflow-x: auto; font-size: 14px;
}
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  .nav a.hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
}
