:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-tint: #f0fdfa;
  --brand: #0f766e;
  --brand-ink: #115e59;
  --brand-soft: #ccfbf1;
  --err: #b42318;
  --err-bg: #fef3f2;
  --warn: #b54708;
  --warn-bg: #fffaeb;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --tip: #175cd3;
  --tip-bg: #eff8ff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; margin: 1.6em 0 0.6em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: 0.4em; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin: 0.25em 0; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.96); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 7px 11px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-ink); background: var(--bg-tint); }
.nav a.nav-cta { background: var(--brand); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--brand-ink); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 72px; padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0.4em 0 0.8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35em 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--brand-ink); text-decoration: underline; }
.fineprint { font-size: 0.82rem; color: var(--muted); margin-top: 22px; max-width: 900px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 0.98rem; padding: 11px 18px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background 0.15s, border-color 0.15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { padding: 6px 11px; font-size: 0.85rem; border-radius: 7px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* hero */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: 820px; margin: 0.2em 0 0.4em; }
.hero .lede { font-size: 1.2rem; color: var(--ink-2); max-width: 720px; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.04em; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--ink-2); font-size: 0.93rem; }
.trust-row span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* sections and cards */
.section { padding: 48px 0 8px; }
.section h2:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
a.card { color: inherit; text-decoration: none; display: block; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--brand); transform: translateY(-1px); }
.card .card-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--bg-tint); color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; font-family: var(--mono); }
.card .more { color: var(--brand-ink); font-weight: 600; font-size: 0.95rem; }

.code-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.code-list li { margin: 0; }
.code-list a { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); background: #fff; height: 100%; }
.code-list a:hover { border-color: var(--brand); }
.code-list .code { font-family: var(--mono); font-size: 0.85rem; color: var(--brand-ink); font-weight: 650; }
.code-list .desc { font-size: 0.93rem; color: var(--ink-2); }

.pill { display: inline-block; font-family: var(--mono); font-size: 0.8rem; font-weight: 650; padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-tip { background: var(--tip-bg); color: var(--tip); }

/* callouts */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--bg-tint); border-radius: 8px; padding: 14px 18px; margin: 1.2em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--warn); background: var(--warn-bg); }
.callout-err { border-left-color: var(--err); background: var(--err-bg); }
.callout-tip { border-left-color: var(--tip); background: var(--tip-bg); }
.callout strong:first-child { display: block; margin-bottom: 2px; }

