/* UniStats website. Same tokens as src/theme/tokens.ts: flat saturated surfaces, big numbers, no heavy shadows. */

:root {
    --violet: #5A3FFF;
    --violet-deep: #3E25D9;
    --violet-soft: #E6E1FF;
    --violet-glow: #7A63FF;
    --sun: #FFC93C;
    --sun-soft: #FFF1C7;
    --coral: #FF6B57;
    --coral-soft: #FFE1DC;
    --mint: #1FB57A;
    --mint-bright: #3FD196;
    --mint-soft: #D3F5E5;
    --mint-pop: #8EF0C4;
    --ink: #14141F;
    --fog: #F3F2F8;
    --fog-deep: #E4E2EE;
    --track: #E9E8F2;
    --line: #EEEDF4;
    --white: #FFFFFF;
    --surface: #FFFFFF;
    --text: #14141F;
    --text2: #45455A;
    --text3: #5C5C70;
    --text4: #B9B8CC;
    --red-text: #B3261E;
    --red-deep: #5A0F08;
    --red-pop: #FFB4A8;
    --amber-text: #7A5200;
    --green-text: #0B6B45;
    --green-deep: #08291C;
    --sky: #8FD3FF;
    --lilac: #B9AEFF;
    --seg-track: #E4E2EE;
    --seg-ind: #FFFFFF;

    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'Figtree', system-ui, sans-serif;

    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 24px;
    --r-xxl: 28px;
    --r-sheet: 32px;

    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --violet-deep: #C3B8FF;
        --violet-soft: #2A2357;
        --sun-soft: #3A3115;
        --coral-soft: #3E1D19;
        --mint-soft: #0F3324;
        --ink: #1A1A28;
        --fog: #0C0C13;
        --fog-deep: #232333;
        --track: #262636;
        --line: #232332;
        --surface: #1A1A26;
        --text: #F4F3FA;
        --text2: #C9C8D9;
        --text3: #9C9BB0;
        --text4: #7D7C92;
        --red-text: #FF9C8E;
        --amber-text: #FFD978;
        --green-text: #7BE8B8;
        --seg-track: #13131C;
        --seg-ind: #2C2C40;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--fog);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--sun); color: #14141F; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
.kicker { font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text3); margin: 0 0 14px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text2); margin: 18px 0 0; max-width: 34em; }
.sun-txt { color: var(--sun); }

/* ---------- Launch overlay (same choreography as LaunchAnimation.tsx) ---------- */
.launch {
    position: fixed; inset: 0; z-index: 100;
    background: var(--violet);
    display: grid; place-items: center;
    overflow: hidden;
    animation: launchOut .42s cubic-bezier(.55, 0, 1, .45) 1.6s forwards;
}
.launch .blob { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #fff; opacity: .07; }
.launch .blob.a { top: -120px; right: -140px; }
.launch .blob.b { bottom: -150px; left: -160px; opacity: .05; }
.launch-inner { display: flex; flex-direction: column; align-items: center; animation: launchZoom .42s cubic-bezier(.55, 0, 1, .45) 1.6s forwards; }
.launch-word { margin-top: 26px; display: flex; font-family: var(--display); font-weight: 800; font-size: 46px; letter-spacing: -0.5px; line-height: 1; }
.launch-word span { opacity: 0; transform: translateY(18px); animation: letterIn .6s var(--spring) forwards; color: #fff; }
.launch-word span.s { color: var(--sun); }
@keyframes launchOut { to { opacity: 0; visibility: hidden; } }
@keyframes launchZoom { to { transform: scale(1.35); } }
@keyframes letterIn { to { opacity: 1; transform: none; } }

/* The mark: three bars + graduation cap, reused in launch, nav and footer. */
.mark .bar { transform-box: fill-box; transform-origin: bottom; }
.mark.animate .bar { transform: scaleY(0); animation: barUp .7s var(--spring) forwards; }
.mark.animate .bar:nth-child(1) { animation-delay: .12s; }
.mark.animate .bar:nth-child(2) { animation-delay: .23s; }
.mark.animate .bar:nth-child(3) { animation-delay: .34s; }
.mark.animate .cap { opacity: 0; transform: translateY(-140px) rotate(-28deg); transform-box: fill-box; transform-origin: center; animation: capDrop .75s cubic-bezier(.3, 1.6, .55, 1) .48s forwards; }
@keyframes barUp { to { transform: scaleY(1); } }
@keyframes capDrop { 30% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
.nav {
    position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
    pointer-events: none;
}
.nav-bar {
    pointer-events: auto;
    margin: 0 auto; width: calc(100% - 32px); max-width: 1120px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 8px 8px 16px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
    transition: transform .4s var(--ease-out);
}
.nav.hide .nav-bar { transform: translateY(-120%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--violet); display: grid; place-items: center; }
.brand-icon svg { width: 24px; }
.brand b { color: var(--violet); font-weight: 800; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text2); padding: 8px 12px; border-radius: 12px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--track); color: var(--text); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 54px; padding: 0 22px; border-radius: 18px; border: 0; cursor: pointer;
    font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none;
    transition: transform .35s var(--spring), background .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.965); }
