/* Make It Easy · Student Space
   Look: fresh and light. The signature is the six CEFR steps (A1→C2), coloured from lime to blue.
   Type: Bricolage Grotesque for headings and big numbers, Instrument Sans for everything else.
   Motion: only "transform" and "opacity" are animated, so the browser can run every animation at the
   screen's own refresh rate (60, 90 or 120 Hz).
   To change the colours, edit the two blocks below (light, then dark). */

:root {
  --bg: #F3F6F4; --surface: #FFFFFF; --sunk: #E9EFEC; --ink: #0C1513; --ink-2: #2B3934; --muted: #5C6B66;
  --line: rgba(12, 21, 19, .1); --line-2: rgba(12, 21, 19, .2);
  /* the six level colours, A1 → C2 (same in light and dark) */
  --l1: #C8EB4A; --l2: #8FE05A; --l3: #45CF85; --l4: #18B8A0; --l5: #1B95D0; --l6: #3B66E8;
  /* the same six, dark enough to be read as text on a light page */
  --t1: #5F8A00; --t2: #2F8F1C; --t3: #0B8A55; --t4: #087F6F; --t5: #0C70A6; --t6: #2F55D4;
  --accent: var(--t3); --on-grad: #08130F;
  --grad: linear-gradient(100deg, var(--l1), var(--l3) 55%, var(--l4));
  --good: #0B8A55; --good-soft: #DFF5EA; --bad: #C2412D; --bad-soft: #FBE7E2; --warn-soft: #FFF3C4; --warn-ink: #5C4700;
  --orb: .5;
  --shadow: 0 1px 2px rgba(12, 21, 19, .05), 0 12px 32px -14px rgba(12, 21, 19, .16);
  --shadow-lift: 0 2px 6px rgba(12, 21, 19, .06), 0 28px 56px -20px rgba(12, 21, 19, .28);
  --r: 22px; --r-s: 14px;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
:root[data-theme="dark"] {
  --bg: #070C0B; --surface: #101816; --sunk: #19241F; --ink: #EEF5F1; --ink-2: #C9D6D0; --muted: #8C9D96;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .2);
  --t1: #C8EB4A; --t2: #8FE05A; --t3: #45CF85; --t4: #2ACDB4; --t5: #45B4EA; --t6: #7C9BFF;
  --good: #5FE3AE; --good-soft: #0F2A20; --bad: #FF8E79; --bad-soft: #3A1B15; --warn-soft: #2A2610; --warn-ink: #F0DC8C;
  --orb: .2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .4), 0 28px 56px -20px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077 20.4%, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 5.4vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
p { margin: 0 0 .8em; }
a { color: inherit; }
code { font-size: .9em; background: var(--sunk); padding: .1em .4em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--l5); outline-offset: 3px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
main.wrap { flex: 1; padding-block: 28px 64px; display: flex; flex-direction: column; gap: 20px; }
main.wrap > * { min-width: 0; }
:where(main.wrap > section, main.wrap > article) { display: flex; flex-direction: column; gap: 20px; }
main.narrow { max-width: 760px; }
main.xs { max-width: 520px; }
main.home { gap: 0; padding-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6em; }
.center-panel .eyebrow, .auth-head .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.sel { user-select: all; }
.chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--l3); box-shadow: 0 0 0 0 var(--l3); position: relative; }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--l3); animation: ping 1.8s var(--ease) infinite; }

/* ---------- moving background (three soft lights) */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; width: 36vmax; height: 36vmax; border-radius: 50%; opacity: var(--orb); background: radial-gradient(closest-side, var(--c), transparent); will-change: transform; }
.bg i:nth-child(1) { --c: var(--l2); top: -6vmax; left: -4vmax; transform: scale(2); animation: drift1 24s ease-in-out infinite alternate; }
.bg i:nth-child(2) { --c: var(--l5); top: 22vh; right: -8vmax; transform: scale(2); animation: drift2 30s ease-in-out infinite alternate; }
.bg i:nth-child(3) { --c: var(--l4); bottom: -14vmax; left: 24vw; transform: scale(2); animation: drift3 36s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(16vmax, 12vmax, 0) scale(2.4); } }
@keyframes drift2 { to { transform: translate3d(-18vmax, -8vmax, 0) scale(1.7); } }
@keyframes drift3 { to { transform: translate3d(12vmax, -14vmax, 0) scale(2.3); } }

