/* ==========================================================
   OTP Number Lab — main.css
   Dark "lab" theme: near-black surfaces, gold accent, pill buttons,
   mono tags. Platform accents: Telegram blue, WhatsApp green,
   Google orange, countries purple.
   ========================================================== */

:root {
  color-scheme: dark;

  --bg: #0b0b0f;
  --bg-2: #101016;
  --surface: #15151c;
  --surface-2: #1b1b24;
  --surface-3: #22222d;
  --line: #2a2a36;
  --line-soft: #20202a;

  --text: #ededf2;
  --text-2: #c9c9d3;
  --muted: #9a9aa7;
  --muted-2: #6f6f7c;

  --gold: #f5b942;
  --gold-2: #ffd27a;
  --gold-deep: #e39a1e;
  --gold-text: #f7c35c;
  --gold-grad: linear-gradient(180deg, #ffd77d 0%, #f4ad2f 100%);
  --gold-soft: rgba(245, 185, 66, .12);
  --gold-line: rgba(245, 185, 66, .45);

  --blue: #4d93ff;
  --green: #2fd36b;
  --orange: #ff7a1a;
  --purple: #8d5bff;
  --red: #ff5a6a;

  --s-works: #35d47a;
  --s-sometimes: #f5b942;
  --s-fails: #ff5a6a;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -24px rgba(0,0,0,.8);
  --shadow-gold: 0 8px 24px -8px rgba(245, 185, 66, .55);
  --shadow-pop: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04);

  --container: 1200px;
  --container-narrow: 860px;
  --gutter: 32px;
  --band-y: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 1.2em; }
