:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe8;
  --surface: #ffffff;
  --text: #1c2321;
  --muted: #5b6662;
  --border: #e1ddd3;
  --accent: #0f766e;
  --accent-strong: #0b5f58;
  --accent-soft: #e2f1ee;
  --accent-text: #ffffff;
  --warn: #b45309;
  --warn-soft: #fdf0dd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 28, 0.06), 0 8px 24px rgba(20, 30, 28, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121615;
    --bg-alt: #181d1c;
    --surface: #1d2322;
    --text: #e8ecea;
    --muted: #a0aba7;
    --border: #2c3533;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #163330;
    --accent-text: #06201d;
    --warn: #fbbf24;
    --warn-soft: #33270f;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121615;
  --bg-alt: #181d1c;
  --surface: #1d2322;
  --text: #e8ecea;
  --muted: #a0aba7;
  --border: #2c3533;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-soft: #163330;
  --accent-text: #06201d;
  --warn: #fbbf24;
  --warn-soft: #33270f;
  --shadow: none;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

section { padding: 72px 0; }
section:nth-of-type(even) { background: var(--bg-alt); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-strong); color: var(--accent-text); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.btn-small { padding: 8px 14px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }

.diagram { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.d-box { fill: var(--bg-alt); stroke: var(--border); stroke-width: 1.5; }
.d-down { fill: var(--warn-soft); stroke: var(--warn); stroke-dasharray: 4 3; }
.d-core { fill: var(--accent); }
.d-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.d-broken { stroke: var(--warn); stroke-dasharray: 5 5; }
.d-label { fill: var(--text); font-size: 12px; font-weight: 600; }
.d-sub { fill: var(--muted); font-size: 10px; }
.d-core-label { fill: var(--accent-text); font-size: 14px; font-weight: 700; }
.d-core-sub { fill: var(--accent-text); font-size: 10px; opacity: 0.85; }
.d-down-label { fill: var(--warn); font-size: 9px; font-weight: 600; }

.cards { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 720px) { .cards.two { grid-template-columns: repeat(2, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cards.two { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; }
.steps p { color: var(--muted); }

.agencies-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.agencies-box > div { max-width: 44em; }
.agencies-box p { color: var(--muted); margin: 0; }

.section-lead { color: var(--muted); max-width: 44em; }
.launch-offer { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0 32px; }
.plans { display: grid; gap: 20px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.plan-featured { border: 2px solid var(--accent); }
.plan h3 { color: var(--muted); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.price { font-size: 2.2rem; font-weight: 700; margin: 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.quota { font-weight: 600; margin: 4px 0 16px; }
.plan ul { padding-left: 18px; margin: 0; color: var(--muted); font-size: 0.95rem; }
.fineprint { color: var(--muted); font-size: 0.9rem; margin-top: 20px; }

.waitlist-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .waitlist-grid { grid-template-columns: 1fr 1.1fr; } }
.muted { color: var(--muted); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form input[type="email"], .form select, .form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.form .consent input { margin-top: 5px; }
.optional { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--warn); }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-row a { color: var(--muted); }

.legal { padding: 56px 0; max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.compare-table tbody th { font-weight: 600; width: 22%; }
.compare-table td { color: var(--muted); }
.compare-table .us { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.compare-table thead .us { color: var(--accent-strong); font-size: 1rem; }

@media (max-width: 859px) {
  .diagram { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 719px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
  .compare-table tbody th { width: 100%; font-size: 1rem; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
  .compare-table td { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 10px 16px; }
  .compare-table td::before { content: attr(data-label); font-weight: 600; color: var(--text); font-size: 0.85rem; }
  .compare-table tbody tr:last-child td { border-bottom: 1px solid var(--border); }
  .compare-table tbody tr td:last-child { border-bottom: 0; }
}

@media (min-width: 720px) {
  #design-partners { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .steps.steps-three { grid-template-columns: repeat(3, 1fr); }
}
