/* ---------------------------------
   Tokens
--------------------------------- */
:root {
  --paper: #FAF8FF;
  --paper-raised: #FFFFFF;
  --paper-tint: #F3F0FF;
  --ink: #1A1B41;
  --ink-soft: #4B4E6D;
  --line: #E6E2F3;
  --brand: #5B4FE0;
  --brand-deep: #4338CA;
  --brand-soft: #EEEBFF;
  --violet: #8B5CF6;
  --coral: #FF6B4A;
  --coral-deep: #C8401F;
  --coral-soft: #FFEDE7;
  --mint: #12B39B;
  --mint-deep: #0B7A66;
  --mint-soft: #DDF7F1;
  --amber: #F5B83D;
  --amber-deep: #A8650F;
  --amber-soft: #FFF3D9;
  --pink: #E0457B;
  --pink-soft: #FDE8F0;
  --sky: #2F8FE8;
  --sky-soft: #E3F1FD;
  --score-high-bg: var(--mint-soft);
  --score-high-fg: var(--mint-deep);
  --score-mid-bg: var(--amber-soft);
  --score-mid-fg: #8A5A15;
  --grad-brand: linear-gradient(120deg, #5B4FE0 0%, #8B5CF6 55%, #FF6B4A 100%);
  --shadow-brand: 0 10px 30px -12px rgba(91, 79, 224, 0.35);

  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-width: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; }

a { color: inherit; }

/* ---------------------------------
   Header
--------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  margin: 0;
}

.logo-mark { flex-shrink: 0; }

.logo-word strong { font-weight: 700; }

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ---------------------------------
   Hero
--------------------------------- */
.hero {
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-deep);
  margin: 0 0 16px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 15ch;
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-search {
  display: flex;
  gap: 0;
  max-width: 460px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper-raised);
  outline: none;
}

.hero-search button {
  border: none;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hero-search button:hover { background: var(--brand-deep); }

/* Hero comparison panel */
.hero-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.panel-head span:first-child {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.8rem;
}

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

.panel-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

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

.rank {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.tool-name { font-weight: 500; font-size: 0.95rem; }

.score {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 3px 9px;
  border-radius: 999px;
}

.score-high { background: var(--score-high-bg); color: var(--score-high-fg); }
.score-mid { background: var(--score-mid-bg); color: var(--score-mid-fg); }

/* ---------------------------------
   Categories
--------------------------------- */
.categories { padding: 72px 0; }

.categories h2 {
  font-size: 1.6rem;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.category-card {
  display: block;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.category-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.category-card-body { padding: 16px 18px 18px; }

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.category-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------------------------------
   Top picks / table
--------------------------------- */
.top-picks {
  padding: 72px 0;
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 60ch; margin-bottom: 36px; }

.section-head h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-head p { color: var(--ink-soft); margin: 0; }

.table-scroll { overflow-x: auto; }

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

.compare-table th {
  text-align: left;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
}

.compare-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: middle;
}

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

.compare-table .tool-cell {
  font-weight: 600;
}

.compare-table .best-for { color: var(--ink-soft); }

.cta-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--brand);
  padding-bottom: 1px;
}

.cta-link:hover { color: var(--brand); }

/* ---------------------------------
   How we test
--------------------------------- */
.how-we-test { padding: 72px 0 64px; }

.how-header {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.how-header h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0;
}

.how-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

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

.criterion-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 8px;
}

.criterion p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.disclosure {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 70ch;
}

.disclosure a { color: var(--ink); }

/* ---------------------------------
   Footer
--------------------------------- */
.site-footer { padding: 48px 0; }

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

.footer-note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-links a:hover { color: var(--ink); }

/* ---------------------------------
   Responsive
--------------------------------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: repeat(2, 1fr); }
  .how-header { grid-template-columns: 1fr; }
  .how-image { height: 200px; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 48px 0 56px; }
  .criteria-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; border: none; gap: 10px; }
  .hero-search input,
  .hero-search button {
    border: 1px solid var(--ink);
    border-radius: var(--radius);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category-card { transition: none; }
}

/* ---------------------------------
   Breadcrumb
--------------------------------- */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 20px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--ink-soft);
}

.breadcrumb a:hover { color: var(--ink); }

.breadcrumb span:last-child { color: var(--ink); font-weight: 500; }

/* ---------------------------------
   Category hero
--------------------------------- */
.category-hero {
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--line);
}

.cat-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.cat-hero-inner h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 18ch;
}

.cat-hero-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* ---------------------------------
   Filter bar
