/* ============================================================
   TOOLVORO.COM — Design System v1.0
   Dark/Light theme · Inter + Playfair Display · Green accent
   Fonts loaded via <link> in HTML head — faster than @import
   ============================================================ */

/* ── Theme variables ── */
:root {
  /* Dark theme (default) */
  --bg:         #04151f;
  --bg-1:       #081e2d;
  --bg-2:       #0d2538;
  --bg-3:       #112d42;
  --bg-4:       #163448;
  --surface:    #0d2538;
  --surface-up: #112d42;

  --accent:     #00c47c;
  --accent-dk:  #009960;
  --accent-lt:  rgba(0,196,124,.12);
  --accent-faint: rgba(0,196,124,.06);
  --accent-glow: rgba(0,196,124,.25);

  --text:       #f0f6fc;
  --text-2:     #b8ccd8;
  --text-3:     #7a96a8;
  --text-4:     #446070;

  --border:     rgba(255,255,255,.07);
  --border-md:  rgba(255,255,255,.12);
  --border-lt:  rgba(255,255,255,.04);

  --header-bg:  rgba(4,21,31,.92);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:  0 16px 60px rgba(0,0,0,.6);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.7);

  --r1: 4px; --r2: 8px; --r3: 12px; --r4: 16px; --r5: 24px; --r6: 999px;

  --ff-head: 'Playfair Display', Georgia, serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --max: 1480px;
  --pad: clamp(16px, 2.6vw, 36px);
  --nav-h: 64px;

  /* Transition */
  --ease: cubic-bezier(.22,.68,0,1.2);
  --ease-out: cubic-bezier(0,0,.2,1);
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg:         #f5f8fa;
  --bg-1:       #ffffff;
  --bg-2:       #eef2f6;
  --bg-3:       #e4eaef;
  --bg-4:       #d8e2ea;
  --surface:    #ffffff;
  --surface-up: #f0f4f8;

  --accent:     #009960;
  --accent-dk:  #007a4d;
  --accent-lt:  rgba(0,153,96,.1);
  --accent-faint: rgba(0,153,96,.05);
  --accent-glow: rgba(0,153,96,.2);

  --text:       #0e1e2a;
  --text-2:     #2c4a60;
  --text-3:     #4e7590;
  --text-4:     #7a9fb5;

  --border:     rgba(0,0,0,.08);
  --border-md:  rgba(0,0,0,.14);
  --border-lt:  rgba(0,0,0,.04);

  --header-bg:  rgba(245,248,250,.95);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:  0 16px 60px rgba(0,0,0,.15);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.2);
}

/* ── Reset & base ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dk); }
h1,h2,h3 { font-family: var(--ff-head); color: var(--text); line-height: 1.1; }
h4,h5,h6 { font-family: var(--ff-body); font-weight: 700; color: var(--text); }
p { color: var(--text-2); line-height: 1.72; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--ff-body); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Disclosure bar ── */
.disclosure-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 7px var(--pad);
  text-align: center;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-4);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.disclosure-bar a { color: var(--text-3); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header,
.header {
  position: sticky; top: 0; z-index: 900;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-bar,
.header-inner {
  display: flex; align-items: center; gap: 8px; height: 100%;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
}
/* ── Logo — new horizontal format (1672×941, includes wordmark) ── */
.site-logo {
  display: flex; align-items: center; gap: 0; flex-shrink: 0;
  text-decoration: none;
}
.site-logo img {
  height: 44px; width: auto; /* 1.777:1 ratio → ~78px wide */
  object-fit: contain; object-position: left center;
  display: block; flex-shrink: 0;
}
/* New logo has white bg — use on dark: invert or slight shadow; on light: natural */
.site-logo img,
.logo img,
.nav-logo img {
  height: 44px; width: auto;
  object-fit: contain; object-position: left center;
  border-radius: 6px;
  /* On dark backgrounds: white bg becomes visible — use background blend */
  background: transparent;
}
/* Hide redundant wordmark text — new logo includes it */
.logo .logo-wordmark,
.logo .logo-fallback,
.nav-logo .logo-wordmark,
.footer-brand-logo .footer-logo-text {
  display: none !important;
}
/* Footer logo */
.footer-logo-img {
  height: 40px; width: auto;
  object-fit: contain; object-position: left center;
  display: block;
  border-radius: 6px;
}
/* Prevent drop-shadow that doesn't work on JPEG */
.site-logo img,
.logo img,
.nav-logo img,
.footer-logo-img {
  filter: none;
}

.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none;
  margin-left: 16px; flex: 1;
}
.nav-links a {
  display: block; padding: 6px 12px; border-radius: var(--r2);
  font-size: .82rem; font-weight: 500; color: var(--text-3);
  transition: all .15s; text-decoration: none;
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-links a.active { color: var(--accent); background: var(--accent-lt); font-weight: 600; }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: flex; align-items: center; gap: 4px; }
.nav-drop > a::after {
  content: ""; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s;
}
.nav-drop:hover > a::after { transform: rotate(-135deg) translateY(-2px); }
.dropdown-menu {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 200px; background: var(--surface);
  border: 1px solid var(--border-md); border-radius: var(--r4);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 800;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  transform: translateY(-4px);
}
/* Dropdown open state — JS controlled via .open class only */
.nav-drop.open .dropdown-menu,
.nav-drop:focus-within .dropdown-menu {
  visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: var(--r2);
  font-size: .82rem; font-weight: 500; color: var(--text-3);
  transition: all .15s;
}
.dropdown-menu a:hover { color: var(--text); background: var(--bg-2); }

.nav-actions {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}

/* Search in nav */
.nav-search-wrap { position: relative; }
.nav-search {
  width: 32px; padding: 7px 7px 7px 32px;
  border: 1px solid transparent; border-radius: var(--r6);
  font-family: var(--ff-body); font-size: .82rem;
  color: var(--text); background: transparent; outline: none;
  transition: all .25s; cursor: pointer;
}
.nav-search::placeholder { color: transparent; }
.nav-search:focus {
  border-color: var(--border-md); background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--accent-lt); width: 220px; cursor: text;
  border-color: var(--accent);
}
.nav-search:focus::placeholder { color: var(--text-4); }
.nav-search-wrap:focus-within .nav-search-icon { color: var(--accent); }
.nav-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); font-size: .85rem; pointer-events: none;
}

