/* ============================================================
   BeforeYouBuyX.com - Main Stylesheet
   Design: dark navy header, clean editorial, buyer-research platform
   ============================================================ */

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

:root {
  --charcoal:       #111827;
  --navy:           #0F172A;
  --slate:          #334155;
  --slate-mid:      #475569;
  --slate-light:    #94A3B8;
  --teal:           #14B8A6;
  --teal-dark:      #0D9488;
  --blue:           #38BDF8;
  --blue-dark:      #0EA5E9;
  --bg-light:       #F8FAFC;
  --bg-mid:         #F1F5F9;
  --white:          #FFFFFF;
  --text:           #1E293B;
  --text-muted:     #64748B;
  --border:         #E2E8F0;
  --border-dark:    #CBD5E1;
  --risk-green:     #16A34A;
  --risk-blue:      #2563EB;
  --risk-amber:     #D97706;
  --risk-red:       #DC2626;
  --header-height:  64px;
  --font-heading:   'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius:         8px;
  --radius-lg:      12px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:         0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:      0 10px 30px rgba(0,0,0,.14);
  --transition:     160ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  padding-top: var(--header-height);
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Typography -------------------------------------------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--charcoal);
}

/* --- Header ------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
}
.site-logo__before { font-family: var(--font-heading); font-weight: 200; font-size: 1.1rem; letter-spacing: -0.03em; color: var(--white); }
.site-logo__x { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--teal); }
.site-logo__tld { font-family: var(--font-heading); font-weight: 200; font-size: 1.1rem; color: var(--slate-light); }

/* Nav */
.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.site-nav__item { position: relative; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .4rem .7rem;
  font-size: .875rem;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--white); }
.nav-chevron { font-size: .55rem; opacity: .7; line-height: 1; display: inline-block; transform: translateY(-1px); }

/* Dropdown -- gap fix: top:100% + ::before bridge */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}

.nav-dropdown::before {
  content: '';
  display: block;
  height: 8px;
  margin-top: -8px;
}

.site-nav__item--has-dropdown:hover .nav-dropdown,
.site-nav__item--has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: .5rem 1rem;
  font-size: .875rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown li a:hover { background: var(--bg-light); color: var(--teal-dark); }

/* Header CTA */
.site-header__cta {
  display: inline-block;
  padding: .45rem 1.1rem;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition);
  flex-shrink: 0;
}
.site-header__cta:hover { background: var(--teal-dark); color: var(--white); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem .4rem .25rem;
  margin-left: auto;
  order: 99;
}
.nav-hamburger span:not(.nav-hamburger__label) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger__label {
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.7);
  display: block;
  line-height: 1;
  margin-top: 2px;
}
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A5F 100%);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2338BDF8' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* Search bar */
.hero-search {
  display: flex;
  background: var(--white);
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: box-shadow var(--transition);
}
.hero-search.is-focused { box-shadow: 0 4px 24px rgba(20,184,166,.35); }

.hero-search__input {
  flex: 1;
  padding: .875rem 1.25rem;
  border: none;
  outline: none;
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
  min-width: 0;
}
.hero-search__input::placeholder { color: var(--text-muted); }

.hero-search__btn {
  padding: .875rem 1.5rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
  font-family: var(--font-body);
}
.hero-search__btn:hover { background: var(--teal-dark); }

/* Popular searches */
.hero-popular {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.hero-popular__label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.hero-popular__tag {
  padding: .25rem .75rem;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border-radius: 50px;
  font-size: .8rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
  transition: background var(--transition), border-color var(--transition);
}
.hero-popular__tag:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: var(--white); }
.hero-popular__tag--all { color: var(--teal); border-color: rgba(20,184,166,.4); background: rgba(20,184,166,.1); }
.hero-popular__tag--all:hover { background: rgba(20,184,166,.2); color: var(--teal); }

/* Hero visual */
.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__visual-bg {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 320px;
}

.hero__visual-card {
  position: absolute;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  min-width: 180px;
}
.hero__visual-card--1 { top: 0; left: 0; }
.hero__visual-card--2 { top: 50%; right: 0; transform: translateY(-50%); }
.hero__visual-card--3 { bottom: 0; left: 30px; }

