:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #0f1b2d;
  --muted: #536074;
  --line: #dfe4ec;
  --brand: #0e6e55;
  --brand-ink: #ffffff;
  --brand-soft: #e3f3ee;
  --accent: #1d4ed8;
  --pass: #0e7c5a;
  --pass-soft: #e3f3ee;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --fail: #b42318;
  --fail-soft: #fde8e6;
  --unknown: #5b6577;
  --unknown-soft: #eceff3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --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;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --surface: #121b2c;
    --surface-2: #18233a;
    --ink: #e8edf5;
    --muted: #a3afc2;
    --line: #26334d;
    --brand: #34c391;
    --brand-ink: #062118;
    --brand-soft: #123528;
    --accent: #7aa2ff;
    --pass: #4ade9b;
    --pass-soft: #123528;
    --warn: #fbbf4f;
    --warn-soft: #3a2c0f;
    --fail: #fb8a7e;
    --fail-soft: #3d1714;
    --unknown: #a3afc2;
    --unknown-soft: #1d2840;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #121b2c; --surface-2: #18233a; --ink: #e8edf5; --muted: #a3afc2; --line: #26334d;
  --brand: #34c391; --brand-ink: #062118; --brand-soft: #123528; --accent: #7aa2ff;
  --pass: #4ade9b; --pass-soft: #123528; --warn: #fbbf4f; --warn-soft: #3a2c0f; --fail: #fb8a7e; --fail-soft: #3d1714;
  --unknown: #a3afc2; --unknown-soft: #1d2840; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark .shield { fill: var(--brand); }