.nav-search-results {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: min(480px, calc(100vw - 32px)); max-height: 400px; overflow: auto;
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: var(--r4); box-shadow: var(--shadow-xl);
  padding: 6px; z-index: 999;
}
.nav-search-results.open { display: block; }
.search-result {
  display: block; padding: 10px 12px; border-radius: var(--r2);
  text-decoration: none; border-bottom: 1px solid var(--border-lt);
  transition: background .12s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.is-active { background: var(--bg-2); }
.search-result strong { display: block; font-size: .84rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.search-result span { font-size: .72rem; color: var(--text-4); }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: var(--r2);
  background: var(--bg-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: all .15s; cursor: pointer;
}
.theme-toggle:hover { background: var(--bg-3); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Burger */
.nav-burger {
  display: none; padding: 8px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--r2); margin-left: 8px;
}
.nav-burger svg { width: 18px; height: 18px; stroke: var(--text-3); stroke-width: 2; fill: none; stroke-linecap: round; }

/* Mobile menu overlay */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 950;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
}
.mobile-menu.open { display: flex; }
.mm-panel {
  background: var(--bg-1); border-right: 1px solid var(--border-md);
  width: min(300px,88vw); height: 100%; padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-xl); overflow-y: auto;
}
.mm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mm-close {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 6px 10px; color: var(--text-3);
  font-size: .85rem; transition: all .15s;
}
.mm-close:hover { background: var(--bg-4); color: var(--text); }
.mm-link {
  padding: 12px 14px; border-radius: var(--r3);
  font-family: var(--ff-body); font-weight: 600; font-size: .9rem;
  color: var(--text-3); display: block; text-decoration: none; transition: all .15s;
}
.mm-link:hover, .mm-link.active { background: var(--accent-lt); color: var(--accent); }
.mm-section { font-size: .67rem; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: .08em; padding: 14px 14px 6px; }
.mm-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--ff-body); font-weight: 700; border: none; cursor: pointer;
  transition: all .18s var(--ease-out); text-decoration: none; white-space: nowrap;
  letter-spacing: -.01em;
}
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: var(--r6); font-size: .875rem;
}
.btn-primary:hover {
  background: var(--accent-dk); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-secondary {
  background: var(--bg-2); color: var(--text-2);
  padding: 12px 24px; border-radius: var(--r6); font-size: .875rem;
  border: 1px solid var(--border-md);
}
.btn-secondary:hover { background: var(--bg-3); color: var(--text); }
.btn-outline {
  background: transparent; color: var(--accent);
  padding: 11px 24px; border-radius: var(--r6); font-size: .875rem;
  border: 1.5px solid rgba(0,196,124,.4);
}
.btn-outline:hover { background: var(--accent-lt); border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: .78rem; }
.btn-lg { padding: 14px 32px; font-size: .95rem; }
.btn-icon { padding: 10px; border-radius: var(--r2); }

/* ============================================================
   SECTIONS & LAYOUT
   ============================================================ */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-1); }
.section-dark { background: var(--bg-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; color: var(--text);
}
.section-sub { font-size: .97rem; line-height: 1.72; color: var(--text-3); max-width: 600px; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r4); padding: 24px;
  transition: all .2s var(--ease-out);
}
.card:hover { border-color: var(--border-md); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Hub card */
.hub-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r4); padding: 24px 22px;
  text-decoration: none; display: flex; flex-direction: column; gap: 12px;
  transition: all .2s var(--ease-out); position: relative; overflow: hidden;
}
.hub-card::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.hub-card:hover { border-color: var(--accent-lt); background: var(--surface-up); transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-lt); }
.hub-card:hover::after { transform: scaleX(1); }
.hub-card:hover .hub-name { color: var(--accent); }

.hub-icon {
  width: 44px; height: 44px; border-radius: var(--r3);
  background: var(--accent-lt); border: 1px solid var(--accent-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.hub-name { font-family: var(--ff-body); font-weight: 700; font-size: .95rem; color: var(--text); transition: color .15s; }
.hub-tagline { font-size: .78rem; color: var(--text-4); line-height: 1.5; }
.hub-meta { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--text-4); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-lt); }
.hub-meta strong { color: var(--accent); font-family: var(--ff-body); }

/* Tool card */
.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r4); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all .2s var(--ease-out); text-decoration: none;
}
.tool-card:hover { border-color: var(--border-md); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool-logo {
  width: 40px; height: 40px; border-radius: var(--r2);
  border: 1px solid var(--border-md); object-fit: contain; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-weight: 800; font-size: .85rem; color: var(--accent);
}
.tool-name { font-weight: 700; font-size: .95rem; color: var(--text); }
.tool-tagline { font-size: .78rem; color: var(--text-3); }
.tool-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--r6);
  font-size: .68rem; font-weight: 600; background: var(--bg-2);
  border: 1px solid var(--border); color: var(--text-4);
}
.tag-green { background: var(--accent-lt); border-color: var(--accent-faint); color: var(--accent); }
.tag-amber { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.2); color: #d97706; }
.tag-blue { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.2); color: #3b82f6; }
.tag-purple { background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.2); color: #8b5cf6; }
.tag-red { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.2); color: #ef4444; }
.tool-rating { display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--text); }
.stars { display: flex; gap: 2px; }
.star { font-size: .75rem; color: #f59e0b; }

/* Post/article card */
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r4); overflow: hidden;
  transition: all .2s var(--ease-out); text-decoration: none; display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--border-md); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-type-badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--r6);
  font-size: .65rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pb-blog { background: var(--bg-2); color: var(--text-4); border: 1px solid var(--border); }
.pb-review { background: var(--accent-lt); color: var(--accent); border: 1px solid var(--accent-faint); }
.pb-compare { background: rgba(245,158,11,.1); color: #d97706; border: 1px solid rgba(245,158,11,.2); }
.pb-best { background: rgba(52,211,153,.1); color: #059669; border: 1px solid rgba(52,211,153,.2); }
.pb-tutorial { background: rgba(139,92,246,.1); color: #7c3aed; border: 1px solid rgba(139,92,246,.2); }
.post-title { font-family: var(--ff-head); font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.post-card:hover .post-title { color: var(--accent); }
.post-excerpt { font-size: .82rem; color: var(--text-3); line-height: 1.6; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--text-4); margin-top: auto; padding-top: 8px; }
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }

/* ============================================================
   RATINGS
   ============================================================ */
.rating-bar { display: flex; flex-direction: column; gap: 8px; }
.rating-row { display: flex; align-items: center; gap: 10px; }
.rating-label { font-size: .78rem; color: var(--text-3); min-width: 130px; }
.rating-track { flex: 1; height: 6px; background: var(--bg-3); border-radius: var(--r6); overflow: hidden; }
.rating-fill { height: 100%; background: var(--accent); border-radius: var(--r6); transition: width .8s var(--ease-out); }
.rating-val { font-size: .78rem; font-weight: 700; color: var(--text); min-width: 28px; text-align: right; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); overflow: hidden; transition: border-color .15s;
}
.faq-item[open] { border-color: var(--accent-lt); }
.faq-item summary {
  padding: 16px 20px; font-weight: 600; font-size: .9rem;
  color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  list-style: none; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.2rem; font-weight: 300;
  color: var(--accent); flex-shrink: 0; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 20px 16px; font-size: .875rem; color: var(--text-3); line-height: 1.7; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  padding: 14px 16px; text-align: left;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-4);
  background: var(--bg-2); border-bottom: 2px solid var(--border-md);
}
.compare-table th:first-child { border-radius: var(--r2) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--r2) 0 0; }
.compare-table td {
  padding: 14px 16px; font-size: .875rem; color: var(--text-2);
  border-bottom: 1px solid var(--border-lt); vertical-align: middle;
}
.compare-table tr:hover td { background: var(--bg-2); }
.compare-table tr:last-child td { border-bottom: none; }
.ct-check { color: var(--accent); font-weight: 700; }
.ct-cross { color: var(--text-4); }

