/* ============================================================
   AAS.CSS — AI Agent Square Design System (Light / Indigo)
   Canvas: White (#FFFFFF) · Accent: Electric Indigo (#3B43F5)
   Type: Space Grotesk (display) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   ------------------------------------------------------------
   Drop-in replacement for emerald.css. Keeps the SAME class names
   and CSS-variable names so existing markup re-skins with no edits.
   The --emerald* variables are retained (now mapped to indigo) so
   inline style="...var(--emerald)..." declarations recolor cleanly.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Surfaces */
  --bg-primary:     #FFFFFF;
  --bg-secondary:   #F6F7F9;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #FCFCFD;
  --bg-surface:     #F6F7F9;
  --bg-ink:         #0E1116;   /* dark panels / bands */
  --bg-ink-deep:    #0B0D11;   /* footer */
  --border:         rgba(14,17,22,0.10);
  --border-strong:  rgba(14,17,22,0.16);
  --border-emerald: rgba(59,67,245,0.30);   /* "accent border" */

  /* Accent (variable name kept as --emerald for inline-style compatibility) */
  --emerald:        #3B43F5;
  --emerald-light:  #5A60F7;
  --emerald-dark:   #2A31D8;
  --emerald-glow:   rgba(59,67,245,0.15);
  --emerald-dim:    rgba(59,67,245,0.08);
  --acc:            #3B43F5;
  --acc-deep:       #2A31D8;
  --acc-soft:       rgba(59,67,245,0.08);

  /* Text */
  --text-primary:   #0E1116;
  --text-secondary: #41464F;
  --text-muted:     #5B6473;
  --text-emerald:   #3B43F5;

  --white:          #FFFFFF;
  --yellow:         #F59E0B;
  --red:            #EF4444;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* Radii */
  --radius-sm:  5px;
  --radius-md:  7px;
  --radius-lg:  10px;
  --radius-xl:  12px;
  --radius-2xl: 18px;
  --radius-full: 9999px;

  /* Shadows (soft, for light UI) */
  --shadow-sm:   0 1px 2px rgba(14,17,22,0.06);
  --shadow-md:   0 12px 28px -18px rgba(14,17,22,0.30);
  --shadow-lg:   0 30px 60px -42px rgba(14,17,22,0.50);
  --shadow-emerald: 0 24px 50px -30px rgba(59,67,245,0.35);

  /* Transitions */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --duration:    250ms;
  --duration-lg: 400ms;

  /* Layout */
  --container:   1280px;
  --nav-height:  68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { color: var(--text-secondary); line-height: 1.7; }
strong, b { color: var(--text-primary); }

/* Eyebrow label — monospace kicker above headings */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.6em;
  height: 1px;
  background: var(--acc);
  flex-shrink: 0;
}

em.cta-emphasis { font-style: italic; color: var(--acc); }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-lg); }
}

.section { padding: clamp(64px, 9vh, 112px) 0; }
.section--sm { padding: var(--space-2xl) 0; }
.section--lg { padding: clamp(80px, 12vh, 140px) 0; }

/* Alternating light-gray band */
.section--alt { background: var(--bg-secondary); }

