/* ============ tokens ============ */
:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --green: #059669;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --border: #e2e8f0;
  --border-soft: #eef2f7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .07);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.022em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.35rem); margin: .4em 0 .45em; }
h2 { font-size: clamp(1.28rem, 3vw, 1.55rem); margin-top: 2.1em; }
h3 { font-size: 1.08rem; font-weight: 700; }
.subtitle { color: var(--ink-soft); font-size: 1.06rem; margin-top: -6px; max-width: 46em; }

section { margin: 44px 0; }
.prose { max-width: 760px; }

/* ============ topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: 1040px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .logo-dot {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; font-weight: 900;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
}

.nav-toggle { display: none; }
.nav-burger {
  display: none; cursor: pointer; padding: 8px; margin: -8px;
  border-radius: 8px; flex: none;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s;
}
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  padding: 7px 11px; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav-links a.nav-cta {
  color: #fff; background: var(--grad); font-weight: 700;
  box-shadow: 0 2px 10px rgba(37, 99, 235, .3);
}
.nav-links a.nav-cta:hover { filter: brightness(1.08); }

@media (max-width: 880px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 10px 16px 16px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 1.02rem; border-radius: 10px; }
  .nav-links a.nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ hero ============ */
.hero {
  text-align: center; padding: clamp(48px, 8vw, 84px) 20px clamp(36px, 6vw, 64px);
  margin: 0 -20px;
  background:
    radial-gradient(52% 68% at 18% 0%, rgba(37, 99, 235, .09) 0%, transparent 70%),
    radial-gradient(46% 60% at 85% 8%, rgba(79, 70, 229, .10) 0%, transparent 70%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-soft);
}
.hero h1 {
  font-size: clamp(1.9rem, 5.4vw, 3rem); margin: 0 auto 14px;
  max-width: 17em; letter-spacing: -0.03em;
}
.hero p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; font-size: clamp(1rem, 2.4vw, 1.13rem); }
.hero-ctas { margin: 28px 0 6px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-badges { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); border: 1px solid #dbeafe;
  border-radius: 999px; padding: 5px 13px;
}
.badge::before { content: "✓"; font-weight: 800; color: var(--green); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: .98rem;
  padding: 12px 22px; border-radius: 11px; border: 0; cursor: pointer;
  margin: 6px 8px 6px 0; line-height: 1.3;
  box-shadow: 0 2px 12px rgba(37, 99, 235, .28);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, .32); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: .87rem; border-radius: 9px; }
.btn-alt { background: var(--ink); box-shadow: 0 2px 12px rgba(15, 23, 42, .22); }
.btn-alt:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .28); }
.btn-pick { background: linear-gradient(135deg, #059669 0%, #0d9488 100%); box-shadow: 0 2px 12px rgba(5, 150, 105, .3); }
.btn-pick:hover { box-shadow: 0 6px 18px rgba(5, 150, 105, .35); }

@media (max-width: 560px) {
  .hero-ctas .btn { flex: 1 1 100%; margin: 4px 0; }
  .cta-final .btn { display: flex; margin: 8px 0; }
}

/* ============ cards ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card {
  display: block; padding: 20px 22px; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--ink); background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: #c7d7f5; text-decoration: none;
}
.card p { color: var(--ink-soft); font-size: .92rem; margin: 8px 0 0; }
.card .btn { margin-top: 14px; }
.card-featured {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f5f9ff 0%, #fff 60%);
}
.vs-pair { font-weight: 700; font-size: 1.03rem; letter-spacing: -0.01em; }
.vs-pair em { color: var(--accent); font-style: normal; font-weight: 800; }

/* ============ tables ============ */
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 20px 0; font-size: .93rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm);
}
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-soft); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
tbody tr:hover td, table tr:hover td { background: #fafcff; }
.vs-table th:first-child { width: 22%; }
.vs-table td.win { background: var(--green-soft); font-weight: 600; }
.vs-table tr.win td { background: var(--green-soft); }
.vs-table tr.win td:first-child { position: relative; }

@media (max-width: 700px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  table td, table th { white-space: normal; min-width: 110px; }
}

/* ============ boxes ============ */
.pick-box {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #f0fdf6 0%, #f7fef9 100%);
  border: 1px solid #a7f3d0; border-radius: var(--radius); padding: 20px 24px; margin: 22px 0 8px;
  box-shadow: var(--shadow-sm);
}
.pick-label {
  margin: 0 0 4px; font-size: .72rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--green);
}
.pick-box p { margin: 0; }
.pick-box .btn { margin: 0; }

