@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root{--font-sans:'DM Sans',Inter,system-ui,sans-serif;--font-display:'Outfit','DM Sans',system-ui,sans-serif;--color-primary:#5833b3;--color-primary-hover:#45268f;--color-primary-soft:#eee8ff;--color-accent:#a15b00;--color-accent-soft:#fff1d7;--color-violet:#5833b3;--color-sky:#126b91;--color-bg:#f6f4fc;--color-surface:#fff;--color-surface-subtle:#f3f0fb;--color-text:#201936;--color-text-muted:#5f5871;--color-border:#e1dbee;--color-border-strong:#c9bedf;--shadow-sm:0 2px 8px rgb(54 35 104 / .06);--shadow-md:0 16px 42px rgb(54 35 104 / .1);--shadow-lg:0 28px 70px rgb(42 26 88 / .2);--radius-sm:12px;--radius-md:18px;--radius-lg:26px}
body{background:radial-gradient(circle at 3% 13%,#ede6ff 0,transparent 24%),radial-gradient(circle at 96% 2%,#fff0d6 0,transparent 24%),var(--color-bg)}
h1,h2,h3,h4{font-family:var(--font-display);letter-spacing:-.035em}h1 em,h2 em{font-style:normal;color:var(--color-primary)}
button{border-radius:12px;box-shadow:0 5px 12px rgb(67 37 143 / .09)}button:hover{box-shadow:0 8px 18px rgb(67 37 143 / .16)}.button-secondary,.ghost{background:#fff;box-shadow:none}.button-secondary:hover,.ghost:hover{border-color:#b6a3e0;color:var(--color-primary-hover)}
input,textarea,select{border-radius:12px}input:hover,textarea:hover,select:hover{border-color:#9e8acb}input::placeholder,textarea::placeholder{color:#777088}.eyebrow{color:#6240b6}.panel,.lesson-pane,.topic-tree,.saved-facts-library{box-shadow:var(--shadow-sm)}
.app-header{position:sticky;top:0;background:rgb(252 250 255 / .91);border-color:#e9e3f4;box-shadow:0 5px 25px rgb(51 31 103 / .04)}.brand{gap:10px}.brand-mark{width:46px;height:46px;overflow:hidden;border:2px solid #d8c9ff;border-radius:15px;background:#6f4bd0;box-shadow:0 6px 15px rgb(87 50 177 / .18)}.brand-mark img{width:100%;height:100%;object-fit:cover;object-position:center 38%}.brand strong{font:800 22px/1 var(--font-display);letter-spacing:-.04em}.brand strong em{font-style:normal;color:var(--color-primary)}.brand small{font-size:10px;letter-spacing:.01em}.app-nav{border-radius:16px;box-shadow:var(--shadow-sm)}.app-nav-item{border-radius:12px;box-shadow:none}.app-nav-item.active{color:#45268f}.app-nav-item:hover{box-shadow:none}
main{padding-top:clamp(28px,4vw,54px)}.hero{min-height:0;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);column-gap:clamp(28px,6vw,82px);row-gap:68px;align-items:start}.hero-copy{min-height:670px;padding-top:clamp(16px,3vw,46px)}.hero-copy:before{width:530px;height:530px;left:-230px;top:-140px;background:radial-gradient(circle,#e9dfff,transparent 68%)}.hero-copy h1{max-width:760px;margin:17px 0 20px;font-size:clamp(56px,6.5vw,88px);line-height:1.02;font-weight:800;letter-spacing:-.065em}.hero-copy>p:not(.eyebrow){max-width:610px;margin:0;color:#514a67;font-size:17px;line-height:1.7}
.learning-cycle{gap:10px;margin-top:25px}.learning-cycle li{gap:7px;padding:7px 11px 7px 7px;border:1px solid #dfd5f7;border-radius:99px;background:rgb(255 255 255 / .8);color:#443763;font-size:11px;box-shadow:0 5px 15px rgb(75 47 145 / .06)}.learning-cycle span{border:0;background:#e9deff;color:#4a2a96;font-size:11px;font-weight:900}
.hero-visual{position:relative;width:min(570px,100%);height:290px;margin:16px 0 0 auto;isolation:isolate;animation:float-in .65s ease-out both}.hero-glow{position:absolute;inset:48px 8% 2px;border:1px solid #e0d3ff;border-radius:50% 50% 36% 36%;background:radial-gradient(circle at 50% 30%,#fff8e8 0,#e9ddff 50%,#ddd0ff 100%);box-shadow:0 22px 50px rgb(96 56 180 / .12)}.hero-visual img{position:absolute;z-index:1;left:50%;bottom:-6px;width:min(315px,63%);height:310px;object-fit:contain;transform:translateX(-50%);filter:drop-shadow(0 16px 12px rgb(65 39 122 / .14));animation:mascot-bob 5s ease-in-out infinite}.float-note{position:absolute;z-index:2;display:flex;gap:9px;align-items:center;padding:10px 13px;border:1px solid #dfd6f2;border-radius:13px;background:#fff;color:#483a68;box-shadow:0 12px 32px rgb(58 34 117 / .13);font-size:11px;font-weight:700}.float-note b{color:#5833b3;font-size:17px}.note-one{left:3%;top:38%}.note-two{right:1%;bottom:13%}
.auth-panel{padding:clamp(22px,3vw,35px);border:1px solid #dcd0f3;border-radius:28px;background:rgb(255 255 255 / .97);box-shadow:0 28px 65px rgb(60 34 118 / .13);animation:float-in .7s .12s ease-out both}.auth-panel:after{inset:12px -12px -12px 12px;border-color:#e7dfff}.auth-heading{display:flex;align-items:center;gap:13px;margin-bottom:20px}.auth-heading strong{font:700 18px/1.2 var(--font-display);color:#241a43}.auth-heading p{margin:3px 0 0;color:#706780;font-size:12px}.auth-spark{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;background:#fff0cf;color:#885300;font-size:22px}.tabs{margin-bottom:20px;border-radius:13px}.tabs button{box-shadow:none}.tabs button.active{color:#4e2ba5}.auth-panel form{gap:14px}.auth-panel .field{gap:5px}.auth-panel .field label{font-size:12px}.auth-panel input,.auth-panel select{min-height:44px}.auth-panel form>button{min-height:48px;margin-top:4px}.auth-footnote{margin:18px 0 0;color:#766b8b;font-size:11px;text-align:center}
.intro-journey{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr);gap:clamp(24px,5vw,70px);padding:clamp(26px,4vw,46px);border:1px solid #ddd2f4;border-radius:30px;background:linear-gradient(125deg,#f0eaff,#faf7ff 55%,#fff5e5);box-shadow:var(--shadow-sm)}.intro-heading h2{margin:12px 0;font-size:clamp(28px,3.2vw,42px)}.intro-heading>p:last-child{margin:0;color:var(--color-text-muted);font-size:14px;line-height:1.6}.intro-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.intro-steps article{padding:22px 18px;border:1px solid #e5dafa;border-radius:19px;background:#fff;box-shadow:0 8px 23px rgb(71 39 141 / .06);transition:transform .2s ease,box-shadow .2s ease}.intro-steps article:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgb(71 39 141 / .11)}.intro-steps article span{color:#6540bd;font-size:10px;font-weight:900;letter-spacing:.1em}.intro-steps h3{margin:22px 0 8px;font-size:18px}.intro-steps p{margin:0;color:var(--color-text-muted);font-size:12px;line-height:1.55}
.page-title{font-weight:800;letter-spacing:-.055em}.dashboard-intro{max-width:620px}.create-spotlight{border-color:#5031a5;background:radial-gradient(circle at 80% 18%,rgb(255 215 131 / .28),transparent 30%),linear-gradient(125deg,#301667,#5834b4 62%,#8662d9);box-shadow:0 24px 54px rgb(53 29 117 / .2)}.create-spotlight:before{opacity:.1}.spotlight-copy h2{font-weight:700}.spotlight-copy>p{color:#f1eaff}.spotlight-cta{background:#ffd978;color:#513100;border-color:#ffe4a1}.spotlight-cta:hover{background:#ffe5a2;color:#513100}.spotlight-mascot{position:relative;align-self:end;min-height:250px}.spotlight-mascot img{position:absolute;right:-2%;bottom:-50px;width:min(280px,100%);height:310px;object-fit:contain;filter:drop-shadow(0 12px 18px rgb(28 10 68 / .28));animation:spotlight-bob 5s ease-in-out infinite}.spotlight-mascot span{position:absolute;z-index:1;top:6%;right:0;padding:8px 12px;border-radius:99px;background:#fff;color:#45258e;font-size:11px;font-weight:800;transform:rotate(5deg)}
.progress-card{border-color:#f0d6a6;background:radial-gradient(circle at 90% 8%,#ffe6b7,transparent 38%),linear-gradient(150deg,#fff8e8,#fff)}.course-card,.saved-fact-set{border-color:#e3ddef;box-shadow:0 6px 20px rgb(54 35 104 / .06)}.course-card:hover,.saved-fact-set:hover{box-shadow:0 18px 38px rgb(54 35 104 / .13)}.course-card.accent-0{--course-accent:#5833b3;--course-soft:#eee8ff}.course-card.accent-1{--course-accent:#b05e05;--course-soft:#fff1da}.course-card.accent-2{--course-accent:#0d7398;--course-soft:#e0f5fc}.course-card.accent-3{--course-accent:#a33673;--course-soft:#fce7f3}.creation-guide{border-color:#d9caf5;background:linear-gradient(145deg,#ede6ff,#fff 78%)}.creation-guide li:not(:last-child):before{background:#d3c3f1}.creation-guide li>span{border-color:#bfa9ec}.saved-facts-library{background:linear-gradient(145deg,#fff,#fbf9ff)}
.generation-view,.fact-generation-view{position:relative;overflow:hidden;border-color:#d9cdf0;background:linear-gradient(140deg,#fff,#faf7ff)}.generation-view:before,.fact-generation-view:before{content:'✦';position:absolute;right:24px;top:14px;color:#e9dcff;font-size:72px;line-height:1;pointer-events:none}.progress-track{background:#e9e2f5}.progress-track span{background:linear-gradient(90deg,#5833b3,#a876ec)}.generation-step.running{border-color:#c9b4eb;background:#f2ebff}.generation-step.running i{border-color:#d2bff1;border-top-color:#5833b3}
.topic-tree,.lesson-pane{border-color:#e0d8ee;border-radius:22px}.tree-item{border-radius:13px;box-shadow:none}.tree-item:hover{background:#f5f0ff;box-shadow:none}.tree-item.active{border-color:#c5b2e9;box-shadow:inset 3px 0 0 var(--color-primary)}.tree-index{background:#f0eaf8}.lesson-text{color:#302a3b}.lesson-word.current-word{color:#3d237f;background:#e9d9ff}.lesson-word.spoken-word{color:#3d237f}.lesson-audio-card,.teach-prompt{border-color:#d5c7ee;background:#f2edfc;box-shadow:0 10px 30px rgb(57 34 111 / .09)}.lesson-audio-card.preparing{border-color:#e2d9f1;background:#faf7ff}.audio-preparing{border-color:#d5c8e9}.audio-stop{border-color:#d3c6e9}.flow-status{background:#faf8ff}.flow-status.ready{border-color:#d4c5e8;background:#f2edff}.sequential-question{background:#faf8ff}.evaluation-report,.evaluation-card{border-color:#e0d8ee}.quiz-progress-track,.concept-result-track,.tree-progress-track{background:#e9e2f4}.tree-progress-track i,.quiz-progress-track span,.concept-result-track i{background:linear-gradient(90deg,#7b4dd4,#5833b3)}
@keyframes float-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes mascot-bob{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-9px)}}@keyframes spotlight-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@media(max-width:1000px){.hero{grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);gap:40px}.hero-copy h1{font-size:clamp(50px,6vw,70px)}.intro-journey{grid-template-columns:1fr}.spotlight-mascot img{right:-8%}}
@media(max-width:900px){.hero{grid-template-columns:1fr;gap:28px}.hero-copy{min-height:0;padding-top:0}.hero-visual{height:255px;margin:0 auto}.hero-visual img{height:270px}.auth-panel{width:min(100%,660px);max-width:none;margin:0 auto}.intro-journey{margin-top:20px}}
@media(max-width:700px){.intro-steps{grid-template-columns:1fr}.intro-steps article{padding:18px}.intro-steps h3{margin-top:10px}.app-header{position:relative}}
@media(max-width:600px){.brand-mark{width:40px;height:40px}.brand strong{font-size:19px}.hero-copy h1{font-size:clamp(48px,12vw,70px)}.hero-copy>p:not(.eyebrow){font-size:15px}.hero-visual{height:225px}.hero-visual img{height:240px}.float-note{font-size:9px;padding:7px 9px}.note-one{left:0}.note-two{right:0}.learning-cycle{gap:7px}.learning-cycle li{font-size:10px}.auth-panel{padding:22px}.intro-journey{padding:22px}.spotlight-mascot{min-height:190px}.spotlight-mascot img{width:220px;height:245px;right:0;bottom:-28px}.spotlight-mascot span{top:0}}
.consent-header{display:flex}.consent-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1fr);gap:clamp(24px,6vw,80px);align-items:center;max-width:1100px;min-height:calc(100dvh - 110px)}.consent-intro h1{font-size:clamp(44px,6vw,72px)}.consent-intro>p:last-of-type{max-width:410px;color:var(--color-text-muted);font-size:18px}.consent-intro img{display:block;width:min(310px,90%);max-height:300px;object-fit:contain;margin:12px auto 0;filter:drop-shadow(0 15px 18px rgb(61 34 121 / .14))}.consent-panel{max-width:540px}.consent-panel>p:first-child{margin-top:0;color:var(--color-text-muted)}.consent-panel form+form{margin-top:30px;padding-top:28px;border-top:1px solid var(--color-border)}.consent-panel form>label{font-size:14px;font-weight:650}.consent-panel input[type=checkbox]{width:20px;min-height:20px;vertical-align:middle;accent-color:var(--color-primary)}.consent-panel input[type=email]{margin-top:10px}.consent-panel form p{margin:0}.consent-panel button{width:100%}.consent-panel #status{font-weight:700;color:var(--color-primary)}
@media(max-width:700px){.consent-layout{grid-template-columns:1fr;padding-top:24px}.consent-intro img{max-height:200px}.consent-panel{max-width:none}}
.sequential-options button:hover{border-color:#a98bdc;background:#f3edff}.quiz-complete{background:#f2edff}.quiz-complete strong{color:var(--color-primary)}.learning-modal-overlay{background:rgb(25 13 55 / .74)}.learning-modal-footer{background:#fbf9ff}.modal-question,.quick-facts{background:#f8f5ff}.quick-fact-main{background:linear-gradient(135deg,#fbf9ff,#fff)}.quick-fact-number{background:#ece5ff}.quick-fact-card:focus-visible{outline-color:#9c7ed4}.exam-question{border-color:#ded3ef;border-radius:16px;background:#faf8ff;padding:18px}.exam-choices label{min-height:44px;padding:9px 12px;border:1px solid #e2d9ef;border-radius:10px;background:#fff}.exam-choices label:hover{border-color:#b69ce3;background:#f6f1ff}.exam-choices input[type=radio]{width:18px;min-height:18px;accent-color:var(--color-primary)}