--------------------------------- */
.filter-bar {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}

.filter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover { border-color: var(--brand); }

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.sort-select select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--paper);
  color: var(--ink);
}

/* ---------------------------------
   Tool list
--------------------------------- */
.tool-list-section { padding: 48px 0 72px; }

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.tool-card-image {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.tool-card-head h3 { font-size: 1.05rem; margin: 0; }

.tool-tagline {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tool-meta {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.cta-button {
  background: var(--brand);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cta-button:hover { background: var(--brand-deep); }

.empty-state {
  color: var(--ink-soft);
  padding: 40px 0;
  text-align: center;
}

/* ---------------------------------
   FAQ
--------------------------------- */
.faq-section {
  padding: 56px 0 80px;
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.faq-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 70ch;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--paper);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------------------------------
   Category-page responsive
--------------------------------- */
@media (max-width: 720px) {
  .cat-hero-inner { grid-template-columns: 1fr; }
  .cat-hero-image { height: 180px; }
  .tool-card {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "image body"
      "cta cta";
  }
  .tool-card-image { width: 64px; height: 64px; grid-area: image; }
  .tool-card-body { grid-area: body; }
  .cta-button { grid-area: cta; text-align: center; margin-top: 8px; }
}

/* ---------------------------------
   Launch additions
--------------------------------- */
.category-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--score-high-bg);
  color: var(--brand-deep);
  border-bottom: 1px solid var(--line);
}

.category-card.is-soon { opacity: 0.6; cursor: default; }
.category-card.is-soon:hover { border-color: var(--line); transform: none; }

.mono {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  border: none;
}

.price-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.pricing-note {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Static pages (About, Methodology, legal) */
.page { padding: 48px 0 80px; }
.page h1 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.page h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.page p, .page li { color: var(--ink-soft); max-width: 70ch; }
.page ul { padding-left: 20px; }
.page a { color: var(--brand-deep); }

/* Working mobile menu (the toggle existed but had no open-state style) */
@media (max-width: 640px) {
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .main-nav.is-open a { padding: 12px 0; }
}

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.cta-link { white-space: nowrap; }

/* ---------------------------------
   Dynamic pricing: badges, updates feed, cookie banner
--------------------------------- */
.verified-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--score-high-bg);
  color: var(--score-high-fg);
  white-space: nowrap;
}
.verified-badge.review { background: var(--score-mid-bg); color: var(--score-mid-fg); }

.updates { padding: 72px 0; border-bottom: 1px solid var(--line); }
.update-list { list-style: none; margin: 0; padding: 0; max-width: 78ch; }
.update-item {
  display: grid;
  grid-template-columns: 110px 150px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.update-item time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }
.update-item strong { font-weight: 600; }
.update-item span { color: var(--ink-soft); }
.update-tag {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 7px; margin-left: 6px; color: var(--ink-soft);
}
@media (max-width: 640px) {
  .update-item { grid-template-columns: 1fr; gap: 4px; }
}

.related { padding: 40px 0 0; }
.related h2 { font-size: 1.2rem; margin-bottom: 14px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  text-decoration: none; font-size: 0.88rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--paper-raised);
  padding: 8px 14px; border-radius: 999px;
}
.related-links a:hover { border-color: var(--brand); }
.guide { max-width: 70ch; color: var(--ink-soft); margin: 0 0 8px; }

#consentBanner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 640px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  border-radius: 10px; padding: 16px 18px;
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: 0 6px 24px rgba(20, 33, 61, 0.25);
}
#consentBanner p { margin: 0; font-size: 0.85rem; flex: 1 1 260px; }
#consentBanner a { color: var(--amber); }
#consentBanner button {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--paper); background: transparent; color: var(--paper); margin-left: 8px;
}
#consentBanner button.primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* Filtering: the [hidden] attribute must beat .tool-card { display: grid } */
.tool-card[hidden], .empty-state[hidden] { display: none; }
.result-count { margin: 0 0 14px; font-size: 0.85rem; color: var(--ink-soft); font-family: var(--font-mono); }
.filter-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------------------------------
   Vibrant palette: gradients, tinted surfaces, per-category colour
--------------------------------- */
.site-header {
  background: rgba(250, 248, 255, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad-brand);
  opacity: 0.85;
}
.main-nav a { position: relative; }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--brand-deep); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }

