/* brainmatch.app. Colours are the brand kit's (docs/marketing/brand-kit.md) and the app's own tokens
   (app/src/ui.tsx: Ink, Pink, Soft pink, Wash, the dark card #2A1848); type is Space Grotesk and Inter,
   both SIL Open Font License, self-hosted (server/public/fonts). Light and dark follow the visitor's
   system. Every page on the site uses this one file. Redesign 2026-10-04 (owner: "make the website
   actually good now and high tech to get beta signups"). */

@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-700.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --ink: #221641; --pink: #D2557E; --soft: #F2A0BC; --wash: #F4EAEF; --paper: #FFFFFF;
  --bg: #FFFFFF; --bg-2: #FBF7F9; --card: #FFFFFF; --text: #221641; --muted: #6B6480;
  --line: #E6D7DF; --line-strong: #221641; --link: #221641; --link-line: #D2557E;
  --accent: #D2557E; --accent-big: #D2557E; --on-accent: #FFFFFF;
  --kicker: #6B6480; --field: #FFFFFF; --glow: rgba(210, 85, 126, .16); --glow-2: rgba(108, 75, 211, .10);
  --grid: rgba(34, 22, 65, .055); --dust: #D2557E; --shadow: 0 1px 2px rgba(34, 22, 65, .06), 0 12px 40px rgba(34, 22, 65, .08);
  --nav-bg: rgba(255, 255, 255, .82);
  --radius: 22px; --gutter: 20px;
  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #221641; --bg-2: #1C1236; --card: #2A1848; --text: #FFFFFF; --muted: #D2C9E3;
    --line: rgba(255, 255, 255, .14); --line-strong: rgba(255, 255, 255, .55); --link: #FFFFFF; --link-line: #F2A0BC;
    --accent-big: #F2A0BC; --kicker: #D2C9E3; --field: #1C1236; --wash: #2A1848;
    --glow: rgba(242, 160, 188, .20); --glow-2: rgba(108, 75, 211, .32); --grid: rgba(255, 255, 255, .05); --dust: #F2A0BC;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px rgba(0, 0, 0, .35); --nav-bg: rgba(34, 22, 65, .82);
  }
}
:root[data-theme="dark"] {
  --bg: #221641; --bg-2: #1C1236; --card: #2A1848; --text: #FFFFFF; --muted: #D2C9E3;
  --line: rgba(255, 255, 255, .14); --line-strong: rgba(255, 255, 255, .55); --link: #FFFFFF; --link-line: #F2A0BC;
  --accent-big: #F2A0BC; --kicker: #D2C9E3; --field: #1C1236; --wash: #2A1848;
  --glow: rgba(242, 160, 188, .20); --glow-2: rgba(108, 75, 211, .32); --grid: rgba(255, 255, 255, .05); --dust: #F2A0BC;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px rgba(0, 0, 0, .35); --nav-bg: rgba(34, 22, 65, .82);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { max-width: 100%; }
a { color: var(--link); text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--soft); color: #221641; }
b, strong { font-weight: 600; }
code { font-size: .92em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
main.wrap { max-width: 860px; }

/* ---------- nav ---------- */
nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--text); text-decoration: none; margin-right: auto; }
nav .brand img { width: 34px; height: 34px; border-radius: 9px; }
nav a.link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a.link.on, nav a.link:hover { color: var(--text); }
nav a.cta { background: var(--accent); color: var(--on-accent); padding: 9px 16px; border-radius: 999px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.1; white-space: nowrap; box-shadow: 0 6px 20px var(--glow); }
nav a.cta:hover { filter: brightness(1.06); }

/* ---------- type ---------- */
main { padding: 24px 0 72px; }
h1, h2, h3 { font-family: var(--display); color: var(--text); }
h1 { font-size: clamp(38px, 7.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 28px 0 18px; font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--accent-big); }
h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.028em; margin: 56px 0 16px; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 6px; font-weight: 700; }
main.wrap h3 { margin-top: 30px; }
.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--kicker); font-family: var(--display); font-weight: 600; letter-spacing: .14em; font-size: 13px !important; text-transform: uppercase; margin: 24px 0 0; }
.kicker::before, .eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); flex: none; }

