/*
Theme Name: Design Alternatives
Theme URI: https://example.com/design-alternatives
Author: Design Alternatives
Description: Editorial comparison-site theme for design & branding software alternatives — content-dense cards, category taxonomy grid, head-to-head comparisons, and a dashboard-inspired accent system.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: design-alternatives
*/

/* =====================================================================
   0. Design tokens
   ===================================================================== */
:root {
  --ink: #15130f;
  --ink-soft: #5c574e;
  --ink-faint: #777165;

  --bg-0: #ffffff;
  --bg-1: #faf6ea;
  --bg-2: #f3ecd8;
  --cream-deep: #eee1c1;

  --border: #e9e1c9;
  --border-soft: #f0e9d6;

  --accent: #14a35a;
  --accent-dark: #0c7d44;
  --accent-tint: #e6f8ee;

  --accent-warm: #ff5a2e;
  --accent-warm-dark: #e2431a;
  --accent-warm-tint: #fff1ea;

  --accent2: #00a7b3;
  --accent2-dark: #00838d;
  --accent2-tint: #e3fbfa;

  --gold: #e8a20e;
  --green: #189652;

  --cat-violet: #7c5cfc;
  --cat-violet-tint: #f1eefe;
  --cat-green: #189652;
  --cat-green-tint: #e7f8ee;
  --cat-amber: #c98a12;
  --cat-amber-tint: #fff6df;
  --cat-pink: #e23d82;
  --cat-pink-tint: #fdeef3;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;
}

/* Category colour variants — used on icon wraps, badges, cover art, avatars.
   Deliberately independent of --accent (the brand/CTA colour) so the six
   category swatches stay visually distinct from each other and from the
   green primary used for buttons/links elsewhere on the page. */
.cat-orange { --tag-color: var(--accent-warm); --tag-tint: var(--accent-warm-tint); --tag-dark: var(--accent-warm-dark); }
.cat-cyan   { --tag-color: var(--accent2); --tag-tint: var(--accent2-tint); --tag-dark: var(--accent2-dark); }
.cat-violet { --tag-color: var(--cat-violet); --tag-tint: var(--cat-violet-tint); --tag-dark: var(--cat-violet); }
.cat-green  { --tag-color: var(--cat-green); --tag-tint: var(--cat-green-tint); --tag-dark: var(--cat-green); }
.cat-amber  { --tag-color: var(--cat-amber); --tag-tint: var(--cat-amber-tint); --tag-dark: var(--cat-amber); }
.cat-pink   { --tag-color: var(--cat-pink); --tag-tint: var(--cat-pink-tint); --tag-dark: var(--cat-pink); }

/* =====================================================================
   1. Reset & base
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.icon { flex-shrink: 0; }
.mono { font-family: var(--font-mono); }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.section-header { margin-bottom: 32px; }
.section-header h1,
.section-header h2 {
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.section-header p { font-size: 15px; color: var(--ink-soft); }
.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-dark); }

.live-dot { position: relative; width: 8px; height: 8px; display: inline-flex; flex-shrink: 0; }
.live-dot span { position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
.live-dot span:last-child { animation: dotPulse 1.8s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@keyframes pulseRing {
  0% { transform: scale(.9); opacity: .55; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   2. Navbar
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar-row {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand-logo { display: block; height: 32px; width: auto; }
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

/* Everything else lives in this right-hand group, so the whole nav reads
   as right-aligned against the logo. align-self:stretch on both makes
   this column genuinely fill .navbar-row's 74px (its parent's own
   align-items:center would otherwise just shrink it to content height,
   which left a dead gap between the trigger and the dropdown below —
   see .nav-item's comment). */
.nav-right { display: flex; align-items: center; gap: 32px; align-self: stretch; }
.nav-links { display: flex; align-items: center; gap: 26px; height: 100%; align-self: stretch; }
.nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14.5px;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--ink); }

/* Mega menu
   .nav-item is deliberately NOT position:relative — the menu needs to
   anchor to .site-header (which is position:sticky, so it still works
   as the containing block) so left:0/right:0 span the full header
   width, not just the width of the trigger button.
   height:100% here (now that .nav-right/.nav-links actually stretch to
   a real 74px, see above) makes the trigger's hoverable box reach all
   the way down to .navbar-row's own bottom edge — flush against the
   dropdown's top:100%, with zero gap for the mouse to fall through
   while moving from the trigger down into the open panel. */
.nav-item { height: 100%; display: flex; align-items: center; }
.mega-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14.5px;
  padding: 0;
  height: 100%;
}
.mega-trigger:hover { color: var(--ink); }
.mega-trigger svg { transition: transform .15s ease; }
.nav-item:hover .mega-trigger,
.nav-item.is-open .mega-trigger { color: var(--ink); }
.nav-item:hover .mega-trigger svg,
.nav-item.is-open .mega-trigger svg { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 45; /* above .site-header (40) and everything below it */
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 28px 48px -28px rgba(21, 19, 15, .25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item:hover .mega-menu,
.nav-item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mega-menu-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 48px;
  padding: 36px 32px 40px;
}
.mega-col-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
}
.mega-link:last-child { border-bottom: none; }
.mega-link:hover { color: var(--accent-dark); }
.mega-count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }

.mega-featured-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mega-featured-post:last-child { border-bottom: none; }
.mega-featured-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mega-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega-featured-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.mega-featured-post:hover .mega-featured-title { color: var(--accent-dark); }
.mega-featured-meta { display: block; font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); }

/* "Tools" nav dropdown — every tool category as a plain A–Z list in four
   columns (read top-to-bottom), each with its tool count. */
