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

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

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --ink-light: #2e4a3e;
  --ink-muted: #5a7a6e;
  --mint-dark: #7fd4b0;
  --sky-dark: #7ab8cc;
  --white: #f9fffc;
  --clay-bg: #e8fdf4;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --border: 3px solid var(--ink);
  --shadow-outer: 4px 4px 0px var(--ink);
  --shadow-inner: inset -2px -2px 6px rgba(23,38,32,0.12);
  --shadow-lift: 6px 6px 0px var(--ink);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1160px;
  --col-content: 1fr;
  --col-aside: 300px;
  --header-h: 68px;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--clay-bg);
  overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: 0.4rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }

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

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

small {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.25rem;
}

/* =============================================
   OVERLAY MENU
   ============================================= */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: var(--mint);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 2rem;
}

.overlay-menu.is-open {
  transform: translateX(0);
}

.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-outer);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.overlay-close:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
}

.overlay-nav ol {
  list-style: none;
  text-align: center;
}

.overlay-nav ol li {
  margin: 0.75rem 0;
}

.overlay-nav ol li a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  display: inline-block;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-outer);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  min-height: 44px;
}

.overlay-nav ol li a:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
}

/* =============================================
   SITE HEADER
   ============================================= */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--white);
  border-top: var(--border);
  box-shadow: 0 -3px 0 var(--ink);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius-sm);
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-outer);
  flex-shrink: 0;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.menu-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-lift);
}

.burger-bar {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}

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

/* =============================================
   CTA BUTTONS
   ============================================= */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: var(--border);
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease-out;
  white-space: nowrap;
  line-height: 1;
}

.cta-signup {
  background: var(--mint);
  color: var(--ink);
  box-shadow: var(--shadow-outer);
}

.cta-signup:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.cta-login {
  background: transparent;
  color: var(--ink);
  box-shadow: var(--shadow-outer);
}

.cta-login:hover {
  background: var(--sky);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.cta-block {
  display: flex;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  margin-top: 0.75rem;
}

/* =============================================
   HERO — HOME
   ============================================= */
.hero-home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: calc(var(--header-h) + 3rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media .hero-img,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-placeholder {
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(23,38,32,0.75) 0%, rgba(23,38,32,0.15) 60%, transparent 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 2rem 2.5rem;
  max-width: 720px;
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

.hero-desc {
  color: rgba(249,255,252,0.9);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* =============================================
   PAGE HERO — INNER PAGES
   ============================================= */
.page-hero {
  width: 100%;
  padding: 5rem 2rem 3rem;
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
  padding-bottom: calc(3rem);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}

.page-hero-copy {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero-copy h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.page-hero-review {
  background: linear-gradient(135deg, var(--sky) 0%, var(--mint) 100%);
  position: relative;
  overflow: hidden;
}

.review-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.review-hero-media .review-hero-img,
.review-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(180,253,225,0.7);
}

.page-hero-review .page-hero-copy {
  z-index: 2;
}

.page-hero-compare {
  background: linear-gradient(120deg, var(--mint) 30%, var(--sky) 100%);
}

.page-hero-faq {
  background: linear-gradient(150deg, var(--sky) 0%, var(--mint) 100%);
}

.page-hero-ranking {
  background: linear-gradient(135deg, var(--mint) 0%, #d4f5f0 50%, var(--sky) 100%);
}

.page-hero-inner {
  background: linear-gradient(135deg, var(--white) 0%, var(--sky) 100%);
}

.page-hero-data {
  background: linear-gradient(135deg, var(--sky) 0%, var(--white) 100%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(255,255,255,0.6);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.75rem;
}

.stage-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
  border: 2px solid var(--ink);
}

.stage-awareness { background: var(--mint); }
.stage-consideration { background: var(--sky); }
.stage-decision { background: #fffdb4; }

/* =============================================
   BYLINE
   ============================================= */
.byline {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.byline strong {
  color: var(--ink);
}

.byline time {
  font-style: italic;
}

/* =============================================
   LAYOUT — MAIN WRAP
   ============================================= */
main {
  padding-bottom: calc(var(--header-h) + 2rem);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: var(--col-content) var(--col-aside);
  gap: 2.5rem;
  align-items: start;
}

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

article.page-body {
  min-width: 0;
}

/* =============================================
   ASIDE
   ============================================= */
.page-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.aside-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-outer), var(--shadow-inner);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.aside-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift), var(--shadow-inner);
}

.aside-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.aside-links {
  list-style: none;
  counter-reset: aside-counter;
}

.aside-links li {
  counter-increment: aside-counter;
  margin-bottom: 0.5rem;
  padding-left: 1.75rem;
  position: relative;
}

.aside-links li::before {
  content: counter(aside-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.aside-links li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: block;
  min-height: 24px;
  line-height: 1.4;
}

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

.aside-cta-block {
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
}

/* =============================================
   PROSE — BODY CONTENT
   ============================================= */
.prose, .page-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

.prose h2, .page-body h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3, .page-body h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose h4, .page-body h4 { margin-top: 1.25rem; margin-bottom: 0.4rem; }

.prose ul, .prose ol,
.page-body ul, .page-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li, .page-body li { margin-bottom: 0.35rem; }

.prose table, .page-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.prose th, .page-body th {
  background: var(--mint);
  border: 2px solid var(--ink);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 700;
}

.prose td, .page-body td {
  border: 2px solid var(--ink);
  padding: 0.55rem 0.75rem;
  background: var(--white);
}

.prose tr:nth-child(even) td,
.page-body tr:nth-child(even) td {
  background: rgba(180,253,225,0.25);
}

.prose a, .page-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mint-dark);
  font-weight: 500;
}

.prose a:hover, .page-body a:hover {
  text-decoration-color: var(--ink);
}

.prose blockquote, .page-body blockquote {
  border-left: 4px solid var(--mint-dark);
  background: rgba(180,253,225,0.2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  font-style: italic;
}

/* =============================================
   HOME CHILD LIST
   ============================================= */
.home-children, .home-rankings {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--mint-dark);
}

.home-children h2, .home-rankings h2 {
  margin-bottom: 1.25rem;
}

.child-dl {
  display: grid;
  gap: 1rem;
}

.child-dl dt {
  margin: 0;
}

.child-dl dt a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem 0.5rem;
  box-shadow: var(--shadow-outer), var(--shadow-inner);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  min-height: 44px;
}

.child-dl dt a:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift), var(--shadow-inner);
}

