/* ===================================================================
   DIY Home Security HQ — Main Stylesheet v2
   Theme: Forensic Consumer Advocate — Dark, Technical, Trustworthy
   =================================================================== */

/* ─── CSS Variables ─────────────────────────────────────────────── */
:root {
  --primary: #0F172A;
  --primary-dark: #020617;
  --accent: #14B8A6;
  --accent-dark: #0F766E;
  --accent-light: #CCFBF1;
  --warning: #F59E0B;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --success: #16A34A;
  --success-light: #F0FDF4;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --border: #CBD5E1;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 4px 16px rgba(2, 6, 23, 0.06);
  --shadow-hover: 0 10px 30px rgba(2, 6, 23, 0.12);
  --shadow-lg: 0 20px 60px rgba(2, 6, 23, 0.15);
  --container: 1280px;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
}

h2 {
  font-size: clamp(22px, 4vw, 32px);
}

h3 {
  font-size: clamp(18px, 3vw, 24px);
}

h4 {
  font-size: 20px;
}

p+p {
  margin-top: 1rem;
}

ul,
ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.4em;
}

/* ─── Utilities ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-secondary);
}

.text-danger {
  color: var(--danger);
}

.text-success {
  color: var(--success);
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

.hidden {
  display: none;
}

.pass {
  color: var(--success);
  font-weight: 700;
}

.fail {
  color: var(--danger);
  font-weight: 700;
}

.partial {
  color: var(--warning);
  font-weight: 700;
}

/* ─── Score Classes ─────────────────────────────────────────────── */
.score-excellent {
  color: var(--success);
}

.score-good {
  color: var(--accent-dark);
}

.score-fair {
  color: var(--warning);
}

.score-poor {
  color: var(--danger);
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ─── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 500;
}

.alert-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #86EFAC;
}

.alert-error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #FCA5A5;
}

.alert-warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

/* ─── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(2, 6, 23, 0.05);
  transition: box-shadow .2s;
}

.site-header.header-scrolled {
  box-shadow: 0 2px 20px rgba(2, 6, 23, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo:hover {
  text-decoration: none;
}

.main-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

.nav-item>a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.nav-item>a:hover,
.nav-item>a.active {
  color: var(--accent-dark);
  background: var(--accent-light);
  text-decoration: none;
}

.nav-chevron {
  font-size: 10px;
  opacity: 0.6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mega menu */
.nav-item.has-mega {
  position: relative;
}

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  min-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 24px;
}

.mega-col {
  padding: 0 16px;
}

.mega-col+.mega-col {
  border-left: 1px solid var(--border);
}

.mega-heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mega-menu ul {
  list-style: none;
  padding: 0;
}

.mega-menu li {
  margin-bottom: 2px;
}

.mega-menu a {
  display: block;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--text-primary);
  border-radius: 6px;
  transition: background .12s, color .12s;
}

.mega-menu a:hover {
  background: var(--surface-alt);
  color: var(--accent-dark);
  text-decoration: none;
}

.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega:focus-within .mega-menu {
  display: block;
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.mobile-menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  z-index: 999;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-inner {
  padding: 16px 24px 80px;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
}

.mobile-nav-list li {
  margin-bottom: 4px;
}

.mobile-nav-list a {
  display: block;
  padding: 10px 12px;
  font-size: 16px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.mobile-nav-list a:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

.mobile-nav-list strong {
  display: block;
  padding: 16px 12px 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.mobile-nav-list hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, .15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 184, 166, .2);
  border: 1px solid rgba(20, 184, 166, .4);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero .hero-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, .75);
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  flex-wrap: wrap;
}

.hero-stat .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.hero-stat .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