a { color: var(--gold-text); text-underline-offset: 3px; text-decoration-color: rgba(247,195,92,.4); }
a:hover { color: var(--gold-2); text-decoration-color: currentColor; }
strong { color: var(--text); font-weight: 600; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(245,185,66,.3); color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.visually-hidden { 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: 16px; top: -60px; z-index: 100; background: var(--gold); color: #111; padding: 8px 16px; border-radius: var(--r-full); font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); }
.band { padding: var(--band-y) 0; }
.band-soft { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Typography ---------- */
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; max-width: 17ch; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; max-width: 28ch; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 15px; line-height: 1.4; font-weight: 600; margin-bottom: 8px; }
.eyebrow { font: 500 12px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.eyebrow-sm { font: 500 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--text-2); max-width: 52ch; }
.section-intro { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 64ch; margin-bottom: 32px; }

/* ---------- Pre-launch note ---------- */
.proto-note { background: linear-gradient(90deg, #3a2a08, #2a1f07); color: var(--gold-2); border-bottom: 1px solid var(--gold-line); font: 500 13px/1.5 var(--font); padding: 8px 0; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1.2 var(--font); letter-spacing: -0.01em;
  padding: 13px 22px; min-height: 46px; border-radius: var(--r-full);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--gold-grad); color: #1a1205; box-shadow: var(--shadow-gold); }
.btn-primary:hover { color: #1a1205; transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(245,185,66,.7); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { color: var(--text); border-color: var(--gold-line); background: var(--gold-soft); }
.btn-outline-gold { background: transparent; color: var(--gold-2); border-color: var(--gold-line); }
.btn-outline-gold:hover { color: var(--gold-2); background: var(--gold-soft); border-color: var(--gold); }
.btn-sm { font-size: 13px; padding: 9px 16px; min-height: 38px; }
.btn .ext { font-size: .85em; opacity: .8; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link-arrow { font-weight: 600; color: var(--gold-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Tags / badges ---------- */
.badge, .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-full); vertical-align: middle; white-space: nowrap;
}
.badge-info, .tag-gold { background: var(--gold-grad); color: #1a1205; font-weight: 700; }
.badge-soft, .tag { background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); }
.tag-outline { background: transparent; color: var(--gold-text); border: 1px solid var(--gold-line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,11,15,.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--font-display); color: var(--text); text-decoration: none; letter-spacing: -0.02em; margin: 0; }
.logo:hover { color: var(--text); }
.logo .logo-accent { color: var(--gold); }
.logo-mark { width: 22px; height: 28px; border: 2px solid var(--text); border-radius: 6px; position: relative; flex: none; }
.logo-mark::before { content: ""; position: absolute; left: 50%; top: 4px; width: 6px; height: 2px; margin-left: -3px; background: var(--text); border-radius: 2px; }
.logo-mark::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 5px; height: 6px; border-radius: 2px; background: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font: 500 15px/1.3 var(--font); color: var(--muted); text-decoration: none; background: none; border: 0; border-radius: var(--r-full); cursor: pointer; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--gold-2); background: var(--gold-soft); }
.dropdown-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px); }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-pop); display: none; }
.has-dropdown.is-open .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; color: var(--text-2); text-decoration: none; font-size: 14px; border-radius: 8px; }
.dropdown a:hover { background: var(--surface-3); color: var(--text); }
.nav-cta { padding: 10px 18px; min-height: 40px; font-size: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 1.5px; background: var(--text); content: ""; transition: transform .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(245,185,66,.13), transparent 70%); pointer-events: none; }
.hero > .container { position: relative; }
.hero h1 { margin-bottom: 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; }
.hero-figure { margin: 0; position: relative; justify-self: center; }
.hero-figure::before { content: ""; position: absolute; inset: 10% -10%; background: radial-gradient(closest-side, rgba(245,185,66,.35), transparent 70%); filter: blur(30px); z-index: 0; }
.hero-figure img { position: relative; z-index: 1; width: 100%; max-width: 330px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); transform: rotate(3deg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 48px 0 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.trust-strip > div { display: flex; flex-direction: column-reverse; background: var(--surface); padding: 18px 22px; }
.trust-strip dt { font-size: 13px; color: var(--muted); }
.trust-strip dd { margin: 0 0 2px; font: 700 30px/1.2 var(--font-display); color: var(--gold-2); letter-spacing: -0.02em; }
.affiliate-note { font-size: 13px; color: var(--muted-2); }
.affiliate-note a { color: var(--muted); }

/* ---------- Jump nav ---------- */
.jump-nav { position: sticky; top: 72px; z-index: 40; background: rgba(11,11,15,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.jump-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.jump-nav ul::-webkit-scrollbar { display: none; }
.jump-nav a { display: block; white-space: nowrap; padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: var(--r-full); border: 1px solid transparent; }
.jump-nav a:hover { color: var(--text); border-color: var(--line); }

/* ---------- Cards ---------- */
.card { border-radius: var(--r-lg); padding: 28px; }
.card-feature { background: var(--surface); border: 1px solid var(--line); color: var(--text-2); box-shadow: var(--shadow-card); }
.card-feature.is-featured, .card-pricing.is-featured { border-color: var(--gold-line); box-shadow: 0 0 0 1px rgba(245,185,66,.12), 0 24px 50px -24px rgba(245,185,66,.25); }
.card h3:last-child, .card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; color: var(--text-2); }
a.card:hover { border-color: var(--gold-line); color: var(--text-2); transform: translateY(-2px); }
a.card .link-arrow { margin-top: auto; padding-top: 18px; }

/* Top-pick cards (reference: app cards with pack art) */
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pick-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-card); transition: border-color .15s; }
.pick-card:hover { border-color: #3a3a48; }
.pick-card.is-featured { border-color: var(--gold-line); }
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pick-head h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--gold-2); }
.pick-card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 16px; }
.pick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.score { font: 700 26px/1 var(--font-display); color: var(--gold); letter-spacing: -0.02em; white-space: nowrap; }
.score-na { font: 600 14px/1.2 var(--font); color: var(--muted-2); }

