/* ==========================================================================
   VPNWiseLab — Design system
   Mobile-first. No external fonts or frameworks for fast loading.
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #050b1a;
  --navy-900: #0a1630;
  --navy-800: #0f1f42;
  --navy-700: #182c58;
  --navy-600: #24396b;
  --blue-500: #1f8bff;
  --blue-400: #3da5ff;
  --blue-600: #0f6fe0;
  --blue-700: #0a57b5;
  --cyan-400: #2fd4ff;
  --white: #ffffff;

  /* Neutrals */
  --ink: #0b1530;
  --ink-soft: #3b4a6b;
  --muted: #64738f;
  --line: #e2e8f3;
  --surface: #f4f7fc;
  --surface-2: #eaf1fb;

  /* On dark */
  --on-dark: #e9f0ff;
  --on-dark-muted: #a7b5d4;
  --line-dark: rgba(255, 255, 255, 0.1);

  /* Status */
  --good: #12a36b;
  --bad: #d64545;
  --warn-bg: #fff6dd;
  --warn-line: #e3b341;
  --warn-ink: #7a5600;

  /* Type & spacing */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 48, 0.06), 0 2px 8px rgba(10, 22, 48, 0.05);
  --shadow: 0 10px 30px -12px rgba(10, 22, 48, 0.25);
  --shadow-blue: 0 10px 28px -10px rgba(31, 139, 255, 0.6);
  --container: 1200px;
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.02em; color: inherit; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
ul, ol { padding-left: 1.25rem; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--blue-500); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-soft); font-size: 1.075rem; }
.section--dark .section__head p { color: var(--on-dark-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 0.9rem;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--cyan-400); }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--white); font: inherit; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { color: var(--white); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); box-shadow: var(--shadow-blue); }
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(31, 139, 255, 0.75); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { color: var(--blue-600); border-color: var(--blue-400); }
.btn-lg { min-height: 52px; padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[data-affiliate-pending] { position: relative; }
.btn[data-affiliate-pending]::after {
  content: "Affiliate URL placeholder"; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed var(--warn-line);
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}
.btn[data-affiliate-pending]:hover::after, .btn[data-affiliate-pending]:focus-visible::after, .btn[data-affiliate-pending].is-flash::after { opacity: 1; }

/* ---------- Placeholders (unverified info) ---------- */
.ph {
  display: inline-block; background: var(--warn-bg); color: var(--warn-ink);
  border: 1px dashed var(--warn-line); border-radius: 6px; padding: 0 0.4rem;
  font-size: 0.86em; font-weight: 600; line-height: 1.6;
}
.ph-flag {
  display: inline-block; vertical-align: middle; margin-left: 0.25rem;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warn-ink); background: var(--warn-bg); border: 1px dashed var(--warn-line);
  border-radius: 4px; padding: 0 0.3rem; line-height: 1.5;
}
.score-pending {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700;
  color: var(--warn-ink); background: var(--warn-bg); border: 1px dashed var(--warn-line);
  padding: 0.2rem 0.6rem; border-radius: 999px;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 22, 48, 0.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-dark); color: var(--on-dark);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--white); }
.brand .logo-mark { width: 32px; height: 32px; flex: none; }
.brand b { color: var(--blue-400); font-weight: 800; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 10px; color: var(--white); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; position: relative;
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-950);
  max-height: calc(100vh - var(--nav-top, 150px)); max-height: calc(100dvh - var(--nav-top, 150px));
  padding: 1rem 1.25rem 2rem; overflow-y: auto; display: none; border-bottom: 1px solid var(--line-dark);
}
.primary-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line-dark); }
.nav-link, .nav-dd-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0.95rem 0.25rem; color: var(--on-dark); text-decoration: none; font: inherit; font-weight: 600;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-link:hover, .nav-dd-btn:hover, .nav-link[aria-current="page"] { color: var(--blue-400); }
.nav-dd-btn .chev { transition: transform 0.2s ease; }
.nav-dd-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-dd { list-style: none; margin: 0 0 0.75rem; padding: 0 0 0 0.75rem; display: none; }
.nav-dd.is-open { display: block; }
.nav-dd a { display: block; padding: 0.55rem 0.25rem; color: var(--on-dark-muted); text-decoration: none; }
.nav-dd a:hover, .nav-dd a[aria-current="page"] { color: var(--white); }
.nav-cta { margin-top: 1.25rem; }
.nav-cta .btn { width: 100%; }
body.nav-open { overflow: hidden; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; max-height: none; border: 0; display: flex; align-items: center; gap: 1.25rem; padding: 0; background: none; overflow: visible; }
  .nav-list { display: flex; align-items: center; gap: 0.15rem; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link, .nav-dd-btn { padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.94rem; gap: 0.3rem; }
  .nav-link:hover, .nav-dd-btn:hover { background: rgba(255, 255, 255, 0.06); }
  .nav-dd {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; padding: 0.5rem;
    background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  }
  .nav-dd a { padding: 0.6rem 0.75rem; border-radius: 8px; font-size: 0.93rem; }
  .nav-dd a:hover { background: rgba(255, 255, 255, 0.06); }
  .nav-cta { margin: 0; }
  .nav-cta .btn { width: auto; min-height: 40px; padding: 0.5rem 1.1rem; }
}

