:root{--bg:#071512;--panel:#0d201b;--panel2:#102a23;--line:#214339;--text:#f3f7f4;--muted:#9ab0a8;--lime:#d5ff63;--green:#73dda9;--orange:#ff9d66;--red:#ff7a7a;--shadow:0 24px 70px #02080766;--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.01em}button{font:inherit;color:inherit}button:focus-visible{outline:3px solid var(--lime);outline-offset:3px}.shell{width:min(1160px,calc(100% - 40px));margin-inline:auto}.topbar{height:72px;position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1160px)/2));border-bottom:1px solid var(--line);background:#071512e8;backdrop-filter:blur(18px)}.brand{border:0;background:none;display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;cursor:pointer}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--lime);color:#102016;font-weight:900}.topbar nav{display:flex;gap:6px}.topbar nav button,.icon-btn{border:0;background:transparent;color:var(--muted);padding:9px 12px;border-radius:10px;cursor:pointer}.topbar nav button:hover,.icon-btn:hover{color:var(--text);background:var(--panel)}.icon-btn{font-size:20px}.view{display:none}.view.active{display:block;animation:in .35s ease}@keyframes in{from{opacity:0;transform:translateY(6px)}}.hero{min-height:620px;display:grid;grid-template-columns:1.04fr .96fr;align-items:center;gap:76px;padding:76px 0}.eyebrow,.page-head>p,.section-title>p{font-size:12px;letter-spacing:.13em;font-weight:800;color:var(--green)}.eyebrow span{display:inline-block;width:7px;height:7px;background:var(--lime);border-radius:50%;box-shadow:0 0 0 6px #d5ff6318;margin-right:8px}.hero h1{font-size:clamp(48px,6vw,78px);line-height:.98;letter-spacing:-.055em;margin:20px 0 26px}.hero h1 em{font-style:normal;color:var(--lime)}.lead{color:var(--muted);font-size:18px;max-width:600px}.actions,.result-actions{display:flex;gap:12px;margin:32px 0}.primary,.secondary{border-radius:12px;padding:13px 18px;font-weight:750;cursor:pointer}.primary{border:1px solid var(--lime);background:var(--lime);color:#102016}.primary:hover{filter:brightness(.92);transform:translateY(-1px)}.secondary{border:1px solid var(--line);background:var(--panel);color:var(--text)}.secondary:hover{border-color:#497062}.trust{display:flex;flex-wrap:wrap;gap:16px;color:var(--muted);font-size:12px}.hero-card{padding:26px;background:linear-gradient(145deg,#143128,#0b1c18);border:1px solid #315a4d;border-radius:28px;box-shadow:var(--shadow);transform:rotate(1.5deg)}.mini-top{display:flex;justify-content:space-between;font-size:11px;color:var(--green);letter-spacing:.09em}.mini-label{color:var(--muted);font-size:12px;margin-top:32px}.hero-card h2{font-size:20px;line-height:1.4;margin:12px 0 22px}.mini-option{display:flex;gap:14px;border:1px solid var(--line);padding:13px;border-radius:12px;margin:9px 0;color:var(--muted)}.mini-option.selected{border-color:var(--lime);background:#d5ff630c;color:var(--text)}.mini-progress{height:5px;background:#1c3b32;border-radius:4px;margin-top:26px}.mini-progress i{display:block;width:43%;height:100%;background:var(--lime);border-radius:4px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);border-block:1px solid var(--line)}.metrics div{padding:28px;text-align:center;border-right:1px solid var(--line)}.metrics div:last-child{border:0}.metrics strong{display:block;font-size:28px}.metrics span{color:var(--muted);font-size:12px}.section{padding:96px 0}.section-title{text-align:center;margin-bottom:40px}.section-title.left{text-align:left}.section-title h2,.page-head h1{font-size:clamp(34px,4vw,52px);line-height:1.05;letter-spacing:-.04em;margin:10px 0}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.feature-grid article{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}.feature-grid article>span{color:var(--lime);font-weight:800}.feature-grid h3{font-size:20px;margin:30px 0 8px}.feature-grid p{color:var(--muted);margin:0}.subject-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.subject-card{position:relative;min-height:210px;border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:22px;cursor:pointer;text-align:left;overflow:hidden}.subject-card:after{content:"";position:absolute;width:100px;height:100px;right:-35px;bottom:-35px;border-radius:50%;background:var(--subject);opacity:.15}.subject-card:hover{transform:translateY(-4px);border-color:var(--subject)}.subject-code{color:var(--subject);font-weight:900;font-size:26px}.subject-card h3{font-size:18px;margin:42px 0 8px;line-height:1.2}.subject-card p{color:var(--muted);font-size:12px;margin:0}.subject-card .resume{display:block;color:var(--lime);margin-top:12px;font-weight:700}.page{padding-block:72px;min-height:75vh}.page-head{margin-bottom:38px}.page-head>span{color:var(--muted)}.subject-grid.large{grid-template-columns:repeat(3,1fr)}.subject-grid.large .subject-card{min-height:240px}.notice{margin-top:28px;padding:18px 20px;border:1px solid #5b5330;background:#302d18;border-radius:14px;color:#d6cfaa}.narrow{max-width:800px}.back{border:0;background:none;color:var(--muted);cursor:pointer;padding:8px 0}.setup-card{margin-top:24px;padding:36px;border:1px solid var(--line);border-radius:26px;background:var(--panel)}.setup-top{display:flex;gap:22px;align-items:center}.setup-icon{width:72px;height:72px;border-radius:18px;display:grid;place-items:center;font-size:24px;font-weight:900;background:var(--subject);color:#071512}.setup-card h1{margin:0;font-size:32px}.setup-card p{color:var(--muted)}.setup-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:28px 0}.setup-facts div{padding:16px;background:var(--bg);border-radius:12px}.setup-facts b,.setup-facts span{display:block}.setup-facts span{color:var(--muted);font-size:12px}.setup-card .primary{width:100%;margin-top:12px}.exam-view.active{display:block}.exam-bar{height:72px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 max(20px,calc((100vw - 1160px)/2));border-bottom:1px solid var(--line);background:var(--bg)}.exam-bar>div{text-align:center}.exam-bar>div span{display:block;color:var(--muted);font-size:12px}.exam-bar>strong{justify-self:end;font-variant-numeric:tabular-nums}.exam-progress{height:4px;background:var(--panel)}.exam-progress i{display:block;height:100%;background:var(--lime);transition:width .2s}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;padding-block:34px}.question-card,.exam-layout aside{border:1px solid var(--line);background:var(--panel);border-radius:20px}.question-card{padding:36px}.q-meta{display:flex;gap:8px;margin-bottom:22px}.tag{font-size:11px;padding:5px 9px;border-radius:20px;background:var(--panel2);color:var(--green)}.stimulus{padding:20px;background:var(--bg);border-left:3px solid var(--green);border-radius:8px;margin:12px 0 24px;color:#d5dfda;white-space:pre-line}.stimulus .source{display:block;color:var(--muted);font-size:11px;margin-top:12px}.question-card h1{font-size:22px;line-height:1.4;margin:20px 0 24px}.q-options{display:grid;gap:10px}.q-option{display:flex;align-items:flex-start;gap:14px;text-align:left;padding:15px;border:1px solid var(--line);background:var(--bg);border-radius:13px;cursor:pointer}.q-option:hover{border-color:#497062}.q-option.selected{border-color:var(--lime);background:#d5ff6309}.letter{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;font-weight:800}.selected .letter{background:var(--lime);color:#071512;border-color:var(--lime)}.exam-actions{display:grid;grid-template-columns:auto auto 1fr;gap:10px;margin-top:28px}.exam-actions .primary{justify-self:end}.exam-layout aside{align-self:start;position:sticky;top:90px;padding:20px}.aside-head{display:flex;justify-content:space-between;align-items:center}.aside-head h3{margin:0}.aside-head button{border:0;background:none;cursor:pointer}.palette{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:18px 0}.palette button{aspect-ratio:1;border:1px solid var(--line);background:var(--bg);border-radius:8px;color:var(--muted);cursor:pointer}.palette button.current{outline:2px solid var(--lime);color:var(--text)}.palette button.answered{background:var(--green);border-color:var(--green);color:#071512}.palette button.marked{box-shadow:inset 0 -4px var(--orange)}.legend{display:flex;gap:12px;color:var(--muted);font-size:10px}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px}.legend .answered{background:var(--green)}.legend .marked{background:var(--orange)}.shortcut{color:var(--muted);font-size:10px;margin-top:16px}.result-hero{text-align:center;padding:42px;border:1px solid var(--line);border-radius:24px;background:var(--panel)}.score{font-size:72px;font-weight:900;letter-spacing:-.06em;color:var(--lime)}.result-hero h1{margin:0;font-size:34px}.result-hero p{color:var(--muted)}.result-stats,.progress-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.stat-box{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.stat-box b{display:block;font-size:28px}.stat-box span{color:var(--muted);font-size:12px}.topic-results{display:grid;gap:12px;margin-top:34px}.topic-row{display:grid;grid-template-columns:180px 1fr 48px;align-items:center;gap:16px}.topic-bar{height:9px;background:var(--panel2);border-radius:8px;overflow:hidden}.topic-bar i{display:block;height:100%;background:var(--green)}.review-list{display:grid;gap:12px}.review-item{border:1px solid var(--line);border-radius:16px;background:var(--panel);overflow:hidden}.review-head{width:100%;border:0;background:none;padding:18px;display:grid;grid-template-columns:1fr auto;gap:12px;text-align:left;cursor:pointer}.review-head span{font-size:11px;padding:5px 9px;border-radius:20px}.ok{color:var(--green);background:#73dda916}.bad{color:var(--red);background:#ff7a7a16}.skip{color:var(--orange);background:#ff9d6616}.review-body{display:none;padding:0 18px 20px}.review-item.open .review-body{display:block}.answer-line{padding:12px;border-radius:10px;background:var(--bg);margin:8px 0}.explanation{color:var(--muted);padding-top:10px}.history-card{border:1px solid var(--line);border-radius:20px;background:var(--panel);padding:24px}.history-head{display:flex;justify-content:space-between;align-items:center}.danger-link{border:0;background:none;color:var(--red);cursor:pointer}.history-row{display:grid;grid-template-columns:1fr repeat(3,120px);gap:16px;padding:16px 0;border-top:1px solid var(--line);align-items:center}.history-row span{color:var(--muted)}.empty{text-align:center;color:var(--muted);padding:50px}.danger{color:var(--red)!important}footer{border-top:1px solid var(--line);color:var(--muted);font-size:12px}footer .shell{min-height:90px;display:flex;align-items:center;justify-content:space-between}footer b{color:var(--text)}
body.light{--bg:#f3f6f1;--panel:#fff;--panel2:#e9f0eb;--line:#d5dfd8;--text:#11251e;--muted:#60756c;--lime:#9cce20;--green:#20885b;--shadow:0 24px 70px #49655820}.light .topbar{background:#f3f6f1e8}.light .primary{color:#102016}.light .stimulus{color:#30473e}
@media(max-width:900px){.hero{grid-template-columns:1fr;gap:20px;padding:55px 0}.hero-card{transform:none}.subject-grid,.subject-grid.large{grid-template-columns:repeat(2,1fr)}.feature-grid{grid-template-columns:1fr}.exam-layout{grid-template-columns:1fr}.exam-layout aside{position:static;order:-1}.metrics{grid-template-columns:repeat(2,1fr)}.metrics div:nth-child(2){border-right:0}.result-stats,.progress-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.shell{width:min(100% - 24px,1160px)}.topbar nav{display:none}.hero h1{font-size:48px}.subject-grid,.subject-grid.large{grid-template-columns:1fr}.subject-card{min-height:170px}.metrics div{padding:20px 10px}.setup-card,.question-card{padding:22px}.setup-facts{grid-template-columns:1fr}.exam-bar{grid-template-columns:auto 1fr auto;gap:8px}.exam-bar>div b{font-size:12px}.exam-actions{grid-template-columns:1fr 1fr}.exam-actions .primary{grid-column:1/-1;width:100%}.topic-row{grid-template-columns:110px 1fr 40px}.history-row{grid-template-columns:1fr 1fr}.history-row span:nth-child(3){display:none}footer .shell{flex-direction:column;justify-content:center;gap:4px}.trust{display:grid}.hero-card{padding:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.nav-tools{display:flex;align-items:center;gap:8px}.streak-chip{padding:7px 11px;border:1px solid #66502c;background:#302715;border-radius:20px;color:#ffd58a;font-size:12px;font-weight:800}.practice-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:28px 0 18px}.mode-card{border:1px solid var(--line);background:var(--bg);border-radius:14px;padding:17px;text-align:left;cursor:pointer}.mode-card b,.mode-card span{display:block}.mode-card b{font-size:15px}.mode-card span{color:var(--muted);font-size:11px;margin-top:4px}.mode-card.active{border-color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime);background:#d5ff6309}.custom-panel{display:none;margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:15px;background:var(--bg)}.custom-panel.show{display:block}.custom-panel h3{font-size:14px;margin:0 0 12px}.topic-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.topic-chip{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:20px;padding:8px 12px;font-size:12px;cursor:pointer}.topic-chip.active{border-color:var(--green);color:var(--text);background:#73dda916}.count-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.count-row select{min-width:120px;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:10px;padding:10px}.resume-box{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0;padding:14px 16px;border:1px solid #66502c;background:#302715;border-radius:13px}.resume-box span{color:#e0c996;font-size:12px}.resume-box button{white-space:nowrap}.setup-error{min-height:20px;color:var(--red)!important;font-size:12px}.mode-label{color:var(--green);font-weight:800}.progress-summary{grid-template-columns:repeat(5,1fr)}
.access-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:28px 0}.access-option{padding:22px;border:1px solid var(--line);border-radius:17px;background:var(--bg)}.access-option.featured{border-color:var(--lime);background:linear-gradient(145deg,#17362a,#0d201b)}.access-option p{margin:0!important;color:var(--green)!important;font-size:11px;font-weight:900;letter-spacing:.1em}.access-option h2{margin:12px 0 4px;font-size:25px}.access-option h2 small,.access-option span{color:var(--muted);font-size:12px}.access-option span{display:block;min-height:38px}.access-option button{width:100%;margin-top:18px}.access-option button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:900px){.progress-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.streak-chip{padding:6px 8px;font-size:11px}.practice-modes,.access-options{grid-template-columns:1fr}.resume-box,.count-row{align-items:stretch;flex-direction:column}.progress-summary{grid-template-columns:1fr 1fr}}
.stimulus h3{margin:0 0 4px;color:var(--green);font-size:12px;letter-spacing:.08em;text-transform:uppercase}.stimulus h4{margin:0 0 18px;color:var(--text);font-size:20px}.stimulus p{margin:0 0 14px}.data-visual{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:auto}.visual-title{font-weight:800;color:var(--text);margin-bottom:10px}.data-visual table{width:100%;border-collapse:collapse;font-size:13px;white-space:normal}.data-visual th,.data-visual td{border:1px solid var(--line);padding:9px;text-align:left}.data-visual th{background:var(--panel2);color:var(--green)}.phone-visual{width:min(300px,100%);margin:18px auto;padding:18px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(160deg,var(--panel),var(--bg));box-shadow:inset 0 0 0 5px #0002}.phone-top{width:70px;height:6px;margin:0 auto 18px;border-radius:999px;background:var(--line)}.phone-line{height:11px;margin:10px 0;border-radius:999px;background:var(--panel2)}.phone-line.wide{width:92%}.phone-line.short{width:54%}.notification{margin:16px 0;padding:12px;border-radius:12px;background:#ffd166;color:#2b2205;font-weight:800;font-size:12px;box-shadow:0 10px 26px #0004}
.mobile-tabbar{display:none}.taking-exam .mobile-tabbar{display:none!important}.light .secondary{background:#ffffff;color:#11251e}.light .subject-card,.light .feature-grid article,.light .setup-card,.light .question-card,.light .exam-layout aside,.light .result-hero,.light .stat-box,.light .history-card,.light .review-item{background:#ffffff}.light .pricing-card.featured{background:#11251e;color:#f7fbf6;border-color:#20885b}.light .pricing-card.featured li,.light .pricing-card.featured>span,.light .pricing-card.featured h2 small{color:#c8d8d0}.light .notice{background:#fff8dd;border-color:#ead27a;color:#5a4711}.light .resume-box,.light .streak-chip{background:#fff1cf;border-color:#e5bd64;color:#6b4812}.light .resume-box span{color:#6b4812}.light .stimulus,.light .q-option,.light .answer-line,.light .setup-facts div,.light .mode-card,.light .custom-panel{background:#f8faf6;color:#263d34}.light .q-option.selected,.light .mode-card.active,.light .topic-chip.active{background:#ecf7dc}.light .tag{background:#e5f0ea;color:#12683f}.light .data-visual,.light .math-card,.light .triangle-visual,.light .rectangle-visual,.light .square-visual,.light .coordinate-visual,.light .work-visual,.light .circle-visual,.light .parabola-visual,.light .token-visual,.light .boxplot{background:#ffffff}.light .hero-float{background:#ffffff;color:#11251e}.light input,.light select,.light textarea{background:#ffffff!important;color:#11251e!important}.light .mobile-tabbar{background:#fffffff2}
@media(max-width:760px){body{font-size:14px}.topbar{height:64px;padding-inline:12px}.brand{font-size:16px}.brand-mark{width:30px;height:30px;border-radius:9px}.nav-tools{gap:6px}.streak-chip{max-width:82px;overflow:hidden;white-space:nowrap;text-overflow:clip}.account-pill{width:38px;height:38px;justify-content:center;padding:0}.account-pill span{display:none}.icon-btn{width:38px;height:38px;padding:0}.hero{min-height:auto;padding:38px 0 26px!important;gap:28px}.hero h1{font-size:clamp(38px,12vw,48px);line-height:1}.lead{font-size:16px}.actions,.result-actions{display:grid;grid-template-columns:1fr;margin:24px 0}.actions button,.result-actions button{width:100%;min-height:48px}.trust{gap:8px}.hero-visual{width:100%!important;min-height:320px!important}.hero-visual>img{height:320px!important;min-height:320px!important;border-radius:20px}.hero-visual:after{border-radius:20px}.hero-float{max-width:calc(100% - 20px);padding:11px 13px}.hero-float.top{left:10px;top:14px}.hero-float.bottom{right:10px;bottom:14px}.metrics{border:1px solid var(--line);border-radius:16px;overflow:hidden}.metrics strong{font-size:22px}.section{padding:56px 0}.section-title h2,.page-head h1{font-size:clamp(31px,10vw,42px)}.story-section{padding:36px 0 54px!important}.story-copy h2{font-size:clamp(31px,10vw,42px)}.story-image img{border-radius:20px}.subject-card{padding:20px;min-height:160px}.subject-card h3{margin-top:28px}.plan-banner{border-radius:18px;padding:26px!important}.plan-banner h2{font-size:30px}.pricing-card,.account-card,.profile-form,.report-form{border-radius:18px;padding:24px}.page{padding-block:42px 82px}.setup-card{border-radius:18px}.setup-top{align-items:flex-start;gap:14px}.setup-icon{width:56px;height:56px;border-radius:14px;font-size:19px}.setup-card h1{font-size:26px}.practice-modes{gap:8px}.mode-card{padding:14px}.topic-chips{max-height:178px;overflow:auto;padding-bottom:2px}.exam-bar{position:sticky;top:0;z-index:20;height:auto;min-height:64px;padding:8px 12px;background:var(--bg)}.exam-layout{gap:14px;padding-block:16px 84px}.exam-layout aside{order:2;padding:16px;border-radius:16px}.question-card{padding:20px;border-radius:16px}.question-card h1{font-size:18px;line-height:1.45}.stimulus{max-height:48vh;overflow:auto;padding:16px;font-size:14px}.q-option{padding:14px;gap:11px}.letter{flex-basis:26px;width:26px;height:26px}.palette{grid-template-columns:repeat(10,minmax(34px,1fr));gap:6px}.palette button{min-height:34px}.shortcut{display:none}.topic-row{grid-template-columns:1fr;gap:7px}.topic-row b{justify-self:end}.history-head{display:grid;gap:8px}.history-row{grid-template-columns:1fr;gap:4px}.history-row span:nth-child(3){display:block}.mobile-tabbar{position:fixed;left:10px;right:10px;bottom:10px;z-index:40;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:7px;border:1px solid var(--line);border-radius:18px;background:#071512f2;box-shadow:0 18px 50px #0005;backdrop-filter:blur(18px)}.mobile-tabbar button{display:grid;place-items:center;gap:1px;min-height:48px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:10px;font-weight:800;cursor:pointer}.mobile-tabbar button span{font-size:18px;line-height:1}.mobile-tabbar button:hover,.mobile-tabbar button:focus-visible{background:var(--panel);color:var(--text)}body:not(.taking-exam){padding-bottom:74px}footer .shell{padding-bottom:18px}}
@media(max-width:380px){.shell{width:min(100% - 18px,1160px)}.topbar{padding-inline:9px}.brand span:last-child{display:none}.hero h1{font-size:36px}.hero-visual>img,.hero-visual{height:280px!important;min-height:280px!important}.pricing-card h2{font-size:34px}.palette{grid-template-columns:repeat(8,minmax(32px,1fr))}.mobile-tabbar{left:6px;right:6px;bottom:6px}.mobile-tabbar button{font-size:9px}}
.logo-brand{padding:0;min-width:0}.logo-brand img{display:block;width:184px;height:auto;max-height:52px;object-fit:contain}.light .logo-brand img{content:url("assets/rutapreu-logo.svg")}
@media(max-width:760px){.logo-brand img{width:142px;max-height:42px}}
@media(max-width:380px){.logo-brand img{content:url("assets/rutapreu-mark.svg")!important;width:38px;height:38px}}

.email-auth-form{display:grid;gap:12px;width:100%;margin-top:18px}.email-auth-form label{display:grid;gap:7px;color:var(--muted);font-size:13px;font-weight:700}.email-auth-form input{width:100%;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:10px;padding:12px;font:inherit}.email-auth-form button{width:100%}.signout-btn{display:none;margin-top:12px}.logged-in .signout-btn{display:inline-block}.logged-in .email-auth-form{display:none}.logged-in .google-btn{display:none}.auth-required{border-color:#66502c!important;background:#302715!important}.auth-required h3:before{content:"🔒 ";}.auth-note{margin-top:14px;color:#ffd58a!important;font-size:12px;font-weight:800}.cloud-badge{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:7px 10px;border:1px solid #73dda944;border-radius:999px;background:#73dda914;color:var(--green);font-size:12px;font-weight:900}
.light .email-auth-form input{background:#ffffff;color:#11251e}.light .auth-required{background:#fff1cf!important;border-color:#e5bd64!important}.light .auth-note{color:#6b4812!important}.light .cloud-badge{background:#e8f7ef;color:#12683f}

/* Mobile polish layer: RutaPreu app-like layout */
@supports(padding:max(0px)){
  body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
}
html,body{max-width:100%;overflow-x:hidden}
button,input,select,textarea{-webkit-tap-highlight-color:transparent}
.primary,.secondary,.account-pill,.icon-btn,.subject-card,.mode-card,.topic-chip,.q-option,.mobile-tabbar button{touch-action:manipulation}
@media(max-width:760px){
  :root{--radius:18px}
  body{font-size:14px;line-height:1.5}
  .shell{width:100%;padding-inline:16px}
  .topbar{
    height:62px;
    padding:8px 12px;
    gap:8px;
    box-shadow:0 10px 32px #00000024;
  }
  .logo-brand{flex:1;min-width:0;justify-content:flex-start}
  .logo-brand img{width:min(138px,40vw);max-height:38px}
  .nav-tools{flex:0 0 auto}
  .streak-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:36px;
    max-width:72px;
    padding-inline:9px;
    border-radius:999px;
    font-size:11px;
  }
  .account-pill,.icon-btn{
    width:36px;
    height:36px;
    min-width:36px;
    border-radius:12px;
  }
  .hero{
    display:flex;
    flex-direction:column;
    padding:32px 16px 24px!important;
    gap:24px;
  }
  .hero-copy{width:100%}
  .eyebrow,.page-head>p,.section-title>p{
    font-size:10px;
    line-height:1.35;
    letter-spacing:.11em;
  }
  .hero h1{
    max-width:12ch;
    margin:14px 0 16px;
    font-size:clamp(37px,11.5vw,48px);
    line-height:.96;
    letter-spacing:-.06em;
  }
  .lead,.section-lead,.story-copy>p{
    max-width:34rem;
    font-size:15.5px;
    line-height:1.6;
  }
  .actions,.result-actions{
    grid-template-columns:1fr;
    gap:10px;
    margin:22px 0;
  }
  .primary,.secondary,.google-btn{
    min-height:48px;
    border-radius:14px;
    padding:13px 16px;
  }
  .trust{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
    font-size:12px;
  }
  .hero-visual{
    width:100%!important;
    min-height:0!important;
    aspect-ratio:4/3;
    margin:2px 0 0!important;
  }
  .hero-visual>img{
    height:100%!important;
    min-height:0!important;
    border-radius:22px;
  }
  .hero-visual:after{border-radius:22px}
  .hero-float{
    border-radius:14px;
    padding:10px 12px;
    box-shadow:0 16px 38px #00000040;
  }
  .hero-float.top{left:10px;top:10px}
  .hero-float.top b{font-size:20px}
  .hero-float.bottom{
    right:10px;
    bottom:10px;
    max-width:calc(100% - 20px);
  }
  .hero-float.bottom small{display:none}
  .metrics{
    width:calc(100% - 32px);
    margin-inline:auto;
    grid-template-columns:repeat(2,minmax(0,1fr));
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
  }
  .metrics div{
    min-height:86px;
    padding:16px 10px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:3px;
  }
  .metrics div:nth-child(odd){border-right:1px solid var(--line)}
  .metrics div:nth-child(1),.metrics div:nth-child(2){border-bottom:1px solid var(--line)}
  .metrics strong{font-size:21px;line-height:1.05}
  .metrics span{max-width:11ch;line-height:1.25}
  .section{padding:50px 16px}
  .section-title{margin-bottom:24px}
  .section-title.left{text-align:left}
  .section-title h2,.page-head h1,.story-copy h2{
    font-size:clamp(30px,9.2vw,40px);
    line-height:1.02;
  }
  .feature-grid,.pricing-grid,.account-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
  .feature-grid article,.pricing-card,.account-card,.profile-form,.report-form,.history-card,.result-hero{
    padding:22px;
    border-radius:20px;
  }
  .premium-features article{min-height:0}
  .feature-grid h3{margin:22px 0 7px}
  .story-section{
    display:flex;
    flex-direction:column;
    padding:34px 16px 52px!important;
    gap:24px;
  }
  .story-image,.story-copy{width:100%}
  .story-image img{
    width:100%;
    min-height:0;
    aspect-ratio:4/3;
    border-radius:22px;
  }
  .story-copy ul{margin:20px 0}
  .story-copy li{padding:12px 0}
  .subject-grid,.subject-grid.large{
    grid-template-columns:1fr;
    gap:10px;
  }
  .subject-card{
    min-height:136px!important;
    padding:18px;
    border-radius:18px;
  }
  .subject-card h3{
    margin:24px 0 7px;
    font-size:18px;
  }
  .subject-code{font-size:24px}
  .plan-banner{
    width:calc(100% - 32px);
    margin:0 auto 56px;
    padding:26px!important;
    border-radius:22px;
  }
  .plan-banner h2{font-size:30px}
  .page{
    padding:34px 16px calc(92px + env(safe-area-inset-bottom));
  }
  .page-head{margin-bottom:24px}
  .notice{
    padding:15px 16px;
    border-radius:16px;
    font-size:13px;
  }
  .setup-card{
    margin-top:18px;
    padding:20px;
    border-radius:20px;
  }
  .setup-top{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:12px;
  }
  .setup-icon{
    width:52px;
    height:52px;
    border-radius:14px;
    font-size:18px;
  }
  .setup-card h1{font-size:24px}
  .practice-modes{
    grid-template-columns:1fr;
    gap:9px;
    margin:22px 0 14px;
  }
  .mode-card{
    min-height:72px;
    padding:15px;
    border-radius:16px;
  }
  .custom-panel{
    margin:16px 0;
    padding:16px;
    border-radius:16px;
  }
  .topic-chips{
    display:grid;
    grid-template-columns:1fr;
    max-height:210px;
    gap:7px;
  }
  .topic-chip{
    width:100%;
    min-height:42px;
    border-radius:14px;
    text-align:left;
  }
  .count-row{gap:12px}
  .count-row select{width:100%;min-height:46px}
  .setup-facts{
    grid-template-columns:1fr;
    margin:20px 0;
  }
  .setup-facts div{padding:14px;border-radius:14px}
  .exam-bar{
    min-height:62px;
    grid-template-columns:66px 1fr 74px;
    padding:8px 12px;
    gap:8px;
    border-bottom-color:color-mix(in srgb,var(--line),transparent 20%);
  }
  .exam-bar .back{
    min-height:40px;
    padding:0;
    text-align:left;
    font-size:13px;
  }
  .exam-bar>div b{
    display:-webkit-box;
    overflow:hidden;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
    font-size:12px;
  }
  .exam-bar>div span{font-size:11px}
  .exam-bar>strong{
    font-size:13px;
    text-align:right;
  }
  .exam-layout{
    width:100%;
    padding:14px 12px calc(24px + env(safe-area-inset-bottom));
    gap:12px;
  }
  .question-card{
    padding:18px;
    border-radius:20px;
  }
  .q-meta{
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:14px;
  }
  .tag{font-size:10px}
  .stimulus{
    max-height:none;
    padding:15px;
    margin:10px 0 18px;
    border-radius:16px;
    font-size:14px;
    line-height:1.62;
  }
  .stimulus h4{font-size:17px;line-height:1.25}
  .data-visual{
    margin:14px 0;
    padding:12px;
    border-radius:14px;
  }
  .data-visual table{
    min-width:520px;
    font-size:12px;
  }
  .math-card{
    grid-template-columns:1fr;
    padding:13px;
    border-radius:14px;
  }
  .triangle-visual,.rectangle-visual,.square-visual,.coordinate-visual,.work-visual,.circle-visual,.parabola-visual,.token-visual{
    min-height:96px;
    margin:14px 0;
    padding:13px;
    border-radius:14px;
  }
  .question-card h1{
    margin:16px 0 18px;
    font-size:18px;
    line-height:1.45;
  }
  .q-options{gap:9px}
  .q-option{
    min-height:58px;
    padding:13px;
    gap:10px;
    border-radius:16px;
  }
  .letter{
    flex:0 0 28px;
    width:28px;
    height:28px;
    border-radius:9px;
  }
  .exam-actions{
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-top:20px;
  }
  .exam-actions .primary{
    grid-column:1/-1;
    width:100%;
  }
  .exam-layout aside{
    order:2;
    padding:16px;
    border-radius:20px;
  }
  .palette{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:7px;
  }
  .palette button{
    min-height:42px;
    border-radius:12px;
    font-size:12px;
  }
  .legend{flex-wrap:wrap}
  .result-stats,.progress-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .score{font-size:58px}
  .result-hero h1{font-size:28px}
  .stat-box{
    padding:16px;
    border-radius:16px;
  }
  .stat-box b{font-size:24px}
  .topic-row{
    grid-template-columns:1fr;
    gap:8px;
    padding:14px 0;
    border-bottom:1px solid var(--line);
  }
  .topic-row b{justify-self:start}
  .review-head{
    grid-template-columns:1fr;
    padding:16px;
  }
  .review-head span{justify-self:start}
  .review-body{padding:0 16px 18px}
  .profile-card{
    grid-template-columns:52px 1fr;
    gap:14px;
  }
  .profile-card button{grid-column:1/-1}
  .avatar{
    width:52px;
    height:52px;
    border-radius:15px;
  }
  .profile-form,.report-form{max-width:none}
  .profile-form input,.report-form input,.report-form select,.report-form textarea{
    min-height:46px;
    border-radius:13px;
    font-size:16px;
  }
  .pricing-card h2{font-size:38px}
  .pricing-card.featured{box-shadow:0 18px 48px #00000026}
  .pricing-faq{
    grid-template-columns:1fr;
    padding:18px;
    border-radius:18px;
  }
  .history-card{padding:18px}
  .history-head{align-items:start}
  .history-row{
    grid-template-columns:1fr;
    gap:3px;
    padding:14px 0;
  }
  footer .shell{
    min-height:auto;
    padding:24px 16px calc(92px + env(safe-area-inset-bottom));
    text-align:center;
    gap:8px;
  }
  .mobile-tabbar{
    left:12px;
    right:12px;
    bottom:max(10px,env(safe-area-inset-bottom));
    padding:6px;
    border-radius:20px;
  }
  .mobile-tabbar button{
    min-height:50px;
    border-radius:15px;
  }
  .mobile-tabbar button.active{
    background:var(--lime);
    color:#102016;
    box-shadow:0 10px 24px #d5ff6324;
  }
}
@media(max-width:420px){
  .shell{padding-inline:12px}
  .topbar{height:58px;padding-inline:10px}
  .logo-brand img{content:url("assets/rutapreu-mark.svg")!important;width:36px;height:36px}
  .streak-chip{max-width:64px;font-size:10px}
  .account-pill{display:none}
  .hero{padding-inline:12px!important}
  .hero h1{font-size:clamp(34px,11vw,40px)}
  .hero-visual{aspect-ratio:1/1}
  .metrics,.plan-banner{width:calc(100% - 24px)}
  .section,.story-section,.page{padding-left:12px;padding-right:12px}
  .feature-grid article,.pricing-card,.account-card,.profile-form,.report-form,.history-card,.result-hero,.setup-card,.question-card{padding:18px}
  .mobile-tabbar{left:8px;right:8px}
  .mobile-tabbar button{font-size:9px}
}
@media(max-width:340px){
  .streak-chip{display:none}
  .hero h1{font-size:32px}
  .metrics strong{font-size:19px}
  .result-stats,.progress-summary{grid-template-columns:1fr}
  .palette{grid-template-columns:repeat(4,minmax(0,1fr))}
}

.pricing-trust{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  max-width:850px;
  margin:18px auto 0;
}
.pricing-trust article{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  padding:15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:linear-gradient(145deg,var(--panel),var(--bg));
}
.pricing-trust i{
  flex:0 0 32px;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:10px;
  background:#d5ff6314;
  color:var(--lime);
  font-style:normal;
  font-weight:900;
}
.pricing-trust b,.pricing-trust span{display:block}
.pricing-trust b{font-size:12px;line-height:1.25}
.pricing-trust span{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.35}
@media(max-width:900px){.pricing-trust{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){
  .pricing-trust{grid-template-columns:1fr;gap:8px}
  .pricing-trust article{padding:13px 14px}
  .pricing-trust b{font-size:13px}
  .pricing-trust span{font-size:11px}
}

.about-section{
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:54px;
  align-items:start;
  padding:90px 0;
  scroll-margin-top:86px;
}
.about-intro h2{
  max-width:540px;
  margin:15px 0 20px;
  font-size:clamp(36px,4.6vw,58px);
  line-height:1.02;
  letter-spacing:-.045em;
}
.about-intro>p:not(.eyebrow){max-width:590px;color:var(--muted);font-size:17px}
.about-goal{
  position:relative;
  display:grid;
  margin-top:32px;
  padding:26px;
  overflow:hidden;
  border:1px solid #d5ff6350;
  border-radius:22px;
  background:linear-gradient(135deg,#17382d,#0d201b);
}
.about-goal:after{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  right:-50px;
  bottom:-70px;
  border-radius:50%;
  background:#d5ff6318;
}
.about-goal small{color:var(--green);font-weight:900;letter-spacing:.12em}
.about-goal strong{margin:8px 0 0;color:var(--lime);font-size:58px;line-height:1;letter-spacing:-.06em}
.about-goal span{max-width:290px;color:var(--text);font-size:14px}
.about-goal b{margin-top:17px;color:var(--green);font-size:11px;letter-spacing:.05em}
.about-steps{display:grid;gap:12px}
.about-steps article{
  display:grid;
  grid-template-columns:54px 1fr;
  gap:18px;
  min-height:150px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--panel);
}
.about-steps article>span{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:14px;
  background:#d5ff6312;
  color:var(--lime);
  font-weight:900;
}
.about-steps h3{margin:1px 0 8px;font-size:21px}
.about-steps p{margin:0;color:var(--muted)}
@media(max-width:900px){.about-section{grid-template-columns:1fr;gap:28px;padding:64px 0}.about-intro h2{max-width:680px}.about-goal{max-width:560px}}
@media(max-width:520px){
  .about-section{padding:50px 12px;scroll-margin-top:70px}
  .about-intro h2{font-size:36px}
  .about-intro>p:not(.eyebrow){font-size:15px}
  .about-goal{padding:22px;border-radius:18px}
  .about-goal strong{font-size:50px}
  .about-steps article{grid-template-columns:44px 1fr;gap:12px;min-height:0;padding:20px;border-radius:18px}
  .about-steps article>span{width:40px;height:40px;border-radius:12px}
  .about-steps h3{font-size:18px}
}