.mega-menu-inner--tools { display: block; padding: 24px 32px 28px; }
.mega-tools-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.mega-tools-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.mega-tools-all { font-size: 13.5px; font-weight: 700; color: var(--accent-dark); }
.mega-tools-all:hover { color: var(--accent); }
.mega-tools-list { list-style: none; margin: 0; padding: 0; column-count: 4; column-gap: 32px; }
.mega-tools-list li { break-inside: avoid; }
.mega-tools-list a { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.mega-tools-list a:hover .mega-tools-name { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.mega-tools-count { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.mega-tools-count::before { content: '('; }
.mega-tools-count::after { content: ')'; }

/* "Comparisons" nav dropdown — same full-width panel as Tools, with a
   grid of compact versus cards: each half tinted in its tool's colour,
   the VS badge sitting on the seam. */
.mega-vs-grid { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.mega-vs-grid li { display: flex; }
.mega-vs-card {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mega-vs-card:hover,
.mega-vs-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 18px 32px -20px rgba(21, 19, 15, .35);
}
.mega-vs-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mega-vs-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 18px 14px 16px;
  text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tag-tint) 80%, #fff) 0%, #fff 100%);
  transition: background .18s ease;
}
.mega-vs-side--a { padding-right: 22px; }
.mega-vs-side--b { padding-left: 22px; border-left: 1px solid var(--border-soft); }
.mega-vs-card:hover .mega-vs-side { background: linear-gradient(180deg, var(--tag-tint) 0%, #fff 100%); }
.mega-vs-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  color: var(--tag-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  border: 1px solid color-mix(in srgb, var(--tag-color) 22%, transparent);
  box-shadow: 0 6px 14px -10px color-mix(in srgb, var(--tag-color) 70%, transparent);
  overflow: hidden;
  transition: transform .18s ease;
}
.mega-vs-avatar.has-logo { padding: 6px; }
.mega-vs-avatar .cmp-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mega-vs-card:hover .mega-vs-avatar { transform: scale(1.06); }
.mega-vs-name {
  max-width: 100%;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.mega-vs-badge {
  /* Pinned to the seam, level with the logo centres (18px padding + 22px). */
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 50%;
  margin-left: -16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px -4px rgba(21, 19, 15, .45);
  transition: background .18s ease, transform .18s ease;
}
.mega-vs-card:hover .mega-vs-badge { background: var(--accent); transform: rotate(-8deg) scale(1.06); }

@media (max-width: 1080px) {
  .mega-menu-inner { grid-template-columns: 1fr 1fr; }
  .mega-tools-list { column-count: 2; }
  .mega-vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-col--featured { grid-column: 1 / -1; order: -1; }
}

/* =====================================================================
   3. Dashboard stats strip
   ===================================================================== */
.stats-strip { background: var(--ink); border-bottom: 1px solid var(--border); }
.stats-strip .container {
  padding-top: 11px;
  padding-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.stat-item:last-child { border-right: none; }
.stat-value { font-family: var(--font-mono); font-size: 12.5px; color: #fff; font-weight: 700; }
.stat-label { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }

/* =====================================================================
   4. Hero banner (split copy / illustration on cream) + search bridge
   ===================================================================== */
.hero {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-1) 78%, var(--cream-deep) 100%);
  position: relative;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.hero-blob--1 { width: 420px; height: 420px; top: -180px; right: -120px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.hero-blob--2 { width: 320px; height: 320px; bottom: -160px; left: 8%; background: color-mix(in srgb, var(--accent-warm) 14%, transparent); }

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 32px 96px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero-copy { max-width: 520px; }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow-badge-icon { position: relative; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.eyebrow-badge-icon .pulse-ring {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseRing 2.4s ease-out infinite;
}
.eyebrow-badge-icon svg { position: relative; }

.hero-title {
  font-weight: 600;
  font-size: 48px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink);
}
.hl-word {
  display: inline-block;
  background: var(--accent-tint);
  color: var(--accent-dark);
  padding: 2px 12px 5px;
  border-radius: 10px;
  transform: rotate(-1deg);
}

.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  font-family: var(--font-body);
  padding: 15px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, background .15s ease;
}
.btn-hero:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 20px 34px -14px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn-hero svg { transition: transform .18s ease; }
.btn-hero:hover svg { transform: translateX(3px); }

/* Hero illustration — floating category cards. The first (Logo Makers)
   sits top-left where the eye lands and gets a looping cursor "tap". */
.hero-illustration {
  position: relative;
  height: 400px;
  z-index: 1;
}
.hero-orbit {
  position: absolute;
  inset: 8% 10%;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 50%;
}
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px 12px 12px;
  color: var(--ink);
  box-shadow: 0 20px 34px -18px rgba(21, 19, 15, .28);
  animation: floatY 6s ease-in-out infinite;
  transition: border-color .15s ease;
}
.hero-float-card:hover { border-color: var(--ink); color: var(--ink); }
.hero-float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--tag-tint);
  color: var(--tag-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-float-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-float-name { font-size: 14px; font-weight: 700; white-space: nowrap; }
.hero-float-meta { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); white-space: nowrap; }

.hero-float-card--a { top: 10%; left: 0; --tilt: -3deg; animation-duration: 5.5s; z-index: 2; }
.hero-float-card--b { top: 4%; right: 4%; --tilt: 3deg; animation-duration: 6.5s; animation-delay: .3s; }
.hero-float-card--c { top: 46%; right: 0; --tilt: -2deg; animation-duration: 5s; animation-delay: .6s; }
.hero-float-card--d { bottom: 6%; left: 10%; --tilt: 2deg; animation-duration: 6s; animation-delay: .9s; }

/* Spotlight: a touch larger, accent border, and a cursor that taps it every few seconds. */
.hero-float-card.is-spotlight { padding: 14px 22px 14px 14px; border: 1.5px solid var(--accent); }
.hero-float-card.is-spotlight .hero-float-icon { width: 40px; height: 40px; }
.hero-float-card.is-spotlight .hero-float-name { font-size: 15.5px; }
.hero-tap { position: absolute; right: -14px; bottom: -18px; width: 22px; height: 22px; pointer-events: none; }
.hero-tap-cursor { position: relative; display: block; filter: drop-shadow(0 3px 4px rgba(21, 19, 15, .25)); animation: heroTapCursor 3.2s ease-in-out infinite; }
.hero-tap-ring {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: heroTapRing 3.2s ease-out infinite;
}
@keyframes heroTapCursor {
  0%, 100% { transform: translate(14px, 14px); opacity: 0; }
  20% { transform: translate(14px, 14px); opacity: 1; }
  40%, 48% { transform: translate(0, 0) scale(1); opacity: 1; }
  44% { transform: translate(0, 0) scale(.82); }
  75% { transform: translate(0, 0); opacity: 1; }
  90% { transform: translate(14px, 14px); opacity: 0; }
}
@keyframes heroTapRing {
  0%, 42% { transform: scale(.4); opacity: 0; }
  46% { opacity: .9; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}

.hero-sparkle { position: absolute; animation: sparklePulse 2.6s ease-in-out infinite; }
.hero-sparkle--1 { top: 38%; left: 8%; animation-delay: .4s; }
.hero-sparkle--2 { bottom: 24%; right: 10%; animation-delay: 1.1s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--tilt, 0deg)); }
}
@keyframes sparklePulse {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float-card, .hero-sparkle, .hero-tap-cursor, .hero-tap-ring { animation: none; }
  .hero-tap { display: none; }
}

/* Search bridge — the live-search bar overlaps the hero/cards seam so it
   reads as a connector: roughly half sits on the cream hero, half on the
   white card section below it. */
.guides-section { background: var(--bg-0); position: relative !important; }
.search-bridge { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: absolute; width:100%; left:50%; transform:translateX(-50%); top:10px; z-index: 3; margin-top: -46px; }

.search-wrap { position: relative; width: 100%; }

.search-bar {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 22px 44px -22px rgba(21, 19, 15, .32);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-field { display: flex; align-items: center; gap: 10px; padding: 10px 16px; flex: 1; min-width: 160px; }
.search-input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15.5px;
  width: 100%;
  color: var(--ink);
  background: transparent;
}
.search-input::placeholder { color: var(--ink-faint); }
.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 15px;
  background: var(--bg-2);
  border: 1px solid transparent;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 11px;
  font-family: var(--font-body);
}
.filter-chip:hover { background: #fff; border-color: var(--ink); }
.search-submit-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
}
.search-submit-btn:hover { background: var(--accent-dark); }

.guides-wrap { max-width: 1240px; margin: 0 auto; padding: 40px 32px 88px; }

/* Homepage variant: the bar stays in the flow and is lifted by half its own
   height, so it always straddles the seam exactly — and whatever follows
   (the category tabs) sits below it at any bar height, even when it wraps. */
.search-bridge--flow { position: relative; top: auto; left: auto; width: auto; margin: 0 auto; transform: translateY(-50%); }
.guides-wrap--tabs { padding-top: 0; }

/* Category tabs carousel */
.cat-tabs { margin-bottom: 8px; scroll-margin-top: 96px; } /* clears the sticky header when scrolled to */
.cat-tabs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cat-tabs-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.cat-tabs-nav { display: flex; gap: 8px; }
.cat-tabs-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px -8px rgba(21, 19, 15, .25);
  transition: border-color .15s ease, background .15s ease, color .15s ease, opacity .15s ease, transform .15s ease;
}
.cat-tabs-arrow:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: #fff; }
.cat-tabs-arrow:active:not(:disabled) { transform: scale(.94); }
.cat-tabs-arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.cat-tabs-arrow--prev svg { transform: rotate(180deg); }