/* ============================================================
   STICKY COMPARE BAR
   ============================================================ */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--bg-1); border-top: 1px solid var(--border-md);
  padding: 12px var(--pad); transform: translateY(100%);
  transition: transform .3s var(--ease-out); box-shadow: 0 -8px 30px rgba(0,0,0,.3);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-inner { display: flex; align-items: center; gap: 16px; max-width: var(--max); margin: 0 auto; }
.compare-slots { display: flex; gap: 8px; flex: 1; }
.compare-slot {
  flex: 1; max-width: 180px; height: 44px; border-radius: var(--r2);
  background: var(--bg-2); border: 1.5px dashed var(--border-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; color: var(--text-4); gap: 6px;
}
.compare-slot.filled {
  background: var(--accent-lt); border-color: var(--accent-lt); border-style: solid;
  color: var(--text); font-weight: 600; padding: 0 10px; justify-content: space-between;
}
.compare-slot .remove-tool { color: var(--text-4); font-size: .7rem; cursor: pointer; padding: 2px 4px; border-radius: 3px; }
.compare-slot .remove-tool:hover { color: #ef4444; background: rgba(239,68,68,.1); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border-md); border-radius: var(--r5);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; top: -60%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-band p { color: var(--text-3); font-size: .9rem; max-width: 480px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* Newsletter strip */
.newsletter-strip {
  background: var(--accent-lt); border: 1px solid var(--accent-faint);
  border-radius: var(--r5); padding: 28px 32px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.nl-text h3 { font-family: var(--ff-head); font-size: 1.2rem; margin-bottom: 4px; }
.nl-text p { font-size: .85rem; color: var(--text-3); }
.nl-form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.nl-input {
  flex: 1; padding: 11px 16px; border-radius: var(--r6);
  border: 1px solid var(--border-md); background: var(--bg-1);
  font-family: var(--ff-body); font-size: .85rem; color: var(--text); outline: none;
  transition: border-color .15s;
}
.nl-input:focus { border-color: var(--accent); }
.nl-input::placeholder { color: var(--text-4); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-1); border-top: 1px solid var(--border);
  padding: clamp(48px, 6vw, 80px) 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 14px; width: fit-content;
}
.footer-brand-logo:hover .footer-logo-img {
  filter: drop-shadow(0 0 12px var(--accent-glow)) brightness(1.05);
}
.footer-note { font-size: .8rem; color: var(--text-3); line-height: 1.65; margin-bottom: 14px; }
.footer-legal-note { font-size: .72rem; color: var(--text-4); line-height: 1.65; }
.footer-legal-note a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.footer-col-title { font-size: .7rem; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .83rem; color: var(--text-3); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; flex-wrap: wrap;
}
.footer-copy { font-size: .75rem; color: var(--text-4); }
.footer-social { display: flex; gap: 8px; }
.soc {
  width: 34px; height: 34px; border-radius: var(--r2);
  background: var(--bg-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4); transition: all .15s;
}
.soc:hover { background: var(--accent-lt); color: var(--accent); border-color: var(--accent-faint); }
.soc svg { width: 14px; height: 14px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.anim {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.anim.visible { opacity: 1; transform: translateY(0); }
.anim-delay-1 { transition-delay: .1s; }
.anim-delay-2 { transition-delay: .2s; }
.anim-delay-3 { transition-delay: .3s; }
.anim-delay-4 { transition-delay: .4s; }

/* Spin */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { font-size: .78rem; color: var(--text-4); transition: color .15s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { font-size: .78rem; color: var(--text-4); }
.breadcrumbs .bc-sep { color: var(--text-4); font-size: .65rem; }
.breadcrumbs .bc-current { font-size: .78rem; color: var(--text-3); font-weight: 600; }

/* ============================================================
   HERO - PAGE LEVEL
   ============================================================ */
.page-hero {
  padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 50vw; height: 100%;
  background: radial-gradient(ellipse at top right, var(--accent-faint) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-search-wrap, .nav-actions > :not(.nav-burger):not(.theme-toggle) { display: none; }
  .nav-burger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1; }
  .section { padding: clamp(40px, 6vw, 64px) 0; }
}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .compare-slots { flex-direction: column; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-4); }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .75rem; }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ============================================================
   HUB PAGE NAV CLASSES (used by all generated hub/content pages)
   ============================================================ */
.nav-desktop {
  display: flex; align-items: center; gap: 2px; list-style: none; flex: 1;
}
@media(max-width: 820px) { .nav-desktop { display: none; } }

.nav-item { position: relative; }
.nav-item.has-dropdown { position: relative; }
.nav-link {
  display: block; padding: 6px 12px; border-radius: var(--r2);
  font-size: .82rem; font-weight: 500; color: var(--text-3);
  text-decoration: none; transition: all .15s; cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg-2); }
.nav-link.active { color: var(--accent); background: var(--accent-lt); font-weight: 600; }

.has-dropdown .dropdown {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 220px; background: var(--surface); border: 1px solid var(--border-md);
  border-radius: var(--r4); box-shadow: var(--shadow-lg); padding: 6px; z-index: 800;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  transform: translateY(-4px);
}
.has-dropdown .dropdown::before {
  content: ''; position: absolute; top: -14px; left: -10px; right: -10px; height: 20px;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown {
  visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0);
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--r2); text-decoration: none; color: var(--text-3);
  font-size: .82rem; transition: all .15s;
}
.dropdown-item:hover { color: var(--text); background: var(--bg-2); }
.dropdown-icon {
  width: 28px; height: 28px; border-radius: var(--r2); background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.dropdown-item strong { display: block; font-size: .82rem; color: var(--text); line-height: 1.2; }
.dropdown-item small { display: block; font-size: .72rem; color: var(--text-4); line-height: 1.3; }

/* Header actions row */
.header-actions {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 6px; color: var(--text-3);
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; transition: all .2s;
}
@media(max-width: 820px) { .mobile-menu-btn { display: flex; } }

/* Mobile nav links */
.mobile-nav-link {
  display: block; padding: 12px 16px; font-size: .95rem; font-weight: 500;
  color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-nav-link:hover, .mobile-nav-link:focus { color: var(--accent); }

/* ── Compare bar ── */
.compare-bar { display: none; }
.compare-bar.visible { display: block; }
.compare-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-lt); border: 1px solid var(--accent-faint);
  border-radius: var(--r6); padding: 4px 12px;
  font-size: .78rem; font-weight: 600; color: var(--accent);
}
.compare-chip button {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: .85rem; opacity: .7; line-height: 1;
}
.compare-chip button:hover { opacity: 1; }

/* ── Footer alternate class names ── */
.footer { background: var(--bg-1); border-top: 1px solid var(--border); padding: clamp(40px,6vw,72px) 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 48px;
  border-bottom: 1px solid var(--border);
}
@media(max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media(max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .82rem; color: var(--text-3); line-height: 1.65; max-width: 280px; }
.footer-col h4 {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-4); margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: .82rem; color: var(--text-3); margin-bottom: 8px;
  text-decoration: none; transition: color .15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .74rem; color: var(--text-4); }
.footer-bottom a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }

