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

/* ===== TOKENS ===== */
:root {
  --navy: #0D1B2A;
  --slate: #1E3A5F;
  --amber: #F5A623;
  --amber-dark: #d4891a;
  --white: #F4F6F8;
  --white-dim: rgba(244,246,248,0.82);
  --glass-bg: rgba(30,58,95,0.45);
  --glass-border: rgba(245,166,35,0.18);
  --text-primary: #F4F6F8;
  --text-muted: rgba(244,246,248,0.6);
  --text-dark: #0D1B2A;
  --radius-card: 28px;
  --radius-btn: 100px;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --header-h: 72px;
  --max-prose: 760px;
  --max-site: 1280px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #fff; }
ul, ol { list-style: none; }

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

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(13,27,42,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 0.75rem;
}

.site-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: 0 1 auto;
  /* centered via flex order on desktop */
}

/* Desktop: brand centered, nav split both sides */
@media (min-width: 769px) {
  .header__inner {
    justify-content: center;
    position: relative;
  }
  .site-brand {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    display: flex !important;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    order: 1;
  }
  .primary-nav__inner {
    display: flex;
    align-items: center;
  }
  .primary-nav ol {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
  }
  .primary-nav ol li a {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-btn);
    white-space: nowrap;
  }
  .header__ctas {
    order: 3;
    margin-left: auto;
  }
}

.header__ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ===== CTA BUTTONS ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cta-signup {
  background: var(--amber);
  color: var(--navy);
  border: 2px solid var(--amber);
}
.cta-signup:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--navy); }
.cta-login {
  background: transparent;
  color: var(--amber);
  border: 2px solid var(--amber);
}
.cta-login:hover { background: var(--amber); color: var(--navy); }

/* ===== NAV TOGGLE ===== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1.5px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.nav-toggle:hover { border-color: var(--amber); }
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== PRIMARY NAV (mobile drawer above header) ===== */
.primary-nav {
  display: none;
  position: absolute;
  bottom: calc(100% + 1px);
  left: 0;
  right: 0;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 1rem 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.primary-nav.is-open { display: block; }
.primary-nav__inner { max-width: var(--max-site); margin: 0 auto; padding: 0 1.25rem; }
.primary-nav ol { display: flex; flex-direction: column; gap: 0.25rem; }
.primary-nav ol li a {
  display: block;
  padding: 0.7rem 1rem;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  line-height: 1.4;
}
.primary-nav ol li a:hover { background: var(--glass-bg); color: var(--amber); }

/* ===== MAIN CONTENT OFFSET (fixed bottom bar) ===== */
main { flex: 1; padding-bottom: calc(var(--header-h) + 1.5rem); }

/* ===== HERO (HOME) ===== */
.hero--home {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 60%, #2a4a70 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
}
.hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(245,166,35,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--max-site);
  margin: 0 auto;
  width: 100%;
  text-align: right;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw + 1rem, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--white-dim);
  max-width: 560px;
  margin-left: auto;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero__slant {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--navy);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 5rem 1.5rem 3.5rem;
  background: linear-gradient(160deg, var(--slate) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--navy);
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
}
.page-hero__inner {
  max-width: var(--max-site);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw + 0.8rem, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.page-hero__desc {
  font-size: 1.05rem;
  color: var(--white-dim);
  max-width: 680px;
  line-height: 1.7;
}
.page-hero--ranking { background: linear-gradient(155deg, #0e2540 0%, var(--slate) 50%, var(--navy) 100%); }
.page-hero--review { background: linear-gradient(155deg, #0a1e30 0%, #1a3555 50%, var(--navy) 100%); }
.page-hero--compare { background: linear-gradient(155deg, #0d2035 0%, var(--slate) 50%, var(--navy) 100%); }
.page-hero--faq { background: linear-gradient(155deg, #0c1e32 0%, #1b3450 50%, var(--navy) 100%); }

/* ===== BYLINE ===== */
.byline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.byline time { color: var(--amber); }

/* ===== STAGE LABEL ===== */
.stage-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-btn);
  margin-bottom: 0.85rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--amber);
}

/* ===== LAYOUT WITH ASIDE ===== */
.layout-with-aside {
  display: flex;
  gap: 2.5rem;
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: flex-start;
}
.sidebar {
  flex: 0 0 240px;
  position: sticky;
  top: 1.5rem;
  order: -1; /* aside to the left */
}
.main-content {
  flex: 1 1 0;
  min-width: 0;
}

/* ===== SIDEBAR CARD ===== */
.sidebar__card {
  padding: 1.5rem;
}
.sidebar__heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.sidebar__list { display: flex; flex-direction: column; gap: 0.1rem; }
.sidebar__list li a {
  display: block;
  padding: 0.5rem 0.6rem;
  min-height: 44px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  color: var(--white-dim);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.sidebar__list li a:hover { background: rgba(245,166,35,0.08); color: var(--amber); }

/* ===== CONTENT SECTION ===== */
.content-section {
  padding: 3.5rem 0;
}
.content-section--body { padding-top: 3rem; }
.content-section--nav-list {
  background: var(--slate);
  padding: 3rem 1.5rem;
}
.content-section--nav-list .inline-nav ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem;
  max-width: var(--max-site);
  margin: 1.5rem auto 0;
}
.content-section--nav-list .inline-nav ol li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  min-height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}
.content-section--nav-list .inline-nav ol li a:hover { border-color: var(--amber); color: var(--amber); }
.content-section--nav-list h2,
.content-section--nav-list .subtitle { max-width: var(--max-site); margin-left: auto; margin-right: auto; }

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== CHILD CARDS (DL) ===== */
.child-cards-section {
  padding: 3.5rem 1.5rem;
  max-width: var(--max-site);
  margin: 0 auto;
}
.child-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.child-dl dt {
  margin: 0;
}
.child-dl dt a {
  display: block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--white);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
  min-height: 44px;
  line-height: 1.4;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}
.child-dl dt a:hover { border-color: var(--amber); color: var(--amber); }
.child-dl dd {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  padding: 0.6rem 1.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 0.5rem;
  backdrop-filter: blur(12px);
}

/* ===== HEADINGS ===== */
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.5rem;
}
h2 + .subtitle, h2 + p.subtitle, h2 + p.desc, h2 + p.lead {
  color: var(--amber);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  line-height: 1.5;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
  color: var(--white);
}

/* ===== PROSE ===== */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--white-dim);
  max-width: var(--max-prose);
}
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p { margin-bottom: 1.2rem; }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--amber); text-decoration: underline; }
.prose a:hover { color: #fff; }
.prose strong { color: var(--white); font-weight: 600; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}
.prose th {
  background: var(--slate);
  color: var(--amber);
  padding: 0.65rem 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 2px solid var(--glass-border);
}
.prose td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: top;
}
.prose tr:hover td { background: rgba(30,58,95,0.3); }
.prose blockquote {
  border-left: 3px solid var(--amber);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--glass-bg);
  border-radius: 0 12px 12px 0;
  color: var(--white-dim);
  font-style: italic;
}

