/* IDL Learn – theme: a calm, modern look over the base styles.
 * Soft background graphics (never behind the question itself), glass header, rounded cards, gradient accents.
 * Learning screens (practice, games, diagnostic, mock papers) dim the background further so nothing distracts. */
:root {
    --brand: #163EC4;
    --brand-dark: #0E2CA0;
    --brand-soft: #EEF3FF;
    --cyan: #06B6D4;
    --violet: #285CF0;
    --grad: linear-gradient(135deg, #285CF0 0%, #163EC4 52%, #0EA5E9 100%);
    --grad-soft: linear-gradient(135deg, #EEF3FF 0%, #F3F6FF 50%, #E6F7FD 100%);
    --bg: #F4F6FB;
    --line: #E4E8F1;
    --radius: 20px;
    --head: 'Outfit', 'Nunito', system-ui, sans-serif;
    --glass: rgba(255, 255, 255, .74);
}
body { background: var(--bg); }
h1, h2, h3, .brand, .kpis b, .abig, .hello h1 { font-family: var(--head); letter-spacing: -0.015em; }
h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }
::selection { background: #C9D6FB; }
* { scrollbar-width: thin; scrollbar-color: #CBD3E3 transparent; }

/* ---------- Background graphics: aurora, a faint grid and a few drifting shapes ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; transition: opacity .6s ease; }
.bgfx__aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: bgDrift 38s ease-in-out infinite alternate; }
.bgfx__aurora--a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, #C9D6FB 0%, transparent 68%); }
.bgfx__aurora--b { width: 40vw; height: 40vw; right: -10vw; top: 18vh; background: radial-gradient(circle, #BAE6FD 0%, transparent 68%); animation-duration: 46s; animation-delay: -12s; }
.bgfx__aurora--c { width: 38vw; height: 38vw; left: 30vw; bottom: -18vw; background: radial-gradient(circle, #DCE5FF 0%, transparent 68%); animation-duration: 52s; animation-delay: -24s; }
.bgfx__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(22, 62, 196, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 62, 196, .045) 1px, transparent 1px); background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%); }
.bgfx__shapes { position: absolute; inset: 0; width: 100%; height: 100%; }
.bgfx__shapes g { fill: none; stroke-width: 1.6; opacity: .22; animation: bgFloat 30s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.bgfx__shapes g:nth-child(2n) { animation-duration: 40s; animation-delay: -10s; }
.bgfx__shapes g:nth-child(3n) { animation-duration: 48s; animation-delay: -20s; }
@keyframes bgDrift { to { transform: translate3d(6vw, 4vh, 0) scale(1.12); } }
@keyframes bgFloat { to { transform: translate3d(0, -26px, 0) rotate(18deg); } }
/* Learning screens: keep the background very quiet */
body.is-focus .bgfx { opacity: .35; }
body.is-focus .bgfx * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .bgfx * { animation: none !important; } }
@media print { .bgfx { display: none; } }

/* ---------- Header: glass bar with a thin gradient edge ---------- */
.header { background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid rgba(228, 232, 241, .8); box-shadow: 0 6px 24px -18px rgba(23, 32, 54, .35); }
.header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); opacity: .55; }
.header .brand__mark { background: var(--grad); box-shadow: 0 8px 18px -10px rgba(22, 62, 196, .9); }
.header .brand__name { font-weight: 700; }
.mnav__link { font-family: var(--head); font-weight: 600; letter-spacing: .005em; }
.mnav__link.is-on { background: transparent; box-shadow: inset 0 -3px 0 var(--brand); }
.mpanel { background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.user__btn { transition: box-shadow .15s ease; } .user__btn:hover { box-shadow: 0 6px 16px -10px rgba(23, 32, 54, .5); }
.avatar { background: var(--grad); }

/* ---------- Surfaces ---------- */
.panel, .empty, .topic, .kpis > div, .award-stats > div, .lic__card, .qcard, .facts div, .acard {
    border: 1px solid rgba(228, 232, 241, .95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 2px rgba(23, 32, 54, .03), 0 18px 40px -30px rgba(23, 32, 54, .38);
}
.qcard { background: #fff; }   /* the question card is always solid white */
.subject-card, .rec-card, .gcard, .exam-card, .ycard { border-radius: var(--radius); }
.subject-card, .rec-card, .gcard, .exam-card { transition: transform .18s ease, box-shadow .18s ease; }
.subject-card:hover, .rec-card:hover, .gcard:hover, .exam-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(11, 24, 66, .45); }
.subject-card__icon, .cat-hero__icon { box-shadow: 0 12px 24px -14px var(--c); }
.kpis b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.table th { color: #7A86A0; }

/* ---------- Buttons, inputs, chips ---------- */
.btn { background: var(--grad); background-size: 140% 140%; background-position: 0 0; box-shadow: 0 10px 22px -14px rgba(22, 62, 196, .9); transition: background-position .3s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { background: var(--grad); background-size: 140% 140%; background-position: 100% 100%; box-shadow: 0 14px 26px -14px rgba(22, 62, 196, .95); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-dark); box-shadow: inset 0 0 0 1.5px #C9D6FB; }
.btn--danger { background: #fff; }
.btn--green { background: linear-gradient(135deg, #16A34A, #65A30D); }
.btn--amber { background: linear-gradient(135deg, #F59E0B, #F97316); }
.field input:focus, .field select:focus, .field textarea:focus, .search:focus { border-color: #6F8EF5; box-shadow: 0 0 0 4px rgba(40, 92, 240, .16); }
.chip.is-on, .seg__btn.is-on, .pillbtn.is-on { background: var(--grad); color: #fff; }
.tab.is-on { color: var(--brand-dark); border-bottom-color: var(--brand); }
.tag { border-radius: 999px; }

/* ---------- Learner home banner: deep space with a faint grid and glow ---------- */
.hello { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #285CF0 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, #0EA5E9 0%, transparent 55%), linear-gradient(135deg, #0B1842 0%, #0B1842 55%, #163EC4 100%); border: 0; box-shadow: 0 30px 60px -36px rgba(11, 24, 66, .9); }
.hello::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.hello > * { position: relative; }
.hello__stats div { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- Pages fade in gently ---------- */
#app > * { animation: pageIn .28s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { #app > * { animation: none; } }

/* ---------- Sign-in ---------- */
.auth { background: transparent; }
.auth__card { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.auth__plans { margin-top: 14px; font-size: 14px; font-weight: 700; }

/* ---------- Learning screens: plain, focused surfaces ---------- */
body.is-focus .game { background: linear-gradient(180deg, #EAF4FF, #F1FBF5); }
body.is-focus .practice__side .side-box { background: #fff; }

/* ---------- Plans page ---------- */
.plans { padding-bottom: 60px; }
.plans-hero { padding-top: 54px; padding-bottom: 20px; text-align: center; }
.plans-hero h1 { max-width: 900px; margin: 0 auto 14px; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.plans-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plans-hero__sub { max-width: 640px; margin: 0 auto 24px; font-size: 18px; color: var(--muted); }
.plans-hero__stats { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.plans-hero__stats div { min-width: 120px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .8); }
.plans-hero__stats b { display: block; font: 800 24px var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plans-hero__stats span { font-size: 13px; font-weight: 700; color: var(--muted); }
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 255, 255, .94); box-shadow: 0 24px 50px -38px rgba(23, 32, 54, .5); }
.plan--pop { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; transform: translateY(-8px); box-shadow: 0 34px 60px -36px rgba(22, 62, 196, .6); }
.plan__pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.plan h2 { margin: 0; font-size: 24px; } .plan__tag { color: var(--muted); font-weight: 700; }
.plan__price { display: flex; flex-direction: column; margin: 6px 0 18px; } .plan__price b { font: 800 34px/1.1 var(--head); color: var(--ink); } .plan__price span { color: var(--muted); font-size: 14px; font-weight: 700; }
.plan__list { flex: 1; margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; }
.plan__list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-weight: 600; color: var(--text); }
.plan__list svg { width: 20px; height: 20px; fill: none; stroke: #16A34A; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plan__fine { display: block; margin-top: 8px; text-align: center; color: var(--muted); font-weight: 600; }
.plans-feat { margin-top: 60px; } .plans-feat h2, .plans-faq h2 { text-align: center; font-size: clamp(24px, 3vw, 32px); margin-bottom: 22px; }
.plans-feat__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plans-feat__grid > div { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .9); }
.plans-feat__grid b { display: block; margin: 10px 0 4px; font: 700 18px var(--head); color: var(--ink); } .plans-feat__grid p { margin: 0; color: var(--muted); }
.plans-feat__i { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; background: var(--grad-soft); } .plans-feat__i .mi { width: 24px; height: 24px; }
.plans-faq { max-width: 760px; margin-top: 54px; }
.plans-signin { margin-top: 34px; text-align: center; font-weight: 700; }
.join { max-width: 520px; text-align: left; } .join .brand__mark--lg { display: flex; } .join h1 { font-size: 28px; }
.kind { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 900; vertical-align: 1px; } .kind--family { background: #FCE7F3; color: #9D174D; } .kind--individual { background: #E0F2FE; color: #075985; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } .plan--pop { transform: none; } }

/* Pricing page refresh: a deliberate hero, clear audiences, and readable price choices. */
.plans { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 88px; background: linear-gradient(180deg, #F3F6FF 0, #F3F6FF 520px, #fff 900px); }
.plans-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 78px) 0 38px; text-align: left; }
.plans-hero::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -150px; top: -230px; border-radius: 50%; background: radial-gradient(circle, rgba(40, 92, 240, .13), rgba(40, 92, 240, 0) 70%); pointer-events: none; }
.plans-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); align-items: center; gap: clamp(32px, 6vw, 86px); }
.plans-hero__copy { max-width: 690px; }
.plans-hero__eyebrow, .plans-choice__eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #163EC4; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.plans-hero__eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: #163EC4; box-shadow: 0 0 0 5px rgba(22, 62, 196, .12); }
.plans-hero h1 { max-width: 720px; margin: 0; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.045em; }
.plans-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plans-hero__sub { max-width: 620px; margin: 20px 0 22px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.plans-hero__audience { display: flex; flex-wrap: wrap; gap: 9px; }
.plans-hero__audience span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(80, 89, 120, .13); border-radius: 999px; background: rgba(255, 255, 255, .78); color: #47516A; font-size: 13px; font-weight: 700; }
.plans-hero__audience i { width: 7px; height: 7px; border-radius: 50%; background: #19A974; }
.plans-hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.plans-hero__actions .btn { min-height: 46px; padding-inline: 20px; }
.plans-hero__panel { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(22, 62, 196, .12); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(243, 246, 255,.96)); box-shadow: 0 30px 70px -48px rgba(14, 44, 160, .45); }
.plans-hero__panel::after { content: ""; position: absolute; width: 190px; height: 190px; top: -120px; right: -70px; border: 1px solid rgba(22, 62, 196, .13); border-radius: 50%; box-shadow: 0 0 0 22px rgba(22, 62, 196, .035), 0 0 0 46px rgba(22, 62, 196, .025); pointer-events: none; }
.plans-hero__panel-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-bottom: 23px; }
.plans-hero__mark { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 16px; background: var(--grad); color: #fff; font: 900 16px var(--head); box-shadow: 0 9px 22px rgba(22, 62, 196, .22); }
.plans-hero__panel-head small { display: block; margin-bottom: 5px; color: #163EC4; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.plans-hero__panel-head b { display: block; max-width: 300px; color: var(--ink); font: 700 19px/1.25 var(--head); }
.plans-hero__stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.plans-hero__stats div { min-width: 0; padding: 15px 16px; border: 1px solid rgba(80, 89, 120, .1); border-radius: 17px; background: rgba(255,255,255,.85); }
.plans-hero__stats b { display: block; color: #163EC4; font: 800 26px/1.05 var(--head); letter-spacing: -.03em; }
.plans-hero__stats span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.plans-hero__panel-foot { position: relative; z-index: 1; margin: 17px 0 0; color: #5D6680; font-size: 13px; line-height: 1.5; }
.plans-choice { margin-top: 24px; scroll-margin-top: 32px; }
.plans-choice__head { max-width: 650px; margin: 0 auto; text-align: center; }
.plans-choice__eyebrow { margin-bottom: 9px; }
.plans-choice__head h2 { margin: 0; color: var(--ink); font: 800 clamp(28px, 3.4vw, 40px)/1.12 var(--head); letter-spacing: -.035em; }
.plans-choice__head > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.plans-choice .plans-grid { margin-top: 29px; }
.plans-grid--2 { align-items: stretch; }
.plan { padding: 30px; border-radius: 26px; box-shadow: 0 22px 55px -42px rgba(23, 32, 54, .42); scroll-margin-top: 28px; }
.plan--pop { transform: translateY(-4px); }
.plan__audience { margin: 0 0 6px; color: #163EC4; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.plan h2 { font-size: 27px; letter-spacing: -.025em; }
.plan__tag { min-height: 52px; margin: 5px 0 17px; color: #66708A; font-size: 14px; font-weight: 500; line-height: 1.55; }
.plan__price { margin: 0 0 19px; }
.plan__price b { font-size: clamp(36px, 4vw, 44px); letter-spacing: -.04em; }
.plan__price span { margin-top: 4px; font-size: 14px; }
.plan__terms-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; color: var(--ink); font-size: 13px; }
.plan__terms-head span { color: var(--muted); font-size: 11px; font-weight: 600; }
.plan__terms { border-radius: 15px; }
.plan__terms li { min-height: 43px; padding: 9px 12px; }
.plan__list { margin-top: 3px; gap: 12px; }
.plan__list li { font-size: 14px; line-height: 1.45; }
.plan__fine { margin-top: 9px; font-size: 11px; line-height: 1.45; }
.plan__vat { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 11px; text-align: center; }
.plans-feat { margin-top: 74px; }
@media (max-width: 900px) {
    .plans-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .plans-hero__copy { max-width: 760px; }
    .plans-hero__panel { max-width: 680px; }
    .plans-choice { margin-top: 20px; }
    .plan--pop { transform: none; }
}
@media (max-width: 560px) {
    .plans-hero { padding-top: 36px; }
    .plans-hero h1 { font-size: clamp(38px, 11vw, 52px); }
    .plans-hero__actions { display: grid; grid-template-columns: 1fr; }
    .plans-hero__actions .btn { width: 100%; }
    .plans-hero__panel { padding: 20px; border-radius: 24px; }
    .plans-hero__stats div { padding: 12px; }
    .plans-hero__stats b { font-size: 23px; }
    .plan { padding: 24px 20px; }
    .plan__tag { min-height: 0; }
}