/* ---------- Disclosure strip ---------- */
.disclosure-strip { background: var(--navy-950); color: var(--on-dark-muted); font-size: 0.82rem; border-bottom: 1px solid var(--line-dark); }
.disclosure-strip .container { padding: 0.55rem 0; }
.disclosure-strip a { color: var(--blue-400); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(31, 139, 255, 0.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(47, 212, 255, 0.15), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero__grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { color: var(--white); }
.hero h1 .accent { background: linear-gradient(90deg, var(--blue-400), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--on-dark-muted); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 1.75rem; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.9rem; color: var(--on-dark-muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--cyan-400); }

.finder {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.finder__status { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line-dark); }
.finder__status .pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 0 rgba(47,212,255,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(47,212,255,0); } 100% { box-shadow: 0 0 0 0 rgba(47,212,255,0); } }
.finder__title { font-weight: 700; color: var(--white); margin: 0; }
.finder__sub { font-size: 0.85rem; color: var(--on-dark-muted); margin: 0; }
.finder__options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.finder__opt {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); color: var(--white); text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.finder__opt:hover { color: var(--white); border-color: var(--blue-400); background: rgba(31,139,255,0.12); transform: translateY(-2px); }
.finder__opt svg { width: 24px; height: 24px; color: var(--blue-400); margin-bottom: 0.3rem; }
.finder__opt strong { font-size: 0.95rem; }
.finder__opt span { font-size: 0.78rem; color: var(--on-dark-muted); }
.finder__opt--wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  color: var(--on-dark); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  background: radial-gradient(800px 380px at 90% -20%, rgba(31,139,255,0.3), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 5vw, 3rem); max-width: 900px; }
.page-hero .lead { max-width: 760px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.25rem; font-size: 0.86rem; color: var(--on-dark-muted); }
.page-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.85rem; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.5; }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }
.review-hero { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 820px) { .review-hero { grid-template-columns: auto 1fr auto; } }