/* ===== COMPARE INTRO ===== */
.compare-intro {
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  font-size: 1.02rem;
  color: var(--white-dim);
}

/* ===== FAQ GUIDE LABEL ===== */
.faq-guide-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}

/* ===== AUTHOR SECTION ===== */
.author-section {
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}
.author-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.author-section .subtitle {
  font-size: 0.88rem;
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.author-section p {
  color: var(--white-dim);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn--primary {
  background: var(--amber);
  color: var(--navy);
  border: 2px solid var(--amber);
}
.btn--primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--navy); transform: translateY(-1px); }

/* ===== REVIEW HERO MEDIA ===== */
.review-hero-media { margin-bottom: 1.5rem; }
.review-hero-img { border-radius: 16px; max-height: 320px; object-fit: cover; width: 100%; }

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, var(--slate) 0%, #0a1520 100%);
  border-top: 1px solid var(--glass-border);
  margin-bottom: var(--header-h);
}
.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.footer__col dt.footer__col-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  display: block;
}
.footer__col dd {
  margin: 0 0 0.5rem;
}
.footer__col dd a {
  color: var(--white-dim);
  font-size: 0.88rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.footer__col dd a:hover { color: var(--amber); }
.rg-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 0.75rem;
}
.footer__bar {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-muted);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__links { display: flex; gap: 1.25rem; }
.footer__links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer__links a:hover { color: var(--amber); }

/* ===== SCROLL ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .glass-card, .child-dl dt, .child-dl dd, .prose h2 {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .glass-card.is-visible,
  .child-dl dt.is-visible,
  .child-dl dd.is-visible,
  .prose h2.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .child-dl dt:nth-child(2n) { transition-delay: 0.08s; }
  .child-dl dt:nth-child(3n) { transition-delay: 0.16s; }
  .child-dl dd:nth-child(2n) { transition-delay: 0.1s; }
  .child-dl dd:nth-child(3n) { transition-delay: 0.18s; }

  .hero__inner > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease forwards;
  }
  .hero__h1 { animation-delay: 0.1s; }
  .hero__lead { animation-delay: 0.22s; }
  .hero--home .btn { animation-delay: 0.34s; }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===== PARALLAX LAYER (cinematic depth) ===== */
.parallax-bg {
  will-change: transform;
  transform: translateZ(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .layout-with-aside { gap: 1.75rem; }
  .sidebar { flex: 0 0 200px; }
}

@media (max-width: 768px) {
  .layout-with-aside {
    flex-direction: column;
  }
  .sidebar {
    flex: none;
    width: 100%;
    position: static;
    order: 1; /* still first visually on mobile */
  }
  .main-content { order: 2; }
  .footer__columns {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.25rem 1.5rem;
  }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .child-dl { grid-template-columns: 1fr; }
  .hero--home { min-height: 70vh; padding: 4.5rem 1.25rem 4rem; }
  .hero__inner { text-align: left; }
  .hero__h1 { margin-left: 0; }
  .hero__lead { margin-left: 0; }
  .page-hero { padding: 3.5rem 1.25rem 3rem; }
  .content-section { padding: 2.5rem 0; }
  .layout-with-aside { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  h2 { font-size: 1.3rem; }
  .author-section { padding: 1.5rem; }
  .compare-intro { padding: 1.25rem; }
  .footer__links { gap: 0.75rem; flex-wrap: wrap; }
}

/* ===== NO HORIZONTAL SCROLL ===== */
body, .site-wrapper { max-width: 100vw; overflow-x: hidden; }

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}