.visual-card-icon { font-size: 1.5rem; margin-bottom: .4rem; }
.visual-card-label { font-size: .85rem; font-weight: 600; color: var(--white); }
.visual-card-sub { font-size: .75rem; color: rgba(255,255,255,.6); }

/* ----------------------------------------------------------------
   SECTIONS (shared)
   ---------------------------------------------------------------- */
.section { padding: 4rem 1.5rem; }
.section--alt { background: var(--bg-light); }

.section__inner { max-width: 1280px; margin: 0 auto; }

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  margin-bottom: 2rem;
}

.section__header .section__title { margin-bottom: 0; }

.section__view-all {
  font-size: .875rem;
  font-weight: 500;
  color: var(--teal-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.section__view-all:hover { color: var(--teal); }

.section__footer { text-align: center; margin-top: 2rem; }

.link-explore {
  font-size: .9rem;
  font-weight: 500;
  color: var(--teal-dark);
}
.link-explore:hover { color: var(--teal); }

/* ----------------------------------------------------------------
   CATEGORY GRID
   ---------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.25rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
}
.category-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--teal-dark);
}
.category-card__icon { color: var(--teal-dark); }
.category-card__label { font-size: .8rem; font-weight: 500; line-height: 1.3; }

/* ----------------------------------------------------------------
   GUIDE CARDS
   ---------------------------------------------------------------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.guide-grid--wide { grid-template-columns: 1fr; }
@media (min-width: 640px) { .guide-grid--wide { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guide-grid--wide { grid-template-columns: repeat(3, 1fr); } }

.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.guide-card__img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.guide-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1E293B, #334155);
}
.guide-card__img-placeholder--ai-software { background: linear-gradient(135deg, #1E3A5F, #0F172A); }
.guide-card__img-placeholder--websites-digital { background: linear-gradient(135deg, #1E4038, #0F2A1E); }
.guide-card__img-placeholder--home-services { background: linear-gradient(135deg, #3A1E1E, #2A0F0F); }
.guide-card__img-placeholder--vehicles { background: linear-gradient(135deg, #2A1E3A, #1A0F2A); }
.guide-card__img-placeholder--high-ticket-consumer { background: linear-gradient(135deg, #3A2A1E, #2A1A0F); }

.guide-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.guide-card__body--list { padding: 1.5rem; }

.guide-card__meta-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.guide-card__cat a, .guide-card__cat {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.guide-card__risk {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .1rem .5rem;
  border-radius: 50px;
}
.risk-low, .guide-card__risk.risk-low { background: #DCFCE7; color: var(--risk-green); }
.risk-lowmedium, .guide-card__risk.risk-lowmedium { background: #DBEAFE; color: var(--risk-blue); }
.risk-medium, .guide-card__risk.risk-medium { background: #FEF3C7; color: var(--risk-amber); }
.risk-high, .guide-card__risk.risk-high { background: #FEE2E2; color: var(--risk-red); }

.guide-card__title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: .6rem;
  flex: 1;
}
.guide-card__title a { color: var(--text); text-decoration: none; }
.guide-card__title a:hover { color: var(--teal-dark); }

.guide-card__excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card__footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text-muted);
}

.guide-card__cta {
  margin-left: auto;
  font-size: .8rem;
  font-weight: 500;
  color: var(--teal-dark);
}
.guide-card__cta:hover { color: var(--teal); }

/* ----------------------------------------------------------------
   TRUST SECTION
   ---------------------------------------------------------------- */
.section--trust { background: var(--charcoal); }
.section--trust .section__title { color: var(--white); text-align: center; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.trust-card {
  padding: 1.75rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  text-align: center;
}

.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(20,184,166,.12);
  border-radius: 50%;
  color: var(--teal);
  margin: 0 auto 1rem;
}

.trust-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: .5rem;
}

.trust-card__body {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   EMAIL CAPTURE
   ---------------------------------------------------------------- */
.section--email-capture { background: var(--teal-dark); padding: 3rem 1.5rem; }

.email-capture {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.email-capture__title {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: .5rem;
}

.email-capture__sub {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.email-capture__form {
  display: flex;
  gap: .5rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.email-capture__input {
  flex: 1;
  padding: .75rem 1rem;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: .9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.email-capture__input::placeholder { color: rgba(255,255,255,.6); }
.email-capture__input:focus { border-color: rgba(255,255,255,.7); }

.email-capture__btn {
  padding: .75rem 1.25rem;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: background var(--transition);
}
.email-capture__btn:hover { background: #000; }

.email-capture__note {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.site-footer { background: var(--charcoal); padding: 3.5rem 1.5rem 1.5rem; }

.site-footer__inner { max-width: 1280px; margin: 0 auto; }

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.site-footer__brand .site-logo__before { font-size: 1.2rem; }
.site-footer__brand .site-logo__x { font-size: 1.2rem; }
.site-footer__brand .site-logo__tld { font-size: 1.2rem; }

.site-footer__tagline {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: .5rem;
  margin-bottom: .75rem;
}

.site-footer__desc {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  max-width: 260px;
}

.site-footer__col-heading {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.site-footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color var(--transition);
}
.site-footer__links a:hover { color: var(--teal); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.site-footer__bottom a { color: rgba(255,255,255,.5); }
.site-footer__bottom a:hover { color: var(--teal); }

/* ----------------------------------------------------------------
   PAGE WRAPPER (inner pages)
   ---------------------------------------------------------------- */
.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 1.5rem; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; font-size: .8rem; }
.breadcrumbs__item { display: flex; align-items: center; color: var(--text-muted); }
.breadcrumbs__item::before { content: '/'; margin-right: .35rem; }
.breadcrumbs__item:first-child::before { display: none; }
.breadcrumbs__item a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs__item a:hover { color: var(--teal-dark); }
.breadcrumbs__item.is-current { color: var(--text); }

/* ----------------------------------------------------------------
   GUIDE ARTICLE
   ---------------------------------------------------------------- */
.guide-article, .comparison-article, .page-article, .faq-article, .term-article, .listing-article {
  max-width: 760px;
}

.guide-article__header, .comparison-article__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.guide-article__cat a {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: .5rem;
  display: block;
}

.guide-article__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  margin: .5rem 0 1rem;
}

.guide-article__excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.guide-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.guide-article__risk { padding: .15rem .6rem; border-radius: 50px; }

.guide-article__disclosure {
  font-size: .8rem;
  color: var(--text-muted);
}

/* Verdict box */
.guide-verdict {
  background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
  border: 1px solid #BBF7D0;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.guide-verdict__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: .4rem;
}
.guide-verdict__text { font-size: .95rem; color: var(--text); line-height: 1.65; }

.guide-article__body { margin-bottom: 2.5rem; }

.guide-section { margin-bottom: 2rem; }
.guide-section__heading {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 1rem;
  padding-top: .5rem;
}
.guide-section__body { font-size: .95rem; line-height: 1.75; }

/* Prose styles */
.prose h2 { font-size: 1.4rem; font-weight: 400; margin: 1.75rem 0 .75rem; }
.prose h3 { font-size: 1.15rem; font-weight: 500; margin: 1.5rem 0 .6rem; }
.prose h4 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .5rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { font-weight: 600; }
.prose code { background: var(--bg-mid); padding: .1rem .35rem; border-radius: 3px; font-size: .875em; }
.prose a { color: var(--teal-dark); }
.prose a:hover { color: var(--teal); }
.prose .checklist { list-style: none; padding: 0; }
.prose .checklist .checklist__item { padding-left: 1.5rem; position: relative; }
.prose .checklist .checklist__item::before { content: ''; position: absolute; left: 0; top: .4rem; width: 14px; height: 14px; border: 2px solid var(--border-dark); border-radius: 3px; }

/* FAQ in guide */
.guide-faq { border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }
.guide-faq__title { font-size: 1.35rem; font-weight: 400; margin-bottom: 1.25rem; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-list__item { padding: 1rem 1.25rem; background: var(--bg-light); border-radius: var(--radius); }
.faq-list__q { font-size: .95rem; font-weight: 600; margin-bottom: .4rem; }
.faq-list__a { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ----------------------------------------------------------------
   COMPARISON TABLE
   ---------------------------------------------------------------- */
.comparison-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.comparison-table th, .comparison-table td {
  padding: .875rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.comparison-table thead { background: var(--charcoal); color: var(--white); }
.comparison-table thead th { font-weight: 500; border-color: transparent; }
.comparison-table tbody tr:nth-child(even) { background: var(--bg-light); }
.comparison-table__name { font-weight: 600; color: var(--text); }

/* ----------------------------------------------------------------
   RELATED CONTENT
   ---------------------------------------------------------------- */
.related-content { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-content__title { font-size: 1.15rem; font-weight: 400; margin-bottom: 1rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.related-card {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.related-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.related-card__title { font-size: .9rem; font-weight: 500; color: var(--text); margin-bottom: .3rem; line-height: 1.4; }
.related-card__meta { font-size: .75rem; color: var(--text-muted); }

/* ----------------------------------------------------------------
   CONTENT INDEX (guides, comparisons, library, etc.)
   ---------------------------------------------------------------- */
.content-index { padding: 1.5rem 0; }
.content-index__header { margin-bottom: 2rem; }
.content-index__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 300; margin-bottom: .75rem; }
.content-index__desc { font-size: 1rem; color: var(--text-muted); max-width: 640px; line-height: 1.7; }

.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-tag {
  padding: .35rem .85rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.filter-tag:hover, .filter-tag--active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.content-section-heading { font-size: 1.35rem; font-weight: 400; margin-bottom: 1.25rem; }

.empty-state { font-size: .95rem; color: var(--text-muted); padding: 2rem 0; }

/* ----------------------------------------------------------------
   LIBRARY
   ---------------------------------------------------------------- */
.library-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.library-stat { font-size: .875rem; color: var(--text-muted); }
.library-stat__num { font-size: 1.5rem; font-weight: 300; color: var(--charcoal); display: block; }

.library-section { margin-bottom: 2.5rem; }
.library-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
}
.library-section__title { font-size: 1.1rem; font-weight: 500; }

.library-list { list-style: none; }
.library-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.library-list__item a { color: var(--text); }
.library-list__item a:hover { color: var(--teal-dark); }
.library-list__meta { font-size: .75rem; color: var(--text-muted); flex-shrink: 0; }

.library-list--inline { display: flex; flex-wrap: wrap; gap: .5rem; }
.library-list--inline li { border: none; padding: 0; }
.library-list--inline a {
  display: inline-block;
  padding: .2rem .6rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .8rem;
  color: var(--text-muted);
}
.library-list--inline a:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--white); }

/* ----------------------------------------------------------------
   GLOSSARY
   ---------------------------------------------------------------- */
.glossary-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 2rem;
}
.glossary-alpha__link {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.glossary-alpha__link:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

.glossary-group { margin-bottom: 2rem; }
.glossary-group__letter {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: .35rem 0;
  margin-bottom: .5rem;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
  min-width: 1.5rem;
}
.glossary-group__list { list-style: none; }
.glossary-group__item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.glossary-group__term { font-size: .9rem; font-weight: 500; color: var(--text); }
.glossary-group__term:hover { color: var(--teal-dark); }
.glossary-group__def { font-size: .85rem; color: var(--text-muted); }

/* Term article */
.term-article__header { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.term-article__term { font-size: 2rem; font-weight: 300; margin-bottom: .5rem; }
.term-article__short-def { font-size: 1.1rem; color: var(--text-muted); margin-bottom: .5rem; }
.term-article__aka { font-size: .875rem; color: var(--text-muted); }
.term-article__body { margin-bottom: 2rem; }
.term-article__updated { color: var(--text-muted); margin-top: 1.5rem; }
.term-article__back, .faq-article__back { margin-top: 2rem; }
.back-link { font-size: .875rem; color: var(--text-muted); }
.back-link:hover { color: var(--teal-dark); }

.term-related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.term-related__title { font-size: 1rem; font-weight: 500; margin-bottom: .75rem; }
.term-related__list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.term-related__list a {
  padding: .25rem .7rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .8rem;
  color: var(--text-muted);
  text-capitalize: capitalize;
}
.term-related__list a:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ----------------------------------------------------------------
   DIRECTORY
   ---------------------------------------------------------------- */
.directory-root-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.directory-cat-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
}
.directory-cat-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.directory-cat-card__title { font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: .5rem; }
.directory-cat-card:hover .directory-cat-card__title { color: var(--teal-dark); }
.directory-cat-card__desc { font-size: .875rem; color: var(--text-muted); line-height: 1.55; }

.directory-listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }

.directory-card {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.directory-card__title { font-size: 1rem; font-weight: 500; }
.directory-card__title a { color: var(--text); }
.directory-card__title a:hover { color: var(--teal-dark); }
.directory-card__excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.55; }
.directory-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.directory-card__price { font-size: .8rem; font-weight: 600; color: var(--text); }
.directory-card__trial {
  font-size: .7rem;
  font-weight: 600;
  background: #DCFCE7;
  color: var(--risk-green);
  padding: .1rem .5rem;
  border-radius: 50px;
}
.directory-card__actions { display: flex; gap: .5rem; margin-top: auto; }

/* Listing article */
.listing-article__header { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.listing-article__title { font-size: 1.75rem; font-weight: 300; margin: .5rem 0 .75rem; }
.listing-article__excerpt { font-size: 1rem; color: var(--text-muted); }

.listing-details__table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9rem; }
.listing-details__table th, .listing-details__table td { padding: .6rem .875rem; border: 1px solid var(--border); text-align: left; }
.listing-details__table th { background: var(--bg-light); width: 160px; font-weight: 500; }
.listing-details__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ----------------------------------------------------------------
   FAQ PAGE
   ---------------------------------------------------------------- */
.faq-accordion { display: flex; flex-direction: column; gap: .75rem; }
.faq-accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-accordion__q {
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  font-size: .95rem;
  font-weight: 500;
}
.faq-accordion__q a { color: var(--text); }
.faq-accordion__q a:hover { color: var(--teal-dark); }
.faq-accordion__a {
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* FAQ article */
.faq-article__header { margin-bottom: 1.5rem; }
.faq-article__eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: block;
  margin-bottom: .5rem;
}
.faq-article__question { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 300; }
.faq-article__answer { font-size: .95rem; line-height: 1.75; }

.related-faq-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.related-faq-list a { font-size: .9rem; color: var(--text); }
.related-faq-list a:hover { color: var(--teal-dark); }

/* ----------------------------------------------------------------
   ERROR PAGE
   ---------------------------------------------------------------- */
.error-page {
  padding: 4rem 0;
  max-width: 600px;
}
.error-page__code {
  font-size: 5rem;
  font-weight: 200;
  color: var(--border-dark);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page__title { font-size: 1.75rem; font-weight: 300; margin-bottom: .75rem; }
.error-page__desc { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.65; }
.error-page__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.error-page__sugg-title { font-size: 1rem; font-weight: 500; margin-bottom: 1rem; }

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .65rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  font-family: var(--font-body);
  line-height: 1;
}
.btn--primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn--outline:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn--sm { padding: .4rem .875rem; font-size: .8rem; }

/* ----------------------------------------------------------------
   MOBILE RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__visual { display: none; }
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 99;
  }
  .site-nav.is-open { display: flex; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { border-bottom: 1px solid rgba(255,255,255,.07); }
  .site-nav__link { padding: .875rem 0; font-size: 1rem; }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,.04);
    padding: 0 0 .5rem 1rem;
    display: none;
  }
  .site-nav__item--has-dropdown:hover .nav-dropdown,
  .site-nav__item--has-dropdown:focus-within .nav-dropdown {
    display: block;
  }
  .nav-dropdown li a { color: rgba(255,255,255,.7); padding: .45rem 0; }
  .nav-dropdown li a:hover { background: transparent; color: var(--teal); }

  .site-header__cta { display: none; }

  .site-footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer__brand .site-logo__before,
  .site-footer__brand .site-logo__x,
  .site-footer__brand .site-logo__tld { font-size: 2.2rem; }
  .site-footer__tagline { font-size: 1rem; }
  .site-footer__desc { font-size: 1.25rem; line-height: 1.6; }
  .site-footer__col-heading { font-size: 1rem; margin-bottom: 1rem; }
  .site-footer__links { gap: 1rem; }
  .site-footer__links a { font-size: 1.25rem; }
  .site-footer__bottom { font-size: 1rem; flex-direction: column; gap: .75rem; text-align: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .email-capture__form { flex-direction: column; }
  .comparison-table { font-size: .8rem; }
  .comparison-table th, .comparison-table td { padding: .6rem .75rem; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .category-card { padding: 1rem .75rem; }
  .category-card__label { font-size: .7rem; }
  .page-wrapper { padding: 1.5rem 1rem 3rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
}
