/* A welcoming layer for the existing brain explorer. No external assets. */
:root { --paper:#fbf8f0; --ink:#30283e; --muted:#655d70; --line:#e3dce4; }
.site-header { max-width:1320px; padding:25px 32px; }
.brand-mark { color:#7055a3; }
.section-nav { font-size:14px; }
.section-nav a { padding:8px 0; }
.source-link { color:#655574; }
h1,h2,h3 { text-wrap:balance; }
.welcome-hero { display:grid; grid-template-columns:1.05fr 1fr; gap:20px; align-items:center; padding:56px 24px 52px; }
.welcome-copy .eyebrow { font-size:10px; letter-spacing:1.5px; margin-bottom:22px; color:#67557d; }
.hello-dot { font-size:26px; }
.welcome-copy h1 { font-size:clamp(52px,6.4vw,86px); font-weight:700; letter-spacing:-4.5px; line-height:1.05; }
.welcome-copy h1 em { color:#7855a0; font-family:Georgia,serif; font-weight:400; }
.welcome-copy>p:not(.eyebrow) { font-size:17px; line-height:1.7; max-width:450px; margin-top:25px; color:#655d70; }
.welcome-primary { display:inline-flex; justify-content:space-between; gap:30px; align-items:center; padding:15px 22px; background:#665084; color:white; border-radius:12px; font-size:14px; font-weight:650; text-decoration:none; margin-top:26px; min-height:48px; transition:background .18s,transform .18s; }
.welcome-primary:hover { background:#4c3968; transform:translateY(-2px); }
.welcome-note { display:block; font-size:12px; color:#726879; margin-top:14px; }
.welcome-art { position:relative; aspect-ratio:1.08; display:grid; place-items:center; isolation:isolate; }
.brain-halo { position:absolute; inset:8% 7% 4%; border-radius:49% 51% 46% 54%; background:#f1debb; transform:rotate(-12deg); z-index:-1; }
.welcome-art>img { width:95%; height:auto; transform:rotate(-8deg); filter:drop-shadow(0 18px 16px #6b534125); }
.welcome-doodles { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.art-sticker { position:absolute; background:#fffdf8; border:1px solid #ded3c4; box-shadow:0 6px 0 #3d293109; padding:12px 18px; border-radius:10px; font-size:14px; font-weight:600; z-index:1; }
.sticker-one { left:3%; top:17%; transform:rotate(-8deg); }
.sticker-two { right:0; bottom:22%; background:#e6dafa; transform:rotate(8deg); }
.art-caption { position:absolute; bottom:0; text-align:center; font-size:12px; max-width:260px; color:#716253; }
.brain-conversation { display:grid; grid-template-columns:.85fr 1.15fr; padding:38px; gap:65px; align-items:start; border-radius:26px; background:#eae3f4; border:1px solid #ded3eb; scroll-margin-top:25px; }
.conversation-intro { padding:12px 0; }
.chat-stamp { display:grid; place-items:center; font:80px Georgia,serif; color:#665084; background:#fffaf0; width:66px; height:66px; border-radius:22px 22px 22px 4px; padding-top:24px; transform:rotate(-8deg); margin-bottom:24px; }
.conversation-intro .eyebrow { font-size:10px; margin-bottom:14px; color:#6e568b; }
.conversation-intro h2 { font-size:35px; letter-spacing:-1.4px; line-height:1.2; }
.conversation-intro>p:not(.eyebrow) { margin-top:18px; color:#62546f; font-size:15px; }
.conversation-intro .conversation-note { font-size:11px!important; max-width:300px; margin-top:30px!important; }
.conversation-card { border-radius:18px; padding:26px; background:#fffdf9; box-shadow:0 7px 0 #5840710a; }
.guide-label { display:flex; gap:10px; align-items:center; font-size:12px; color:#726180; }
.guide-avatar { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#eadef8; color:#6a5089; font-size:25px; }
.guide-step { margin-left:auto; font-size:11px; }
.conversation-card h3 { font-size:23px; margin:24px 0 20px; letter-spacing:-.7px; }
.wonder-choices { display:grid; gap:10px; }
.wonder-choices button { display:flex; align-items:center; gap:14px; padding:15px; min-height:62px; border:1px solid #e2d9e7; border-radius:12px; text-align:left; background:#f8f4fc; color:#3c3049; font-size:15px; }
.wonder-choices button:nth-child(2) { background:#fff0e5; border-color:#efddce; }
.wonder-choices button:nth-child(3) { background:#edf3e6; border-color:#dce4d2; }
.wonder-choices button>span:first-child { font-size:25px; width:30px; text-align:center; color:#6b5186; }
.wonder-choices button>span:last-child { margin-left:auto; }
.wonder-choices button:hover { border-color:#705491; box-shadow:0 3px 0 #58407114; }
.your-thought { margin-left:25px; padding:12px 16px; border-radius:14px 14px 3px 14px; background:#eae0f6; font-size:14px; }
.guide-reply { padding:18px 0; font-size:15px; color:#51465b; }
#try-choices { border:0; padding:0; margin:5px 0 0; min-width:0; }
#try-choices legend { font-weight:650; font-size:14px; margin-bottom:12px; }
#try-buttons { display:flex; flex-wrap:wrap; gap:8px; }
#try-buttons button { border:1px solid #c6b5d4; background:#fffdf9; color:#594467; border-radius:10px; padding:12px; font-size:13px; min-height:44px; text-align:left; }
#try-buttons button:hover,#try-buttons button[aria-pressed=true] { background:#675084; color:white; border-color:#675084; }
#chat-outcome { border-radius:12px; padding:20px; background:#edf3e6; margin-top:20px; animation:reply-in .25s ease-out; }
.outcome-label { font-size:10px; letter-spacing:1px; color:#4e6845; font-weight:700; }
#outcome-text { font-size:14px; margin-top:9px; color:#3b5138; }
#outcome-link { margin-top:15px; background:#405c40; width:100%; font-size:13px; }
#outcome-link:hover { background:#2b452b; }
.text-button { background:none; color:#69517f; font-size:12px; text-decoration:underline; text-underline-offset:4px; padding:12px 0; min-height:44px; margin-top:8px; }
.discovery-trail { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; padding:24px 0 0; }
.discovery-trail a { padding:22px 18px; display:flex; gap:13px; align-items:center; border:1px solid #e5dcd0; background:#fffdf8; border-radius:14px; text-decoration:none; }
.discovery-trail a:hover { background:#f2ecfa; border-color:#bcabcf; }
.trail-icon { width:42px; height:42px; flex-shrink:0; border-radius:12px; display:grid; place-items:center; background:#f4e8c8; font-size:25px; }
.discovery-trail a:nth-child(2) .trail-icon { background:#e7ddf1; }
.discovery-trail a:nth-child(3) .trail-icon { background:#e4edd8; }
.discovery-trail a>span:last-child { margin-left:auto; }
.discovery-trail small { display:block; font-size:9px; letter-spacing:.8px; color:#7d6c7d; }
.discovery-trail strong { display:block; margin-top:5px; font-size:13px; font-weight:600; }
.circuit-lab { padding-top:65px; }
.section-intro .eyebrow { color:#795a92; }
.section-intro h2 { color:#392f48; }
.lab-shell { background:#f0ecf6; border-color:#dcd2e6; border-radius:22px; }
.lab-toolbar,.slice-column,.measurement-notes,.measurement-state { border-color:#d6cde0; }
.slice-visual { background:radial-gradient(ellipse,#e7d6c3,transparent 67%); }
.region-panel { background:#fffcf7; padding:28px; }
.region-buttons button { border-radius:12px; min-height:44px; font-size:12px; background:#fbf8f0; }
.region-explanation { min-height:0; }
.region-explanation h3 { font-size:28px; }
.region-explanation>p:last-child { font-size:15px; line-height:1.65; }
.region-extra { margin-top:18px; }
.region-extra summary { font-size:12px; cursor:pointer; color:#625173; min-height:35px; padding:7px 0; }
.region-moment { font-size:14px; }
.function-context { background:#e8efdf; padding:25px; }
.function-context strong { font-size:20px; }
.measurement-state p { font-size:12px; }
.experience { margin-top:60px; border-radius:24px; }
.story h2 { font-size:36px; }
.story-lead,.idea-detail p,.scenario-response { font-size:15px; }
.story { padding:32px; }
.scenario-options button,.idea-buttons button,.view-controls button { min-height:44px; }
.scene-label .tiny { font-size:10px; }
.scene-caption { font-size:11px; }
.support-welcome { display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.support-welcome h2 { font-size:36px; letter-spacing:-1.2px; line-height:1.2; }
.support-welcome .eyebrow { font-size:10px; color:#755592; margin-bottom:16px; }
.support-welcome p:last-child { font-size:15px; color:#6b6170; margin-top:17px; max-width:430px; }
.support-welcome blockquote { margin:0; background:#fff0d0; border-radius:22px 22px 4px 22px; padding:28px; font-size:23px; line-height:1.5; font-weight:500; transform:rotate(1deg); }
.support-welcome blockquote>span { display:block; font:60px Georgia,serif; color:#a77b26; height:40px; }
.support-welcome cite { display:block; font-size:11px; font-style:normal; color:#7b6949; margin-top:20px; }
.family-patterns { border:1px solid #e1d8d0; border-radius:12px; margin-top:28px; padding:0 22px; }
.family-patterns>summary { cursor:pointer; padding:20px 0; font-size:14px; font-weight:600; }
.family-patterns[open] { padding-bottom:22px; }
.pattern-cards article { background:#f4eee7; }
.happy-path { background:#edf1e1; border-radius:22px; }
.path-steps li { position:relative; padding-top:18px; border-top:0; background:#fffdf7; border-radius:15px; padding:20px; }
.path-number { position:absolute; right:16px; top:16px; width:27px; height:27px; background:#e7eddc; }
.step-art { width:66px; height:66px; color:#5a7350; background:#eaf0df; border-radius:18px; padding:8px; }
.step-art svg { width:100%; height:100%; }
.path-when { margin-top:22px; }
.path-steps li>p:last-child { font-size:14px; }
.reset-section { gap:70px; padding:70px 35px; }
.plan-card { background:#f6e6c8; border-color:#e9d5b1; border-radius:20px; }
.plan-card select { font-size:16px; background:#fffcf3; color:#352b3f; border-color:#cabca5; }
.plan-card .privacy-note { font-size:12px; }
.science { margin-top:5px; }
button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible { outline:3px solid #8b50bf; outline-offset:4px; }
@keyframes reply-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:1000px) {
  .welcome-hero { padding:38px 8px; }
  .welcome-copy h1 { font-size:64px; }
  .brain-conversation { gap:28px; padding:28px; }
  .discovery-trail a { gap:9px; padding:17px 12px; }
  .trail-icon { width:32px; height:36px; }
  .discovery-trail strong { font-size:12px; }
}
@media(max-width:700px) {
  main { padding:0 16px; }
  .site-header { padding:18px 20px; gap:12px; }
  .section-nav { font-size:12px; }
  .source-link { font-size:12px; }
  .welcome-hero { grid-template-columns:1fr; gap:18px; padding:30px 5px 38px; }
  .welcome-copy h1 { font-size:58px; letter-spacing:-3px; }
  .welcome-copy .eyebrow { font-size:8px; letter-spacing:1px; margin-bottom:16px; }
  .welcome-copy>p:not(.eyebrow) { font-size:16px; margin-top:20px; }
  .welcome-note { font-size:11px; }
  .welcome-art { width:min(100%,400px); margin:auto; }
  .art-sticker { font-size:12px; padding:10px 13px; }
  .art-caption { bottom:-5px; font-size:11px; }
  .brain-conversation { grid-template-columns:1fr; padding:24px 18px; gap:22px; border-radius:20px; }
  .conversation-intro { padding:0; }
  .chat-stamp { display:none; }
  .conversation-intro h2 { font-size:30px; }
  .conversation-intro .conversation-note { margin-top:12px!important; max-width:100%; }
  .conversation-card { padding:20px 16px; }
  .conversation-card h3 { font-size:22px; }
  .guide-label { font-size:11px; }
  .guide-step { font-size:10px; }
  .wonder-choices button { font-size:14px; gap:8px; padding:13px 10px; }
  #try-buttons { flex-direction:column; }
  #try-buttons button { width:100%; font-size:14px; }
  .discovery-trail { grid-template-columns:1fr; gap:10px; padding-top:16px; }
  .discovery-trail a { padding:16px; }
  .discovery-trail strong { font-size:14px; }
  .trail-icon { width:40px; height:40px; }
  .circuit-lab { padding-top:45px; }
  .section-intro h2 { font-size:34px; }
  .region-panel { padding:25px 20px; }
  .region-buttons { gap:6px; }
  .region-buttons button { font-size:12px; }
  .region-explanation h3 { font-size:27px; }
  .region-explanation>p:last-child { font-size:15px; }
  .measurement-state p { font-size:12px; }
  .slice-controls button { min-height:44px; }
  .experience { margin-top:42px; }
  .story { padding:26px 22px; }
  .story h2 { font-size:31px; }
  .view-controls { bottom:73px; }
  .thought { bottom:124px; }
  .scene-caption { font-size:10px; }
  .support-welcome { grid-template-columns:1fr; gap:25px; }
  .support-welcome h2 { font-size:31px; }
  .support-welcome blockquote { font-size:22px; padding:24px; }
  .family-patterns { padding:0 18px; }
  .family-patterns>summary { font-size:13px; }
  .path-steps li { padding:20px; }
  .path-number { left:auto; right:18px; top:18px; }
  .path-when { margin-top:20px; }
  .reset-section { padding:48px 6px; gap:28px; }
  .reset-heading h2 { font-size:34px; }
}
@media(prefers-reduced-motion:reduce) { #chat-outcome { animation:none; } .welcome-primary { transition:none; } }