/* ---------- bars */
.demo-bar { background: var(--warn-soft); color: var(--warn-ink); font-size: .82rem; padding: 6px 20px; display: flex; gap: 6px 12px; justify-content: center; align-items: center; flex-wrap: wrap; text-align: center; }
.demo-bar .link { color: inherit; font-size: inherit; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); background: color-mix(in srgb, var(--bg) 76%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand-name { min-width: 0; }
.brand b { display: block; font: 800 1.12rem/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brand-mark { flex: none; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(45deg, var(--l1), var(--l3) 55%, var(--l5)); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 9px 8px; }
.brand-mark i { flex: 1; border-radius: 2px; background: #08130F; transform-origin: 50% 100%; }
.brand-mark i:nth-child(1) { height: 42%; } .brand-mark i:nth-child(2) { height: 70%; } .brand-mark i:nth-child(3) { height: 100%; }
.brand:hover .brand-mark i { animation: hop .5s var(--ease); }
.brand:hover .brand-mark i:nth-child(2) { animation-delay: .07s; } .brand:hover .brand-mark i:nth-child(3) { animation-delay: .14s; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.top-actions .btn { white-space: nowrap; }
.who { color: var(--muted); font-size: .85rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-link { background: none; border: 0; color: var(--ink); font: 600 .9rem var(--body); padding: 8px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background .2s; }
.tab-link:hover { background: var(--sunk); }
.tab-link.on { background: var(--ink); color: var(--bg); }
.days-left { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px; border-radius: 999px; background: var(--good-soft); color: var(--good); font: 600 .82rem var(--body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.days-left svg { width: 28px; height: 28px; transform: rotate(-90deg); flex: none; }
.days-left circle { fill: none; stroke-width: 3; }
.days-left .track { stroke: currentColor; opacity: .2; }
.days-left .arc { stroke: currentColor; stroke-linecap: round; animation: arc 1.2s var(--ease) .2s backwards; }
.days-left .dl-short { display: none; }
.days-left.warn { background: var(--warn-soft); color: var(--warn-ink); }
.days-left.over { background: var(--bad-soft); color: var(--bad); padding: 7px 12px; }
@keyframes arc { from { stroke-dasharray: 0 56.55; } }
.icon-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .4s var(--spring); touch-action: manipulation; }
.icon-btn:active { transform: scale(.88); transition-duration: .08s; }
.icon-btn .ic { grid-area: 1 / 1; transition: transform .6s var(--spring), opacity .25s; }
[data-theme="light"] .icon-btn .ic:first-child, [data-theme="dark"] .icon-btn .ic:last-child { opacity: 0; transform: rotate(120deg) scale(.3); }
.foot { padding-block: 22px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; }
.foot b { color: var(--ink); }

/* ---------- buttons and forms */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 .95rem/1.2 var(--body); cursor: pointer; text-decoration: none; user-select: none; touch-action: manipulation; transition: transform .4s var(--spring), box-shadow .3s, border-color .2s; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ink); } }
.btn:active { transform: scale(.96); transition-duration: .08s; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary { background: var(--grad) border-box; border-color: transparent; color: var(--on-grad); overflow: hidden; }
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
@media (hover: hover) { .btn.primary:hover { border-color: transparent; } .btn.primary:hover::after { transform: translateX(120%); transition: transform .9s var(--ease); } }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: .86rem; }
.btn.big { min-height: 54px; padding: 12px 26px; font-size: 1.02rem; }
.btn.wide { width: 100%; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.off { cursor: default; }
.btn.google .g { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem var(--body); color: #fff; background: conic-gradient(#EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0); }
.link { background: none; border: 0; padding: 4px 0; font: 600 .9rem var(--body); color: var(--ink); text-decoration: underline; text-decoration-color: var(--l3); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.link:hover { color: var(--accent); }
.link.danger { color: var(--bad); text-decoration-color: currentColor; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; }

form { display: flex; flex-direction: column; gap: 14px; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 600; }
input, select, textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 11px 14px; min-height: 48px; width: 100%; transition: border-color .2s, box-shadow .2s; }
select { width: auto; padding-right: 34px; min-height: 42px; }
textarea { resize: vertical; font-size: .95rem; }
input:focus, select:focus, textarea:focus { border-color: var(--l4); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--l4) 25%, transparent); }
.err { color: var(--bad); font-size: .875rem; min-height: 1em; margin: 0; }
.err:empty { display: none; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sunk); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 8px 12px; min-height: 40px; border-radius: 999px; font: 600 .9rem var(--body); color: var(--muted); cursor: pointer; transition: background .25s, color .25s, transform .3s var(--spring); }
.seg button:active { transform: scale(.96); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg.big { margin: 0; max-width: 460px; }

/* ---------- panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.panel > :last-child { margin-bottom: 0; }
.center-panel { text-align: center; padding: 40px 28px; }
.center-panel .rules { text-align: left; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.tag.lvl { background: var(--c, var(--ink)); color: var(--on-grad); }
.pill { display: inline-block; min-width: 44px; text-align: center; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-variant-numeric: tabular-nums; }
/* a soft light that follows the mouse over a card */
.spot { position: relative; overflow: hidden; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, var(--l3)) 24%, transparent), transparent 72%); }
.spot > * { position: relative; z-index: 1; }
@media (hover: hover) { .spot:hover::before { opacity: 1; } }
.sum-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--sunk); background: color-mix(in srgb, var(--c, var(--l3)) 28%, var(--surface)); color: var(--ink); font-size: 1.15rem; margin-bottom: 12px; }
.sum-ic.big { width: 62px; height: 62px; border-radius: 21px; font-size: 1.55rem; margin-bottom: 18px; }
.loader { display: inline-flex; align-items: flex-end; gap: 5px; height: 34px; margin-bottom: 14px; }
.loader i { width: 9px; height: 100%; border-radius: 3px; background: var(--l3); transform-origin: 50% 100%; animation: load .8s ease-in-out infinite alternate; }
.loader i:nth-child(1) { background: var(--l1); animation-delay: -.5s; } .loader i:nth-child(2) { animation-delay: -.25s; } .loader i:nth-child(3) { background: var(--l5); }

