@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,650&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#29243e;background:#faf8f3;font-size:17px;line-height:1.6}*{box-sizing:border-box}body{margin:0}header{padding:24px 5%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dedbe5;background:#fffdf9;gap:16px}.brand{display:flex;align-items:center;gap:15px;text-decoration:none;color:inherit;font-weight:700;font-size:13px;letter-spacing:1.5px}.brand small{display:block;font-size:12px;letter-spacing:0;font-weight:400}.mark{display:grid;place-items:center;width:55px;height:55px;border-radius:18px;background:#7257d5;color:white;font-size:20px;letter-spacing:-1px}main{max-width:1230px;margin:auto;padding:46px 32px 80px}h1,h2,h3{line-height:1.17}h1,h2{font-family:Fraunces,Georgia,serif;font-weight:500}h1{font-size:clamp(40px,5vw,72px);letter-spacing:-2px;margin:20px 0}h2{font-size:32px}h3{font-size:20px}p{margin:12px 0}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:12px;font-weight:700;color:#7257d5}.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:50px;align-items:center;margin-bottom:55px}.hero p{max-width:590px;color:#625c73}.hero-art{background:#ece6ff;border-radius:38px;padding:35px;transform:rotate(2deg);position:relative;min-height:280px}.hero-art .equation{font-family:Fraunces;font-size:42px;padding:20px;background:white;border-radius:20px;box-shadow:0 12px 30px #42345a12;transform:rotate(-5deg)}.pill{display:inline-block;border-radius:30px;padding:5px 13px;background:#e3f3e9;color:#256845;font-size:13px;font-weight:600}.hero-art .pill{margin:24px 0 0 20px;transform:rotate(-5deg)}.dots{font-size:30px;color:#b0803c;letter-spacing:10px}.entry{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}input,select,textarea{font:inherit;border:1px solid #c7c0d4;background:white;border-radius:10px;padding:12px;color:#29243e;max-width:100%}input:focus,textarea:focus,button:focus-visible,select:focus{outline:3px solid #b9a7f3;outline-offset:3px}button{font:inherit;font-weight:600;border:1px solid #d6d0e0;border-radius:12px;padding:11px 18px;background:white;color:#352951;cursor:pointer;min-height:46px}button:hover{background:#eee8fa}button:disabled{cursor:default;opacity:.6}.primary{background:#7257d5;color:white;border-color:#7257d5}.primary:hover{background:#5840b0}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.card{background:white;border:1px solid #e4dfeb;border-radius:20px;padding:24px;text-align:left;box-shadow:0 5px 0 #ece8ef44}.card .num{font-size:13px;font-weight:700;background:color-mix(in srgb,var(--accent),white 90%);color:var(--accent);padding:8px 11px;border-radius:10px;display:inline-block}.card h3{margin:17px 0 10px}.card p{font-size:14px;color:#625c73}.card button{width:100%;margin-top:15px}.card progress{width:100%;height:6px;accent-color:var(--accent)}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.muted,.tiny{color:#686074}.tiny{font-size:13px}.study-top{margin-bottom:25px}.study-top h1{font-size:42px;margin:10px 0}.study-layout{display:grid;grid-template-columns:260px 1fr;gap:25px}.topics{align-self:start;position:sticky;top:20px;display:grid;gap:8px}.topics button{text-align:left;font-size:15px}.topics button.active{background:#ece6ff;border-color:#7257d5}.learn{padding:25px;background:#f0ebfb;border-radius:20px;margin-bottom:20px}.formula{padding:14px;background:white;border-radius:10px;font-weight:600;margin:12px 0;overflow-wrap:anywhere}.learn summary{cursor:pointer;font-weight:700}.question{background:white;border:1px solid #e4dfeb;border-radius:22px;padding:30px}.question h2{font-family:'DM Sans',sans-serif;font-size:24px;line-height:1.5;margin:22px 0}.answers{display:grid;gap:10px}.answers button{text-align:left;font-weight:500}.feedback{padding:20px;margin:20px 0;border-radius:14px;background:#fff0df;border:1px solid #d8a065}.feedback.correct{background:#e4f5e9;border-color:#6bb980;color:#205e36}.feedback h3{font-size:18px;margin:0 0 8px}.stats{display:flex;gap:15px;flex-wrap:wrap;margin:24px 0}.stats span{background:white;border:1px solid #e4dfeb;padding:12px 20px;border-radius:14px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.hint{background:#fff6d9;padding:14px;border-radius:10px;margin-top:12px}.hidden,[hidden]{display:none!important}footer{text-align:center;font-size:12px;padding:25px;color:#726880;border-top:1px solid #e4dfeb}#r-panel{position:fixed;right:20px;bottom:20px;top:100px;width:460px;max-width:calc(100vw - 30px);overflow:auto;z-index:10;background:#fff;border:1px solid #ccc0df;border-radius:22px;padding:24px;box-shadow:0 20px 100px #29204444}#r-panel h2{margin:0}#r-panel p{font-size:14px}#rcode{width:100%;min-height:190px;resize:vertical;font:14px/1.6 monospace;background:#211d32;color:#eee7ff;padding:15px;margin:8px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1edf7;padding:12px;border-radius:10px;font-size:13px}canvas{max-width:100%;height:auto}label{display:block}#entry-label{font-size:14px;margin-top:22px}.banner{padding:18px 24px;border-radius:15px;background:#fff2d8;margin:20px 0}.search{width:100%;margin:15px 0}.back{border:0;background:transparent;padding-left:0}.plan{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 30px}.plan span{font-size:13px;padding:10px;background:#f0eaf9;border-radius:10px}.question input{width:100%}a{color:#6142b2}@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.hero{gap:25px}.study-layout{grid-template-columns:1fr}.topics{position:static;display:flex;overflow:auto;padding-bottom:8px}.topics button{min-width:180px}.hero-art{padding:22px}.hero-art .equation{font-size:30px}}@media(max-width:600px){header{padding:15px}.brand small{display:none}.brand{font-size:11px;letter-spacing:.5px}.mark{width:42px;height:42px}header button{font-size:13px;padding:8px}main{padding:28px 18px}.hero{grid-template-columns:1fr;gap:25px}.hero-art{min-height:170px}.grid{grid-template-columns:1fr}.card{padding:20px}.question{padding:20px}.question h2{font-size:20px}.entry input{width:100%}.study-top h1{font-size:34px}#r-panel{top:80px;right:15px;bottom:15px}.hero{margin-bottom:30px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