/* ── Hub sub-nav ── */
.hub-subnav {
  display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
.hub-subnav::-webkit-scrollbar { display: none; }
.hub-subnav-link {
  padding: 7px 16px; border-radius: var(--r6); font-size: .8rem; font-weight: 600;
  color: var(--text-4); text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: all .15s; border: 1px solid transparent;
}
.hub-subnav-link:hover { color: var(--text); background: var(--bg-2); }
.hub-subnav-link.active { color: var(--accent); background: var(--accent-lt); border-color: var(--accent-faint); }

/* ── FAQ details/summary (native HTML) ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--r3); margin-bottom: 8px; overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--accent); }
.faq-question {
  padding: 16px 18px; font-size: .9rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--text); transition: color .15s;
}
.faq-item[open] .faq-question { color: var(--accent); }
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-4); transition: transform .25s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer-inner { padding: 0 18px 18px; font-size: .875rem; color: var(--text-3); line-height: 1.75; }
.faq-answer-inner p + p { margin-top: 10px; }
.faq-answer-inner a { color: var(--accent); }

/* ── Section label ── */
.section-label {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ── Listing grid post card extended ── */
.post-title { font-size: .92rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.post-excerpt { font-size: .8rem; color: var(--text-3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: .72rem; color: var(--text-4); margin-top: auto; }
.pb-compare { background: rgba(245,158,11,.08); color: #d97706; border: 1px solid rgba(245,158,11,.2); }
.pb-best { background: rgba(52,211,153,.08); color: #059669; border: 1px solid rgba(52,211,153,.2); }
.pb-tutorial { background: rgba(139,92,246,.08); color: #7c3aed; border: 1px solid rgba(139,92,246,.2); }
.pb-blog { background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border); }

/* ============================================================
   MISSING CLASSES — Patch v1.0
   Fixes visual breakage across all pages
   ============================================================ */

/* ── Mobile menu inner ── */
.mobile-menu-inner {
  width: 100%; max-width: 320px; height: 100%;
  background: var(--surface); padding: 20px 16px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.mobile-menu-close {
  align-self: flex-end; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--r2);
  color: var(--text-3); font-size: .85rem; padding: 6px 10px;
  cursor: pointer; margin-bottom: 12px; transition: all .15s;
}
.mobile-menu-close:hover { color: var(--text); border-color: var(--border-md); }

/* ── Compare bar inner classes ── */
.compare-bar-label {
  font-size: .75rem; font-weight: 700; color: var(--text-4);
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.compare-bar-tools {
  display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap;
}

/* ── Homepage path cards ── */
.path-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r4); padding: 22px; text-decoration: none;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.path-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.path-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.path-card-review::before { background: var(--accent); }
.path-card-compare::before { background: #d97706; }
.path-card-best::before { background: #059669; }
.path-card-tutorial::before { background: #7c3aed; }
.path-card-blog::before { background: var(--text-4); }
.path-card:hover { border-color: var(--border-md); }
.path-card-review:hover { border-color: var(--accent); }
.path-card-compare:hover { border-color: #d97706; }
.path-card-best:hover { border-color: #059669; }
.path-card-tutorial:hover { border-color: #7c3aed; }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--surface); border-top: 1px solid var(--border-md);
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
.cookie-banner p { font-size: .82rem; color: var(--text-2); }
.cookie-banner a { color: var(--accent); }

/* ── Social icon ── */
.social-icon {
  width: 34px; height: 34px; border-radius: var(--r2);
  background: var(--bg-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-4); transition: all .15s; text-decoration: none;
}
.social-icon:hover { background: var(--accent-lt); color: var(--accent); border-color: var(--accent-faint); }
.social-icon svg { width: 14px; height: 14px; }

/* ── Newsletter ── */
.nl-text { max-width: 480px; }
.nl-text h2 { font-family: var(--ff-head); font-size: clamp(1.5rem,3vw,2rem);
  font-weight: 900; letter-spacing: -.02em; margin-bottom: 8px; }
.nl-text p { font-size: .9rem; color: var(--text-3); line-height: 1.65; }

/* ── Compare now button ── */
.compare-now-btn {
  padding: 10px 24px; background: var(--accent); border: none;
  border-radius: var(--r3); color: #000; font-family: var(--ff-body);
  font-size: .875rem; font-weight: 700; cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
.compare-now-btn:hover { background: var(--accent-dk); }
.compare-now-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Footer brand (alias) ── */
.footer-brand { display: flex; flex-direction: column; gap: 0; }

/* ── Tools table wrap (compare page) ── */
.tools-table-wrap { overflow-x: auto; border-radius: var(--r4); border: 1px solid var(--border); }

/* ── Page button (pagination) ── */
.page-btn {
  width: 36px; height: 36px; border-radius: var(--r3);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-3); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover, .page-btn.active {
  background: var(--accent); border-color: var(--accent); color: #000;
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Hub/compare bar (hub pages) ── */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--surface); border-top: 1px solid var(--border-md);
  padding: 12px 24px; transform: translateY(100%);
  transition: transform .3s var(--ease-out);
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
.compare-bar.visible, .compare-bar[style*="display: block"], .compare-bar[style*="display:block"] {
  transform: translateY(0);
}
.compare-bar-inner {
  display: flex; align-items: center; gap: 12px;
  max-width: var(--max); margin: 0 auto; flex-wrap: wrap;
}

/* ── Disclosure bar ── */
.disclosure-bar {
  background: var(--bg-1); border-bottom: 1px solid var(--border);
  padding: 8px 0; font-size: .72rem; text-align: center;
  color: var(--text-4);
}
.disclosure-bar .container {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
}
.disclosure-bar a { color: var(--text-3); font-weight: 600; text-decoration: underline; }

/* ── Container / wrap aliases ── */
.container, .wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
}

/* ── Path grid ── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ── How it works ── */
.hiw-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; align-items: start; position: relative;
}
.hiw-step { display: flex; flex-direction: column; gap: 14px; }
.hiw-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 900; flex-shrink: 0;
}
.hiw-icon { font-size: 1.8rem; }
.hiw-divider {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.5rem; opacity: .4;
}
@media(max-width: 640px) { .hiw-divider { display: none; } }
.hiw-arrow { color: var(--accent); opacity: .4; font-size: 1.2rem; }

/* ── Hub grid ── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Hero panel elements ── */
.panel-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 10px;
}
.panel-stat-row { display: flex; gap: 16px; margin-bottom: 20px; }
.panel-stat { display: flex; flex-direction: column; gap: 2px; }
.panel-stat b { font-size: 1.4rem; font-weight: 900; color: var(--accent); line-height: 1; }
.panel-stat span { font-size: .68rem; color: var(--text-4); text-transform: uppercase; letter-spacing: .05em; }
.panel-tool {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-lt);
}
.panel-tool:last-child { border-bottom: none; }
.pt-icon {
  width: 32px; height: 32px; border-radius: var(--r2);
  background: var(--bg-3); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.pt-info { flex: 1; min-width: 0; }
.pt-name { font-size: .82rem; font-weight: 700; color: var(--text); }
.pt-category { font-size: .7rem; color: var(--text-4); }
.pt-score {
  font-size: .82rem; font-weight: 800; color: var(--accent);
  background: var(--accent-lt); border: 1px solid var(--accent-faint);
  border-radius: var(--r6); padding: 2px 8px;
}

/* ── Compare teaser section ── */
.compare-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media(max-width:768px) { .compare-teaser { grid-template-columns: 1fr; } }
.ct-visual {
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: var(--r5); padding: 24px;
  box-shadow: var(--shadow-md);
}
.ct-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-lt); }
.ct-row:last-child { border-bottom: none; }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ct-tool-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r6); padding: 4px 12px;
  font-size: .78rem; font-weight: 600; color: var(--text-2);
}
.ct-vs {
  font-size: .65rem; font-weight: 900; color: var(--text-4);
  text-transform: uppercase; letter-spacing: .1em; padding: 0 4px;
}

/* ── Responsive hardening for inline legacy page sections ── */
.card-grid,
.hub-grid,
.path-grid,
.tools-grid,
.article-grid,
.popular-compare-grid,
.verdict-grid,
.grid-2,
.grid-3,
.grid-4,
.hub-layout,
.hub-layout > *,
.tools-table-wrap {
  min-width: 0;
  max-width: 100%;
}
.tool-card,
.article-card,
.hub-card,
.path-card,
.verdict-card,
.pop-compare-card,
.tool-hub-card {
  min-width: 0;
}
@media (max-width: 900px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .verdict-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  }
  .hub-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .hub-sidebar {
    position: static !important;
    top: auto !important;
  }
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .tools-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .tools-table {
    min-width: 680px;
  }
}
@media (max-width: 768px) {
  :root { --nav-h: 58px; }
  .wrap,
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .site-logo img,
  .logo img,
  .nav-logo img {
    height: 36px;
    max-width: 150px;
  }
  .disclosure-bar .container {
    flex-wrap: wrap;
    line-height: 1.45;
  }
  .compare-bar-inner,
  .nl-form,
  .cta-band-actions {
    width: 100%;
  }
  .compare-slot,
  .nl-form input,
  .nl-form .btn,
  .cta-band-actions .btn {
    width: 100%;
  }
  .panel-stat-row {
    flex-wrap: wrap;
  }
  .hub-hero {
    padding-top: 40px !important;
    padding-bottom: 34px !important;
  }
  .hub-hero-top {
    gap: 14px !important;
  }
  .hub-h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.65rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
  }
  .hub-tagline {
    font-size: .98rem !important;
    line-height: 1.65 !important;
  }
  .hub-meta-pills {
    gap: 7px !important;
  }
  .hub-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px !important;
    padding-bottom: 10px !important;
  }
  .hub-nav-link {
    flex: 0 0 auto;
  }
  .tool-hub-card {
    padding: 18px !important;
  }
  .tool-hub-actions {
    flex-wrap: wrap !important;
  }
}
@media (max-width: 420px) {
  .hub-grid,
  .path-grid,
  .card-grid,
  .popular-compare-grid,
  .tools-grid {
    grid-template-columns: 1fr !important;
  }
  .hub-hero-top {
    flex-direction: column !important;
    text-align: left !important;
  }
  .hub-icon-lg {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.55rem !important;
  }
  .hub-h1 {
    font-size: clamp(1.75rem, 10vw, 2.25rem) !important;
  }
  .hub-meta-pill {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }
  .tool-hub-actions {
    flex-direction: column !important;
  }
  .tool-hub-actions .btn,
  .tool-hub-actions button {
    width: 100% !important;
    justify-content: center !important;
  }
  .section-head {
    text-align: left;
  }
}

/* ============================================================
   ARTICLE CONTENT — TV CSS CLASSES
   Used by dashboard-generated HTML articles
   ============================================================ */
.tv-verdict, .tv-verdict-final {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  background: var(--accent-lt); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r3) var(--r3) 0; padding: 14px 18px;
  margin: 24px 0; line-height: 1.6;
}
.tv-audience-fit {
  background: var(--bg-2); border: 1px solid var(--border-md);
  border-radius: var(--r3); padding: 14px 18px; margin: 20px 0;
  font-size: .9rem; color: var(--text-2); line-height: 1.6;
}
.tv-decision {
  border-left: 3px solid var(--accent); margin: 20px 0;
  padding: 12px 18px; font-style: italic; color: var(--text-3);
  background: var(--accent-lt); border-radius: 0 var(--r3) var(--r3) 0;
}
.tv-method { margin: 24px 0; }
.tv-step {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border-lt);
}
.tv-step:last-child { border-bottom: none; }
.tv-step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: #000; font-size: .75rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tv-steps { padding-left: 0; list-style: none; counter-reset: step; }
.tv-steps li {
  counter-increment: step; padding: 14px 0 14px 44px; position: relative;
  border-bottom: 1px solid var(--border-lt);
}
.tv-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 14px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent-lt);
  border: 1px solid var(--accent-faint); color: var(--accent);
  font-size: .75rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.tv-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  border: 1px solid var(--border); border-radius: var(--r3); overflow: hidden;
}
.tv-table th {
  padding: 10px 14px; background: var(--bg-2); font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-4); text-align: left; border-bottom: 2px solid var(--border-md);
}
.tv-table td {
  padding: 11px 14px; font-size: .85rem; color: var(--text-2);
  border-bottom: 1px solid var(--border-lt); vertical-align: top;
}
.tv-table tr:last-child td { border-bottom: none; }
.tv-table tr:hover td { background: var(--bg-2); }
.tv-pros, .tv-cons, .tv-checklist {
  list-style: none; padding: 0; margin: 16px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.tv-pros li, .tv-cons li, .tv-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: var(--r3);
  font-size: .875rem; color: var(--text-2); line-height: 1.55;
}
.tv-pros li {
  background: var(--green-bg, rgba(16,185,129,.06));
  border: 1px solid var(--green-border, rgba(16,185,129,.15));
}
.tv-pros li::before { content: "✓"; color: #10b981; font-weight: 900; flex-shrink: 0; }
.tv-cons li {
  background: rgba(239,68,68,.05);
  border: 1px solid rgba(239,68,68,.15);
}
.tv-cons li::before { content: "✗"; color: #ef4444; font-weight: 900; flex-shrink: 0; }
.tv-checklist li::before { content: "□"; color: var(--accent); font-weight: 900; flex-shrink: 0; }
.tv-pro-tip {
  background: linear-gradient(135deg, var(--accent-lt), var(--accent-faint));
  border: 1px solid var(--accent-faint); border-radius: var(--r4);
  padding: 16px 18px; margin: 20px 0; position: relative;
}
.tv-pro-tip::before {
  content: "Toolvoro Pro Tip";
  display: block; font-size: .65rem; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.tv-pro-tip p, .tv-pro-tip { font-size: .875rem; color: var(--text-2); line-height: 1.65; }
.tv-faq-block { margin: 28px 0; }
.tv-faq-block h2 { margin-bottom: 16px; }
.tv-faq-item {
  border: 1px solid var(--border); border-radius: var(--r3);
  margin-bottom: 8px; overflow: hidden; transition: border-color .2s;
}
.tv-faq-item[open] { border-color: var(--accent); }
.tv-faq-item summary {
  padding: 14px 18px; font-size: .88rem; font-weight: 600;
  cursor: pointer; list-style: none; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  transition: color .15s;
}
.tv-faq-item[open] summary { color: var(--accent); }
.tv-faq-item summary::-webkit-details-marker { display: none; }
.tv-faq-item summary::after {
  content: "+"; color: var(--text-4); font-size: 1.1rem;
  font-weight: 300; transition: transform .2s;
}
.tv-faq-item[open] summary::after { content: "−"; color: var(--accent); }
.tv-faq-item p { padding: 0 18px 16px; font-size: .875rem; color: var(--text-3); line-height: 1.7; }
.tv-key-diff {
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: var(--r4); padding: 18px; margin: 20px 0;
}
.tv-choose-a, .tv-choose-b {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 16px 18px; margin: 12px 0;
}
.tv-choose-a { border-left: 3px solid var(--accent); }
.tv-choose-b { border-left: 3px solid var(--text-4); }
.tv-ranked-tool {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r4); padding: 20px; margin: 16px 0;
}
.tv-ranked-tool h2 { font-size: 1rem; margin-bottom: 10px; }
.tv-did-it-work, .tv-go-live {
  background: var(--bg-2); border: 1px solid var(--border-md);
  border-radius: var(--r4); padding: 20px; margin: 24px 0;
}
.tv-feature { margin-bottom: 28px; }
.tv-feature h2 { font-size: 1.05rem; margin-bottom: 10px; }
.tv-internal-links {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r4); padding: 20px; margin: 32px 0;
}
.tv-internal-links h2 { font-size: .875rem; font-weight: 700; margin-bottom: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.tv-internal-links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tv-internal-links li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--r3);
  background: var(--surface); border: 1px solid var(--border);
  font-size: .875rem; font-weight: 600; color: var(--text-2);
  text-decoration: none; transition: all .15s;
}
.tv-internal-links li a:hover { border-color: var(--accent); color: var(--accent); }
a.tv-cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--r3);
  background: var(--accent); color: #000;
  font-family: var(--ff-body); font-size: .9rem; font-weight: 700;
  text-decoration: none; transition: background .15s; margin: 8px 4px 8px 0;
  border: none; cursor: pointer;
}
a.tv-cta-button:hover { background: var(--accent-dk); text-decoration: none; }
a.tv-cta-button.secondary {
  background: var(--bg-2); border: 1px solid var(--border-md); color: var(--text-2);
}
a.tv-cta-button.secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }

