/* Clevix Ed — landing page + Simulations (browse) page */
@import url('base.css');

:root { --nav-h: 64px; --ease: cubic-bezier(.2, .7, .2, 1); }
.sub-physics { --sc: var(--c1); } .sub-chemistry { --sc: var(--c2); } .sub-math { --sc: var(--c5); }
.sub-biology { --sc: var(--c3); } .sub-earth { --sc: var(--c6); }
.sub-computer { --sc: var(--c5); }
.badge.subj-earth { background: color-mix(in srgb, var(--c6) 16%, transparent); color: var(--c6); }

html, body { overflow-x: clip; }
.wrap { max-width: 1680px; margin: 0 auto; padding: 0 clamp(16px, 3.2vw, 48px); }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0; letter-spacing: -.025em; }
.section-sub { margin: 8px 0 0; color: var(--ink-2); max-width: 620px; font-size: 16.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(20, 24, 60, .06); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 100%; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 56px 0 72px; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; }
.hero::before { width: 520px; height: 520px; left: -160px; top: -140px; background: radial-gradient(circle, color-mix(in srgb, var(--c1) 55%, transparent), transparent 70%); }
.hero::after { width: 460px; height: 460px; right: -120px; top: 60px; background: radial-gradient(circle, color-mix(in srgb, var(--c5) 45%, transparent), transparent 70%); animation-delay: -6s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 12px 6px 8px; border-radius: 999px; box-shadow: var(--shadow); }
.eyebrow b { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); margin: 0 0 18px; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 .grad { background: linear-gradient(100deg, var(--c1), var(--c5) 50%, var(--c2)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lede { font-size: 18.5px; color: var(--ink-2); margin: 0 0 26px; max-width: 560px; }
.hero-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); max-width: 560px; transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.hero-search svg { width: 20px; height: 20px; stroke: var(--ink-2); fill: none; stroke-width: 2; flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; padding: 10px 4px; outline: none; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.quick a { font-size: 13.5px; text-decoration: none; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; transition: border-color .15s, color .15s, transform .15s; }
.quick a:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.stats { list-style: none; display: flex; gap: 34px; padding: 0; margin: 32px 0 0; color: var(--ink-2); font-size: 14px; }
.stats b { display: block; font-size: 30px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-art { position: relative; aspect-ratio: 5 / 4; }
.hero-art .screen { position: absolute; inset: 0; background: var(--stage); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 80px rgba(20, 24, 60, .18); overflow: hidden; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.float { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 13px; font-size: 13px; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; white-space: nowrap; }
.float b { color: var(--accent); font-variant-numeric: tabular-nums; }
.float.f-a { left: -18px; top: 14%; } .float.f-b { right: -14px; top: 6%; animation-delay: -2s; } .float.f-c { left: 10%; bottom: -16px; animation-delay: -3.5s; }
.float .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 6px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 25%, transparent); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- subject cards ---------- */
.subjects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.subject { grid-column: span 2; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 20px; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 14%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--sc) 25%, var(--line));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.subject:hover { transform: translateY(-4px); box-shadow: 0 18px 40px color-mix(in srgb, var(--sc) 22%, transparent); border-color: var(--sc); }
.subject .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sc); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--sc) 40%, transparent); transition: transform .4s var(--ease); }
.subject:hover .ico { transform: rotate(-8deg) scale(1.08); }
.subject .ico svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.subject h3 { margin: 4px 0 0; font-size: 22px; }
.subject p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.subject .count { position: absolute; right: 20px; top: 20px; font-size: 13px; font-weight: 600; color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, var(--surface)); padding: 4px 10px; border-radius: 999px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.topic-chips span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: border-color .15s, color .15s; }
.topic-chips span:hover { border-color: var(--sc); color: var(--ink); }
.subject .deco { position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid color-mix(in srgb, var(--sc) 10%, transparent); pointer-events: none; transition: transform .6s var(--ease); }
.subject:hover .deco { transform: scale(1.25); }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: max(270px, calc((100% - 3 * 18px) / 4)); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; scroll-behavior: smooth; }
.track > * { scroll-snap-align: start; }
.car-btns { display: flex; gap: 8px; }
.car-btns .btn { width: 40px; padding: 0; }