/* Dark band (#0E1116) — opt-in via markup for hero-adjacent sections */
.section--dark { background: var(--bg-ink); color: rgba(255,255,255,0.7); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.66); }
.section--dark .eyebrow { color: var(--acc-light, #8a8fff); }
.section--dark .differentiator { border-bottom-color: rgba(255,255,255,0.10); }
.section--dark .differentiator__title { color: #fff; }
.section--dark .differentiator__text { color: rgba(255,255,255,0.6); }
.section--dark .differentiator__number { color: #8a8fff; }

.grid { display: grid; gap: var(--space-xl); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }
.flex--gap-lg { gap: var(--space-lg); }
.text-center { text-align: center; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 0 var(--border), var(--shadow-md);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__brand-icon {
  width: 30px; height: 30px;
  background: var(--acc);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1vw, 0.9rem);
  flex: 1;
  justify-content: center;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.nav__link:hover { color: var(--acc); background: var(--acc-soft); }
.nav__link.active { color: var(--acc); }

.nav__actions { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: var(--space-sm); cursor: pointer; }
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--ghost { display: none; }

  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    gap: 2px; z-index: 9999;
    box-shadow: 0 20px 40px -24px rgba(14,17,22,0.4);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav__links.open li { width: 100%; }
  .nav__links.open .nav__link {
    display: block; width: 100%;
    padding: 0.9rem 0.25rem; font-size: 1rem; font-weight: 500;
    color: var(--text-primary); border-radius: var(--radius-md);
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open .nav__link:hover,
  .nav__links.open .nav__link:focus { background: var(--acc-soft); color: var(--acc); }
  .nav__links.open li:last-child .nav__link { border-bottom: none; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: 0.875rem; font-weight: 600; line-height: 1;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  cursor: pointer; white-space: nowrap; text-decoration: none;
}

.btn--emerald { background: var(--acc); color: #fff; border: 1px solid var(--acc); }
.btn--emerald:hover { background: var(--acc-deep); border-color: var(--acc-deep); transform: translateY(-1px); box-shadow: var(--shadow-emerald); }

.btn--ghost { background: #fff; color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }

.btn--outline { background: transparent; color: var(--acc); border: 1px solid var(--border-emerald); }
.btn--outline:hover { background: var(--acc); color: #fff; border-color: var(--acc); }

.btn--lg { font-size: 1rem; padding: 0.95rem 1.85rem; border-radius: var(--radius-lg); }
.btn--sm { font-size: 0.8rem; padding: 0.5rem 0.95rem; }

/* Dark-band button variants */
.section--dark .btn--ghost,
.newsletter-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.section--dark .btn--ghost:hover,
.newsletter-band .btn--ghost:hover { border-color: var(--acc); color: #fff; background: rgba(255,255,255,0.04); }

/* ── Hero (light, dot-grid) ───────────────────────────────── */
.hero {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  background-image: radial-gradient(rgba(14,17,22,0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: calc(var(--nav-height) + clamp(48px, 8vh, 92px)) 0 clamp(56px, 8vh, 88px);
}

/* Kill the old dark full-bleed photo + dark gradients */
.hero__bg { display: none !important; }
.hero__gradient { display: none !important; }
.hero__grid { display: none !important; }

.hero__content {
  position: relative; z-index: 2;
  max-width: 940px; margin: 0 auto;
  text-align: center;
}

.hero__content > p { margin-left: auto; margin-right: auto; }

/* Hero eyebrow becomes a soft pill */
.hero .eyebrow {
  justify-content: center;
  background: var(--acc-soft);
  border: 1px solid var(--border-emerald);
  color: var(--acc-deep);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.hero .eyebrow::before { display: none; }

.hero h1 { max-width: 18ch; margin: 0 auto; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; }

.hero__search {
  display: flex; align-items: center;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 0.6rem 0.6rem 0.6rem 1.25rem;
  gap: var(--space-sm);
  max-width: 600px;
  margin: 2.25rem auto 0;
  box-shadow: 0 30px 70px -45px rgba(14,17,22,0.4);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.hero__search:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.hero__search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 1rem; padding: 0.4rem 0;
}
.hero__search input::placeholder { color: var(--text-muted); }

.hero__trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem 1.4rem;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ── Trust Pills ──────────────────────────────────────────── */
.trust-pill {
  display: inline-flex; align-items: center; gap: 0.45em;
  background: transparent; border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted); white-space: nowrap;
}
.trust-pill .check { color: var(--acc); font-size: 0.75rem; }
/* In dark bands the trust pills sit on dark */
.newsletter-band .trust-pill,
.section--dark .trust-pill { color: rgba(255,255,255,0.6); }

/* ── Stats Grid ───────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.stat { background: #fff; padding: 2rem var(--space-lg); text-align: center; transition: background var(--duration) var(--ease); }
.stat:hover { background: var(--bg-secondary); }
.stat__number { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1; }
.stat__number span { color: var(--acc); }
.stat__label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.6rem; font-weight: 400; }

/* ── Category Cards (image + overlay) ─────────────────────── */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: transform var(--duration-lg) var(--ease), box-shadow var(--duration-lg) var(--ease), border-color var(--duration-lg) var(--ease);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--acc); }
.category-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform var(--duration-lg) var(--ease); }
.category-card:hover .category-card__img { transform: scale(1.04); }
.category-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,17,22,0.78) 0%, rgba(14,17,22,0.30) 55%, transparent 100%); }
.category-card__body { position: absolute; bottom: 0; left: 0; right: 0; padding: var(--space-lg); }
.category-card__tag { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(14,17,22,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 4px 9px; border-radius: var(--radius-sm); display: inline-block; margin-bottom: 0.6rem; }
.category-card__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.category-card__count { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(255,255,255,0.85); }
.category-card__arrow { position: absolute; top: var(--space-md); right: var(--space-md); width: 32px; height: 32px; background: var(--acc); border: none; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; opacity: 0; transform: scale(0.8); transition: all var(--duration) var(--ease); }
.category-card:hover .category-card__arrow { opacity: 1; transform: scale(1); }

/* ── Agent Review Card ────────────────────────────────────── */
.agent-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.agent-card:hover { transform: translateY(-4px); border-color: var(--acc); box-shadow: var(--shadow-lg); }
.agent-card__cover { position: relative; height: 168px; overflow: hidden; }
.agent-card__cover img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.agent-card__cover-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14,17,22,0.10) 0%, transparent 40%); }
.agent-card__badge { position: absolute; top: var(--space-md); left: var(--space-md); right: auto; background: var(--acc); color: #fff; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: var(--radius-sm); }
.agent-card__badge--sponsored { background: var(--yellow); color: #1a1100; }
.agent-card__body { padding: var(--space-lg); }
.agent-card__logo-wrap { width: 52px; height: 52px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: calc(var(--space-lg) * -1); position: relative; z-index: 1; margin-bottom: var(--space-md); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.agent-card__logo-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.agent-card__category { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.agent-card__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.agent-card__desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: var(--space-md); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.agent-card__meta { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-md); border-top: 1px solid var(--border); }
.agent-card__rating { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.agent-card__stars { display: flex; gap: 1px; color: var(--yellow); font-size: 0.8rem; }
.agent-card__reviews { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; font-family: var(--font-sans); }
.agent-card__price { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400; color: var(--text-primary); }
.agent-card__price em { color: var(--acc); font-style: normal; }
.agent-card__actions { padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--border); display: flex; gap: var(--space-sm); }

/* ── Comparison Preview Card ──────────────────────────────── */
.compare-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease); }
.compare-card:hover { border-color: var(--acc); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.compare-card__vs { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.compare-card__agent { flex: 1; text-align: center; }
.compare-card__agent-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-top: 0.5rem; }
.compare-card__divider { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; color: #fff; background: var(--bg-ink); border: none; border-radius: var(--radius-sm); padding: 0.3rem 0.55rem; letter-spacing: 0.1em; flex-shrink: 0; }
.compare-card__bar { height: 6px; background: var(--bg-secondary); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 0.4rem; }
.compare-card__fill { height: 100%; border-radius: var(--radius-full); background: var(--acc); transition: width 0.6s var(--ease); }
.compare-card__fill--secondary { background: var(--text-muted); }

/* ── Numbered Differentiators ─────────────────────────────── */
.differentiator { display: flex; gap: var(--space-xl); align-items: flex-start; padding: var(--space-xl) 0; border-bottom: 1px solid var(--border); }
.differentiator:last-child { border-bottom: none; }
.differentiator__number { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--acc); letter-spacing: 0.06em; min-width: 2.5rem; padding-top: 0.2rem; }
.differentiator__content { flex: 1; }
.differentiator__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem; }
.differentiator__text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Testimonials (kept for legacy markup; not used per policy) ── */
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); position: relative; }
.testimonial-card__quote { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-lg); }
.testimonial-card__author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-card__avatar { width: 44px; height: 44px; border-radius: var(--radius-full); overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); }
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card__name { font-weight: 700; color: var(--text-primary); font-size: 0.9rem; }
.testimonial-card__role { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ── Blog Cards ───────────────────────────────────────────── */
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.blog-card:hover { transform: translateY(-4px); border-color: var(--acc); box-shadow: var(--shadow-lg); }
.blog-card__cover { position: relative; height: 186px; overflow: hidden; }
.blog-card__cover img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform var(--duration-lg) var(--ease); }
.blog-card:hover .blog-card__cover img { transform: scale(1.03); }
.blog-card__meta-over { position: absolute; bottom: var(--space-sm); left: var(--space-md); right: var(--space-md); display: flex; align-items: center; justify-content: space-between; }
.blog-card__cat { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--acc); border: none; padding: 0.25rem 0.55rem; border-radius: var(--radius-sm); }
.blog-card__read-time { font-family: var(--font-mono); font-size: 0.68rem; color: #fff; background: rgba(14,17,22,0.7); padding: 0.25rem 0.55rem; border-radius: var(--radius-sm); }
.blog-card__body { padding: var(--space-lg); }
.blog-card__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text-primary); line-height: 1.25; margin-bottom: 0.5rem; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__excerpt { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: var(--space-md); }
.blog-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-md); border-top: 1px solid var(--border); }
.blog-card__date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.blog-card__link { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--acc); display: flex; align-items: center; gap: 0.3em; transition: gap var(--duration) var(--ease); }
.blog-card:hover .blog-card__link { gap: 0.55em; }