/* ── Social icons — consistent size ── */
.soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r2);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-4); transition: all .15s; text-decoration: none;
  flex-shrink: 0;
}
.soc:hover { background: var(--accent-lt); color: var(--accent); border-color: var(--accent-faint); }
.soc svg { width: 16px; height: 16px; display: block; }
.footer-social { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Get in Touch button — redesigned ── */
.btn-get-in-touch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--r6);
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent); font-family: var(--ff-body);
  font-size: .9rem; font-weight: 700; text-decoration: none;
  transition: all .2s var(--ease);
  position: relative; overflow: hidden;
}
.btn-get-in-touch::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform .2s var(--ease);
  z-index: 0;
}
.btn-get-in-touch:hover::before { transform: scaleX(1); }
.btn-get-in-touch:hover { color: #000; text-decoration: none; }
.btn-get-in-touch span { position: relative; z-index: 1; }
.btn-get-in-touch svg { position: relative; z-index: 1; width: 16px; height: 16px; transition: transform .2s; }
.btn-get-in-touch:hover svg { transform: translateX(4px); }

/* ── Star ratings — 5 star system only ── */
.star-rating { display: inline-flex; align-items: center; gap: 3px; }
.star-rating .star { color: #f59e0b; font-size: .85rem; line-height: 1; }
.star-rating .star.empty { color: var(--border-md); }
.rating-val { font-size: .82rem; font-weight: 700; color: var(--text); margin-left: 5px; }


/* ═══ MOBILE FIX PATCH ═══ */
/* Logo never hidden */
.nav-logo img { display:block!important; height:40px!important; width:auto!important; max-width:160px; }

/* FAQ 2-col grid → 1 col at 860px */
@media (max-width:860px) {
  [style*="grid-template-columns:1fr 1fr"],[style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2,1fr)"],[style*="grid-template-columns: repeat(2,1fr)"] {
    grid-template-columns:1fr!important; gap:24px!important;
  }
}

/* Hub full treatment at 768px */
@media (max-width:768px) {
  .hub-nav { flex-wrap:nowrap!important; overflow-x:auto!important; -webkit-overflow-scrolling:touch; scrollbar-width:none; gap:6px!important; padding-bottom:6px; }
  .hub-nav::-webkit-scrollbar { display:none; }
  .hub-nav-link { flex-shrink:0!important; white-space:nowrap!important; }
  .hub-layout { grid-template-columns:1fr!important; gap:24px!important; }
  .hub-sidebar { position:static!important; display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
  .tools-grid { grid-template-columns:repeat(2,1fr)!important; gap:12px!important; }
  .tools-table-wrap { overflow-x:auto!important; -webkit-overflow-scrolling:touch; }
  .tools-table { min-width:560px; }
  .hub-meta-pills { flex-wrap:wrap; gap:6px; }
  .footer-grid { grid-template-columns:1fr 1fr!important; gap:24px!important; }
}

/* Phone — single column everything at 540px */
@media (max-width:540px) {
  .tools-grid { grid-template-columns:1fr!important; }
  .hub-sidebar { grid-template-columns:1fr!important; }
  .hub-h1 { font-size:clamp(1.6rem,6vw,2.2rem)!important; }
  .hub-tagline { font-size:.88rem!important; }
  .hub-hero-top { flex-direction:column; gap:10px; align-items:flex-start; }
  .tool-hub-card { padding:14px!important; }
  .grid-2 { grid-template-columns:1fr!important; }
  .post-card { min-width:0; }
  .hub-icon-lg { font-size:2.2rem!important; }
  .footer-grid { grid-template-columns:1fr!important; gap:32px!important; }
  .footer-bottom { flex-direction:column; gap:16px; align-items:flex-start; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns:1fr!important; }
  [style*="grid-template-columns: repeat(3"] { grid-template-columns:1fr!important; }
}

/* ═══ FINAL MOBILE/TABLET FIT PATCH — HOME FAQ + HUBS ═══ */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

.home-faq-grid,
.faq-list,
.faq-item,
.faq-question,
.faq-a,
.faq-answer-inner,
.hub-layout,
.hub-layout > *,
.hub-sidebar,
.sidebar-card,
.hub-hero,
.hub-hero *,
.tools-grid,
.tool-hub-card,
.tool-hub-card *,
.tv-published-grid,
.tv-published-card,
.tv-published-card *,
.cta-band,
.cta-band *,
.tools-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.faq-item summary,
.faq-question {
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-item summary::after,
.faq-chevron {
  flex: 0 0 auto;
}

.faq-a,
.faq-answer-inner {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .home-faq-grid {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .home-faq-grid .btn {
    width: 100%;
    justify-content: center;
  }

  .hub-layout {
    display: block !important;
  }

  .hub-layout > * + * {
    margin-top: 24px;
  }

  .hub-sidebar {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 768px) {
  .faq-item summary,
  .faq-question {
    align-items: flex-start !important;
    padding: 15px 16px !important;
    font-size: .95rem !important;
    line-height: 1.45 !important;
  }

  .faq-a,
  .faq-answer-inner {
    padding: 0 16px 16px !important;
    font-size: .88rem !important;
    line-height: 1.7 !important;
  }

  .hub-nav {
    margin-left: calc(-1 * max(16px, env(safe-area-inset-left))) !important;
    margin-right: calc(-1 * max(16px, env(safe-area-inset-right))) !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
    max-width: calc(100% + 32px) !important;
  }

  .hub-meta-pills {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
  }

  .hub-meta-pill {
    min-width: 0 !important;
    white-space: normal !important;
    justify-content: center;
    text-align: center;
  }

  .tool-hub-actions,
  .cta-band {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .tool-hub-actions .btn,
  .tool-hub-actions button,
  .cta-band .btn,
  .btn {
    white-space: normal;
  }

  .tools-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .tools-table {
    min-width: 560px !important;
  }
}

@media (max-width: 540px) {
  .home-faq-grid {
    gap: 22px !important;
  }

  .hub-meta-pills {
    grid-template-columns: 1fr 1fr !important;
  }

  .tools-grid,
  .tv-published-grid,
  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .tool-hub-actions .btn,
  .tool-hub-actions button,
  .cta-band .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Hardening pass: consistent chrome, wider article canvas, and 15-feature compare. */
.nav-logo img,
.footer-brand-logo img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 176px;
  object-fit: contain;
}

.footer-brand-logo img {
  height: 46px;
  max-width: 190px;
}

.compare-header {
  padding: clamp(48px, 7vw, 88px) 0 clamp(34px, 5vw, 58px);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}

.compare-hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.compare-hero-copy h1 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.03;
  margin: 12px 0 16px;
}

.compare-hero-copy p {
  color: var(--text-3);
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.75;
  margin: 0;
}

.compare-builder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r5);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}

.compare-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.compare-promise,
.compare-rules,
.compare-empty,
.warning,
.note {
  border: 1px solid var(--border);
  border-radius: var(--r4);
  background: var(--bg-2);
  padding: 18px;
}

.compare-promise h2,
.compare-rules strong,
.compare-empty strong,
.warning strong {
  display: block;
  color: var(--text);
  margin: 0 0 8px;
}

.compare-promise p,
.compare-rules li,
.compare-empty p,
.warning p,
.note,
.compare-note-strip {
  color: var(--text-3);
  font-size: .9rem;
  line-height: 1.65;
}

.compare-rules ul {
  margin: 0;
  padding-left: 18px;
}

.data-count {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--accent-lt);
  border: 1px solid var(--accent-faint);
  padding: 7px 11px;
  color: var(--accent);
  font-weight: 900;
  font-size: .76rem;
}

.compare-controls-v71 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.compare-controls-v71 input {
  min-height: 52px;
  border-radius: var(--r3);
  border: 1px solid var(--border-md);
  background: var(--bg-1);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
}

.compare-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.results-box {
  display: grid;
  gap: 16px;
}

.tool-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tool-chip {
  border: 1px solid var(--border-md);
  background: var(--bg-1);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  color: var(--accent);
  cursor: pointer;
}

.tool-chip:hover {
  background: var(--accent-lt);
  border-color: var(--accent);
}

.compare-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.compare-summary-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 18px;
}

.compare-summary-kicker {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
}

.compare-summary-card h3 {
  margin: 0 0 8px;
}

.compare-summary-card p {
  color: var(--text-3);
  font-size: .84rem;
  line-height: 1.6;
}

.compare-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-lt);
  border: 1px solid var(--accent-faint);
  padding: 7px 10px;
  font-size: .75rem;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r4);
}

