/* InboxVerify Toolkit — design system (no build step required) */
:root {
  --brand: #5b4cf5;
  --brand-600: #4a3be0;
  --brand-50: #f0eeff;
  --brand-100: #e2defe;
  --brand-2: #8b5cf6;
  --accent: #14b8a6;
  --grad: linear-gradient(135deg, #5b4cf5 0%, #8b5cf6 55%, #c026d3 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,76,245,.10), rgba(139,92,246,.08));

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --surface-3: #f2f4f9;
  --ink: #0b1220;
  --ink-2: #1f2937;
  --muted: #5b6475;
  --muted-2: #8a93a6;
  --border: #e7e9f2;
  --border-2: #d9dce8;
  --ring: rgba(91,76,245,.28);

  --pass: #12b76a;   --pass-bg: #ecfdf3;   --pass-ink: #067647;
  --warn: #f79009;   --warn-bg: #fffaeb;   --warn-ink: #b54708;
  --fail: #f04438;   --fail-bg: #fef3f2;   --fail-ink: #b42318;
  --unk:  #98a2b3;   --unk-bg:  #f2f4f7;   --unk-ink:  #475467;
  --info: #2e90fa;   --info-bg: #eff8ff;   --info-ink: #175cd3;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.14);
  --shadow-lg: 0 24px 48px -16px rgba(16,24,40,.22);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar: 268px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e19; --surface: #111728; --surface-2: #141b2f; --surface-3: #1a2238;
    --ink: #eaeef8; --ink-2: #d5dbea; --muted: #9aa4bb; --muted-2: #6f7a93;
    --border: #222b44; --border-2: #2d3756; --ring: rgba(139,125,255,.35);
    --brand-50: #1d1a3d; --brand-100: #29245a;
    --pass-bg: rgba(18,183,106,.12); --pass-ink: #5fe0a4;
    --warn-bg: rgba(247,144,9,.12); --warn-ink: #fdb55a;
    --fail-bg: rgba(240,68,56,.12); --fail-ink: #ff8a80;
    --unk-bg: rgba(152,162,179,.12); --unk-ink: #b8c0cf;
    --info-bg: rgba(46,144,250,.12); --info-ink: #84c1ff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 48px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e19; --surface: #111728; --surface-2: #141b2f; --surface-3: #1a2238;
  --ink: #eaeef8; --ink-2: #d5dbea; --muted: #9aa4bb; --muted-2: #6f7a93;
  --border: #222b44; --border-2: #2d3756; --ring: rgba(139,125,255,.35);
  --brand-50: #1d1a3d; --brand-100: #29245a;
  --pass-bg: rgba(18,183,106,.12); --pass-ink: #5fe0a4;
  --warn-bg: rgba(247,144,9,.12); --warn-ink: #fdb55a;
  --fail-bg: rgba(240,68,56,.12); --fail-ink: #ff8a80;
  --unk-bg: rgba(152,162,179,.12); --unk-ink: #b8c0cf;
  --info-bg: rgba(46,144,250,.12); --info-ink: #84c1ff;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 48px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
::selection { background: var(--brand-100); }
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.nowrap { white-space: nowrap; }
.break { word-break: break-word; overflow-wrap: anywhere; }
.center { text-align: center; }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; }
.row-wrap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn { --b: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--b); color: var(--ink); font: 600 14px/1 var(--font); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s, color .15s; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(91,76,245,.6); }
.btn-primary:hover { background: var(--brand-600); }
.btn-grad { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 24px -10px rgba(124,58,237,.7); }
.btn-grad:hover { filter: brightness(1.06); background: var(--grad); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { color: var(--fail-ink); }
.btn-danger:hover { background: var(--fail-bg); border-color: var(--fail); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 13px; }
.btn-icon { width: 36px; padding: 0; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: iv-spin .7s linear infinite; }
@keyframes iv-spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
label.lbl, .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--surface); color: var(--ink); font: 500 15px var(--font); transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 150px; padding: 12px 14px; font-family: var(--mono); font-size: 13px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a93a6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input-lg { height: 54px; font-size: 16.5px; border-radius: 14px; padding: 0 18px; }
.field { margin-bottom: 16px; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check-inline input { width: 17px; height: 17px; accent-color: var(--brand); }
.switch { position: relative; display: inline-block; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border-2); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(17px); }
.searchbar { display: flex; gap: 10px; align-items: stretch; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.searchbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px var(--ring), var(--shadow); }
.searchbar .input { border: 0; box-shadow: none !important; height: 48px; font-size: 16px; background: transparent; }
.searchbar .btn { height: 48px; border-radius: 12px; padding: 0 22px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 13px var(--font); padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h3, .card-head h4 { margin: 0; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.card-flat { box-shadow: none; }
.card-hover { transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.tile { padding: 18px 20px; }
.tile .label { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tile .value { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; line-height: 1.1; }
.tile .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tile-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }

/* ---------- Status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font: 700 11.5px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.st-pass { background: var(--pass-bg); color: var(--pass-ink); }
.st-warning { background: var(--warn-bg); color: var(--warn-ink); }
.st-fail { background: var(--fail-bg); color: var(--fail-ink); }
.st-unknown { background: var(--unk-bg); color: var(--unk-ink); }
.st-info { background: var(--info-bg); color: var(--info-ink); }
.st-queued, .st-running { background: var(--brand-50); color: var(--brand); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-pass { background: var(--pass); } .dot-warning { background: var(--warn); } .dot-fail { background: var(--fail); } .dot-unknown { background: var(--unk); } .dot-info { background: var(--info); }
.st-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.st-icon .icon { width: 17px; height: 17px; stroke-width: 2.4; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--border); }
.badge-brand { background: var(--brand-50); color: var(--brand); border-color: transparent; }
.kbd { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--surface-2); }

/* ---------- Score ring ---------- */
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring .track { stroke: var(--surface-3); }
.ring .bar { transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.ring .inner { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .num { font-family: var(--font-display); font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ring .of { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.ring-sm { width: 54px; height: 54px; }
.ring-sm .num { font-size: 16px; }
.ring-sm .of { display: none; }

/* ---------- Report ---------- */
.report-hero { display: flex; gap: 26px; align-items: center; padding: 26px; position: relative; overflow: hidden; }
.report-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--grad-soft); pointer-events: none; }
.report-hero .title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.report-hero .target { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; word-break: break-all; margin: 4px 0 8px; }
.report-hero .headline { font-size: 15.5px; color: var(--ink-2); margin: 10px 0 0; }
.counts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.counts span { display: inline-flex; align-items: center; gap: 6px; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
@media (max-width: 680px) { .report-hero { flex-direction: column; align-items: flex-start; } }

.section-card { overflow: hidden; }
.section-card > .card-head { cursor: pointer; user-select: none; }
.section-card > .card-head:hover { background: var(--surface-2); }
.section-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--font-display); font-size: 15.5px; }
.chev { transition: transform .2s; color: var(--muted); }
.collapsed .chev { transform: rotate(-90deg); }
.collapsed > .checks { display: none; }
.checks { list-style: none; margin: 0; padding: 0; }
.check { display: flex; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--border); }
.check:first-child { border-top: 0; }
.check .body { flex: 1; min-width: 0; }
.check .ttl { font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check .sum { color: var(--ink-2); font-size: 14px; margin-top: 2px; word-break: break-word; }
.check .more { margin-top: 10px; padding: 12px 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; }
.check .more p { margin: 0 0 8px; }
.check .more p:last-child { margin: 0; }
.check .rec { color: var(--ink); }
.check .rec b { color: var(--brand); }
.check .toggle { font-size: 12.5px; font-weight: 600; color: var(--brand); background: none; border: 0; padding: 0; margin-top: 6px; cursor: pointer; }
.fixbox { margin-top: 10px; border: 1px dashed var(--border-2); border-radius: 11px; overflow: hidden; }
.fixbox .fh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--surface-3); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.fixbox pre { margin: 0; padding: 10px 12px; white-space: pre-wrap; word-break: break-all; background: var(--surface); font-size: 12.5px; }
.codeblock { position: relative; background: #0d1224; color: #e6e9f5; border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 12.8px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.codeblock .copy { position: absolute; top: 8px; right: 8px; }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .mono { font-size: 12.5px; }
.tbl tr.clickable { cursor: pointer; }

/* Blacklist grid */
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 16px 20px 20px; }
.bl { border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; background: var(--surface); display: flex; gap: 10px; align-items: flex-start; }
.bl .n { font-weight: 650; font-size: 13.5px; }
.bl .z { font-size: 11.5px; color: var(--muted); font-family: var(--mono); word-break: break-all; }
.bl .m { font-size: 12px; margin-top: 3px; color: var(--ink-2); }
.bl.listed { border-color: var(--fail); background: var(--fail-bg); }
.bl.clean .dot { background: var(--pass); }
.bl.listed .dot { background: var(--fail); }
.bl.unavailable, .bl.timeout, .bl.error, .bl.skipped { opacity: .75; }
.bl.unavailable .dot, .bl.timeout .dot, .bl.error .dot, .bl.skipped .dot { background: var(--unk); }
.bl .dot { margin-top: 5px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.stat-strip > div { padding: 14px 18px; border-right: 1px solid var(--border); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .v { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.stat-strip .l { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 680px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* SPF tree */
.tree { font-family: var(--mono); font-size: 13px; padding: 16px 20px 20px; overflow-x: auto; }
.tree ul { list-style: none; margin: 0; padding-left: 22px; position: relative; }
.tree > ul { padding-left: 0; }
.tree li { position: relative; padding: 3px 0 3px 18px; }
.tree ul ul li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.5px solid var(--border-2); }
.tree ul ul li:last-child::before { bottom: auto; height: 14px; }
.tree ul ul li::after { content: ""; position: absolute; left: 0; top: 14px; width: 12px; border-top: 1.5px solid var(--border-2); }
.tree .node { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }
.tree .node.err { border-color: var(--fail); background: var(--fail-bg); }
.tree .dom { font-weight: 700; color: var(--ink); }
.tree .term { display: inline-block; padding: 1px 7px; border-radius: 6px; margin: 2px 3px 2px 0; background: var(--surface-3); color: var(--ink-2); font-size: 12px; }
.tree .term.lk { background: var(--brand-50); color: var(--brand); }
.tree .term.all-pass { background: var(--pass-bg); color: var(--pass-ink); }
.tree .term.all-warn { background: var(--warn-bg); color: var(--warn-ink); }
.tree .term.all-fail { background: var(--fail-bg); color: var(--fail-ink); }
.tree .terms { margin: 5px 0 2px; }
.lookup-meter { display: flex; gap: 4px; align-items: center; }
.lookup-meter i { width: 18px; height: 8px; border-radius: 3px; background: var(--surface-3); display: inline-block; }
.lookup-meter i.on { background: var(--brand); }
.lookup-meter i.over { background: var(--fail); }

/* Delivery path */
.path { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 18px 20px 22px; }
.hop { min-width: 190px; max-width: 240px; border: 1px solid var(--border); border-radius: 13px; padding: 12px 14px; background: var(--surface); position: relative; flex: none; }
.hop .h-n { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.hop .h-by { font-weight: 700; font-size: 13.5px; word-break: break-all; margin: 3px 0; }
.hop .h-ip { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }
.hop .h-t { font-size: 12px; color: var(--muted); margin-top: 5px; }
.arrow { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 70px; flex: none; color: var(--muted-2); font-size: 11.5px; font-weight: 700; }
.arrow .line { width: 50px; height: 2px; background: var(--border-2); position: relative; margin: 4px 0; }
.arrow .line::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--border-2); border-right: 0; }
.arrow.slow { color: var(--warn-ink); }
.arrow.slow .line { background: var(--warn); }
.arrow.slow .line::after { border-left-color: var(--warn); }

/* Timeline (SMTP) */
.timeline { list-style: none; padding: 16px 20px 20px; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 26px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; border-left: 2px solid var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li .d { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--border-2); }
.transcript { background: #0d1224; color: #cdd3e6; border-radius: 12px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.55; max-height: 280px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.transcript .c { color: #a5b4fc; }
.transcript .s { color: #86efac; }

/* Plan (problem solver) */
.plan { list-style: none; margin: 0; padding: 0; counter-reset: plan; }
.plan > li { display: flex; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--border); }
.plan > li:first-child { border-top: 0; }
.plan .num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); flex: none; }
.plan .fail .num { background: var(--fail-bg); color: var(--fail-ink); }
.plan .warning .num { background: var(--warn-bg); color: var(--warn-ink); }
.plan .where { margin-top: 8px; font-size: 13px; padding: 9px 12px; border-radius: 10px; background: var(--info-bg); color: var(--info-ink); }

/* Empty / skeleton */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { width: 42px; height: 42px; stroke-width: 1.4; color: var(--muted-2); margin-bottom: 10px; }
.skel { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; border-radius: 8px; }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s; }

/* Loading card while scanning */
.scanning { padding: 34px 26px; display: flex; gap: 22px; align-items: center; }
.radar { width: 76px; height: 76px; border-radius: 50%; position: relative; flex: none; background: radial-gradient(circle, var(--brand-50) 0 30%, transparent 31%), conic-gradient(from 0deg, rgba(91,76,245,.0), rgba(91,76,245,.55)); animation: iv-spin 1.4s linear infinite; }
.radar::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.steps { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.steps li.done { color: var(--ink-2); }
.steps li.done .dot { background: var(--pass); }
.steps li.now .dot { background: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.steps li .dot { background: var(--border-2); }

/* Toasts & modals */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: toast-in .25s ease; }
.toast.err { background: #b42318; color: #fff; }
.toast.ok { background: #067647; color: #fff; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(10,14,25,.55); backdrop-filter: blur(3px); z-index: 900; display: grid; place-items: center; padding: 18px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 36px); overflow: auto; border: 1px solid var(--border); }
.modal-lg { width: min(860px, 100%); }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal .mh h3 { margin: 0; }
.modal .mb { padding: 22px; }
.modal .mf { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid transparent; }
.callout.info { background: var(--info-bg); color: var(--info-ink); }
.callout.warn { background: var(--warn-bg); color: var(--warn-ink); }
.callout.fail { background: var(--fail-bg); color: var(--fail-ink); }
.callout.ok { background: var(--pass-bg); color: var(--pass-ink); }
.callout.brand { background: var(--brand-50); color: var(--brand); }
.callout .icon { margin-top: 2px; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.side .brandbar { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none !important; }
.logo .mark { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(124,58,237,.7); }
.logo .mark svg { width: 19px; height: 19px; stroke: #fff; stroke-width: 2.2; fill: none; }
.logo .tld { color: var(--brand); }
.nav { padding: 6px 12px 20px; flex: 1; }
.nav .grp { font-size: 11px; font-weight: 800; color: var(--muted-2); letter-spacing: .09em; text-transform: uppercase; padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 1px 0; border-radius: 10px; color: var(--ink-2); font-weight: 550; font-size: 14px; text-decoration: none; transition: background .12s, color .12s; }
.nav a .icon { color: var(--muted); }
.nav a:hover { background: var(--surface-3); }
.nav a.on { background: var(--brand-50); color: var(--brand); font-weight: 650; }
.nav a.on .icon { color: var(--brand); }
.nav a .ext { margin-left: auto; opacity: .45; width: 13px; height: 13px; }
.nav a .tag { margin-left: auto; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: var(--grad); color: #fff; }
.side .credits { margin: 0 14px 14px; padding: 14px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 12px 26px -14px rgba(124,58,237,.8); }
.side .credits .v { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.side .credits .l { font-size: 12px; opacity: .85; font-weight: 600; }
.side .credits a { color: #fff; font-weight: 700; font-size: 13px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.topbar .crumbs { font-size: 14px; color: var(--muted); font-weight: 550; }
.topbar .crumbs b { color: var(--ink); font-weight: 700; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.content { padding: 28px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar); z-index: 200; transform: translateX(-102%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 150; }
  .menu-btn { display: inline-flex; }
  .content { padding: 18px; }
  .topbar { padding: 10px 16px; }
}

/* Tool cards grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; color: inherit; text-decoration: none !important; }
.tool-card .ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.tool-card .ti .icon { width: 21px; height: 21px; }
.tool-card h4, .tool-card .h4 { margin: 0; font-size: 15.5px; }
.tool-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.tool-card .meta { margin-top: auto; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.cat-email .ti { background: #eef4ff; color: #3b63f6; }
.cat-domain .ti { background: #ecfdf3; color: #079455; }
.cat-infrastructure .ti { background: #fff4ed; color: #e04f16; }
.cat-solutions .ti { background: var(--grad); color: #fff; }
.cat-bulk .ti { background: #fdf2fa; color: #c11574; }
.cat-monitoring .ti { background: #f0f9ff; color: #0086c9; }
:root[data-theme="dark"] .cat-email .ti, :root[data-theme="dark"] .cat-domain .ti, :root[data-theme="dark"] .cat-infrastructure .ti, :root[data-theme="dark"] .cat-bulk .ti, :root[data-theme="dark"] .cat-monitoring .ti { background: var(--surface-3); }

/* Chart */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; padding: 10px 0 0; }
.bars > div { flex: 1; background: var(--brand-100); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; transition: height .5s; }
.bars > div:hover { background: var(--brand); }
.bars > div[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 11.5px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Public site ---------- */
.site-nav { position: sticky; top: 0; z-index: 60; backdrop-filter: saturate(1.5) blur(12px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--border); }
.site-nav.dark { background: rgba(8,10,22,.6); border-color: rgba(255,255,255,.08); }
.site-nav.dark .logo, .site-nav.dark .links a { color: #fff; }
.site-nav.dark .cta .btn-ghost { color: #fff; }
.site-nav.dark .cta .btn-ghost:hover { background: rgba(255,255,255,.1); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.site-nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-nav .links { display: flex; gap: 22px; align-items: center; }
.site-nav .links a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.site-nav .cta { margin-left: auto; display: flex; gap: 10px; }
.site-nav .links .mobile-only { display: none; }
@media (max-width: 860px) { .site-nav.open .links .mobile-only { display: block; } .site-nav.open .links .mobile-only.hide { display: none; } }
.site-nav .menu-btn { display: none; order: 9; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: inherit; place-items: center; cursor: pointer; }
.site-nav.dark .menu-btn { color: #fff; border-color: rgba(255,255,255,.2); }
@media (max-width: 860px) {
  .site-nav .menu-btn { display: grid; }
  .site-nav .links { display: none; }
  .site-nav.open .links { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 68px; left: 12px; right: 12px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 70; }
  .site-nav.open .links a { color: var(--ink) !important; padding: 12px 14px; border-radius: 10px; }
  .site-nav.open .links a:hover { background: var(--surface-3); text-decoration: none; }
  .site-nav .wrap { position: relative; gap: 12px; }
  .site-nav .cta .btn-ghost { display: none; }
}

.hero { position: relative; overflow: hidden; background: #070a17; color: #fff; padding: 72px 0 90px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 820px; background: radial-gradient(600px 380px at 18% 30%, rgba(91,76,245,.55), transparent 60%), radial-gradient(520px 360px at 82% 20%, rgba(192,38,211,.38), transparent 60%), radial-gradient(520px 320px at 60% 80%, rgba(20,184,166,.28), transparent 60%); z-index: -1; filter: blur(8px); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); z-index: -1; }
.hero .grid-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero .grid-hero { grid-template-columns: 1fr; } .hero .preview { display: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 600; color: #dcd7ff; }
.eyebrow b { background: var(--grad); color: #fff; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 18px; }
.hero h1 .g { background: linear-gradient(92deg, #a5b4fc, #e879f9 45%, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18.5px; color: #c3c8dc; max-width: 600px; margin-bottom: 28px; }
.hero .searchbar { background: rgba(255,255,255,.97); border: 0; max-width: 620px; }
.hero .searchbar .input { color: #0b1220; }
.try { margin-top: 14px; font-size: 13.5px; color: #9aa3c0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.try button { background: rgba(255,255,255,.08); color: #e3e6f3; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; padding: 4px 11px; font: 600 12.5px var(--font); cursor: pointer; }
.try button:hover { background: rgba(255,255,255,.16); }
.trust { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.trust div b { display: block; font-family: var(--font-display); font-size: 26px; color: #fff; letter-spacing: -.02em; }
.trust div span { font-size: 13px; color: #9aa3c0; }
.preview { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); }
.preview .card { box-shadow: none; color: var(--ink); }
.section { padding: 84px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head .kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 10px 0 12px; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 17px; }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.problem { padding: 22px; display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none !important; border-radius: 18px; }
.problem .pi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.problem h4 { font-size: 17px; margin: 4px 0 0; }
.problem p { margin: 0; color: var(--muted); font-size: 14px; }
.problem .go { margin-top: auto; font-weight: 700; color: var(--brand); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.feature ul { list-style: none; padding: 0; margin: 18px 0 0; }
.feature li { display: flex; gap: 10px; margin: 10px 0; color: var(--ink-2); }
.feature li .icon { color: var(--pass); margin-top: 3px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 800px) { .steps3 { grid-template-columns: 1fr; } }
.steps3 .card { padding: 24px; }
.steps3 .n { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-family: var(--font-display); margin-bottom: 12px; }
.cta-band { background: #070a17; color: #fff; border-radius: 26px; padding: 54px 40px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 20% 0%, rgba(91,76,245,.6), transparent 70%), radial-gradient(500px 260px at 90% 100%, rgba(192,38,211,.45), transparent 70%); z-index: -1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3c8dc; }
.faq details { border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; background: var(--surface); margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.site-foot { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 14px; background: var(--surface); }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-foot a { color: var(--muted); display: block; margin: 6px 0; }
.site-foot h5 { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
@media (max-width: 800px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
.tool-hero { padding: 48px 0 30px; background: var(--surface); border-bottom: 1px solid var(--border); }
.tool-hero .crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.tool-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.tool-hero p.lead { color: var(--muted); font-size: 17px; max-width: 720px; }

/* utility */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 30px; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.p-0 { padding: 0 !important; }
.w-100 { width: 100%; }
.link-btn { background: none; border: 0; color: var(--brand); font: 600 14px var(--font); cursor: pointer; padding: 0; }
.divider-v { width: 1px; align-self: stretch; background: var(--border); }
.fade-in { animation: fadeup .35s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .side, .topbar, .report-actions, .site-nav, .site-foot, .toasts { display: none !important; }
  .shell { display: block; }
  .card { box-shadow: none; }
  .collapsed > .checks { display: block !important; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cat-email .ti, :root:not([data-theme="light"]) .cat-domain .ti, :root:not([data-theme="light"]) .cat-infrastructure .ti, :root:not([data-theme="light"]) .cat-bulk .ti, :root:not([data-theme="light"]) .cat-monitoring .ti { background: var(--surface-3); }
}

/* ---------- Free plan meter & paywall ---------- */
.plan-meter { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 5px 12px; border-radius: 99px; background: var(--brand-50); border: 1px solid transparent; }
.plan-meter .icon { color: var(--brand); width: 16px; height: 16px; flex: none; }
.plan-meter b { color: var(--ink); }
.plan-meter a { font-weight: 700; color: var(--brand); margin-left: 4px; }
.plan-meter.empty { background: #fff4ed; }
.plan-meter.empty .icon, .plan-meter.empty a { color: #e04f16; }
.paywall { display: flex; gap: 18px; padding: 26px; border-radius: 20px; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: 0 30px 60px -32px rgba(91,76,245,.6); }
.paywall .pw-icon { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(124,58,237,.7); }
.paywall h3 { margin: 2px 0 6px; font-size: 20px; }
.paywall p { margin: 0 0 12px; color: var(--ink-2); }
.paywall ul { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.paywall li { display: flex; gap: 8px; align-items: center; }
.paywall li .icon { color: var(--pass); }
@media (max-width: 600px) { .paywall { flex-direction: column; padding: 20px; } }
:root[data-theme="dark"] .plan-meter.empty { background: var(--surface-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan-meter.empty { background: var(--surface-3); } }

/* ---------- Brand logo image ---------- */
.logo-img { display: block; height: 32px; width: auto; }
.logo .on-dark { display: none; }
.site-nav.dark .logo .on-light, .auth-side .logo .on-light { display: none; }
.site-nav.dark .logo .on-dark, .auth-side .logo .on-dark { display: block; }
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .on-light { display: none; }
  :root:not([data-theme="light"]) .logo .on-dark { display: block; }
}

/* ---------- SEO guide on tool pages ---------- */
.seo-guide h2 { font-size: 24px; margin: 0 0 12px; }
.seo-guide h3 { font-size: 17px; margin: 18px 0 6px; }
.seo-guide p { color: var(--ink-2); line-height: 1.7; margin: 0 0 12px; max-width: 860px; }
.tools-grid .tool-card h4 { margin: 0 0 6px; }

/* ---------- Content pages (guides, error codes, setup) ---------- */
.kicker-sm { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.meta-line { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.crumb span { color: var(--ink-2); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .article-grid { grid-template-columns: 1fr; } .article-side { order: 2; } }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 780px; }
.prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); margin: 38px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--font-mono, ui-monospace, monospace); font-size: .88em; background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.prose a { color: var(--brand); font-weight: 600; }
.prose .faq { margin-top: 8px; }
.prose .faq details p { font-size: 16px; }
.codebox { border: 1px dashed var(--brand-100, #c7c2ff); background: var(--brand-50); border-radius: 12px; margin: 6px 0 20px; overflow: hidden; }
.codebox-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); border-bottom: 1px dashed var(--brand-100, #c7c2ff); }
.codebox pre { margin: 0; padding: 12px 14px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 14px; color: var(--ink); white-space: pre-wrap; word-break: break-all; }
.tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--border); margin: 8px 0 22px; }
.tool-cta b { display: block; color: var(--ink); font-size: 16.5px; }
.tool-cta span { font-size: 14.5px; color: var(--muted); }
.article-side { position: sticky; top: 90px; display: grid; gap: 14px; }
@media (max-width: 980px) { .article-side { position: static; } }
.side-card { display: flex; flex-direction: column; gap: 8px; }
.side-card a { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.side-card a:hover { color: var(--brand); }
.side-t { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side-cta b { font-size: 17px; color: var(--ink); }
.side-cta p { margin: 0; font-size: 14px; color: var(--muted); }
.side-cta .btn { justify-content: center; color: #fff !important; }
.hub-h { font-size: 22px; margin: 10px 0 14px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hub-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none !important; }
.hub-card b { color: var(--ink); font-size: 16px; line-height: 1.3; }
.hub-card span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.feature-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.feature-rows h2 { font-size: 20px; margin: 0 0 8px; }
.feature-rows p { color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.feature-rows a { font-weight: 700; }
.prose .btn, .prose .btn:hover { color: #fff; text-decoration: none; }
.prose .tool-cta > div { flex: 1 1 320px; }

/* Website analytics chart */
.abars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 14px 0 0; }
.abars > div { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.abars i { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 5px 5px 2px 2px; min-height: 2px; transition: height .5s; }
.abars i.v { background: var(--brand-100); }
.abars i.u { background: var(--brand); left: 22%; right: 22%; }
.abars b.dot { position: absolute; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--pass); }
.abars > div:hover i.v { filter: brightness(.95); }
.abars > div[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 11.5px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; z-index: 5; }
.abars > div:first-child[data-tip]:hover::after { left: 0; transform: none; }
.abars > div:last-child[data-tip]:hover::after { left: auto; right: 0; transform: none; }
i.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
i.lg.u { background: var(--brand); } i.lg.v { background: var(--brand-100); } i.lg.dot { background: var(--pass); border-radius: 50%; }