/* ---------- ladder (the six steps) */
.ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 5%; align-items: end; width: 100%; height: var(--lh, 160px); }
.rung { display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; height: 100%; text-align: center; }
.rung i { display: block; height: calc((var(--lh, 160px) - 42px) * var(--hn)); border-radius: 9px 9px 5px 5px; background: var(--sunk); background: color-mix(in srgb, var(--c) 20%, var(--sunk)); transform-origin: 50% 100%; animation: grow 1s var(--spring) backwards; animation-delay: calc(var(--i) * 80ms + 150ms); }
.rung.done i, .rung.cur i { background: var(--c); }
.rung.cur i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 14px 26px -8px var(--c); }
.rung span { font: 700 .72rem/1 var(--body); letter-spacing: .02em; color: var(--muted); }
.rung.cur span { color: var(--ink); }
.rung.cur::before { content: ''; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: bob 1s ease-in-out infinite alternate; }
.ladder.wave .rung i { animation: grow 1s var(--spring) backwards, wave 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * 80ms + 150ms), calc(var(--i) * 160ms + 1.8s); }

/* ---------- home */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(20px, 5vw, 56px) clamp(20px, 4vw, 44px); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-title { font-size: clamp(3.1rem, 11vw, 6.4rem); line-height: .92; letter-spacing: -.05em; margin: .3em 0 .35em; }
.hero-title em { position: relative; display: inline-block; font-style: normal; padding: 0 .04em .14em; margin-bottom: -.14em; background: linear-gradient(100deg, var(--t2), var(--t4), var(--t6), var(--t4), var(--t2)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: sheen 8s linear infinite; }
.hero-title em svg { position: absolute; left: 0; bottom: .02em; width: 100%; height: .2em; overflow: visible; }
.hero-title em path { fill: none; stroke: var(--l3); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) .9s forwards; }
.hero .lead { margin-bottom: 1.4em; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; font-size: .86rem; color: var(--muted); }
.hero-facts li { display: flex; align-items: baseline; gap: 8px; }
.hero-facts b { font: 800 1.6rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.hero-art { position: relative; display: grid; place-items: center; padding-block: 52px; }
.floaty { width: min(340px, 88%); animation: floaty 6s ease-in-out infinite alternate; }
.mock { --lh: 136px; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 20px 22px 18px; box-shadow: var(--shadow-lift); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.mock-top { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 16px; }
.mock .eyebrow { margin: 0; }
.mock-level { font: 800 4.4rem/1 var(--display); letter-spacing: -.05em; background: linear-gradient(120deg, var(--c1, var(--ink)), var(--c2, var(--muted))); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.mock-name { font: 600 1rem var(--display); color: var(--ink-2); margin: 2px 0 14px; }
.mock-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.mock-foot b { font: 700 1.05rem var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font: 600 .82rem var(--body); white-space: nowrap; animation: floaty 5s ease-in-out infinite alternate-reverse; }
.float-chip .ic { color: var(--accent); stroke-width: 2.4; }
.fc1 { top: 0; left: 0; } .fc2 { bottom: 4px; right: 0; animation-duration: 7s; }
.marquee { overflow: hidden; padding: 14px 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; will-change: transform; }
.marquee-track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 700 1.15rem var(--display); letter-spacing: -.01em; white-space: nowrap; color: var(--ink-2); }
.marquee-track i { width: 9px; height: 9px; border-radius: 3px; background: var(--l3); transform: rotate(45deg); }
.marquee-track span:nth-child(3n+1) i { background: var(--l1); } .marquee-track span:nth-child(3n+2) i { background: var(--l5); }
.block { display: flex; flex-direction: column; gap: 24px; margin-top: clamp(40px, 8vw, 92px); scroll-margin-top: 84px; }
.block-head { max-width: 42em; }
.block-head h2 { font-size: clamp(2rem, 5.6vw, 3rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .3em; }
.block-head .lead { margin: 0; }
.sum-grid, .feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sum-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .5s var(--spring), box-shadow .3s, border-color .3s; }
.sum-card h3 { margin-bottom: .35em; }
.sum-card p { font-size: .95rem; }
.sum-meta { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font: 600 .82rem var(--body); color: var(--muted); }
.sum-go { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sunk); color: var(--ink); transition: transform .45s var(--spring), background .25s, color .25s; }
@media (hover: hover) {
  .sum-card:hover, .mini-card:hover, .next-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--c); }
  .sum-card:hover .sum-go { transform: translateX(4px) scale(1.08); background: var(--c); color: var(--on-grad); }
}
.sum-card:active, .mini-card:active, .next-card:active { transform: scale(.98); transition-duration: .1s; }
.feat h3 { margin-bottom: .35em; }
.cta-band { position: relative; overflow: hidden; margin-top: clamp(40px, 8vw, 92px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; padding: clamp(26px, 5vw, 46px); border-radius: 32px; background: var(--ink); color: var(--bg); }
.cta-band::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -90%; border-radius: 50%; background: radial-gradient(closest-side, var(--l3), transparent); opacity: .5; animation: drift2 14s ease-in-out infinite alternate; }
.cta-band > * { position: relative; }
.cta-band h2 { color: inherit; font-size: clamp(1.6rem, 4.4vw, 2.3rem); font-weight: 800; margin-bottom: .25em; }
.cta-band p { margin: 0; opacity: .78; max-width: 34em; }
.cta-band .btn:not(.primary) { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); }
.cta-band.small-band { margin-top: 12px; border-radius: var(--r); grid-template-columns: 1fr; }

