:root {
  --bg: #0b0f17;
  --bg-2: #121826;
  --card: #161d2e;
  --card-2: #1c2436;
  --border: #253149;
  --text: #e8edf6;
  --muted: #94a3b8;
  --accent: #4f8cff;
  --accent-2: #38e0a6;
  --warn: #f5b84f;
  --danger: #ff6b6b;
  --good: #38e0a6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #15203a 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

.demo-banner {
  background: rgba(245,184,79,.12);
  color: var(--warn);
  border-bottom: 1px solid rgba(245,184,79,.25);
  font-size: 13px; text-align: center; padding: 8px 16px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11,15,23,.72);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark { color: var(--accent); font-size: 22px; }
.nav { display: flex; gap: 22px; font-weight: 500; }
.nav a { color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 0; }
.crumbs a:hover { color: var(--text); }

/* Hero */
.hero { padding: 54px 0 20px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card-2); color: var(--text);
  cursor: pointer; transition: transform .12s, border-color .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn-primary { background: linear-gradient(90deg, var(--accent), #3a79f0); border-color: transparent; }
.btn-primary:hover { background: linear-gradient(90deg, #5c96ff, #4a86ff); }
.btn-ghost { background: transparent; }

/* Section heading */
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 40px 0 16px; }
.section-head h2 { font-size: 24px; margin: 0; letter-spacing: -.01em; }
.section-head p { margin: 4px 0 0; }

/* Comparison table */
.table-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cmp-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--bg-2); }
.cmp-table tbody tr { transition: background .12s; }
.cmp-table tbody tr:hover { background: var(--card-2); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table a.row-firm { font-weight: 600; }
.firm-cell { display: flex; align-items: center; gap: 12px; }
.firm-logo { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06121f; flex: none; }
.firm-name { font-weight: 600; }
.firm-sub { font-size: 12px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pill-code { background: rgba(79,140,255,.14); color: var(--accent); font-family: ui-monospace, Menlo, monospace; }
.rating { font-weight: 700; }
.star { color: var(--warn); }

/* Verification badge */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge-checked { background: rgba(56,224,166,.14); color: var(--good); }
.badge-unverified { background: rgba(245,184,79,.14); color: var(--warn); }
.verify-note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--border); padding-left: 12px; margin: 14px 0; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 4px; font-size: 17px; }

/* Discount cards */
.disc { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.disc-info h3 { margin: 0; }
.disc-info p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.code-box {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: ui-monospace, Menlo, monospace; font-weight: 700;
  background: var(--bg-2); border: 1px dashed var(--accent); color: var(--accent);
  padding: 8px 12px; border-radius: 9px; cursor: pointer; font-size: 14px;
}
.code-box:hover { background: rgba(79,140,255,.1); }

/* Detail page */
.detail-head { display: flex; align-items: center; gap: 18px; margin: 18px 0 8px; flex-wrap: wrap; }
.detail-head .firm-logo { width: 56px; height: 56px; font-size: 22px; border-radius: 12px; }
.detail-head h1 { margin: 0; font-size: 30px; }
.back-link { color: var(--muted); font-size: 14px; display: inline-block; margin-top: 10px; }
.back-link:hover { color: var(--text); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 20px; font-weight: 700; margin-top: 4px; }

.plan-tabs { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.plan-tab { padding: 8px 16px; border-radius: 9px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-weight: 600; font-size: 14px; }
.plan-tab.active { border-color: var(--accent); background: rgba(79,140,255,.12); color: var(--accent); }
.plan-panel { display: none; }
.plan-panel.active { display: block; }

.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rule { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-size: 14px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }
.tag-yes { background: rgba(56,224,166,.15); color: var(--good); }
.tag-no { background: rgba(255,107,107,.15); color: var(--danger); }
.tag-limited { background: rgba(245,184,79,.15); color: var(--warn); }

.cta-row { margin: 30px 0; display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { color: var(--muted); font-size: 14px; padding: 0 0 14px; }

/* Simulator */
.sim { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.sim-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
  font-size: 15px; font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }

.sim-result { margin-top: 18px; }
.gauge { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.gauge .stat .value.big { font-size: 24px; }
.status-line { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.status-safe { background: rgba(56,224,166,.12); color: var(--good); border: 1px solid rgba(56,224,166,.3); }
.status-warn { background: rgba(245,184,79,.12); color: var(--warn); border: 1px solid rgba(245,184,79,.3); }
.status-breach { background: rgba(255,107,107,.12); color: var(--danger); border: 1px solid rgba(255,107,107,.3); }

.bar { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar.danger > span { background: linear-gradient(90deg, #ff8a8a, var(--danger)); }

.explain { margin-top: 18px; font-size: 14px; color: var(--muted); border-left: 3px solid var(--border); padding-left: 14px; }
.explain strong { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 28px 0 50px; }
.site-footer p { margin: 0 0 6px; font-size: 14px; }

@media (max-width: 720px) {
  .nav { gap: 14px; font-size: 14px; }
  .cmp-table { font-size: 13px; }
  .cmp-table th, .cmp-table td { padding: 11px 10px; }
  .hide-sm { display: none; }
}

/* Articles / guides */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(26px, 4.5vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 8px; }
.article .byline { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.article h2 { font-size: 23px; margin: 34px 0 12px; letter-spacing: -.01em; }
.article p { font-size: 16px; color: #d7deea; margin: 0 0 16px; }
.article a { color: var(--accent); }
.article a:hover { text-decoration: underline; }
.article ul { padding-left: 20px; margin: 0 0 18px; }
.article li { margin: 7px 0; color: #d7deea; }
.article .callout { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin: 20px 0; color: var(--muted); font-size: 15px; }
.article .callout a, .article .callout strong { color: var(--text); }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.article th, .article td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.article thead th { background: var(--bg-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.article tbody tr:last-child td { border-bottom: none; }
.article .art-cta { margin: 26px 0; }

.blog-list { display: grid; gap: 14px; }
.blog-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; transition: border-color .15s, transform .12s; }
.blog-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.blog-card h3 { margin: 0 0 6px; font-size: 19px; }
.blog-card p { margin: 0; color: var(--muted); font-size: 14px; }
.blog-card .meta { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* Filter bar (home) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin: 0 0 14px; }
.filter-field { display: flex; flex-direction: column; gap: 5px; }
.filter-field label { font-size: 12px; color: var(--muted); font-weight: 500; }
.filter-field select { padding: 8px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font-size: 14px; font-family: inherit; }
.filter-check { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text); padding-bottom: 8px; cursor: pointer; }
.filter-count { margin-left: auto; color: var(--muted); font-size: 13px; padding-bottom: 8px; }
.filter-reset { background: none; border: none; color: var(--accent); font-size: 13px; cursor: pointer; padding-bottom: 8px; }
.no-results td { padding: 24px; text-align: center; color: var(--muted); }

/* Side-by-side compare */
.versus-pickers { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.versus-pickers select { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font-size: 14px; min-width: 150px; font-family: inherit; }
.versus-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.versus-table th, .versus-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.versus-table thead th { background: var(--bg-2); font-size: 13px; color: var(--text); }
.versus-table td:first-child, .versus-table th:first-child { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }

/* Quiz */
.quiz-q { margin-bottom: 22px; }
.quiz-q h3 { font-size: 16px; margin: 0 0 10px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-opt { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s; }
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt.selected { border-color: var(--accent); background: rgba(79,140,255,.14); color: var(--accent); }
.quiz-result-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.quiz-result-card.top { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(79,140,255,.3); }
.quiz-rank { font-size: 22px; font-weight: 800; color: var(--muted); width: 30px; flex: none; text-align: center; }
.quiz-result-card.top .quiz-rank { color: var(--accent); }
.quiz-result-info { flex: 1; }
.quiz-result-info h3 { margin: 0 0 3px; font-size: 17px; }
.quiz-result-info p { margin: 0; font-size: 13px; color: var(--muted); }

/* Calculators */
.calc + .calc { margin-top: 22px; }
.calc h3 { margin: 0 0 14px; font-size: 18px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; }
.calc-table th, .calc-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.calc-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.calc-table tr.best td { color: var(--good); font-weight: 600; }
