@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Righteous&display=swap');

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --neon: #c8ff00;
  --neon-dim: #a8d900;
  --ink: #000000;
  --muted: #444444;
  --border: #000000;
  --surface: #f5f5f5;
  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-display: 'Righteous', 'Poppins', sans-serif;
  --max-w: 1200px;
  --col-gap: 2rem;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover, a:focus {
  color: var(--muted);
}

/* =============================================
   SITE WRAPPER
   ============================================= */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--neon);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  padding: 0.5rem 0;
}

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

/* NAV: ordered list pill group */
.site-header nav {
  flex: 1 1 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-header nav ol {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  padding: 0.5rem 0;
}

.site-header nav ol li {
  flex-shrink: 0;
}

.site-header nav ol li a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.site-header nav ol li a:hover,
.site-header nav ol li a:focus {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--black);
}

/* CTA buttons in header */
.header-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  min-height: 40px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.cta-signup {
  background: var(--neon);
  color: var(--black);
  border: 2px solid var(--neon);
}

.cta-signup:hover,
.cta-signup:focus {
  background: var(--neon-dim);
  border-color: var(--neon-dim);
  color: var(--black);
}

.cta-login {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cta-login:hover,
.cta-login:focus {
  background: var(--white);
  color: var(--black);
}

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 2px solid var(--black);
}

.neon-badge {
  background: var(--neon);
  color: var(--black);
  border-color: var(--black);
}

.stage-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 2px solid currentColor;
  margin-bottom: 0.5rem;
}

.stage-awareness { color: #0066cc; border-color: #0066cc; }
.stage-consideration { color: #cc6600; border-color: #cc6600; }
.stage-decision { color: #006600; border-color: #006600; }

/* =============================================
   HERO — HOME
   ============================================= */
.home-hero {
  background: var(--black);
  color: var(--white);
  padding: 5rem 1.25rem 4rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 100%;
  min-height: 45vh;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  max-width: var(--max-w);
  margin: 0 auto;
  flex: 1 1 55%;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin: 0.5rem 0 1rem;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-top: 1rem;
}

.hero-media {
  flex: 0 1 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  max-width: 100%;
  border: 3px solid var(--neon);
}

/* =============================================
   PAGE BANNERS (non-home)
   ============================================= */
.page-banner {
  background: var(--black);
  color: var(--white);
  padding: 3.5rem 1.25rem 3rem;
  border-bottom: 3px solid var(--neon);
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}

.banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.banner-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-top: 0.5rem;
}

.banner-media {
  flex: 0 1 200px;
}

/* =============================================
   BYLINE
   ============================================= */
.byline {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-top: 0.75rem;
  letter-spacing: 0.01em;
}

.page-banner .byline {
  color: rgba(255,255,255,0.65);
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
main {
  flex: 1;
  padding: 3rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* Body copy container */
.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--col-gap);
  align-items: start;
}

.content-main {
  min-width: 0;
}

/* =============================================
   BODY COPY TYPOGRAPHY
   ============================================= */
.body-copy {
  font-size: 1rem;
  line-height: 1.75;
}

.body-copy h2,
.body-copy h3,
.body-copy h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 2rem 0 0.75rem;
  line-height: 1.15;
}

.body-copy h2 { font-size: 1.75rem; }
.body-copy h3 { font-size: 1.35rem; }
.body-copy h4 { font-size: 1.1rem; }

.body-copy p {
  margin-bottom: 1.25rem;
}

.body-copy ul,
.body-copy ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.body-copy li {
  margin-bottom: 0.4rem;
}

.body-copy table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.body-copy table th,
.body-copy table td {
  border: 2px solid var(--black);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.body-copy table th {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
}

.body-copy table tr:nth-child(even) td {
  background: var(--surface);
}

.body-copy blockquote {
  border-left: 4px solid var(--neon);
  padding: 1rem 1.5rem;
  background: var(--surface);
  margin: 1.5rem 0;
  font-style: italic;
}

/* =============================================
   ASIDE
   ============================================= */
.content-aside {
  position: sticky;
  top: 80px;
  border: 2px solid var(--black);
  padding: 1.5rem;
  background: var(--white);
}

.aside-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.75rem;
}

.aside-links {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.aside-links li {
  border-bottom: 1px solid #e0e0e0;
}

.aside-links li:last-child {
  border-bottom: none;
}

.aside-links a {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--ink);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-links a:hover {
  color: var(--muted);
  text-decoration: underline;
}

/* =============================================
   EYEBROW (small before h2)
   ============================================= */
small.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

/* =============================================
   CHILD GRID (home / category)
   ============================================= */
.child-grid {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 3px solid var(--black);
}

.child-grid > small.eyebrow {
  margin-bottom: 0.4rem;
}

.child-grid > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

/* Section > div×n pattern (no ul/list wrapping) */
.child-grid {
  display: block;
}

.child-card {
  border: 2px solid var(--black);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  transition: transform 0.15s;
}

.child-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--black);
}

.child-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.5rem;
}

.child-card h2 a {
  text-decoration: none;
  color: var(--ink);
}

.child-card h2 a:hover {
  text-decoration: underline;
}

.child-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.card-date {
  font-size: 0.75rem;
  color: #888;
}

.read-more {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1px;
  color: var(--ink);
}

.read-more:hover {
  border-color: var(--muted);
  color: var(--muted);
}

/* =============================================
   AUTHOR SECTION
   ============================================= */
.author-section {
  margin-top: 3rem;
  padding: 2rem;
  border: 2px solid var(--black);
  background: var(--surface);
}

.author-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0.25rem 0 0.5rem;
}

.author-credentials {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.author-bio {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =============================================
   COMPARE / FAQ SPECIFICS
   ============================================= */
.compare-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.faq-body details {
  border: 2px solid var(--black);
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
}

.faq-body summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  list-style: none;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.faq-body details[open] summary {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.75rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  border-top: 3px solid var(--neon);
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}

.site-footer p strong {
  color: var(--white);
}

.footer-links {
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer small {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.rg-notice {
  color: rgba(255,255,255,0.6) !important;
  font-style: italic;
}

/* =============================================
   MOTION / ANIMATIONS
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .child-card {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeSlideUp 0.4s ease forwards;
  }

  .child-card:nth-child(2) { animation-delay: 0.08s; }
  .child-card:nth-child(3) { animation-delay: 0.16s; }
  .child-card:nth-child(4) { animation-delay: 0.24s; }
  .child-card:nth-child(5) { animation-delay: 0.32s; }

  @keyframes fadeSlideUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .home-hero .hero-copy h1 {
    animation: heroDrop 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
  }

  @keyframes heroDrop {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .content-with-aside {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: auto;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .site-header nav ol {
    gap: 0.2rem;
  }

  .site-header nav ol li a {
    font-size: 0.72rem;
    padding: 0.45rem 0.7rem;
  }

  .header-cta {
    gap: 0.4rem;
  }

  .cta {
    font-size: 0.75rem;
    padding: 0.5rem 0.9rem;
  }

  .home-hero {
    flex-direction: column;
    padding: 3rem 1rem 2.5rem;
    min-height: 45vh;
    gap: 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .hero-media {
    flex: 0 0 auto;
    max-width: 200px;
  }

  .page-banner {
    padding: 2.5rem 1rem 2rem;
    min-height: 160px;
  }

  .banner-inner h1 {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  main {
    padding: 2rem 1rem;
  }

  .child-grid > h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .body-copy h2 { font-size: 1.4rem; }
  .body-copy h3 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .site-header nav {
    order: 3;
    width: 100%;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-header nav ol {
    padding: 0.4rem 0;
  }
}