/* ---------- sim cards ---------- */
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(20, 24, 60, .12); border-color: color-mix(in srgb, var(--sc) 50%, var(--line)); }
.card .thumb { position: relative; aspect-ratio: 5 / 3; display: grid; place-items: center; padding: 12px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--sc) 14%, var(--stage)), color-mix(in srgb, var(--sc) 5%, var(--stage)) 70%); border-bottom: 1px solid var(--line); }
.card .thumb svg { width: 100%; height: 100%; overflow: hidden; transition: transform .5s var(--ease); }
.card:hover .thumb svg { transform: scale(1.07); }
.card .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s; background: color-mix(in srgb, var(--surface) 30%, transparent); }
.card .play i { width: 54px; height: 54px; border-radius: 50%; background: var(--sc); display: grid; place-items: center; transform: scale(.7); transition: transform .3s var(--ease); box-shadow: 0 10px 24px color-mix(in srgb, var(--sc) 45%, transparent); }
.card .play i::after { content: ""; margin-left: 4px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.card:hover .play { opacity: 1; } .card:hover .play i { transform: scale(1); }
.card .new { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--c2); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card h3 { margin: 2px 0 0; font-size: 17.5px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.card .topic { font-size: 12px; color: var(--ink-2); }
/* thumbnail drawing classes (shared SVG style) */
.thumb .k { stroke: var(--ink); fill: none; stroke-width: 2.5; }
.thumb .m { stroke: var(--ink-2); fill: none; stroke-width: 1.5; opacity: .55; }
.thumb .s1, .thumb .s2, .thumb .s3, .thumb .s4, .thumb .s5, .thumb .s6 { fill: none; stroke-width: 3; }
.thumb .s1 { stroke: var(--c1); } .thumb .s2 { stroke: var(--c2); } .thumb .s3 { stroke: var(--c3); }
.thumb .s4 { stroke: var(--c4); } .thumb .s5 { stroke: var(--c5); } .thumb .s6 { stroke: var(--c6); }
.thumb .thin { stroke-width: 1.5; opacity: .7; }
.thumb .f1 { fill: var(--c1); } .thumb .f2 { fill: var(--c2); } .thumb .f3 { fill: var(--c3); }
.thumb .f4 { fill: var(--c4); } .thumb .f5 { fill: var(--c5); } .thumb .f6 { fill: var(--c6); }
.thumb .fk { fill: var(--ink); } .thumb .fs { fill: var(--surface); }
.thumb .o { fill-opacity: .35; }
.thumb .d { stroke-dasharray: 6 6; }
.thumb .t { fill: var(--ink); font: 600 15px var(--font); }
.thumb * { stroke-linecap: round; stroke-linejoin: round; }
/* list view */
.sim-grid.list { grid-template-columns: 1fr; gap: 12px; }
.sim-grid.list .card { flex-direction: row; align-items: stretch; }
.sim-grid.list .card .thumb { width: 200px; flex: none; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.sim-grid.list .card p { -webkit-line-clamp: 3; }
/* entering animation after filtering */
.card.enter { animation: cardIn .45s var(--ease) both; animation-delay: calc(min(var(--i, 0), 14) * 35ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- classes ---------- */
.stage-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 14px; margin-bottom: 20px; }
.stage-tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.stage-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.class-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.class-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, opacity .3s; }
.class-tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.class-tile.dim { opacity: .35; }
.class-tile .n { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.class-tile .n small { font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; display: block; margin-bottom: 4px; }
.class-tile .c { font-size: 12.5px; color: var(--ink-2); }
.class-tile .bar { height: 4px; border-radius: 3px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.class-tile .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c1), var(--c5)); border-radius: 3px; }

/* ---------- exams ---------- */
.exam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.exam-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.exam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.exam-card .big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(120deg, var(--accent), var(--c5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.exam-card h3 { margin: 0; font-size: 16px; }
.exam-card p { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1; }
.exam-card .meta { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- app band ---------- */
.app-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 44px; border-radius: 28px;
  background: linear-gradient(135deg, #1b2150, #2a2f6b 50%, #3a2a6b); color: #fff; }
.app-band h2 { color: #fff; }
.app-band p { color: rgba(255, 255, 255, .78); margin: 10px 0 22px; font-size: 16.5px; max-width: 520px; }
.app-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.app-band .btn.light { background: #fff; color: #1b2150; border-color: #fff; }
.app-band .btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.app-band ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.app-band ul li::before { content: "✓ "; color: #7ef0b8; font-weight: 700; }
.phone { justify-self: center; width: 220px; aspect-ratio: 9 / 18.5; border-radius: 34px; background: #0e1120; border: 8px solid #2b2f55; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); overflow: hidden; position: relative; animation: bob 6s ease-in-out infinite; }
.phone .scr { position: absolute; inset: 0; padding: 18px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; background: #f6f7fb; }
.phone .scr .mini { aspect-ratio: 1; border-radius: 10px; background: #fff; border: 1px solid #e3e6f0; padding: 6px; }
.phone .scr .mini svg { width: 100%; height: 100%; }
.phone .scr .top { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font: 600 12px var(--font); color: #171a33; margin-bottom: 4px; }
.phone .scr .top i { width: 16px; height: 16px; border-radius: 5px; background: conic-gradient(from 210deg, #3355e0, #0e97b2, #1c9a6b, #ee8420, #e0445a, #3355e0); }
.app-band .glow { position: absolute; width: 380px; height: 380px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(125, 149, 255, .5), transparent 70%); filter: blur(30px); }

/* ---------- teachers ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.how > div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.how > div::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.how h3 { margin: 0 0 6px; font-size: 18px; }
.how p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- for you ---------- */
.for-you { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--ink-2); font-size: 14px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; } .foot-grid a:hover { color: var(--accent); }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Simulations (browse) page ---------- */
.browse-head { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 28px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--bg)), var(--bg)); }
.browse-head h1 { font-size: clamp(30px, 4vw, 44px); margin: 0; letter-spacing: -.03em; }
.browse-head p { margin: 6px 0 18px; color: var(--ink-2); }
.browse-head .hero-search { max-width: 640px; }
.browse { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding: 28px 0 64px; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 32px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.f-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.f-head h2 { margin: 0; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.f-group { border-top: 1px solid var(--line); padding: 14px 0; }
.f-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14.5px; padding: 2px 0; }
.f-group > summary::-webkit-details-marker { display: none; }
.f-group > summary::after { content: "+"; font-size: 18px; color: var(--ink-2); transition: transform .2s; }
.f-group[open] > summary::after { content: "−"; }
.f-body { padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.chk { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; cursor: pointer; font-size: 14px; user-select: none; transition: background .12s; }
.chk:hover { background: var(--surface-2); }
.chk input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; flex: none; }
.chk .lbl { flex: 1; min-width: 0; }
.chk .n { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chk.sub-row { padding-left: 34px; font-size: 13.5px; }
.chk .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sc); flex: none; }
.chk.zero { opacity: .45; }
.class-pills { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 8px 4px 2px; }
.class-pills button { min-height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .15s; }
.class-pills button:hover { border-color: var(--accent); }
.class-pills button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .count { font-weight: 600; font-size: 18px; margin-right: auto; }
.toolbar select { min-height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 4px 10px; font-size: 14px; }
.viewtog { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.viewtog button { width: 38px; height: 36px; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.viewtog button.on { background: var(--accent-soft); color: var(--accent); }
.viewtog svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; min-height: 0; }
.active-chips button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); color: var(--accent); cursor: pointer; font-weight: 500; }
.active-chips button::after { content: "×"; font-size: 16px; line-height: 1; }
.active-chips .clear { background: transparent; border-color: var(--line); color: var(--ink-2); }
.active-chips .clear::after { content: none; }
.filter-btn { display: none; }
.empty { text-align: center; color: var(--ink-2); padding: 60px 20px; border: 1px dashed var(--line); border-radius: 20px; }
.empty b { display: block; font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.sheet-head, .sheet-foot, .scrim { display: none; }

/* ---------- learn your way (labs / games / code) ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; padding: 26px; border-radius: 24px; text-decoration: none; color: #fff; min-height: 220px;
  transition: transform .25s var(--ease), box-shadow .25s; box-shadow: var(--shadow); }
.way:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20, 24, 60, .22); }
.way b { font-size: 24px; letter-spacing: -.02em; }
.way span:not(.w-emo) { color: rgba(255, 255, 255, .86); font-size: 15px; max-width: 30ch; }
.way i { font-style: normal; font-weight: 600; margin-top: auto; padding-top: 12px; }
.w-emo { position: absolute; right: -6px; bottom: -14px; font-size: 104px; opacity: .9; transform: rotate(-10deg); transition: transform .4s var(--ease); filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.way:hover .w-emo { transform: rotate(4deg) scale(1.08); }
.w-lab { background: linear-gradient(140deg, #2b48d6, #0e97b2); }
.w-game { background: linear-gradient(140deg, #e0445a, #ee8420); }
.w-code { background: linear-gradient(140deg, #1b1f4b, #6b3fd0); }
.board-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.board-strip a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; transition: border-color .15s; }
.board-strip a:hover { border-color: var(--accent); }
.board-strip .lvls { display: inline-flex; gap: 6px; margin-left: auto; }
.board-strip .lvls i { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 8px; }
.lvls .l1 { background: color-mix(in srgb, var(--c3) 16%, transparent); color: var(--c3); }
.lvls .l2 { background: color-mix(in srgb, var(--c2) 18%, transparent); color: color-mix(in srgb, var(--c2) 80%, var(--ink)); }
.lvls .l3 { background: color-mix(in srgb, var(--c4) 16%, transparent); color: var(--c4); }

/* ---------- code academy band ---------- */
.code-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; padding: 40px; border-radius: 30px; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(600px 300px at 100% 0%, rgba(63, 208, 234, .3), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(180, 140, 255, .3), transparent 70%), linear-gradient(135deg, #10132e, #2a1f5f); }
.code-hero h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 10px; letter-spacing: -.03em; }
.code-hero p { color: rgba(255, 255, 255, .84); margin: 0 0 20px; }
.code-hero .kicker { color: #9fe7ff; }
.ch-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.ch-tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ch-tracks a { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: background .2s, transform .2s var(--ease); }
.ch-tracks a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }
.ch-tracks span { font-size: 26px; }
.ch-tracks small { font-weight: 400; color: rgba(255, 255, 255, .7); font-size: 12px; }
@media (max-width: 1060px) { .ways { grid-template-columns: 1fr; } .way { min-height: 0; } .code-hero { grid-template-columns: 1fr; padding: 28px; } }
@media (max-width: 760px) { .ch-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .code-hero { padding: 24px 18px; border-radius: 24px; } .board-strip .lvls { margin-left: 0; } .w-emo { font-size: 84px; } }

/* ---------- mobile bottom tab bar (app feel) ---------- */
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 620px; width: 100%; margin: 10px auto 0; }
  .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subject { grid-column: span 1; }
  .class-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .exam-grid, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-band { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .browse { grid-template-columns: 1fr; }
  .filter-btn { display: inline-flex; }
  /* filters become a bottom sheet */
  .filters { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; top: auto; max-height: 86vh; padding: 0 18px 0; background: var(--surface); border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .25); transform: translateY(105%); transition: transform .35s var(--ease); display: flex; flex-direction: column; overflow: hidden; }
  .filters.open { transform: none; }
  .filters .f-scroll { overflow: auto; flex: 1; min-height: 0; padding-bottom: 10px; }
  .filters .f-head { display: none; }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 8px; position: relative; }
  .sheet-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; border-radius: 3px; background: var(--line); transform: translateX(-50%); }
  .sheet-head h2 { margin: 12px 0 0; font-size: 18px; }
  .sheet-foot { display: flex; gap: 10px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .sheet-foot .btn { flex: 1; min-height: 46px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 30, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.open { opacity: 1; pointer-events: auto; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .nav-links, .nav-actions .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { position: fixed; z-index: 39; top: var(--nav-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; display: grid; gap: 4px;
    transform: translateY(-120%); transition: transform .3s var(--ease); box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; }
  .mobile-menu a:hover { background: var(--surface-2); }
  .hero { padding: 28px 0 48px; }
  .stats { gap: 22px; } .stats b { font-size: 24px; }
  .float.f-a { left: 6px; } .float.f-b { right: 6px; } .float.f-c { display: none; }
  .subjects { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .class-tile { padding: 12px 14px; } .class-tile .n { font-size: 28px; }
  .exam-grid, .features, .how { grid-template-columns: 1fr; }
  .app-band { padding: 28px 22px; border-radius: 22px; }
  .phone { width: 180px; }
  .sim-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
  .sim-grid.list .card .thumb { width: 116px; padding: 6px; }
  .sim-grid.list .card p { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  /* app-like bottom tab bar */
  body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--ink-2); text-decoration: none; border: 0; background: transparent; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .on { color: var(--accent); }
  .tabbar .on svg { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* "not affiliated" line and legal links in footers */
.disclaimer { margin: 14px auto 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.legal-links a, .foot-bottom a { color: var(--ink-2); }
/* standard footer: legal links, not-affiliated line, Powered by Clevix Tech */
.legal-foot { padding: 30px 0 calc(26px + env(safe-area-inset-bottom)); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 14px; }
.legal-nav a { color: var(--ink-2); text-decoration: none; } .legal-nav a:hover { color: var(--accent); }
.legal-foot .disclaimer { text-align: center; max-width: 780px; }
.powered { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); display: flex; gap: 6px 14px; justify-content: center; flex-wrap: wrap; }
.powered b { color: var(--ink); letter-spacing: .02em; }
.foot-powered { display: inline-flex; gap: 6px; }
.legal-bottom { justify-content: center; }

/* ---------- Home: "Start learning" class + subject picker ---------- */
.start { padding: 0 0 36px; position: relative; z-index: 1; }
.start-card { position: relative; overflow: hidden; isolation: isolate; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 24px 24px 22px; box-shadow: var(--shadow); }
.start-card::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -170px; top: -210px; border-radius: 50%;
  background: conic-gradient(from 140deg, color-mix(in srgb, var(--c1) 22%, transparent), color-mix(in srgb, var(--c6) 18%, transparent), color-mix(in srgb, var(--c5) 22%, transparent), color-mix(in srgb, var(--c1) 22%, transparent)); filter: blur(40px); }
.st-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.st-hello { margin: 0 0 2px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.start h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.025em; line-height: 1.15; }
.st-me { display: flex; gap: 6px; flex: none; }
.st-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); font-size: 13px; white-space: nowrap; }
.st-chip b { font-weight: 700; }
.st-lv { background: linear-gradient(90deg, color-mix(in srgb, var(--c2) 28%, var(--surface-2)) calc(var(--p, 0) * 1%), var(--surface-2) 0); }
.st-search { display: none; align-items: center; gap: 8px; margin-top: 16px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; transition: border-color .2s; }
.st-search:focus-within { border-color: var(--accent); }
.st-search svg { width: 19px; height: 19px; stroke: var(--ink-2); fill: none; stroke-width: 2; flex: none; }
.st-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.st-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.st-row { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.st-boards { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--surface-2); }
.st-boards button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 7px 14px; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.st-boards button[aria-checked="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 24, 60, .14); }
#st-class-l { margin-top: 18px; }
.st-classes { display: flex; gap: 10px; margin: 6px -24px 0; padding: 8px 24px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.st-classes::-webkit-scrollbar { display: none; }
.st-classes button { --cc: var(--c3); flex: none; scroll-snap-align: center; width: 64px; height: 72px; display: grid; place-content: center; justify-items: center; cursor: pointer;
  border-radius: 20px; border: 1.5px solid color-mix(in srgb, var(--cc) 30%, var(--line)); background: color-mix(in srgb, var(--cc) 9%, var(--surface)); color: var(--ink); font: inherit;
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), background .2s, box-shadow .2s, border-color .2s; }
.st-classes button.s2 { --cc: var(--c6); } .st-classes button.s3 { --cc: var(--c1); } .st-classes button.s4 { --cc: var(--c5); }
.st-classes small { font-size: 10.5px; font-weight: 500; color: var(--ink-2); line-height: 1; letter-spacing: .02em; }
.st-classes b { font-size: 26px; font-weight: 700; line-height: 1.1; color: color-mix(in srgb, var(--cc) 80%, var(--ink)); letter-spacing: -.03em; }
.st-classes button:hover { transform: translateY(-2px); border-color: var(--cc); }
.st-classes button[aria-checked="true"] { background: linear-gradient(150deg, color-mix(in srgb, var(--cc) 78%, #fff), var(--cc)); border-color: transparent; transform: scale(1.08);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--cc) 40%, transparent); }
.st-classes button[aria-checked="true"] small, .st-classes button[aria-checked="true"] b { color: #fff; }
.st-subhead { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin-top: 8px; }
.st-meta { margin: 0; font-size: 13px; color: var(--ink-2); }
.st-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-top: 12px; min-height: 120px; }
.st-sub { --sc: var(--accent); position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "g t" "bar bar" "pc pc"; align-items: center; gap: 10px 12px;
  padding: 14px; border-radius: 18px; text-decoration: none; color: var(--ink); overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 14%, var(--surface)), color-mix(in srgb, var(--sc) 5%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--sc) 24%, var(--line)); transition: transform .2s, box-shadow .2s, border-color .2s; }
.st-sub:hover, .st-sub:focus-visible { transform: translateY(-3px); border-color: var(--sc); box-shadow: 0 10px 24px color-mix(in srgb, var(--sc) 22%, transparent); }
.st-sub:active { transform: scale(.97); }
.st-sub .g { grid-area: g; width: 46px; height: 46px; display: grid; place-items: center; font-size: 24px; border-radius: 14px; background: var(--surface); box-shadow: 0 2px 8px color-mix(in srgb, var(--sc) 22%, transparent); }
.st-sub .t { grid-area: t; display: grid; min-width: 0; line-height: 1.25; }
.st-sub .t b { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.st-sub .t small { font-size: 12.5px; color: var(--ink-2); }
.st-sub .bar { grid-area: bar; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--sc) 14%, var(--surface-2)); overflow: hidden; }
.st-sub .bar i { display: block; height: 100%; border-radius: inherit; background: var(--sc); }
.st-sub .pc { grid-area: pc; font-size: 12.5px; font-weight: 600; color: color-mix(in srgb, var(--sc) 78%, var(--ink)); margin-top: -4px; }
.st-sub.st-all { --sc: var(--ink-2); grid-template-areas: "g t" "pc pc"; border-style: dashed; background: var(--surface); }
.st-sub.sub-maths, .st-sub.sub-computer { --sc: var(--c5); } .st-sub.sub-science, .st-sub.sub-biology, .st-sub.sub-economics { --sc: var(--c3); }
.st-sub.sub-evs, .st-sub.sub-geography { --sc: var(--c6); } .st-sub.sub-english { --sc: var(--c4); }
.st-sub.sub-sst, .st-sub.sub-history, .st-sub.sub-chemistry { --sc: var(--c2); } .st-sub.sub-physics, .st-sub.sub-civics { --sc: var(--c1); }
.st-subjects.in .st-sub { animation: st-up .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes st-up { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.st-skel { height: 118px; border-radius: 18px; background: linear-gradient(90deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; animation: st-shim 1.2s linear infinite; }
@keyframes st-shim { to { background-position: -150% 0; } }
.st-empty { grid-column: 1 / -1; margin: 0; padding: 28px 16px; text-align: center; border-radius: 18px; border: 1.5px dashed var(--line); color: var(--ink-2); font-size: 15px; }
.st-foot { display: flex; gap: 12px; align-items: stretch; margin-top: 16px; flex-wrap: wrap; }
.st-continue { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: background .2s; }
.st-continue[hidden], .st-go[hidden] { display: none; }
.st-continue:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.st-continue .g { font-size: 22px; }
.st-continue .t { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.st-continue .t small { font-size: 12px; color: var(--ink-2); }
.st-continue .t b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-continue .stars { color: var(--c2); letter-spacing: 1px; font-size: 14px; }
.st-continue .arr { color: var(--accent); font-weight: 700; }
.st-go { flex: 0 0 auto; align-self: center; height: 48px; padding: 0 22px; border-radius: 14px; }

/* inside the installed app: the picker is the first screen */
.app-mode .hero, .app-mode #app, .app-mode .nav-links a[href="#app"], .app-mode .mobile-menu a[href="#app"] { display: none; }
.app-mode .start { padding-top: 14px; }
.app-mode .st-search { display: flex; }

@media (max-width: 640px) {
  .start-card { padding: 18px 16px 16px; border-radius: 22px; }
  .st-classes { margin-inline: -16px; padding-inline: 16px; }
  .st-me .st-chip { height: 30px; padding: 0 9px; font-size: 12.5px; }
  .st-row { gap: 10px; margin-top: 16px; }
  .st-row .st-label { display: none; }
  .st-boards { display: flex; width: 100%; }
  .st-boards button { flex: 1; padding: 8px 6px; }
  .st-subjects { grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-sub { padding: 12px; gap: 8px 10px; border-radius: 16px; }
  .st-sub .g { width: 40px; height: 40px; font-size: 21px; border-radius: 12px; }
  .st-sub .t b { font-size: 14.5px; }
  .st-go { flex: 1 1 100%; }
}
@media (max-width: 380px) { .st-me .st-lv { display: none; } }
@media (min-width: 900px) { .st-classes { margin-inline: 0; padding-inline: 4px; overflow: visible; } .st-classes button { flex: 1 1 0; max-width: 128px; height: 78px; } }
/* colour emoji on Windows too (otherwise Segoe UI Symbol draws plain outlines) */
.st-sub .g, .st-continue .g, .st-hello, .st-chip, .st-empty { font-family: var(--font), "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji"; }
.st-sub .g, .st-continue .g { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
