:root {
      --bg: #fbfaf7; --bg-alt: #f3f1ec; --fg: #17171a; --muted: #5f5e5a; --line: #e2dfd8;
      --card: #ffffff; --accent: #157347; --accent-strong: #0f5c38; --accent-fg: #ffffff;
      --accent-soft: #e5f3eb; --danger: #b42318; --danger-soft: #fdecea; --warn: #9a4d0b;
      --code: #f1efe9; --shadow: 0 1px 2px rgba(23,23,26,.05), 0 12px 32px rgba(23,23,26,.07);
      --radius: 14px;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --bg: #111211; --bg-alt: #171817; --fg: #eeede9; --muted: #a6a59f; --line: #2a2b29;
        --card: #1a1b1a; --accent: #4cc38a; --accent-strong: #6fd6a3; --accent-fg: #07170e;
        --accent-soft: #15281e; --danger: #ff8a7a; --danger-soft: #2c1714; --warn: #f0a868;
        --code: #222321; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
      }
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; background: var(--bg); color: var(--fg);
           font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
           -webkit-font-smoothing: antialiased; }
    a { color: var(--accent); }
    code, .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
    code { background: var(--code); padding: 1px 6px; border-radius: 6px; }
    .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
    section { padding: 88px 0; }
    section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
               text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
    h1 { font-size: clamp(36px, 6.4vw, 66px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; }
    h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 800; }
    h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.01em; }
    p { margin: 0 0 14px; }
    .lead { font-size: clamp(18px, 2.3vw, 21px); color: var(--muted); max-width: 720px; }
    .muted { color: var(--muted); }
    .center { text-align: center; }
    .center .lead { margin-left: auto; margin-right: auto; }
    .btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-fg);
           padding: 13px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 0;
           cursor: pointer; font-size: 16px; transition: transform .12s ease, background .12s ease; }
    .btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
    .btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
    .btn.ghost:hover { background: var(--card); }
    .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
    .trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
    .trust span::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 6px; }

    /* header */
    header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
                  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
    header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
    .brand { color: var(--fg); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
    .brand span { color: var(--accent); }
    nav.links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
    nav.links a { color: var(--muted); text-decoration: none; }
    nav.links a:hover { color: var(--fg); }
    nav.links .btn { padding: 9px 16px; font-size: 14px; color: var(--accent-fg); }
    @media (max-width: 760px) { nav.links a:not(.btn) { display: none; } }

    /* hero */
    .hero { padding: 72px 0 64px; }
    .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
    @media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
    .hero h1 .money { color: var(--danger); white-space: nowrap; }

    /* PR comment mock */
    .pr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
    .pr-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
    .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 15px; }
    .pr-head b { font-weight: 700; }
    .pr-head .tag { margin-left: auto; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: var(--muted); }
    .pr-body { padding: 18px 18px 8px; }
    .pr-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 4px; }
    .pr-total strong { font-size: 15px; }
    .cost { font-weight: 800; color: var(--danger); background: var(--danger-soft); padding: 2px 10px; border-radius: 8px; font-size: 18px; white-space: nowrap; }
    .pr-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
    .pr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
    .pr-table th, .pr-table td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
    .pr-table th { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
    .pr-table td.num { white-space: nowrap; font-weight: 700; color: var(--danger); }
    .pr-fix { margin: 12px 0 14px; padding: 12px 14px; background: var(--accent-soft); border-radius: 10px; font-size: 14px; }
    .pr-fix b { color: var(--accent-strong); }
    .scroll-x { overflow-x: auto; }
    .example-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }

    /* cards & grids */
    .grid { display: grid; gap: 18px; }
    .g2 { grid-template-columns: repeat(2, 1fr); }
    .g3 { grid-template-columns: repeat(3, 1fr); }
    .g4 { grid-template-columns: repeat(4, 1fr); }
    @media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
    .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
    .card.lift { box-shadow: var(--shadow); }
    .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; background: var(--accent-soft); }
    .icon.red { background: var(--danger-soft); }
    .snippet { margin-top: 12px; background: var(--code); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.55; overflow-x: auto; white-space: pre; }
    .snippet .bad { color: var(--danger); }
    .snippet .cm { color: var(--muted); }
    .section-head { max-width: 760px; margin-bottom: 40px; }
    .section-head.center { margin-left: auto; margin-right: auto; }

    /* timeline */
    .timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
    @media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }
    .lane { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--card); }
    .lane.today { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
    .lane.with { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
    .lane h3 { display: flex; align-items: center; gap: 8px; }
    .steps { list-style: none; margin: 14px 0 0; padding: 0; }
    .steps li { position: relative; padding: 0 0 16px 26px; }
    .steps li::before { content: ""; position: absolute; left: 6px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
    .steps li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
    .steps li:last-child::after { display: none; }
    .lane.today .steps li:last-child::before { background: var(--danger); }
    .lane.with .steps li::before { background: var(--accent); }
    .steps b { display: block; }
    .steps span { color: var(--muted); font-size: 14.5px; }

    /* how */
    .step-num { font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--accent); font-size: 14px; margin-bottom: 8px; display: block; }

    /* comparison */
    table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
    table.compare th, table.compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
    table.compare th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
    table.compare td.yes { color: var(--accent); font-weight: 700; }
    table.compare td.no { color: var(--muted); }
    table.compare tr.us td { background: var(--accent-soft); font-weight: 600; }
    table.compare tr.us td:first-child { border-radius: 10px 0 0 10px; }
    table.compare tr.us td:last-child { border-radius: 0 10px 10px 0; }

    /* calculator */
    .calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
    @media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
    .field { margin-bottom: 18px; }
    .field label { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 6px; gap: 12px; }
    .field label output { font-family: "JetBrains Mono", monospace; color: var(--accent); }
    input[type=range] { width: 100%; accent-color: var(--accent); }
    select, input[type=email], input[type=text] { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; }
    .result { display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 25%, var(--line)); border-radius: var(--radius); padding: 28px 20px; }
    .result .big { font-size: clamp(40px, 7vw, 60px); font-weight: 800; letter-spacing: -.03em; color: var(--danger); line-height: 1.05; }
    .result .yr { font-weight: 700; margin-top: 6px; }
    .result .vs { margin-top: 16px; font-size: 15px; color: var(--muted); }

    /* pricing */
    .price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
    .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
    .plan ul { list-style: none; padding: 0; margin: 16px 0 22px; }
    .plan li { padding: 5px 0 5px 26px; position: relative; }
    .plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
    .plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
    .badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
    .plan .btn { width: 100%; justify-content: center; }

    /* faq */
    details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
    summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
    summary::-webkit-details-marker { display: none; }
    summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 20px; line-height: 1; }
    details[open] summary::after { content: "–"; }
    details p { margin: 12px 0 0; color: var(--muted); }

    /* final cta */
    .final { text-align: center; background: var(--fg); color: var(--bg); border-radius: 22px; padding: 64px 24px; }
    .final h2 { color: var(--bg); }
    .final .lead { color: color-mix(in srgb, var(--bg) 75%, var(--fg)); margin: 0 auto 26px; }
    .final .btn { background: var(--accent); color: var(--accent-fg); }
    .final .trust { justify-content: center; color: color-mix(in srgb, var(--bg) 70%, var(--fg)); }

    form.row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 640px; }
    form.row input { flex: 1 1 200px; width: auto; }
    footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
    footer a { color: var(--muted); }
    .stack-list { display: flex; flex-wrap: wrap; gap: 10px; }
    .chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14.5px; }
    .chip.soon { color: var(--muted); font-weight: 500; border-style: dashed; }