/* ---------- Provider logo placeholders ---------- */
.plogo {
  --c1: var(--blue-400); --c2: var(--blue-700);
  display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--white);
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.plogo--lg { width: 84px; height: 84px; border-radius: 22px; font-size: 1.8rem; }
.plogo--nordvpn { --c1: #3d8bff; --c2: #1846b8; }
.plogo--surfshark { --c1: #2fd4ff; --c2: #0f7fa8; }
.plogo--expressvpn { --c1: #ff6b6b; --c2: #b8283b; }
.plogo--cyberghost { --c1: #ffc94d; --c2: #c98a00; }
.plogo--protonvpn { --c1: #9b7bff; --c2: #5a35c9; }

.logo-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .logo-strip { grid-template-columns: repeat(5, 1fr); } }
.logo-tile {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); color: var(--white); text-decoration: none; font-weight: 700;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.logo-tile:hover { color: var(--white); border-color: var(--blue-400); transform: translateY(-2px); }
.logo-tile small { display: block; color: var(--on-dark-muted); font-weight: 500; font-size: 0.78rem; }
.logo-note { margin-top: 1rem; font-size: 0.8rem; color: var(--on-dark-muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card--hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cddbf1; }
.icon-badge {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--surface-2); color: var(--blue-600);
}
.icon-badge svg { width: 24px; height: 24px; }

.provider-card { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.provider-card__head { display: flex; align-items: center; gap: 0.9rem; }
.provider-card__head h3 { margin: 0; font-size: 1.25rem; }
.provider-card__head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.provider-card__rank {
  position: absolute; top: 1rem; right: 1rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-600); background: var(--surface-2); padding: 0.2rem 0.55rem; border-radius: 999px;
}
.provider-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 0.9rem; background: var(--surface); border-radius: var(--radius); font-size: 0.85rem; }
.provider-card__meta dt { color: var(--muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.provider-card__meta dd { margin: 0.15rem 0 0; font-weight: 600; }
.provider-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: auto; }
.provider-card__actions .btn { padding-inline: 0.75rem; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230f6fe0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.2 3.2L15 7'/%3E%3C/svg%3E") center/70% no-repeat;
}
.ticks--sm li { font-size: 0.92rem; }

/* ---------- Pros / cons ---------- */
.pc { display: grid; gap: 1rem; }
@media (min-width: 720px) { .pc { grid-template-columns: 1fr 1fr; } }
.pc__col { border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem; border: 1px solid var(--line); background: var(--white); }
.pc__col h3, .pc__col h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; margin-bottom: 0.8rem; }
.pc__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.pc__col li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; }
.pc__col--pros { border-top: 4px solid var(--good); }
.pc__col--cons { border-top: 4px solid var(--bad); }
.pc__col--pros li::before, .pc__col--cons li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.pc__col--pros li::before { content: "+"; color: var(--good); }
.pc__col--cons li::before { content: "–"; color: var(--bad); }

/* ---------- Tabs ---------- */
.tabs__list { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1.25rem; scrollbar-width: thin; }
.tabs__tab {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); cursor: pointer;
}
.tabs__tab[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.tabs__panel[hidden] { display: none; }
.tabs__panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tabs__panel-head h3 { margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.table { min-width: 760px; font-size: 0.92rem; }
.table caption { text-align: left; padding: 1rem 1.25rem; font-size: 0.85rem; color: var(--muted); caption-side: bottom; border-top: 1px solid var(--line); }
.table th, .table td { padding: 0.95rem 1.1rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--navy-900); color: var(--white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f9fbff; }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table .prov { display: flex; align-items: center; gap: 0.7rem; }
.table .prov .plogo { width: 36px; height: 36px; font-size: 0.9rem; border-radius: 10px; }
.table .prov a { color: var(--ink); text-decoration: none; }
.table .prov a:hover { color: var(--blue-600); }
.table .btn { min-height: 38px; padding: 0.45rem 0.95rem; font-size: 0.85rem; }
.table--features td { text-align: center; }
.table--features td:first-child, .table--features th:first-child { text-align: left; }
.yes { color: var(--good); font-weight: 700; }
.no { color: var(--bad); font-weight: 700; }
.table-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }
.sticky-col { position: sticky; left: 0; background: inherit; z-index: 1; }
.table tbody .sticky-col { background: var(--white); }

/* ---------- Prose / article layout ---------- */
.article-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1040px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.prose { max-width: 760px; font-size: 1.04rem; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.45rem, 3vw, 1.85rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .table-wrap, .prose .pc, .prose .callout, .prose .card { margin: 1.5rem 0; }
.prose section { scroll-margin-top: calc(var(--header-h) + 16px); }

.sidebar { display: grid; gap: 1.25rem; }
@media (min-width: 1040px) { .sidebar { position: sticky; top: calc(var(--header-h) + 20px); } }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.side-card h2, .side-card h3 { font-size: 1rem; margin-bottom: 0.9rem; }
.side-card--dark { background: var(--navy-900); color: var(--on-dark); border-color: var(--navy-700); }
.facts { margin: 0 0 1.1rem; display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line-dark); font-size: 0.88rem; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--on-dark-muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: 0.15rem; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 0.6rem; padding: 0.4rem 0.5rem; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--blue-500); font-weight: 700; font-size: 0.78rem; padding-top: 0.12rem; }
.toc a:hover, .toc a.is-active { background: var(--surface); color: var(--ink); }

.callout { border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--surface-2); border-left: 4px solid var(--blue-500); font-size: 0.96rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: var(--warn-bg); border-left-color: var(--warn-line); color: #4d3800; }
.callout strong { display: block; margin-bottom: 0.25rem; }

.verdict { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--on-dark); border-radius: var(--radius-lg); padding: 1.75rem; }
.verdict h2 { color: var(--white); margin-top: 0 !important; }
.verdict p { color: var(--on-dark-muted); }
.verdict__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: step; position: relative; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.steps > li::before {
  content: counter(step, decimal-leading-zero); display: inline-block; font-weight: 800; font-size: 0.85rem;
  color: var(--blue-600); background: var(--surface-2); border-radius: 8px; padding: 0.2rem 0.55rem; margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.section--dark .steps > li { background: rgba(255,255,255,0.04); border-color: var(--line-dark); }
.section--dark .steps p { color: var(--on-dark-muted); }
.section--dark .steps > li::before { background: rgba(31,139,255,0.18); color: var(--blue-400); }

/* ---------- Articles ---------- */
.article-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; color: inherit; }
.article-card:hover { color: inherit; }
.article-card__art { aspect-ratio: 16 / 8; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--blue-400); position: relative; overflow: hidden; }
.article-card__art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 150px at 80% 0%, rgba(47,212,255,0.25), transparent 70%); }
.article-card__art svg { width: 56px; height: 56px; position: relative; z-index: 1; }
.article-card__body { padding: 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.article-card__tag { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600); }
.article-card__body h3 { margin: 0; font-size: 1.12rem; }
.article-card__body p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
.article-card__more { margin-top: auto; padding-top: 0.5rem; font-weight: 700; font-size: 0.9rem; color: var(--blue-600); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 860px; }
.faq--center { margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq details[open] { border-color: #c7d8f3; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue-500); border-bottom: 2px solid var(--blue-500); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq__a { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.25rem);
  background: radial-gradient(600px 300px at 100% 0%, rgba(47,212,255,0.3), transparent 60%), linear-gradient(135deg, var(--blue-600), var(--navy-800));
  color: var(--white); display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-band p { color: #d6e5ff; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn-primary { background: var(--white); color: var(--navy-900); box-shadow: none; }
.cta-band .btn-primary:hover { color: var(--blue-700); }

/* ---------- Notice / disclosure box ---------- */
.notice { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--blue-600); margin-top: 0.1rem; }
.notice p { margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #cfd9ea; border-radius: 10px; padding: 0.75rem 0.9rem; min-height: 46px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31,139,255,0.15); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field .error { color: var(--bad); font-size: 0.82rem; min-height: 1em; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.check input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--blue-600); }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 0.9rem 1rem; border-radius: 10px; font-weight: 600; font-size: 0.92rem; }
.form-status[hidden] { display: none; }
.form-status--ok { background: #e7f8f0; color: #0b6b46; }
.form-status--err { background: #fdecec; color: #9b2222; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 4rem 0 0; font-size: 0.93rem; }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer__brand p { margin-top: 1rem; max-width: 360px; }
.footer__tagline { color: var(--white); font-weight: 600; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer__legal { border-top: 1px solid var(--line-dark); padding: 1.5rem 0 2rem; display: grid; gap: 0.75rem; font-size: 0.82rem; }
@media (min-width: 820px) { .footer__legal { grid-template-columns: auto 1fr; align-items: start; gap: 2rem; } }
.footer__legal p { margin: 0; }
.footer__disclaimer { max-width: 760px; justify-self: end; text-align: left; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: var(--navy-800); color: var(--white); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--muted); }
.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.pill-list li { font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
.legal h2 { font-size: 1.35rem; }
.legal h3 { font-size: 1.08rem; }

/* ---------- Inline icon sizing ---------- */
.eyebrow svg { width: 16px; height: 16px; flex: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.page-meta svg { width: 16px; height: 16px; flex: none; }
.nav-dd-btn svg { width: 16px; height: 16px; flex: none; }
.finder__opt--wide svg { width: 20px; height: 20px; margin: 0; }
.score-pending { white-space: nowrap; }
.icon-badge svg, .notice svg { flex: none; }
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }
.article-layout > *, .grid > * { min-width: 0; }
.logo-strip > * { min-width: 0; } .logo-tile span { min-width: 0; overflow-wrap: anywhere; }
.btn[data-affiliate-pending]::after { display: none; left: auto; right: 0; transform: none; }
.btn[data-affiliate-pending]:hover::after, .btn[data-affiliate-pending]:focus-visible::after, .btn[data-affiliate-pending].is-flash::after { display: block; }
.table-wrap, .btn { position: relative; }
