/* =========================================================
   NeuroRecall (neiurorecall.com) — fresh editorial design
   White canvas + deep navy (#0a1628) anchors + electric
   blue (#2d9ac7) interactive accents. DM Sans for body,
   Playfair Display for editorial headlines.
   Hero animation: neural-constellation drift — faint dots
   connected by thin lines drift slowly behind the hero
   bottle, forming and dissolving brain-like constellations
   (distinct from every prior build's animation).
   ========================================================= */

/* === IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;600;700&display=swap');

/* === TOKENS === */
:root {
  --ink: #0a1628;
  --ink-soft: #2a3a52;
  --ink-muted: #5a6a7e;
  --sky: #2d9ac7;
  --sky-hover: #1e7ba3;
  --sky-glow: rgba(45,154,199,.12);
  --sky-faint: rgba(45,154,199,.06);
  --surface: #ffffff;
  --surface-alt: #f5f8fb;
  --surface-warm: #fafcfe;
  --border: rgba(10,22,40,.08);
  --border-strong: rgba(10,22,40,.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-card: 0 2px 16px rgba(10,22,40,.06);
  --shadow-lift: 0 8px 32px rgba(10,22,40,.10);
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --measure: 680px;
  --wide: 1120px;
}

/* === RESET + BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sky-hover); }

/* === LAYOUT SPINE === */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--measure); margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media(min-width:601px) and (max-width:900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .6em; }
h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
p { max-width: 70ch; }
.lead { font-size: 1.12rem; color: var(--ink-soft); line-height: 1.8; }
.micro { font-size: .82rem; color: var(--ink-muted); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--sky-glow); color: var(--sky); }

/* === NAVBAR === */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.topbar-logo { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.topbar-logo span { color: var(--sky); }
.topbar-nav { display: flex; gap: 28px; align-items: center; }
.topbar-nav a { font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
.topbar-nav a:hover { color: var(--sky); }
.topbar-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 600;
  background: var(--sky); color: #fff;
  padding: 8px 18px; border-radius: var(--radius-sm);
  transition: background .2s, transform .15s;
}
.topbar-cta:hover { background: var(--sky-hover); color: #fff; transform: translateY(-1px); }
.topbar-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--ink); cursor: pointer; }
@media(max-width:768px) {
  .topbar-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 14px; }
  .topbar-nav.open { display: flex; }
  .topbar-toggle { display: block; }
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  background: var(--sky); color: #fff;
  padding: 14px 32px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(45,154,199,.25);
}
.btn-primary:hover { background: var(--sky-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,154,199,.35); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .92rem; font-weight: 500;
  background: transparent; color: var(--sky);
  padding: 12px 24px; border-radius: var(--radius-sm); border: 2px solid var(--sky);
  cursor: pointer; transition: all .2s;
}
.btn-ghost:hover { background: var(--sky-glow); color: var(--sky-hover); }