/* ── Section Headers ──────────────────────────────────────── */
.section-header { margin-bottom: var(--space-3xl); }
.section-header--center { text-align: center; max-width: 660px; margin-left: auto; margin-right: auto; }
.section-header p { font-size: 1.05rem; margin-top: var(--space-md); color: var(--text-secondary); }

/* ── Form Elements ────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em; }
.form-input, .form-select, .form-textarea {
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem; color: var(--text-primary); font-size: 0.9375rem; font-family: var(--font-sans);
  outline: none; transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A9099' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.5rem; cursor: pointer; }
.form-select option { background: #fff; color: var(--text-primary); }

/* ── Newsletter Banner (dark) ─────────────────────────────── */
.newsletter-band {
  background: var(--bg-ink);
  border: 1px solid var(--bg-ink);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
  color: rgba(255,255,255,0.7);
}
.newsletter-band h2, .newsletter-band h3 { color: #fff; }
.newsletter-band p { color: rgba(255,255,255,0.66); }
.newsletter-band .eyebrow { color: #8a8fff; }
.newsletter-band__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-3xl); }
@media (max-width: 768px) { .newsletter-band__inner { grid-template-columns: 1fr; gap: var(--space-xl); } }
.newsletter-form { display: flex; gap: var(--space-sm); max-width: 440px; }
.newsletter-form input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-md); padding: 0.8rem 1.1rem; color: #fff; font-size: 0.9375rem; outline: none; transition: border-color var(--duration) var(--ease); }
.newsletter-form input:focus { border-color: var(--acc); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }

