/* Lena's Brain Trainer pages — peacock palette (matches the app). Loaded after ../styles.css. */
:root{
  --bt-bg: #F4F8FA;
  --bt-panel: #FFFFFF;
  --bt-line: #DCE7EC;
  --bt-text: #14222E;
  --bt-muted: #5A6B78;
  --bt-blue: #0B3C8C;
  --bt-teal: #00838F;
  --bt-emerald: #00B894;
  --bt-gold: #F5C542;
  --bt-sheen: #6A3FB5;
  --bt-sand: #E9F5F3;
  --bt-gradient: linear-gradient(120deg, #0B3C8C 0%, #0A5A9C 30%, #00838F 65%, #00B894 100%);
}

body.braintrainer{ background: var(--bt-bg); color: var(--bt-text); }
body.braintrainer h1, body.braintrainer h2, body.braintrainer h3{ color: var(--bt-text); }

body.braintrainer .site-header{
  background: linear-gradient(90deg, #0B3C8C, #075f8f);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.braintrainer .logo{ color: #fff; }
body.braintrainer .main-nav a{ color: rgba(255,255,255,0.75); }
body.braintrainer .main-nav a:hover{ color: #fff; }
body.braintrainer .nav-toggle span{ background: #fff; }
body.braintrainer .site-footer{ background: linear-gradient(90deg, #0B3C8C, #00838F); }
body.braintrainer .footer-nav a{ color: rgba(255,255,255,0.72); }
body.braintrainer .footer-nav a:hover{ color: #fff; }
body.braintrainer .footer-copy{ color: rgba(255,255,255,0.5); }
body.braintrainer .logo-footer{ color: #fff; }
body.braintrainer .noise{ opacity: 0.02; }
body.braintrainer .btn-primary{ background: var(--bt-gold); color: #2a2100; }
body.braintrainer .btn-primary:hover{ background: #ffd76a; }
body.braintrainer .btn-ghost{ color: #fff; border-color: rgba(255,255,255,0.5); }
body.braintrainer .btn-ghost:hover{ color: #fff; border-color: #fff; }
body.braintrainer .section-sub{ color: var(--bt-muted); }

.eyebrow-bt{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--bt-teal);
  margin: 0 0 16px;
}

/* ---------- Product page ---------- */
.bt-hero-band{ position: relative; overflow: hidden; background: var(--bt-gradient); color: #fff; }
.bt-hero{ position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 88px 28px 96px; }
body.braintrainer .bt-hero h1{ color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 20px; }
.bt-hero .accent-gold{ color: var(--bt-gold); }
.bt-hero-eyebrow{ font-family: var(--font-mono); font-size: 13px; color: #FFE7A3; margin: 0 0 18px; }
.bt-hero-sub{ color: rgba(255,255,255,0.88); max-width: 52ch; font-size: 1.08rem; margin-bottom: 30px; }
.bt-hero-note{ font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,0.7); margin-top: 18px; }

.bt-logo-stage{ position: relative; width: min(380px, 80vw); aspect-ratio: 1; margin: 0 auto; }
.bt-logo-stage::before{
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,66,0.45), rgba(106,63,181,0.18) 55%, transparent 70%);
  animation: bt-pulse 2.6s ease-in-out infinite;
}
.bt-ring{ position: absolute; inset: 12%; border-radius: 50%; border: 2px solid rgba(255,255,255,0.32); animation: bt-ripple 2.6s ease-out infinite; }
.bt-ring.r2{ animation-delay: 1.3s; }
.bt-orbit{ position: absolute; inset: 4%; animation: bt-spin 22s linear infinite; }
.bt-eye{
  position: absolute; width: 22px; height: 28px; margin: -14px 0 0 -11px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--bt-gold) 0 18%, var(--bt-blue) 19% 38%, var(--bt-sheen) 39% 62%, var(--bt-emerald) 63%);
  box-shadow: 0 0 10px rgba(0,184,148,0.5);
}
.bt-logo{ position: absolute; inset: 20%; width: 60%; height: 60%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25)); }
.bt-logo-shine{
  position: absolute; inset: 20%; pointer-events: none;
  -webkit-mask: url("assets/logo-brain.png") center / contain no-repeat; mask: url("assets/logo-brain.png") center / contain no-repeat;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.85) 50%, transparent 65%) -200% 0 / 250% 100% no-repeat;
  animation: bt-shine 4s ease-in-out infinite;
}
.bt-sparkle{ position: absolute; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: bt-twinkle 2.4s ease-in-out infinite; }
.bt-sparkle.gold{ background: var(--bt-gold); }

@keyframes bt-pulse{ 50%{ transform: scale(1.06); } }
@keyframes bt-ripple{ from{ transform: scale(0.95); opacity: 0.9; } to{ transform: scale(1.25); opacity: 0; } }
@keyframes bt-spin{ to{ transform: rotate(360deg); } }
@keyframes bt-shine{ 0%, 55%{ background-position: -200% 0; } 85%, 100%{ background-position: 200% 0; } }
@keyframes bt-twinkle{ 0%, 100%{ opacity: 0.25; transform: scale(0.5); } 50%{ opacity: 1; transform: scale(1); } }

.bt-section{ padding: 96px 28px; }
.bt-section.alt{ background: var(--bt-sand); }
.bt-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.bt-card{ background: var(--bt-panel); border: 1px solid var(--bt-line); border-radius: 16px; padding: 24px 22px; box-shadow: 0 1px 3px rgba(11,60,140,0.05); }
.bt-card .bt-emoji{ font-size: 32px; line-height: 1; display: block; margin-bottom: 14px; }
.bt-card h3{ font-size: 1.08rem; margin: 0 0 8px; }
.bt-card p{ color: var(--bt-muted); font-size: 0.95rem; margin: 0; }
.bt-card.accent{ border-top: 4px solid var(--bt-teal); }

.bt-bands{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bt-band{ background: var(--bt-panel); border: 1px solid var(--bt-line); border-radius: 14px; padding: 20px; text-align: center; }
.bt-band b{ display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--bt-blue); }
.bt-band span{ color: var(--bt-muted); font-size: 0.92rem; }

.bt-premium{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--bt-gradient); color: #fff; border-radius: 22px; padding: 48px; }
body.braintrainer .bt-premium h2{ color: #fff; }
body.braintrainer .bt-premium .section-sub{ color: rgba(255,255,255,0.88); }
.bt-premium ul{ list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bt-premium li{ background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 12px 16px; }
.bt-premium .eyebrow-bt{ color: #FFE7A3; }
.bt-fineprint{ color: var(--bt-muted); font-size: 0.9rem; max-width: 80ch; margin-top: 22px; }
.bt-fineprint a{ color: var(--bt-teal); }

/* ---------- Legal pages (same layout as the other product pages) ---------- */
.legal{ padding: 72px 28px 120px; max-width: 820px; margin: 0 auto; }
.legal-header{ margin-bottom: 40px; border-bottom: 1px solid var(--bt-line); padding-bottom: 32px; }
.legal-intro{ color: var(--bt-muted); margin-top: 18px; max-width: 65ch; }
.legal-updated{ font-family: var(--font-mono); font-size: 13px; color: var(--bt-muted); margin-top: 14px; }
.legal-summary{ background: var(--bt-panel); border: 1px solid var(--bt-line); border-left: 4px solid var(--bt-teal); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 40px; }
.legal-summary p{ font-family: var(--font-mono); font-size: 12.5px; color: var(--bt-teal); margin-bottom: 10px; }
.legal-summary ul{ list-style: disc; padding-left: 20px; color: var(--bt-text); }
.legal-summary li{ margin-bottom: 6px; }
.legal-toc{ background: var(--bt-panel); border: 1px solid var(--bt-line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 56px; }
.legal-toc p{ font-family: var(--font-mono); font-size: 12.5px; color: var(--bt-teal); margin-bottom: 14px; }
.legal-toc ol{ list-style: decimal; padding-left: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.legal-toc a{ color: var(--bt-muted); text-decoration: none; font-size: 14px; }
.legal-toc a:hover{ color: var(--bt-teal); }
.legal-section{ margin-bottom: 44px; scroll-margin-top: 96px; }
.legal-section h2{ font-size: 1.3rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--bt-line); color: var(--bt-blue); }
.legal-section h3{ font-size: 1.02rem; margin: 20px 0 8px; }
.legal-section p{ opacity: 0.92; margin-bottom: 14px; max-width: 72ch; }
.legal-section p.muted{ color: var(--bt-muted); opacity: 1; }
.legal-section ul, .legal-section ol{ padding-left: 22px; margin-bottom: 14px; opacity: 0.92; }
.legal-section ul{ list-style: disc; }
.legal-section li{ margin-bottom: 8px; max-width: 68ch; }
.legal-section a, .legal-contact-card a{ color: var(--bt-teal); }
.legal-table{ width: 100%; border-collapse: collapse; font-size: 0.94rem; margin: 8px 0 16px; }
.legal-table th, .legal-table td{ text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--bt-line); }
.legal-table th{ font-family: var(--font-mono); font-size: 12.5px; color: var(--bt-teal); font-weight: 500; }
.legal-contact-card{ background: linear-gradient(135deg, var(--bt-panel), var(--bt-sand)); border: 1px solid var(--bt-line); border-radius: var(--radius); padding: 28px 30px; margin-top: 12px; }
.legal-contact-card p{ margin-bottom: 6px; opacity: 1; }

@media (max-width: 860px){
  .bt-hero{ grid-template-columns: 1fr; text-align: center; padding: 64px 20px 72px; }
  .bt-hero-sub{ margin-left: auto; margin-right: auto; }
  .bt-hero .hero-actions{ justify-content: center; }
  .bt-logo-stage{ order: -1; width: min(300px, 76vw); }
  .bt-bands{ grid-template-columns: 1fr 1fr; }
  .bt-premium{ grid-template-columns: 1fr; padding: 32px 22px; }
  .bt-section{ padding: 72px 20px; }
}
@media (max-width: 720px){
  .legal-toc ol{ grid-template-columns: 1fr; }
  .legal{ padding: 56px 20px 90px; }
  .legal-table{ font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce){
  .bt-logo-stage::before, .bt-ring, .bt-orbit, .bt-logo-shine, .bt-sparkle{ animation: none; }
}