/* Hero: soft colour glow behind the copy */
.hero, .category-hero {
  background:
    radial-gradient(ellipse 50% 60% at 8% 15%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 55% at 95% 5%, rgba(255, 107, 74, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 60% at 75% 100%, rgba(18, 179, 155, 0.13), transparent 70%),
    var(--paper);
}
.hero-kicker {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 .accent,
.hero h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-search {
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}
.hero-search button {
  background: var(--grad-brand);
  background-size: 160% 100%;
  background-position: 0% 0;
  transition: background-position 0.3s ease;
}
.hero-search button:hover { background: var(--grad-brand); background-size: 160% 100%; background-position: 100% 0; }

.hero-panel {
  position: relative;
  border-color: transparent;
  box-shadow: 0 20px 45px -20px rgba(67, 56, 202, 0.35), 0 0 0 1px var(--line);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-brand);
}
.panel-row { border-radius: 6px; transition: background 0.15s ease; }
.panel-row:hover { background: var(--paper-tint); }
.panel-row .price-tag {
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Category cards: each one gets its own colour */
.category-card {
  --tone: var(--brand);
  --tone-soft: var(--brand-soft);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.category-card:nth-child(6n+2) { --tone: var(--coral-deep); --tone-soft: var(--coral-soft); }
.category-card:nth-child(6n+3) { --tone: var(--mint-deep); --tone-soft: var(--mint-soft); }
.category-card:nth-child(6n+4) { --tone: var(--amber-deep); --tone-soft: var(--amber-soft); }
.category-card:nth-child(6n+5) { --tone: var(--pink); --tone-soft: var(--pink-soft); }
.category-card:nth-child(6n+6) { --tone: var(--sky); --tone-soft: var(--sky-soft); }
.category-icon {
  background: var(--tone-soft);
  color: var(--tone);
}
.category-icon svg { transition: transform 0.2s ease; }
.category-card:hover,
.category-card:focus-visible {
  border-color: var(--tone);
  box-shadow: 0 14px 30px -18px var(--tone);
}
.category-card:hover .category-icon svg { transform: scale(1.1) rotate(-4deg); }
.category-card:hover h3 { color: var(--tone); }

/* Top picks: tinted band, table sits on a raised card */
.top-picks {
  background: linear-gradient(180deg, var(--paper-tint) 0%, var(--paper) 100%);
}
.top-picks .table-scroll {
  background: var(--paper-raised);
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px -28px rgba(67, 56, 202, 0.4);
  padding: 8px 0;
}
.compare-table th { color: var(--brand-deep); padding-top: 12px; }
.compare-table tbody tr { transition: background 0.15s ease; }
.compare-table tbody tr:hover { background: var(--paper-tint); }
.cta-link { color: var(--brand-deep); border-bottom-color: var(--coral); }
.cta-link:hover { color: var(--coral-deep); }

.cta-button {
  background: var(--grad-brand);
  background-size: 160% 100%;
  box-shadow: var(--shadow-brand);
  transition: background-position 0.3s ease, transform 0.15s ease;
}
.cta-button:hover { background: var(--grad-brand); background-size: 160% 100%; background-position: 100% 0; transform: translateY(-1px); }

/* Price updates */
.update-item time { color: var(--brand-deep); }
.update-tag { background: var(--coral-soft); border-color: transparent; color: var(--coral-deep); }

/* How we test: colour-coded criteria */
.criterion {
  --tone: var(--brand-deep);
  border-top: 3px solid var(--tone);
  padding-top: 14px;
}
.criterion:nth-child(2) { --tone: var(--coral-deep); }
.criterion:nth-child(3) { --tone: var(--mint-deep); }
.criterion:nth-child(4) { --tone: var(--amber-deep); }
.criterion-label { color: var(--tone); }

/* Category pages */
.filter-bar { background: var(--paper-tint); }
.filter-chip { background: var(--paper-raised); }
.filter-chip:hover { color: var(--brand-deep); }
.filter-chip.is-active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}
.tool-card { transition: box-shadow 0.2s ease, border-color 0.15s ease; }
.tool-card:hover { border-color: var(--brand-soft); box-shadow: 0 14px 30px -20px rgba(67, 56, 202, 0.45); }
.faq-item[open] { border-color: var(--brand); background: var(--paper-raised); }
.faq-item summary::marker { color: var(--brand); }
.related-links a:hover { color: var(--brand-deep); background: var(--brand-soft); }

/* Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-tint) 100%);
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-brand);
}
.footer-links a:hover { color: var(--brand-deep); }

#consentBanner { background: linear-gradient(135deg, #1A1B41 0%, #2E2672 100%); }

@media (prefers-reduced-motion: reduce) {
  .category-card:hover .category-icon svg,
  .cta-button:hover { transform: none; }
}