.cat-tabs-viewport { position: relative; }
.cat-tabs-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.cat-tabs-track::-webkit-scrollbar { display: none; }
/* Soft fade on whichever edge has more tabs hidden behind it. */
.cat-tabs.can-prev .cat-tabs-track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px); mask-image: linear-gradient(90deg, transparent 0, #000 48px); }
.cat-tabs.can-next .cat-tabs-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent 100%); }
.cat-tabs.can-prev.can-next .cat-tabs-track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }

.cat-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cat-tab:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(21, 19, 15, .35); }
.cat-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-tab-name { line-height: 1.2; }
.cat-tab-count {
  min-width: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  transition: background .15s ease, color .15s ease;
}
.cat-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; transform: none; }
.cat-tab.is-active .cat-tab-count { background: rgba(255, 255, 255, .16); color: #fff; }

/* Homepage search: "also found in" hint bar + empty state */
.cat-tab--sm { padding: 5px 6px 5px 14px; gap: 8px; font-size: 13px; }
.cat-tab--sm .cat-tab-count { min-width: 22px; padding: 2px 7px; font-size: 11px; }

.search-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.search-alt-link:hover { background: var(--accent); color: #fff; }
.search-alt-count { padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-family: var(--font-mono); font-size: 11px; color: var(--accent-dark); }
.search-alt-link:hover .search-alt-count { background: rgba(255, 255, 255, .22); color: #fff; }

.search-hint-wrap:empty { display: none; }
.search-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--bg-1);
  animation: hintIn .2s ease;
}
.search-hint-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 0 4px 0 2px; }
@keyframes hintIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px 52px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-1) 0%, #fff 100%);
}
.search-empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  box-shadow: 0 10px 22px -14px rgba(21, 19, 15, .3);
}
.search-empty-title { font-size: 20px; font-weight: 600; color: var(--ink); margin: 0 0 6px; overflow-wrap: anywhere; }
.search-empty-text { font-size: 14.5px; color: var(--ink-soft); margin: 18px 0 12px; }
.search-empty-title + .search-empty-text { margin-top: 4px; }
.search-empty-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .search-hint { animation: none; } }
.guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; transition: opacity .15s ease; margin-top:20px;}
.guides-grid.is-loading { opacity: .5; pointer-events: none; }
.guides-empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; color: var(--ink-faint); font-size: 15px; }

.guide-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px -18px rgba(21, 19, 15, .22); border-color: var(--ink); }
.guide-card:hover .guide-arrow { transform: translateX(3px); opacity: 1; }
.guide-card:hover .guide-cover-icon-wrap { transform: scale(1.06); }

.guide-cover {
  position: relative;
  height: 132px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tag-tint, var(--bg-2)) 0%, #fff 100%);
}
/* Tool cards: 1200×630 (1.91:1) frame — the standard social/OG image size
   most tool images are uploaded at, so those show 100% uncropped. Any other
   size/shape covers the frame, centred, trimming only the overflow — nothing
   behind it, so no coloured or blurred bands ever show. Same frame with or
   without an image so grid rows line up. */
.guide-cover--tool { height: auto; aspect-ratio: 1200 / 630; }
/* Blog/guide cards: a taller 16:9 cover (matches typical post featured images)
   with a soft top shade so the badge and rating chip stay readable. */