/* ---------- a summary (reader) */
.reader { gap: 18px; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 .9rem var(--body); text-decoration: none; transition: transform .4s var(--spring), color .2s; }
.back:hover { color: var(--ink); transform: translateX(-4px); }
.reader-head { margin-top: 6px; }
.reader-head h1 { font-size: clamp(2.3rem, 7.4vw, 3.6rem); }
.reader-head .lead { margin: 0; }
.fact-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); background: color-mix(in srgb, var(--c) 16%, var(--surface)); }
.fact b { font: 800 1.75rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact span { font-size: .8rem; line-height: 1.3; color: var(--ink-2); }
.reader-sec h2 { font-size: 1.3rem; margin-bottom: .7em; }
.reader-sec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.reader-sec li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.reader-sec li .ic { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--good-soft); color: var(--good); stroke-width: 3; margin-top: 1px; }
.reader-sec.avoid li .ic { background: var(--bad-soft); color: var(--bad); }
.tip { padding: 18px 22px; border-radius: var(--r); border: 1.5px dashed var(--line-2); }
.tip b { display: block; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.tip p { margin: 0; }
.next-card, .mini-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: inherit; text-decoration: none; transition: transform .5s var(--spring), box-shadow .3s, border-color .3s; }
.next-card .sum-ic, .mini-card .sum-ic { margin: 0; flex: none; }
.next-card small, .mini-card small { display: block; font-size: .78rem; color: var(--muted); }
.next-card b { font: 700 1.1rem var(--display); letter-spacing: -.01em; }
.next-card > .ic, .mini-card > .ic { margin-left: auto; color: var(--muted); }

