:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #1f2a2e;
  --muted: #55636a;
  --line: #e4ddd2;
  --accent: #1f6f6b;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0ee;
  --warm: #f4e7d3;
  --radius: 14px;
  --max: 1040px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a1c;
    --surface: #1c2427;
    --ink: #eef2f1;
    --muted: #a7b3b6;
    --line: #2d383c;
    --accent: #5cc2b9;
    --accent-ink: #0d1a19;
    --accent-soft: #1d3331;
    --warm: #2a2620;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 16px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.logo {
  font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
.nav a:hover { text-decoration: underline; }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
}

/* Buttons and forms */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }

.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.signup input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  font: inherit; font-size: 17px;
  padding: 12px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.signup .btn { flex: 0 0 auto; }
.form-note { font-size: 15px; color: var(--muted); margin: 10px 0 0; }
.form-status { font-weight: 600; margin: 12px 0 0; min-height: 1.6em; }
.hp { position: absolute; left: -9999px; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 20px; }
.lead { font-size: 21px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

.hero { padding: 88px 0 72px; }
.hero h1 { max-width: 760px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card p { margin: 0; color: var(--muted); }
.card h3 { margin-bottom: 8px; }
.card .icon { font-size: 26px; display: block; margin-bottom: 10px; }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 18px; left: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; display: grid; place-items: center; font-size: 16px;
}

.band { background: var(--warm); }
.band p { max-width: 680px; }

/* Pricing */
.plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan .price { font-size: 34px; font-weight: 800; color: var(--ink); }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plan.featured { border: 2px solid var(--accent); }
.tag {
  align-self: flex-start; font-size: 13px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
  padding: 4px 10px; border-radius: 999px;
}

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 700; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Prose pages */
.prose { max-width: 720px; }
.prose h2 { margin-top: 40px; font-size: 26px; }
.tldr {
  background: var(--accent-soft); border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0;
}
.tldr ul { margin: 8px 0 0; padding-left: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }
.disclaimer { flex-basis: 100%; margin: 0; }