.guide-cover--post { height: auto; aspect-ratio: 16 / 9; }
.guide-cover--post.guide-cover--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 19, 15, .28) 0%, rgba(21, 19, 15, 0) 38%);
  pointer-events: none;
}
.guide-card:hover .guide-cover--post .guide-cover-img { transform: scale(1.04); }
.guide-cover--image { background: none; border-bottom: 1px solid var(--border-soft); }
.guide-cover-backdrop {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  opacity: .55;
}
.guide-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .3s ease;
}
.guide-card:hover .guide-cover-img { transform: scale(1.03); }
.guide-cover--image .guide-badge, .guide-cover--image .guide-rating-chip { z-index: 1; box-shadow: 0 4px 12px -4px rgba(21, 19, 15, .3); }

.guide-cover-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--tag-color, var(--ink)) 12%, transparent) 0px, color-mix(in srgb, var(--tag-color, var(--ink)) 12%, transparent) 2px, transparent 2px, transparent 14px);
}
.guide-cover-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--tag-color, var(--ink)) 50%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .3s ease;
}
.guide-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.guide-badge--accent2 { background: var(--accent2); }
.guide-badge--accent { background: var(--accent); }
.guide-rating-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
}
.guide-rating-chip svg { fill: var(--gold); stroke: none; }

.guide-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.guide-category-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tag-dark, var(--accent-dark));
  background: var(--tag-tint, var(--accent-tint));
  padding: 3px 9px;
  border-radius: 999px;
  align-self: flex-start;
}
.guide-title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.guide-title a { color: inherit; }
.guide-title a:hover { color: var(--accent-dark); }
.guide-excerpt { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.guide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.guide-meta-text { font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); }
.guide-arrow { transition: transform .18s ease, opacity .18s ease; opacity: .55; stroke: var(--ink); }

.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; }
.load-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.load-more-btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.load-more-btn:hover svg { stroke: #fff; }
.load-more-btn[disabled] { opacity: .5; cursor: default; transform: none; }
.load-more-count { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }

/* =====================================================================
   5. Category / taxonomy grid
   ===================================================================== */
.category-section { background: var(--bg-1); padding: 80px 0; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.category-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -18px rgba(21, 19, 15, .2); border-color: var(--ink); }
.category-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--tag-tint);
  color: var(--tag-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-name { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.category-count { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }

@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =====================================================================
   6. Head-to-head comparisons (versus cards)
   ===================================================================== */
.versus-section { background: var(--bg-0); padding: 80px 0; }
.versus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.versus-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.versus-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -18px rgba(21, 19, 15, .2); border-color: var(--ink); }
.versus-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.versus-side { display: flex; align-items: center; gap: 10px; flex: 1; }
.versus-side--right { justify-content: flex-end; }
.versus-tool-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.versus-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tag-tint);
  color: var(--tag-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.versus-vs-badge {
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: 999px;
  flex-shrink: 0;
}
.versus-desc { text-align: center; font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.55; }
.versus-link-wrap { text-align: center; }
.versus-link { font-weight: 600; font-size: 14px; }

/* =====================================================================
   7. Most-searched / trending list
   ===================================================================== */
.trending-section { background: var(--bg-1); padding: 80px 0; }
.trending-list { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.trend-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 26px;
  border-bottom: 1px solid var(--border-soft);
  transition: background .15s ease;
}
.trend-row:last-child { border-bottom: none; }
.trend-row:hover { background: var(--bg-2); }
.trend-row:hover .trend-bar-fill { background: var(--accent); }
.trend-rank { font-family: var(--font-mono); font-size: 15px; color: var(--ink-faint); width: 24px; flex-shrink: 0; }
.trend-name { font-weight: 600; font-size: 15px; width: 200px; flex-shrink: 0; }
.trend-bar-track { flex: 1; height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.trend-bar-fill { height: 100%; background: var(--accent2); border-radius: 999px; transition: background .15s ease; }
.trend-volume { font-size: 13px; color: var(--ink-soft); width: 130px; text-align: right; font-family: var(--font-mono); flex-shrink: 0; }
.trend-change { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--green); width: 56px; font-family: var(--font-mono); flex-shrink: 0; }

@media (max-width: 780px) {
  .trend-row { flex-wrap: wrap; }
  .trend-bar-track { order: 3; flex-basis: 100%; }
}

/* =====================================================================
   8. Value proposition
   ===================================================================== */
.value-section { background: var(--bg-0); padding: 76px 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.value-col { display: flex; flex-direction: column; gap: 12px; }
.value-index { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.value-icon { stroke: var(--accent); transition: transform .2s ease; }
.value-col:hover .value-icon { transform: translateY(-3px) rotate(-3deg); }
.value-title { font-weight: 700; font-size: 16px; }
.value-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 780px) {
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   9. Newsletter CTA band
   ===================================================================== */
.newsletter-section { background: var(--accent-tint); }
.newsletter-inner {
  padding: 60px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-left { display: flex; align-items: center; gap: 20px; max-width: 520px; }
.newsletter-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -14px rgba(21, 19, 15, .25);
}
.newsletter-icon-wrap svg { stroke: var(--accent); }
.newsletter-title { font-weight: 600; font-size: 23px; margin-bottom: 6px; }
.newsletter-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.newsletter-form {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 14px 30px -20px rgba(21, 19, 15, .28);
}
.newsletter-input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 10px 14px;
  width: 220px;
  color: var(--ink);
  background: transparent;
}
.newsletter-form .btn-primary { padding: 11px 22px; border-radius: 9px; }
.newsletter-form-wrap { display: flex; flex-direction: column; gap: 8px; }
.newsletter-input.is-invalid { box-shadow: inset 0 0 0 1.5px var(--accent-warm); border-radius: 8px; }
.newsletter-message { font-size: 13.5px; font-weight: 600; margin: 0; min-height: 0; }
.newsletter-message:empty { display: none; }
.newsletter-message--success { color: var(--accent-dark); }
.newsletter-message--info { color: var(--ink-soft); }
.newsletter-message--error { color: var(--accent-warm-dark); }
.newsletter-form .btn-primary.is-loading,
.btn-hero.is-loading { opacity: .7; cursor: default; pointer-events: none; }

/* =====================================================================
   10. Live activity ticker
   ===================================================================== */
.ticker-section { background: var(--ink); overflow: hidden; position: relative; }
.ticker-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.ticker-row { position: relative; display: flex; align-items: center; padding: 16px 0; }
.ticker-live-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 28px 0 32px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, .14);
  position: relative;
  z-index: 2;
  background: var(--ink);
}
.ticker-live-badge .live-dot span { background: var(--accent2); }
.ticker-live-label { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: .04em; }
.ticker-mask {
  flex: 1;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .82); white-space: nowrap; }