/* ─── Trust Strip ────────────────────────────────────────────────── */
.trust-strip {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.trust-strip-inner {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item .ti-icon {
  color: var(--accent);
  font-size: 16px;
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.trust-badge {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Sections ───────────────────────────────────────────────────── */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-dark {
  background: var(--primary);
  color: #fff;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  margin-bottom: 10px;
}

.section-header .section-sub {
  font-size: 18px;
  color: var(--text-secondary);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

/* Article cards */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.article-card h3 {
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex: 1;
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-top: auto;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--surface-alt);
}

/* Brand score cards */
.brand-score-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.bsc-header {
  background: var(--primary);
  padding: 20px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bsc-name {
  font-size: 20px;
  font-weight: 700;
}

.bsc-score {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.bsc-rows {
  padding: 16px 24px;
}

.bsc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.bsc-row:last-child {
  border-bottom: none;
}

.bsc-row-label {
  color: var(--text-secondary);
}

.bsc-row-score {
  font-weight: 700;
  font-size: 16px;
}

/* Offer cards */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.offer-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s;
}

.offer-card:hover {
  box-shadow: var(--shadow-hover);
}

.offer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.offer-card-body {
  padding: 20px;
  padding-top: 36px;
}

.offer-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.offer-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.offer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.offer-price {
  font-size: 18px;
  font-weight: 800;
}

.affiliate-link {}

/* Tool cards */
.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, transform .2s;
}

.tool-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

.tool-card .tc-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.tool-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

.tool-card .tc-cta {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}

.tool-card-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  transition: background .15s;
}

.tool-card-mini:hover {
  background: var(--accent-light);
  text-decoration: none;
}

/* ─── Article Layout ─────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: 88px;
}

.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.article-content h2 {
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article-content h3 {
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px;
}

/* Sidebar cards */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.sidebar-card h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

/* Author box */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 40px 0;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.author-info .author-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.author-info .author-bio {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ─── Comparison Table ───────────────────────────────────────────── */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
  background: var(--surface-alt);
}

.comparison-table .winner td {
  background: var(--success-light) !important;
}

.comparison-table .winner-row td {
  background: var(--success-light) !important;
}

.score-good {
  color: var(--accent-dark);
}

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-section {
  margin: 48px 0;
}

.faq-section h2 {
  margin-bottom: 24px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-question:hover {
  background: var(--surface-alt);
}

.faq-chevron {
  font-size: 18px;
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ─── Breadcrumbs ────────────────────────────────────────────────── */
.breadcrumbs {
  margin-bottom: 24px;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.breadcrumbs li {
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent-dark);
}

.bc-sep {
  opacity: .4;
  user-select: none;
}

/* ─── Dynamic Content Blocks ─────────────────────────────────────── */
.subscription-trap-box {
  background: #FFF7ED;
  border: 2px solid #F97316;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
}

.trap-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 16px;
}

.trap-icon {
  font-size: 20px;
}

.trap-costs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trap-cost {
  text-align: center;
}

.trap-cost span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.trap-cost strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.trap-cost-total strong {
  color: var(--danger);
}

.trap-dies {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #FED7AA;
  font-size: 14px;
}

.warning-box {
  display: flex;
  gap: 12px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 24px 0;
  font-size: 15px;
}

.warning-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.season-tip-block {
  display: flex;
  gap: 14px;
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px;
  margin: 24px 0;
  font-size: 14px;
}

.tip-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.freshness-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.badge-fresh {
  background: var(--success-light);
  color: var(--success);
}

.badge-recent {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.badge-older {
  background: var(--surface-alt);
  color: var(--text-muted);
}

/* ─── Tools CSS ──────────────────────────────────────────────────── */
.tool-input-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.tool-input-card h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.tool-intro {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tool-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tool-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface-alt);
  margin-bottom: 16px;
}

.tool-input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
  background: #fff;
}

.tool-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
}

.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tool-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 4px;
}

.tool-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.tool-results {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  display: none;
}

.tool-results.visible {
  display: block;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.results-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.results-total {
  text-align: right;
}

.results-total .total-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.results-total .total-amount {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.cost-breakdown {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.cost-breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 15px;
}

.cost-breakdown li:last-child {
  border-bottom: none;
}

.cb-label {
  color: rgba(255, 255, 255, .7);
}

.cb-amount {
  font-weight: 700;
  color: #fff;
}

.cb-sub {
  color: var(--danger);
}

.results-warning {
  background: rgba(245, 158, 11, .15);
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 16px;
  color: #FDE68A;
}

/* Matrix */
.matrix-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.matrix-filter {
  flex: 1;
  min-width: 160px;
}

.matrix-filter label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.matrix-filter select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}

.matrix-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 8px;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.matrix-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  user-select: none;
}

.matrix-table th:hover {
  background: #1E293B;
}

.matrix-table th.sort-asc::after {
  content: ' ↑';
}

.matrix-table th.sort-desc::after {
  content: ' ↓';
}

.matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table tr:nth-child(even) td {
  background: var(--surface-alt);
}

.matrix-table .winner-row td {
  background: var(--success-light) !important;
}

.matrix-table .tick {
  color: var(--success);
  font-size: 16px;
}

.matrix-table .cross {
  color: var(--danger);
  font-size: 16px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.score-pill.excellent {
  background: var(--success-light);
  color: var(--success);
}

.score-pill.good {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.score-pill.fair {
  background: #FFFBEB;
  color: #92400E;
}

.score-pill.poor {
  background: var(--danger-light);
  color: var(--danger);
}

/* Quiz */
.quiz-container {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}

.quiz-progress-step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background .3s;
}

.quiz-progress-step.done {
  background: var(--accent);
}

.quiz-progress-step.current {
  background: var(--accent-dark);
}

.quiz-question {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  display: none;
}

.quiz-question.active {
  display: block;
}

.quiz-q-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.quiz-q-text {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
  background: #fff;
}

.quiz-option:hover,
.quiz-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.quiz-option-icon {
  font-size: 20px;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.quiz-results {
  display: none;
}

.quiz-results.visible {
  display: block;
}

.quiz-results-header {
  background: var(--primary);
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 28px;
  text-align: center;
}

.quiz-results-header h2 {
  color: #fff;
  margin-bottom: 8px;
}

.quiz-rec-list {
  padding: 24px;
}

.quiz-rec {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}

.quiz-rec-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.quiz-rec-rank.top {
  background: var(--accent);
  color: #fff;
}

.quiz-rec-name {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
}

.quiz-rec-why {
  font-size: 14px;
  color: var(--text-secondary);
}

.quiz-rec-score {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  flex-shrink: 0;
}

/* Checklist */
.checklist-progress {
  margin: 16px 0;
}

.checklist-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.checklist-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width .3s;
  width: 0%;
}

.checklist-score {
  font-size: 14px;
  color: var(--text-secondary);
}

.checklist-category {
  margin-bottom: 28px;
}

.checklist-category-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-alt);
  cursor: pointer;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--accent);
}

