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

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

body {
  background: #0D0F1A;
  color: #e8eaf0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #00E5FF; text-decoration: underline; }
a:hover { color: #FFD600; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #00E5FF;
  color: #0D0F1A;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,26,0.92);
  border-bottom: 1px solid rgba(0,229,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand img { border-radius: 4px; flex-shrink: 0; }

/* ===== NAV ===== */
.main-nav {
  flex: 1;
}

.main-nav ol {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
}

.main-nav ol li a {
  display: block;
  padding: 8px 10px;
  color: #c8cfe0;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}

.main-nav ol li a:hover {
  color: #00E5FF;
  background: rgba(0,229,255,0.08);
}

/* ===== MENU TOGGLE ===== */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 6px;
  color: #00E5FF;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.burger {
  display: block;
  width: 20px;
  height: 2px;
  background: #00E5FF;
  position: relative;
  border-radius: 2px;
}
.burger::before, .burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00E5FF;
  border-radius: 2px;
}
.burger::before { top: -6px; }
.burger::after { top: 6px; }

/* ===== HEADER CTAs ===== */
.header-ctas {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
  transition: all 0.2s;
  line-height: 1;
}

.cta-signup {
  background: #00E5FF;
  color: #0D0F1A;
  border: 2px solid #00E5FF;
}
.cta-signup:hover {
  background: #00bcd4;
  border-color: #00bcd4;
  color: #0D0F1A;
}

.cta-login {
  background: transparent;
  color: #00E5FF;
  border: 2px solid #00E5FF;
}
.cta-login:hover {
  background: rgba(0,229,255,0.1);
  color: #00E5FF;
}

/* ===== CONTENT WRAP ===== */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ===== HERO SECTIONS ===== */
.hero-section {
  background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, rgba(255,214,0,0.04) 100%);
  border-bottom: 1px solid rgba(0,229,255,0.12);
  padding: 48px 0 40px;
}

.hero-inner {
  /* uses content-wrap */
}

.page-hero {
  padding: 48px 16px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(135deg, rgba(0,229,255,0.05) 0%, rgba(255,214,0,0.03) 100%);
  border-bottom: 1px solid rgba(0,229,255,0.1);
}

.review-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #00E5FF;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 4px;
}

/* ===== HEADINGS ===== */
h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #00E5FF;
  margin-bottom: 12px;
}