.ticker-item svg { stroke: var(--accent); }
.ticker-item .mono { color: #fff; }
.ticker-sep { color: rgba(255, 255, 255, .25); }

/* =====================================================================
   11. Footer
   ===================================================================== */
.site-footer { background: var(--ink); }
.footer-gradient-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent), var(--ink));
  background-size: 300% 100%;
  animation: gradientSlide 6s linear infinite;
}
@keyframes gradientSlide { 0% { background-position: 0 50%; } 100% { background-position: 200% 50%; } }

.footer-inner { padding: 60px 32px 30px; }
/* Two full-width rows: brand strip, then the link columns. */
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo status" "tagline status";
  align-items: center;
  column-gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-brand .footer-logo { grid-area: logo; }
.footer-brand .footer-tagline { grid-area: tagline; max-width: 560px; margin-bottom: 0; }
.footer-brand .footer-status { grid-area: status; justify-self: end; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-img { display: block; height: 30px; width: auto; }
.footer-logo-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; }
.footer-tagline { font-size: 13.5px; color: rgba(255, 255, 255, .62); line-height: 1.6; margin-bottom: 18px; }
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  font-weight: 600;
}
.footer-status .live-dot span { background: var(--green); }

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, .8fr);
  gap: 40px 56px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-col .footer-link { line-height: 1.4; }
/* Categories: two top-to-bottom columns, row count set inline from the PHP. */
.footer-cat-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--footer-cat-rows, 10), auto);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}
.footer-browse-all {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.footer-browse-all:hover { background: #fff; border-color: #fff; color: var(--ink); }
.footer-browse-all:hover .icon { transform: translateX(2px); }
.footer-browse-all .icon { transition: transform .15s ease; }

@media (max-width: 1100px) {
  .footer-columns { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px 36px; }
}
@media (max-width: 780px) {
  .footer-brand { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "tagline" "status"; padding-bottom: 30px; }
  .footer-brand .footer-tagline { margin-bottom: 18px; }
  .footer-brand .footer-status { justify-self: start; }
  .footer-inner { padding: 48px 20px 26px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .footer-col--cats, .footer-col--guides { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-cat-list { gap: 11px 20px; }
  .footer-col .footer-link { font-size: 13.5px; }
}
.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .62);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-link { color: rgba(255, 255, 255, .72); font-size: 14px; transition: color .15s ease; }
.footer-link:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copy { font-size: 12.5px; color: rgba(255, 255, 255, .62); font-family: var(--font-mono); }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, .7);
  transition: border-color .15s ease, color .15s ease;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* =====================================================================
   12. About & Contact pages
   ===================================================================== */
.hero-inner--center { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-bottom: 56px; }
.hero-inner--center .hero-copy { max-width: 640px; }
.hero-inner--center .eyebrow-badge, .hero-inner--center .hero-cta-row { justify-content: center; }

/* Tool category archive — centred title + search, tinted in the category's own colour. */
.hero--category .hero-blob--1 { background: color-mix(in srgb, var(--tag-color) 24%, transparent); }
.hero--category .hero-copy { max-width: 760px; }
.hero--category .hero-inner--center { padding-bottom: 30px; }
.hero--category .hero-title { font-size: 54px; }
.hero--category .hero-desc { margin-left: auto; margin-right: auto; max-width: 540px; }
.eyebrow-badge-icon--cat { background: var(--tag-tint); color: var(--tag-dark); border-radius: 50%; }
.hl-word--cat {
  background: var(--tag-tint);
  color: var(--tag-dark);
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--tag-color) 35%, transparent);
}
.search-wrap--center { max-width: 640px; margin: 0 auto; text-align: left; }
.search-wrap--center .search-bar { flex-wrap: nowrap; }
@media (max-width: 1080px) { .hero--category .hero-title { font-size: 40px; } }
@media (max-width: 640px) {
  .hero--category .hero-title { font-size: 32px; }
  .search-wrap--center .search-bar { flex-wrap: wrap; }
  .search-wrap--center .search-submit-btn { width: 100%; justify-content: center; }
}

.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 64px 0 12px; text-align: center; }
.about-stat-value { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--ink); }
.about-stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.about-story-section { padding: 80px 0; }
.about-story-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.about-story-grid h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }
.about-story-grid p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; margin-bottom: 16px; }
.about-story-grid p:last-child { margin-bottom: 0; }
.about-story-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.about-story-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.about-story-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }

.contact-section { padding: 88px 0 88px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 24px 46px -30px rgba(21, 19, 15, .22);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-1);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); background: #fff; }
.form-textarea { resize: vertical; min-height: 140px; font-family: var(--font-body); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.form-notice--success { background: var(--accent-tint); color: var(--accent-dark); }
.form-notice--error { background: var(--accent-warm-tint); color: var(--accent-warm-dark); }
.form-input.is-invalid, .form-textarea.is-invalid { border-color: var(--accent-warm); background: var(--accent-warm-tint); }
.form-error { display: block; font-size: 12.5px; font-weight: 600; color: var(--accent-warm-dark); margin-top: 6px; min-height: 0; }
.form-error:empty { display: none; }

.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-title { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.contact-info-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.contact-info-desc a { color: var(--accent-dark); font-weight: 600; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .about-story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   13. Archive filter bars, pagination
   ===================================================================== */
.search-bar--wide { row-gap: 10px; }
.search-bar--wide .filter-chip { flex: 1 1 150px; justify-content: space-between; }

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  margin: 0 4px;
}
a.page-numbers:hover { border-color: var(--ink); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers.dots { border: none; }

/* =====================================================================
   14. Tool detail page
   ===================================================================== */
/* Banner: identity (breadcrumb, badges, title, tagline, key facts) on the
   left; a sticky-looking "product card" on the right with the image on
   top, then price and the primary CTA. */
.tool-hero { overflow: hidden; }
.tool-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 32px 72px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
}
.tool-hero-body { min-width: 0; }

.tool-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint); margin-bottom: 28px; }
.tool-breadcrumb a { color: var(--ink-soft); font-weight: 600; }
.tool-breadcrumb a:hover { color: var(--ink); }
.tool-breadcrumb span { opacity: .5; }

