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

:root {
  --primary: #56228b;
  --primary-dark: #3e1866;
  --primary-light: #7c4db5;
  --secondary: #8b4513;
  --secondary-light: #b5651d;
  --ink: #1f1726;
  --ink-muted: #4a3f54;
  --ink-faint: #7a6e84;
  --surface: #faf8fc;
  --surface-alt: #f0eaf6;
  --border: #d4c8e2;
  --card-radius: 16px;
  --card-radius-sm: 10px;
  --shadow-soft: 0 4px 24px rgba(31,23,38,0.10);
  --shadow-sm: 0 2px 8px rgba(31,23,38,0.07);
  --max-w: 1200px;
  --content-max: 780px;
  --sidebar-w: 280px;
  --header-h: 72px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-fast: 180ms ease;
  --transition-std: 320ms ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--card-radius-sm); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2.5rem; margin-bottom: 0.4rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-top: 1.8rem; margin-bottom: 0.3rem; }
h4 { font-size: 1.05rem; margin-top: 1.4rem; margin-bottom: 0.25rem; }

p { margin-bottom: 1.1rem; font-size: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; }
em { font-style: italic; }

.subtitle {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.6;
  font-family: var(--font-sans);
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.eyebrow-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(139,69,19,0.10);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.stage-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}
.stage-awareness { background: rgba(86,34,139,0.12); color: var(--primary); }
.stage-consideration { background: rgba(139,69,19,0.12); color: var(--secondary); }
.stage-decision { background: rgba(31,23,38,0.10); color: var(--ink-muted); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: background var(--transition-fast), transform var(--transition-fast);
  min-height: 44px;
  line-height: 1.4;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Brand link: fixed width so it never crowds the CTAs on mobile */
.brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 0.01em;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Never wider than 160px on any viewport so CTA buttons always fit */
  max-width: 160px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: 22px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.cta-signup {
  background: var(--primary);
  color: #fff !important;
  border: 2px solid var(--primary);
}
.cta-signup:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.cta-login {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.45);
}
.cta-login:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition-std), opacity var(--transition-std);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Overlay Menu ─────────────────────────────────────────── */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-std);
}
.overlay-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}
.overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background var(--transition-fast);
}
.overlay-close:hover { background: rgba(255,255,255,0.1); }

.overlay-menu aside nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.overlay-menu aside nav ul li {
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-std), transform var(--transition-std);
}
.overlay-menu[aria-hidden="false"] aside nav ul li {
  opacity: 1;
  transform: translateY(0);
}
.overlay-menu[aria-hidden="false"] aside nav ul li:nth-child(1) { transition-delay: 60ms; }
.overlay-menu[aria-hidden="false"] aside nav ul li:nth-child(2) { transition-delay: 110ms; }
.overlay-menu[aria-hidden="false"] aside nav ul li:nth-child(3) { transition-delay: 160ms; }
.overlay-menu[aria-hidden="false"] aside nav ul li:nth-child(4) { transition-delay: 210ms; }
.overlay-menu[aria-hidden="false"] aside nav ul li:nth-child(5) { transition-delay: 260ms; }
.overlay-menu[aria-hidden="false"] aside nav ul li:nth-child(6) { transition-delay: 310ms; }
.overlay-menu[aria-hidden="false"] aside nav ul li:nth-child(7) { transition-delay: 360ms; }

.overlay-menu aside nav ul li a {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.5rem 1rem;
  min-height: 44px;
  line-height: 1.3;
  transition: color var(--transition-fast);
}
.overlay-menu aside nav ul li a:hover { color: var(--primary-light) !important; }

/* ── Blobs / Decorations ──────────────────────────────────── */
.blob-deco {
  width: 260px;
  height: 260px;
  fill: var(--primary);
  opacity: 0.18;
}
.blob-deco--about { fill: var(--secondary); opacity: 0.14; }
.blob-deco--sm { width: 160px; height: 160px; }

.hero-bg-text {
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  color: var(--primary);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

/* ── Hero (Home) ──────────────────────────────────────────── */
.hero-section {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.hero-copy h1 { margin-bottom: 0.25rem; }
.hero-lead { max-width: 540px; }

.hero-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--card-radius); }

/* ── Content Layout (review / ranking / compare / faq / about / privacy) ── */
.review-main,
.ranking-main,
.compare-main,
.faq-main,
.about-main,
.privacy-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ── Page header sections ─────────────────────────────────── */
.review-hero,
.ranking-header-section,
.compare-header-section,
.faq-header-section,
.about-header-section,
.privacy-header-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.review-hero-copy,
.ranking-intro,
.compare-intro,
.faq-intro,
.about-intro,
.privacy-intro {
  max-width: var(--content-max);
}

.review-hero-figure,
.ranking-hero-figure,
.compare-hero-figure,
.faq-deco-figure,
.about-deco-figure,
.privacy-deco-figure {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-hero-figure--empty { background: var(--surface-alt); }
.review-hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--card-radius); }

/* ── Body section with sidebar ────────────────────────────── */
.content-section,
.review-body-section,
.ranking-body-section,
.compare-body-section,
.faq-body-section,
.about-body-section,
.privacy-body-section {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 2.5rem;
  align-items: start;
  padding-top: 0.5rem;
}

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

