/* eStudy.pk public website (made by make_site.js) */
:root {
  --ink: #0b1020; --ink2: #3b4560; --muted: #6b7591; --line: #e7e9f2; --bg: #ffffff; --soft: #f7f8fc;
  --brand: #4f46e5; --brand2: #7c3aed; --brand-d: #3f37c9; --accent: #fbbf24; --ok: #10b981;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --r: 18px; --shadow-s: 0 1px 2px rgba(11, 16, 32, .05), 0 2px 8px rgba(11, 16, 32, .04);
  --shadow: 0 2px 4px rgba(11, 16, 32, .04), 0 12px 32px -8px rgba(30, 27, 75, .16);
  --shadow-l: 0 30px 70px -20px rgba(30, 27, 75, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(840px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; line-height: 1.2; font-family: inherit; white-space: nowrap; }
.btn.big { padding: 15px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn.full { width: 100%; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .6), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(79, 70, 229, .7); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-s); }
.btn.ghost:hover { border-color: #c7c9f6; color: var(--brand); transform: translateY(-1px); }
.btn.white { background: #fff; color: var(--brand); }
.btn.white:hover { transform: translateY(-2px); }
.btn.line { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.line:hover { background: rgba(255, 255, 255, .1); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(231, 233, 242, .8); }
.bar { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.bt { font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; }
.bt b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .drop-b { color: var(--ink2); font-weight: 600; padding: 9px 13px; border-radius: 10px; font-size: .94rem; background: none; border: 0; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
.nav > a:hover, .drop-b:hover { background: var(--soft); color: var(--ink); }
.nav-cta { display: flex; gap: 8px; margin-left: 12px; }
.drop { position: relative; }
.drop-b::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
.drop-m { position: absolute; top: calc(100% + 8px); left: -20px; width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-l); padding: 10px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; }
.drop-m::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.drop-m a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.drop-m a:hover { background: var(--soft); }
.mi { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); flex: none; }
.drop:hover .drop-m, .drop.open .drop-m { display: grid; }
.menu { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; }

/* decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0; }
.blob.b1 { width: 520px; height: 520px; background: #c7d2fe; top: -180px; right: -120px; }
.blob.b2 { width: 420px; height: 420px; background: #fde68a; bottom: -220px; left: -160px; opacity: .45; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; background: linear-gradient(180deg, #fbfbff 0%, #fff 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(79, 70, 229, .09) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(180deg, #000 0%, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink2); font-weight: 700; font-size: .84rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow-s); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.17rem; color: var(--ink2); max-width: 58ch; }
.hero-b { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--ink2); font-weight: 600; font-size: .94rem; }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks svg { color: var(--ok); }

/* product preview (HTML, not a screenshot) */
.hero-v { position: relative; padding: 20px 10px 30px 20px; }
.mock { background: #fff; border-radius: 20px; box-shadow: var(--shadow-l), 0 0 0 1px rgba(11, 16, 32, .06); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mtop { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #f5f6fb; border-bottom: 1px solid var(--line); }
.mtop i { width: 11px; height: 11px; border-radius: 50%; background: #e2e5ee; }
.mtop i:nth-child(1) { background: #fb7185; } .mtop i:nth-child(2) { background: #fbbf24; } .mtop i:nth-child(3) { background: #34d399; }
.mtop span { margin-left: 10px; font-size: .78rem; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 3px 12px; border-radius: 8px; font-weight: 600; }
.mbody { display: grid; grid-template-columns: 170px 1fr; min-height: 300px; }
.mside { border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; font-size: .78rem; background: #fcfcfe; }
.mside b { font-size: .82rem; padding: 0 8px 6px; }
.mside span { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 8px; color: var(--ink2); font-weight: 600; }
.mside span svg { color: var(--muted); flex: none; }
.mside span.on { background: #eef0ff; color: var(--brand); }
.mside span.on svg { color: var(--brand); }
.mmain { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.board { position: relative; flex: 1; min-height: 200px; border-radius: 14px; background: linear-gradient(160deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%); color: #fff; padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.board::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 22px 22px; }
.bt1 { font-weight: 800; font-size: 1.05rem; color: #c7d2fe; position: relative; z-index: 1; }
.eq { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.frac { display: inline-flex; flex-direction: column; align-items: center; font-size: 1.05rem; }
.frac i { font-style: normal; padding: 0 6px; } .frac i:first-child { border-bottom: 2px solid #fff; }
.bt2 { font-size: 1rem; color: #e0e7ff; position: relative; z-index: 1; } .bt2 b { color: var(--accent); }
.play { position: absolute; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; z-index: 1; backdrop-filter: blur(4px); }
.pbar2 { height: 6px; border-radius: 9px; background: #eef0f6; overflow: hidden; } .pbar2 i { display: block; width: 38%; height: 100%; background: var(--grad); border-radius: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chips span { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--soft); color: var(--ink2); border: 1px solid var(--line); }
.chips span.on { background: #eef0ff; color: var(--brand); border-color: #dcdffd; }
.fcard { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); padding: 11px 15px 11px 11px; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid rgba(231, 233, 242, .9); font-size: .84rem; z-index: 2; animation: float 6s ease-in-out infinite; }
.fcard b { display: block; line-height: 1.2; } .fcard small { color: var(--muted); font-weight: 600; }
.fcard > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; flex: none; }
.fcard .ok { background: var(--ok); } .fcard .pp { background: #f59e0b; } .fcard .ai { background: var(--grad); }
.fcard.q { left: -22px; bottom: 18%; } .fcard.p { right: -14px; top: 6%; animation-delay: -2s; } .fcard.a { right: 4%; bottom: -4px; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* subject strip */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 18px 0; }
.strip-in::-webkit-scrollbar { display: none; }
.strip a { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink2); font-weight: 600; font-size: .9rem; transition: all .2s; }
.strip a svg { color: var(--c); }
.strip a:hover { background: #fff; border-color: color-mix(in srgb, var(--c) 40%, white); color: var(--ink); }

/* sections */
.sec { position: relative; padding: 96px 0; }
.sec.alt { background: var(--soft); }
.head { text-align: center; max-width: 740px; margin: 0 auto 52px; }
.head p { color: var(--ink2); font-size: 1.1rem; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; padding: 5px 12px; background: #eef0ff; border-radius: 999px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; color: var(--ink); box-shadow: var(--shadow-s); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; isolation: isolate; }
.scard::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: color-mix(in srgb, var(--c) 10%, white); z-index: -1; transition: transform .35s; }
.scard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 30%, white); }
.scard:hover::after { transform: scale(1.35); }
.si { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--c, var(--brand)); color: #fff; box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--c, #4f46e5) 70%, transparent); margin-bottom: 18px; }
.si.big { width: 62px; height: 62px; border-radius: 18px; }
.scode { color: var(--c); font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.scard h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.scard p { color: var(--ink2); font-size: .95rem; flex: 1; margin-bottom: 16px; }
.go { display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-weight: 700; font-size: .9rem; }
.go svg { transition: transform .2s; } .scard:hover .go svg { transform: translateX(4px); }

/* stats */
.stats { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 20% 0%, rgba(167, 139, 250, .35), transparent 70%), radial-gradient(500px 200px at 90% 100%, rgba(251, 191, 36, .18), transparent 70%); }
.sgrid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 54px 0; text-align: center; }
.sgrid div + div { border-left: 1px solid rgba(255, 255, 255, .14); }
.sgrid b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sgrid span { color: #c7d2fe; font-weight: 600; }

/* features bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-s); transition: transform .25s, box-shadow .25s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat.wide { grid-column: span 2; background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%); }
.feat p { color: var(--ink2); font-size: .95rem; margin: 0; }
.fi { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #eef0ff; color: var(--brand); margin-bottom: 16px; }
.feat.wide .fi { background: var(--grad); color: #fff; }
.feat.big { padding: 34px; box-shadow: var(--shadow); }
.feat.big .fi { background: var(--c, var(--brand)); color: #fff; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-s); }
.sn { position: absolute; top: 18px; right: 20px; font-size: 2.6rem; font-weight: 800; color: #eef0ff; line-height: 1; }
.steps p { color: var(--ink2); margin: 0; font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p { color: var(--ink2); font-size: 1.06rem; }
.list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink2); }
.list svg { color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; flex: none; margin-top: 2px; width: 20px; height: 20px; }

.pcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-l); }
.ph { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ph b { font-size: 1.1rem; } .ph span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.prow { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink2); margin-top: 16px; font-size: .94rem; }
.prow b { color: var(--ink); }
.pbar { height: 9px; background: #f0f1f7; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 99px; }
.pfoot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pfoot span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--soft); color: var(--ink2); font-weight: 700; font-size: .84rem; }
.pfoot svg { color: var(--brand); }
.pcard small { display: block; margin-top: 14px; color: var(--muted); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 380px)); justify-content: center; gap: 24px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; }
.plan.best { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-l); }
.tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; box-shadow: 0 8px 18px -6px rgba(79, 70, 229, .6); }
.plan h3 { font-size: 1.15rem; color: var(--ink2); }
.amt { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin: 2px 0 2px; line-height: 1.1; }
.amt small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.plan .list { flex: 1; margin: 22px 0 26px; }
.yr { margin: 4px 0 6px; color: var(--ink2); font-size: .95rem; }
.yr b { color: var(--ink); }
.yr span { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #d1fae5; color: #047857; font-weight: 800; font-size: .78rem; }
.pay { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--muted); font-size: .9rem; font-weight: 600; margin: 26px 0 0; }
.pay svg { color: var(--ok); }

/* faq */
.qa { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; transition: box-shadow .2s, border-color .2s; }
.qa[open] { box-shadow: var(--shadow); border-color: #dcdffd; }
.qa summary { cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #eef0ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa > div { padding: 0 22px 20px; color: var(--ink2); }

/* call to action */
.band { padding: 0 0 96px; }
.band-in { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: var(--grad); color: #fff; border-radius: 28px; padding: 54px; box-shadow: var(--shadow-l); }
.band-in::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -100px; top: -160px; }
.band-in > * { position: relative; }
.band h2 { margin-bottom: 8px; }
.band p { margin: 0; opacity: .88; font-size: 1.1rem; max-width: 52ch; }
.band-b { display: flex; gap: 12px; flex-wrap: wrap; }

/* subject and simple pages */
.phero { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--c, #4f46e5) 7%, white) 0%, #fff 100%); padding: 48px 0 64px; border-bottom: 1px solid var(--line); }
.phero .blob.b1 { background: color-mix(in srgb, var(--c, #4f46e5) 30%, white); }
.phero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: end; }
.phero.plain { padding-bottom: 36px; } .phero.plain .narrow { position: relative; z-index: 1; }
.phero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 20px; font-weight: 600; }
.crumbs span { margin: 0 4px; }
.facts { display: grid; gap: 12px; }
.facts div { background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-s); display: flex; align-items: baseline; gap: 10px; }
.facts b { font-size: 1.7rem; font-weight: 800; color: var(--c, var(--brand)); letter-spacing: -.03em; }
.facts span { color: var(--ink2); font-weight: 600; }
.chap { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; transition: box-shadow .2s; }
.chap[open] { box-shadow: var(--shadow); }
.chap summary, .chap.flat { display: flex; align-items: center; gap: 14px; padding: 15px 20px; list-style: none; }
.chap summary { cursor: pointer; }
.chap summary::-webkit-details-marker { display: none; }
.cl { flex: none; min-width: 48px; font-weight: 800; color: var(--brand); font-size: .92rem; }
.cn { flex: 1; font-weight: 700; }
.chev { width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.chap[open] .chev { transform: rotate(225deg); }
.chap ol { margin: 0; padding: 0 20px 18px 82px; color: var(--ink2); }
.chap ol li { padding: 3px 0; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose p { color: var(--ink2); }
.prose .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* contact */
.cgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.cform { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.cform label { display: grid; gap: 7px; font-weight: 700; font-size: .92rem; color: var(--ink2); }
.cform small { font-weight: 500; color: var(--muted); }
.cform input, .cform select, .cform textarea { font: inherit; font-weight: 500; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfbfe; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: #818cf8; box-shadow: 0 0 0 4px #e0e7ff; background: #fff; }
.cform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.msg { margin: 0; font-weight: 700; }
.msg.ok { color: #047857; } .msg.no { color: #b91c1c; }
.cside { display: grid; gap: 14px; }

/* footer */
.foot { background: #0b1020; color: #b6bdd3; padding: 64px 0 28px; }
.fgrid { display: grid; grid-template-columns: 1.5fr 1.4fr .9fr 1.1fr; gap: 36px; }
.foot .bt { color: #fff; }
.fcol h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.fcol a { display: flex; align-items: center; gap: 6px; color: #b6bdd3; padding: 4px 0; font-size: .93rem; transition: color .15s; }
.fcol a:hover { color: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.about p { margin: 16px 0; font-size: .93rem; color: #8a93ad; max-width: 40ch; }
.social { display: flex; gap: 10px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #161c33; color: #dfe3f0; padding: 0; transition: background .2s, transform .2s; }
.social a:hover { background: var(--brand); transform: translateY(-2px); }
.legal { border-top: 1px solid #1a2140; margin-top: 44px; padding-top: 22px; font-size: .82rem; color: #7d86a1; }

.wa { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -6px rgba(34, 197, 94, .6); z-index: 60; transition: transform .2s; }
.wa:hover { transform: scale(1.06); }
.wa[hidden] { display: none; }

/* reveal on scroll (site.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-v { max-width: 680px; margin: 0 auto; width: 100%; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu { display: block; }
  .nav { position: fixed; inset: 72px 0 auto; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-l); display: none; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > a, .drop-b { padding: 13px 8px; text-align: left; }
  .drop-m { position: static; display: grid; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; }
  .drop-b::after { display: none; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { flex: 1; }
  .strip-in { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .split, .cgrid, .phero-in { grid-template-columns: 1fr; gap: 36px; }
  .sgrid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .sgrid div:nth-child(3) { border-left: 0; }
  .sec { padding: 72px 0; }
  .plans { grid-template-columns: minmax(0, 460px); }
  .mock { transform: none; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts div { flex-direction: column; gap: 0; }
}
@media (max-width: 600px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .cards, .bento, .steps { grid-template-columns: 1fr; }
  .feat.wide { grid-column: auto; }
  .fgrid { grid-template-columns: 1fr; }
  .cform .two { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 56px; }
  .hero-v { padding: 10px 0 20px; }
  .mbody { grid-template-columns: 1fr; } .mside { display: none; }
  .fcard.q { left: -6px; } .fcard.p { right: -6px; top: -4px; } .fcard.a { display: none; }
  .btn.big { width: 100%; }
  .band-in { padding: 36px 26px; border-radius: 22px; }
  .chap ol { padding-left: 42px; }
  .drop-m { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div { flex-direction: row; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, .fcard { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .js .reveal { opacity: 1; transform: none; } }
.pay-accts { max-width: 760px; margin: 18px auto 0; padding: 18px 20px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; text-align: left; }
.pay-accts h3 { margin: 0 0 4px; font-size: 18px; }
.pay-accts p { margin: 0 0 12px; color: #64748b; font-size: 14px; }
.pa-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.pa { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pa b { font-size: 14px; }
.pa-n { font-family: ui-monospace, monospace; font-size: 15px; font-weight: 700; color: #4f46e5; user-select: all; }
.pa small { color: #64748b; }
/* free Chapter 1 on subject pages (2026-11-24) */
.free-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.fplayer { max-width: 960px; margin: 0 auto; }
.fp-box { position: relative; aspect-ratio: 16/9; background: #0f172a; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,23,42,.18); }
.fp-box video { width: 100%; height: 100%; display: block; background: #000; }
.fp-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #cbd5e1; font-size: 15px; }
.fp-logo { position: absolute; right: 2%; bottom: 14.5%; display: flex; align-items: center; gap: 4px; opacity: .45; pointer-events: none; }
.fp-logo img { width: 20px; border-radius: 22%; } .fp-logo span { font-weight: 700; font-size: 11px; color: #4f46e5; text-shadow: 0 0 3px #fff; }
.fp-now { margin: 10px 2px 0; font-weight: 600; color: #475569; font-size: 14px; min-height: 1.2em; }
.flist { display: flex; flex-direction: column; gap: 10px; }
.fl { border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.fl > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.fl > summary::-webkit-details-marker { display: none; }
.fl-n { width: 28px; height: 28px; border-radius: 50%; background: #eef2ff; color: #4f46e5; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.fl-t { flex: 1; font-weight: 600; }
.fl-b { padding: 0 14px 14px 54px; }
.fl-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fv { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fv.on, .fv:hover { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.fl-b h4 { margin: 12px 0 6px; font-size: 14px; }
.fl-keys { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: #334155; }
.fq { margin: 8px 0; } .fq p { margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.fq-o { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fq-o button { text-align: left; border: 1px solid #e5e7eb; background: #fff; border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.fq-o button.right { background: #dcfce7; border-color: #22c55e; } .fq-o button.wrong { background: #fee2e2; border-color: #ef4444; }
.fq-why { font-size: 13px; color: #475569; margin-top: 6px !important; }
.fl-more { margin: 12px 0 0; font-size: 13px; } .fl-more a { color: #4f46e5; font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .free-wrap { grid-template-columns: 1fr; } .fplayer { position: sticky; top: 64px; z-index: 5; } .fl-b { padding-left: 14px; } .fq-o { grid-template-columns: 1fr; } }

/* free chapter as a lesson page: video, lesson buttons, tabs (2026-11-24) */
.flessons { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 6px; max-width: 960px; margin: 0 auto; scrollbar-width: thin; }
.flessons button { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e5e7eb; background: #fff; border-radius: 999px; padding: 7px 14px 7px 7px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.flessons button span { width: 24px; height: 24px; border-radius: 50%; background: #eef2ff; color: #4f46e5; display: grid; place-items: center; font-size: 12px; }
.flessons button.on { border-color: #4f46e5; background: #4f46e5; color: #fff; } .flessons button.on span { background: #fff; }
.fpanels { max-width: 960px; margin: 6px auto 0; }
.fpanel { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px 18px; }
.ftabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; margin: 12px 0 14px; overflow-x: auto; }
.ftabs button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; color: #64748b; padding: 10px 12px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.ftabs button.on { color: #4f46e5; border-bottom-color: #4f46e5; }
.ftab h4 { margin: 14px 0 6px; font-size: 14px; }
.fpx { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.fpx-h b { display: block; font-size: 14px; } .fpx-h small { color: #64748b; font-size: 13px; }
.fpx-b { margin-top: 6px; border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.fpx-a { margin-top: 8px; padding: 8px 10px; background: #f8fafc; border-radius: 8px; font-size: 14px; }
.ftab .btn { display: inline-block; }
@media (max-width: 900px) { .fplayer { position: sticky; top: 64px; z-index: 5; } .fpanel { padding: 12px; } }

/* course layout on subject pages, like a portal lesson (2026-11-24) */
.course { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.cside { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; background: #0f172a; color: #e2e8f0; border-radius: 16px; padding: 10px; }
.cside-h { padding: 8px 10px 12px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 6px; }
.cside-h b { display: block; font-size: 16px; color: #fff; } .cside-h small { color: #94a3b8; }
.cs-ch > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 9px 10px; border-radius: 10px; }
.cs-ch > summary::-webkit-details-marker { display: none; }
.cs-ch > summary:hover { background: rgba(255,255,255,.06); }
.cs-cl { font-size: 13px; font-weight: 700; color: #fff; } .cs-cn { grid-column: 1; font-size: 12px; color: #94a3b8; }
.cs-free { grid-row: 1 / 3; grid-column: 2; align-self: center; background: #22c55e; color: #052e16; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.cs-lock { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 13px; opacity: .7; }
.cs-ch ol { list-style: none; margin: 2px 0 8px; padding: 0 0 0 6px; }
.cs-l { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0; color: #cbd5e1; font: inherit; font-size: 13px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.cs-l:hover { background: rgba(255,255,255,.06); } .cs-l.on { background: #4f46e5; color: #fff; }
.cs-l.locked { color: #64748b; }
.cs-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 11px; }
.cmain .fplayer { max-width: none; }
.cl-head { margin: 14px 0 6px; } .cl-head h3 { margin: 2px 0 0; font-size: 22px; } .cl-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.cmain .fpanels { max-width: none; margin: 0; } .cmain .fpanel { border: 0; padding: 0; background: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; margin: 14px 0 16px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.on { color: #4f46e5; border-bottom-color: #4f46e5; }
.cmodal { position: fixed; inset: 0; background: rgba(15,23,42,.6); display: grid; place-items: center; z-index: 100; padding: 16px; }
.cmodal[hidden] { display: none; }
.cmodal-box { position: relative; background: #fff; border-radius: 18px; padding: 26px; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.cmodal-box h3 { margin: 0 0 8px; } .cmodal-b { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.cmodal-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 24px; cursor: pointer; color: #64748b; }
@media (max-width: 900px) { .course { grid-template-columns: minmax(0, 1fr); } .cside { position: static; max-height: 340px; order: 2; } .cmain { order: 1; } }
.fv[hidden] { display: none !important; }

/* portal lesson styles, scoped to the subject-page course (copied from app.css, 2026-11-24) */
.cmain { --accent: #4f46e5; --accent-soft: #eef2ff; --card: #ffffff; --ink: #0f172a; --muted: #64748b; --line: #e5e7eb; --ok: #16a34a; --ok-bg: #ecfdf3; --bad: #dc2626; --bad-bg: #fef2f2; --warn-bg: #fffbeb; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 20px rgba(15,23,42,.05); }
.cmain h2 { font-size: 18px; margin: 0 0 10px; } .cmain h3 { font-size: 15px; margin: 16px 0 8px; } .cmain .muted { color: var(--muted); }
.cmain .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.cmain .badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--chip); color: var(--muted); }
.cmain .badge.ok { background: var(--ok-bg); color: var(--ok); }
.cmain .badge.blue { background: var(--accent-soft); color: var(--accent); }
.cmain .lesson-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cmain .keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cmain .key { border-left: 4px solid var(--accent); background: #f6f7f7; border-radius: 4px; padding: 10px 14px; }
.cmain .key b { display: block; }
.cmain .def { background: var(--warn-bg); border-radius: 6px; padding: 10px 14px; margin: 8px 0; }
.cmain .mist li { margin: 4px 0; }
.cmain .q { border-top: 1px solid #f0f0f1; padding: 16px 0; }
.cmain .stem { font-weight: 600; margin: 0 0 10px; }
.cmain .opts { display: grid; gap: 8px; }
.cmain .opts.o-s, .cmain .opts.o-m { grid-template-columns: 1fr 1fr; }  /* short options 2 in a row (OPT_COLS in app.js) */
.cmain .opt { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 10px 14px; font: inherit; cursor: pointer; color: var(--ink); }
.cmain .opt:hover:not(:disabled) { border-color: var(--accent); }
.cmain .opt.right { border-color: var(--ok); background: var(--ok-bg); }
.cmain .opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.cmain .opt.picked { border-color: var(--accent); background: #eef4ff; box-shadow: inset 0 0 0 1px var(--accent); }
.cmain .why { display: none; margin-top: 10px; padding: 10px 14px; border-radius: 6px; background: var(--warn-bg); font-size: 14px; }
.cmain .why.show { display: block; }
.cmain .score { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 8px; background: #f6f7f7; font-weight: 600; margin-top: 8px; }
.cmain .score .bar { flex: 1; }
.cmain .fchip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.cmain .fchip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.cmain .ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.2) 0); }
.cmain .ring > div { width: 94px; height: 94px; border-radius: 50%; background: #4f46e5; display: grid; place-items: center; text-align: center; align-content: center; }
.cmain .ring b { font-size: 24px; line-height: 1; }
.cmain .ring small { font-size: 10.5px; color: #c7d2fe; display: block; margin-top: 3px; }
.cmain .pp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cmain .px-head { display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.cmain .px-title { flex: 1; min-width: 0; }
.cmain .px-title h2 { margin: 8px 0 6px; font-size: 21px; line-height: 1.3; }
.cmain .px-title p { margin: 0; color: var(--muted); max-width: 640px; line-height: 1.55; }
.cmain .px-imp { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; font-weight: 700; }
.cmain .px-ring { width: 104px; height: 104px; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #e5e7eb 0); }
.cmain .px-ring > div { width: 80px; height: 80px; background: var(--card); color: var(--ink); }
.cmain .px-ring b { font-size: 22px; color: var(--accent); }
.cmain .px-ring small { color: var(--muted); font-size: 11px; }
.cmain .px-cal { display: flex; gap: 6px; margin: 18px 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; }
.cmain .px-cal-lab, .cmain .px-cal-y { display: grid; grid-template-rows: 18px 28px 28px; gap: 5px; }
.cmain .px-cal-lab span { display: flex; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; padding-right: 4px; }
.cmain .px-cal-y { flex: 1 1 0; min-width: 0; }
.cmain .px-cal-y b { text-align: center; font-size: 12.5px; }
.cmain .px-short { display: none; }
.cmain .px-cal i, .cmain .px-legend i { display: grid; place-items: center; border-radius: 7px; font-style: normal; font-weight: 700; font-size: 13px; background: #eef1f6; color: #b6bcc8; }
.cmain .px-cal i.na { background: transparent; border: 1px dashed #d5d9e1; color: #c3c8d2; }
.cmain .px-cal i.on, .cmain .px-legend i.on { background: var(--accent); color: #fff; box-shadow: 0 3px 8px rgba(79, 70, 229, .25); }
.cmain .px-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.cmain .px-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cmain .px-legend i { width: 28px; height: 24px; font-size: 12px; border-radius: 6px; }
.cmain .px-legend .px-mob { display: none; }
.cmain .px-how { margin: 18px 0 4px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.cmain .px-how ol { margin: 6px 0 8px; padding-left: 20px; line-height: 1.7; }
.cmain .px-how p { margin: 0; color: var(--muted); }
.cmain .px-filter { margin: 16px 0 8px; }
.cmain .px-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.cmain .px-row { display: flex; align-items: center; gap: 12px; }
.cmain .px-row .t { flex: 1; min-width: 0; }
.cmain .px-row .t b { display: block; font-size: 14.5px; }
.cmain .px-row .t small { color: var(--muted); font-size: 13px; }
.cmain .px-ans { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); font-size: 14px; }
.cmain .px-ans p { margin: 0; }
.cmain .px-ans .px-tip { margin-top: 6px; color: #92400e; }
.cmain .px-note { font-size: 12px; margin: 14px 0 0; }

/* worksheet styles copied from the portal (app.css), 2026-11-24 */
.ws-paper { max-width: 820px; margin: 0 auto 20px; padding: 40px 48px; background: #fff; color: #111; border: 1px solid #ddd; box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
  font-family: "Times New Roman", Times, Georgia, serif; font-size: 16px; line-height: 1.5; }
.ws-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid #111; font-family: Arial, sans-serif; }
.ws-brand { display: flex; align-items: center; gap: 10px; }
.ws-brand small { display: block; font-size: 12px; color: #555; }
.ws-logo { width: 34px; height: 34px; border-radius: 8px; background: #111; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ws-no { text-align: right; font-size: 12px; color: #555; }
.ws-no b { display: block; font-size: 16px; color: #111; }
.ws-title { font-family: Arial, sans-serif; font-size: 20px; margin: 16px 0 10px; color: #111; }
.ws-who { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; margin-bottom: 12px; }
.ws-who span { display: flex; align-items: flex-end; gap: 6px; flex: 1 1 150px; }
.ws-who span:first-child { flex: 2 1 260px; }
.ws-who i { flex: 1; border-bottom: 1px dotted #333; height: 1.2em; }
.ws-inst { border: 1px solid #111; padding: 8px 12px; font-size: 14px; margin-bottom: 18px; }
.ws-q { display: flex; gap: 14px; margin: 0 0 18px; }
.ws-q.keep, .ws-fig, .ws-mcq, .ws-pt { break-inside: avoid; }
.ws-part { break-after: avoid; }
.ws-lines { break-before: avoid; }
.ws-qn { font-weight: 700; min-width: 22px; }
.ws-qb { flex: 1; min-width: 0; }
.ws-qb p { margin: 0 0 4px; }
.ws-part { position: relative; padding-right: 38px; }
.ws-part.sub { padding-left: 4px; }
.ws-mk { position: absolute; right: 0; bottom: 0; font-weight: 400; }
.ws-lines { margin: 2px 0 8px; }
.ws-lines i { display: block; height: 30px; border-bottom: 1px dotted #444; margin-right: 38px; }
.ws-work .ws-lines i { border-bottom-color: #bbb; }
.ws-ans { position: relative; text-align: right; padding-right: 38px; margin-top: 6px !important; }
.ws-dots { display: inline-block; width: 170px; border-bottom: 1px dotted #444; height: 1em; vertical-align: baseline; }
.ws-mcq { margin-bottom: 8px; break-inside: avoid; }
.ws-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; margin: 2px 0 0 22px; }
.ws-opts.w4 { grid-template-columns: repeat(4, auto); justify-content: start; column-gap: 40px; }  /* like the paper: A 12 m  B 24 m … */
.ws-opts.w1 { grid-template-columns: 1fr; }
.ws-opts b { display: inline-block; width: 20px; }
.ws-fig { margin: 8px 0 10px; text-align: center; }
.ws-fig svg { max-width: 100%; height: auto; }
.ws-total { text-align: right; font-weight: 700; margin: 6px 0 0; break-before: avoid; }
.ws-foot { break-before: avoid; margin-top: 14px; padding-top: 8px; border-top: 1px solid #999; font-family: Arial, sans-serif; font-size: 11px; color: #666; text-align: center; }
.ws-key { display: none; }
.ws-key.show { display: block; }
.ws-k { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid #eee; break-inside: avoid; font-size: 15px; }
.ws-k > b { min-width: 22px; }
.ws-k ol, .ws-k ul { margin: 4px 0 0 18px; padding: 0; }
.ws-paper { --wc: #4f46e5; }
.ws-head { border-bottom: 3px solid var(--wc); }
.ws-logo { background: var(--wc); font-size: 18px; font-family: Arial, sans-serif; }
.ws-band { margin: 14px 0 12px; padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--wc) 9%, #fff); border-left: 5px solid var(--wc); font-family: Arial, sans-serif; }
.ws-band .ws-title { margin: 2px 0 4px; }
.ws-kind { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wc); }
.ws-meta { margin: 0; font-size: 13px; color: #444; }
.ws-top2 { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.ws-left { flex: 1; min-width: 0; }
.ws-inst { margin-bottom: 0; border-radius: 6px; }
.ws-inst ul { margin: 4px 0 0 18px; padding: 0; }
.ws-box { border-collapse: collapse; font-family: Arial, sans-serif; font-size: 12.5px; min-width: 170px; }
.ws-box th, .ws-box td { border: 1px solid #111; padding: 4px 8px; text-align: center; }
.ws-box th { background: color-mix(in srgb, var(--wc) 12%, #fff); }
.ws-box td { height: 22px; }
.ws-box .tot td { font-weight: 700; }
.ws-sec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 22px 0 12px; padding: 6px 10px; border-top: 2px solid var(--wc); background: color-mix(in srgb, var(--wc) 6%, #fff); font-family: Arial, sans-serif; break-after: avoid; }
.ws-sec b { color: var(--wc); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.ws-sec span { font-weight: 700; }
.ws-sec em { font-size: 12.5px; color: #555; }
.ws-sec i { margin-left: auto; font-style: normal; font-weight: 700; }
.ws-tag:not(:empty) { display: inline-block; margin-bottom: 4px; font-family: Arial, sans-serif; font-size: 10.5px; font-weight: 700; color: var(--wc); border: 1px solid color-mix(in srgb, var(--wc) 40%, #fff); border-radius: 999px; padding: 0 7px; }
.ws-self { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 14px; padding: 10px 12px; border: 1px dashed #888; border-radius: 8px; font-size: 14px; break-inside: avoid; }
.ws-self b { width: 100%; font-family: Arial, sans-serif; }
.ws-ktopic { display: inline-block; font-size: 12px; color: #666; font-style: italic; }
@media (max-width: 640px) { .ws-top2 { flex-direction: column; } .ws-box { width: 100%; } }
@media print { .ws-band, .ws-sec, .ws-box th { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.ws-top2 .ws-box { width: auto; flex: none; margin: 0; }
.ws-top2 .ws-box th, .ws-top2 .ws-box td { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: #111; }
.subj-meta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cmain .ws-paper { margin: 0 0 16px; }
.ws-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
@media print {
  body.ws-printing > *:not(main), body.ws-printing header, body.ws-printing footer, body.ws-printing .nav, body.ws-printing .phero { display: none !important; }
  body.ws-printing main > *:not(#free) { display: none !important; }
  body.ws-printing #free .head, body.ws-printing .cside, body.ws-printing .fplayer, body.ws-printing .cl-head, body.ws-printing .tabs, body.ws-printing .ws-tools, body.ws-printing .fpanel[hidden], body.ws-printing .ftab:not(.ws-on) { display: none !important; }
  body.ws-printing .course { display: block; } body.ws-printing .ws-paper { border: 0; box-shadow: none; padding: 0; max-width: none; }
  body.ws-printing .ws-key:not(.show) { display: none; }
}
/* squarer corners (user, 2026-11-24) */
.cside, .fp-box { border-radius: 6px; } .cs-l, .cs-ch > summary { border-radius: 4px; }

/* two-column "How we teach" list and related subjects (2026-11-24) */
.list.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; max-width: 980px; margin: 0 auto; }
.rel { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rel a { border: 1px solid #e5e7eb; border-radius: 999px; padding: 7px 14px; text-decoration: none; color: #4f46e5; font-weight: 600; font-size: 14px; background: #fff; }
@media (max-width: 760px) { .list.two-col { grid-template-columns: 1fr; } }

/* worksheet header: the eStudy.pk icon */
.ws-logo { background: url(/site/img/logo.svg) center / cover no-repeat !important; color: transparent !important; font-size: 0 !important; border-radius: 22%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cside, .cmain { min-width: 0; } .cs-l span, .cs-l { overflow-wrap: anywhere; min-width: 0; }
/* "How we teach" feature cards (2026-11-24): wider, more air between lines */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; max-width: 1080px; margin: 0 auto; }
.offer .of { display: flex; gap: 16px; align-items: flex-start; background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 20px 22px; }
.offer .fi { flex: none; }
.offer h3 { margin: 0 0 6px; font-size: 17px; }
.offer p { margin: 0; color: var(--ink2); line-height: 1.65; font-size: 15px; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } }
.reqcard { border-style: dashed; }
/* contact page (redesign 2026-11-24) */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto 28px; }
.ccard { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.ccard:hover { transform: translateY(-2px); border-color: #c7d2fe; }
.ccard .fi { flex: none; }
.ccard h3 { margin: 0 0 4px; font-size: 16px; }
.ccard p { margin: 0 0 4px; font-weight: 700; color: var(--brand, #4f46e5); word-break: break-word; }
.ccard small { color: var(--muted); }
.ccard.wa-c .fi { background: #dcfce7; color: #16a34a; }
.ccard.wa-c p { color: #16a34a; }
.cbox { max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 32px; }
.cbox-h h2 { margin: 0 0 6px; } .cbox-h p { margin: 0 0 22px; color: var(--ink2); line-height: 1.6; }
.cbox .cform { background: none; border: 0; box-shadow: none; padding: 0; }
@media (max-width: 760px) { .ccards { grid-template-columns: 1fr; } .cbox { padding: 22px 18px; } }
.fp-logo { bottom: 11.5%; }
/* watermark: icon on top, name below (user, 2026-11-25) */
.fp-logo { flex-direction: column; gap: 2px; align-items: center; }
.fp-logo span { font-size: clamp(7px, 0.8vw, 11px); }
.fp-logo { bottom: 8%; }
/* coming-soon subjects and launch discount (2026-11-28) */
.scard.soon { opacity: .55; filter: grayscale(.85); cursor: default; position: relative; }
.scard.soon:hover { transform: none; box-shadow: none; }
.soon-b { position: absolute; top: 16px; right: 16px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan .yr s { color: #94a3b8; }

/* 4-subject packs + promo code (2026-12-02) */
.packs { margin: 34px auto 0; max-width: 900px; text-align: center; }
.packs h3 { font-size: 1.1rem; margin-bottom: 14px; }
.pk-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pk { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-s); transition: border-color .15s, transform .15s; }
.pk:hover { border-color: #6366f1; transform: translateY(-2px); }
.pk span { color: var(--muted); font-size: .9rem; }
.packs .muted { margin-top: 10px; font-size: .9rem; }
.promo { text-align: center; margin: 22px 0 0; }
.promo-link { background: none; border: 0; color: #4f46e5; font-weight: 700; cursor: pointer; text-decoration: underline; font-size: .95rem; }
#promo-form { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
#promo-form input { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; text-transform: uppercase; width: 200px; max-width: 100%; }
#promo-msg { flex-basis: 100%; font-weight: 700; }
#promo-msg.ok { color: #047857; } #promo-msg.no { color: #b91c1c; }
.amt s { font-size: 1.1rem; color: #94a3b8; font-weight: 600; margin-right: 6px; }

/* GED page (2026-12-02) */
.plans.one { grid-template-columns: minmax(0, 420px); }
.ged-subj { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.gs { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; gap: 6px; opacity: .7; }
.gs.on { opacity: 1; border: 2px solid #6366f1; box-shadow: var(--shadow-s); }
.gs span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.gs.on span { color: #047857; }
/* packages layout (2026-12-02) */
.plans.packs-1 { grid-template-columns: minmax(0, 420px); }
.plans.packs-2 { grid-template-columns: repeat(2, minmax(0, 380px)); }
.plan .pk-for { margin: 2px 0 10px; font-size: .9rem; }
.pk-swap { display: block; text-align: center; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.all-strip { position: relative; max-width: 1188px; margin: 28px auto 0; display: flex; align-items: center; gap: 28px; justify-content: space-between; flex-wrap: wrap; padding: 28px 34px; border-radius: 24px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-l); }
.all-strip .tag { position: static; transform: none; display: inline-block; margin-bottom: 6px; }
.all-strip h3 { font-size: 1.3rem; }
.all-strip .amt { margin: 0; }
.own { text-align: center; margin-top: 18px; }
.every { max-width: 1188px; margin: 28px auto 0; text-align: center; }
.every h3 { font-size: 1.05rem; margin-bottom: 12px; }
.every ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--ink2); }
.every li { display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .plans.packs-2 { grid-template-columns: minmax(0, 460px); } .all-strip { flex-direction: column; text-align: center; } }
/* price sizes (user, 2026-12-02): smaller offer price, bigger list price */
.amt { font-size: 2.2rem; }
.yr { font-size: 1.25rem; }
.plan .yr s, .all-strip .yr s { color: #64748b; font-weight: 700; }
.yr span { font-size: .85rem; vertical-align: middle; }

/* O Level Maths preview: Method tab + worksheet, same look as the portal (2026-12-05) */
.mm-frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 2px; line-height: 1.15; }
.mm-frac > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 3px; }
.mm-frac > span:last-child { padding: 0 3px; }
.mws-work { border: 1px dashed #cbd5e1; border-radius: 6px; min-height: calc(var(--h, 4) * 22px); margin: 6px 0 4px;
  background-image: linear-gradient(#eef2f7 1px, transparent 1px), linear-gradient(90deg, #eef2f7 1px, transparent 1px); background-size: 22px 22px; }
.mws-part { margin: 6px 0 10px; }
.mws-steps { margin: 4px 0 10px 18px; padding: 0; } .mws-steps li { margin: 3px 0; }
.mm-vid h3 { margin: 0 0 8px; } .mm-vid h3 small { font-weight: 500; }
.mth-rule { border-left: 4px solid #4f46e5; background: #eef2ff; border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 17px; }
.mth-rule b { display: block; margin-bottom: 2px; }
.mm-row { margin: 8px 0; } .mm-f { font-size: 18px; } .mth-eg { color: #475569; font-size: 15px; margin-top: 4px; }
.mm-part { margin: 10px 0; } .mm-part summary { cursor: pointer; color: #4f46e5; font-weight: 600; } .mm-part summary b { color: #111; margin-right: 6px; }
.mth-steps { margin: 8px 0 0; padding-left: 22px; } .mth-steps li { margin: 6px 0; padding: 8px 12px; background: #f8fafc; border-radius: 8px; }
.mm-note { display: block; font-size: 14px; color: #64748b; margin-top: 3px; }
.mth-mis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mth-mis > div { border-radius: 8px; padding: 10px 14px; } .mth-mis > div > span { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.mth-mis .no { background: #fef2f2; color: #991b1b; } .mth-mis .ok { background: #ecfdf5; color: #166534; } .mth-mis small { display: block; color: #475569; font-size: 14px; }
@media (max-width: 640px) { .mth-mis { grid-template-columns: 1fr; } }
@media print { .mws-work { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* free-lesson video controls (2026-12-05) */
.vc { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: linear-gradient(transparent, rgba(15,23,42,.85)); color: #fff; opacity: 0; transition: opacity .2s; }
.fp-box:hover .vc, .fp-box.paused .vc, .fp-box:focus-within .vc { opacity: 1; }
@media (hover: none) { .vc { opacity: 1; } }
.vc-b { background: none; border: 0; color: #fff; font: 600 14px/1 inherit; min-width: 36px; min-height: 36px; border-radius: 6px; cursor: pointer; }
.vc-b:hover { background: rgba(255,255,255,.15); }
.vc-seek { flex: 1; min-width: 60px; accent-color: #818cf8; }
.vc-t { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vc-s, .vc-q { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; font-size: 12px; padding: 4px; }
.vc-s option, .vc-q option { color: #0f172a; }
.fp-box:fullscreen { border-radius: 0; }
@media (max-width: 520px) { .vc-t { display: none; } .vc [data-j] { display: none; } }
@media (min-width: 641px) { .ftabs button { flex: 1 0 auto; text-align: center; } }
@media (min-width: 900px) { .cards.c2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; } .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