.compare-feature-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.compare-feature-table th,
.compare-feature-table td {
  border-bottom: 1px solid var(--border);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.compare-feature-table thead th {
  background: var(--bg-2);
  color: var(--text);
}

.compare-feature-table tbody th {
  width: 230px;
  color: var(--text);
  font-weight: 900;
}

.compare-tool-name,
.feature-label {
  display: block;
}

.compare-mini-link {
  display: inline-block;
  margin-top: 6px;
  font-size: .72rem;
  font-weight: 900;
  color: var(--accent);
}

.score-pill {
  display: inline-flex;
  border-radius: 999px;
  background: var(--accent-lt);
  border: 1px solid var(--accent-faint);
  color: var(--accent);
  font-size: .68rem;
  font-weight: 900;
  padding: 3px 7px;
  margin-bottom: 7px;
}

.missing-feature {
  display: block;
  color: var(--text-4);
  font-size: .82rem;
  font-style: italic;
}

@media (max-width: 980px) {
  .compare-intro-grid,
  .compare-summary-grid {
    grid-template-columns: 1fr;
  }

  .compare-controls-v71 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .compare-builder {
    padding: 16px;
  }

  .compare-actions-row .btn {
    width: 100%;
  }
}

/* Final phone/tablet hardening: homepage hero and oversized generated content. */
.hero-home,
.hero-content,
.hero-grid,
.home-h1,
.home-sub,
.hero-actions,
.trust-pills,
.stats-band {
  min-width: 0;
  max-width: 100%;
}

.home-h1 {
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .hero-home {
    padding: clamp(48px, 14vw, 76px) 0 clamp(42px, 11vw, 64px) !important;
  }

  .hero-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-h1 {
    font-size: clamp(1.85rem, 8.8vw, 2.55rem) !important;
    line-height: 1.04 !important;
    letter-spacing: 0 !important;
  }

  .home-h1 br {
    display: none;
  }

  .home-sub {
    font-size: .98rem !important;
    line-height: 1.68 !important;
    max-width: 100% !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

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

  .trust-pills {
    gap: 7px;
  }

  .trust-pill {
    white-space: normal;
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .home-h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.25rem) !important;
  }

  .home-h1 em {
    display: inline;
  }

  .stats-band {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   COMPARE PAGE — complete overhaul for polish + theme support
   ══════════════════════════════════════════════════════════════ */

/* Hero */
.compare-header {
  padding: clamp(52px,8vw,100px) 0 clamp(36px,5vw,64px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-1) 100%);
}
.compare-hero-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.compare-hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent);
  background: var(--accent-lt); border: 1px solid var(--accent-faint);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 16px;
}
.compare-hero-copy h1 {
  font-size: clamp(1.9rem,4vw,3.4rem); line-height: 1.08;
  margin: 0 0 14px; color: var(--text);
}
.compare-hero-copy > p {
  color: var(--text-3); font-size: clamp(.9rem,1.1vw,1rem);
  line-height: 1.75; margin: 0;
}