h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFD600;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.subtitle, p.subtitle, p.subhead, p.desc, p.lead {
  color: #8892a4;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ===== BYLINE ===== */
.byline {
  margin-top: 14px;
  font-size: 0.875rem;
  color: #6b7a8d;
}
.byline strong { color: #c8cfe0; }
.byline time { color: #8892a4; }

/* ===== HERO DESC ===== */
.hero-desc {
  margin-top: 12px;
  color: #8892a4;
  font-size: 1rem;
  max-width: 640px;
}

/* ===== STAGE BADGE ===== */
.stage-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.stage-decision { background: rgba(255,214,0,0.15); color: #FFD600; border: 1px solid rgba(255,214,0,0.3); }
.stage-consideration { background: rgba(0,229,255,0.1); color: #00E5FF; border: 1px solid rgba(0,229,255,0.3); }
.stage-awareness { background: rgba(255,255,255,0.07); color: #c8cfe0; border: 1px solid rgba(255,255,255,0.15); }

/* ===== CONTENT LAYOUT (sidebar + main) ===== */
.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

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

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sidebar-inner {
  padding: 20px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-list li a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.875rem;
  color: #c8cfe0;
  text-decoration: none;
  border-radius: 6px;
  min-height: 44px;
  transition: color 0.2s, background 0.2s;
  line-height: 1.4;
}
.sidebar-list li a:hover {
  color: #00E5FF;
  background: rgba(0,229,255,0.07);
}

.sidebar-rg {
  padding: 16px;
}
.rg-short {
  font-size: 0.75rem;
  color: #6b7a8d;
  line-height: 1.5;
}

/* ===== PAGE CONTENT (prose) ===== */
.page-content {
  line-height: 1.75;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 8px;
}

.page-content h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  color: #FFD600;
}

.page-content p {
  margin-bottom: 16px;
  color: #c8cfe0;
}

.page-content a {
  color: #00E5FF;
  text-decoration: underline;
}
.page-content a:hover { color: #FFD600; }

.page-content ul, .page-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.page-content li { margin-bottom: 6px; color: #c8cfe0; }

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.page-content th {
  background: rgba(0,229,255,0.1);
  color: #00E5FF;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0,229,255,0.2);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.page-content td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #c8cfe0;
}
.page-content tr:hover td { background: rgba(255,255,255,0.03); }

/* ===== HOME - CHILD CARDS ===== */
.home-child-list {
  margin-top: 48px;
}

.home-child-list h2 {
  margin-bottom: 6px;
}

.card-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card-grid li {
  /* glass-card applied in HTML */
}

.card-grid li a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
  min-height: 88px;
}
.card-grid li a:hover {
  border-color: rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.06);
}

.card-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
}

.card-grid li a small {
  font-size: 0.8rem;
  color: #6b7a8d;
  line-height: 1.5;
}

/* ===== RANKING CONTENT ===== */
.ranking-content table {
  /* inherits from .page-content table */
}

/* ===== COMPARE CONTENT ===== */
.compare-content table { /* inherits */ }

/* ===== FAQ CONTENT ===== */
.faq-content details {
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-content details summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
  color: #c8cfe0;
  list-style: none;
  user-select: none;
}
.faq-content details summary::-webkit-details-marker { display: none; }
.faq-content details[open] summary { color: #00E5FF; }
.faq-content details > *:not(summary) { padding: 0 16px 16px; }

/* ===== AUTHOR CARD ===== */
.author-card {
  margin-top: 40px;
  padding: 28px;
}
.author-card h2 { margin-bottom: 6px; }
.author-details { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.author-name { font-size: 1.1rem; color: #fff; display: block; }
.author-credentials { font-size: 0.875rem; color: #00E5FF; font-style: normal; display: block; }
.author-bio { color: #8892a4; font-size: 0.9rem; margin-top: 4px; margin-bottom: 0; }

/* ===== HERO IMG ===== */
.hero-img-wrap { margin-top: 24px; border-radius: 12px; overflow: hidden; }
.hero-img { width: 100%; height: auto; border-radius: 12px; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid rgba(0,229,255,0.12);
  margin-top: 64px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 16px 32px;
}

.site-footer > section { /* direct children are sections */ }

.footer-brand .brand { margin-bottom: 12px; }
.footer-desc { font-size: 0.875rem; color: #6b7a8d; line-height: 1.6; margin-top: 8px; }

.footer-links ol, .footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { font-size: 0.875rem; color: #8892a4; text-decoration: none; display: block; min-height: 36px; display: flex; align-items: center; }
.footer-links a:hover { color: #00E5FF; }

.footer-trust { }
.trust-links { display: flex; flex-direction: column; gap: 6px; }
.trust-link { font-size: 0.875rem; color: #8892a4; text-decoration: none; display: flex; align-items: center; min-height: 36px; }
.trust-link:hover { color: #00E5FF; }

.footer-rg { }
.rg-notice {
  font-size: 0.75rem;
  color: #6b7a8d;
  line-height: 1.6;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.copyright { margin-top: 12px; font-size: 0.75rem; color: #4a5568; }

/* ===== FOOTER BORDER WRAPPER ===== */
footer.site-footer {
  border-top: 1px solid rgba(0,229,255,0.12);
}

/* ===== PROSE CONTENT ===== */
.prose-content h2 { margin-top: 36px; }
.prose-content p { margin-bottom: 16px; }

/* ===== ABOUT HERO ===== */
.about-hero h1, .privacy-hero h1 { max-width: 800px; }

/* ===== BODY SECTION wrapper ===== */
.body-section {
  /* the content-layout grid is applied directly */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr 240px;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Header mobile */
  .header-inner {
    flex-wrap: nowrap;
    height: auto;
    min-height: 64px;
    padding: 10px 12px;
    gap: 8px;
  }

  .menu-toggle {
    display: flex;
    order: 2;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13,15,26,0.98);
    border-bottom: 1px solid rgba(0,229,255,0.15);
    padding: 12px 0;
    z-index: 99;
    order: 10;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ol {
    flex-direction: column;
    gap: 0;
    padding: 0 12px;
  }

  .main-nav ol li a {
    width: 100%;
    padding: 12px 14px;
    min-height: 48px;
    font-size: 0.9375rem;
    white-space: normal;
  }

  .brand {
    order: 1;
    font-size: 0.875rem;
    min-width: 0;
    flex: 1;
  }
  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-ctas {
    order: 3;
    gap: 6px;
    flex-shrink: 0;
  }

  .cta {
    padding: 8px 10px;
    font-size: 0.75rem;
    min-height: 44px;
  }

  /* Layout: single column */
  .content-layout {
    grid-template-columns: 1fr;
    padding: 24px 12px;
    gap: 24px;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .body-content {
    order: 1;
  }

  /* Footer mobile */
  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 12px 24px;
    margin-top: 40px;
  }

  /* Hero */
  .page-hero {
    padding: 32px 12px 28px;
  }

  .hero-section {
    padding: 32px 0 28px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  /* Tables: scroll container */
  .page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* Card grid: 1 column on small */
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cta {
    padding: 8px 8px;
    font-size: 0.7rem;
  }

  .header-inner {
    padding: 8px 10px;
  }
}

/* ===== UTILITY ===== */
.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;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}.tbl-scroll{overflow-x:auto;max-width:100%}