.brand-mark .tick { fill: none; stroke: var(--brand-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-weight: 750; font-size: 1.15rem; }
.brand-by { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand-by { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .05s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { padding: 8px 14px; font-size: .9rem; background: var(--brand); color: var(--brand-ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr .9fr; } }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6em; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.scan-form { display: flex; gap: 10px; margin-top: 20px; max-width: 560px; }
.scan-form input { flex: 1; min-width: 0; padding: 14px 16px; font: inherit; font-size: 1.05rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.scan-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
@media (max-width: 520px) { .scan-form { flex-direction: column; } }
.form-hint { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.form-hint.error { color: var(--fail); font-weight: 600; }
.trust-row { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.trust-row li::before { content: "✓"; color: var(--pass); font-weight: 800; margin-right: 6px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.mock-mail p { margin: 0 0 8px; overflow-wrap: anywhere; }
.mock-from span { color: var(--muted); }
.mock-from em { font-style: normal; font-weight: 700; }
.mock-subject { font-weight: 700; }
.mock-body { color: var(--muted); }
.mock-flag { margin-top: 14px !important; padding: 10px 12px; border-radius: 10px; background: var(--fail-soft); color: var(--fail); font-weight: 600; font-size: .92rem; }

/* Results */
.results { scroll-margin-top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; margin-bottom: 48px; max-width: 1048px; }
@media (min-width: 1080px) { .results { padding: 28px 32px; } }
.result-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.grade { flex: none; width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; background: var(--unknown-soft); color: var(--unknown); }
.grade.g-A { background: var(--pass-soft); color: var(--pass); }
.grade.g-B { background: var(--warn-soft); color: var(--warn); }
.grade.g-C, .grade.g-D, .grade.g-F { background: var(--fail-soft); color: var(--fail); }
.grade.loading { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .45; } to { opacity: 1; } }
.result-domain { margin: 0; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.result-headline { margin: 2px 0 4px; font-size: clamp(1.2rem, 2.6vw, 1.6rem); overflow-wrap: anywhere; }
.result-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.check .pill { grid-row: span 2; align-self: start; font-size: .75rem; font-weight: 800; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; text-transform: uppercase; }
.pill.pass { background: var(--pass-soft); color: var(--pass); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.fail { background: var(--fail-soft); color: var(--fail); }
.pill.unknown { background: var(--unknown-soft); color: var(--unknown); }
.check h3 { margin: 0; font-size: 1rem; }
.check p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.lookalikes { padding: 14px; border-radius: 12px; border: 1px dashed var(--line); margin-bottom: 18px; }
.lookalikes h3 { margin: 0 0 4px; font-size: 1rem; }
.lookalikes p { margin: 0; color: var(--muted); }
.lookalike-list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.lookalike-list li { overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-left: 6px; background: var(--fail-soft); color: var(--fail); }
.tag.neutral { background: var(--unknown-soft); color: var(--unknown); }
.cta-box { border-radius: 12px; padding: 18px; background: var(--brand-soft); margin-bottom: 18px; }
.cta-box h3 { margin-bottom: 6px; }
.cta-box p { color: var(--ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-block { border-top: 1px solid var(--line); padding: 10px 0; }
.detail-block summary { cursor: pointer; font-weight: 650; padding: 4px 0; }
.detail-block dl { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); gap: 6px 14px; margin: 10px 0; }
@media (max-width: 560px) { .detail-block dl { grid-template-columns: minmax(0, 1fr); } .detail-block dd { margin-bottom: 8px; } }
.detail-block dt { color: var(--muted); }
.detail-block dd { margin: 0; overflow-wrap: anywhere; }
.record { display: block; font-family: var(--mono); font-size: .85rem; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; overflow-x: auto; white-space: pre; max-width: 100%; }
.fix-step { margin: 14px 0; }
.fix-step h4 { margin: 0 0 4px; }
.fix-step p { margin: 0 0 6px; color: var(--muted); }
.rec-table { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; }
.rec-table th, .rec-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.rec-table th { color: var(--muted); font-weight: 600; }
.rec-table td.v { font-family: var(--mono); font-size: .82rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.lead-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.lead-fields { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 760px) { .lead-fields { grid-template-columns: 1fr 1fr auto; } }
.lead-fields label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.lead-fields input { padding: 11px 12px; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
.lead-status { margin-top: 8px; font-weight: 600; }

/* Sections */
section.why, section.how, section.pricing, section.faq { padding: 40px 16px; scroll-margin-top: 64px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { color: var(--muted); margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }
.price-grid { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price-card ul { padding-left: 18px; margin: 0 0 18px; color: var(--muted); flex: 1; }
.price-card li { margin-bottom: 6px; }
.price { color: var(--muted); }
.amount { font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.guarantee { margin-top: 20px; padding: 20px; border-radius: var(--radius); background: var(--brand-soft); }
.guarantee p { margin: 0; }
.request-form { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 76px; }
.request-fields { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 760px) { .request-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.request-fields label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.request-fields input, .request-fields select { padding: 11px 12px; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.footer-row p { margin: 0 0 6px; }
.fineprint { font-size: .82rem; }

/* Prospect tool */
.tool { padding: 32px 16px 60px; }
.tool textarea { width: 100%; min-height: 160px; padding: 12px; font: .95rem/1.5 var(--mono); border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.tool-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0; }
.tool-row label { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.tool-row input[type="text"] { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ptable { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
.ptable th, .ptable td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ptable th { background: var(--surface-2); position: sticky; top: 0; }
.mini-grade { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 800; background: var(--unknown-soft); color: var(--unknown); }
.mini-grade.g-A { background: var(--pass-soft); color: var(--pass); }
.mini-grade.g-B { background: var(--warn-soft); color: var(--warn); }
.mini-grade.g-C, .mini-grade.g-D, .mini-grade.g-F { background: var(--fail-soft); color: var(--fail); }
.summary-line { font-weight: 650; margin: 12px 0; }
.btn-small-ghost { padding: 6px 10px; font-size: .85rem; margin: 2px 0; }

/* Plain pages */
.doc { max-width: 760px; padding: 40px 16px 60px; }
.doc h2 { font-size: 1.25rem; margin-top: 1.6em; }
.doc li { margin-bottom: 6px; }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: grid; gap: 4px; color: var(--muted); font-size: .92rem; }
.form-grid input, .form-grid select, .form-grid textarea { padding: 11px 12px; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; }
.checkbox-grid label { display: flex; gap: 8px; align-items: center; color: var(--ink); }
