:root {
  --brand: #0a855c;
  --brand-strong: #076b4a;
  --brand-soft: #e3f4ec;
  --ink: #1a1d1f;
  --ink-2: #4f5559;
  --ink-3: #7a8085;
  --bg: #ffffff;
  --bg-2: #f6f7f5;
  --surface: #ffffff;
  --line: #e4e6e3;
  --critical: #c4320a;
  --critical-soft: #fde9e4;
  --warning: #8a5a00;
  --warning-soft: #fff3d6;
  --code-bg: #f1f2ef;
  --shadow: 0 1px 2px rgb(16 24 20 / 6%), 0 12px 32px -12px rgb(16 24 20 / 18%);
  --radius: 14px;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3cc48d;
    --brand-strong: #6fd8ad;
    --brand-soft: #12301f;
    --ink: #eef1ee;
    --ink-2: #b6bdb8;
    --ink-3: #858c87;
    --bg: #0f1311;
    --bg-2: #151a17;
    --surface: #1a201c;
    --line: #2a322d;
    --critical: #ff8a6b;
    --critical-soft: #3a1b14;
    --warning: #f2c35b;
    --warning-soft: #33280f;
    --code-bg: #121714;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 18px; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
nav.links { display: flex; gap: 22px; margin-left: auto; }
nav.links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
nav.links a:hover { color: var(--ink); }
@media (max-width: 760px) { nav.links { display: none; } .top .btn { margin-left: auto; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06140d; } }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 48px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: 19px; color: var(--ink-2); margin-top: 20px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.fine { font-size: 14px; color: var(--ink-3); margin-top: 14px; }

/* App mock */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-size: 14px;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-3); }
.mock-head { padding: 18px 18px 6px; }
.mock-head .big { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.mock-head .sub { color: var(--ink-2); font-size: 13px; }
.meter { height: 8px; border-radius: 99px; background: var(--critical-soft); margin: 12px 18px 6px; overflow: hidden; display: flex; }
.meter b { display: block; height: 100%; background: var(--brand); width: 58%; }
.meter s { display: block; height: 100%; background: var(--warning); opacity: 0.55; width: 27%; text-decoration: none; }
.legend { display: flex; gap: 14px; padding: 0 18px 12px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.legend .ok { color: var(--brand); }
.legend .hm { color: var(--warning); }
.legend .no { color: var(--critical); }
.legend span { color: var(--ink-3); }
.legend span.ok::before { background: var(--brand); }
.legend span.hm::before { background: var(--warning); }
.legend span.no::before { background: var(--critical); }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.thumb { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--bg-2), var(--line)); }
.thumb.none { background: repeating-linear-gradient(45deg, var(--bg-2) 0 6px, var(--line) 6px 7px); }
.row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pill.block { background: var(--critical-soft); color: var(--critical); }
.pill.match { background: var(--warning-soft); color: var(--warning); }
.pill.done { background: var(--brand-soft); color: var(--brand); }
.row .act { font-size: 12.5px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.mock-foot { display: flex; gap: 8px; padding: 12px 18px; background: var(--bg-2); border-top: 1px solid var(--line); flex-wrap: wrap; }
.chip { font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 480px) { .row { grid-template-columns: 1fr auto; } .thumb { display: none; } }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-top: 10px; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin-top: 14px; }
@media (max-width: 600px) { section { padding: 64px 0; } }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proof div { background: var(--surface); padding: 24px; }
.proof b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.proof span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }
.proof-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 18px;
}
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--ink-2); margin-top: 10px; }

/* Rules */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }
.rules h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.rules .card > p { margin-top: 8px; }
.rules ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 2px; }
.rules li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rules li small { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.tag.block { background: var(--critical-soft); color: var(--critical); }
.tag.match { background: var(--warning-soft); color: var(--warning); }

/* Before/after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
@media (max-width: 860px) { .ba { grid-template-columns: 1fr; } }
.ba .card { padding: 0; overflow: hidden; }
.ba header { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.ba pre {
  margin: 0; padding: 20px; font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg); white-space: pre-wrap; word-break: break-word; min-height: 200px; color: var(--ink);
}
.ba .bad mark { background: var(--critical-soft); color: var(--critical); border-radius: 3px; padding: 0 1px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 22px; height: 22px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
@media (prefers-color-scheme: dark) { .badge { color: #06140d; } }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; }
.price small { font-size: 16px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 800; }
.plan li.no::before { content: "–"; color: var(--ink-3); }
.plan li.no { color: var(--ink-3); }
.credits { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 20px; max-width: 880px; }
@media (max-width: 760px) { .credits { grid-template-columns: 1fr; } }
.credits table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 14px; }
.credits td { padding: 9px 0; border-top: 1px solid var(--line); }
.credits td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.credits h3 { font-size: 17px; }

/* FAQ */
.faq { max-width: 800px; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); padding-bottom: 20px; }

/* Closing */
.closing { text-align: center; }
.closing h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; max-width: 760px; margin: 0 auto; }
.closing p { color: var(--ink-2); font-size: 18px; margin: 16px auto 0; max-width: 560px; }
.closing .cta-row { justify-content: center; }

/* Grid and flex children default to min-width: auto, which lets one
   unbreakable label push the whole page wider than a phone. */
.hero .wrap > *, .steps > *, .rules > *, .ba > *, .features > *, .plans > *, .credits > *, .proof > * { min-width: 0; }
.ba pre { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .rules li { grid-template-columns: 1fr; gap: 2px; }
  .rules li small { white-space: normal; }
  .ba header .tag { white-space: nowrap; }
  .btn { white-space: normal; text-align: center; }
  .cta-row .btn { flex: 1 1 100%; }
}

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer nav { display: flex; gap: 20px; }

/* Language switch */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg-2); }
.lang a { font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: none; padding: 4px 10px; border-radius: 999px; }
.lang a[aria-current="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgb(0 0 0 / 10%); }
@media (max-width: 760px) { .top .lang { margin-left: auto; } .top .lang + .btn { margin-left: 0; } }

/* Legal pages */
.legal-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.legal-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-top: 10px; }
.legal-hero p { color: var(--ink-2); font-size: 18px; margin-top: 16px; max-width: 46em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips span { font-size: 13px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; }
.legal { padding: 48px 0 88px; }
.legal .wrap, .legal-hero .wrap { max-width: 820px; }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 44px; }
.legal .toc h2 { margin: 0 0 12px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.legal h2 { font-size: 24px; font-weight: 750; margin: 44px 0 12px; scroll-margin-top: 84px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 6px; }
.legal code { font-size: 14px; background: var(--code-bg); padding: 1px 6px; border-radius: 5px; }
.note { margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 8px; color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 650; }
@media (max-width: 600px) { .legal table, .legal tbody, .legal tr, .legal td, .legal th { display: block; } .legal thead { display: none; } .legal td { border-top: 0; padding: 2px 0; } .legal tr { border-top: 1px solid var(--line); padding: 10px 0; } }