.checklist-item-text {
  font-size: 15px;
}

.checklist-item.checked .checklist-item-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ─── SEO Components ─────────────────────────────────────────────── */
.tldr-box {
  background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
  border: 2px solid #99F6E4;
  border-radius: 16px;
  padding: 24px;
  margin: 0 0 32px;
}

.tldr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tldr-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 100px;
}

.tldr-score {
  font-size: 14px;
  font-weight: 700;
}

.tldr-verdict {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}

.tldr-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tldr-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: #334155;
  margin-bottom: 7px;
  line-height: 1.4;
}

.tldr-bullets li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.related-tools-block {
  margin: 32px 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
  border-radius: 16px;
  color: #fff;
}

.related-tools-block h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 12px;
}

.related-tools-block .tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sources-section {
  margin: 40px 0;
  padding: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sources-section h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sources-section ul {
  list-style: none;
  padding: 0;
}

.sources-section li {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.sources-section li::before {
  content: '↗';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.sources-section a {
  color: var(--accent-dark);
}

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}

.diff-easy {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #86EFAC;
}

.diff-medium {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.diff-hard {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #FCA5A5;
}

/* ─── Capture Forms ───────────────────────────────────────────────── */
.capture-block {
  border-radius: 16px;
  margin: 32px 0;
  overflow: hidden;
}

.capture-article {
  background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
  color: #fff;
  border: 1px solid #334155;
}

.capture-inner {
  padding: 32px;
}

.capture-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.capture-text h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.capture-text p {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  margin-bottom: 0;
}

.capture-form {
  margin-top: 20px;
}

.capture-fields {
  display: flex;
  gap: 8px;
}

.capture-fields input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}

.capture-fields input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.capture-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  margin-top: 8px;
}

.capture-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.capture-overlay.visible {
  display: flex;
}

.capture-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 80px rgba(2, 6, 23, .4);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-size: 18px;
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, .8);
  padding: 64px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 24px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  transition: color .15s;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-subscribe strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-subscribe-form {
  display: flex;
  gap: 8px;
}

.footer-subscribe-form input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.footer-subscribe-form input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
}

.footer-affiliate-disclosure {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  max-width: 700px;
  line-height: 1.5;
}

.footer-affiliate-disclosure a {
  color: rgba(255, 255, 255, .5);
  text-decoration: underline;
}

.footer-trust-badges .trust-badge {
  color: rgba(255, 255, 255, .4);
}

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .15);
}

/* ─── Hub Pages ──────────────────────────────────────────────────── */
.hub-hero {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 48px;
  margin-bottom: 64px;
}

/* ─── Pagination ─────────────────────────────────────────────────── */
.pagination ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
}

.pagination a:hover,
.pagination [aria-current] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .trap-costs {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-subscribe-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .tool-row {
    grid-template-columns: 1fr;
  }

  .matrix-controls {
    flex-direction: column;
  }

  .capture-fields {
    flex-direction: column;
  }

  .capture-modal {
    padding: 32px 24px;
  }

  .mega-inner {
    grid-template-columns: 1fr;
  }
}

/* ─── Compatibility aliases ─────────────────────────────────────── */
.hero-inner {
  position: relative;
  z-index: 1;
}

.footer-col-brand {}