/* ── Prose ────────────────────────────────────────────────── */
.prose {
  max-width: var(--content-max);
  font-size: 1rem;
  line-height: 1.75;
}
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary-dark); }
.prose ul, .prose ol { margin-bottom: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.93rem; }
.prose th { background: var(--primary); color: #fff; padding: 0.65rem 1rem; text-align: left; font-weight: 600; }
.prose td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); }
.prose tr:nth-child(even) td { background: var(--surface-alt); }
.prose blockquote { border-left: 4px solid var(--primary); padding: 0.75rem 1.25rem; margin: 1.5rem 0; background: var(--surface-alt); border-radius: 0 var(--card-radius-sm) var(--card-radius-sm) 0; font-style: italic; color: var(--ink-muted); }

.faq-prose details { margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--card-radius-sm); overflow: hidden; }
.faq-prose summary { padding: 0.85rem 1.1rem; cursor: pointer; font-weight: 600; font-family: var(--font-serif); background: var(--surface-alt); list-style: none; user-select: none; min-height: 44px; display: flex; align-items: center; }
.faq-prose summary::-webkit-details-marker { display: none; }
.faq-prose details[open] summary { background: var(--primary); color: #fff; }
.faq-prose details > *:not(summary) { padding: 1rem 1.1rem; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
.sidebar-inner {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.25rem;
}
.sidebar-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 0.15rem;
}
.sidebar-heading--mt { margin-top: 1.5rem; }
.sidebar-sub { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 0.75rem; }
.sidebar-links { list-style: none; padding: 0; margin: 0 0 1rem; }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.25rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
  transition: color var(--transition-fast);
}
.sidebar-links a:hover { color: var(--primary); text-decoration: underline; }
.sidebar-cta-block { margin-bottom: 0.75rem; }
.sidebar-cta { width: 100%; text-align: center; font-size: 0.85rem; padding: 0.55rem 0.75rem; }

/* ── Rank list (sidebar) ──────────────────────────────────── */
.rank-index { margin-bottom: 1.25rem; }
.rank-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.rank-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
  color: var(--ink-muted);
  min-height: 36px;
}
.rank-list li:last-child { border-bottom: none; }
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Child page cards (home + category + about) ───────────── */
.child-pages-block { margin-top: 3rem; }
.child-pages-block h2 { margin-bottom: 0.25rem; }

.child-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.child-list > li > div.card-outlined {
  border: 1px solid var(--border);
  border-radius: var(--card-radius-sm);
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  height: 100%;
}
.child-list > li > div.card-outlined:hover { border-color: var(--primary); transform: translateY(-2px); }
.child-list > li > div.card-outlined h3 { font-size: 1rem; margin-top: 0; margin-bottom: 0.3rem; }
.child-list > li > div.card-outlined h3 a { color: var(--ink); text-decoration: none; }
.child-list > li > div.card-outlined h3 a:hover { color: var(--primary); }
.child-list > li > div.card-outlined p { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 0.4rem; }
.card-date { font-size: 0.78rem; color: var(--ink-faint); }

/* ── Byline ───────────────────────────────────────────────── */
.byline {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 400;
}
.byline time { font-style: normal; }

/* ── Author Card (about) ──────────────────────────────────── */
.author-card {
  margin-top: 3rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.75rem 2rem;
}
.author-card h2 { margin-top: 0; font-size: 1.3rem; }
.author-credentials {
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.author-name-display {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.author-bio { color: var(--ink-muted); line-height: 1.7; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  margin-top: 4rem;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.footer-links {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.25rem;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.rg-notice {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin: 0 auto 0.5rem;
  max-width: 640px;
  line-height: 1.6;
}
.copyright {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ── Home-specific ────────────────────────────────────────── */
.home-main { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem 3rem; }

/* ── Scroll reveal animations ─────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .child-list > li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .child-list > li.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .child-list > li:nth-child(1) { transition-delay: 0ms; }
  .child-list > li:nth-child(2) { transition-delay: 60ms; }
  .child-list > li:nth-child(3) { transition-delay: 120ms; }
  .child-list > li:nth-child(4) { transition-delay: 180ms; }
  .child-list > li:nth-child(5) { transition-delay: 240ms; }
  .child-list > li:nth-child(6) { transition-delay: 300ms; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }
  .hero-figure { min-height: 220px; }
  .content-section,
  .review-body-section,
  .ranking-body-section,
  .compare-body-section,
  .faq-body-section,
  .about-body-section,
  .privacy-body-section {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .review-hero,
  .ranking-header-section,
  .compare-header-section,
  .faq-header-section,
  .about-header-section,
  .privacy-header-section {
    grid-template-columns: 1fr;
  }
  .review-hero-figure,
  .ranking-hero-figure,
  .compare-hero-figure,
  .faq-deco-figure,
  .about-deco-figure,
  .privacy-deco-figure { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  /* Brand truncates, never overflows header */
  .brand {
    font-size: 0.92rem;
    max-width: 120px;
    min-height: 44px;
  }

  .cta {
    font-size: 0.74rem;
    padding: 0.4rem 0.65rem;
    min-height: 44px;
  }

  .header-inner { gap: 0.35rem; padding: 0 0.75rem; }

  .hero-section { padding: 1.5rem 0 1rem; gap: 1rem; }
  h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .prose { font-size: 1rem; }
  .child-list { grid-template-columns: 1fr; }
  .home-main,
  .review-main,
  .ranking-main,
  .compare-main,
  .faq-main,
  .about-main,
  .privacy-main { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 480px) {
  .header-inner { gap: 0.25rem; padding: 0 0.6rem; }
  .cta { padding: 0.4rem 0.55rem; font-size: 0.7rem; min-height: 44px; }
  .brand { font-size: 0.85rem; max-width: 100px; min-height: 44px; }
  .hero-bg-text { font-size: 5rem; }
}

/* ── Utility ──────────────────────────────────────────────── */
.visually-hidden {
  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}