:root {
  --bg: #fbfaf7;
  --bg-alt: #f2f0ea;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5d616b;
  --line: #e2dfd6;
  --accent: #e8572a;
  --accent-ink: #ffffff;
  --accent-soft: #fde9e1;
  --ok: #1f7a4d;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 8px 24px rgba(22, 24, 29, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214;
    --bg-alt: #17181b;
    --surface: #1d1f23;
    --ink: #ecebe6;
    --muted: #a3a6ad;
    --line: #2c2f35;
    --accent: #ff6a3d;
    --accent-ink: #16181d;
    --accent-soft: #3a2119;
    --ok: #5ccf94;
    --err: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111214;
  --bg-alt: #17181b;
  --surface: #1d1f23;
  --ink: #ecebe6;
  --muted: #a3a6ad;
  --line: #2c2f35;
  --accent: #ff6a3d;
  --accent-ink: #16181d;
  --accent-soft: #3a2119;
  --ok: #5ccf94;
  --err: #ff8a80;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-alt); padding: .1em .35em; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.logo-mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-size: 15px;
}
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .pills input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px;
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1 { margin: 0; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
h1 .kw { color: var(--accent); }
.lede { margin: 20px 0 28px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }

/* Demo */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow);
}
.demo-label { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.demo-input, .field input, .field select {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
}
.demo-ad {
  display: grid; gap: 2px; margin-top: 16px; padding: 14px 16px;
  border-radius: 12px; background: var(--bg-alt); font-size: 14px;
}
.demo-ad-tag { font-weight: 700; font-size: 12px; }
.demo-ad-url { color: var(--muted); font-size: 12.5px; }
.demo-ad-title { color: #1a55c4; font-size: 17px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demo-ad-title { color: #8ab4f8; } }
:root[data-theme="dark"] .demo-ad-title { color: #8ab4f8; }
.demo-arrow { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0; }
.demo-page { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px 18px; overflow: hidden; }
.demo-bar { display: flex; gap: 6px; margin: 0 -18px 16px; padding: 10px 14px; background: var(--bg-alt); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.demo-h { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.demo-h [data-kw] { background: var(--accent-soft); border-radius: 4px; padding: 0 3px; }
.demo-p { margin: 8px 0 14px; color: var(--muted); font-size: 14px; }
.demo-btn {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px;
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
h2 { margin: 0; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.02em; max-width: 22em; }
.section-lede { margin: 12px 0 0; color: var(--muted); font-size: 18px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.tag-soon { background: var(--bg-alt); color: var(--muted); }

/* Compare */
.table-scroll { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 600; }
.compare .us { background: var(--accent-soft); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-flag {
  position: absolute; top: -13px; left: 24px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700;
}
.plan h3 { margin: 0; font-size: 18px; }
.price { margin: 10px 0 0; font-size: 40px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-alt { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

/* Join form */
.join { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.form {
  display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.field input:invalid[data-touched] { border-color: var(--err); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; cursor: pointer; background: var(--bg);
}
.pills input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form-status { margin: 0; font-size: 14.5px; min-height: 1.4em; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--err); }
.form .fineprint { margin-top: 0; }
.hp { position: absolute; left: -9999px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 28px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer-inner { display: grid; gap: 4px; }
.footer p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .join { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .plan-featured { margin-top: 10px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner .btn-small { margin-left: auto; }
  .hero { padding: 44px 0 48px; }
  .section { padding: 56px 0; }
  .features { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
  .demo, .form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