.verdict-box {
  display: flex; gap: 24px; align-items: center; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin: 24px 0 8px;
}
.score-big { font-size: 2.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.score-big span { font-size: 1.2rem; color: var(--ink-soft); font-weight: 600; }

.calc-promo {
  background: var(--accent-soft); border: 1px solid #dbeafe;
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0;
}
.audit-box {
  margin: 36px 0; padding: 24px 26px; border: 1px solid #bfdbfe;
  border-radius: var(--radius); background: linear-gradient(180deg, #f0f6ff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-sm);
}
.audit-box h2 { margin-top: 0; font-size: 1.2rem; }
.audit-box form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.audit-box input[type=email] {
  flex: 1 1 220px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 1rem; font-family: var(--font);
}
.audit-box input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.audit-box .btn { margin: 0; }

.calc-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; margin: 24px 0; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.calc-box label { font-size: .95rem; }
.calc-box input[type="range"] { flex: 1; min-width: 200px; accent-color: var(--accent); height: 6px; }
.calc-box output {
  font-weight: 800; font-size: 1.45rem; color: var(--accent-dark);
  min-width: 90px; text-align: right; font-variant-numeric: tabular-nums;
}

.methodology-note { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px 28px; }
.methodology-note h2 { margin-top: 0; }

.cta-final {
  text-align: center; margin: 40px 0; padding: 30px 24px;
  background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius);
}

/* ============ pros/cons ============ */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
ul.pros li::marker { content: "✓ "; color: var(--green); }
ul.cons li::marker { content: "✕ "; color: var(--red); }
ul.pros, ul.cons { padding-left: 22px; }
ul.pros li, ul.cons li { margin: 7px 0; }
@media (max-width: 700px) { .proscons { grid-template-columns: 1fr; gap: 8px; } }

.winners li { margin: 9px 0; }
.breadcrumb { font-size: .84rem; color: var(--ink-faint); margin: 18px 0 4px; }
.breadcrumb a { color: var(--ink-soft); }
.disclosure-inline, .fineprint { font-size: .8rem; color: var(--ink-faint); }

.bar { display: inline-block; width: 140px; height: 8px; background: var(--border); border-radius: 4px; margin-right: 8px; vertical-align: middle; }
.bar span { display: block; height: 100%; background: var(--grad); border-radius: 4px; }

/* ============ sticky CTA ============ */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, .1);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.sticky-cta .sticky-label { font-weight: 700; font-size: .92rem; margin-right: 6px; }
.sticky-cta .btn { margin: 0; }
body.has-sticky main { padding-bottom: 88px; }
@media (max-width: 700px) {
  .sticky-cta .sticky-label { display: none; }
  .sticky-cta .btn { flex: 1; }
}

/* ============ misc ============ */
.price-up { color: var(--red); font-weight: 700; }
.price-down { color: var(--green); font-weight: 700; }

.compare-filter { margin: 18px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.compare-filter a {
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 15px;
  background: #fff; transition: border-color .12s, color .12s, box-shadow .12s;
}
.compare-filter a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; box-shadow: var(--shadow-sm); }

.sitemap-list { columns: 2; gap: 24px; padding-left: 1.2rem; }
.sitemap-list li { margin-bottom: 6px; break-inside: avoid; }
.related-links { padding-left: 1.2rem; }
@media (max-width: 560px) { .sitemap-list { columns: 1; } }

/* ============ footer ============ */
.footer {
  margin-top: 72px; padding: 40px 0 48px;
  background: #0b1220; color: #94a3b8; font-size: .87rem;
  border-top: 0;
}
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer nav { margin: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer .disclosure { max-width: 720px; color: #64748b; }
.footer p { margin: 10px 0; }

.newsletter {
  background: #111a2e; border: 1px solid #1e2a44; border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 28px; color: #e2e8f0;
}
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.newsletter input[type="email"] {
  flex: 1 1 220px; padding: 11px 14px; border: 1px solid #2b3a5c; border-radius: 10px;
  font-size: .95rem; background: #0b1220; color: #e2e8f0; font-family: var(--font);
}
.newsletter input[type="email"]::placeholder { color: #64748b; }
.newsletter input[type="email"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.newsletter .btn { margin: 0; }
#nl-ok { color: #34d399; font-weight: 600; }
#nl-err { color: #f87171; }

/* ============ trust strip ============ */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
  padding: 18px 20px; margin: 0 -20px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-soft); font-size: .85rem; font-weight: 600;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip .t-num { color: var(--ink); font-weight: 800; }