/* ── Score / Rating Badge ─────────────────────────────────── */
.score-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--acc); border-radius: var(--radius-lg); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.score-badge__label { font-family: var(--font-mono); font-size: 0.52rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }

/* ── Footer (dark) ────────────────────────────────────────── */
.footer { background: var(--bg-ink-deep); color: rgba(255,255,255,0.7); border-top: none; padding: clamp(3.5rem, 8vh, 6rem) 0 2.25rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } .footer__brand-col { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } .footer__brand-col { grid-column: 1 / -1; } }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; margin-bottom: var(--space-md); }
.footer__brand .nav__brand-icon { background: var(--acc); color: #fff; }
.footer__tagline { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: var(--space-lg); max-width: 320px; }
.footer__trust { display: flex; flex-direction: column; gap: 0.55rem; font-family: var(--font-mono); }
.footer__trust-item { display: flex; align-items: center; gap: 0.5em; font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.footer__trust-item .check { color: var(--acc); font-size: 0.7rem; }
.footer__col-title { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: var(--space-lg); }
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__link { font-size: 0.9rem; color: rgba(255,255,255,0.72); transition: color var(--duration) var(--ease); }
.footer__link:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-lg); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); font-family: var(--font-mono); }
.footer__copy { font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.footer__legal { display: flex; gap: var(--space-lg); }
.footer__legal a { font-size: 0.72rem; color: rgba(255,255,255,0.45); transition: color var(--duration) var(--ease); }
.footer__legal a:hover { color: #fff; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color var(--duration) var(--ease); }
.breadcrumb a:hover { color: var(--acc); }
.breadcrumb__sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumb span { color: var(--text-secondary); }

/* ── Divider ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: var(--space-2xl) 0; }
.divider--emerald { background: linear-gradient(to right, transparent, var(--acc), transparent); opacity: 0.3; }

/* ── Reveal on Scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }
.reveal--delay-5 { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ── Article / long-form content (reviews, blog, guides) ──── */
.article-body, .prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text-secondary); }
.article-body h2, .prose h2 { margin: 2.5rem 0 1rem; }
.article-body h3, .prose h3 { margin: 2rem 0 0.75rem; }
.article-body p, .prose p { margin-bottom: 1.15rem; }
.article-body a, .prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover, .prose a:hover { color: var(--acc-deep); }
.article-body ul, .article-body ol, .prose ul, .prose ol { margin: 0 0 1.15rem 1.25rem; }
.article-body li, .prose li { margin-bottom: 0.5rem; }
.article-body table, .prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.article-body th, .article-body td, .prose th, .prose td { border: 1px solid var(--border); padding: 0.7rem 0.9rem; text-align: left; }
.article-body th, .prose th { background: var(--bg-secondary); font-family: var(--font-display); color: var(--text-primary); font-weight: 600; }
.article-body blockquote, .prose blockquote { border-left: 3px solid var(--acc); background: var(--acc-soft); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--text-secondary); }