/* ---------- shared site additions ---------- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-fg); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
nav.links a.active { color: var(--fg); font-weight: 600; }
.menu-btn { display: none; background: transparent; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  nav.links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
              gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  nav.links.open { display: flex; }
  nav.links a:not(.btn) { display: block; padding: 10px 0; width: 100%; }
  nav.links .btn { margin-top: 8px; }
}
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 40px; font-size: 14.5px; color: var(--muted); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
footer.site h4 { color: var(--fg); font-size: 14px; margin: 0 0 10px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 6px 0; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--fg); text-decoration: underline; }
footer.site .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* page header for inner pages */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }

/* docs layout */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 40px 16px 24px; align-items: start; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 16px; } }
.docs-nav { position: sticky; top: 88px; font-size: 15px; }
@media (max-width: 900px) { .docs-nav { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--card); } }
.docs-nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.docs-nav a:hover { color: var(--fg); background: var(--card); }
.docs-nav a.active { color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.prose { max-width: 760px; min-width: 0; }
.prose h1 { font-size: clamp(30px, 4.5vw, 40px); margin: 0 0 12px; letter-spacing: -.025em; line-height: 1.15; }
.prose h2 { font-size: 23px; margin: 40px 0 12px; letter-spacing: -.015em; line-height: 1.25; scroll-margin-top: 84px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; scroll-margin-top: 84px; }
.prose p, .prose li { color: var(--fg); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose pre { background: var(--code); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0 20px; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13px; color: var(--muted); font-weight: 600; }
.prose .lead { margin-bottom: 24px; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card); border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.callout.warn { border-left-color: var(--warn); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; }
.pager small { display: block; color: var(--muted); }
.updated { color: var(--muted); font-size: 14px; }
.notfound { text-align: center; padding: 120px 0 80px; }
.notfound .code { font-size: 96px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