.child-dl dd {
  font-size: 0.875rem;
  color: var(--ink-muted);
  padding: 0.3rem 1.1rem 0.85rem;
  background: var(--white);
  border: var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-left: 0;
  box-shadow: 4px 4px 0px var(--ink);
  margin-top: -1rem;
  padding-top: 0.5rem;
}

/* =============================================
   COMPARE LAYOUT EXTRAS
   ============================================= */
.compare-header-cards {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.compare-pill {
  flex: 1;
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-outer);
}

.compare-vs {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}

/* =============================================
   AUTHOR SECTION
   ============================================= */
.author-section {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-outer), var(--shadow-inner);
}

.author-section h2 {
  margin-bottom: 0.5rem;
}

.author-credentials {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.author-bio {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 2rem 1.5rem calc(var(--header-h) + 2rem);
  text-align: center;
  border-top: var(--border);
}

.footer-rg {
  font-size: 0.8rem;
  color: rgba(249,255,252,0.75);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-links {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--mint);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

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

.footer-copy {
  display: block;
  font-size: 0.75rem;
  color: rgba(249,255,252,0.5);
  margin-top: 0.25rem;
}

/* =============================================
   SCROLL REVEAL (motion)
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .aside-card,
  .child-dl dt a,
  .child-dl dd,
  .compare-pill {
    animation: reveal 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  }

  .aside-card:nth-child(2) { animation-delay: 0.08s; }
  .aside-card:nth-child(3) { animation-delay: 0.16s; }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
}

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

/* =============================================
   RESPONSIVE — TABLET (≤900px)
   ============================================= */
@media (max-width: 900px) {
  :root {
    --col-content: 1fr;
    --col-aside: 240px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */
@media (max-width: 768px) {
  .wrap {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .page-aside {
    position: static;
  }

  .hero-copy {
    padding: 1.5rem;
  }

  .page-hero {
    padding: 4rem 1.25rem 2.5rem;
  }

  .compare-header-cards {
    flex-direction: column;
  }

  .brand {
    font-size: 0.875rem;
  }

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

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand {
    font-size: 0.8rem;
  }

  .cta {
    font-size: 0.72rem;
    padding: 0.45rem 0.55rem;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .child-dl dt a {
    font-size: 0.9rem;
  }
}

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