/* portal.css — /portal marketing page (src-unscripta/portal.html).
 *
 * Loaded only by that page, AFTER ux.css. .pg-* = page chrome; .pd-* = plan tier chips/rings only
 * (the inline product demo was removed — tour lives at /lms-tour).
 *
 * No CSS nesting on purpose: a lot of the audience is on older Android WebViews.
 * The mock product UI is deliberately light-on-white inside a dark "device", in the Unscripta
 * indigo — the same recolour the mirrored portal gets through --maroon.
 */

[data-brand="unscripta"] {
  --pd-free: #1F7A5C;      --pd-free-soft: #E4F4EC;
  --pd-complete: #4B3FD6;  --pd-complete-soft: #EDEBFB;
  --pd-live: #A9670F;      --pd-live-soft: #FBF0DC;
  --pd-bad: #C23B2E;       --pd-bad-soft: #FBE9E6;
  --pd-ev: #FFEFA8;
  --pd-line: #E6E3F0;
  --pd-soft: #F7F6FC;
  --pd-track: #ECEAF6;
}

/* ── page-level layout ──────────────────────────────────────────────────────────────── */

.pg-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.pg-head .ux-lead { margin: 0; }
.pg-disclaimer { margin-top: 28px; max-width: 78ch; }

/* hero: sample result card */
.pg-sample {
  box-sizing: border-box;
  border: 1px solid var(--ux-line-dark);
  border-radius: 22px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  max-width: 480px;
  justify-self: end;
  width: 100%;
}
.pg-sample-tag { font-family: var(--ux-bn); font-size: 14px; color: var(--ux-muted-dark); margin: 0 0 20px; }
.pg-sample-top { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.pg-sample-meta { min-width: 0; }
.pg-sample-meta b { display: block; font: 700 16px var(--ux-sans); color: #fff; }
.pg-sample-meta span { display: block; font: 400 14px var(--ux-sans); color: #C9C5D6; margin-top: 2px; }
.pg-sample-meta em { display: block; font-style: normal; font-family: var(--ux-bn); font-size: 14.5px; line-height: 1.6; color: var(--ux-muted-dark); margin-top: 10px; }
.pg-sample-note { font: 400 14px/1.55 var(--ux-bn); color: var(--ux-muted-dark); margin: 0; }

/* Auto-play device mockup — real student app in a laptop + phone frame; slides are driven by /js/lms-showcase.js (scenes listed there) */
#portal-lmk { --lms-accent: var(--ux-accent); }
.pg-lmk-row {
  margin: 8px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-end;
  justify-content: center;
}
.pg-lmk-laptop { position: relative; flex: 1 1 460px; min-width: 0; max-width: 660px; }
.pg-lmk-badge {
  position: absolute; top: -28px; left: 2px; height: 18px;
  font-family: var(--ux-sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ux-accent);
}
.pg-lmk-badge { white-space: nowrap; }
html:lang(bn) .pg-lmk-badge { letter-spacing: 0; text-transform: none; font-family: var(--ux-bn); font-size: 13.5px; }
.pg-lmk-lidtop {
  background: #1a1824;
  border-radius: 14px 14px 0 0;
  padding: 11px 11px 0;
  box-shadow: 0 24px 55px rgba(14, 13, 18, 0.18);
}
.pg-lmk-dots { display: flex; gap: 6px; padding: 0 6px 10px; }
.pg-lmk-dots span { width: 9px; height: 9px; border-radius: 50%; background: #3a3750; }
.pg-lmk-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: #F3F3F5;
}
.pg-lmk-base {
  height: 13px;
  background: linear-gradient(180deg, #c9c9cf, #e2e2e6);
  border-radius: 0 0 12px 12px;
}
.pg-lmk-notch {
  width: 130px; height: 6px;
  background: #d4d4d9;
  border-radius: 0 0 7px 7px;
  margin: 0 auto;
}
.pg-lmk-phone { flex: 0 1 220px; min-width: 0; max-width: 230px; }
.pg-lmk-phbody {
  width: 100%;
  background: #0E0D12;
  border: 6px solid #1a1824;
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 24px 55px rgba(14, 13, 18, 0.2);
}
.pg-lmk-phscreen {
  position: relative;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border-radius: 22px;
  background: #F3F3F5;
}
.pg-lmk-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

/* Why-this-portal editorial rows */
.pg-why {
  margin-top: 8px;
  border-top: 1px solid var(--ux-line);
}
.pg-why-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--ux-line);
  align-items: start;
}
.pg-why-n {
  font-family: var(--ux-serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  color: var(--ux-accent);
  letter-spacing: 0.02em;
}
.pg-why-row h3 {
  margin: 0 0 10px;
  font-family: var(--ux-bn);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ux-ink);
}
.pg-why-row p {
  margin: 0;
  max-width: 62ch;
  font-family: var(--ux-bn);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ux-muted);
}
@media (max-width: 720px) {
  .pg-why-row { grid-template-columns: 48px minmax(0, 1fr); gap: 12px 18px; padding: 28px 0; }
}

/* ── score ring (hero, result screen) ───────────────────────────────────────────────── */

.pd-ring {
  --p: 80;
  --sz: 112px;
  --ring-fg: var(--ux-accent);
  --ring-bg: var(--pd-track);
  --ring-inner: #fff;
  width: var(--sz);
  height: var(--sz);
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--ring-fg) calc(var(--p) * 1%), var(--ring-bg) 0);
  display: grid;
  place-content: center;
  text-align: center;
  position: relative;
}
.pd-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--ring-inner); }
.pd-ring > * { position: relative; display: block; }
.pd-ring strong { font: 700 34px/1 'Playfair Display', Georgia, serif; color: var(--ux-ink); }
.pd-ring span { font: 700 9.5px var(--ux-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ux-muted); margin-top: 4px; }
.pd-ring--lg { --sz: 156px; }
.pd-ring--lg strong { font-size: 46px; }
.pd-ring--dark { --ring-fg: var(--ux-accent-dark); --ring-bg: rgba(255,255,255,.14); --ring-inner: #17151E; }
.pd-ring--dark strong { color: #fff; }
.pd-ring--dark span { color: var(--ux-muted-dark); }

/* the 40 question squares */
.pd-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.pd-grid > * {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 7px;
  font: 700 11px var(--ux-sans);
}
.pd-grid .ok { background: var(--pd-free-soft); color: var(--pd-free); }
.pd-grid .bad { background: var(--pd-bad-soft); color: var(--pd-bad); }
.pd-grid button.bad { cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.pd-grid button.bad:hover { transform: translateY(-1px); background: #F6CFC9; }
.pd-grid button.bad.on { background: var(--pd-bad); color: #fff; }
.pd-grid--mini .ok { background: rgba(255,255,255,.09); color: rgba(255,255,255,.5); }
.pd-grid--mini .bad { background: rgba(255,130,110,.22); color: #FFB9AD; }

/* ── demo shell: rail + device ──────────────────────────────────────────────────────── */

.pd {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: start;
}
.pd-rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 100px; }
.pd-group {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 6px 6px;
  font: 700 11px var(--ux-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ux-muted);
}
.pd-group:first-child { margin-top: 0; }
.pd-group::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pd-group--free { color: var(--pd-free); }
.pd-group--complete { color: var(--pd-complete); }
.pd-group--live { color: var(--pd-live); }
html[lang="bn"] .pd-group { font-family: var(--ux-bn); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }

.pd-step {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px 11px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ux-text);
  font-family: var(--ux-bn);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.pd-step i {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--ux-line);
  background: #fff;
  color: var(--ux-muted);
  font: 700 13px var(--ux-sans);
  font-style: normal;
}
.pd-step:nth-of-type(-n+2) i { border-color: var(--pd-free); color: var(--pd-free); }
.pd-step:nth-of-type(n+3):nth-of-type(-n+5) i { border-color: var(--pd-complete); color: var(--pd-complete); }
.pd-step:nth-of-type(n+6) i { border-color: var(--pd-live); color: var(--pd-live); }
.pd-step:hover { background: rgba(255,255,255,.75); }
.pd-step.is-on { background: var(--ux-ink); color: #fff; font-weight: 600; }
/* !important: the per-tier nth-of-type colours above out-rank this selector on specificity */
.pd-step.is-on i { background: var(--ux-accent-hi) !important; border-color: transparent !important; color: #fff !important; }

.pd-device {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ux-ink);
  box-shadow: 0 34px 80px -34px rgba(14, 13, 18, .55), 0 0 0 1px rgba(14, 13, 18, .08);
}
.pd-bar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: var(--ux-ink-2); }
.pd-lights { display: inline-flex; gap: 7px; }
.pd-lights i { width: 10px; height: 10px; border-radius: 50%; background: #3A3646; }
.pd-bar-title { font: 500 12.5px var(--ux-sans); color: #A7A2B3; }
.pd-bar-title em {
  font-style: normal;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(179, 171, 255, .16);
  color: var(--ux-accent-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pd-progress { height: 3px; background: rgba(255,255,255,.08); }
.pd-progress b { display: block; width: 0; height: 100%; background: var(--ux-accent-hi); transition: width .12s linear; }

.pd-screens { background: #fff; color: var(--ux-text); font-family: var(--ux-sans); }
.pd-screen[hidden] { display: none !important; }
.pd-screen.is-active { animation: pd-in .35s ease both; }
@keyframes pd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pd-sh { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--pd-line); }
.pd-sh > div:first-child { flex: 1; min-width: 0; }
.pd-sh b { display: block; font-size: 15px; }
.pd-sh small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--ux-muted); }

.pd-chip {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 99px;
  font: 700 11px var(--ux-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
html[lang="bn"] .pd-chip { font-family: var(--ux-bn); font-size: 12.5px; letter-spacing: 0; }
.pd-chip--free { background: var(--pd-free-soft); color: var(--pd-free); }
.pd-chip--complete { background: var(--pd-complete-soft); color: var(--pd-complete); }
.pd-chip--live { background: var(--pd-live-soft); color: var(--pd-live); }

.pd-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  background: var(--pd-soft);
  font: 700 14px var(--ux-sans);
  font-variant-numeric: tabular-nums;
}

.pd-label { margin: 0 0 10px; font: 700 11px var(--ux-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ux-muted); }
.pd-card { border: 1px solid var(--pd-line); border-radius: 16px; padding: 18px; background: #fff; }
.pd-note { margin: 12px 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--pd-soft); font-size: 13px; line-height: 1.6; color: #3B3947; min-height: 64px; }
.pd-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 99px;
  padding: 10px 20px;
  background: var(--ux-accent);
  color: #fff;
  font: 700 13.5px var(--ux-sans);
  cursor: pointer;
  transition: background .18s;
}
.pd-btn:hover { background: var(--ux-accent-hi); }
/* author `display` beats the UA's [hidden] rule, so the elements JS toggles need this spelled out */
.pd-btn[hidden], .pd-fb[hidden] { display: none !important; }
.pd-btn--ghost { background: transparent; color: var(--ux-accent); box-shadow: inset 0 0 0 1px var(--ux-accent); }
.pd-btn--ghost:hover { background: var(--pd-complete-soft); }

/* shared "criterion row / bar row" button used on the writing, speaking and progress screens */
.pd-crit, .pd-bars, .pd-errs, .pd-tasks, .pd-sched { list-style: none; margin: 0; padding: 0; }
.pd-crit, .pd-bars { display: grid; gap: 6px; }
.pd-crit button, .pd-bars button {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 38px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ux-text);
  font: 600 13px var(--ux-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pd-crit button:hover, .pd-bars button:hover { border-color: #CBC6EA; }
.pd-crit button.on, .pd-bars button.on { border-color: var(--ux-accent); background: var(--pd-complete-soft); }
.pd-crit i, .pd-bars i { display: block; height: 6px; border-radius: 99px; background: var(--pd-track); overflow: hidden; }
.pd-crit i b, .pd-bars i b { display: block; height: 100%; border-radius: 99px; background: var(--ux-accent); }
.pd-crit em, .pd-bars em { font-style: normal; font-weight: 800; text-align: right; }
.pd-bars button.weak i b { background: var(--pd-bad); }
.pd-bars button.weak em { color: var(--pd-bad); }
.pd-bars button.weak.on { border-color: var(--pd-bad); background: var(--pd-bad-soft); }

/* ── 1 · timed test ─────────────────────────────────────────────────────────────────── */

.pd-test { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pd-passage { padding: 22px 24px; border-right: 1px solid var(--pd-line); }
.pd-passage h4 { margin: 0 0 12px; font: 700 20px var(--ux-serif); }
.pd-passage p { margin: 0; font-size: 14.5px; line-height: 1.85; color: #2B2933; }
.pd-passage [data-ev] { transition: background .25s, box-shadow .25s; border-radius: 3px; }
.pd-passage [data-ev].ev { background: var(--pd-ev); box-shadow: 0 0 0 3px var(--pd-ev); }
.pd-qs { padding: 22px 24px; }
.pd-inst { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--ux-muted); }
.pd-q { padding: 13px 14px; margin-bottom: 10px; border: 1px solid var(--pd-line); border-radius: 14px; transition: border-color .2s, background .2s; }
.pd-q > p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.pd-q > p:first-of-type > b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; background: var(--pd-soft); font-size: 12px; }
.pd-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-opts button {
  appearance: none;
  padding: 7px 14px;
  border: 1px solid var(--pd-line);
  border-radius: 99px;
  background: #fff;
  color: var(--ux-text);
  font: 600 13px var(--ux-sans);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pd-opts button:hover { border-color: var(--ux-accent); }
.pd-opts button.on { background: var(--ux-accent); border-color: var(--ux-accent); color: #fff; }
.pd-q.is-ok { border-color: #9AD3BC; background: #F3FBF7; }
.pd-q.is-bad { border-color: #F0B5AD; background: #FEF6F5; }
.pd-fb { margin: 10px 0 0 !important; font-size: 13px !important; line-height: 1.6 !important; color: #3B3947; }
.pd-fb b { color: var(--ux-text); }
.pd-q.is-ok .pd-fb b { color: var(--pd-free); }
.pd-q.is-bad .pd-fb b { color: var(--pd-bad); }
.pd-qa { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.pd-score { font-weight: 800; font-size: 14px; }

/* ── 2 · result ─────────────────────────────────────────────────────────────────────── */

.pd-res { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; padding: 24px; }
.pd-res-score { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pd-legend { display: grid; gap: 8px; font-size: 14px; }
.pd-legend li { list-style: none; display: flex; align-items: center; gap: 8px; }
.pd-legend i { width: 10px; height: 10px; border-radius: 3px; }
.pd-legend i.ok { background: var(--pd-free); }
.pd-legend i.bad { background: var(--pd-bad); }
.pd-review { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--pd-line); border-radius: 16px; background: var(--pd-soft); min-height: 250px; }
.pd-review-empty { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ux-muted); }
.pd-rv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pd-rv-head b { font-size: 14px; }
.pd-rv-head span { font-size: 11.5px; font-weight: 700; color: var(--ux-muted); }
.pd-rv-q { margin: 0 0 12px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.pd-rv-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pd-rv-ans > div { padding: 9px 12px; border-radius: 10px; min-width: 0; }
.pd-rv-ans small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.pd-rv-ans b { display: block; font-size: 13.5px; margin-top: 2px; overflow-wrap: anywhere; }
.pd-rv-ans .bad { background: var(--pd-bad-soft); color: var(--pd-bad); }
.pd-rv-ans .ok { background: var(--pd-free-soft); color: var(--pd-free); }
.pd-rv-line { margin: 0 0 10px; padding: 0 0 0 12px; border-left: 3px solid #E0B72B; font-size: 13.5px; line-height: 1.6; }
.pd-rv-line small { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ux-muted); }
.pd-rv-line mark { background: var(--pd-ev); color: inherit; padding: 1px 4px; border-radius: 3px; }
.pd-rv-line--none { border-left-color: #C9C5D6; color: var(--ux-muted); }
.pd-rv-why { margin: 0; font-size: 13px; line-height: 1.6; color: #3B3947; }

/* ── 3 · writing ────────────────────────────────────────────────────────────────────── */

.pd-w { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pd-essay { padding: 22px 24px; border-right: 1px solid var(--pd-line); font-size: 14.5px; line-height: 1.85; color: #2B2933; }
.pd-essay p { margin: 0 0 14px; }
.pd-prompt { padding: 12px 14px; border-radius: 12px; background: var(--pd-soft); font-size: 13px !important; line-height: 1.55 !important; color: var(--ux-muted) !important; }
.pd-essay mark { background: transparent; color: inherit; border-bottom: 2px dotted var(--ux-accent); transition: background .2s; }
.pd-essay mark.hot { background: var(--pd-ev); border-bottom-color: #B8860B; border-radius: 3px; }
.pd-mark { padding: 22px 24px; }
.pd-overall { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pd-overall strong { font: 700 46px/1 'Playfair Display', Georgia, serif; color: var(--ux-accent); }
.pd-overall span { font-size: 12.5px; font-weight: 600; color: var(--ux-muted); }
.pd-errs { display: grid; gap: 6px; }
.pd-errs button {
  appearance: none;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ux-text);
  font: 500 13px/1.5 var(--ux-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pd-errs button:hover { border-color: #CBC6EA; }
.pd-errs button.on { border-color: #B8860B; background: #FFF9E0; }

/* ── 4 · speaking ───────────────────────────────────────────────────────────────────── */

.pd-sp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pd-sp-left { padding: 22px 24px; border-right: 1px solid var(--pd-line); }
.pd-cue { padding: 14px 16px; border: 1px solid var(--pd-line); border-radius: 14px; background: var(--pd-soft); }
.pd-cue b { display: block; font-size: 15px; }
.pd-cue small { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.55; color: var(--ux-muted); }
.pd-wave { position: relative; display: flex; align-items: center; gap: 3px; height: 64px; margin: 18px 0; }
.pd-wave i { flex: 1; min-width: 2px; border-radius: 99px; background: #CFCBEA; }
.pd-screen.is-active .pd-wave::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--ux-accent);
  animation: pd-sweep 6s linear infinite;
}
@keyframes pd-sweep { to { left: 100%; } }
.pd-transcript { margin: 0; font-size: 14px; line-height: 1.8; color: #3B3947; }

/* ── 5 · progress ───────────────────────────────────────────────────────────────────── */

.pd-pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; padding: 22px 24px; }
.pd-trend { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pd-trend strong { font: 700 42px/1 'Playfair Display', Georgia, serif; color: var(--ux-accent); }
.pd-trend span { font-size: 12.5px; font-weight: 700; color: var(--pd-free); }
.pd-chart svg { display: block; overflow: visible; }
.pd-chart .g { stroke: var(--pd-track); stroke-width: 1; }
.pd-chart .t { font: 600 10px var(--ux-sans); fill: #8C87A0; }
.pd-chart .t.c { text-anchor: middle; }
.pd-chart .a { fill: rgba(75, 63, 214, .09); }
.pd-chart .l { fill: none; stroke: var(--ux-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pd-chart .p { fill: #fff; stroke: var(--ux-accent); stroke-width: 2; }
.pd-chart .p.last { fill: var(--ux-accent); }
.pd-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px dashed var(--ux-accent); border-radius: 14px; background: var(--pd-complete-soft); }
.pd-next small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ux-muted); }
.pd-next b { display: block; margin-top: 2px; font-size: 13.5px; }

/* ── 6 · today's plan ───────────────────────────────────────────────────────────────── */

.pd-day { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-areas: "s p" "s f"; gap: 16px; padding: 22px 24px; }
.pd-streak { grid-area: s; display: flex; flex-direction: column; justify-content: center; padding: 20px 18px; border-radius: 16px; background: var(--ux-ink); color: #fff; }
.pd-streak strong { font: 700 60px/1 'Playfair Display', Georgia, serif; }
.pd-streak span { margin-top: 8px; font-size: 13px; line-height: 1.4; color: #C9C5D6; }
.pd-streak small { color: var(--ux-muted-dark); }
.pd-card--plan { grid-area: p; }
.pd-card--focus { grid-area: f; background: var(--pd-live-soft); border-color: #F0DBB0; }
.pd-card--focus small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pd-live); }
.pd-card--focus b { display: block; margin: 4px 0 6px; font-size: 16px; }
.pd-card--focus p { margin: 0; font-size: 13px; line-height: 1.6; color: #3B3947; }
.pd-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pd-plan-head .pd-label { margin: 0; }
.pd-plan-head span { font-size: 12.5px; font-weight: 700; color: var(--ux-accent); }
.pd-meter { height: 6px; margin-top: 8px; border-radius: 99px; background: var(--pd-track); overflow: hidden; }
.pd-meter b { display: block; height: 100%; border-radius: 99px; background: var(--ux-accent); transition: width .3s ease; }
.pd-tasks { display: grid; gap: 4px; margin-top: 12px; }
.pd-tasks label { display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-size: 14px; cursor: pointer; }
.pd-tasks input { width: 18px; height: 18px; flex: none; accent-color: var(--ux-accent); cursor: pointer; }
.pd-tasks input:checked + span { color: var(--ux-muted); text-decoration: line-through; }

/* ── 7 · live classes + tests ───────────────────────────────────────────────────────── */

.pd-live { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; padding: 22px 24px; }
.pd-next-class {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--ux-ink), #2A2470);
  color: #fff;
}
.pd-next-class small { grid-column: 1; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ux-accent-dark); }
.pd-next-class b { grid-column: 1; margin-top: 3px; font: 700 26px/1.2 'Playfair Display', Georgia, serif; }
.pd-next-class p { grid-column: 1; margin: 4px 0 0; font-size: 13.5px; color: #C9C5D6; }
.pd-next-class .pd-btn { grid-column: 2; grid-row: 1 / span 3; background: #fff; color: var(--ux-ink); cursor: default; }
.pd-sched { display: grid; }
.pd-sched li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--pd-line); font-size: 13.5px; }
.pd-sched li:last-child { border-bottom: 0; }
.pd-sched time { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ux-muted); }
.pd-sched em { font-style: normal; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.pd-sched em.live { background: var(--pd-live-soft); color: var(--pd-live); }
.pd-sched em.test { background: var(--pd-complete-soft); color: var(--pd-complete); }
.pd-card--result .pd-note { min-height: 0; margin-bottom: 0; }

/* ── captions + controls under the device ───────────────────────────────────────────── */

.pd-caps { margin-top: 28px; }
.pd-cap h3 { margin: 0 0 12px; font: 700 clamp(22px, 2.4vw, 29px)/1.25 var(--ux-serif); color: var(--ux-ink); }
.pd-cap p { margin: 0 0 12px; max-width: 66ch; font-family: var(--ux-bn); font-size: 17px; line-height: 1.75; color: var(--ux-muted); }
.pd-cap p.pd-try { font-weight: 600; color: var(--ux-accent); }
.pd-cap .pd-try .ux-link { color: var(--ux-accent); text-decoration-color: currentColor; }
.pd-cap[hidden] { display: none; }
.pd-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.pd-arrow {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ux-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ux-ink);
  font-size: 18px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pd-arrow:hover:not(:disabled) { background: var(--ux-ink); border-color: var(--ux-ink); color: #fff; }
.pd-arrow:disabled { opacity: .35; cursor: default; }
.pd-count { font: 600 14px var(--ux-sans); color: var(--ux-muted); font-variant-numeric: tabular-nums; }

.pd button:focus-visible, .pd input:focus-visible, .pg-faq summary:focus-visible, .pg-plan a:focus-visible {
  outline: 2px solid var(--ux-accent-hi);
  outline-offset: 2px;
}

/* ── plans ──────────────────────────────────────────────────────────────────────────── */

.pg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pg-plan { display: flex; flex-direction: column; padding: 32px 30px 30px; border: 1px solid var(--ux-line); border-radius: 22px; background: #fff; }
.pg-plan--main { background: var(--ux-ink); border-color: var(--ux-ink); color: #fff; }
.pg-plan-name { margin: 0 0 18px; }
.pg-plan-price { margin: 0; font: 700 clamp(26px, 2.6vw, 32px)/1.2 var(--ux-serif); color: inherit; }
.pg-plan-alt { margin: 6px 0 0; font-family: var(--ux-bn); font-size: 15px; color: var(--ux-muted-dark); }
.pg-plan-for { margin: 16px 0 22px; font-family: var(--ux-bn); font-size: 16px; line-height: 1.65; color: var(--ux-muted); }
.pg-plan--main .pg-plan-for { color: var(--ux-muted-dark); }
.pg-plan-plus { margin: 0 0 12px; padding-top: 20px; border-top: 1px solid var(--ux-line); font-family: var(--ux-bn); font-size: 14px; font-weight: 700; color: var(--ux-accent); }
.pg-plan--main .pg-plan-plus { border-top-color: var(--ux-line-dark); color: var(--ux-accent-dark); }
.pg-plan > .pg-list:first-of-type { border-top: 1px solid var(--ux-line); padding-top: 20px; }
.pg-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; }
.pg-list li { position: relative; padding-left: 26px; font-family: var(--ux-bn); font-size: 16px; line-height: 1.55; }
.pg-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--pd-free); }
.pg-plan--main .pg-list li::before { color: var(--ux-accent-dark); }
.pg-plan-btn { margin-top: auto; justify-content: center; }
.pg-plan--main .pg-plan-btn { background: var(--ux-bone); color: var(--ux-ink); }
.pg-plan--main .pg-plan-btn:hover { background: #fff; color: var(--ux-ink); }
.pg-plan--main .ux-fine { margin: 16px 0 0; color: var(--ux-muted-dark); }
.pg-plan--main .pd-chip--complete { background: rgba(179, 171, 255, .18); color: var(--ux-accent-dark); }

/* ── /online-ielts private batch ──────────────────────────────────────────────────────── */

.oi-free-panel {
  max-width: 52rem;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--ux-line);
  border-radius: 28px;
  background: linear-gradient(165deg, #fff 0%, var(--ux-bone) 100%);
  box-shadow: 0 24px 60px rgba(14, 13, 18, .06);
}
.oi-free-panel .ux-h2 { margin-bottom: 14px; }
.oi-free-meta {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.oi-free-meta li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-family: var(--ux-bn);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ux-text);
}
.oi-free-meta b { color: var(--ux-muted); font-weight: 600; font-size: 14px; }

.oi-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.oi-stat-grid div {
  padding: 28px 20px;
  border-top: 1px solid var(--ux-line);
  text-align: center;
}
.oi-stat-grid strong {
  display: block;
  font: 700 clamp(36px, 4vw, 48px)/1 var(--ux-serif);
  color: var(--ux-ink);
  letter-spacing: -.03em;
}
.oi-stat-grid span {
  display: block;
  margin-top: 10px;
  font-family: var(--ux-bn);
  font-size: 14.5px;
  color: var(--ux-muted);
}
.oi-fees { margin-top: 36px; }
.oi-fees.pg-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .oi-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oi-free-meta li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 720px) {
  .oi-fees.pg-plans { grid-template-columns: 1fr; max-width: 420px; }
}

/* ── /register — BC & IDP official benefits (full-width, explicit) ─────────────────────── */

.rg-provider {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 4vw, 48px) 0 0;
  border-top: 1px solid var(--ux-line);
}
.rg-provider:first-of-type { margin-top: 48px; }
.rg-provider-head { max-width: 46rem; margin: 0 0 clamp(28px, 4vw, 40px); }
.rg-provider-tag {
  margin: 0 0 10px;
  font-family: var(--ux-bn);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ux-accent);
}
.rg-provider-name {
  margin: 0 0 14px;
  font: 700 clamp(32px, 4.2vw, 48px)/1.1 var(--ux-serif);
  color: var(--ux-ink);
  letter-spacing: -.02em;
}
.rg-provider-lead {
  margin: 0;
  font-family: var(--ux-bn);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--ux-muted);
}
.rg-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ux-line);
  border-left: 1px solid var(--ux-line);
}
.rg-benefit {
  padding: clamp(22px, 3vw, 32px) clamp(20px, 2.5vw, 28px);
  border-right: 1px solid var(--ux-line);
  border-bottom: 1px solid var(--ux-line);
  background: #fff;
}
.rg-benefit strong {
  display: block;
  margin: 0 0 10px;
  font-family: var(--ux-bn);
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ux-ink);
}
.rg-benefit p {
  margin: 0;
  font-family: var(--ux-bn);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ux-muted);
}
.rg-provider-src { margin: 18px 0 0 !important; }

@media (max-width: 720px) {
  .rg-benefit-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ────────────────────────────────────────────────────────────────────────────── */

.pg-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pg-faq details { border-bottom: 1px solid var(--ux-line); }
.pg-faq details:first-child { border-top: 1px solid var(--ux-line); }
.pg-faq summary { position: relative; padding: 22px 44px 22px 0; list-style: none; cursor: pointer; font-family: var(--ux-bn); font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ux-ink); }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 28px/1 var(--ux-sans); color: var(--ux-accent); transition: transform .2s ease; }
.pg-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pg-faq details p { margin: 0 0 24px; max-width: 62ch; font-family: var(--ux-bn); font-size: 17px; line-height: 1.75; color: var(--ux-muted); }

/* ── wide desktop: stack every screen and caption in one grid cell ──────────────────────
 * The container takes the height of the TALLEST one, so switching steps never makes the
 * page jump. Below this width the natural (hidden = display:none) flow is kept, because on a
 * phone the extra blank space under a short screen would look broken. */
@media (min-width: 1081px) {
  .pd-screens, .pd-caps-stack { display: grid; }
  .pd-screen, .pd-screen[hidden] { grid-area: 1 / 1; min-width: 0; display: block !important; }
  .pd-screen[hidden] { visibility: hidden; pointer-events: none; }
  .pd-caps { display: grid; }
  .pd-cap, .pd-cap[hidden] { grid-area: 1 / 1; display: block; }
  .pd-cap[hidden] { visibility: hidden; pointer-events: none; }
  .pd-ctrl { grid-area: 2 / 1; }
}

/* ── tablet + phone ─────────────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .pd { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pd-rail {
    position: static;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .pd-rail::-webkit-scrollbar { display: none; }
  .pd-group { display: none; }
  .pd-step { flex: none; width: auto; white-space: nowrap; scroll-snap-align: center; background: #fff; border-color: var(--ux-line); padding: 8px 16px 8px 8px; }
  .pd-step:hover { background: #fff; }
  .pd-step.is-on { background: var(--ux-ink); border-color: var(--ux-ink); }
  .pd-caps { margin-top: 22px; }
  .pg-head, .pg-faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .pg-plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .pg-sample { justify-self: start; }
}

@media (max-width: 860px) {
  .pd-test, .pd-w, .pd-sp, .pd-pr, .pd-res { grid-template-columns: minmax(0, 1fr); }
  .pd-passage, .pd-essay, .pd-sp-left { border-right: 0; border-bottom: 1px solid var(--pd-line); }
  .pd-res { gap: 20px; }
  .pd-res-score { flex-direction: row; justify-content: center; gap: 28px; }
  .pd-review { min-height: 0; }
  .pd-live { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .pd-sh { padding: 14px 16px; }
  .pd-passage, .pd-qs, .pd-essay, .pd-mark, .pd-sp-left, .pd-res, .pd-pr, .pd-day, .pd-live { padding: 16px; }
  .pd-day { grid-template-columns: minmax(0, 1fr); grid-template-areas: "s" "p" "f"; }
  .pd-streak { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; }
  .pd-streak strong { font-size: 44px; }
  .pd-streak span { margin-top: 0; }
  .pd-crit button, .pd-bars button { grid-template-columns: minmax(0, 1fr) 60px 34px; gap: 8px; padding: 9px 10px; }
  .pd-next-class { grid-template-columns: minmax(0, 1fr); }
  .pd-next-class .pd-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 14px; }
  .pd-rv-ans { grid-template-columns: minmax(0, 1fr); }
  .pd-ring--lg { --sz: 130px; }
  .pd-ring--lg strong { font-size: 38px; }
  .pd-bar-title em { display: none; }
  .pg-sample { padding: 22px 20px; }
  .pg-plan { padding: 26px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-screen.is-active { animation: none; }
  .pd-screen.is-active .pd-wave::after { animation: none; left: 38%; }
  .pd-progress b, .pd-meter b, .pd-step, .pd-grid button.bad { transition: none; }
}
