/* BrainBoost Lab landing page. Brand tokens from brand/BrainBoostLab-Brand-Guide.md. */
@font-face { font-family: 'Fredoka'; src: url('/fonts/Fredoka-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --blue: #1F4FD1; --blue-dark: #183FA8; --yellow: #FFC72C; --navy: #12235A;
  --ink: #1F2A44; --muted: #5B6478; --line: #E2E8F0; --paper: #F7F9FF; --white: #fff;
  --radius: 18px; --shadow: 0 10px 30px rgba(18, 35, 90, 0.10);
  --wrap: 1120px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); line-height: 1.6; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-align: center; margin-bottom: 0.6rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 1rem/1 system-ui, sans-serif; padding: 16px 28px; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-ghost { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
header img { height: 40px; width: auto; }
header .btn { padding: 10px 18px; font-size: .9rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--paper), var(--white)); padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 18px 0 26px; }
.badge { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .8rem; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 6px; color: var(--ink); font-weight: 600; }
.ticks li::before { content: '✓'; color: var(--blue); font-weight: 900; margin-right: 8px; }
.covers { position: relative; height: 420px; }
.covers img { position: absolute; width: 58%; border-radius: 10px; box-shadow: var(--shadow); }
.covers img:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.covers img:nth-child(2) { left: 21%; top: 0; z-index: 2; }
.covers img:nth-child(3) { right: 0; top: 40px; transform: rotate(6deg); }

/* Steps and benefits */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--paper); margin-bottom: 14px; }
.alt { background: var(--paper); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { display: flex; flex-direction: column; }
.product .previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.product .previews img { border-radius: 6px; border: 1px solid var(--line); aspect-ratio: 210 / 297; object-fit: cover; }
.product .meta { font-size: .9rem; color: var(--muted); margin: 6px 0 12px; }
.product ul { padding-left: 18px; color: var(--ink); font-size: .95rem; margin-bottom: 18px; flex: 1; }
.price { font-family: 'Fredoka', sans-serif; font-size: 2rem; color: var(--navy); margin-bottom: 12px; }
.bundle { margin-top: 32px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.bundle h3 { color: var(--yellow); font-size: 1.7rem; }
.bundle .price { color: var(--white); margin: 0; }
.bundle s { opacity: .6; font-size: 1.1rem; margin-right: 8px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details p { margin-top: 10px; color: var(--muted); }

/* Checkout dialog */
/* margin: auto restores the native centring that the * { margin: 0 } reset removes. */
dialog { margin: auto; border: 0; border-radius: var(--radius); padding: 0; width: min(460px, calc(100% - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(18, 35, 90, .55); }
.checkout { padding: 28px; display: grid; gap: 14px; }
.checkout h3 { font-size: 1.4rem; }
.checkout .summary { background: var(--paper); border-radius: 12px; padding: 12px 14px; font-weight: 700; display: flex; justify-content: space-between; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], input[type=tel] { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; }
input:focus { outline: none; border-color: var(--blue); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.error { color: #DC2626; font-weight: 600; min-height: 1.2em; }
.small { font-size: .85rem; color: var(--muted); text-align: center; }

/* Footer */
footer { background: var(--navy); color: #C7D2FE; padding: 44px 0; font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
footer a { color: var(--white); text-decoration: none; display: block; margin: 4px 0; }
footer h4 { color: var(--yellow); margin-bottom: 8px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 20; background: #25D366; color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow); }
.wa-float svg { width: 30px; height: 30px; }

/* Policy and thank-you pages */
.page { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.page h1 { font-size: 2rem; margin-bottom: 18px; }
.page h2 { text-align: left; font-size: 1.3rem; margin: 28px 0 8px; }
.page p, .page li { color: var(--ink); margin-bottom: 10px; }

@media (max-width: 880px) {
  .hero .wrap, .grid-3, .products, .bundle, footer .wrap { grid-template-columns: 1fr; }
  .covers { height: 300px; max-width: 420px; margin: 0 auto; width: 100%; }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
