:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#0f1b3d;background:#f4f5fa;line-height:1.55;font-size:16px;--navy:#0f1b3d;--pink:#ff3d8b;--soft:#f0f2f8;--border:#dce1ec;--muted:#59637d;--paper:#fff;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.48;cursor:wait}a{color:var(--navy)}.shell{max-width:1080px;margin:auto;padding:0 40px;min-height:100dvh}header{display:flex;align-items:center;justify-content:space-between;padding:26px 0 22px;gap:16px}.logo{font-size:28px;font-weight:850;letter-spacing:-1.5px;text-decoration:none;display:inline-flex;align-items:center;gap:7px}.logo span{color:var(--pink);font-size:35px;line-height:.8}.profile{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:650}.avatar{display:grid;place-items:center;background:var(--navy);color:white;width:34px;height:34px;border-radius:50%;font-size:13px}.profile small{font-weight:400}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:11px;font-weight:700;color:var(--muted)}nav{display:flex;gap:6px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:14px}nav a{font-size:13px;text-decoration:none;min-height:44px;padding:11px 17px;border-radius:12px;display:flex;align-items:center;gap:8px;color:var(--muted);font-weight:600}nav a[aria-current=page]{background:var(--navy);color:white}nav svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none}main{padding:30px 0 40px;display:grid;gap:22px;min-height:450px;align-content:start}main:not([data-screen=home]){max-width:760px;margin:auto}h1{font-size:clamp(28px,4vw,40px);line-height:1.15;letter-spacing:-1.5px;font-weight:750;margin:0;max-width:650px}h2{font-size:24px;line-height:1.3;letter-spacing:-.7px;margin:0}h3{font-size:16px;margin:0;font-weight:700}p{margin:0}.muted,small{color:var(--muted)}.muted{font-size:14px}.lead{max-width:560px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hero{background:var(--navy);border-radius:24px;padding:34px 38px;display:grid;grid-template-columns:1fr 140px;align-items:center;gap:20px;overflow:hidden;color:white}.hero .eyebrow{color:#b6c0dc;margin-bottom:14px}.hero h1{font-size:clamp(32px,4.8vw,47px);letter-spacing:-1.8px}.hero h1 em{font-style:normal;color:var(--pink)}.hero p:last-child{color:#ced4e6;font-size:14px;margin-top:15px}.hero-mark{width:120px;height:120px;position:relative;transform:rotate(-10deg);display:grid;place-items:center}.hero-mark:before,.hero-mark:after{content:'';position:absolute;border:1px solid #556184;border-radius:26px;width:88px;height:108px;transform:rotate(23deg)}.hero-mark:after{transform:rotate(-6deg);background:#1a2a56;border-color:#7a86a5}.hero-mark span{z-index:1;font-size:50px;font-weight:750;color:var(--pink);transform:rotate(6deg)}.section-label{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.section-label h2{font-size:19px}.section-label small{font-size:12px}.choice{background:white;border:1px solid var(--border);border-radius:20px;padding:25px;text-align:left;color:inherit;display:flex;flex-direction:column;gap:14px;min-height:240px;position:relative;box-shadow:0 4px 14px #0f1b3d04}.choice:hover{border-color:#9aa4c0;box-shadow:0 8px 22px #0f1b3d0b}.choice-head{display:flex;justify-content:space-between;align-items:center;width:100%}.number{font-size:11px;letter-spacing:1.5px;color:var(--muted);font-weight:700}.route-icon{width:46px;height:46px;border-radius:13px;background:var(--soft);display:grid;place-items:center}.route-icon svg{width:25px;height:25px;fill:none;stroke:var(--navy);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.choice strong{font-size:22px;line-height:1.2;letter-spacing:-.6px;max-width:260px}.choice small{font-size:14px;max-width:310px}.choice-link{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:auto;font-size:13px;font-weight:700;padding-top:6px}.choice-link b{width:30px;height:30px;display:grid;place-items:center;background:var(--pink);border-radius:50%;font-size:18px}.primary,.secondary,.danger{border:0;border-radius:12px;padding:13px 20px;min-height:48px;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-weight:650;font-size:14px;gap:8px}.primary{background:var(--pink);color:var(--navy)}.primary:hover{background:#ff66a3}.secondary{background:var(--soft);color:var(--navy);border:1px solid var(--border)}.secondary:hover{background:#e4e8f3}.danger{background:#fff0f6;color:#8a1745}.plain{background:none;border:0;color:var(--navy);padding:12px 0;text-decoration:underline;text-underline-offset:4px;font-size:13px;min-height:44px}.row{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.actions{display:flex;gap:12px;flex-wrap:wrap;padding-top:8px}.box,.notice{background:white;border:1px solid var(--border);padding:22px;border-radius:16px;display:grid;gap:10px}.notice{font-size:14px;margin-top:16px;background:#fff0f6;border-color:#f2b7d0}.notice[hidden]{display:none}.trial-note{border-top:1px solid var(--border);padding-top:20px;display:grid;gap:10px}.trial-note h3{font-size:13px;display:flex;gap:8px;align-items:center}.trial-note h3:before{content:'';width:7px;height:7px;background:var(--pink);border-radius:50%}.trial-note .muted{font-size:13px;max-width:720px}label{display:grid;gap:9px;font-size:13px;font-weight:600}input,textarea,select{width:100%;min-width:0;background:white;border:1px solid #c7cfe0;border-radius:12px;padding:13px;color:var(--navy);font-weight:400;font-size:16px}input::placeholder,textarea::placeholder{color:#727c93}textarea{min-height:150px;resize:vertical;line-height:1.65}input:focus,textarea:focus,select:focus{border-color:var(--navy)}.photos{display:grid;gap:15px}.photos:empty{display:none}.photo{display:grid;grid-template-columns:90px minmax(0,1fr);gap:16px;background:white;border:1px solid var(--border);border-radius:16px;padding:16px}.photo img{width:90px;height:115px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}.photo-content{display:grid;gap:8px;min-width:0}.photo-content strong{overflow-wrap:anywhere;font-size:13px}.photo-controls{display:flex;gap:8px;flex-wrap:wrap}.photo-controls button{padding:7px 12px;min-height:44px}.file-label{display:grid;gap:10px;padding:18px;background:white;border:1px dashed #aab5ce;border-radius:16px}.file-label input{padding:0;border:0;border-radius:0;font-size:12px}.file-label input::file-selector-button{background:var(--soft);border:0;border-radius:8px;color:var(--navy);padding:10px;margin-right:8px;cursor:pointer;font-weight:600}.progress,progress{height:6px;overflow:hidden;background:#dce1ec;border-radius:6px;width:100%;border:0;accent-color:var(--pink)}progress::-webkit-progress-bar{background:#dce1ec;border-radius:6px}progress::-webkit-progress-value{background:var(--pink);border-radius:6px}progress::-moz-progress-bar{background:var(--pink)}.progress span{display:block;height:100%;background:var(--pink)}.equation{font-size:clamp(26px,5vw,38px);font-weight:650;text-align:center;padding:20px;letter-spacing:-1px;overflow-wrap:anywhere}.history{display:grid;gap:12px;background:white;border:1px solid var(--border);border-radius:16px;padding:22px}.history h2{font-size:21px}blockquote{margin:0;border-left:3px solid var(--pink);padding:14px 18px;background:white;color:var(--muted);font-size:15px;border-radius:0 10px 10px 0}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.pill{font-size:12px;background:var(--soft);border-radius:20px;padding:5px 10px}footer{border-top:1px solid var(--border);padding:20px 0 28px;display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:11px}#feedback:empty{display:none}#feedback{padding:16px;background:#fff0f6;border:1px solid #f2b7d0;color:#701d42;border-radius:12px;margin:0 auto 20px;max-width:760px;font-size:14px}.skip{position:absolute;left:10px;top:-60px}.skip:focus{top:10px;background:white;padding:12px;z-index:9}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #586fb5;outline-offset:4px}details{background:white;border:1px solid var(--border);border-radius:14px;padding:17px 20px}summary{cursor:pointer;color:var(--navy);font-size:14px;font-weight:600;min-height:24px}details>div{padding-top:16px;display:grid;gap:14px}img{max-width:100%;height:auto}.login-shell{max-width:960px}.login-shell main{max-width:none;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:60px;padding:80px 0;min-height:70vh}.login-intro h1{font-size:clamp(36px,5vw,54px);letter-spacing:-2px}.login-intro h1 em{font-style:normal;background:linear-gradient(transparent 70%,#ff3d8b66 70%)}.login-intro .eyebrow{margin-bottom:20px}.login-intro>p:last-child{margin-top:22px;font-size:15px;color:var(--muted)}.login-card{background:white;border:1px solid var(--border);padding:30px;border-radius:22px;display:grid;gap:22px;box-shadow:0 18px 50px #0f1b3d08}.login-card form{display:grid;gap:20px}.login-card h2{font-size:22px}.login-card .primary{width:100%}.login-card [role=alert]{color:#8a1745;font-size:14px}.session-note{font-size:12px;color:var(--muted)}@media(max-width:640px){.shell{padding:0 20px 90px;min-height:100dvh}header{padding:22px 0 12px}.logo{font-size:25px}.profile{font-size:12px}nav{position:fixed;z-index:10;bottom:0;left:0;right:0;background:white;border-top:1px solid var(--border);border-bottom:0;justify-content:space-around;padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:5px;box-shadow:0 -6px 22px #0f1b3d06}nav a{flex:1;max-width:140px;display:flex;flex-direction:column;gap:4px;padding:7px 4px;font-size:10px;min-height:55px;border-radius:12px}nav svg{width:20px;height:20px}main{padding:18px 0 26px;gap:20px;min-height:400px}h1{font-size:29px;letter-spacing:-1px}.hero{padding:27px 24px;border-radius:20px;grid-template-columns:1fr}.hero h1{font-size:35px}.hero-mark{display:none}.hero .eyebrow{margin-bottom:12px}.hero p:last-child{font-size:13px}.grid{grid-template-columns:1fr;gap:12px}.choice{padding:20px;min-height:0;display:grid;grid-template-columns:1fr auto;gap:10px 14px;border-radius:18px}.choice-head{grid-row:1/4;grid-column:2;align-self:center;width:auto}.choice-head .number{display:none}.route-icon{width:48px;height:48px}.choice strong{font-size:21px;max-width:230px;grid-column:1}.choice small{grid-column:1;font-size:13px;max-width:260px}.choice-link{grid-column:1/-1;font-size:12px;border-top:1px solid var(--border);padding-top:12px;margin-top:3px}.choice-link b{width:26px;height:26px;font-size:16px}.section-label h2{font-size:17px}.section-label small{font-size:11px}.actions>*{flex:1 1 160px}.box{padding:18px}.photo{grid-template-columns:64px minmax(0,1fr);gap:10px;padding:12px}.photo img{width:64px;height:86px}.photo-controls{gap:5px}.photo-controls button{padding:6px 10px}.history{padding:18px}.trial-note .row{gap:0 15px}.login-shell{padding-bottom:20px}.login-shell main{grid-template-columns:1fr;gap:30px;min-height:auto;padding:30px 0 45px}.login-intro h1{font-size:39px}.login-intro>p:last-child{margin-top:16px}.login-card{padding:24px}.login-intro .eyebrow{margin-bottom:15px}footer{font-size:10px}main[data-screen=home]+#feedback{margin-top:0}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,border-color .15s,box-shadow .15s}}@media(min-width:641px){main[data-screen=quiz],main[data-screen=math]{padding-top:45px;padding-bottom:55px}}