/* Builder panel */
.compare-builder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r5);
  padding: clamp(20px,3vw,36px);
  box-shadow: var(--shadow-md);
  max-width: 1100px;
  margin: 0 auto;
}

/* Intro 2-col grid */
.compare-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 22px;
}
.compare-promise,
.compare-rules {
  border: 1px solid var(--border);
  border-radius: var(--r4);
  background: var(--bg-1);
  padding: 20px;
}
.compare-promise h2 {
  font-size: 1.25rem; margin: 0 0 10px; color: var(--text);
}
.compare-promise p { color: var(--text-3); font-size: .88rem; line-height: 1.65; margin: 0 0 12px; }
.data-count {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent);
  background: var(--accent-lt); border: 1px solid var(--accent-faint);
  border-radius: 999px; padding: 5px 11px; margin-top: 4px;
}
.compare-rules strong {
  display: block; color: var(--text); font-size: .9rem; margin-bottom: 10px;
}
.compare-rules ul {
  margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 6px;
}
.compare-rules li { color: var(--text-3); font-size: .84rem; line-height: 1.55; }

/* Input controls — 3 col then 1 col on mobile */
.compare-controls-v71 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.compare-controls-v71 input {
  min-height: 52px;
  border-radius: var(--r3);
  border: 1.5px solid var(--border-md);
  background: var(--bg-1);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
}
.compare-controls-v71 input::placeholder { color: var(--text-4); }
.compare-controls-v71 input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lt);
}

