:root {
  --ink: #12202f;
  --ink-2: #3b4a5a;
  --ink-3: #6a7888;
  --line: #dfe5ec;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --brand: #0f5c4d;
  --brand-2: #127a65;
  --brand-tint: #e7f3f0;
  --warn: #8a5a00;
  --warn-tint: #fff6e0;
  --bad: #a3271f;
  --bad-tint: #fdecea;
  --good: #136c3a;
  --good-tint: #e8f5ec;
  --radius: 10px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--brand-2); }
a:hover { color: var(--brand); }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 15px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: 11px 18px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--brand-2); color: #fff; }
.btn.secondary { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.secondary:hover { background: var(--brand-tint); }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { padding: 64px 0 48px; background: linear-gradient(180deg, var(--bg-2), #fff); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; max-width: 820px; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 720px; margin: 0 0 26px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 10px; }

section { padding: 56px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 30px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 0 0 8px; }
p.sub { color: var(--ink-2); max-width: 720px; margin-top: 0; }

.grid { display: grid; gap: 20px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--ink-2); margin: 0; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-tint); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 18px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px;
}

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-size: 34px; font-weight: 800; margin: 6px 0 2px; }
.price-card .price small { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.price-card ul { padding-left: 18px; color: var(--ink-2); flex: 1; }
.price-card.featured { border: 2px solid var(--brand); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* Notices */
.notice { border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; font-size: 15px; }
.notice.info { background: var(--brand-tint); }
.notice.warn { background: var(--warn-tint); color: #4d3500; }
.notice.bad { background: var(--bad-tint); color: #5c1510; }
.notice.good { background: var(--good-tint); color: #0b3d20; }

/* Forms */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--ink-3); font-weight: 400; }
input[type=text], input[type=number], input[type=date], input[type=email], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c8d1db; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: var(--brand-2); }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.dropzone {
  border: 2px dashed #b9c4cf; border-radius: var(--radius); padding: 28px; text-align: center; background: var(--bg-2);
  cursor: pointer;
}
.dropzone.drag { border-color: var(--brand); background: var(--brand-tint); }

.tool-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.result-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 18px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.kv .v { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
code, pre { font-family: var(--mono); font-size: 13.5px; }
pre { background: #0f1b27; color: #dfe8f1; padding: 14px; border-radius: 8px; overflow-x: auto; }
.issues { list-style: none; padding: 0; margin: 0; }
.issues li { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.issues li.err::before { content: "Error: "; font-weight: 700; color: var(--bad); }
.issues li.warn::before { content: "Check: "; font-weight: 700; color: var(--warn); }

/* Article */
.article { max-width: 760px; }
.article h1 { font-size: 36px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.article h2 { font-size: 24px; margin-top: 36px; }
.article p, .article li { color: var(--ink-2); }
.article .meta { color: var(--ink-3); font-size: 14px; margin-bottom: 24px; }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-2); font-size: 14px; color: var(--ink-3); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: var(--ink); font-size: 14px; margin: 0 0 10px; }
.site-footer a { color: var(--ink-2); text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: var(--ink); }
.site-footer a.logo { display: flex; color: var(--ink); margin-bottom: 10px; }
.disclaimer { margin-top: 26px; font-size: 13px; color: var(--ink-3); max-width: 900px; }

.muted { color: var(--ink-3); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .grid.c3, .grid.c4, .grid.c2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: flex-start; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}