.tool-hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tool-hero-body h1 { font-size: 52px; line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; margin: 16px 0 14px; color: var(--ink); }
.tool-hero-tagline { font-size: 18px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 28px; max-width: 580px; }

.tool-badge-tested {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

/* Key facts strip — one white bar, items split by hairlines. */
.tool-facts {
  display: flex;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 0;
  max-width: 640px;
  overflow: hidden;
}
.tool-fact { flex: 1 1 120px; padding: 14px 18px; border-right: 1px solid var(--border-soft); }
.tool-fact:last-child { border-right: none; }
.tool-fact dt { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 5px; }
.tool-fact dd { margin: 0; display: flex; align-items: baseline; gap: 5px; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.tool-fact dd strong { font-family: var(--font-display); font-size: 18px; }
.tool-fact-star { fill: var(--gold); stroke: none; align-self: center; }
.tool-fact-sub { font-size: 12.5px; font-weight: 500; color: var(--ink-faint); }

.tool-hero-alts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.tool-hero-alts-label { font-size: 13px; font-weight: 600; color: var(--ink-faint); margin-right: 4px; }
.tool-hero-alts .alt-pill { background: #fff; border: 1px solid var(--border); padding: 5px 12px; font-size: 12.5px; }
.tool-hero-alts-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.tool-hero-alts-link:hover { color: var(--accent); }
.tool-hero-alts-link svg { transition: transform .18s ease; }
.tool-hero-alts-link:hover svg { transform: translateX(3px); }

/* Product card */
.tool-quick-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(21, 19, 15, .35);
}
/* Full card width, no padding/background: the image covers the 1200×630
   frame (the standard upload size, shown uncropped); other shapes are
   trimmed evenly from the centre. The gradient only backs the no-image
   pattern fallback. */
.tool-hero-media {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tag-tint, var(--bg-2)) 0%, #fff 100%);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-hero-media:has(.tool-hero-img) { background: none; }
.tool-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.tool-quick-body { padding: 22px 24px 20px; }
.tool-quick-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 4px; }
.tool-quick-price { font-family: var(--font-display); font-size: 32px; line-height: 1.1; font-weight: 700; color: var(--ink); }
.tool-quick-period { font-size: 13px; color: var(--ink-faint); margin-left: 4px; }
.tool-quick-line { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-soft); margin: 8px 0 18px; }
.tool-quick-line svg { stroke: var(--accent); flex-shrink: 0; }
.tool-cta-btn { width: 100%; justify-content: center; }
/* External-link icon nudges up-right on hover (instead of the arrow's slide right). */
.tool-cta-btn:hover svg { transform: translate(2px, -2px); }
.tool-quick-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.tool-secondary-link { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.tool-secondary-link:hover { color: var(--ink); }
.tool-verified-text { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }
.deal-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-warm-tint);
  color: var(--accent-warm-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.deal-banner svg { stroke: var(--accent-warm-dark); flex-shrink: 0; }

/* Same width + gutters as .container / the banner so every section lines up. */
.tool-content { max-width: 1240px; margin: 0 auto; padding: 40px 32px; }
.tool-section-title { font-size: 22px; font-weight: 600; margin: 48px 0 18px; }
.tool-section-title--first { margin-top: 8px; }
.tool-section-title--first + .entry-content > :first-child { margin-top: 0; }

.feature-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; list-style: none; margin: 0; padding: 0; }
.feature-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.feature-checklist svg { stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros-card, .cons-card { border-radius: 14px; padding: 22px; border: 1px solid var(--border); }
.pros-card { background: var(--accent-tint); }
.cons-card { background: var(--accent-warm-tint); }
.pros-card h3, .cons-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.pros-card h3 { color: var(--accent-dark); }
.cons-card h3 { color: var(--accent-warm-dark); }
.pros-card ul, .cons-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pros-card li, .cons-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }

.verdict-box { background: var(--bg-1); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px; }
.verdict-box h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 10px; }
.verdict-box p { font-size: 15.5px; line-height: 1.7; color: var(--ink); }