/* Actions row */
.compare-actions-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 20px;
}

/* Results box */
.results-box {
  min-height: 80px;
}

/* Empty / warning / note states */
.compare-empty, .warning, .note {
  border: 1px solid var(--border);
  border-radius: var(--r4);
  background: var(--bg-1);
  padding: 20px 22px;
}
.compare-empty strong, .warning strong {
  display: block; color: var(--text); margin: 0 0 8px;
}
.compare-empty p, .warning p, .note {
  color: var(--text-3); font-size: .88rem; line-height: 1.65; margin: 0;
}
.warning { border-color: rgba(246,179,63,.25); background: rgba(246,179,63,.05); }
.warning strong { color: var(--tv-amber, #f6b33f); }

/* Tool chips (quick-pick buttons) */
.tool-chip-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.tool-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-lt); border: 1px solid var(--accent-faint);
  border-radius: 999px; padding: 6px 14px;
  font-size: .78rem; font-weight: 700; color: var(--accent);
  cursor: pointer; transition: all .15s;
}
.tool-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Summary cards */
.compare-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.compare-summary-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: 20px;
}
.compare-summary-kicker {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 900; color: var(--accent); margin-bottom: 6px;
}
.compare-summary-card h3 { margin: 0 0 8px; color: var(--text); font-size: 1rem; }
.compare-summary-card p { color: var(--text-3); font-size: .83rem; line-height: 1.6; margin: 0 0 14px; }
.compare-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn {
  display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--accent-lt); border: 1px solid var(--accent-faint);
  padding: 6px 13px; font-size: .76rem; font-weight: 700;
  color: var(--accent); text-decoration: none; transition: all .15s;
}
.mini-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Feature comparison table */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r4);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.compare-feature-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
.compare-feature-table thead th {
  background: var(--bg-2);
  color: var(--text);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
}
.compare-feature-table thead th:first-child { min-width: 180px; width: 200px; }
.compare-feature-table tbody th {
  color: var(--text);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  background: var(--bg-1);
  width: 200px;
  min-width: 180px;
}
.compare-feature-table tbody td {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: .86rem;
  color: var(--text-2);
  line-height: 1.65;
}
.compare-feature-table tbody tr:last-child th,
.compare-feature-table tbody tr:last-child td { border-bottom: none; }
.compare-feature-table tbody tr:hover td { background: var(--bg-2); }
.compare-tool-name { display: block; font-size: 1rem; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.compare-mini-link { display: block; font-size: .72rem; font-weight: 700; color: var(--accent); margin-top: 4px; }
.feature-label { display: block; }
.score-pill {
  display: inline-flex; align-items: center;
  background: var(--accent-lt); border: 1px solid var(--accent-faint);
  border-radius: 999px; padding: 2px 10px;
  font-size: .7rem; font-weight: 900; color: var(--accent);
  margin-bottom: 8px;
}
.missing-feature { color: var(--text-4); font-size: .8rem; font-style: italic; }

/* Footer note */
.compare-note-strip {
  color: var(--text-4); font-size: .8rem; line-height: 1.6;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
}
.compare-note-strip code {
  background: var(--bg-2); border-radius: 4px;
  padding: 1px 5px; font-size: .78rem; color: var(--text-3);
}

/* ── Light theme overrides for compare ── */
[data-theme="light"] .compare-header {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-1) 100%);
}
[data-theme="light"] .compare-builder { box-shadow: var(--shadow-sm); }
[data-theme="light"] .compare-controls-v71 input { background: #fff; }
[data-theme="light"] .compare-promise,
[data-theme="light"] .compare-rules { background: var(--bg-1); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .compare-intro-grid { grid-template-columns: 1fr; }
  .compare-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .compare-controls-v71 { grid-template-columns: 1fr; }
  .compare-actions-row .btn { width: 100%; }
  .compare-summary-grid { grid-template-columns: 1fr; }
  .compare-feature-table thead th:first-child { width: 140px; min-width: 140px; }
  .compare-feature-table tbody th { width: 140px; min-width: 140px; }
}

@keyframes tvSpin { to { transform: rotate(360deg); } }

/* ── Light theme: explicit header + component overrides ── */
[data-theme="light"] .site-header,
[data-theme="light"] .header {
  background: rgba(245,248,250,.97);
  border-bottom-color: rgba(0,0,0,.10);
}
[data-theme="light"] .disclosure-bar {
  background: #eef2f6;
  border-bottom-color: rgba(0,0,0,.08);
}
[data-theme="light"] .nav-links a { color: var(--text-3); }
[data-theme="light"] .nav-links a:hover { background: var(--bg-2); color: var(--text); }
[data-theme="light"] .dropdown-menu { background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
[data-theme="light"] .nav-search { background: #fff; border-color: rgba(0,0,0,.12); color: var(--text); }
[data-theme="light"] .nav-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lt); }
[data-theme="light"] .theme-toggle { background: var(--bg-2); border-color: rgba(0,0,0,.1); color: var(--text-3); }
[data-theme="light"] .mobile-menu .mm-panel { background: #fff; }
[data-theme="light"] .footer-brand-logo img { filter: none; }
[data-theme="light"] .site-footer { background: var(--bg-1); border-top-color: var(--border); }
[data-theme="light"] .footer-note, [data-theme="light"] .footer-legal-note { color: var(--text-3); }
[data-theme="light"] .footer-links a { color: var(--text-3); }
[data-theme="light"] .footer-links a:hover { color: var(--accent); }