/* Monogram "pack" tiles */
.tile { position: relative; aspect-ratio: 112 / 140; border-radius: 12px; overflow: hidden; display: grid; place-items: center; isolation: isolate; box-shadow: 0 16px 30px -12px rgba(0,0,0,.8); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tile-bg); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%), radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.18), transparent 60%); }
.tile-mono { font: 800 30px/1 var(--font-display); color: rgba(255,255,255,.92); letter-spacing: -0.03em; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.tile-sub { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font: 500 9px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.tile-rank { position: absolute; top: 8px; left: 8px; font: 700 11px/1 var(--font-mono); color: var(--gold-2); background: rgba(0,0,0,.55); padding: 5px 7px; border-radius: 6px; }
.tile--private { --tile-bg: linear-gradient(160deg, #1f4fae 0%, #0d1f4a 100%); }
.tile--google { --tile-bg: linear-gradient(160deg, #2a8a52 0%, #0f2c1d 100%); }
.tile--paid { --tile-bg: linear-gradient(160deg, #e7a52b 0%, #6b3f07 100%); }
.tile--public { --tile-bg: linear-gradient(160deg, #9aa0ad 0%, #2c2f37 100%); }

.card-dark { background: linear-gradient(135deg, #1b1610 0%, #15151c 55%); border: 1px solid var(--line); color: var(--text-2); }
.card-dark h2 { margin-bottom: 28px; }
.card-dark h3 { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.dark-note { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }

/* Platform category cards: dark with colored top bar */
.category-card { position: relative; background: var(--surface); border: 1px solid var(--line); min-height: 300px; overflow: hidden; color: var(--text-2); }
.category-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cat); }
.category-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; background: radial-gradient(closest-side, var(--cat-glow), transparent); pointer-events: none; }
.category-card .eyebrow-sm { color: var(--cat); }
.category-card h3 { font-size: 24px; line-height: 1.2; font-weight: 700; }
.category-card p { color: var(--muted); }
.category-card .link-arrow { color: var(--cat); }
.cat-blue { --cat: var(--blue); --cat-glow: rgba(77,147,255,.18); }
.cat-green { --cat: var(--green); --cat-glow: rgba(47,211,107,.16); }
.cat-orange { --cat: var(--orange); --cat-glow: rgba(255,122,26,.16); }
.cat-purple { --cat: var(--purple); --cat-glow: rgba(141,91,255,.18); }

/* Country cards */
.country-card { position: relative; overflow: hidden; }
.country-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--purple); }
.country-code { font: 600 13px/1 var(--font-mono); color: var(--purple); margin-bottom: 12px; letter-spacing: .06em; }
.country-card h3 { margin-bottom: 10px; }
.country-card p { font-size: 15px; margin-bottom: 8px; color: var(--muted); }
.country-card p strong { color: var(--gold-2); }

/* ---------- Tables ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
select { color-scheme: dark; }
.filters select, .finder select {
  font: 500 15px/1.4 var(--font); color: var(--text); background-color: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 40px 11px 14px;
  min-height: 46px; min-width: 180px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat;
}
.filters select:hover, .finder select:hover { border-color: var(--gold-line); }
.filters-count { margin: 0 0 12px auto; font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
thead th { font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; white-space: nowrap; background: var(--bg-2); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: rgba(255,255,255,.015); }
tbody th { font: 600 15px/1.3 var(--font-display); color: var(--text); white-space: nowrap; }
tbody th a { color: var(--text); text-decoration: none; }
tbody th a:hover { color: var(--gold-2); }
tbody th .tag { display: flex; width: max-content; margin-top: 7px; padding: 5px 8px; font-size: 9.5px; }

.ranking-table th, .ranking-table td { padding: 16px 8px; }
.ranking-table th:first-child, .ranking-table td:first-child { padding-left: 18px; }
.ranking-table thead th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ranking-table thead th button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ranking-table thead th[data-sort] button::after { content: "↕"; color: var(--muted-2); }
.ranking-table thead th[aria-sort="ascending"] button::after { content: "↑"; color: var(--gold); }
.ranking-table thead th[aria-sort="descending"] button::after { content: "↓"; color: var(--gold); }
.ranking-table td:first-child { width: 52px; }
.rank { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(245,185,66,.12); color: var(--gold-2); font: 700 13px/1 var(--font-mono); }
.ranking-table tr.is-top { background: linear-gradient(90deg, rgba(245,185,66,.07), transparent 60%); }
.ranking-table tr.is-top .rank { background: var(--gold-grad); color: #1a1205; }
.ranking-table td[data-label="Score"] strong { font: 700 20px/1 var(--font-display); color: var(--gold); }
.ranking-table td[data-label="Type"], .ranking-table td[data-label="Signup"] { min-width: 88px; color: var(--muted); }
.ranking-table td[data-label="OTP success"] { color: var(--text); font-weight: 600; }
.ranking-table td[data-label="Last tested"] { color: var(--muted); font-size: 13px; }
.ranking-table .actions { width: 120px; text-align: right; padding-right: 18px; }
.ranking-table tr[hidden] { display: none; }
@media (min-width: 768px) and (max-width: 1279px) {
  .ranking-table th:nth-child(8), .ranking-table td[data-label="Signup"] { display: none; }
}
.table-empty { padding: 24px; margin: 0; color: var(--muted); }
.table-legend { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

.cc { display: inline-block; font: 500 11px/18px var(--font-mono); padding: 0 6px; margin: 2px 3px 2px 0; border: 1px solid var(--line); border-radius: 5px; color: var(--text-2); background: var(--bg); }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); flex: none; }
.s-works::before { background: var(--s-works); box-shadow: 0 0 10px rgba(53,212,122,.6); }
.s-sometimes::before { background: var(--s-sometimes); box-shadow: 0 0 10px rgba(245,185,66,.5); }
.s-fails::before { background: var(--s-fails); box-shadow: 0 0 10px rgba(255,90,106,.5); }

.compare-table th[scope="row"] { width: 28%; color: var(--text); font-family: var(--font); font-size: 14px; white-space: normal; }
.compare-table td { color: var(--muted); }
#public-vs-private .table-wrap { margin-bottom: 24px; }
.matrix-wrap { margin-bottom: 32px; }
.matrix-table th[scope="row"] { width: 34%; font-size: 14px; white-space: normal; }

/* ---------- Finder panel (reference: card lookup) ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.finder-copy { padding: 40px; background: linear-gradient(135deg, #2a2110 0%, #18161a 60%); }
.finder-copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.finder-copy p { color: var(--muted); max-width: 40ch; }
.finder-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 26px 0 0; }
.finder-stats dd { margin: 0; font: 700 24px/1.1 var(--font-display); color: var(--gold-2); }
.finder-stats dt { font-size: 12px; color: var(--muted); }
.finder-stats > div { display: flex; flex-direction: column-reverse; }
.finder-form { padding: 40px; display: flex; flex-direction: column; gap: 18px; justify-content: center; background: linear-gradient(180deg, #17171f, #13131a); }
.finder-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.finder-box label { display: flex; flex-direction: column; gap: 8px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.finder-box select { min-width: 0; width: 100%; }
.finder-box .btn { grid-column: 1 / -1; }
.finder-form .link-arrow { font-size: 14px; }

/* ---------- Reviews ---------- */
.review { margin-bottom: 20px; }
.review h3 { font-size: 24px; line-height: 1.25; font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font: 500 10.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 16px; }
.pros-cons h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.pros-cons ul { padding-left: 0; list-style: none; margin: 0; }
.pros-cons li { padding-left: 22px; position: relative; margin-bottom: 6px; font-size: 15px; }
.pros-cons > div:first-child li::before { content: "+"; position: absolute; left: 0; font-weight: 700; color: var(--s-works); }
.pros-cons > div:last-child li::before { content: "–"; position: absolute; left: 0; font-weight: 700; color: var(--s-fails); }
.callout { border-left: 3px solid var(--s-fails); padding: 12px 16px; background: rgba(255,90,106,.08); color: var(--text); border-radius: 0 10px 10px 0; }
.prose { max-width: 760px; margin-top: 32px; }
.prose h3 { font-size: 20px; margin-bottom: 8px; }
.prose p:last-child { margin-bottom: 0; }
#paid .prose { margin-bottom: 24px; }

/* ---------- HowTo ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; margin-bottom: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 64px; border-left: 1px dashed var(--line); margin-left: 20px; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: -21px; top: 0; width: 42px; height: 42px; display: grid; place-items: center; background: var(--gold-grad); color: #1a1205; border-radius: var(--r-full); font: 700 15px/1 var(--font-display); box-shadow: var(--shadow-gold); }
.steps h3 { font-size: 19px; margin-bottom: 4px; padding-top: 8px; }
.steps p { color: var(--muted); }

/* ---------- Safety ---------- */
.do-dont h3 { font-size: 19px; }
.do-dont ul { list-style: none; padding: 0; margin: 0; }
.do-dont li { padding: 10px 0 10px 34px; border-top: 1px solid var(--line); position: relative; }
.do-dont li::before { position: absolute; left: 0; top: 12px; font: 600 10px/1 var(--font-mono); letter-spacing: .08em; padding: 4px 5px; border-radius: 5px; }
.do { border-top: 3px solid var(--s-works); }
.do li::before { content: "YES"; color: var(--s-works); background: rgba(53,212,122,.12); }
.dont { border-top: 3px solid var(--s-fails); }
.dont li::before { content: "NO"; color: var(--s-fails); background: rgba(255,90,106,.12); }
#safety .grid { margin-bottom: 24px; }

/* ---------- Pricing ---------- */
.card-pricing { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.card-pricing .badge { align-self: flex-start; margin-bottom: 16px; }
.card-pricing h3 { font-size: 24px; font-weight: 700; color: var(--gold-2); }
.card-pricing .price { font: 500 13px/1.4 var(--font-mono); color: var(--muted); }
.card-pricing ul { padding-left: 1.1em; margin-bottom: 22px; color: var(--muted); }
.card-pricing li::marker { color: var(--gold); }
.card-pricing .btn { margin-top: auto; }
#paid .affiliate-note { margin-top: 24px; }

/* ---------- Methodology ---------- */
.method-weight { font: 700 40px/1 var(--font-display); color: var(--gold); letter-spacing: -0.03em; margin-bottom: 14px; }
.method h3 { font-size: 19px; margin-bottom: 6px; }
.method p { color: var(--muted); }
#methodology .grid { margin-bottom: 24px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative; font: 600 18px/1.4 var(--font-display); color: var(--text); letter-spacing: -0.01em; }
.faq summary:hover { color: var(--gold-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-full); font: 400 20px/1 var(--font); color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; margin: 0; max-width: 68ch; color: var(--muted); }

/* ---------- Author ---------- */
.author-box { display: flex; gap: 22px; align-items: flex-start; }
.author-avatar { width: 64px; height: 64px; flex: none; border-radius: var(--r-full); background: var(--gold-grad); color: #1a1205; display: grid; place-items: center; font: 700 20px/1 var(--font-display); }
.author-name { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.author-name a { color: var(--gold-2); }
.author-bio { margin-bottom: 6px; color: var(--muted); }
.author-meta { font-size: 13px; color: var(--muted-2); margin: 0; }
.author-meta a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line-soft); background: #08080b; color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { margin: 0 0 14px; max-width: 38ch; }
.footer-note { font: 600 12px/1.5 var(--font-mono); color: var(--gold); }
.footer-title { font: 700 12px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin: 4px 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer a[aria-current="page"] { color: var(--gold-2); }
.footer-legal { padding-top: 24px; border-top: 1px solid var(--line-soft); margin: 0; color: var(--muted-2); font-size: 13px; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 16px 20px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex: none; }

/* ---------- Inner pages ---------- */
.breadcrumbs { padding: 20px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current="page"] { color: var(--text); }
.page-header { position: relative; padding: 44px 0 40px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.page-header::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; background: radial-gradient(closest-side, rgba(245,185,66,.1), transparent 70%); pointer-events: none; }
.page-header .container { position: relative; }
.page-header h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 16px; }
.page-header .lead { font-size: 18px; max-width: 60ch; margin-bottom: 0; }
.page-header.accent-blue { --acc: var(--blue); }
.page-header.accent-green { --acc: var(--green); }
.page-header.accent-orange { --acc: var(--orange); }
.page-header.accent-purple { --acc: var(--purple); }
.page-header[class*="accent-"] { border-top: 3px solid var(--acc); }
.page-header[class*="accent-"] .eyebrow { color: var(--acc); }
.page-header[class*="accent-"]::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 18%, transparent), transparent 70%); }
.page-header h1 { max-width: 20ch; }
.page-header .hero-actions { margin-top: 26px; }
.trust-strip.trust-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin: 32px 0 0; }
.legal .author-box h3 { margin-bottom: 6px; }
.page-meta { font-size: 13px; color: var(--muted); margin: 16px 0 0; font-family: var(--font-mono); }
.page-body { padding: 56px 0 96px; }
.with-toc { display: grid; grid-template-columns: minmax(0, 720px) 240px; gap: 64px; justify-content: space-between; align-items: start; }
.with-toc > * { min-width: 0; }
.toc { position: sticky; top: 96px; order: 2; font-size: 14px; line-height: 1.4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.toc-title { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--gold-2); border-left-color: var(--gold); font-weight: 500; }
.legal h2 { font-size: 26px; margin: 48px 0 16px; scroll-margin-top: 96px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal li { margin-bottom: 6px; }
.legal .table-wrap { margin: 16px 0 24px; }
.draft-note { background: rgba(245,185,66,.08); border-left: 3px solid var(--gold); padding: 12px 16px; color: var(--gold-2); font-size: 14px; border-radius: 0 10px 10px 0; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.contact-aside { display: grid; gap: 16px; }
.contact-aside .card { padding: 24px; }
.contact-aside h2 { font-size: 19px; margin-bottom: 8px; }
.contact-aside p { font-size: 15px; color: var(--muted); }
.contact-email { font-weight: 600; word-break: break-all; }
.topic-list { list-style: none; padding: 0; margin: 0; }
.topic-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.topic-list strong { color: var(--text); font-weight: 600; }
.form { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font: 500 11px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field .check { font: 400 15px/1.5 var(--font); letter-spacing: 0; text-transform: none; color: var(--text-2); }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea { font: 400 16px/1.5 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 17px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; cursor: pointer; }
.field textarea { min-height: 180px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3a3a48; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,185,66,.18); }
.field [aria-invalid="true"] { border-color: var(--s-fails); }
.field-hint { font-size: 13px; color: var(--muted-2); display: flex; justify-content: space-between; gap: 8px; margin: 0; }
.field-error { font-size: 13px; color: #ff8a96; margin: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 14px; margin: 0; color: var(--muted); }
.form-status.is-error { color: #ff8a96; }
.form-success { border: 1px solid rgba(53,212,122,.5); background: rgba(53,212,122,.08); border-radius: var(--r-xl); padding: 28px; }
.form-success h2 { font-size: 22px; margin-bottom: 8px; }
.form-success[hidden] { display: none; }

/* ==========================================================
   Responsive — 992 / 768 / 479
   ========================================================== */
@media (max-width: 1100px) {
  .picks { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  :root { --band-y: 72px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-figure { max-width: 260px; justify-self: start; }
  .finder { grid-template-columns: 1fr; }
  .with-toc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; order: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 4px; font-size: 16px; min-height: 44px; border-radius: 10px; }
  .dropdown { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; min-width: 0; }
  .dropdown a { font-size: 15px; padding: 10px 4px; }
  .jump-nav { top: 72px; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --band-y: 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 40px; }
  .hero-figure { max-width: 220px; justify-self: center; }
  .hero-figure img { transform: rotate(2deg); }
  .hero-actions .btn { flex: 1 1 auto; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
  .trust-strip > div { padding: 14px 16px; }
  .trust-strip dd { font-size: 24px; }
  .card { padding: 22px; }
  .category-card { min-height: 0; }
  .pick-card { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .tile-mono { font-size: 22px; }
  .pick-head h3 { font-size: 19px; }
  .score { font-size: 22px; }
  .pick-actions .btn { flex: 1 1 auto; }
  .pros-cons { grid-template-columns: 1fr; gap: 16px; }
  .filters label { flex: 1 1 140px; }
  .filters select { min-width: 0; width: 100%; }
  .filters-count { margin: 0; flex-basis: 100%; }
  .finder-copy, .finder-form { padding: 24px; }
  .finder-box { grid-template-columns: 1fr; }
  .faq summary { font-size: 16px; padding: 18px 48px 18px 0; }
  .author-box { flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .cookie-banner { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cookie-actions .btn { flex: 1; }
  .page-header { padding: 28px 0; }
  .page-body { padding: 36px 0 64px; }
  .form { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .legal h2 { font-size: 22px; margin-top: 40px; }

  /* Matrix table: compact */
  .matrix-table { table-layout: fixed; }
  .matrix-table th[scope="row"], .matrix-table thead th:first-child { width: 31%; }
  .matrix-table td, .matrix-table th { padding: 10px 6px; font-size: 12px; line-height: 16px; }
  .matrix-table thead th { white-space: normal; font-size: 9.5px; }
  .matrix-table td .status { display: inline; white-space: normal; }
  .matrix-table td .status::before { display: inline-block; margin-right: 4px; vertical-align: 1px; }

  /* Ranking table -> cards */
  #ranking .table-wrap { border: 0; background: transparent; overflow: visible; }
  .ranking-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .ranking-table, .ranking-table tbody { display: block; }
  .ranking-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px; }
  .ranking-table tr[hidden] { display: none; }
  .ranking-table tr.is-top { border-color: var(--gold-line); }
  .ranking-table td, .ranking-table tbody th { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border: 0; white-space: normal; width: auto; }
  .ranking-table td::before { content: attr(data-label); font: 500 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
  .ranking-table td:first-child { display: none; }
  .ranking-table td[data-label="Countries"] { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ranking-table td[data-label="Countries"]::before { flex-basis: 100%; }
  .ranking-table tbody th { grid-column: 1 / -1; font-size: 19px; border-bottom: 1px solid var(--line); padding: 0 0 12px; margin-bottom: 4px; }
  .ranking-table .actions { grid-column: 1 / -1; padding: 10px 0 0; text-align: left; }
  .ranking-table .actions:empty { display: none; }
  .ranking-table .actions::before { display: none; }
  .ranking-table .actions .btn { width: 100%; }
}

@media (max-width: 478px) {
  .facts { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 36px; }
  .finder-stats { gap: 18px; }
}