/* ---------- login */
.auth { gap: 18px; }
.auth-head { text-align: center; padding-top: 10px; }
.auth-head .lead { margin-inline: auto; }
.demo-panel { background: var(--warn-soft); border-color: transparent; box-shadow: none; }
.in-app { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; box-shadow: none; }
.in-app h3 { color: inherit; }
.in-app code { background: var(--surface); color: var(--ink); padding: 6px 10px; }
.demo-panel .row .btn { flex: 1 1 160px; }

/* ---------- dashboard */
:where(main.wrap > section).hello { gap: 10px; }
.hello h1 { margin: 0; font-size: clamp(2.1rem, 6.4vw, 3.3rem); }
.level-card, .result-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; align-items: center; padding: 30px; }
.level-card::after, .result-hero::after { content: ''; position: absolute; z-index: 0; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--c2, transparent) 34%, transparent), transparent); }
.level-card, .result-hero { position: relative; overflow: hidden; }
.level-card > *, .result-hero > * { position: relative; z-index: 1; }
.level-card h2 { margin-bottom: .3em; }
.level-ladder { --lh: 190px; width: 100%; }
.big-level { display: inline-block; font: 800 clamp(4.2rem, 15vw, 6.6rem)/.95 var(--display); letter-spacing: -.035em; padding-right: .06em; background: linear-gradient(120deg, var(--c1, var(--ink)), var(--c2, var(--muted))); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.big-level.pop { animation: pop .9s var(--spring) .15s backwards; transform-origin: 0 80%; }
.lvl-name { font: 600 1.3rem var(--display); letter-spacing: -.015em; margin: .15em 0 .4em; color: var(--ink-2); }
.ielts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 1.1em; }
.ielts b { font: 700 1rem var(--display); padding: 4px 14px; border-radius: 999px; background: var(--sunk); font-variant-numeric: tabular-nums; }
.test-card { display: flex; flex-direction: column; align-items: flex-start; }
.test-card .btn { margin-top: auto; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.history li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history b { font: 800 1.25rem var(--display); }
.sec-title { margin: 20px 0 0; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-card { padding: 14px 16px; }
.mini-card .sum-ic { width: 42px; height: 42px; border-radius: 14px; }
.mini-text { min-width: 0; }
.mini-text b { display: block; font-weight: 600; line-height: 1.25; }
.today-card .tbl-head { margin-bottom: 4px; }
.today-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.today-skill { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.today-skill .sum-ic { margin-bottom: 6px; }
.today-skill b { font: 700 1.05rem var(--display); }
.today-skill .small { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.today-skill .tag { margin-top: 6px; }
.today-skill.done { background: var(--sunk); }
.today-skill.done .small { color: var(--good); font-weight: 600; }
.soon { box-shadow: none; background: transparent; border-style: dashed; border-color: var(--line-2); }
.soon .tag { margin-bottom: 12px; background: var(--good-soft); color: var(--good); }

/* ---------- test */
.rules { margin: 8px 0 24px; padding-left: 1.2em; display: flex; flex-direction: column; gap: 9px; }
.rules li::marker { color: var(--l3); }
.ladder-strip { --lh: 120px; width: min(300px, 100%); margin: 6px auto 22px; }
.test-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.test-meta { display: flex; flex-direction: column; }
.test-meta .eyebrow { margin: 0; }
.qcount { font: 700 1.15rem var(--display); letter-spacing: -.01em; }
.clock { font: 700 1.35rem/1 var(--display); font-variant-numeric: tabular-nums; padding: 11px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.clock.low { background: var(--bad-soft); color: var(--bad); border-color: transparent; animation: blink .9s ease-in-out infinite alternate; }
.segs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.seg-p { display: flex; flex-direction: column; gap: 5px; font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center; }
.seg-p.cur { color: var(--ink); }
.seg-bar { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.seg-bar i { display: block; height: 100%; border-radius: 4px; background: var(--c); transform: translateX(calc((var(--p) - 100) * 1%)); animation: fillFrom .7s var(--ease) backwards; }
.seg-p.cur .seg-bar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); }
.qcard { padding: 28px; }
.qcard.q-next { animation: qNext .5s var(--ease) backwards; }
.qcard.q-prev { animation: qPrev .5s var(--ease) backwards; }
.qcard.q-next .opt, .qcard.q-prev .opt { animation: rise .55s var(--ease) backwards; animation-delay: calc(var(--i) * 45ms + 70ms); }
.q-tags { display: flex; gap: 6px; margin-bottom: 16px; }
.passage { margin: 0 0 18px; padding: 16px 18px; background: var(--sunk); border-left: 4px solid var(--l3); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: .97rem; line-height: 1.7; color: var(--ink-2); }
.prompt { font: 600 1.25rem/1.5 var(--body); letter-spacing: 0; margin-bottom: 20px; }
.gap { display: inline-block; min-width: 4.5em; border-bottom: 3px solid var(--l3); color: transparent; line-height: 1.05; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; min-height: 56px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--ink); font: 500 1rem var(--body); cursor: pointer; touch-action: manipulation; transition: transform .35s var(--spring), border-color .15s, background .2s; }
@media (hover: hover) { .opt:hover { border-color: var(--ink); transform: translateX(4px); } }
.opt:active { transform: scale(.98); transition-duration: .08s; }
.opt.on { border-color: var(--t3); background: var(--good-soft); }
.ol { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); font-weight: 700; font-size: .85rem; color: var(--muted); transition: background .2s, color .2s; }
.opt.on .ol { background: var(--grad); color: var(--on-grad); }
.opt.just .ol { animation: pop .45s var(--spring); }
.test-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.confirm { background: var(--warn-soft); border: 1px solid transparent; box-shadow: none; padding: 18px; border-radius: var(--r-s); margin-top: 14px; animation: rise .5s var(--ease) backwards; }

/* ---------- result */
.lv-rows { display: flex; flex-direction: column; gap: 11px; margin-bottom: 14px; }
.lv-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.lv-c { font-weight: 700; font-size: .85rem; }
.lv-n { text-align: right; font-size: .85rem; color: var(--muted); }
.lv-bar { height: 12px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: 6px; background: var(--muted); opacity: .4; transform: translateX(calc((var(--p) - 100) * 1%)); animation: fill 1.1s var(--ease) backwards; animation-delay: calc(var(--i) * 90ms + 350ms); }
.lv-bar i.ok { background: var(--c); opacity: 1; }
.facts { margin: 0 0 14px; display: flex; flex-direction: column; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- teacher */
.dist-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.dist-c { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: var(--r-s); background: var(--sunk); border-bottom: 4px solid var(--c, var(--line-2)); }
.dist-c b { font: 800 1.7rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.dist-c span { font-size: .75rem; font-weight: 700; color: var(--muted); }
.dist-c.muted b { color: var(--muted); }
.tbl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tbl-head h3 { margin: 0; }
.tbl-wrap { overflow-x: auto; margin-inline: -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; color: var(--muted); font-size: .8rem; }
.tbl .num { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .okc { color: var(--good); font-weight: 700; }
.tbl .badc { color: var(--bad); }
.tbl td > .muted { white-space: nowrap; }
.date-in { width: auto; min-height: 38px; padding: 6px 10px; font-size: .88rem; border-radius: 10px; }
.tbl td .date-in + small { margin-top: 4px; white-space: nowrap; }
.pill.bad { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tbl td .link[data-renew] { display: block; margin-top: 4px; font-size: .82rem; white-space: nowrap; }
.tbl-head h3 small { font: 500 .82rem var(--body); margin-left: 6px; letter-spacing: 0; }
.access-warn { margin: 4px 0 0; padding: 10px 14px; border-radius: var(--r-s); background: var(--warn-soft); color: var(--warn-ink); }
.acts { white-space: nowrap; }
.acts .link + .link { margin-left: 14px; }
#detail { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 84px; }
#detail:empty, #confirm:empty, #tConfirm:empty { display: none; }

/* ---------- motion */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes grow { from { opacity: 0; transform: scaleY(0); } }
@keyframes wave { 0%, 36%, 100% { transform: scaleY(1); } 18% { transform: scaleY(1.1); } }
@keyframes bob { to { transform: translate3d(0, -7px, 0); } }
@keyframes hop { 40% { transform: scaleY(1.35); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }
@keyframes load { from { transform: scaleY(.3); } }
@keyframes blink { to { opacity: .6; } }
@keyframes floaty { from { transform: translate3d(0, -8px, 0); } to { transform: translate3d(0, 10px, 0); } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes sheen { to { background-position: 200% 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { from { transform: translateX(-100%); } }
@keyframes fillFrom { from { transform: translateX(calc((var(--from) - 100) * 1%)); } }
@keyframes qNext { from { opacity: 0; transform: translate3d(40px, 0, 0); } }
@keyframes qPrev { from { opacity: 0; transform: translate3d(-40px, 0, 0); } }
.in-rise { animation: rise .85s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal] { opacity: 0; }
.js [data-reveal].seen { opacity: 1; animation: rise .95s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 90ms); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
.fps { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 70; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 .8rem var(--body); font-variant-numeric: tabular-nums; pointer-events: none; }

/* ---------- tablet and phone */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .sum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .level-card, .result-hero { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .level-ladder { --lh: 150px; max-width: 320px; }
  .cta-band { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-only { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .panel { padding: 20px; }
  .qcard { padding: 20px; }
  .prompt { font-size: 1.1rem; }
  .center-panel { padding: 30px 20px; }
  .segs { gap: 4px; }
  .test-nav .muted { display: none; }
  .brand small { display: none; }
  .sum-grid, .mini-grid { grid-template-columns: 1fr; }
  .topbar-in { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; padding: 8px 7px; }
  .brand b { font-size: 1rem; }
  .top-actions .btn .ic { display: none; }
  .days-left { padding-right: 10px; }
  .days-left .dl-word { display: none; }
  .days-left .dl-short { display: inline; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
  .hero-facts li { flex-direction: column; gap: 4px; line-height: 1.3; }
  .hero .row .btn { flex: 1 1 100%; }
  .cta-band .row .btn { flex: 1 1 100%; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; }
  .hero-title em path { stroke-dashoffset: 0; }
}
