:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1b1d22;
  --muted: #5b6070;
  --line: #e6e3dc;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e3f2ef;
  --warn: #b45309;
  --bad: #b91c1c;
  --good: #15803d;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #181b21;
    --ink: #eceef2;
    --muted: #a3a8b5;
    --line: #2a2e37;
    --accent: #2dd4bf;
    --accent-ink: #062320;
    --accent-soft: #13302c;
    --warn: #f59e0b;
    --bad: #f87171;
    --good: #4ade80;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Nav */
.nav { 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); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 88px 0 64px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 6vw, 60px); margin-top: 18px; max-width: 18ch; }
.hero h1 span { color: var(--muted); font-weight: 400; display: block; font-size: .55em; margin-top: 12px; letter-spacing: -0.01em; max-width: 30ch; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 600; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; margin: 0; }
.card p { color: var(--muted); margin: 0; }
.card .meta { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.card .btn { align-self: flex-start; margin-top: auto; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tag-real { background: #dcfce7; color: #166534; }
@media (prefers-color-scheme: dark) { .tag-real { background: #12341f; color: #86efac; } }

ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.checks li { padding-left: 26px; position: relative; color: var(--muted); }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 28px; color: var(--accent); display: block; margin-bottom: 6px; }
.step h3 { font-size: 17px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

.contact { text-align: center; }
.contact .section-head { margin: 0 auto 24px; }
.contact .cta-row { justify-content: center; }

footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Sample pages */
.banner { background: var(--accent-soft); color: var(--ink); font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.banner .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.banner a { font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.bad { color: var(--bad); font-weight: 600; }
.good { color: var(--good); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }

pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: var(--radius); overflow-x: auto; font-size: 13px; line-height: 1.5; }

article.seo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); max-width: 780px; margin: 0 auto 32px; }
article.seo h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); }
article.seo h2 { font-size: 24px; margin-top: 1.6em; }
article.seo h3 { font-size: 19px; margin-top: 1.4em; }
article.seo p, article.seo li { color: var(--ink); }
.seo-meta { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 24px; color: var(--muted); }
.seo-meta b { color: var(--ink); }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