/* ---------- buttons ---------- */
.pill, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.1; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.pill.pink, .btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px var(--glow); }
.pill:hover, .btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pill.ghost, .btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); font-size: 17px; font-weight: 600; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .pill, .btn, .btn .arrow { transition: none; } .pill:hover, .btn:hover { transform: none; } }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }

/* ---------- blocks used across the site ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.wash { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.uses { display: grid; gap: 18px; }
.use { display: flex; gap: 14px; }
.n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; }
.use b { display: block; font-family: var(--display); font-size: 18px; }
.use p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.stat { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-family: var(--display); }
.src { font-size: 13px; color: var(--muted); }

/* ---------- forms ---------- */
form label { display: block; font-weight: 600; margin: 18px 0 8px; }
form input[type=text], form input[type=email], form textarea, form select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); font: inherit; color: var(--text); background: var(--field); }
form input:focus-visible, form select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices label { display: inline-flex; align-items: center; font-weight: 600; margin: 0; padding: 10px 16px; min-height: 44px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--field); transition: border-color .15s ease, background .15s ease; }
.choices label:hover { border-color: var(--accent); }
.choices label:has(input:checked) { border-color: var(--accent); background: var(--glow); }
.choices input { margin: 0 8px 0 0; accent-color: #D2557E; width: 18px; height: 18px; }
.check { display: block !important; position: relative; padding-left: 32px; font-weight: 400 !important; line-height: 1.5; }
.check input { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; margin: 0; accent-color: #D2557E; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 40px; color: var(--muted); font-size: 15px; }
footer a { color: var(--text); }
footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer .foot-brand { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
footer .foot-brand img { width: 30px; height: 30px; border-radius: 8px; }
footer h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; color: var(--text); font-weight: 700; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer .note { color: var(--text); font-size: 15px; margin: 0 0 10px; max-width: 46ch; }
footer .base { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { footer .foot-grid { grid-template-columns: 1fr 1fr; } footer .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- articles ---------- */
.article { max-width: 720px; }
.article p, .article li { font-size: 18px; line-height: 1.72; }
.article h3 { font-size: 23px; margin: 36px 0 8px; }
.article sup { line-height: 0; font-size: 12px; margin-left: 1px; }
.article sup a { text-decoration: none; font-weight: 700; }
.article .note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; font-size: 15px !important; color: var(--muted); margin-top: 32px; }
.refs { padding-left: 22px; }
.refs li { font-size: 14px !important; line-height: 1.55 !important; color: var(--muted); margin-bottom: 10px; overflow-wrap: anywhere; }
.refs li:target { color: var(--text); background: var(--bg-2); border-radius: 8px; }
a.article-card { text-decoration: none; color: var(--text); display: block; transition: border-color .15s ease, transform .15s ease; }
a.article-card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.article-card .kicker { margin: 0 0 8px; font-size: 11px !important; }
main.wrap > ul li, main.wrap > p { max-width: 72ch; }

/* =================== the home page =================== */
.home { padding: 0; overflow-x: clip; }
.hero { position: relative; isolation: isolate; padding: 40px 0 28px; }
.hero::before { content: ""; position: absolute; inset: -10% -10% 0; z-index: -2; background:
  radial-gradient(42% 46% at 72% 40%, var(--glow), transparent 70%),
  radial-gradient(38% 40% at 20% 10%, var(--glow-2), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lede { margin: 0 0 6px; }
.hero .fine { font-size: 16px; color: var(--muted); margin: 16px 0 0; }
.hero .fine b { color: var(--text); }
.brain-stage { position: relative; width: 100%; max-width: 580px; margin: 0 auto; padding: 18px 0 40px; }
.fb-float { transform: translateY(var(--drift, 0px)); transition: transform .25s linear; }
.fb-float svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 698; filter: drop-shadow(0 22px 44px var(--glow)); }
.stage-note { text-align: center; font-size: 14px; color: var(--muted); margin: 6px auto 0; max-width: 46ch; }
.motion-btn { position: absolute; right: 6px; bottom: 6px; z-index: 2; font: 600 13px/1 var(--body); color: var(--text); background: var(--nav-bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.motion-btn[hidden] { display: none; }

.promise { border-block: 1px solid var(--line); background: var(--bg-2); }
.promise p { margin: 0; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.6vw, 27px); letter-spacing: -.015em; text-align: center; color: var(--text); }
.promise p span { color: var(--muted); font-weight: 500; }

.chapter { padding: 88px 0 24px; }
.chapter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chapter.flip .chapter-copy { order: 2; }
.chapter h2 { margin: 14px 0 16px; }
.chapter-copy p { color: var(--muted); max-width: 54ch; }
.chapter-copy p.say { color: var(--text); }
.chapter-copy ul.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.chapter-copy ul.points li { position: relative; padding-left: 30px; color: var(--text); }
.chapter-copy ul.points li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--glow); }
.num { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--kicker); letter-spacing: .1em; }

.screens { position: relative; display: flex; justify-content: center; gap: 18px; }
.screens::before { content: ""; position: absolute; inset: 8% 4%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%); filter: blur(10px); }
.shot { margin: 0; width: min(300px, 46%); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 1284 / 2778; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.shot.lower { margin-top: 64px; }

.space-stage { position: relative; margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: #2A1848; }
.space-stage img, .space-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.space-stage canvas { opacity: 0; transition: opacity .9s ease; }
.space-stage.live canvas { opacity: 1; }
.space-stage .load3d { position: absolute; left: 12px; bottom: 12px; z-index: 2; font: 600 14px/1 var(--body); color: #fff; background: rgba(34, 22, 65, .78); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.space-stage .load3d[hidden] { display: none; }
.space-caption { font-size: 14px; color: var(--muted); margin: 10px 2px 0; }
.disclose { margin-top: 22px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); }
.disclose h3 { font-size: 18px; margin: 0 0 6px; }
.disclose p { margin: 0; color: var(--text) !important; font-size: 16px; }

.private { padding: 88px 0 24px; }
.private-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.private-grid .card h3 { font-size: 19px; }
.private-grid .card p { color: var(--text); opacity: .86; }
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.honest .card { border-color: var(--line-strong); }
.uses-wrap { margin-top: 36px; }
.uses-wrap h3 { font-size: 22px; margin-bottom: 14px; }
.uses-wrap .uses { grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.uses-wrap .use p { color: var(--text); opacity: .86; }

.final { padding: 96px 0 80px; text-align: center; position: relative; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 50% 60%, var(--glow), transparent 70%); }
.final h2 { margin: 12px auto 14px; max-width: 18ch; }
.final .lede { margin: 0 auto; }
.final .row { justify-content: center; }
.final .facts { margin: 22px auto 0; max-width: 60ch; color: var(--text); font-size: 16px; }

/* Movement on scroll, for pictures only (never for words that tell you something), and only where the
   browser can tie it to scrolling; without that, or with reduced motion, everything simply shows. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes rise { from { transform: translateY(48px) scale(.96); } to { transform: none; } }
  }
}

/* =================== the beta page =================== */
main.beta { padding-top: 0; overflow-x: clip; }
.beta-hero { padding-bottom: 8px; }
.beta-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; margin-top: 18px; }
.beta-grid > aside { position: sticky; top: 88px; display: grid; gap: 12px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.form-card h2 { margin: 0 0 4px; font-size: clamp(26px, 3.4vw, 34px); }
.form-card > p.muted { margin: 0 0 6px; }
.form-card form { background: none; border: 0; padding: 0; }
.form-card .row { margin-top: 22px; }
.form-card #msg { font-size: 17px; }
.faq { margin-top: 64px; max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-family: var(--display); font-weight: 700; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 500; color: var(--accent-big); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--text); max-width: 70ch; }
.details-note { margin-top: 48px; max-width: 760px; }
.details-note h2, .newsletter h2 { font-size: clamp(24px, 3vw, 32px); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero-grid, .chapter-grid, .beta-grid { grid-template-columns: 1fr; }
  .chapter.flip .chapter-copy { order: 0; }
  .beta-grid > aside { position: static; }
  .private-grid { grid-template-columns: 1fr; }
  .honest, .uses-wrap .uses { grid-template-columns: 1fr; }
  .brain-stage { max-width: 440px; }
  .chapter { padding-top: 64px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  nav .wrap { height: 58px; gap: 14px; }
  nav a.link { display: none; }
  nav .brand { font-size: 18px; }
  nav .brand img { width: 30px; height: 30px; }
  nav a.cta { font-size: 19px; padding: 8px 14px; }
  .hero { padding-top: 16px; }
  .shot { width: 48%; }
  .shot.lower { margin-top: 36px; }
  .form-card { padding: 20px 16px; border-radius: 20px; }
  .faq summary { font-size: 18px; }
  .space-stage { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 560px) {
  /* The nav's own pages stay one tap away on phones, in a row under the bar. */
  nav .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
  nav .brand { order: 1; }
  nav a.cta { order: 2; }
  nav a.link { display: inline; order: 3; font-size: 14px; }
}
@media print { nav, .motion-btn, .load3d, canvas { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- the beta page's "try one" (a real question; the pick never leaves the page) ---------- */
.taste { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; margin: 8px 0 36px; padding: 26px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--bg-2), var(--card)); box-shadow: var(--shadow); }
.taste[hidden] { display: none; }
.taste h2 { margin: 10px 0 8px; font-size: clamp(26px, 3.6vw, 38px); }
.taste-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.taste-option { min-height: 52px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--field); color: var(--text); font: 600 16px/1.3 var(--body); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.taste-option:hover { border-color: var(--accent); transform: translateY(-1px); }
.taste-option[aria-pressed="true"] { border-color: var(--accent); background: var(--glow); box-shadow: 0 0 0 3px var(--glow); }
.taste-result p { margin: 16px 0 0; color: var(--text); }
.taste-next .btn { margin-top: 4px; }
.taste-map { max-width: 360px; width: 100%; justify-self: center; }
.taste-map svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 30px var(--glow)); }
@media (prefers-reduced-motion: reduce) { .taste-option { transition: none; } }
.form-card.glow { box-shadow: 0 0 0 3px var(--accent), var(--shadow); transition: box-shadow .4s ease; }
@media (max-width: 760px) { .taste { grid-template-columns: 1fr; padding: 20px 16px; } .taste-map { order: -1; max-width: 240px; } .taste-options { grid-template-columns: 1fr; } }

/* ---------- the brain map, drawn as the app draws it (FrameBrain) ---------- */
/* A spot is drawn only once lit, as in the app: a magenta dot, here with a soft glow that breathes. */
.fb-spot { opacity: 0; transition: opacity .7s ease; }
.fb-spot.on { opacity: 1; }
.fb-spot circle { transform-box: fill-box; transform-origin: center; }
.fb-spot .dot { transform: scale(.4); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.fb-spot.on .dot { transform: none; }
.fb-spot .halo { opacity: .16; }
@media (prefers-reduced-motion: no-preference) {
  .fb-spot.on .halo { animation: fb-breathe 2.8s ease-in-out infinite; }
  .brain-stage .fb-float svg { animation: fb-float 7s ease-in-out infinite; }
  .brain-stage.paused .fb-float svg, .brain-stage.paused .fb-spot .halo { animation-play-state: paused; }
}
@keyframes fb-breathe { 0%, 100% { opacity: .1; transform: scale(.85); } 50% { opacity: .3; transform: scale(1.12); } }
@keyframes fb-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .fb-spot, .fb-spot .dot, .fb-float { transition: none; } .fb-spot .dot { transform: none; } }