.table-scroll { overflow-x: auto; }
.pricing-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; min-width: 480px; }
.pricing-table th, .pricing-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.pricing-table th { background: var(--bg-1); font-weight: 700; color: var(--ink-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .tier-name { font-weight: 700; }
.pricing-table .tier-price { font-family: var(--font-mono); color: var(--accent-dark); font-weight: 700; }

.alt-pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.alt-pill { background: var(--bg-2); color: var(--ink); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.alt-pill:hover { background: var(--accent-tint); color: var(--accent-dark); }

.rating-breakdown { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin-bottom: 28px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.rating-bar-row .mono { width: 44px; flex-shrink: 0; }
.rating-bar-track { flex: 1; height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--gold); border-radius: 999px; }
.rating-bar-count { width: 28px; text-align: right; flex-shrink: 0; }

@media (max-width: 1080px) {
  .tool-hero-inner { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  .tool-hero-body h1 { font-size: 42px; }
}
@media (max-width: 900px) {
  .tool-hero-inner { grid-template-columns: 1fr; padding: 28px 24px 48px; gap: 28px; }
  .tool-hero-body h1 { font-size: 34px; }
  .tool-hero-tagline { font-size: 16px; }
  .tool-quick-card { max-width: 480px; }
  .tool-content { padding: 32px 24px; }
  .tool-fact { flex-basis: 45%; border-bottom: 1px solid var(--border-soft); }
  .pros-cons-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-checklist { grid-template-columns: 1fr; }
}

/* =====================================================================
   15. Comparison detail page
   ===================================================================== */
.cmp-hero-row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.cmp-hero-tool { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cmp-hero-avatar { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; background: var(--tag-tint); color: var(--tag-dark); }
.cmp-hero-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.cmp-hero-cta { font-size: 12.5px; font-weight: 700; color: var(--accent-dark); }
.cmp-vs-badge-lg { background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; padding: 8px 16px; border-radius: 999px; letter-spacing: .04em; }

.cmp-table-wrap { overflow-x: auto; margin: 8px 0 40px; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 16px 18px; border-bottom: 1px solid var(--border-soft); font-size: 14px; vertical-align: top; text-align: left; }
.cmp-table th.row-label { width: 150px; color: var(--ink-faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--bg-1); }
.cmp-table th.tool-col { font-family: var(--font-display); font-size: 17px; font-weight: 600; background: var(--bg-1); }
.cmp-table th.tool-col.is-winner, .cmp-table td.is-winner { background: var(--accent-tint); }
.cmp-winner-tag { display: inline-block; margin-left: 6px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.cmp-table ul { margin: 0; padding-left: 16px; }
.cmp-table .cmp-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-dark); font-size: 13.5px; }

/* =====================================================================
   16. Comments / reviews (comments.php)
   ===================================================================== */
.comments-area { max-width: 820px; }
.comments-title { font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.comments-closed { font-size: 14.5px; color: var(--ink-soft); padding: 16px 0; }

.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding: 0 0 0 44px; }
.comment { margin-bottom: 22px; }
.comment-body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
.comment-meta { margin-bottom: 10px; }
.comment-author.vcard { display: flex; align-items: center; gap: 10px; }
.comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.comment-author .fn { font-style: normal; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); margin-top: 2px; margin-left: 50px; }
.comment-metadata a { color: inherit; }
.comment-metadata .edit-link a { color: var(--accent-dark); margin-left: 6px; }
.comment-awaiting-moderation { display: block; font-size: 12.5px; color: var(--accent-warm-dark); background: var(--accent-warm-tint); padding: 6px 10px; border-radius: 8px; margin-top: 10px; }
.comment-content { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.comment-content p { margin-bottom: 12px; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: 12px; }
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
}
.comment-reply-link:hover { border-color: var(--accent); color: var(--accent-dark); }

.comment-navigation { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; font-size: 13.5px; font-weight: 600; }
.comment-navigation a { color: var(--accent-dark); }

/* The form — shared by the "Leave a comment" flow (blog posts,
   comparisons) and "Leave a review" (tools, star rating fields injected
   by inc/reviews.php via comment_form_default_fields). */
.comment-respond {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
}
.comment-reply-title { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.comment-reply-title small { font-weight: 500; font-size: 13px; margin-left: 8px; }
.comment-reply-title small a { color: var(--ink-soft); }
.comment-notes, .logged-in-as { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.comment-notes .required, .comment-form-comment .required, .comment-form-author .required, .comment-form-email .required { color: var(--accent-warm-dark); }

.comment-form { display: flex; flex-wrap: wrap; gap: 16px; }
.comment-form p { margin: 0; flex: 1 1 100%; min-width: 0; }
.comment-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.comment-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s ease;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus,
.comment-form select:focus { border-color: var(--accent); }
.comment-form textarea { resize: vertical; min-height: 130px; }

.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 500; color: var(--ink-soft); }
.comment-form-cookies-consent input { width: auto; }

/* Star-rating select fields injected on 'tool' singular pages — see
   da_add_review_rating_field() in inc/reviews.php. Same field markup,
   styled to match everything else in the form rather than a bare <select>. */
.comment-form p.comment-form-rating { flex: 1 1 calc(50% - 8px); }
.comment-form-rating-sub { opacity: .9; }
.comment-form-rating label .description { font-weight: 400; color: var(--ink-faint); font-size: 12.5px; }
.comment-form-rating {
  max-width: 48.9%;
}

.form-submit input[type="submit"],
.form-submit .btn-hero {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

/* =====================================================================
   17. "Compare Tools" picker (template-compare.php)
   ===================================================================== */
.compare-picker-section { padding: 0 0 72px; position: relative; }
.compare-picker {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: -50px;
  position: relative;
  z-index: 3;
}
.compare-slot {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 22px 44px -26px rgba(21, 19, 15, .28);
  position: relative;
}
.compare-slot-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.compare-vs-divider {
  flex-shrink: 0;
  align-self: center;
  margin-top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-slot-search { position: relative; }
.compare-search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-1);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.compare-search-input:focus { border-color: var(--accent); background: #fff; }

.compare-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(21, 19, 15, .3);
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 10;
  padding: 6px;
}
.compare-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-body);
}
.compare-search-result:hover, .compare-search-result.is-active { background: var(--bg-1); }
.compare-search-head { padding: 6px 10px 8px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.compare-search-result-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--tag-tint);
  color: var(--tag-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-search-result-name { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.compare-search-result-meta { display: block; font-size: 12px; color: var(--ink-faint); }
.compare-search-empty { padding: 14px 10px; font-size: 13px; color: var(--ink-faint); text-align: center; }

.compare-selected-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
  background: var(--bg-1);
}
/* Same specificity as the UA [hidden]{display:none} rule, and author
   styles win ties over the user-agent stylesheet — so display:flex
   above silently overrode `hidden`, leaving an empty cream pill visible
   whenever no tool was selected yet. This wins the tie back. */
.compare-selected-chip[hidden] { display: none; }
.compare-chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--tag-tint);
  color: var(--tag-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-chip-body { flex: 1; min-width: 0; }
.compare-chip-name { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.compare-chip-meta { display: block; font-size: 12px; color: var(--ink-faint); }
.compare-chip-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-chip-remove:hover { background: var(--accent-warm-tint); color: var(--accent-warm-dark); }

.compare-results { margin-top: 40px; transition: opacity .15s ease; }
.compare-results.is-loading { opacity: .5; pointer-events: none; }
.compare-results-empty { text-align: center; padding: 48px 20px; color: var(--ink-faint); font-size: 15px; }

@media (max-width: 780px) {
  .compare-picker { flex-direction: column; margin-top: -36px; }
  .compare-vs-divider { align-self: center; margin: -6px 0; }
}

/* =====================================================================
   18. Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 72px; }
  .hero-copy { max-width: 100%; }
  .hero-illustration { height: 340px; max-width: 520px; width: 100%; margin: 8px auto 0; }
  .hero-title { font-size: 38px; }
}
@media (max-width: 640px) {
  .nav-brand-logo { height: 27px; }
  .hero-inner { padding: 48px 24px 76px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15.5px; }
  .hero-illustration { height: 280px; }
  .hero-sparkle, .hero-orbit { display: none; }
  .hero-float-card { padding: 9px 13px 9px 9px; gap: 9px; }
  .hero-float-card.is-spotlight { padding: 10px 15px 10px 10px; }
  .hero-float-icon, .hero-float-card.is-spotlight .hero-float-icon { width: 30px; height: 30px; }
  .hero-float-name { font-size: 13px; }
  .hero-float-card.is-spotlight .hero-float-name { font-size: 14px; }
  .hero-float-card--a { top: 4%; }
  .hero-float-card--b { top: 22%; right: 0; }
  .hero-float-card--c { top: 54%; right: 6%; }
  .hero-float-card--d { bottom: 2%; left: 0; }
  .search-bridge { margin-top: -28px; padding: 0 20px; }
  .guides-wrap { padding-top: 28px; }
  .guides-wrap--tabs { padding-top: 0; }
  .search-bridge--flow { margin-top: 0; }
  .cat-tab { font-size: 13.5px; padding: 7px 7px 7px 15px; gap: 8px; }
  .guides-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .versus-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .search-bar { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .comment-form p.comment-form-rating { flex-basis: 100%; }
}

/* =====================================================================
   Alternatives Finder page (template-alternatives.php)
   ===================================================================== */
.hero--finder .hero-inner--center { padding-bottom: 88px; }
.hero--finder .hero-copy { max-width: 720px; }
.hero--finder .hero-title { font-size: 54px; }
.hero--finder .hero-desc { margin-left: auto; margin-right: auto; max-width: 520px; }

.finder { scroll-margin-top: 90px; }
.finder-form { position: relative; }
.finder-form .search-field { position: relative; }
.finder-form.is-searching .search-field > .icon { animation: finderPulse .8s ease-in-out infinite alternate; }
@keyframes finderPulse { from { opacity: 1; } to { opacity: .35; } }

.finder-clear {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.finder-clear:hover { background: var(--ink); color: #fff; }
.finder-clear[hidden] { display: none; }

/* Dropdown */
.finder-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 26px 50px -24px rgba(21, 19, 15, .35);
}
.finder-dropdown[hidden] { display: none; }
.finder-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  cursor: pointer;
}
.finder-option.is-active { background: var(--bg-1); }
.finder-option-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tag-tint);
  color: var(--tag-dark);
}
.finder-option-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.finder-option-name { font-weight: 700; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-option-meta { font-size: 12.5px; color: var(--ink-faint); }
.finder-option-count { flex-shrink: 0; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--accent-dark); background: var(--accent-tint); padding: 4px 9px; border-radius: 999px; }
.finder-option-count.is-zero { color: var(--ink-faint); background: var(--bg-2); }
.finder-option-empty { padding: 14px 12px; font-size: 14px; color: var(--ink-faint); text-align: center; }

/* Hints */
.finder-hints { max-width: 760px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 26px; }
.finder-hints[hidden], .finder-hint-group[hidden], .finder-results[hidden], .load-more-wrap[hidden] { display: none; }
.finder-hint-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.finder-hint-clear { border: none; background: none; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-faint); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.finder-hint-clear:hover { color: var(--ink); }
.finder-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.finder-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.finder-chip svg { color: var(--ink-faint); }
.finder-chip:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(21, 19, 15, .35); }
.finder-chip--recent { padding-right: 14px; background: var(--bg-1); }
.finder-chip-count { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-align: center; }

/* Results */
.finder-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.finder-results-title { font-size: 24px; font-weight: 600; margin: 0; }
.finder-results-title span { color: var(--accent-dark); }
.finder-results-actions { display: flex; align-items: center; gap: 18px; }
.finder-new-search {
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.finder-new-search:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
  .hero--finder .hero-title { font-size: 40px; }
}
@media (max-width: 640px) {
  .hero--finder .hero-title { font-size: 32px; }
  .finder-form .search-submit-btn { width: 100%; justify-content: center; }
  .finder-results-title { font-size: 20px; }
  .finder-option-count { display: none; }
}

/* "Want your tool featured?" call-out (template-parts/content-feature-cta.php) */
.feature-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 48px 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--bg-1) 0%, #fff 100%);
}
.feature-cta-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-cta-icon svg { fill: var(--gold); stroke: none; }
.feature-cta-text { flex: 1; min-width: 0; }
.feature-cta-title { font-size: 18px; font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.feature-cta-text p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.feature-cta-btn { flex-shrink: 0; padding: 12px 20px; font-size: 14px; }
@media (max-width: 640px) {
  .feature-cta { flex-direction: column; align-items: flex-start; text-align: left; }
  .feature-cta-btn { width: 100%; justify-content: center; }
}

/* Small one-line note in a centred hero (comparisons archive: "get your tool featured"). */
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: -8px 0 20px;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.hero-note:hover { border-color: var(--ink); background: #fff; color: var(--ink-soft); }
.hero-note-icon { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--cat-amber-tint); display: flex; align-items: center; justify-content: center; }
.hero-note-icon svg { fill: var(--gold); stroke: none; }
.hero-note-cta { flex-shrink: 0; padding: 4px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.hero-note:hover .hero-note-cta { background: var(--accent); }
@media (max-width: 640px) {
  .hero-note { flex-wrap: wrap; border-radius: 16px; padding: 10px 12px; justify-content: center; text-align: center; }
  .hero-note-icon { display: none; }
}

/* Uploaded tool logos in comparison avatars (versus cards, comparison hero) */
.cmp-logo { background: #fff !important; border: 1px solid var(--border); overflow: hidden; padding: 4px; }
.cmp-logo .cmp-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cmp-hero-avatar.cmp-logo { padding: 8px; }