.btn:hover { transform: translateY(-2px); }
.btn:hover:active { transform: scale(.965); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-ink { background: #14141F; color: #fff; }
.btn-white { background: #fff; color: #14141F; }
.btn-sm { height: 42px; padding: 0 16px; border-radius: 14px; font-size: 15px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: .7; line-height: 1; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--violet); color: #fff;
    padding: 150px 0 0;
    border-radius: 0 0 48px 48px;
}
.hero .blob { position: absolute; border-radius: 50%; background: #fff; opacity: .07; pointer-events: none; }
.hero .blob.a { width: 520px; height: 520px; top: -180px; right: -160px; }
.hero .blob.b { width: 420px; height: 420px; bottom: -160px; left: -160px; opacity: .05; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 110px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 84px); }
.hero .lead { color: rgba(255, 255, 255, .88); }
.hero .kicker { color: rgba(255, 255, 255, .75); }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .16); color: #fff;
    font-weight: 600; font-size: 14px; border-radius: 999px; padding: 7px 14px 7px 8px; margin-bottom: 22px;
}
.chip i { font-style: normal; background: var(--mint-pop); color: var(--green-deep); font-weight: 700; padding: 2px 8px; border-radius: 999px; font-size: 13px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.hero-note { font-size: 14px; color: rgba(255, 255, 255, .72); margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; gap: 6px; align-items: center; }
.hero-note svg { width: 16px; height: 16px; }

.hero-stage { position: relative; height: 640px; }
.hero-stage .phone { position: absolute; left: 50%; bottom: -60px; transform: translateX(-50%); }
.float { position: absolute; border-radius: 26px; animation: bob 6s ease-in-out infinite; }
.float.f1 { width: 120px; height: 120px; background: var(--sun); left: 0; top: 70px; --r: -10deg; }
.float.f2 { width: 92px; height: 92px; background: var(--coral); right: 0; top: 200px; --r: 12deg; animation-duration: 7s; animation-delay: -2s; }
.float.f3 { width: 70px; height: 70px; background: var(--mint-bright); left: 30px; bottom: 120px; --r: 8deg; animation-duration: 5.5s; animation-delay: -1s; border-radius: 22px; }
@keyframes bob { 0%, 100% { transform: translateY(-9px) rotate(var(--r)); } 50% { transform: translateY(9px) rotate(var(--r)); } }

/* ---------- Phone mockup (renders a real app screen in HTML) ---------- */
.phone {
    width: 320px; height: 660px; flex: none;
    border-radius: 54px; padding: 11px;
    background: #14141F;
    box-shadow: 0 0 0 2px #2E2E40 inset, 0 40px 80px -30px rgba(20, 20, 31, .55);
}
.screen {
    position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden;
    background: var(--fog); color: var(--text);
    font-size: 14px; line-height: 1.35;
}
.screen.light-only {
    --fog: #F3F2F8; --surface: #fff; --text: #14141F; --text2: #45455A; --text3: #5C5C70; --text4: #B9B8CC; --track: #E9E8F2;
    --violet-soft: #E6E1FF; --violet-deep: #3E25D9; --sun-soft: #FFF1C7; --mint-soft: #D3F5E5; --coral-soft: #FFE1DC;
    --green-text: #0B6B45; --red-text: #B3261E; --amber-text: #7A5200; --ink: #14141F; --seg-track: #E4E2EE; --seg-ind: #fff;
}
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 5; }
.status { height: 46px; display: flex; justify-content: space-between; align-items: center; padding: 6px 26px 0; font-weight: 700; font-size: 14px; }
.status .dots { display: flex; gap: 5px; align-items: center; }
.status .dots i { display: block; width: 16px; height: 9px; border-radius: 3px; border: 1.5px solid currentColor; position: relative; }
.status .dots i::after { content: ''; position: absolute; inset: 1px 3px 1px 1px; background: currentColor; border-radius: 1px; }
.scr { padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 9px; }
.scr-head { display: flex; align-items: center; gap: 10px; }
.scr-head .h { flex: 1; min-width: 0; }
.scr-head .hello { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.scr-head .sub { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--sun); color: #14141F; display: grid; place-items: center; font-family: var(--display); font-weight: 800; }

.m-hero { position: relative; overflow: hidden; background: var(--violet); color: #fff; border-radius: 22px; padding: 15px; }
.m-hero::after { content: ''; position: absolute; right: -40px; bottom: -56px; width: 150px; height: 150px; border-radius: 50%; background: var(--violet-glow); }
.m-hero > * { position: relative; z-index: 1; }
.m-row { display: flex; justify-content: space-between; align-items: center; }
.m-lbl { font-weight: 600; font-size: 12px; opacity: .9; }
.m-pill { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 10.5px; background: rgba(255, 255, 255, .16); padding: 4px 8px; border-radius: 999px; }
.m-num { font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 1.02; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.m-delta { display: inline-block; font-weight: 700; font-size: 11px; padding: 3px 7px; border-radius: 999px; background: var(--mint-pop); color: var(--green-deep); margin-bottom: 12px; }
.m-meta { font-size: 11.5px; opacity: .92; display: flex; gap: 12px; }
.m-tiles { display: flex; gap: 9px; }
.m-tile { flex: 1; border-radius: 19px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.m-tile .l { font-weight: 700; font-size: 11px; }
.m-tile .n { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; }
.m-tile .n small { font-size: 12px; }
.m-tile .f { font-weight: 600; font-size: 10.5px; }
.m-sun { background: var(--sun); color: #14141F; }
.m-surface { background: var(--surface); }
.m-bar { height: 7px; border-radius: 4px; background: var(--track); overflow: hidden; }
.m-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--mint); transition: width 1.4s var(--spring); }
.m-goal { background: #14141F; color: #fff; border-radius: 19px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 11.5px; line-height: 1.35; }
.m-goal .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--coral); flex: none; display: grid; place-items: center; }
.m-goal .ic svg { width: 18px; color: #14141F; }
.m-section { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 800; font-size: 16px; margin-top: 2px; }
.m-section a { font-family: var(--body); font-weight: 700; font-size: 12px; color: var(--violet); text-decoration: none; }
.m-exam { background: var(--surface); border-radius: 16px; padding: 9px; display: flex; align-items: center; gap: 10px; }
.m-exam .nm { flex: 1; min-width: 0; }
.m-exam .nm b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-exam .nm span { font-size: 11px; color: var(--text3); }
.m-exam .d { font-weight: 700; font-size: 11px; }
.badge { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 16px; }
.t-low { background: var(--coral-soft); color: var(--red-text); }
.t-mid { background: var(--sun-soft); color: var(--amber-text); }
.t-good { background: var(--violet-soft); color: var(--violet-deep); }
.t-top { background: var(--mint-soft); color: var(--green-text); }
.t-lode { background: #14141F; color: var(--sun); }
.t-pf { background: var(--track); color: var(--text2); font-size: 12px; }
.tabbar {
    position: absolute; left: 12px; right: 12px; bottom: 12px; height: 58px; border-radius: 22px;
    background: var(--surface); display: flex; align-items: center; justify-content: space-around; padding: 0 6px;
    box-shadow: 0 8px 24px -12px rgba(20, 20, 31, .25);
}
.tabbar span { display: grid; place-items: center; gap: 2px; font-size: 9.5px; font-weight: 700; color: var(--text4); }
.tabbar span svg { width: 20px; height: 20px; }
.tabbar span.on { color: var(--violet); }
.tabbar .plus { width: 44px; height: 44px; border-radius: 15px; background: var(--violet); color: #fff; display: grid; place-items: center; }

/* ---------- Sections ---------- */
section { padding: 120px 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(38px, 5.4vw, 64px); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Reveal on scroll: the web version of enter(i) (FadeInDown, staggered, springy). */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease-out), transform .8s var(--spring); transition-delay: calc(60ms + var(--i, 0) * 55ms); }
.rv.in { opacity: 1; transform: none; }

/* Weighted vs simple */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.card { background: var(--surface); border-radius: var(--r-xxl); padding: 28px; }
.seg { position: relative; display: flex; background: var(--seg-track); border-radius: 16px; padding: 4px; }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: var(--seg-ind); transition: transform .5s var(--spring); }
.seg button { position: relative; flex: 1; height: 42px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 15px; -webkit-tap-highlight-color: transparent; }
.seg[data-v="1"] .seg-ind { transform: translateX(100%); }
.weigh-num { font-family: var(--display); font-weight: 800; font-size: clamp(80px, 11vw, 132px); line-height: 1; letter-spacing: -0.03em; margin: 26px 0 8px; font-variant-numeric: tabular-nums; }
.weigh-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.weigh-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.weigh-row .nm { font-weight: 700; font-size: 15px; }
.weigh-row .w { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; margin-top: 6px; }
.weigh-row .w i { display: block; height: 100%; border-radius: 5px; background: var(--violet); transition: width .8s var(--spring); }
.weigh-row .cfu { font-weight: 700; font-size: 14px; color: var(--text3); font-variant-numeric: tabular-nums; }
.card.violet { background: var(--violet); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.card.violet::after { content: ''; position: absolute; right: -80px; bottom: -100px; width: 280px; height: 280px; border-radius: 50%; background: var(--violet-glow); }
.card.violet > * { position: relative; z-index: 1; }
.card.violet .kicker { color: rgba(255, 255, 255, .75); }
.formula { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step b.n { flex: none; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-family: var(--display); font-size: 17px; }
.step div { font-size: 16px; line-height: 1.4; }
.step div small { display: block; opacity: .75; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Tools bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tool { position: relative; overflow: hidden; border-radius: var(--r-xxl); padding: 28px; min-height: 320px; display: flex; flex-direction: column; transition: transform .45s var(--spring); }
.tool:hover { transform: translateY(-4px) rotate(-.4deg); }
.tool h3 { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px; }
.tool p { margin: 0; font-size: 16px; opacity: .85; max-width: 26em; }
.tool .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.tool .ic svg { width: 26px; height: 26px; }
.tool.grad { grid-column: span 7; background: var(--sun); color: #14141F; }
.tool.need { grid-column: span 5; background: #14141F; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.tool.whatif { grid-column: span 5; background: var(--mint-bright); color: #14141F; }
.tool.how { grid-column: span 7; background: var(--surface); }
.tool.grad .ic { background: #14141F; color: var(--sun); }
.tool.need .ic { background: var(--coral); color: #14141F; }
.tool.whatif .ic { background: #14141F; color: var(--mint-bright); }
.tool.how .ic { background: var(--violet-soft); color: var(--violet); }
.tool .demo { margin-top: auto; padding-top: 24px; }

/* Graduation calc */
.calc { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.calc .big { font-family: var(--display); font-weight: 800; font-size: 88px; line-height: .9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc .of { font-family: var(--display); font-weight: 800; font-size: 24px; margin-bottom: 8px; }
.calc .lode { margin-left: 10px; margin-bottom: 10px; background: #14141F; color: var(--sun); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 999px; opacity: 0; transform: scale(.6); transition: .4s var(--spring); }
.calc .lode.on { opacity: 1; transform: none; }
.calc-parts { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.calc-parts span { background: rgba(20, 20, 31, .1); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: var(--track-c, rgba(20, 20, 31, .14)); }
input[type=range]::-moz-range-track { height: 10px; border-radius: 5px; background: var(--track-c, rgba(20, 20, 31, .14)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 10px; background: var(--thumb, #14141F); border: 4px solid var(--thumb-ring, #fff); transition: transform .3s var(--spring); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 10px; background: var(--thumb, #14141F); border: 4px solid var(--thumb-ring, #fff); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
.range-lbl { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 2px; }

/* Needed */
.need-num { font-family: var(--display); font-weight: 800; font-size: 88px; line-height: .9; letter-spacing: -0.03em; color: var(--sun); font-variant-numeric: tabular-nums; }
.verdict { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--mint-pop); color: var(--green-deep); transition: background .3s, color .3s; }
.verdict.hard { background: var(--sun); color: #14141F; }
.verdict.bad { background: var(--red-pop); color: var(--red-deep); }
.tool.need input[type=range] { --track-c: rgba(255, 255, 255, .16); --thumb: var(--coral); --thumb-ring: #14141F; }

/* What if */
.grades { display: flex; gap: 6px; flex-wrap: wrap; }
.grades button { width: 44px; height: 44px; border-radius: 13px; border: 0; cursor: pointer; background: rgba(20, 20, 31, .1); font-family: var(--display); font-weight: 800; font-size: 16px; transition: transform .35s var(--spring), background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.grades button:active { transform: scale(.9); }
.grades button.on { background: #14141F; color: var(--mint-bright); }
.wi-out { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; }
.wi-out .big { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: .9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wi-out .delta { font-weight: 700; font-size: 14px; padding: 5px 10px; border-radius: 999px; background: #14141F; color: var(--mint-pop); margin-bottom: 6px; transition: .3s; }
.wi-out .delta.neg { color: var(--red-pop); }

/* How */
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.how-steps div { background: var(--fog); border-radius: 18px; padding: 14px; }
.how-steps b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--violet); line-height: 1; margin-bottom: 8px; }
.how-steps span { font-size: 14px; color: var(--text2); line-height: 1.35; display: block; }

/* Import */
.import { background: #14141F; color: #fff; border-radius: 48px; margin: 0 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.import .kicker { color: rgba(255, 255, 255, .6); }
.import .lead { color: rgba(255, 255, 255, .78); }
.import-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pdf-stage { position: relative; display: flex; gap: 22px; align-items: center; justify-content: center; }
.pdf {
    position: relative; width: 230px; height: 300px; border-radius: 18px; background: #fff; color: #14141F; padding: 20px 16px; flex: none;
    transform: rotate(-5deg); overflow: hidden;
}
.pdf .t { height: 10px; width: 60%; background: #14141F; border-radius: 4px; margin-bottom: 6px; }
.pdf .t2 { height: 6px; width: 40%; background: #B9B8CC; border-radius: 3px; margin-bottom: 18px; }
.pdf .ln { display: flex; gap: 6px; margin-bottom: 11px; align-items: center; }
.pdf .ln i { height: 6px; border-radius: 3px; background: #DDDBE8; display: block; }
.pdf .ln i:first-child { flex: 1; }
.pdf .ln i:nth-child(2) { width: 18px; background: #B9AEFF; }
.pdf .ln i:nth-child(3) { width: 14px; background: #FFC93C; }
.pdf .tag { position: absolute; right: 12px; bottom: 12px; background: var(--coral); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 8px; border-radius: 8px; }
.scan { position: absolute; left: 0; right: 0; height: 46px; top: -46px; background: linear-gradient(180deg, transparent, rgba(90, 63, 255, .35)); border-bottom: 2px solid var(--violet); }
.import.play .scan { animation: scan 2.4s cubic-bezier(.45, 0, .55, 1) .3s infinite; }
@keyframes scan { 0% { top: -46px; } 80%, 100% { top: 300px; } }
.parsed { display: flex; flex-direction: column; gap: 8px; width: 270px; }
.parsed .m-exam { background: #1F1F2E; color: #fff; padding: 10px; opacity: 0; transform: translateX(-24px) scale(.96); transition: opacity .5s var(--ease-out), transform .7s var(--spring); }
.parsed .m-exam .nm span { color: #9C9BB0; }
.parsed .m-exam .ok { width: 22px; height: 22px; border-radius: 8px; background: var(--mint); display: grid; place-items: center; }
.parsed .m-exam .ok svg { width: 14px; color: #fff; }
.import.play .parsed .m-exam { opacity: 1; transform: none; }
.parsed .found { font-weight: 700; font-size: 14px; color: var(--mint-pop); margin-bottom: 4px; opacity: 0; transition: opacity .4s 1.6s; }
.import.play .parsed .found { opacity: 1; }
.import-points { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.import-points div { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: rgba(255, 255, 255, .85); }
.import-points svg { width: 22px; flex: none; color: var(--mint-bright); margin-top: 1px; }

/* Universities marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: slide 60s linear infinite; padding: 6px 0; }
.track.rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.uni { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 20px; padding: 10px 18px 10px 10px; white-space: nowrap; }
.uni .mono { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; color: #14141F; }
.uni b { display: block; font-size: 15px; }
.uni span { font-size: 13px; color: var(--text3); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.stat { border-radius: var(--r-xxl); padding: 26px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { font-weight: 600; font-size: 16px; }
.stat.s1 { background: var(--violet); color: #fff; }
.stat.s2 { background: var(--sun); color: #14141F; }
.stat.s3 { background: var(--coral); color: #14141F; }

/* Privacy */
.privacy-card { position: relative; overflow: hidden; background: var(--mint-soft); border-radius: 40px; padding: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.privacy-card h2 { font-size: clamp(36px, 4.6vw, 56px); color: var(--text); }
.privacy-card .lead { color: var(--text2); }
.lock { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.lock .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--green-text); opacity: .35; animation: spin 30s linear infinite; }
.lock .ring.r2 { inset: 36px; animation-direction: reverse; animation-duration: 20s; }
.lock .core { position: absolute; inset: 70px; border-radius: 30px; background: var(--mint); display: grid; place-items: center; color: #fff; }
.lock .core svg { width: 48px; height: 48px; }
@keyframes spin { to { transform: rotate(360deg); } }
.priv-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.priv-list span { background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.priv-list svg { width: 16px; color: var(--green-text); }

/* Languages */
.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.langs span { background: var(--surface); border-radius: 16px; padding: 12px 18px; font-weight: 700; font-size: 16px; display: inline-flex; gap: 8px; align-items: center; transition: transform .4s var(--spring); }
.langs span:hover { transform: translateY(-3px) rotate(-2deg); }
.langs span i { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 13px; padding: 3px 7px; border-radius: 8px; background: var(--violet-soft); color: var(--violet-deep); }

/* Final CTA */
.final { position: relative; overflow: hidden; background: var(--violet); color: #fff; border-radius: 48px; margin: 0 16px; padding: 110px 24px; text-align: center; }
.final .blob { position: absolute; border-radius: 50%; background: #fff; opacity: .07; }
.final h2 { font-size: clamp(42px, 6.4vw, 84px); position: relative; }
.final .lead { color: rgba(255, 255, 255, .88); margin-left: auto; margin-right: auto; position: relative; }
.final .cta-row { justify-content: center; position: relative; }
.final .mark { width: 120px; margin: 0 auto 30px; position: relative; }

/* Footer */
footer { padding: 60px 0 50px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.foot nav { display: flex; gap: 6px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text2); padding: 6px 10px; border-radius: 10px; }
.foot nav a:hover { background: var(--track); }
.foot small { color: var(--text3); font-size: 14px; }

/* ---------- Legal / support pages ---------- */
.page-hero { background: var(--violet); color: #fff; padding: 140px 0 70px; border-radius: 0 0 48px 48px; position: relative; overflow: hidden; }
.page-hero .blob { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #fff; opacity: .07; top: -160px; right: -120px; }
.page-hero h1 { font-size: clamp(44px, 6vw, 76px); position: relative; }
.page-hero p { position: relative; color: rgba(255, 255, 255, .85); font-size: 19px; max-width: 36em; margin: 16px 0 0; }
.page-hero .upd { display: inline-block; margin-top: 22px; background: rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.tabs-legal { display: inline-flex; margin-top: 28px; position: relative; background: rgba(255, 255, 255, .16); border-radius: 16px; padding: 4px; }
.tabs-legal a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 12px; }
.tabs-legal a.on { background: #fff; color: #14141F; }
.doc { max-width: 780px; margin: 0 auto; padding: 60px 24px 40px; display: flex; flex-direction: column; gap: 14px; }
.doc .sec { background: var(--surface); border-radius: var(--r-xl); padding: 24px 26px; }
.doc h2 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 8px; display: flex; gap: 12px; align-items: center; }
.doc h2 i { font-style: normal; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--violet-soft); color: var(--violet-deep); display: grid; place-items: center; font-size: 15px; }
.doc p { margin: 0; color: var(--text2); font-size: 16.5px; line-height: 1.6; }
.doc h3.part { font-family: var(--display); font-weight: 800; font-size: 34px; margin: 40px 0 6px; letter-spacing: -0.02em; scroll-margin-top: 100px; }
.doc h3.part:first-child { margin-top: 0; }
.faq details { background: var(--surface); border-radius: var(--r-xl); padding: 0 24px; transition: background .2s; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--violet-soft); color: var(--violet-deep); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; transition: transform .4s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; }
.contact { background: var(--sun); color: #14141F; border-radius: var(--r-xxl); padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.contact h2 { color: #14141F; margin: 0 0 4px; }
.contact p { color: #14141F; opacity: .8; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .hero { padding-top: 120px; }
    .hero-grid, .import-grid, .split, .privacy-card { grid-template-columns: 1fr; }
    .hero-copy { padding-bottom: 20px; }
    .hero-stage { height: 560px; }
    .tool.grad, .tool.need, .tool.whatif, .tool.how { grid-column: span 12; }
    .how-steps { grid-template-columns: repeat(2, 1fr); }
    .privacy-card { padding: 40px 28px; }
    .stats { grid-template-columns: 1fr; }
    .import-grid { gap: 40px; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    body { font-size: 16px; }
    section { padding: 80px 0; }
    .hero { border-radius: 0 0 32px 32px; }
    .hero-stage { height: 520px; }
    .phone { transform-origin: bottom center; }
    .hero-stage .phone { transform: translateX(-50%) scale(.9); }
    .float.f1 { width: 80px; height: 80px; top: 30px; }
    .float.f2 { width: 64px; height: 64px; }
    .float.f3 { display: none; }
    .card, .tool { padding: 22px; border-radius: 24px; }
    .tool h3 { font-size: 27px; }
    .calc .big, .need-num { font-size: 70px; }
    .import, .final { margin: 0 8px; border-radius: 32px; }
    .pdf-stage { flex-direction: column; }
    .pdf { width: 200px; height: 250px; }
    .parsed { width: 100%; max-width: 320px; }
    .privacy-card { border-radius: 32px; padding: 32px 22px; }
    .lock { width: 190px; height: 190px; }
    .lock .core { inset: 52px; }
    .final { padding: 80px 20px; }
    .grades button { width: 40px; height: 40px; }
    .contact { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .launch { display: none; }
    .rv { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
