/* Brainroot site. Tokens follow prototype/app.html (Premium Minimal). */
:root {
  --bg: #0E0C0B; --s1: #171412; --s2: #201C19; --s3: #2A2522; --line: #2A2522;
  --ink: #F4EFE9; --muted: #8F867E; --dim: #5C544E;
  --accent: #FF7A4D; --accent-soft: rgba(255,122,77,.12);
  --mint: #7FD6A4; --mint-soft: rgba(127,214,164,.12);
  --violet: #9A90D6; --violet-soft: rgba(154,144,214,.13);
  --max: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 Geist, Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font: 500 12px/1.4 'Geist Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.4vw, 68px); }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }
h1 span, h2 span { color: var(--muted); }

/* header */
header { position: sticky; top: 0; z-index: 10; background: rgba(14,12,11,.82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.05); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 28%; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #14110F; font: 600 16px Geist, sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: #fff; }
.btn svg { width: 20px; height: 20px; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.ghost { color: var(--muted); text-decoration: none; font-size: 15px; }
.ghost:hover { color: var(--ink); }

/* hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 30em; }
.hero .cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 13px; color: var(--dim); }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.stage { position: relative; display: grid; place-items: center; }
.stage .glow { width: 360px; height: 360px; background: rgba(255,122,77,.2); }
.stage > div:last-child { width: 100%; display: flex; flex-direction: column; align-items: center; }
.brain { position: relative; width: 420px; max-width: 100%; aspect-ratio: 240 / 212; }
.brain canvas, .brain img { position: absolute; inset: 0; width: 100%; height: 100%; }
.brain img { opacity: .9; }
.brain.live img { display: none; }
.count { position: relative; text-align: center; margin-top: 10px; }
.count b { font-size: 56px; font-weight: 600; letter-spacing: -.04em; }
.count span { font-size: 22px; color: var(--muted); }
.count small { display: block; color: var(--muted); font-size: 14px; }

/* sections */
section { padding: 96px 0; border-top: 1px solid rgba(255,255,255,.05); }
.head { max-width: 40em; margin-bottom: 48px; }
.head .mono { margin-bottom: 14px; }
.head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.step .dots { display: flex; gap: 5px; margin-bottom: 20px; }
.step .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.step .dots i.off { background: #3A322C; }
.step .dots i.v { background: var(--violet); }
.step .dots i.voff { background: #35304F; }
.step p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid rgba(255,255,255,.05); }
.feature.flip .shot { order: 2; }
.feature p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.feature ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.feature li { display: flex; gap: 10px; }
.feature li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.shot { position: relative; display: grid; place-items: center; }
.shot img { width: min(100%, 320px); filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.shot .glow { width: 260px; height: 260px; background: rgba(255,122,77,.14); }
.shot.v .glow { background: rgba(154,144,214,.16); }
.shot.m .glow { background: rgba(127,214,164,.12); }

/* apps */
.apps { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); font-size: 15px; }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip small { color: var(--muted); font-size: 13px; }

/* privacy */
.privacy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.spec { padding: 6px 0; }
.spec div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; font-size: 15px; }
.spec div + div { border-top: 1px solid var(--line); }
.spec b { font: 500 12px 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.spec b.read { color: var(--accent); }
.spec b.ok { color: var(--mint); }
.privacy p { color: var(--muted); font-size: 17px; margin-top: 16px; }
.privacy .links { margin-top: 24px; display: flex; gap: 22px; flex-wrap: wrap; }
.privacy .links a { color: var(--accent); text-decoration: none; font-size: 15px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 760px; }
details { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* final cta */
.final { text-align: center; position: relative; overflow: hidden; }
.final .glow { width: 420px; height: 300px; left: 50%; top: 40%; transform: translate(-50%, -50%); background: rgba(255,122,77,.16); }
.final .wrap { position: relative; }
.final p { color: var(--muted); font-size: 18px; margin: 16px auto 32px; max-width: 30em; }

/* footer */
footer { border-top: 1px solid rgba(255,255,255,.05); padding: 36px 0 48px; font-size: 14px; color: var(--dim); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { gap: 22px; flex-wrap: wrap; }

/* document pages (privacy, terms) */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .updated { color: var(--dim); font-size: 14px; margin: 14px 0 40px; }
.doc h2 { font-size: 22px; letter-spacing: -.015em; margin: 40px 0 12px; }
.doc p, .doc li { color: #C9C1B9; font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0 0 20px; display: grid; gap: 8px; }
.doc a { color: var(--accent); }
.doc .spec { margin-top: 16px; }

/* weekly reflection mock */
.recap { position: relative; width: min(100%, 320px); background: var(--s1); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: 0 30px 50px rgba(0,0,0,.5); }
.recap .mono { color: var(--violet); }
.recap .big { font-size: 48px; font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-top: 14px; }
.recap .big small { font-size: 17px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.recap .bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; margin: 22px 0 6px; position: relative; }
.recap .bars::after { content: ''; position: absolute; left: 0; right: 0; bottom: 60%; border-top: 1px dashed var(--dim); }
.recap .bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--violet); }
.recap .bars i.over { background: var(--accent); }
.recap .days { display: flex; gap: 8px; font: 500 11px 'Geist Mono', monospace; color: var(--dim); }
.recap .days span { flex: 1; text-align: center; }
.recap .tip { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--violet-soft); color: #D6D1F2; font-size: 14px; line-height: 1.5; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plans h3 { margin-bottom: 4px; }
.plans .sub { color: var(--muted); font-size: 15px; }
.plans ul, .price ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.plans li { position: relative; padding-left: 16px; }
.plans li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.plans .pro li::before { background: var(--accent); }
.plans .pro { border-color: rgba(255,122,77,.35); }
.plans li b { color: var(--ink); font-weight: 500; }
.tag { display: inline-block; font: 500 11px/1 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); }
.tag.a { background: var(--accent-soft); color: var(--accent); }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.price { position: relative; display: flex; flex-direction: column; }
.price .amt { font-size: 40px; font-weight: 600; letter-spacing: -.035em; line-height: 1; margin-top: 16px; }
.price .amt small { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price .from { font: 500 11px 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-top: 14px; }
.price .per { color: var(--muted); font-size: 14px; margin-top: 8px; }
.price.best { border-color: var(--accent); background: linear-gradient(180deg, rgba(255,122,77,.08), var(--s1) 60%); }
.price .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fine { color: var(--dim); font-size: 13px; margin-top: 18px; max-width: 46em; }

@media (max-width: 860px) {
  nav .hide-sm { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero .wrap, .feature, .privacy { grid-template-columns: 1fr; gap: 36px; }
  .stage { order: -1; }
  .brain { width: 300px; }
  .feature.flip .shot { order: 0; }
  .steps, .plans, .prices { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .doc { padding-left: 16px; padding-right: 16px; }
  .spec div { padding: 14px 16px; }
  nav { gap: 16px; }
  .btn.sm { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.doc details + details { margin-top: 10px; }
.doc details a { color: var(--accent); }