/* === HERO === */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 60px;
  background: linear-gradient(175deg, var(--surface) 0%, var(--surface-alt) 100%);
}
.hero .grid-2 { gap: 48px; }
.hero-visual { position: relative; text-align: center; }
.hero-visual img { max-width: 380px; margin: 0 auto; position: relative; z-index: 2; filter: drop-shadow(0 20px 40px rgba(10,22,40,.15)); }
.hero-pre { font-size: .82rem; font-weight: 600; color: var(--sky); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { margin-bottom: 20px; }
.hero-body { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 28px; max-width: 520px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; background: var(--sky-glow); color: var(--ink-soft); padding: 6px 14px; border-radius: 99px; }
.hero-pill svg { width: 14px; height: 14px; fill: var(--sky); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-rating { margin-top: 20px; font-size: .88rem; color: var(--ink-muted); }
.hero-rating .stars { color: #f0a500; letter-spacing: 2px; }

/* neural-constellation canvas layer */
.nrc-canvas {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
}
@media(prefers-reduced-motion: reduce) { .nrc-canvas { display: none; } }

/* === SECTIONS === */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3, .section-ink p { color: #fff; }
.section-ink .lead { color: rgba(255,255,255,.7); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head p { margin: 12px auto 0; color: var(--ink-muted); max-width: 560px; }
.divider { width: 48px; height: 3px; background: var(--sky); border-radius: 2px; margin: 16px auto 0; }

/* === TRUST BAR === */
.trust-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.trust-bar-item { display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 500; color: var(--ink-muted); }
.trust-bar-item img { width: 36px; height: auto; }

/* === FEATURE CARDS === */
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: box-shadow .25s, transform .2s;
}
.feat-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.feat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--sky-glow); color: var(--sky);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px;
}
.feat-card h3 { margin-bottom: 8px; }
.feat-card p { font-size: .9rem; color: var(--ink-muted); line-height: 1.65; }

/* === SPLIT SECTION (text + image) === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.split-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
@media(max-width:768px) { .split, .split-reverse { grid-template-columns: 1fr; gap: 32px; } .split-reverse { direction: ltr; } }

/* === MECHANISM STEPS === */
.mech-step {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.mech-step:last-child { border-bottom: none; }
.mech-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sky); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.mech-step h3 { margin-bottom: 6px; }
.mech-step p { font-size: .9rem; color: var(--ink-soft); }

/* === INGREDIENT PILLS === */
.ingr-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.ingr-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); margin-top: 7px; }
.ingr-card h3 { font-size: 1rem; margin-bottom: 4px; }
.ingr-card p { font-size: .88rem; color: var(--ink-muted); }

/* === PRICING === */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media(max-width:900px) { .price-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.price-tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow .25s, transform .2s;
  position: relative;
}
.price-tier:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.price-tier.featured {
  border-color: var(--sky);
  box-shadow: 0 0 0 2px var(--sky), var(--shadow-lift);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--sky); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 18px; border-radius: 99px;
  white-space: nowrap;
}
.price-tier img { max-width: 160px; margin: 16px auto; }
.price-label { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.price-sub { font-size: .82rem; color: var(--ink-muted); margin-bottom: 12px; }
.price-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); }
.price-amount small { font-size: .5em; font-weight: 400; color: var(--ink-muted); }
.price-was { font-size: .85rem; color: var(--ink-muted); text-decoration: line-through; margin-bottom: 4px; }
.price-per { font-size: .85rem; color: var(--ink-muted); margin-bottom: 18px; }
.price-list { list-style: none; text-align: left; margin-bottom: 24px; }
.price-list li { font-size: .88rem; padding: 6px 0; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.price-list li::before { content: '✓'; color: var(--sky); font-weight: 700; }

/* === REVIEWS === */
.rev-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.rev-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rev-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.rev-name { font-weight: 600; font-size: .95rem; }
.rev-loc { font-size: .78rem; color: var(--ink-muted); }
.rev-stars { color: #f0a500; font-size: .9rem; margin-bottom: 10px; }
.rev-text { font-size: .9rem; color: var(--ink-soft); line-height: 1.7; font-style: italic; }

/* === GUARANTEE === */
.guar-box {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.guar-box img { max-width: 140px; }
@media(max-width:768px) { .guar-box { grid-template-columns: 1fr; text-align: center; padding: 32px; } .guar-box img { margin: 0 auto; } }

/* === QUALITY BADGES === */
.badge-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 36px; }
.badge-item { text-align: center; }
.badge-item img { width: 64px; height: auto; margin: 0 auto 8px; }
.badge-item span { display: block; font-size: .78rem; color: var(--ink-muted); font-weight: 500; }

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink);
  text-align: left; padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--sky); transition: transform .2s; }
.faq-q[aria-expanded="true"]::after { content: '−'; }
.faq-a { padding: 0 0 20px; font-size: .92rem; color: var(--ink-soft); line-height: 1.75; display: none; }
.faq-a.open { display: block; }

/* === BLOG CARDS === */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden; transition: box-shadow .25s, transform .2s;
}
.blog-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.blog-card-icon {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: var(--sky);
}
.blog-card-icon.navy { background: var(--ink); color: var(--sky); }
.blog-card-icon.light { background: var(--surface-alt); }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-body h3 { font-size: .95rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 8px; line-height: 1.45; }
.blog-card-body h3 a { color: var(--ink); }
.blog-card-body h3 a:hover { color: var(--sky); }
.blog-card-body p { font-size: .84rem; color: var(--ink-muted); line-height: 1.6; }
.blog-readmore { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--sky); margin-top: 10px; }

