:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5d5a54;
  --line: #e6e2da;
  --accent: #0f7b5f;
  --accent-ink: #ffffff;
  --accent-soft: #e3f2ec;
  --warn-soft: #fdf3e1;
  --warn: #8a5a00;
  --radius: 12px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121311;
    --surface: #1b1c1a;
    --text: #ecebe6;
    --muted: #a6a39b;
    --line: #2d2e2b;
    --accent: #3cc29a;
    --accent-ink: #08130f;
    --accent-soft: #15302a;
    --warn-soft: #2e2516;
    --warn: #e6b866;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-size: 15px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 16px 0; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted); }

/* Sheet mock */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet th, .sheet td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 9px 10px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet th { font-weight: 600; color: var(--muted); background: var(--bg); }
.sheet td.ai { background: var(--accent-soft); }
.sheet th.ai { color: var(--accent); }
.sheet tr:last-child td { border-bottom: none; }
.sheet th:last-child, .sheet td:last-child { border-right: none; }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em; margin: 0 0 12px; }
.section-intro { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; }
.price { font-size: 34px; font-weight: 700; margin: 8px 0; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.card ul { padding-left: 18px; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.card.featured { border-color: var(--accent); }

.callout { background: var(--warn-soft); border-radius: var(--radius); padding: 18px 20px; color: var(--text); }
.callout strong { color: var(--warn); }

/* Legal pages */
.doc { max-width: 760px; padding: 48px 16px 72px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 4.5vw, 40px); margin-top: 0; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc h3 { font-size: 17px; margin: 20px 0 6px; }
.doc .meta { color: var(--muted); margin-top: -4px; }
.doc li { margin-bottom: 6px; }
.doc code { font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; word-break: break-all; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .sheet { font-size: 13px; }
  .sheet th, .sheet td { padding: 8px 6px; }
}
