.learning-welcome .welcome-hero h1 { font-size:clamp(2.6rem,4.8vw,4.7rem); line-height:1.08; }
.welcome-goal-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:28px 0 18px; }
.welcome-goal-choices a { display:block; padding:18px; border:1px solid var(--border-color); border-radius:14px; color:var(--text-primary); background:var(--bg-card); text-decoration:none; }
.welcome-goal-choices a:hover { border-color:var(--focus-accent); }
.welcome-goal-choices strong { display:block; font-size:1rem; line-height:1.45; }
.welcome-goal-choices strong span { float:right; color:var(--focus-accent); }
.welcome-goal-choices small { display:block; margin-top:7px; color:var(--text-secondary); font-size:.8rem; }
.learning-welcome .welcome-subject-grid--focused { grid-template-columns:repeat(3,minmax(0,1fr)); }
.welcome-goal-tech { grid-column:1 / -1; }
 .welcome-goal-choices .welcome-goal-language { --choice-bg:#c4e1cf; --choice-ink:#2b5542; }
.welcome-goal-choices .welcome-goal-exam { --choice-bg:#f4d49b; --choice-ink:#724b21; }
.welcome-goal-choices .welcome-goal-tech { --choice-bg:#d5c8ef; --choice-ink:#594477; }
.welcome-goal-choices a { background:var(--choice-bg); color:var(--choice-ink); border-color:transparent; transition:transform .2s, box-shadow .2s; }
.learning-welcome .welcome-goal-choices :is(strong, small, .welcome-choice-icon), .welcome-goal-choices strong span { color:var(--choice-ink); }
.welcome-choice-icon { display:flex; align-items:center; font-size:1.7rem; line-height:1; margin-bottom:14px; }
.welcome-goal-tech .welcome-choice-icon { float:left; margin:7px 18px 0 0; }
@media(hover:hover) { .welcome-goal-choices a:hover { border-color:var(--choice-ink); transform:translateY(-3px); box-shadow:0 8px 22px #203b3114; } }
@media(prefers-reduced-motion:reduce) { .welcome-goal-choices a { transition:none; } .welcome-goal-choices a:hover { transform:none; } }
@media(max-width:850px) { .learning-welcome .welcome-subject-grid--focused { grid-template-columns:1fr; } }
.welcome-subject[data-subject="languages"] { background:var(--bg-card); }
.welcome-goal-choices a:focus-visible { outline:3px solid var(--focus-accent); outline-offset:4px; }
@media(max-width:600px) { .welcome-goal-choices, .learning-welcome .welcome-subject-grid--focused { grid-template-columns:1fr; } }

/* Show the practice loop in the first screen, with a usable sample. */
.welcome-practice-promise { color:var(--text-secondary); font-size:.84rem; line-height:1.65; max-width:470px; margin:16px 0 0; }
.memory-demo { width:100%; max-width:440px; justify-self:end; border:1px solid var(--border-color); border-radius:26px; padding:22px; background:var(--bg-secondary); box-shadow:12px 14px 0 color-mix(in srgb,var(--focus-accent) 10%,transparent); }
.memory-demo-heading { display:flex; align-items:center; gap:10px; margin:0 0 20px; font-size:.62rem; letter-spacing:.09em; font-weight:650; color:var(--focus-accent); }
.memory-demo-heading > span:first-child { font-size:1.5rem; }
.memory-demo-tag { margin-left:auto; border:1px solid var(--border-color); border-radius:20px; padding:5px 9px; letter-spacing:0; color:var(--text-secondary); }
.memory-demo-card { background:var(--bg-card); border:1px solid var(--border-color); border-radius:18px; padding:26px; }
.memory-demo-subject { color:var(--text-secondary); font-size:.78rem; margin:0 0 22px; }
.memory-demo h2 { font-size:clamp(1.7rem,3vw,2.4rem); line-height:1.2; letter-spacing:-.03em; margin:0; }
.memory-demo h2 em { color:var(--focus-accent); }
.memory-demo-prompt { color:var(--text-secondary); font-size:.8rem; margin:20px 0 14px; }
.memory-demo-options { display:grid; gap:9px; }
.memory-demo-options button { display:flex; justify-content:space-between; align-items:center; width:100%; min-height:46px; border:1px solid var(--border-color); background:var(--bg-primary); color:var(--text-primary); border-radius:10px; padding:12px 15px; text-align:left; font:inherit; font-size:.85rem; cursor:pointer; }
.memory-demo-options button:hover:not(:disabled) { border-color:var(--focus-accent); background:color-mix(in srgb,var(--focus-accent) 10%,var(--bg-card)); }
.memory-demo-options button:disabled { opacity:1; cursor:default; }
.memory-demo-options button[data-result="correct"] { border-color:#326d47; background:#d5eac4; color:#24432d; }
.memory-demo-options button[data-result="missed"] { border-color:#a46628; background:#f7dfbd; color:#684016; }
.memory-demo-feedback { font-size:.85rem; line-height:1.65; color:var(--text-primary); }
.memory-demo-feedback:not(:empty) { margin-top:18px; }
.memory-demo-reset { background:transparent; border:0; padding:10px 0 0; color:var(--focus-accent); font:inherit; font-size:.8rem; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.memory-demo-loop { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:22px 3px 14px; font-size:.76rem; font-weight:600; }
.memory-demo-loop span:last-child { background:#d5c8ef; color:#493663; border-radius:20px; padding:8px 12px; }
.memory-demo-loop b { color:var(--text-secondary); font-weight:400; }
.memory-demo-note { color:var(--text-secondary); font-size:.67rem; line-height:1.5; margin:0; text-align:center; }
.welcome-steps .welcome-step-number { font-family:inherit; font-size:.8rem; font-weight:650; letter-spacing:.08em; }
@media(max-width:739px) { .memory-demo { justify-self:center; max-width:440px; padding:18px; box-shadow:6px 7px 0 color-mix(in srgb,var(--focus-accent) 10%,transparent); } .memory-demo-card { padding:22px; } }