/* === CTA BAND === */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #142640 100%);
  color: #fff; padding: 64px 0; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.7); margin: 0 auto 28px; max-width: 500px; }
.cta-band .btn-primary { background: var(--sky); box-shadow: 0 4px 20px rgba(45,154,199,.4); }

/* === ARTICLE CTA === */
.art-cta {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; text-align: center;
  margin: 40px 0;
}

/* === MEDICAL WARNING === */
.med-notice {
  background: #fff8ee; border-left: 4px solid #e5a100;
  border-radius: var(--radius-sm); padding: 18px 22px;
  font-size: .9rem; color: var(--ink-soft); margin: 28px 0;
}

/* === COMPARISON TABLE (new section) === */
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th { background: var(--ink); color: #fff; padding: 14px 18px; text-align: left; font-weight: 600; }
.compare-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.compare-table tr:nth-child(even) td { background: var(--surface-alt); }
.compare-check { color: var(--sky); font-weight: 700; }
.compare-x { color: var(--ink-muted); }

/* === SCIENCE SOURCES (new section) === */
.source-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.source-card:last-child { border-bottom: none; }
.source-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-glow); color: var(--sky); font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.source-card p { font-size: .86rem; color: var(--ink-soft); }
.source-card a { font-weight: 500; }

/* === DAILY ROUTINE VISUAL (new section) === */
.routine-timeline { position: relative; padding-left: 32px; }
.routine-timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--sky-glow); }
.routine-step { position: relative; padding: 0 0 28px; }
.routine-step:last-child { padding-bottom: 0; }
.routine-dot { position: absolute; left: -32px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .68rem; font-weight: 700; }
.routine-step h3 { font-size: .95rem; margin-bottom: 4px; }
.routine-step p { font-size: .88rem; color: var(--ink-muted); }

/* === FOOTER === */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 56px 0 28px;
  font-size: .85rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.6); }
.site-footer a:hover { color: var(--sky); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-disclaimer { font-size: .75rem; color: rgba(255,255,255,.35); line-height: 1.7; margin-top: 16px; max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }

/* === PAGE HERO (inner pages) === */
.page-hero { background: var(--surface-alt); padding: 48px 0 36px; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--ink-muted); font-size: .95rem; max-width: 560px; }

/* === BREADCRUMB === */
.breadcrumb-bar { padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb-bar a, .breadcrumb-bar span { font-size: .8rem; color: var(--ink-muted); }
.breadcrumb-bar a:hover { color: var(--sky); }

/* === ARTICLE === */
.article-wrap { padding: 48px 0; }
.article-wrap .narrow h1 { margin-bottom: 12px; }
.article-wrap .narrow h2 { margin-top: 36px; }
.article-wrap .narrow p { color: var(--ink-soft); margin-bottom: 16px; }
.author-line { font-size: .82rem; color: var(--ink-muted); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.related-box { background: var(--surface-alt); border-radius: var(--radius-md); padding: 24px; margin: 32px 0; }
.related-box h4 { font-size: .9rem; margin-bottom: 10px; }
.related-box ul { list-style: none; }
.related-box li { padding: 5px 0; font-size: .88rem; }

/* === SCROLL REVEAL === */
.nr-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.nr-visible { opacity: 1; transform: none; }
.nr-reveal:nth-child(2) { transition-delay: .06s; }
.nr-reveal:nth-child(3) { transition-delay: .12s; }
.nr-reveal:nth-child(4) { transition-delay: .18s; }

@media(prefers-reduced-motion: reduce) {
  .nr-reveal { opacity: 1!important; transform: none!important; transition: none!important; }
}

/* === MOBILE FINE-TUNING === */
@media(max-width:480px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-visual img { max-width: 260px; }
  .section { padding: 48px 0; }
  .guar-box { padding: 24px; gap: 24px; }
  .price-tier { padding: 28px 20px; }
}