/* article */
.article { padding-top: 28px; }
.article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2em; }
.tldr { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius); padding: 16px 20px; margin: 1em 0 1.6em; }
.tldr h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 6px; }
.tldr p:last-child, .tldr ul:last-child { margin-bottom: 0; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1em 0 1.4em; }
.compare > div { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.compare h4 { margin: 0 0 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.compare .bad { background: var(--err-bg); border-color: #fecdca; }
.compare .bad h4 { color: var(--err); }
.compare .good { background: var(--ok-bg); border-color: #abefc6; }
.compare .good h4 { color: var(--ok); }
.compare p { font-family: var(--mono); font-size: 0.86rem; margin: 0; white-space: pre-wrap; word-break: break-word; }
pre.code { font-family: var(--mono); font-size: 0.86rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }
.code-search { max-width: 520px; margin-top: 16px; }
.err-group h2 { font-size: 1.2rem; }
.article .meta .mono { color: var(--ink-2); }
table.seen td:nth-child(2) { white-space: nowrap; }
.sources { font-size: 0.9rem; }
.sources li { word-break: break-word; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 40px; margin: 0.9em 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 27px; height: 27px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.cta-box { border: 1px solid var(--brand); border-radius: var(--radius); background: var(--bg-tint); padding: 20px 22px; margin: 2em 0; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-box p { margin: 0; max-width: 520px; }
table { border-collapse: collapse; width: 100%; margin: 1em 0 1.4em; font-size: 0.94rem; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--bg-soft); font-weight: 650; }
.table-wrap { overflow-x: auto; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 9px; padding: 0 16px; margin: 10px 0; background: #fff; }
.faq summary { cursor: pointer; padding: 13px 0; font-weight: 600; list-style: none; position: relative; padding-right: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 10px; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }

/* tool layout */
.tool-head { padding: 34px 0 6px; }
.tool-head h1 { margin-bottom: 0.25em; }
.tool-head .lede { color: var(--ink-2); font-size: 1.08rem; max-width: 760px; }
.privacy-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 4px 12px; margin-top: 4px; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; margin-top: 22px; }
.tool-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow); }
.tool-out { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 4px; }
.tool-out.static { position: static; max-height: none; overflow: visible; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; padding: 0; }
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 5px; color: var(--ink); }
.field .hint { font-size: 0.83rem; color: var(--muted); margin-top: 4px; }
input[type="text"], input[type="url"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
textarea.tall { min-height: 160px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.93rem; line-height: 1.35; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.seg label { padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 0.92rem; border-right: 1px solid var(--line-2); }
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--brand-ink); }
.seg label:has(input:checked) { background: var(--bg-tint); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.out-block { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; box-shadow: var(--shadow); }
.out-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius) var(--radius) 0 0; }
.out-head h3 { margin: 0; font-size: 0.95rem; }
.out-head .count { font-size: 0.78rem; color: var(--muted); font-family: var(--mono); margin-left: auto; }
.out-body { padding: 12px 14px; white-space: pre-wrap; word-break: break-word; font-size: 0.92rem; line-height: 1.55; }
.out-body.mono { font-family: var(--mono); font-size: 0.84rem; }
.out-body ol, .out-body ul { white-space: normal; margin: 0; padding-left: 20px; }
.copied { color: var(--ok) !important; border-color: var(--ok) !important; }

/* wizard steps */
.wizard-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; padding: 0; list-style: none; }
.wizard-steps li { margin: 0; }
.wizard-steps button { font: inherit; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.wizard-steps button[aria-current="step"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.wizard-panel[hidden] { display: none; }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }

/* preflight results */
.score { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.score .big { font-size: 1.05rem; font-weight: 700; }
.finding { border: 1px solid var(--line); border-left-width: 4px; border-radius: 9px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.finding.error { border-left-color: var(--err); }
.finding.warn { border-left-color: var(--warn); }
.finding.tip { border-left-color: var(--tip); }
.finding.pass { border-left-color: var(--ok); }
.finding h4 { margin: 0 0 4px; font-size: 0.98rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.finding p { margin: 4px 0; font-size: 0.92rem; color: var(--ink-2); }
.finding .fix { color: var(--ink); }
.finding .fix::before { content: "Fix: "; font-weight: 700; }
.finding .evidence { font-family: var(--mono); font-size: 0.8rem; background: var(--bg-soft); border-radius: 6px; padding: 4px 8px; display: inline-block; word-break: break-word; }
.finding .field-tag { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.passes summary { cursor: pointer; font-weight: 600; color: var(--ok); margin: 10px 0; }
.passes ul { padding-left: 18px; font-size: 0.9rem; color: var(--ink-2); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.manual-list { list-style: none; padding: 0; }
.manual-list li { margin: 6px 0; }

/* pricing */
.price-card { border: 2px solid var(--brand); border-radius: 14px; padding: 28px; background: #fff; box-shadow: 0 8px 30px rgba(15, 118, 110, 0.12); }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 26px; position: relative; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.waitlist { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.waitlist[hidden] { display: none; }
.form-msg { font-size: 0.92rem; margin-top: 8px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .tool { grid-template-columns: 1fr; }
  .tool-out { position: static; max-height: none; overflow: visible; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .compare, .row-2, .checks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
  .header-inner { gap: 2px; min-height: 0; padding-top: 10px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 8px; font-size: 0.9rem; white-space: nowrap; flex: none; }
  .nav a.nav-cta { margin-left: 2px; }
  .hero { padding: 40px 0 28px; }
}
@media print {
  .site-header, .site-footer, .btn, .tool-form { display: none !important; }
  .tool { display: block; }
}
