/*
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-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 — Tool Category tiles, replaces the old blog
   category mega-menu with one scoped to this site's actual subject. */
.mega-menu-inner--tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 28px 32px 32px;
}
.mega-tools-all-link {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.mega-tools-all-link:hover { color: var(--accent-dark); background: color-mix(in srgb, var(--accent-tint) 70%, var(--accent) 8%); }
.mega-tool-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  transition: border-color .15s ease, background .15s ease;
}
.mega-tool-cat:hover { border-color: var(--ink); background: var(--bg-1); }
.mega-tool-cat-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;
}
.mega-tool-cat-name { display: block; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.mega-tool-cat-count { display: block; font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); }

@media (max-width: 1080px) {
  .mega-menu-inner { grid-template-columns: 1fr 1fr; }
  .mega-menu-inner--tools { grid-template-columns: 1fr 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;
  max-width: 460px;
}

.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 — small floating "tool card" chips built from the
   same visual language as .guide-card, no external image assets. */
.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: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 20px 34px -18px rgba(21, 19, 15, .28);
}
.hero-float-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;
}
.hero-float-lines { display: flex; flex-direction: column; gap: 6px; }
.hero-float-lines span { display: block; height: 6px; border-radius: 999px; background: var(--bg-2); }
.hero-float-lines span:first-child { width: 64px; }
.hero-float-lines span:last-child { width: 40px; background: var(--border-soft); }
.hero-float-rating {
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 9px;
  border-radius: 999px;
}
.hero-float-rating svg { fill: var(--gold); stroke: none; }

.hero-float-card--a { top: 6%; left: 0; animation: floatY 5.5s ease-in-out infinite; }
.hero-float-card--b { top: 40%; right: 2%; animation: floatY 6.5s ease-in-out infinite .3s; z-index: 2; }
.hero-float-card--c { bottom: 8%; left: 12%; animation: floatY 5s ease-in-out infinite .6s; }

.hero-float-badge {
  position: absolute;
  top: 2%;
  right: 18%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 14px 26px -14px rgba(21, 19, 15, .35);
  animation: floatY 6s ease-in-out infinite .2s;
}
.hero-float-badge svg { stroke: var(--accent); }

.hero-sparkle { position: absolute; animation: sparklePulse 2.6s ease-in-out infinite; }
.hero-sparkle--1 { top: 30%; left: 6%; animation-delay: .4s; }
.hero-sparkle--2 { bottom: 22%; right: 8%; 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); }
}
.hero-float-card--a { --tilt: -5deg; }
.hero-float-card--b { --tilt: 3deg; }
.hero-float-card--c { --tilt: -3deg; }

/* 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; }
.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%);
}
.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; }
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { max-width: 300px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.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: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 130px; }
.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; }

.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
   ===================================================================== */
.tool-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 32px 72px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 88px 1fr 300px;
  gap: 32px;
  align-items: start;
}
.tool-hero-media {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -18px rgba(21, 19, 15, .25);
  flex-shrink: 0;
}
.tool-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.tool-hero-body { min-width: 0; }
.tool-hero-body h1 { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 10px; }
.tool-hero-tagline { font-size: 16.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; max-width: 520px; }
.tool-meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.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;
}
.tool-meta-text { font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); }

.tool-quick-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 40px -26px rgba(21, 19, 15, .25);
}
.tool-quick-price { font-family: var(--font-display); font-size: 30px; 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: 6px 0 16px; }
.tool-quick-line svg { stroke: var(--accent); flex-shrink: 0; }
.tool-cta-btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.tool-secondary-link { display: block; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.tool-secondary-link:hover { color: var(--ink); }
.tool-verified-text { font-size: 11.5px; color: var(--ink-faint); text-align: center; 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; }

.tool-content { max-width: 820px; margin: 0 auto; padding: 40px 0px 40px; }
.tool-section-title { font-size: 22px; font-weight: 600; margin: 48px 0 18px; }

.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: 900px) {
  .tool-hero-inner { grid-template-columns: 1fr; padding-bottom: 48px; }
  .tool-quick-card { order: 3; }
  .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: 300px;
  overflow-y: auto;
  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 { background: var(--bg-1); }
.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: 260px; margin-top: 8px; }
  .hero-title { font-size: 38px; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 48px 24px 56px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15.5px; }
  .hero-illustration { height: 200px; }
  .hero-float-badge, .hero-sparkle, .hero-orbit { display: none; }
  .hero-float-card { padding: 9px 12px; gap: 8px; }
  .hero-float-icon { width: 28px; height: 28px; }
  .hero-float-lines span:first-child { width: 46px; }
  .hero-float-lines span:last-child { width: 30px; }
  .search-bridge { margin-top: -28px; padding: 0 20px; }
  .guides-wrap { padding-top: 28px; }
  .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%; }
}
