/* Math Tonic – site styles */
:root {
  --navy: #0b1f4b;
  --navy-2: #13306e;
  --orange: #f26b1d;
  --orange-2: #ff8a3d;
  --bg: #f7f8fc;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f3f5fb;
  --text: #0f1b3d;
  --muted: #5b6785;
  --border: #e3e7f1;
  --ring: rgba(242, 107, 29, .35);
  --shadow-sm: 0 1px 2px rgba(15, 27, 61, .06), 0 1px 3px rgba(15, 27, 61, .05);
  --shadow: 0 10px 30px -12px rgba(15, 27, 61, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 27, 61, .30);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ok: #16a34a;
  --ok-bg: #e8f8ee;
  --bad: #dc2626;
  --bad-bg: #fdecec;
  --c-notes: #2563eb;
  --c-topical-questions: #7c3aed;
  --c-topical-solutions: #0d9488;
  --c-past-papers: #f26b1d;
  --c-mark-schemes: #db2777;
  --c-worked-solutions: #16a34a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1022; --bg-2: #0e1630; --surface: #111a36; --surface-2: #16213f;
    --text: #e8ecf8; --muted: #9aa6c6; --border: #222e52;
    --shadow: 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
    --ok-bg: rgba(22,163,74,.15); --bad-bg: rgba(220,38,38,.15);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1022; --bg-2: #0e1630; --surface: #111a36; --surface-2: #16213f;
  --text: #e8ecf8; --muted: #9aa6c6; --border: #222e52;
  --shadow: 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
  --ok-bg: rgba(22,163,74,.15); --bad-bg: rgba(220,38,38,.15);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
p a, .prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }
.grad-text { background: linear-gradient(100deg, var(--orange) 10%, #ffb347 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s; font-family: inherit; white-space: nowrap; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; box-shadow: 0 8px 20px -8px rgba(242,107,29,.7); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(242,107,29,.8); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--navy-2); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--orange); transform: translateY(-2px); }
.btn-outline-white { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-yt { background: #ff0033; color: #fff; }
.btn-yt:hover { color: #fff; background: #e0002d; transform: translateY(-2px); }
.btn-ig { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; }
.btn-ig:hover { color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand span b { color: var(--orange); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button { display: inline-flex; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: .95rem; background: none; border: 0; color: var(--text); cursor: pointer; font-family: inherit; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > a[aria-current="page"] { background: var(--surface-2); color: var(--orange); }
.nav-links .chev { width: 14px; height: 14px; transition: transform .2s; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 290px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transition: all .18s; list-style: none; margin: 0; }
.nav-links > li:hover .dropdown, .nav-links > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-links > li:hover .chev { transform: rotate(180deg); }
.dropdown a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; }
.dropdown a:hover { background: var(--surface-2); }
.dropdown a strong { font-size: .93rem; }
.dropdown a small { color: var(--muted); font-size: .8rem; }
.dropdown .dd-all { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; color: var(--orange); font-weight: 700; font-size: .9rem; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--orange); color: var(--orange); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.menu-toggle { display: none; }

.mobile-nav { display: none; }
@media (max-width: 1020px) {
  .nav-links, .nav-actions .nav-cta { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
  .mobile-nav { display: block; position: fixed; inset: 70px 0 0 0; background: var(--bg); z-index: 49; overflow-y: auto; padding: 16px 20px 40px; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
  .mobile-nav.open { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
}
.mobile-nav details { border-bottom: 1px solid var(--border); }
.mobile-nav summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-weight: 700; font-size: 1.08rem; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary .chev { transform: rotate(180deg); }
.mobile-nav summary .chev { width: 18px; height: 18px; transition: transform .2s; }
.mobile-nav details a { display: block; padding: 10px 14px; margin: 0 0 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .95rem; }
.mobile-nav details div { padding-bottom: 12px; }
.mobile-nav > a { display: block; padding: 16px 4px; font-weight: 700; font-size: 1.08rem; border-bottom: 1px solid var(--border); }
.mobile-nav .mobile-social { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 76px 0 64px; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 85% 0%, rgba(242,107,29,.18), transparent 70%),
  radial-gradient(700px 400px at 0% 100%, rgba(19,48,110,.14), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 85%); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 85%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 580px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.pill b { background: var(--orange); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .75rem; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 560px; box-shadow: var(--shadow); }
.search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); padding: 8px 0; outline: none; }
.hero-visual { position: relative; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-lg); }
.hero-card .hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 700; }
.hero-card .hc-q { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.hc-opts { display: grid; gap: 8px; }
.hc-opt { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 600; cursor: pointer; text-align: left; font: inherit; color: var(--text); width: 100%; transition: all .15s; }
.hc-opt:hover { border-color: var(--orange); }
.hc-opt .k { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; font-weight: 800; flex: none; }
.hc-opt.correct { border-color: var(--ok); background: var(--ok-bg); }
.hc-opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.hc-feedback { margin-top: 12px; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.float-chip { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; animation: floaty 6s ease-in-out infinite; }
.float-chip svg { width: 22px; height: 22px; color: var(--orange); }
.float-chip.c1 { top: -22px; right: -10px; }
.float-chip.c2 { bottom: -24px; left: -18px; animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: .88rem; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: 44px 0 40px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(242,107,29,.18), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); max-width: 900px; }
.page-hero .lead { max-width: 780px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .86rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a:hover { color: var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 700; color: var(--muted); }
.chip.orange { background: rgba(242,107,29,.12); color: var(--orange); border-color: transparent; }
.chip.navy { background: rgba(19,48,110,.1); color: var(--navy-2); border-color: transparent; }
:root[data-theme="dark"] .chip.navy { color: #9bb5ff; background: rgba(120,150,255,.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.navy { color: #9bb5ff; background: rgba(120,150,255,.12); } }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--orange) 40%, var(--border)); color: inherit; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.card .ic svg { width: 24px; height: 24px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--orange); font-size: .92rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .more svg { transform: translateX(4px); }

.level-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.level-card .lc-top { padding: 26px 24px 22px; color: #fff; position: relative; overflow: hidden; }
.level-card .lc-top::after { content: attr(data-sym); position: absolute; right: 14px; bottom: -22px; font-size: 110px; font-weight: 800; opacity: .14; line-height: 1; }
.level-card .lc-top h3 { font-size: 1.6rem; margin: 6px 0 4px; }
.level-card .lc-top p { color: rgba(255,255,255,.85); margin: 0; font-size: .92rem; }
.level-card .lc-body { padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.level-card .lc-body a.sub { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: .93rem; }
.level-card .lc-body a.sub:hover { color: var(--orange); }
.level-card .lc-body a.sub svg { width: 16px; height: 16px; }
.bg-igcse { background: linear-gradient(135deg, #13306e, #2950b3); }
.bg-alevel { background: linear-gradient(135deg, #b13f05, #f26b1d); }
.bg-sat { background: linear-gradient(135deg, #3b1d8f, #7c3aed); }

.t-notes { background: var(--c-notes); }
.t-topical-questions { background: var(--c-topical-questions); }
.t-topical-solutions { background: var(--c-topical-solutions); }
.t-past-papers { background: var(--c-past-papers); }
.t-mark-schemes { background: var(--c-mark-schemes); }
.t-worked-solutions { background: var(--c-worked-solutions); }

/* Course cards on level pages */
.course-card { display: flex; flex-direction: column; gap: 6px; }
.course-card .code { font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--orange); text-transform: uppercase; }
.course-card h3 { margin: 0; }

/* Resource browser */
.toolbar { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 80px; z-index: 5; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font: inherit; font-weight: 700; font-size: .88rem; color: var(--text); cursor: pointer; white-space: nowrap; transition: all .15s; }
.tab .n { font-size: .74rem; background: var(--surface); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.tab:hover { border-color: var(--orange); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab.active .n { background: rgba(255,255,255,.18); color: #fff; }
:root[data-theme="dark"] .tab.active { background: var(--orange); border-color: var(--orange); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab.active { background: var(--orange); border-color: var(--orange); } }
.filters { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 10px; }
.field { position: relative; }
.field svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.input, .select, textarea.input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: .95rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.field .input { padding-left: 38px; }
.input:focus, .select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--ring); }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6785' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.result-count { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 12px; }
.res-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.res-card:hover { border-color: color-mix(in srgb, var(--orange) 45%, var(--border)); box-shadow: var(--shadow); }
.res-card[hidden] { display: none; }
.res-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.res-icon svg { width: 22px; height: 22px; }
.res-body { flex: 1; min-width: 0; }
.res-type { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.res-body h3 { font-size: .98rem; margin: 2px 0 2px; line-height: 1.3; }
.res-meta { font-size: .8rem; color: var(--muted); margin: 0; }
.res-actions { display: flex; gap: 6px; flex: none; }
.soon { font-size: .76rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--orange); }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.topic { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .94rem; text-align: left; cursor: pointer; font-family: inherit; color: var(--text); transition: all .15s; width: 100%; }
.topic:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.topic .num { width: 30px; height: 30px; border-radius: 9px; background: rgba(242,107,29,.12); color: var(--orange); display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex: none; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 48px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(242,107,29,.55), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 620px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cta-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }

.social-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.social-card { border-radius: 24px; padding: 30px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.social-card h3 { font-size: 1.5rem; color: #fff; margin: 0; }
.social-card p { color: rgba(255,255,255,.88); margin: 0 0 8px; }
.social-card .big-ic { position: absolute; right: -10px; bottom: -14px; width: 150px; height: 150px; opacity: .16; }
.social-card .btn { align-self: flex-start; margin-top: auto; }
.sc-yt { background: linear-gradient(135deg, #c4001f, #ff2a4f); }
.sc-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }

/* Newsletter / forms */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
textarea.input { min-height: 140px; resize: vertical; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 200px; background: rgba(255,255,255,.95); color: #0f1b3d; border-color: transparent; }
.hidden-field { display: none; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; flex: none; transition: transform .2s; }
.faq summary .plus svg { width: 16px; height: 16px; }
.faq details[open] summary .plus { transform: rotate(45deg); color: var(--orange); }
.faq details p { color: var(--muted); padding-bottom: 12px; margin: 0; }

/* Shop */
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-cover { position: relative; aspect-ratio: 16/9; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; overflow: hidden; }
.product-cover::after { content: attr(data-sym); position: absolute; right: 16px; top: 4px; font-size: 92px; font-weight: 800; opacity: .16; }
.product-cover .pc-level { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.product-cover .pc-title { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.product-badge { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--orange); font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; z-index: 1; }
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body ul { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 6px; }
.product-body li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.product-body li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.price { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.price s { font-size: .95rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding-top: 6px; }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }

/* Videos */
.video-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.yt { position: relative; aspect-ratio: 16/9; background: #000; cursor: pointer; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.yt:hover img { transform: scale(1.04); opacity: .85; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px; background: #ff0033; display: grid; place-items: center; border: 0; cursor: pointer; }
.yt .play svg { width: 26px; height: 26px; color: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .vc-body { padding: 14px 16px 16px; }
.video-card h3 { font-size: 1rem; margin: 0 0 4px; }
.video-card .vc-cat { font-size: .78rem; color: var(--orange); font-weight: 700; }

/* Quiz */
.quiz-wrap { max-width: 820px; margin: 0 auto; }
#quiz-app, [data-resource-browser], #resources, #levels { scroll-margin-top: 90px; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.set-card { text-align: left; cursor: pointer; font-family: inherit; color: var(--text); border: 2px solid var(--border); background: var(--surface); border-radius: 18px; padding: 18px; transition: all .15s; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.set-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.set-card.selected { border-color: var(--orange); box-shadow: 0 0 0 4px var(--ring); }
.set-card .lv { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.set-card strong { font-size: 1.08rem; }
.set-card span.d { font-size: .86rem; color: var(--muted); }
.set-card .best { font-size: .78rem; font-weight: 700; color: var(--ok); }
.quiz-settings { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.quiz-settings .lbl { font-weight: 700; font-size: .92rem; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 700; font-size: .88rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.quiz-settings .btn { margin-left: auto; }
.q-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .9rem; color: var(--muted); font-weight: 700; flex-wrap: wrap; }
.q-top .timer { display: inline-flex; align-items: center; gap: 6px; }
.q-top .timer svg { width: 16px; height: 16px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 22px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); border-radius: 999px; transition: width .3s ease; }
.q-topic { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); background: rgba(242,107,29,.12); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.q-text { font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 700; margin-bottom: 20px; line-height: 1.4; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface-2); font: inherit; font-weight: 600; font-size: 1.02rem; color: var(--text); cursor: pointer; transition: all .15s; }
.opt:hover:not([disabled]) { border-color: var(--orange); transform: translateX(3px); }
.opt .k { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: .88rem; flex: none; }
.opt[disabled] { cursor: default; }
.opt.correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.correct .k { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .k { background: var(--bad); color: #fff; border-color: var(--bad); }
.explain { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border-left: 4px solid var(--orange); }
.explain strong { display: block; margin-bottom: 4px; }
.explain p { margin: 0; color: var(--muted); }
.q-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 10px; flex-wrap: wrap; }
.kbd-hint { font-size: .8rem; color: var(--muted); }
.result { text-align: center; }
.ring { --p: 0; width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 18px; background: conic-gradient(var(--orange) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; }
.ring > div { width: 136px; height: 136px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.ring b { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.ring span { font-size: .85rem; color: var(--muted); }
.result-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 22px; }
.result-stats div { background: var(--surface-2); border-radius: 14px; padding: 10px 18px; font-size: .9rem; }
.result-stats b { display: block; font-size: 1.2rem; }
.review { text-align: left; margin-top: 26px; display: grid; gap: 10px; }
.review-item { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); }
.review-item .ri-q { font-weight: 700; margin-bottom: 6px; }
.review-item .ri-a { font-size: .9rem; }
.review-item .ri-a .ok { color: var(--ok); font-weight: 700; }
.review-item .ri-a .no { color: var(--bad); font-weight: 700; }
.review-item .ri-e { font-size: .86rem; color: var(--muted); margin-top: 6px; }

/* Prose pages */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 12px; }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--muted); font-size: .8rem; }
.contact-item strong { word-break: break-all; }

/* Popular pages (home) */
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.pop-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--orange) 45%, var(--border)); color: inherit; }
.pop-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.pop-ic svg { width: 22px; height: 22px; }
.pop-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pop-txt strong { font-size: .98rem; line-height: 1.3; }
.pop-txt small { color: var(--muted); font-size: .82rem; }
.pop-arrow { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pop-card:hover .pop-arrow { color: var(--orange); }

/* Unit folders */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 22px; }
.folder { position: relative; display: block; padding-top: 22px; color: #fff; text-decoration: none; transition: transform .25s ease; }
.folder::before { content: ""; position: absolute; top: 4px; left: 0; width: 46%; height: 34px; border-radius: 16px 16px 0 0; background: var(--f2); }
.folder-sheet { position: absolute; top: 12px; left: 9%; width: 80%; height: 60px; background: #fff; border-radius: 10px; transform: rotate(-3deg); box-shadow: 0 4px 12px rgba(0,0,0,.12); transition: transform .25s ease; background-image: repeating-linear-gradient(#fff 0 9px, #e6eaf3 9px 10px); }
.folder-body { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 178px; padding: 18px 20px 18px; border-radius: 6px 20px 20px 20px; background: linear-gradient(140deg, var(--f1), var(--f2)); box-shadow: 0 18px 34px -16px var(--f2); overflow: hidden; }
.folder-body::after { content: "∫"; position: absolute; right: 10px; bottom: -34px; font-size: 140px; font-weight: 800; opacity: .14; line-height: 1; }
.folder-body::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 45%); pointer-events: none; }
.folder-top { display: flex; align-items: center; justify-content: space-between; }
.folder-top svg { width: 30px; height: 30px; fill: rgba(255,255,255,.25); }
.folder-code { font-size: .78rem; font-weight: 800; letter-spacing: .08em; background: rgba(255,255,255,.22); padding: 4px 10px; border-radius: 999px; }
.folder-name { font-size: 3rem; font-weight: 800; line-height: 1; margin-top: 8px; letter-spacing: -0.03em; }
.folder-title { font-weight: 700; opacity: .95; }
.folder-meta { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.folder-meta span { font-size: .78rem; font-weight: 700; background: rgba(0,0,0,.16); padding: 4px 10px; border-radius: 999px; }
.folder:hover { transform: translateY(-6px); color: #fff; }
.folder:hover .folder-sheet { transform: translateY(-12px) rotate(-5deg); }
.folder:focus-visible { outline: none; }
.folder:focus-visible .folder-body { box-shadow: 0 0 0 4px var(--ring), 0 18px 34px -16px var(--f2); }

.folder-hero::after { background: radial-gradient(circle, color-mix(in srgb, var(--f1) 40%, transparent), transparent 70%); }
.folder-hero-row { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; }
.folder-badge { flex: none; width: 92px; height: 80px; border-radius: 6px 18px 18px 18px; background: linear-gradient(140deg, var(--f1), var(--f2)); color: #fff; display: grid; place-items: center; position: relative; box-shadow: 0 14px 28px -14px var(--f2); }
.folder-badge::before { content: ""; position: absolute; top: -12px; left: 0; width: 46%; height: 16px; border-radius: 10px 10px 0 0; background: var(--f2); }
.folder-badge svg { display: none; }
.folder-badge b { font-size: 2rem; font-weight: 800; }
.folder-hero h1 { margin: 0; }

.paper-sets { display: grid; gap: 16px; }
.paper-set { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-sm); }
.ps-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ps-head h2, .ps-head h3 { font-size: 1.15rem; margin: 0; }
.paper-browser { scroll-margin-top: 90px; }
.ps-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 20px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.ps-filters .tabs { flex-wrap: wrap; overflow: visible; }
.ps-group { display: grid; gap: 16px; }
.ps-group[hidden], .paper-set[hidden] { display: none; }
.ps-group-head { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 10px 0 -4px; color: var(--text); }
.ps-group-head span { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; }
.ps-group-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.ps-head small { color: var(--muted); }
.ps-cal { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(242,107,29,.12); color: var(--orange); flex: none; }
.ps-cal svg { width: 22px; height: 22px; }
.ps-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ps-file { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.ps-file > .ps-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.ps-file > .ps-ic svg { width: 20px; height: 20px; }
.ps-label strong { display: block; font-size: .98rem; }
.ps-label small { color: var(--muted); font-size: .8rem; }
.ps-actions { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.ps-actions .btn { flex: 1; }
@media (max-width: 860px) {
  .ps-files { grid-template-columns: 1fr; }
  .ps-file { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .ps-label { flex: 1; min-width: 120px; }
  .ps-actions { margin-top: 0; width: 100%; }
}
@media (max-width: 720px) {
  .folder-hero-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .folder-badge { width: 64px; height: 56px; margin-top: 12px; }
  .folder-hero h1 { font-size: 1.6rem; }
  .folder-badge b { font-size: 1.4rem; }
}

/* PDF viewer */
.pdf-toolbar { position: sticky; top: 70px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.pdf-toolbar .container { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.pdf-title { font-size: 1rem; margin: 0; flex: 1; min-width: 180px; line-height: 1.3; }
.pdf-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdf-tools .icon-btn { width: 36px; height: 36px; font-size: 1.1rem; font-weight: 800; font-family: inherit; }
.pdf-tools .meta { font-size: .85rem; font-weight: 700; color: var(--muted); min-width: 56px; text-align: center; }
.pdf-stage { background: var(--bg-2); padding: 20px 0 40px; overflow-x: auto; }
.pdf-pages { --zoom: 1; width: calc(min(900px, 100% - 24px) * var(--zoom)); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.pdf-page { width: 100%; background: #fff; border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.pdf-page canvas { display: block; width: 100%; height: auto; }
.pdf-page:empty { display: grid; place-items: center; }
.pdf-page:empty::after { content: "Loading page…"; color: #8a94b0; font-size: .9rem; font-weight: 600; }
.pdf-loading { text-align: center; padding: 60px 20px; color: var(--muted); font-weight: 600; }
.pdf-loading .spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--orange); margin: 0 auto 12px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .pdf-toolbar .container { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .pdf-toolbar #pdf-back { padding: 7px 11px; }
  .pdf-title { flex: 1; min-width: 0; font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pdf-tools { width: 100%; flex-wrap: nowrap; gap: 4px; }
  .pdf-tools .meta { min-width: 46px; text-align: left; }
  .pdf-tools #pdf-download { margin-left: auto; }
  .pdf-tools #zoom-fit { padding: 7px 10px; }
  .pdf-stage { padding: 10px 0 30px; }
  .pdf-pages { width: calc((100% - 12px) * var(--zoom)); gap: 8px; }
}

/* Ad slot (shown only when ads are enabled) */
.ad-slot { margin: 28px auto; text-align: center; min-height: 100px; }

/* Footer */
.site-footer { background: #081631; color: #c9d2ea; padding: 60px 0 26px; margin-top: 40px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer-brand p { color: #9ea9c8; font-size: .92rem; max-width: 340px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.social-row { display: flex; gap: 8px; margin-top: 16px; }
.social-row a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social-row a:hover { background: var(--orange); }
.social-row svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #8e9abd; }
.footer-bottom p { margin: 0; max-width: 720px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .cta-split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 44px 0 48px; }
  .grid-2, .grid-3, .grid-4, .res-list, .social-cards, .steps, .topic-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr; }
  .toolbar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .q-card { padding: 20px; border-radius: 20px; }
  .quiz-settings .btn { margin-left: 0; width: 100%; }
  .res-card { flex-wrap: wrap; }
  .res-actions { width: 100%; justify-content: flex-end; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 40px; height: 40px; }
}
