:root {
  --ink: #173442;
  --ink-soft: #58717b;
  --navy: #102d3d;
  --teal: #4da99c;
  --teal-dark: #297d78;
  --mint: #ddf0e7;
  --sky: #d9e8f2;
  --peach: #f8ded0;
  --cream: #fbf9f3;
  --paper: #fffdfa;
  --line: #dbe7e4;
  --yellow: #ffd56a;
  --coral: #dc806e;
  --shadow: 0 18px 60px rgba(24, 63, 71, .10);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Tajawal", "Noto Sans Arabic", Arial, sans-serif; line-height: 1.65; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
.site-shell { overflow: hidden; }
.section-pad { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.topbar { min-height: 78px; width: min(1280px, calc(100% - 48px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px 13px 13px 5px; display: inline-flex; align-items: center; justify-content: center; position: relative; background: var(--navy); color: #fff; font-size: 23px; font-weight: 900; box-shadow: 5px 5px 0 var(--yellow); }
.brand-mark span { position: relative; z-index: 1; transform: translateY(-1px); }
.brand-mark i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); bottom: 7px; }
.brand-mark i:nth-of-type(1) { left: 11px; }.brand-mark i:nth-of-type(2) { left: 17px; }.brand-mark i:nth-of-type(3) { display: none; }
.brand-copy { display: grid; gap: 1px; line-height: 1.15; }.brand-copy strong { font-size: 14px; }.brand-copy small { color: var(--ink-soft); font-size: 11px; }
.main-nav { display: flex; gap: 25px; align-items: center; justify-content: center; flex: 1; }.nav-link { color: var(--ink-soft); font-size: 13px; position: relative; padding: 28px 0 24px; transition: color .2s; }.nav-link:hover, .nav-link.active { color: var(--ink); }.nav-link.active::after { content: ""; position: absolute; bottom: 14px; right: 0; left: 0; height: 3px; border-radius: 5px; background: var(--teal); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }.live-pill { color: var(--teal-dark); background: #eaf5ed; border: 1px solid #d5eadd; padding: 5px 10px; border-radius: 30px; font-size: 11px; white-space: nowrap; }.live-pill span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-left: 5px; box-shadow: 0 0 0 3px #cce8da; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: 17px; transition: transform .2s; }.icon-button:hover { transform: rotate(12deg) scale(1.05); }
.hero { min-height: 525px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px; padding-top: 45px; padding-bottom: 45px; }.eyebrow, .section-kicker { color: var(--teal-dark); font-size: 11px; letter-spacing: .08em; font-weight: 800; }.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }.eyebrow-dot { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 4px #fae9df; }
h1, h2, h3, p { margin-top: 0; }.hero h1 { font-size: clamp(40px, 5vw, 66px); letter-spacing: -.055em; line-height: 1.16; margin-bottom: 18px; font-weight: 900; }.hero h1 em, h2 span { color: var(--teal-dark); font-style: normal; }.hero-lead { color: var(--ink-soft); font-size: 15px; max-width: 480px; line-height: 1.9; margin-bottom: 26px; }.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; border-radius: 10px; padding: 0 20px; color: #fff; background: var(--navy); font-size: 13px; font-weight: 800; box-shadow: 0 8px 16px rgba(16,45,61,.15); transition: transform .2s, box-shadow .2s, background .2s; }.primary-button:hover { transform: translateY(-2px); box-shadow: 0 11px 20px rgba(16,45,61,.2); background: #173d50; }.primary-button span { color: var(--yellow); font-size: 18px; }.primary-button.full { width: 100%; min-height: 52px; }.primary-button.small { min-height: 36px; padding: 0 14px; font-size: 11px; gap: 9px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 800; padding: 5px 0; }.text-button:hover { color: var(--teal-dark); }.play-icon { width: 24px; height: 24px; border: 1px solid var(--line); color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 8px; padding-right: 1px; }
.hero-proof { margin-top: 34px; display: flex; align-items: center; gap: 12px; color: var(--ink); }.proof-avatars { display: flex; direction: ltr; }.proof-avatars span { width: 28px; height: 28px; border: 2px solid var(--cream); background: var(--peach); border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; margin-left: -7px; font-size: 11px; font-weight: 900; }.proof-avatars span:nth-child(2) { background: var(--sky); }.proof-avatars span:nth-child(3) { background: var(--mint); }.hero-proof strong, .hero-proof small { display: block; line-height: 1.45; }.hero-proof strong { font-size: 11px; }.hero-proof small { color: var(--ink-soft); font-size: 10px; }
.hero-visual { min-height: 420px; position: relative; direction: ltr; }.visual-glow { position: absolute; width: 350px; height: 350px; border-radius: 50%; top: 25px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, #e8f4ed 0%, #edf6f0 48%, rgba(237,246,240,0) 70%); }.equation-card, .factor-card, .visual-note { position: absolute; box-shadow: var(--shadow); }.equation-card-main { direction: rtl; width: 280px; top: 92px; left: 50%; transform: translateX(-50%); padding: 25px 30px 23px; text-align: center; background: var(--navy); color: #fff; border-radius: 20px; z-index: 2; }.card-label { display: block; color: #a4c6c1; font-size: 11px; margin-bottom: 10px; }.equation-card-main strong { font-size: 27px; letter-spacing: .02em; }.card-underline { width: 75px; height: 3px; border-radius: 4px; background: var(--yellow); margin: 13px auto 0; }.connector { position: absolute; z-index: 1; border-top: 2px dashed #9fc5bc; width: 73px; height: 60px; top: 238px; }.connector-one { left: 30%; transform: rotate(31deg); border-radius: 50%; }.connector-two { right: 30%; transform: rotate(-31deg); border-radius: 50%; }.factor-card { z-index: 2; direction: rtl; background: var(--paper); border: 1px solid #ebeeea; padding: 17px 23px; text-align: center; border-radius: 16px; top: 290px; }.factor-card span { display: block; color: var(--teal-dark); font-size: 22px; font-weight: 900; }.factor-card small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 10px; }.factor-card-top { left: 17%; }.factor-card-bottom { right: 17%; }.spark, .math-orbit { position: absolute; color: var(--coral); z-index: 3; }.spark { font-size: 25px; }.spark-a { top: 56px; right: 17%; }.spark-b { bottom: 70px; left: 16%; color: var(--teal); font-size: 18px; }.math-orbit { display: flex; justify-content: center; align-items: center; width: 31px; height: 31px; border: 1px solid #b4d9cc; border-radius: 50%; color: var(--teal-dark); font-weight: 800; }.orbit-a { left: 8%; top: 171px; }.orbit-b { right: 9%; top: 172px; background: var(--yellow); border: none; color: var(--navy); }.visual-note { direction: rtl; z-index: 3; bottom: 19px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; align-items: center; font-size: 10px; color: var(--ink-soft); background: rgba(255,253,250,.86); padding: 7px 12px; border-radius: 20px; white-space: nowrap; }.visual-note span { color: var(--teal-dark); font-size: 15px; }
.quick-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 23px; padding-bottom: 23px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }.quick-item { display: flex; align-items: center; gap: 10px; }.quick-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; font-weight: 900; font-size: 17px; }.quick-icon.peach { background: var(--peach); color: var(--coral); }.quick-icon.blue { background: var(--sky); color: #4a8294; }.quick-icon.mint { background: var(--mint); color: var(--teal-dark); }.quick-icon.yellow { background: #ffefbd; color: #c39724; }.quick-item strong, .quick-item small { display: block; line-height: 1.35; }.quick-item strong { font-size: 11px; }.quick-item small { font-size: 9px; color: var(--ink-soft); margin-top: 4px; }
.section-heading { padding-top: 110px; padding-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }.heading-with-kicker h2, .progress-header h2 { font-size: 42px; letter-spacing: -.055em; line-height: 1.15; margin: 10px 0 0; }.section-heading > p { color: var(--ink-soft); max-width: 365px; font-size: 13px; line-height: 1.85; margin-bottom: 3px; }.panel-card { border: 1px solid #e2e9e4; background: var(--paper); border-radius: var(--radius); box-shadow: 0 12px 42px rgba(24, 63, 71, .05); }.calculator-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: stretch; }.calculator-panel { background: #e9f2ec; padding: 27px 28px; border-color: #dbe9df; }.result-panel { min-height: 530px; padding: 27px 31px; position: relative; }.panel-topline { display: flex; align-items: center; gap: 9px; min-height: 28px; }.panel-number { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--teal-dark); background: #d3e9db; border-radius: 9px; font-size: 11px; font-weight: 900; }.panel-number.dark { color: #fff; background: var(--navy); }.panel-tag { color: var(--ink-soft); font-size: 11px; font-weight: 800; }.mini-spark { margin-right: auto; color: var(--coral); font-size: 17px; }.success-badge { margin-right: auto; background: #f1f5f0; color: var(--ink-soft); border-radius: 20px; padding: 4px 10px; font-size: 10px; }.success-badge.success { background: #e3f3e8; color: var(--teal-dark); }.input-label { display: block; margin-top: 27px; margin-bottom: 8px; color: var(--ink); font-size: 11px; font-weight: 900; }.input-label span { color: var(--ink-soft); font-weight: 400; }.input-wrap { position: relative; }.input-wrap input { width: 100%; height: 56px; border: 1.5px solid #cfe2d6; background: var(--paper); border-radius: 12px; padding: 0 18px; color: var(--navy); font-weight: 800; font-size: 18px; outline: 0; transition: border .2s, box-shadow .2s; }.input-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(77,169,156,.12); }.input-status { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--teal-dark); font-size: 10px; pointer-events: none; }.examples-row { margin-top: 11px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-soft); font-size: 9px; }.example-chip { color: var(--teal-dark); background: transparent; border-bottom: 1px dashed #94c4b5; padding: 0 0 1px; font-size: 10px; }.example-chip:hover { color: var(--coral); border-color: var(--coral); }.method-select-wrap { margin-top: 19px; }.method-select-wrap .input-label { margin-top: 0; }.select-shell { position: relative; }.select-shell select { width: 100%; height: 44px; appearance: none; border: 1px solid #cfe2d6; border-radius: 10px; padding: 0 14px; background: var(--paper); color: var(--ink); font-size: 11px; outline: none; cursor: pointer; }.select-shell > span { position: absolute; left: 13px; top: 8px; color: var(--teal-dark); font-size: 20px; pointer-events: none; }.tip-box { margin-top: 17px; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(255,255,255,.58); color: var(--ink-soft); font-size: 10px; line-height: 1.55; }.tip-box > span { color: var(--coral); font-size: 16px; }.tip-box p { margin: 0; }.tip-box strong { color: var(--ink); }.tip-box b { color: var(--teal-dark); }.form-actions { margin-top: 18px; display: grid; gap: 8px; }.secondary-button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); background: transparent; border: 1px solid #d7e5de; border-radius: 9px; padding: 0 14px; font-size: 11px; font-weight: 800; transition: border .2s, background .2s, transform .2s; }.secondary-button:hover { background: #f5faf6; border-color: #add1c2; transform: translateY(-1px); }.supported-types { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--ink-soft); font-size: 9px; }.supported-types span:not(:first-child) { background: rgba(255,255,255,.67); border-radius: 5px; padding: 3px 6px; color: var(--teal-dark); }
.empty-result { min-height: 435px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 35px; }.empty-orbit { width: 92px; height: 92px; border: 1px dashed #a4d0c0; border-radius: 50%; display: flex; align-items: center; justify-content: space-around; color: var(--teal-dark); font-size: 16px; font-weight: 900; position: relative; margin-bottom: 20px; }.empty-orbit::before { content: ""; position: absolute; width: 120px; height: 44px; border: 1px dashed #d4e5dc; border-radius: 50%; transform: rotate(35deg); }.empty-orbit i { color: var(--coral); font-style: normal; font-size: 18px; }.empty-result h3 { font-size: 18px; margin-bottom: 7px; }.empty-result p { max-width: 315px; margin-bottom: 17px; color: var(--ink-soft); font-size: 12px; }.empty-hint { padding: 8px 13px; border-radius: 20px; color: var(--teal-dark); background: #eaf5ed; font-size: 10px; }.empty-hint span { font-size: 16px; margin-left: 4px; }.hidden { display: none !important; }
.result-content { padding-top: 20px; }.result-overview { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #edf1ec; padding-bottom: 13px; }.overview-label, .overview-meta { display: block; color: var(--ink-soft); font-size: 10px; }.result-overview strong { display: block; margin: 3px 0; font-size: 16px; }.result-icon { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); background: var(--mint); border-radius: 14px; font-size: 22px; font-weight: 900; }.normalized-expression { margin-top: 16px; padding: 11px 14px; border-radius: 10px; background: #f6f8f4; color: var(--navy); text-align: center; font-size: 17px; font-weight: 800; direction: ltr; }.steps-area { margin-top: 18px; }.steps-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }.steps-heading > span { font-size: 11px; font-weight: 900; }.steps-heading small { color: var(--ink-soft); font-size: 10px; }.steps-list { display: grid; gap: 7px; }.step-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 9px 10px; border-radius: 10px; background: #f9fbf8; border: 1px solid #edf2ed; animation: slideIn .4s both; }.step-dot { width: 23px; height: 23px; display: flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--teal-dark); background: var(--mint); font-size: 9px; font-weight: 900; }.step-item strong { display: block; font-size: 11px; margin-bottom: 2px; }.step-item p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }.step-formula { direction: ltr; display: block; color: var(--navy); font-size: 13px; font-weight: 900; margin-top: 4px; }.final-answer { margin-top: 13px; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: #fff; background: var(--navy); border-radius: 13px; }.final-label { display: block; color: #b2cbc7; font-size: 9px; margin-bottom: 3px; }.final-answer strong { direction: ltr; display: block; font-size: 19px; letter-spacing: .02em; }.answer-check { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--navy); background: var(--yellow); border-radius: 50%; font-weight: 900; }.verification-box { margin-top: 10px; padding: 10px 13px; border-radius: 11px; background: #eaf5ed; }.verification-title { display: flex; align-items: center; gap: 7px; font-size: 11px; }.verification-title > span:first-child { color: var(--teal-dark); font-size: 16px; }.verified-text { margin-right: auto; color: var(--teal-dark); font-size: 9px; font-weight: 900; }.verification-box p { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; }.result-actions { display: flex; gap: 8px; margin-top: 11px; }.result-actions .secondary-button { flex: 1; }.error-result { min-height: 370px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 30px; }.error-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--coral); border-radius: 50%; font-size: 23px; font-weight: 900; }.error-result strong { display: block; margin-top: 14px; font-size: 17px; }.error-result p { max-width: 360px; color: var(--ink-soft); font-size: 12px; }
@keyframes slideIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.learn-section { padding-bottom: 110px; }.learn-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }.lesson-rail { border-radius: var(--radius); background: #e8f1ea; border: 1px solid #dae8de; padding: 25px 27px; }.lesson-rail-title { display: flex; justify-content: space-between; color: var(--teal-dark); font-size: 10px; font-weight: 900; }.lesson-progress { color: var(--ink-soft); font-weight: 400; }.lesson-rail h3 { font-size: 26px; direction: ltr; text-align: right; margin: 17px 0 4px; }.lesson-rail > p { color: var(--ink-soft); font-size: 11px; margin-bottom: 19px; }.lesson-step-buttons { display: grid; gap: 7px; }.lesson-step { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; text-align: right; padding: 9px; background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: 11px; transition: background .2s, border .2s; }.lesson-step:hover { background: rgba(255,255,255,.4); }.lesson-step.active { background: #fff; border-color: #d6e8db; box-shadow: 0 5px 14px rgba(30,80,64,.05); }.lesson-step > span { width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); background: #d1e8d9; border-radius: 8px; font-size: 9px; font-weight: 900; }.lesson-step strong, .lesson-step small { display: block; line-height: 1.35; }.lesson-step strong { font-size: 11px; }.lesson-step small { color: var(--ink-soft); font-size: 9px; margin-top: 2px; }.lesson-try { margin-top: 22px; color: var(--teal-dark); }.lesson-stage { min-height: 395px; background: var(--paper); border: 1px solid #e3eae4; border-radius: var(--radius); padding: 22px 26px 15px; box-shadow: 0 12px 42px rgba(24, 63, 71, .05); display: flex; flex-direction: column; }.stage-dots { display: flex; gap: 5px; justify-content: flex-start; direction: rtl; }.stage-dots span { display: block; width: 25px; height: 4px; border-radius: 5px; background: #dfeae3; }.stage-dots span.active { background: var(--teal); width: 42px; }.stage-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 25px 15px; text-align: center; }.lesson-step-content .lesson-overline { color: var(--teal-dark); font-size: 11px; font-weight: 900; }.lesson-step-content h3 { margin: 8px 0 14px; font-size: 28px; direction: ltr; }.lesson-step-content p { max-width: 435px; color: var(--ink-soft); font-size: 13px; line-height: 1.9; margin-bottom: 15px; }.lesson-equation { direction: ltr; font-size: 25px; font-weight: 900; color: var(--navy); padding: 14px 20px; border-radius: 14px; background: #f3f8f4; display: inline-block; }.lesson-equation .highlight { color: var(--teal-dark); }.number-pair { display: flex; justify-content: center; gap: 12px; direction: ltr; }.number-pair span { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--peach); color: var(--coral); border-radius: 18px; font-size: 25px; font-weight: 900; position: relative; }.number-pair span:last-child { background: var(--sky); color: #4c8999; }.number-pair span::after { content: ""; position: absolute; bottom: -22px; right: 50%; transform: translateX(50%); color: var(--ink-soft); font-size: 10px; font-weight: 400; }.number-pair span:first-child::after { content: "×"; }.number-pair span:last-child::after { content: "+"; }.pair-result { margin-top: 28px; color: var(--ink-soft); font-size: 12px; }.pair-result strong { display: block; direction: ltr; color: var(--navy); font-size: 16px; margin-top: 4px; }.factor-reveal { display: flex; align-items: center; gap: 10px; direction: ltr; }.factor-reveal .factor-box { padding: 18px 24px; background: var(--mint); color: var(--teal-dark); border-radius: 14px; font-size: 24px; font-weight: 900; }.factor-reveal > span { color: var(--coral); font-size: 24px; }.check-circle { width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; border: 4px solid var(--teal); border-radius: 50%; color: var(--teal-dark); font-size: 27px; font-weight: 900; margin: 0 auto 13px; }.stage-footer { border-top: 1px solid #edf1ec; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }.stage-footer > span { color: var(--ink-soft); font-size: 10px; text-align: center; }.round-arrow { width: 29px; height: 29px; border-radius: 50%; background: #f0f5f0; color: var(--teal-dark); font-weight: 900; }.round-arrow:hover { background: var(--mint); }
.challenge-section { position: relative; padding-bottom: 115px; }.challenge-backdrop { position: absolute; inset: 0 calc((100vw - min(1180px, calc(100% - 64px))) / -2); background: #f4ebe1; z-index: -1; clip-path: polygon(0 13%, 100% 0, 100% 88%, 0 100%); }.challenge-heading { position: relative; padding-top: 125px; }.challenge-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 22px; align-items: stretch; }.challenge-info { min-height: 440px; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 42px 25px 35px 0; }.challenge-mascot { position: absolute; top: 12px; right: 4px; width: 86px; height: 86px; display: flex; align-items: center; justify-content: center; color: var(--navy); background: var(--yellow); border-radius: 50% 45% 50% 35%; font-size: 30px; font-weight: 900; transform: rotate(-9deg); box-shadow: 10px 11px 0 rgba(245,193,75,.22); }.challenge-mascot i { position: absolute; top: 8px; left: 7px; color: var(--coral); font-size: 17px; font-style: normal; }.challenge-info > div:nth-child(2) { max-width: 260px; margin-top: 65px; }.challenge-info > div:nth-child(2) strong { font-size: 17px; }.challenge-info > div:nth-child(2) p { color: var(--ink-soft); font-size: 11px; line-height: 1.8; margin-top: 5px; }.level-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 24px; max-width: 410px; }.level-button { background: rgba(255,255,255,.58); padding: 10px 6px; border: 1px solid rgba(220,211,201,.9); border-radius: 10px; text-align: center; color: var(--ink-soft); }.level-button.active { color: var(--navy); background: var(--paper); border-color: var(--coral); box-shadow: 0 4px 12px rgba(191,112,87,.09); }.level-button span, .level-button small { display: block; }.level-button span { font-size: 11px; font-weight: 900; }.level-button small { font-size: 9px; margin-top: 2px; }.score-mini { max-width: 410px; margin-top: 28px; border-top: 1px solid #eadbd0; padding-top: 15px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }.score-mini > span { font-size: 10px; color: var(--ink-soft); }.score-mini strong { font-size: 24px; color: var(--navy); }.score-mini strong small { font-size: 9px; color: var(--ink-soft); font-weight: 400; }.score-stars { color: #d49b39; font-size: 17px; letter-spacing: 2px; }.challenge-card { min-height: 440px; padding: 25px 29px; position: relative; }.challenge-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: 10px; }.challenge-timer { width: 150px; height: 5px; border-radius: 5px; background: #edf1ed; font-size: 0; position: relative; }.challenge-timer b { position: absolute; top: 0; right: 0; height: 100%; border-radius: 5px; background: var(--teal); transition: width .3s; }.question-area { padding: 34px 0 22px; text-align: center; }.question-label { color: var(--teal-dark); font-size: 11px; font-weight: 900; }.challenge-expression { display: block; direction: ltr; color: var(--navy); font-size: 31px; margin-top: 9px; }.question-prompt { color: var(--ink-soft); font-size: 11px; margin: 10px 0 0; }.options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; direction: ltr; }.option-button { min-height: 51px; border: 1px solid #e0e8e1; background: #fbfcfa; border-radius: 11px; color: var(--ink); font-weight: 800; font-size: 15px; transition: border .2s, transform .2s, background .2s; }.option-button:hover { border-color: var(--teal); transform: translateY(-1px); }.option-button.correct { color: var(--teal-dark); background: #e2f4e7; border-color: var(--teal); }.option-button.wrong { color: #b85c4b; background: #fcedea; border-color: #e5a092; }.option-button:disabled { cursor: default; }.challenge-feedback { margin-top: 12px; padding: 9px 12px; border-radius: 10px; font-size: 10px; line-height: 1.6; }.challenge-feedback.correct { color: var(--teal-dark); background: #e2f4e7; }.challenge-feedback.wrong { color: #a05245; background: #fcedea; }.challenge-feedback strong { font-size: 12px; }.challenge-card-footer { border-top: 1px solid #edf1ec; margin-top: 16px; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: 10px; }
.progress-section { padding-bottom: 110px; }.progress-header { display: flex; align-items: end; justify-content: space-between; padding-top: 98px; padding-bottom: 34px; }.progress-total { min-width: 155px; padding: 14px 16px; text-align: center; background: var(--mint); border-radius: 15px; }.progress-total span, .progress-total small { display: block; color: var(--ink-soft); font-size: 9px; }.progress-total strong { display: inline-block; color: var(--teal-dark); font-size: 27px; line-height: 1.2; }.achievement-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 19px; }.achievement-card { border: 1px solid #e5e9e3; border-radius: var(--radius); background: var(--paper); }.main-achievement { display: flex; align-items: center; gap: 17px; padding: 27px; position: relative; overflow: hidden; }.main-achievement::after { content: "✦"; position: absolute; left: 17px; bottom: -22px; color: #eaf1eb; font-size: 100px; }.achievement-ring { width: 102px; height: 102px; flex-shrink: 0; border: 8px solid #d6eadc; border-top-color: var(--teal); border-right-color: var(--teal); border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-direction: column; color: var(--teal-dark); }.achievement-ring span { font-size: 25px; font-weight: 900; line-height: 1.1; }.achievement-ring small { font-size: 9px; color: var(--ink-soft); }.achievement-label { color: var(--coral); font-size: 10px; font-weight: 900; }.main-achievement h3 { margin: 4px 0 3px; font-size: 17px; }.main-achievement p { margin: 0 0 14px; color: var(--ink-soft); font-size: 10px; }.progress-line { width: 240px; height: 6px; background: #eaf0ea; border-radius: 5px; overflow: hidden; }.progress-line span { display: block; height: 100%; background: var(--teal); border-radius: inherit; transition: width .4s; }.achievement-icon { align-self: flex-start; margin-right: auto; color: #c7ddce; font-size: 22px; }.achievement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.badge-card { padding: 16px; border-radius: 15px; border: 1px solid #e5e9e3; background: #f7faf6; opacity: .5; filter: grayscale(.5); transition: opacity .3s, filter .3s, transform .3s; }.badge-card.unlocked { opacity: 1; filter: none; background: var(--paper); transform: translateY(-2px); }.badge-card span { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); background: var(--mint); border-radius: 9px; font-weight: 900; }.badge-card strong, .badge-card small { display: block; }.badge-card strong { margin-top: 10px; font-size: 11px; }.badge-card small { color: var(--ink-soft); font-size: 9px; margin-top: 3px; }.history-block { margin-top: 47px; }.history-heading { display: flex; justify-content: space-between; align-items: end; }.history-heading h3 { margin: 6px 0 0; font-size: 21px; }.history-list { margin-top: 14px; display: grid; gap: 8px; }.history-empty { padding: 25px; border: 1px dashed #cfdfd6; border-radius: 15px; text-align: center; color: var(--ink-soft); font-size: 11px; }.history-item { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid #e7ede7; border-radius: 12px; background: var(--paper); }.history-item:hover { border-color: #b7d9c8; }.history-item > span:first-child { width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--teal-dark); border-radius: 8px; }.history-item strong { display: block; direction: ltr; text-align: right; font-size: 14px; }.history-item small { display: block; color: var(--ink-soft); font-size: 9px; }.history-item > span:last-child { color: var(--teal-dark); font-size: 11px; }
.footer { border-top: 1px solid var(--line); padding-top: 25px; padding-bottom: 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }.footer-brand { display: flex; align-items: center; gap: 10px; }.brand-mark.small { width: 30px; height: 30px; border-radius: 9px 9px 9px 3px; font-size: 16px; box-shadow: 3px 3px 0 var(--yellow); }.brand-mark.small i { width: 3px; height: 3px; bottom: 5px; }.brand-mark.small i:nth-of-type(1) { left: 8px; }.brand-mark.small i:nth-of-type(2) { left: 12px; }.footer-brand strong, .footer-brand small { display: block; line-height: 1.4; }.footer-brand strong { font-size: 11px; }.footer-brand small, .footer-note { color: var(--ink-soft); font-size: 9px; }.footer-note { display: flex; align-items: center; gap: 9px; }.footer-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }
.toast { position: fixed; z-index: 20; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 8px; padding: 11px 15px; color: #fff; background: var(--navy); border-radius: 11px; box-shadow: var(--shadow); font-size: 11px; transform: translateY(100px); opacity: 0; transition: transform .3s, opacity .3s; }.toast.show { transform: none; opacity: 1; }.toast > span:first-child { width: 19px; height: 19px; display: flex; align-items: center; justify-content: center; color: var(--navy); background: var(--yellow); border-radius: 50%; font-size: 10px; font-weight: 900; }
@media (max-width: 900px) { .main-nav { gap: 14px; }.nav-link { font-size: 11px; }.hero { grid-template-columns: 1fr; padding-top: 55px; }.hero-copy { text-align: center; }.hero-lead { margin-left: auto; margin-right: auto; }.hero-actions, .hero-proof { justify-content: center; }.hero-visual { min-height: 360px; }.calculator-layout, .learn-layout, .challenge-layout, .achievement-layout { grid-template-columns: 1fr; }.challenge-info { min-height: unset; padding: 30px 0 0; }.challenge-info > div:nth-child(2) { margin-top: 80px; }.level-picker, .score-mini { max-width: 100%; }.challenge-card { min-height: 400px; }.achievement-grid { grid-template-columns: repeat(4, 1fr); }.badge-card { padding: 13px; }.progress-line { width: min(240px, 100%); } }
@media (max-width: 640px) { .section-pad { width: min(100% - 32px, 520px); }.topbar { width: calc(100% - 32px); min-height: 68px; }.main-nav { display: none; }.topbar-actions { margin-right: auto; }.live-pill { display: none; }.hero { padding-top: 38px; min-height: 0; }.hero h1 { font-size: 43px; }.hero-lead { font-size: 13px; }.hero-visual { transform: scale(.82); transform-origin: center top; min-height: 325px; margin-bottom: -55px; }.quick-strip { grid-template-columns: repeat(2, 1fr); gap: 19px 10px; }.quick-item small { font-size: 8px; }.section-heading, .progress-header { display: block; padding-top: 70px; }.heading-with-kicker h2, .progress-header h2 { font-size: 36px; }.section-heading > p { margin-top: 18px; }.calculator-panel, .result-panel, .lesson-rail, .lesson-stage, .challenge-card { padding: 21px 18px; }.result-panel { min-height: 480px; }.final-answer strong { font-size: 16px; }.lesson-stage { min-height: 390px; }.lesson-step-content h3 { font-size: 23px; }.lesson-equation { font-size: 20px; }.factor-reveal .factor-box { padding: 14px; font-size: 18px; }.factor-reveal { gap: 6px; }.challenge-heading { padding-top: 95px; }.challenge-backdrop { clip-path: polygon(0 5%, 100% 0, 100% 97%, 0 100%); }.challenge-expression { font-size: 25px; }.options-grid { gap: 7px; }.option-button { min-height: 49px; font-size: 13px; }.achievement-grid { grid-template-columns: repeat(2, 1fr); }.main-achievement { align-items: flex-start; padding: 20px; }.achievement-ring { width: 83px; height: 83px; border-width: 6px; }.achievement-ring span { font-size: 20px; }.footer { display: block; }.footer-note { margin-top: 16px; }.toast { left: 16px; right: 16px; bottom: 16px; justify-content: center; } }