/* ── Utility Classes ──────────────────────────────────────── */
.text-emerald { color: var(--acc); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #cdd1d8; border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Selection ────────────────────────────────────────────── */
::selection { background: var(--acc); color: #fff; }

/* ── Last-reviewed byline ─────────────────────────────────── */
.review-byline { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; margin: 0.75rem 0 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px dashed var(--border); }
.review-byline a { color: var(--acc); text-decoration: none; }
.review-byline a:hover { text-decoration: underline; }
.review-byline .sep { opacity: 0.4; }

/* ── Sponsored badge ──────────────────────────────────────── */
.badge-sponsored { display: inline-block; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #B45309; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.35); border-radius: 4px; padding: 0.2rem 0.5rem; vertical-align: middle; }

/* ============================================================
   UNIVERSAL HERO / HEADER LIGHT OVERRIDE
   Forces every page's dark image hero + sticky header to the light
   dot-grid treatment, regardless of its bespoke class name
   (.hero, .agent-hero, .cat-hero, .compare-hero, .agents-hero,
    .blog-index-hero, .category-hero, etc.). !important beats the
    page-specific <style> blocks even though they load later.
   ============================================================ */
/* Hide every dark full-bleed hero background / overlay layer, in both
   naming conventions (hero__bg / hero-bg / hero-image / *overlay).
   NOTE: 120px logo thumbnails like .hero-agent-card__image contain no
   "hero-image" substring, so they are NOT hidden. */
[class*="hero__bg"], [class*="hero-bg"],
[class*="hero__overlay"], [class*="hero-overlay"],
[class*="hero-image"] { display: none !important; }

/* Force every hero CONTAINER (any *-hero, .hero, .hero-section) to light. */
.hero,
[class*="-hero"]:not([class*="__"]),
[class*="hero-section"], [class*="hero-banner"] {
  background: #fff !important;
  background-image: radial-gradient(rgba(14,17,22,0.045) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  border-bottom: 1px solid var(--border) !important;
}

[class*="-hero"]:not([class*="__"]),
[class*="hero-section"], [class*="hero-banner"] {
  min-height: 0 !important;
  padding-top: var(--nav-height) !important;
}

.site-header, nav.site-header {
  background: rgba(255,255,255,0.92) !important;
  -webkit-backdrop-filter: saturate(1.2) blur(14px) !important;
  backdrop-filter: saturate(1.2) blur(14px) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Hero text stays readable on white (ink titles, dark-gray subtitles) */
.hero h1, [class*="hero__h1"], [class*="hero-h1"],
[class*="hero__title"], [class*="hero-title"] { color: var(--text-primary) !important; }
[class*="hero__verdict"], [class*="hero-verdict"],
[class*="hero__subtitle"], [class*="hero-subtitle"],
[class*="hero__desc"], [class*="hero-desc"],
[class*="hero__content"] p, [class*="hero-content"] p { color: var(--text-secondary) !important; }

/* ── Tame oversized comparison/section headings + prices ──────────────
   These template classes render too large in the new type system. */
.section__heading { font-size: clamp(1.4rem, 2.4vw, 1.85rem) !important; line-height: 1.15 !important; }
.compare-hero__h1, [class*="-hero__h1"] { font-size: clamp(1.7rem, 3.2vw, 2.4rem) !important; }
.pricing-tier__price, .pricing-column__price { font-size: 1.5rem !important; }
