/* Prepimo website. Colours from app/apps/mobile/src/theme/tokens.ts. Plain CSS, no build step. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("../fonts/pjs-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/pjs-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("../fonts/pjs-800.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #F4F7FC; --bg-2: #EBF0F9; --surface: #FFFFFF; --surface-2: #F7F9FD;
  --text: #0F1B33; --muted: #55627A; --border: #DCE3EF; --border-strong: #8592A8;
  --primary: #1A56DB; --primary-hover: #1546B5; --on-primary: #FFFFFF; --primary-soft: #E7EEFD; --on-primary-soft: #143F9E;
  --navy: #0B2554; --focus: #1D5BFF;
  --correct: #137333; --correct-bg: #E8F6ED; --incorrect: #C2261D; --incorrect-bg: #FDECEB;
  --warning: #A35A00; --warning-bg: #FFF3D6; --amber: #D97706; --streak: #EA580C;
  --wm: #0B2554; --dot: #1A56DB;
  --header-bg: rgba(255, 255, 255, .78);
  --blob-1: rgba(26, 86, 219, .20); --blob-2: rgba(47, 111, 232, .16); --blob-3: rgba(217, 119, 6, .12);
  --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 8px 24px rgba(15, 27, 51, .08);
  --shadow-lg: 0 24px 60px rgba(11, 37, 84, .22);
  --radius: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1020; --bg-2: #0E1529; --surface: #121A2E; --surface-2: #162038;
    --text: #E8EDF7; --muted: #9AA7C0; --border: #24304D; --border-strong: #6E7B99;
    --primary: #6B9BFF; --primary-hover: #8CB2FF; --on-primary: #06132F; --primary-soft: #16274F; --on-primary-soft: #C9D9FF;
    --focus: #8AB4F8;
    --correct: #4ADE80; --correct-bg: #0E2A1A; --incorrect: #FF8A80; --incorrect-bg: #3A1517;
    --warning: #F5C46B; --warning-bg: #33260C; --amber: #F5C46B; --streak: #FB923C;
    --wm: #FFFFFF; --dot: #6B9BFF;
    --header-bg: rgba(10, 16, 32, .78);
    --blob-1: rgba(107, 155, 255, .18); --blob-2: rgba(29, 79, 196, .30); --blob-3: rgba(245, 196, 107, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 1rem/1.6 var(--font); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p, ul, ol { margin: 0 0 1rem; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden]:not(.best) { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--surface); color: var(--text); padding: .75rem 1rem; border-radius: 12px; box-shadow: var(--shadow); }
.skip:focus { top: 16px; }
.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--navy), var(--primary)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.site-header.scrolled { background: var(--header-bg); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-color: var(--border); box-shadow: 0 4px 20px rgba(15, 27, 51, .06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; transition: height .3s var(--ease); }
.scrolled .header-row { height: 60px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; border-radius: 10px; }
.logo { height: 40px; width: auto; display: block; transition: height .3s var(--ease); }
.scrolled .logo { height: 34px; }
.logo .wm { fill: var(--wm); }
.logo .dot { fill: var(--dot); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .85rem; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; transition: background .2s, color .2s; }
.nav a:hover { background: var(--primary-soft); color: var(--on-primary-soft); }
.nav a[aria-current="page"] { color: var(--primary); }
.nav .nav-cta { background: var(--primary); color: var(--on-primary); margin-left: .25rem; }
.nav .nav-cta:hover { background: var(--primary-hover); color: var(--on-primary); }
@media (max-width: 859px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: .5rem 16px 1rem; display: none; }
  .js .nav.open { display: block; animation: drop .25s var(--ease); }
  .js .nav ul { flex-direction: column; align-items: stretch; }
  .js .nav .nav-cta { margin: .5rem 0 0; justify-content: center; }
  html:not(.js) .header-row { height: auto; flex-wrap: wrap; padding: .5rem 0; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .75rem 1.4rem; border-radius: 16px; border: 2px solid transparent; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px rgba(26, 86, 219, .3); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; position: relative; }
@media (min-width: 768px) { .section { padding: 6.5rem 0; } }
.section-alt { background: var(--surface); }
.eyebrow { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: .75rem; }
.section-head { max-width: 42rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.75rem); margin: 0 0 .75rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 3rem 0 4rem; isolation: isolate; }
@media (min-width: 960px) { .hero { padding: 5rem 0 6rem; } }
.hero-bg { position: absolute; inset: -10% -10% 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); will-change: transform; }
.blob-1 { width: 520px; height: 520px; background: var(--blob-1); top: -120px; right: -140px; }
.blob-2 { width: 380px; height: 380px; background: var(--blob-2); bottom: 0; left: -120px; }
.blob-3 { width: 260px; height: 260px; background: var(--blob-3); top: 40%; left: 45%; }
.shape { position: absolute; border: 2px solid var(--primary); opacity: .18; border-radius: 50%; will-change: transform; }
.shape-1 { width: 90px; height: 90px; top: 18%; left: 6%; }
.shape-2 { width: 34px; height: 34px; top: 70%; left: 40%; background: var(--primary); }
.shape-3 { width: 140px; height: 140px; top: 8%; left: 52%; border-style: dashed; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.tagline { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 800; font-size: .85rem; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.2rem, 7.5vw, 4rem); margin: 0 0 1.25rem; }
.hero h1 .accent { background: linear-gradient(90deg, var(--primary), #1D5BFF 55%, #A35A00); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .hero h1 .accent { background: linear-gradient(90deg, #8CB2FF, #6B9BFF 60%, #F5C46B); -webkit-background-clip: text; background-clip: text; } }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.soon-pill { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .5rem 1.1rem; border-radius: 16px; background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .soon-pill { background: #1B2541; } }
.soon-pill small { display: block; font-size: .72rem; font-weight: 500; opacity: .85; line-height: 1.2; }
.soon-pill svg { width: 22px; height: 22px; flex: none; }
.hero-note { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 520px; perspective: 1200px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .4s var(--ease); }
.phone { position: relative; width: 260px; border-radius: 42px; padding: 10px; background: linear-gradient(145deg, #1B2541, #0B1226); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12); will-change: transform; }
@media (min-width: 400px) { .phone { width: 280px; } }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px; background: #0B1226; border-radius: 12px; z-index: 2; }
.phone img { display: block; width: 100%; border-radius: 33px; background: var(--bg); aspect-ratio: 780 / 1688; }
.float-logo { position: absolute; width: 112px; height: 112px; top: 6%; left: -4%; z-index: 3; filter: drop-shadow(0 16px 30px rgba(11, 37, 84, .35)); will-change: transform; }
@media (min-width: 960px) { .float-logo { left: -12%; width: 128px; height: 128px; } }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 800; font-size: .85rem; will-change: transform; }
.chip i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; color: #FFFFFF; font-size: .9rem; }
.chip-1 { right: -4%; top: 30%; } .chip-1 i { background: var(--correct); }
@media (prefers-color-scheme: dark) { .chip-1 i, .chip-2 i { color: #06132F; } }
.chip-2 { left: -6%; bottom: 14%; } .chip-2 i { background: var(--streak); }
@media (max-width: 380px) { .chip-1 { right: 0; } .chip-2 { left: 0; } .float-logo { left: 0; } }

/* Animated logo build */
.logo-anim .ring { stroke-dasharray: 503; stroke-dashoffset: 503; }
.logo-anim .fill { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.logo-anim .check { stroke-dasharray: 140; stroke-dashoffset: 140; }
.logo-anim .tile { transform-box: fill-box; transform-origin: center; transform: scale(.6); opacity: 0; }
.logo-anim.play .tile { animation: tile .6s var(--ease) forwards; }
.logo-anim.play .ring { animation: draw .7s var(--ease) forwards; }
.logo-anim.play .r1 { animation-delay: .35s; } .logo-anim.play .r2 { animation-delay: .5s; } .logo-anim.play .r3 { animation-delay: .65s; }
.logo-anim.play .fill { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) .95s forwards; }
.logo-anim.play .check { animation: draw .45s var(--ease) 1.35s forwards; }
html:not(.js) .logo-anim .ring, html:not(.js) .logo-anim .check { stroke-dashoffset: 0; }
html:not(.js) .logo-anim .fill, html:not(.js) .logo-anim .tile { transform: none; opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes tile { to { transform: scale(1); opacity: 1; } }
.bob { animation: bob 6s ease-in-out infinite; }
.bob-2 { animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- Stats band ---------- */
.stats { background: linear-gradient(120deg, var(--navy), #1A56DB); color: #FFFFFF; padding: 2.75rem 0; }
@media (prefers-color-scheme: dark) { .stats { background: linear-gradient(120deg, #0F2350, #1D4FC4); } }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; text-align: center; }
@media (min-width: 720px) { .stats ul { grid-template-columns: repeat(3, 1fr); } }
.stat-num { display: block; font-size: clamp(2.4rem, 8vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: .5rem; font-size: 1rem; opacity: .92; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 1rem calc(50% - 130px) 2rem; margin: 0; list-style: none; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 260px; scroll-snap-align: center; transition: transform .45s var(--ease), opacity .45s; opacity: .55; transform: scale(.9); }
.slide.is-active { opacity: 1; transform: none; }
.slide figure { margin: 0; }
.slide .shot { border-radius: 30px; padding: 8px; background: linear-gradient(145deg, #1B2541, #0B1226); box-shadow: var(--shadow); }
.slide img { display: block; width: 100%; border-radius: 23px; aspect-ratio: 780 / 1688; background: var(--bg-2); }
.slide figcaption { text-align: center; margin-top: .9rem; font-weight: 700; }
.slide figcaption span { display: block; font-weight: 500; font-size: .9rem; color: var(--muted); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s; }
.icon-btn:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); transform: scale(1.06); }
.icon-btn svg { width: 20px; height: 20px; }
.dots { display: flex; gap: 0; }
.dot-btn { width: 32px; height: 48px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dot-btn::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: var(--border-strong); transition: width .3s var(--ease), background .3s; }
.dot-btn[aria-current="true"]::before { width: 24px; background: var(--primary); }
.sample-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1rem; }

/* ---------- Demo ---------- */
.demo { max-width: 40rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); padding: 1.25rem; }
@media (min-width: 600px) { .demo { padding: 2rem; } }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.demo-subject { display: inline-block; padding: .25rem .7rem; border-radius: 99px; background: var(--primary-soft); color: var(--on-primary-soft); }
.demo-bar { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-bottom: 1.25rem; }
.demo-bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .5s var(--ease); }
.demo-stem { font-size: 1.3rem; margin: 0 0 1rem; line-height: 1.35; }
.demo-label { font-size: .85rem; font-weight: 700; color: var(--muted); margin: 0 0 .5rem; }
.conf { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.25rem; }
.conf button { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-2); font-weight: 700; cursor: pointer; transition: all .2s var(--ease); }
.conf button:hover:not(:disabled) { border-color: var(--primary); }
.conf button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.conf button:disabled { cursor: default; opacity: .7; }
.opts { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.opt { width: 100%; display: flex; align-items: center; gap: .85rem; text-align: left; min-height: 56px; padding: .75rem 1rem; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.opt:hover:not(:disabled) { border-color: var(--primary); transform: translateX(4px); }
.opt:disabled { cursor: default; }
.opt .letter { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); font-weight: 800; font-size: .85rem; transition: background .2s, color .2s; }
.opt .mark { margin-left: auto; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.opt.correct { border-color: var(--correct); background: var(--correct-bg); }
.opt.correct .letter { background: var(--correct); color: var(--surface); }
.opt.wrong { border-color: var(--incorrect); background: var(--incorrect-bg); animation: shake .4s; }
.opt.wrong .letter { background: var(--incorrect); color: var(--surface); }
.opt.correct .mark { color: var(--correct); } .opt.wrong .mark { color: var(--incorrect); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.feedback { border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1rem; animation: rise .4s var(--ease); }
.feedback:focus { outline: none; }
.feedback:focus-visible { outline: 3px solid var(--focus); }
.feedback.ok { background: var(--correct-bg); } .feedback.no { background: var(--incorrect-bg); }
.feedback-title { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.05rem; margin: 0 0 .5rem; }
.feedback.ok .feedback-title { color: var(--correct); } .feedback.no .feedback-title { color: var(--incorrect); }
.feedback-title .ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--surface); }
.feedback.ok .ico { background: var(--correct); } .feedback.no .ico { background: var(--incorrect); }
.outcome { display: inline-block; font-size: .8rem; padding: .15rem .55rem; border-radius: 99px; background: var(--surface); color: var(--text); margin-left: auto; font-weight: 700; }
.feedback p { margin: 0 0 .5rem; }
.source { font-size: .85rem; color: var(--muted); margin: 0 !important; }
.feedback.ok .source, .feedback.no .source { color: var(--text); opacity: .85; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.demo-actions { display: flex; justify-content: flex-end; }
.demo-done { text-align: center; padding: 1rem 0; }
.demo-done .big { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; margin: .5rem 0; }

/* ---------- Features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } .features .wide { grid-column: span 2; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.section-alt .feature { background: var(--bg); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.feature h3 { font-size: 1.15rem; margin: 1rem 0 .4rem; }
.feature p { color: var(--muted); margin: 0; }
.f-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.f-ico svg { width: 30px; height: 30px; overflow: visible; }
.f-ico .draw { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s var(--ease) .3s; }
.in .f-ico .draw, html:not(.js) .f-ico .draw { stroke-dashoffset: 0; }
.in .f-ico .spin { animation: spin 1.2s var(--ease) .3s; transform-origin: 12px 12px; }
.in .f-ico .pulse { animation: pulse 1.6s ease-in-out .3s 2; transform-origin: 12px 12px; transform-box: view-box; }
.in .f-ico .flip { animation: flipY 1s var(--ease) .3s; transform-origin: 12px 12px; transform-box: view-box; }
.feature:hover .f-ico svg { animation: wiggle .5s var(--ease); }
@keyframes spin { from { transform: rotate(-360deg); } }
@keyframes pulse { 50% { transform: scale(1.18); } }
@keyframes flipY { from { transform: rotateY(180deg); } }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(6deg); } }

/* ---------- Subjects ---------- */
.subjects { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .subjects { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .subjects { grid-template-columns: repeat(4, 1fr); } }
.subj { position: relative; min-height: 150px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); padding: 1rem; display: flex; flex-direction: column; }
.section-alt .subj { background: var(--bg); }
.subj-code { font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.subj-name { font-weight: 800; font-size: 1rem; line-height: 1.3; margin: .35rem 0 auto; }
.subj-meta { margin-top: .75rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.subj.soon { opacity: .9; }
.subj.soon .subj-meta { color: var(--muted); }
.subj.live { padding: 0; border: 0; background: none; perspective: 1000px; min-height: 190px; }
.flip-card { position: relative; width: 100%; height: 100%; min-height: 190px; border-radius: 18px; transform-style: preserve-3d; transition: transform .7s var(--ease); }
button.flip-face { width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer; align-items: flex-start; }
.flip-back { cursor: pointer; }
.flip-close { margin-top: auto; align-self: flex-end; min-height: 40px; min-width: 64px; padding: 0 .9rem; border-radius: 12px; border: 1.5px solid var(--primary); background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 800; cursor: pointer; }
.flip-face { position: absolute; inset: 0; border-radius: 18px; padding: 1rem; display: flex; flex-direction: column; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.flip-front { background: linear-gradient(150deg, var(--navy), #1A56DB); color: #FFFFFF; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .flip-front { background: linear-gradient(150deg, #0F2350, #1D4FC4); } }
.flip-front .subj-code, .flip-front .subj-meta { color: rgba(255, 255, 255, .88); }
.live-badge { position: absolute; top: .8rem; right: .8rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 800; padding: .2rem .5rem; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.flip-count { font-size: 1.7rem; font-weight: 800; line-height: 1; margin-top: .75rem; }
.flip-back { background: var(--surface); border: 1.5px solid var(--primary); transform: rotateY(180deg); font-size: .78rem; line-height: 1.35; }
.flip-back strong { font-size: .85rem; margin-bottom: .35rem; }
.flip-back ul { margin: 0; padding-left: 1rem; overflow: hidden; }
.flip-back li { margin-bottom: .1rem; }
.subj.live.flipped .flip-card { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .subj.live:hover .flip-card { transform: rotateY(180deg); } }
.hint { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.25rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 44rem; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before, .timeline-line { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: var(--border); }
.timeline-line { background: linear-gradient(var(--primary), var(--navy)); transform-origin: top; transform: scaleY(var(--p, 0)); }
html:not(.js) .timeline-line { transform: none; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding-bottom: 2.5rem; }
.step:last-child { padding-bottom: 0; }
.step-num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; background: var(--surface); border: 3px solid var(--border); color: var(--muted); transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease); }
.step.lit .step-num, html:not(.js) .step-num { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: scale(1.06); }
.step h3 { font-size: 1.3rem; margin: .7rem 0 .4rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Pricing ---------- */
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); position: relative; margin: 0 auto 2rem; }
.toggle-wrap { text-align: center; }
.toggle button { position: relative; z-index: 1; min-height: 48px; padding: 0 1.25rem; border: 0; background: none; border-radius: 999px; font-weight: 800; cursor: pointer; color: var(--muted); transition: color .3s; }
.toggle button[aria-checked="true"] { color: var(--on-primary); }
.toggle .knob { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--primary); transition: transform .35s var(--ease), width .35s var(--ease); }
.save { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 99px; font-size: .7rem; background: var(--warning-bg); color: var(--warning); }
.plans { display: grid; gap: 1.25rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; align-items: start; } }
.plan { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: 26px; padding: 1.75rem; transition: transform .3s var(--ease), box-shadow .3s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-premium { border: 2px solid var(--primary); box-shadow: 0 20px 50px rgba(26, 86, 219, .18); }
.plan h3 { font-size: 1.4rem; margin: 0 0 .25rem; }
.plan .sub { color: var(--muted); margin: 0 0 1.25rem; }
.price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-bottom: .25rem; }
.price .cur { font-weight: 800; font-size: 1.1rem; }
.price .amt { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.price .per { color: var(--muted); font-weight: 700; }
.amt.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: translateY(-6px); color: var(--primary); } }
.price-note { font-size: .9rem; color: var(--muted); min-height: 1.5em; margin-bottom: 1.25rem; }
.best { position: absolute; top: -14px; right: 1.5rem; padding: .35rem .8rem; border-radius: 99px; background: var(--amber); color: #0F1B33; font-size: .78rem; font-weight: 800; transition: opacity .3s, transform .3s var(--ease); }
.best[hidden] { display: block; opacity: 0; transform: translateY(6px) scale(.9); }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231A56DB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.plan-foot { font-size: .85rem; color: var(--muted); margin: 0; }
.pricing-fine { max-width: 46rem; margin: 2rem auto 0; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: 1rem 0; font-weight: 800; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231A56DB' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .answer { overflow: hidden; }
.faq .answer > div { padding: 0 0 1.25rem; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: 3rem 1.5rem; text-align: center; color: #FFFFFF; background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .14), transparent 40%), linear-gradient(135deg, var(--navy), #1A56DB); }
@media (prefers-color-scheme: dark) { .cta { background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .1), transparent 40%), linear-gradient(135deg, #0F2350, #1D4FC4); } }
@media (min-width: 768px) { .cta { padding: 4.5rem 3rem; } }
.cta h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 1rem 0 .75rem; }
.cta p { max-width: 34rem; margin: 0 auto 2rem; font-size: 1.1rem; opacity: .95; }
.cta .icon { width: 72px; height: 72px; }
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.store { display: inline-flex; align-items: center; gap: .7rem; min-height: 60px; padding: .55rem 1.25rem; border-radius: 16px; background: #0A1020; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .35); text-align: left; transition: transform .25s var(--ease); }
.store:hover { transform: translateY(-3px) rotate(-1deg); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .72rem; opacity: .85; font-weight: 500; }
.store b { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 0 2.5rem; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 1.4fr; } }
.footer-brand p { margin: .75rem 0 0; }
.powered { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem !important; font-weight: 700; color: var(--text); }
.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); font-weight: 700; text-decoration: none; }
.site-footer li a:hover { color: var(--primary); text-decoration: underline; }
.disclaimer-small { font-size: .88rem; margin: 0 0 .5rem; }

/* ---------- Document pages (legal, support) ---------- */
.doc-hero { padding: 3rem 0 1rem; }
.doc-hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .5rem; }
.doc { max-width: 46rem; margin: 0 auto; padding: 0 16px 4rem; overflow-wrap: break-word; }
.doc h2 { font-size: 1.45rem; margin: 2.5rem 0 .6rem; }
.doc h3 { font-size: 1.12rem; margin: 1.6rem 0 .35rem; }
.doc li { margin-bottom: .4rem; }
.doc .meta { color: var(--muted); margin-bottom: 1.5rem; }
.doc .lead { font-size: 1.15rem; }
.doc .note { background: var(--primary-soft); color: var(--on-primary-soft); border-radius: 16px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.doc .note a { color: inherit; }
.disclaimer { background: var(--warning-bg); color: var(--text); border-left: 4px solid var(--warning); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.doc .btn { margin-bottom: 1rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .65rem .5rem; border-bottom: 1px solid var(--border); }
.doc th { background: var(--bg-2); }
.table-scroll { overflow-x: auto; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.25rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc a { display: inline-block; padding: .2rem 0; }
.doc details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: .25rem 1.1rem; margin-bottom: .75rem; }
.doc summary { cursor: pointer; font-weight: 800; padding: .8rem 0; min-height: 48px; }
.doc details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: .75rem; }
.doc ol.steps li { margin-bottom: .6rem; }

/* ---------- Reduced motion: no animation, parallax or autoplay ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .logo-anim .ring, .logo-anim .check, .f-ico .draw { stroke-dashoffset: 0; }
  .logo-anim .fill, .logo-anim .tile { transform: none; opacity: 1; }
  .timeline-line { transform: none; }
  .step-num { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
  .carousel-track { scroll-behavior: auto; }
  .slide { opacity: 1; transform: none; }
  .subj.live:hover .flip-card { transform: none; }
  .subj.live.flipped .flip-card { transform: none; }
  .flip-face { backface-visibility: visible; -webkit-backface-visibility: visible; }
  .flip-back { transform: none; visibility: hidden; }
  .subj.live.flipped .flip-back { visibility: visible; }
  .subj.live.flipped .flip-front { visibility: hidden; }
  .bob, .bob-2 { animation: none; }
}
@media print { .site-header, .progress, .site-footer ul { display: none; } }
.tl-list { list-style: none; margin: 0; padding: 0; }
html:not(.js) .toggle button[aria-checked="true"] { background: var(--primary); }
.doc { padding-top: 3rem; }
.doc > h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 0 0 .5rem; }

/* plan packs (per-subject pricing, 2026-10-23) */
.packs-head { text-align: center; max-width: 40rem; margin: 3rem auto 1.25rem; }
.packs-head h3 { font-size: 1.3rem; margin: 0 0 .35rem; }
.packs-head p { color: var(--muted); margin: 0; }
.packs { display: grid; gap: 1rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 700px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack { background: var(--surface); border: 1.5px solid var(--border); border-radius: 20px; padding: 1.25rem 1.35rem; }
.pack h4 { font-size: 1.05rem; margin: 0 0 .5rem; }
.pack-price { font-size: 1.6rem; font-weight: 800; margin: 0 0 .35rem; letter-spacing: -.02em; }
.pack-price .cur { font-size: .85rem; font-weight: 700; color: var(--muted); }
.pack-price .per { font-size: .9rem; font-weight: 600; color: var(--muted); margin-left: .2rem; }
.pack-note { font-size: .9rem; color: var(--muted); margin: 0; }
