:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --fg: #1b1c1a;
  --muted: #5f615c;
  --line: #e2e2dc;
  --accent: #0f6b4f;
  --accent-fg: #ffffff;
  --accent-soft: #e5f1ec;
  --warn: #8a4b00;
  --warn-soft: #fbf1e3;
  --err: #a31d1d;
  --code: #eeeee9;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121412;
    --surface: #1a1d1b;
    --fg: #ecede8;
    --muted: #a3a69f;
    --line: #2d312e;
    --accent: #3fb38a;
    --accent-fg: #0b1a14;
    --accent-soft: #17302a;
    --warn: #f0b36a;
    --warn-soft: #2e2416;
    --err: #ff8a80;
    --code: #242825;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: .88em; background: var(--code); padding: .08rem .32rem; border-radius: 4px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 0 0 .75rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 18px; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

main.wrap { padding-top: 40px; padding-bottom: 16px; }
section { margin: 0 0 48px; }
.eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; color: var(--muted); margin: 0 0 .5rem; font-weight: 600; }
.lead { font-size: 1.1rem; color: var(--fg); max-width: 60ch; margin: .8rem 0; }
.muted { color: var(--muted); }
.attribution { color: var(--muted); font-size: .95rem; margin: .6rem 0 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.buy .price { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.buy .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.buy ul { margin: 14px 0 18px; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.buy ul li { margin: .2rem 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.1rem; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn-primary { background: var(--accent); color: var(--accent-fg); width: 100%; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { width: auto; }
.hero-actions { margin-top: 20px; }

.msg { min-height: 1.4em; margin: .7rem 0 0; font-size: .92rem; }
.msg:empty { min-height: 0; margin: 0; }
.msg.err { color: var(--err); }
.msg.warn { color: var(--warn); }
.notice { margin: 0 0 20px; padding: .8rem 1rem; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: .95rem; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 36px 0 48px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.fact b { display: block; font-size: 1.25rem; letter-spacing: -.01em; }
.fact span { color: var(--muted); font-size: .88rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
ol.steps, ul.plain { padding-left: 1.2rem; margin: 0; }
ol.steps li, ul.plain li { margin: .35rem 0; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.plan h2 { font-size: 1.15rem; margin: 0 0 .3rem; }
.plan .price { font-size: 2rem; font-weight: 700; margin: .6rem 0 0; letter-spacing: -.02em; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 1.1rem; color: var(--muted); margin: 14px 0 20px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

.faq dt { font-weight: 600; margin-top: 1rem; }
.faq dd { margin: .25rem 0 0; color: var(--muted); }

.download-box { max-width: 620px; }
.download-box .btn-primary { width: auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .95rem; margin: 16px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.doc { max-width: 720px; }
.doc h1 { font-size: 2rem; margin: 0 0 .25rem; }
.doc h2 { font-size: 1.15rem; margin: 1.8rem 0 .4rem; }

.site-foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 24px 0 40px; color: var(--muted); font-size: .88rem; }
.site-foot p { margin: .3rem 0; max-width: 80ch; }
.site-foot a { color: inherit; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .plans { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dict thead { display: none; }
  .dict tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .dict tr:last-child { border-bottom: 0; }
  .dict td { padding: 0; border: 0; }
  .dict td:nth-child(2) { color: var(--muted); font-size: .85rem; align-self: center; }
  .dict td:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 14px; }
  main.wrap { padding-top: 28px; }
}
