:root {
  --bg: #ffffff;
  --alt: #f3f7f6;
  --ink: #10211f;
  --muted: #4a5d5a;
  --line: #d8e2e0;
  --brand: #0f766e;
  --brand-dark: #0b5953;
  --pos: #0b6b3a;
  --neg: #a4262c;
  --radius: 12px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #b45309; outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1.5rem; min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.15rem; color: var(--brand); text-decoration: none;
}
.bar nav { margin-left: auto; }
.bar ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.bar nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: .5rem 0; display: inline-block; }
.bar nav a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block; border: 2px solid var(--brand); background: var(--brand); color: #fff;
  font: inherit; font-weight: 600; padding: .75rem 1.4rem; border-radius: 10px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-small { padding: .5rem 1rem; font-size: .9375rem; }
.btn-ghost { background: transparent; color: var(--brand-dark); }
.btn-ghost:hover { background: var(--alt); color: var(--brand-dark); }

/* Hero */
.hero { padding: 4rem 0 2.5rem; background: linear-gradient(180deg, var(--alt), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .05em; font-size: .9375rem; font-weight: 700; color: var(--brand); margin: 0 0 .75rem; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.02em; }
.lead { max-width: 58ch; font-size: 1.15rem; color: var(--muted); margin: 0 0 1.75rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.formats { margin: 1.5rem 0 0; color: var(--muted); font-size: .9375rem; }
.formats span {
  white-space: nowrap;
  display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: .1rem .55rem; border-radius: 6px; font-weight: 600; font-size: .9375rem; margin-left: .25rem;
}

.inline-form { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 520px; }
.inline-form input { flex: 1 1 220px; width: auto; min-width: 0; }
.inline-form .err { flex: 1 1 100%; margin: 0; }
.reason { margin: .9rem 0 0; max-width: 58ch; }
.fine { margin: .35rem 0 0; font-size: .9375rem; color: var(--muted); }

.toggle { display: inline-flex; border: 1px solid #667a77; border-radius: 10px; padding: 3px; gap: 3px; background: #fff; margin-bottom: 1rem; }
.toggle button { font: inherit; font-size: .9375rem; font-weight: 600; border: 0; background: transparent; color: var(--ink); padding: .4rem .9rem; min-height: 40px; border-radius: 7px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.toggle button[aria-pressed="false"]:hover { background: var(--alt); }

.proof-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 10px 30px rgba(16,33,31,.08);
}
.proof-card figcaption { font-size: .9375rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .75rem; }
.proof-card dl { margin: 0; font-variant-numeric: tabular-nums; }
.proof-card dl div { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.proof-card dt { color: var(--muted); }
.proof-card dd { margin: 0; font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.proof-card .sum { border-bottom: 2px solid var(--ink); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.verdict { margin: 1rem 0 .25rem; padding: .6rem .8rem; background: #e6f4ee; color: var(--pos); border-radius: 8px; font-weight: 700; }
.verdict.warn { background: #fbeaea; color: var(--neg); }
.row-flag { margin: 1rem 0 0; padding: .55rem .8rem; background: #fff6e0; border-left: 4px solid #b45309; border-radius: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.row-flag .tag { display: inline-block; background: #b45309; color: #fff; font-weight: 700; font-size: .9375rem; padding: 0 .45rem; border-radius: 4px; margin-right: .35rem; }
.sample-note { margin: .5rem 0 0; font-size: .9375rem; color: var(--muted); }

/* Guarantees */
.guarantees { border-block: 1px solid var(--line); background: #fff; }
.guarantees ul { list-style: none; margin-block: 0; padding: 1rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem 1.5rem; }
.guarantees li { font-weight: 600; padding-left: 1.6rem; position: relative; line-height: 1.4; }
.guarantees li::before { content: "✓"; position: absolute; left: 0; color: var(--pos); font-weight: 800; }

/* Sections */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--alt); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 1.5rem; letter-spacing: -.01em; }
h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.section-lead { color: var(--muted); margin: -.75rem 0 2rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps p { margin: 0; color: var(--muted); }
.num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: .75rem;
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p { margin: 0; color: var(--muted); }
code { background: var(--alt); padding: .05rem .35rem; border-radius: 4px; font-size: .95em; }
.about { padding: 3rem 0 1.5rem; }
.about h2 { font-size: 1.25rem; }
.about-text { max-width: 62ch; margin: 0; color: var(--muted); font-size: 1rem; }
.card code { white-space: nowrap; }

.sample-out { margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--alt); }
.sample-out p { margin: 0 0 .75rem; color: var(--muted); }
.sample-out ul { margin: 0; padding-left: 1.1rem; }
.sample-out li { margin: .25rem 0; }

/* Pricing */
.group { margin: 2rem 0 1rem; font-size: 1.05rem; }
.group span { font-weight: 400; color: var(--muted); font-size: .9375rem; margin-left: .5rem; }
.plans { display: grid; gap: 1.25rem; }
.plans-3 { grid-template-columns: repeat(3, 1fr); }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.plan.featured { border: 2px solid var(--brand); }
.badge { display: inline-block; margin: 0 0 .5rem; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--alt); color: var(--ink); font-size: .9375rem; font-weight: 600; }
.group-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 2rem 0 1rem; }
.group-row .group { margin: 0; }
.group-row .toggle { margin: 0; }
.plan h4 { margin: 0; font-size: 1rem; color: var(--muted); }
.price { font-size: 2.2rem; font-weight: 800; margin: .25rem 0 0; line-height: 1.2; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.per { margin: 0 0 1rem; font-weight: 600; }
.plan ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .9375rem; }
.cta-center { text-align: center; margin-top: 2.5rem; }

/* FAQ */
details { max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .75rem; padding: 0 1.25rem; }
summary { cursor: pointer; font-weight: 600; padding: 1rem 0; line-height: 1.4; }
details[open] { border-color: var(--brand); }
details p { margin: 0 0 1rem; color: var(--muted); max-width: 62ch; }

/* Form */
.stack-form { display: grid; gap: 1.1rem; max-width: 520px; }
.stack-form .btn { justify-self: start; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
input, select {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #667a77;
  border-radius: 8px; background: #fff; color: var(--ink);
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--neg); border-width: 2px; }
.err { color: var(--neg); margin: .3rem 0 0; font-size: .9375rem; }
.signup-result { max-width: 520px; }
.status { margin: 1.25rem 0 0; font-weight: 600; }
.status:empty { display: none; }
.status.ok { padding: 1rem; background: #e6f4ee; color: var(--pos); border-radius: 8px; }
.followup { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.followup p { margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Footer */
.site-footer { background: var(--ink); color: #cfdcda; padding: 2.5rem 0; }
.site-footer a { color: #fff; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 1rem 0; }
.small { font-size: .9375rem; color: #9db1ae; margin: 0; }

@media (max-width: 820px) {
  .hero-grid, .steps, .cards, .plans-3 { grid-template-columns: 1fr; }
  .guarantees ul { grid-template-columns: 1fr 1fr; }
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
  .hero { padding-top: 2.5rem; }
  .inline-form .btn, .stack-form .btn, .btn-row .btn { flex: 1 1 100%; width: 100%; text-align: center; }
  .btn-small { min-height: 44px; display: inline-flex; align-items: center; }
  .group span { display: block; margin: .15rem 0 0; }
  .section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 480px) {
  .guarantees ul { grid-template-columns: 1fr; }
}

/* Legal pages */
.prose { max-width: 720px; padding: 3rem 0 4rem; }
.prose h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.prose p, .prose li { color: var(--ink); }
.prose .meta { color: var(--muted); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
