/* ==========================================================
   PrepReap — "The marked-up paper" design system (prototype)
   ========================================================== */

:root {
  --paper: #FBF8F1;
  --paper-deep: #F3EEE2;
  --sheet: #FFFDF8;
  --ink: #1F2B5C;
  --ink-soft: #4A5580;
  --graphite: #2A2A2A;
  --muted: #5F6580; /* 4.5:1+ on the cream sheet (was #767C93, ~4:1) */
  --hl: 255, 224, 77;            /* highlighter (rgb) */
  --redpen: #D23B2C;
  --rule: #D6E3F3;
  --margin: #F0B7B0;
  --success: #2F7D4F;
  --partial: #8A5A00;            /* half-marks on a checked answer */
  --mint: #DCEFE3;
  --blush: #FBE1D9;
  --sky: #E2ECF8;
  --line: rgba(31, 43, 92, .14);
  --shadow: 0 1px 0 rgba(31, 43, 92, .05), 0 22px 44px -26px rgba(31, 43, 92, .38);
  --shadow-sm: 0 1px 0 rgba(31, 43, 92, .05), 0 10px 22px -16px rgba(31, 43, 92, .35);
  --radius: 14px;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
  --hl-a3: .92; --hl-a2: .55; --hl-a1: .26; --hl-a0: 0;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.17 0 0 0 0 0.36 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Late-night mode = chalkboard */
body.night {
  --paper: #1D2923;
  --paper-deep: #233229;
  --sheet: #24332B;
  --ink: #F1EEE4;
  --ink-soft: #C2C9BD;
  --graphite: #ECE9DF;
  --muted: #9AA597;
  --hl: 243, 211, 74;
  --redpen: #FF8E7C;
  --rule: rgba(255, 255, 255, .06);
  --margin: rgba(255, 142, 124, .35);
  --line: rgba(241, 238, 228, .16);
  --success: #7FD3A2;            /* readable green ticks on the chalkboard */
  --partial: #F3D34A;
  --mint: #2B4236; --blush: #3E3230; --sky: #283A40;
  --shadow: 0 22px 44px -26px rgba(0, 0, 0, .7);
  --shadow-sm: 0 10px 22px -16px rgba(0, 0, 0, .7);
  --hl-a3: .42; --hl-a2: .26; --hl-a1: .13;
}

* { box-sizing: border-box; }
/* `clip`, not `hidden`: hidden on both html and body makes body its own scroll box, and every
   position:sticky element (header, exam timer, legal contents) then never sticks. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  max-width: 100vw;
  background: var(--paper) var(--noise);
  color: var(--graphite);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
img, svg { display: block; }
a { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(var(--hl), 1); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "opsz" 96;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0;
}
h1 { font-size: clamp(44px, 8.4vw, 84px); font-weight: 650; }
h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 620; }
h3 { font-size: 22px; font-weight: 600; font-variation-settings: "SOFT" 100, "opsz" 30; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.hand { font-family: var(--f-hand); }
.red { color: var(--redpen); }

/* ---------- Prototype ribbon ---------- */
.proto-ribbon {
  background: repeating-linear-gradient(-45deg, rgba(var(--hl), .95) 0 14px, rgba(var(--hl), .75) 14px 28px);
  color: #2b2b2b;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: .01em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .4s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 66px; }
.logo {
  font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 40;
  font-weight: 700; font-size: 27px; letter-spacing: -.03em;
  text-decoration: none; color: var(--ink); display: inline-flex; align-items: flex-start; gap: 1px;
  flex-shrink: 0;
}
.logo svg { width: 15px; height: 15px; color: var(--redpen); margin-top: 2px; transform: rotate(12deg); }
/* The name, explained like a teacher's margin note: on hover/focus on desktop, and once per
   visit on touch screens (app.js), never as a banner */
.logo { position: relative; }
.logo .logo-note {
  position: absolute; left: 4px; top: calc(100% - 2px);
  font-family: var(--f-hand); font-weight: 700; font-size: 14px; letter-spacing: .01em;
  color: var(--redpen); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(-4px) rotate(-2deg); transition: opacity .25s ease, transform .25s ease;
}
.logo:hover .logo-note, .logo:focus-visible .logo-note, .logo.say-name .logo-note { opacity: 1; transform: translateY(0) rotate(-2deg); }
@media (prefers-reduced-motion: reduce) { .logo .logo-note { transition: none; } }
/* "Prep / Repeat / Reap" labels on the three "inside a pack" cards */
.step-word {
  display: inline-block; margin-bottom: 4px;
  font-family: var(--f-hand); font-weight: 700; font-size: 20px; color: var(--redpen); transform: rotate(-2deg);
}
.nav { display: flex; gap: 18px; margin-left: 8px; flex-wrap: nowrap; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: underline wavy rgba(var(--hl), 1) 2px; text-underline-offset: 6px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.night-toggle {
  border: 1.5px solid var(--line); background: transparent; border-radius: 999px;
  padding: 6px 12px; font-size: 14px; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center;
  white-space: nowrap; flex-shrink: 0;
}
.night-toggle svg { width: 16px; height: 16px; }
.night-toggle:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --bshadow: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 650; font-size: 17px; text-decoration: none;
  color: #1F2B5C;
  background: rgb(var(--hl));
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 13px 22px;
  box-shadow: 3px 3px 0 var(--bshadow);
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
body.night .btn { color: #1D2923; border-color: #1D2923; --bshadow: rgba(var(--hl), .45); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--bshadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--bshadow); }
.btn svg { width: 20px; height: 20px; }
.btn-ghost { background: var(--sheet); color: var(--ink); }
body.night .btn-ghost { color: var(--ink); border-color: var(--ink); }
.btn-small { padding: 7px 14px; font-size: 15px; border-radius: 11px; box-shadow: 2px 2px 0 var(--bshadow); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Hand-drawn bits ---------- */
.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .draw path, .draw.in path { animation: draw .9s cubic-bezier(.6, .1, .3, 1) forwards; }
.draw path + path { animation-delay: .5s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.squiggle { position: relative; font-style: normal; white-space: nowrap; display: inline-block; }
.squiggle svg { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; color: var(--redpen); }
.circled { position: relative; display: inline-block; white-space: nowrap; }
.circled > svg { position: absolute; left: -14%; top: -28%; width: 128%; height: 156%; overflow: visible; color: var(--redpen); pointer-events: none; }

.hl {
  background-image: linear-gradient(100deg,
    rgba(var(--hl), 0) .6%,
    rgba(var(--hl), var(--a, .9)) 2.2%,
    rgba(var(--hl), calc(var(--a, .9) * .82)) 50%,
    rgba(var(--hl), var(--a, .9)) 96%,
    rgba(var(--hl), 0) 99%);
  background-repeat: no-repeat;
  background-size: 0% 78%;
  background-position: 0 70%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .2em; margin: 0 -.2em;
  border-radius: .35em .15em .4em .2em;
  transition: background-size .7s cubic-bezier(.6, .1, .3, 1);
}
.in .hl, .hl.in { background-size: 100% 78%; }

.sticker {
  display: inline-block;
  font-family: var(--f-hand); font-weight: 700; font-size: 16px; line-height: 1.25;
  color: var(--ink);
  background: var(--blush);
  padding: 4px 12px 3px;
  border-radius: 6px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-sm);
}
.tape {
  position: absolute; width: 110px; height: 28px; z-index: 3;
  background: repeating-linear-gradient(90deg, rgba(var(--hl), .55) 0 8px, rgba(var(--hl), .38) 8px 16px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  backdrop-filter: blur(1px);
}
.tape.t-left { top: -12px; left: 34px; transform: rotate(-6deg); }
.tape.t-right { top: -12px; right: 40px; transform: rotate(5deg); }
.tape.blue { background: repeating-linear-gradient(90deg, rgba(150, 190, 235, .5) 0 8px, rgba(150, 190, 235, .32) 8px 16px); }

.kicker-hand {
  font-family: var(--f-hand); color: var(--redpen); font-size: 20px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; transform: rotate(-1.5deg);
}
.kicker-hand svg { width: 46px; height: 24px; transform: scaleY(-1) rotate(8deg); }

/* ---------- Paper sheet ---------- */
.sheet {
  position: relative;
  background: var(--sheet);
  border-radius: 6px 6px 10px 8px;
  box-shadow: var(--shadow);
  padding: 26px 24px 24px 58px;
  transition: background-color .4s ease;
}
.sheet::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 40px;
  border-left: 1.5px solid var(--margin);
}
.sheet.ruled {
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  background-position: 0 14px;
}
.sheet.no-margin { padding-left: 24px; }
.sheet.no-margin::before { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 54px 0 72px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: start; }
.hero .wrap > *, .how-grid > *, .proof-grid > *, .parents-grid > *, .get-grid > *, .price-grid > *, .report .wrap > * { min-width: 0; }
.hero-copy { padding-top: 22px; }
.hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-meta .plain { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.hero h1 { margin-bottom: 22px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }

.picker {
  background: var(--sheet); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: var(--shadow-sm); max-width: 520px;
}
.picker-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.seg { display: inline-flex; background: var(--paper-deep); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.seg button {
  border: 0; background: transparent; padding: 7px 16px; border-radius: 9px; font-weight: 650; color: var(--ink-soft); font-size: 15px;
  min-height: 44px; /* thumb-sized tap target */
}
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 43, 92, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
  min-height: 44px;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.chip:hover { border-color: var(--ink-soft); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* Pricing: the ₹79 card's subject buttons, under its class switch */
.chips.single-subjects { gap: 6px; margin: -4px 0 16px; }
.chips.single-subjects .chip { padding-top: 6px; padding-bottom: 6px; }
/* Unlock links inside locked heatmap rows were 23 px tall */
.locked-row .link-btn { min-height: 44px; display: inline-flex; align-items: center; }
/* Before payments open (unlock dialog, pricing note, parent pay page) */
.prelaunch-note { margin: 14px 0 16px; }
.inapp-note p { margin: 0 0 12px; }
.redpen-examples { margin: 0 0 12px; }
.redpen-examples summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); min-height: 44px; display: flex; align-items: center; }
.pay-seller { margin-top: 16px; text-align: center; }
.micro { font-size: 14px; color: var(--muted); margin: 14px 2px 0; display: flex; gap: 14px; flex-wrap: wrap; }
.micro span { display: inline-flex; align-items: center; gap: 5px; }
.micro svg { width: 15px; height: 15px; color: var(--success); }

/* Countdown sticker */
.countdown {
  position: absolute; right: -14px; top: -26px; z-index: 5;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--sheet); box-shadow: var(--shadow-sm);
  display: grid; place-content: center; text-align: center;
  transform: rotate(8deg);
  font-family: var(--f-hand); color: var(--ink); line-height: 1.05;
  border: 2px dashed rgba(210, 59, 44, .45);
}
.countdown b { display: block; font-size: 34px; color: var(--redpen); font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 700; }
.countdown span { font-size: 14px; }

/* Forecast card (heatmap) */
.hero-paper { position: relative; }
.forecast-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 4px; padding-right: 92px; }
.forecast-head h3 { font-size: 21px; }
.forecast-sub { font-size: 14px; color: var(--muted); margin: 2px 0 14px; padding-right: 92px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.legend i { display: inline-block; width: 22px; height: 10px; border-radius: 3px 1px 4px 2px; margin-right: 5px; vertical-align: -1px; }

.ch-list { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.ch { border-bottom: 1px dashed var(--line); }
.ch:last-child { border-bottom: 0; }
.ch-btn {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 8px 10px; align-items: center;
  background: none; border: 0; text-align: left; padding: 10px 2px; position: relative;
}
.ch-no { font-family: var(--f-hand); color: var(--muted); font-size: 15px; position: absolute; left: -46px; top: 11px; width: 34px; text-align: right; }
.ch-name { font-weight: 600; color: var(--ink); font-size: 16px; line-height: 1.35; grid-column: 1 / 3; }
.ch[data-tier="0"] .ch-name { color: var(--muted); font-weight: 500; }
.ch[data-tier="3"] .hl { --a: var(--hl-a3); }
.ch[data-tier="2"] .hl { --a: var(--hl-a2); }
.ch[data-tier="1"] .hl { --a: var(--hl-a1); }
.ch[data-tier="0"] .hl { --a: var(--hl-a0); }
.ch-right { display: flex; align-items: center; gap: 10px; }
.stars { display: inline-flex; gap: 1px; color: var(--redpen); min-width: 48px; justify-content: flex-end; }
.stars svg { width: 15px; height: 15px; }
.stars svg.off { opacity: .14; }
.ch-marks { font-family: var(--f-hand); color: var(--ink-soft); font-size: 15px; min-width: 64px; text-align: right; white-space: nowrap; }
.ch-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.ch.open .ch-chev { transform: rotate(180deg); }
.ch-btn:hover .ch-name { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }

.ch-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.ch.open .ch-drawer { grid-template-rows: 1fr; }
.ch-drawer > div { overflow: hidden; }
.drawer-inner { padding: 2px 0 14px; }
.drawer-why { font-family: var(--f-hand); font-size: 17px; color: var(--ink); line-height: 1.45; margin: 0 0 10px; }
.drawer-why b { color: var(--redpen); font-weight: 700; }
.locked-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--paper-deep); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; color: var(--ink-soft);
}
.locked-row svg { width: 16px; height: 16px; display: inline; vertical-align: -3px; margin-right: 4px; }
.blur-line { display: inline-block; height: 9px; border-radius: 4px; background: var(--line); vertical-align: middle; }

/* Sits under the heatmap sheet (it used to overlap the bottom ★★★ rows on desktop) */
.note-sticky {
  position: relative; z-index: 6; margin: -14px 0 0 auto; width: 230px;
  background: var(--mint); color: var(--ink);
  font-family: var(--f-hand); font-size: 17px; line-height: 1.35;
  padding: 16px 16px 18px; transform: rotate(-3.5deg);
  box-shadow: var(--shadow-sm);
  border-radius: 2px 2px 14px 2px;
}
.note-sticky b { color: var(--redpen); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 92px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { font-size: 19px; color: var(--ink-soft); margin-top: 16px; }
.band { background: var(--paper-deep); }
body.night .band { background: #192219; }

/* How we know */
.how-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.qcard { padding-top: 34px; padding-bottom: 34px; }
.qmeta { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; }
.qtext { font-family: var(--f-display); font-variation-settings: "SOFT" 50, "opsz" 14; font-size: 19.5px; color: var(--graphite); line-height: 1.55; margin: 0; }
.qtext .marks { float: right; font-family: var(--f-body); font-weight: 700; font-size: 15px; color: var(--ink-soft); margin-left: 10px; }
.annos { margin-top: 26px; display: grid; gap: 12px; }
.anno { display: flex; gap: 10px; align-items: flex-start; font-family: var(--f-hand); color: var(--redpen); font-size: 18px; line-height: 1.35; }
.anno svg { flex: 0 0 34px; width: 34px; height: 20px; margin-top: 4px; }
.verdict {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); background: rgba(var(--hl), .55); padding: 6px 12px; border-radius: 8px;
}
.verdict .stars { min-width: 0; }

.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.reasons li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.reasons .num { font-family: var(--f-hand); font-size: 30px; color: var(--redpen); line-height: 1; font-weight: 700; }
.reasons h3 { font-size: 19px; margin-bottom: 4px; }
.reasons p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* Proof */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.oldpaper { font-family: var(--f-display); font-variation-settings: "SOFT" 30, "opsz" 12; font-size: 16px; color: var(--graphite); }
.oldpaper .ph { text-align: center; border-bottom: 1.5px solid var(--graphite); padding-bottom: 10px; margin-bottom: 12px; }
.oldpaper .ph b { display: block; font-size: 17px; letter-spacing: .04em; }
.oldpaper .ph small { font-family: var(--f-body); color: var(--muted); }
.oq { display: grid; grid-template-columns: 38px 1fr 44px; gap: 6px; padding: 9px 0; position: relative; align-items: start; }
.oq .n { font-weight: 700; }
.oq .m { text-align: right; font-family: var(--f-body); font-size: 14px; color: var(--muted); }
.oq.hit::after {
  content: "✓"; position: absolute; right: -36px; top: 4px;
  font-family: var(--f-hand); color: var(--redpen); font-size: 24px; font-weight: 700;
}
.oq.hit .txt { position: relative; }
.oq .ring { position: absolute; inset: -6px -10px; width: calc(100% + 20px); height: calc(100% + 12px); overflow: visible; color: var(--redpen); pointer-events: none; }
.big-stat { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: clamp(76px, 12vw, 128px); font-weight: 700; color: var(--redpen); line-height: .9; }
.big-stat small { font-size: .3em; color: var(--ink); font-weight: 600; margin-left: 6px; }
.honest {
  margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--redpen);
  background: var(--sheet); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--ink-soft);
}

/* What you get */
.get-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.get-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease; }
.get-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.get-card:nth-child(2):hover { transform: translateY(-4px) rotate(.4deg); }
.get-art { height: 190px; position: relative; background: var(--paper-deep); overflow: hidden; border-bottom: 1px solid var(--line); }
.get-body { padding: 22px 22px 24px; }
.get-body h3 { margin-bottom: 8px; }
.get-body p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.mini-sheet { position: absolute; background: var(--sheet); border-radius: 4px; box-shadow: var(--shadow-sm); padding: 14px; }
.mini-line { height: 7px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.mini-line.hl3 { background: rgba(var(--hl), .9); }
.mini-line.hl2 { background: rgba(var(--hl), .5); }

/* Triage */
.triage-tabs { display: inline-flex; gap: 6px; background: var(--sheet); padding: 6px; border-radius: 16px; box-shadow: var(--shadow-sm); margin-bottom: 26px; flex-wrap: wrap; }
.triage-tabs button {
  border: 0; background: transparent; padding: 10px 18px; border-radius: 11px; font-weight: 700; color: var(--ink-soft); font-size: 16px;
}
.triage-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.plan-block { padding: 20px 20px 18px 50px; animation: rise .35s ease both; }
.plan-block::before { left: 32px; }
.plan-block h4 { margin: 0 0 8px; font-family: var(--f-hand); color: var(--redpen); font-size: 21px; font-weight: 700; }
.plan-block ul { margin: 0; padding: 0; list-style: none; }
.plan-block li { position: relative; padding-left: 4px; margin-bottom: 7px; font-size: 15.5px; color: var(--graphite); line-height: 1.45; }
.plan-block li::before { content: "–"; position: absolute; left: -14px; color: var(--muted); }
.plan-note { margin-top: 20px; font-family: var(--f-hand); font-size: 19px; color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Parents */
.parents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.phone {
  width: min(340px, 100%); margin-inline: auto; background: #0F1A14; border-radius: 34px; padding: 12px;
  box-shadow: var(--shadow); transform: rotate(2deg);
}
.phone-screen { background: #EFE7DC; border-radius: 24px; overflow: hidden; }
.phone-top { background: #1F3A2E; color: #fff; padding: 14px 16px; display: flex; gap: 10px; align-items: center; font-size: 15px; }
.phone-top .av { width: 34px; height: 34px; border-radius: 50%; background: rgb(var(--hl)); color: #1F2B5C; display: grid; place-content: center; font-family: var(--f-display); font-weight: 700; }
.phone-top small { display: block; opacity: .7; font-size: 12px; }
.chat { padding: 16px 12px 20px; display: grid; gap: 8px; }
.bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px 6px; font-size: 14px; line-height: 1.45; color: #1d1d1d; max-width: 92%; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.bubble.me { background: #DCF5D5; justify-self: end; border-radius: 14px 4px 14px 14px; }
.bubble time { display: block; text-align: right; font-size: 11px; color: #8a8a8a; margin-top: 2px; }
.bubble b { font-weight: 700; }
.up { color: #1f7a3f; font-weight: 700; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price { padding: 28px 24px 26px; display: flex; flex-direction: column; }
.price.featured { outline: 2.5px solid var(--ink); transform: rotate(-.6deg); }
.price .tag { position: absolute; top: -14px; right: 18px; }
.price h3 { font-size: 21px; }
.amount { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 46px; font-weight: 700; color: var(--ink); margin: 10px 0 2px; line-height: 1; }
.amount .tbd { font-family: var(--f-hand); font-size: 22px; color: var(--redpen); font-weight: 700; margin-left: 8px; }
.per { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; align-content: start; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15.5px; color: var(--graphite); line-height: 1.4; }
.ticks svg { width: 19px; height: 19px; color: var(--redpen); margin-top: 1px; }
.pay-note { text-align: center; margin-top: 26px; color: var(--ink-soft); font-size: 15px; }
.price .seg { align-self: flex-start; }
.pack-options { display: grid; gap: 10px; }
.pack-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; font: inherit; color: var(--ink); background: var(--sheet);
  border: 2px solid var(--ink); border-radius: 14px; padding: 11px 14px; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.pack-option:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.pack-option:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.pack-option b { display: block; font-size: 17px; font-weight: 700; }
.pack-option small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.pack-option .pack-price { font-family: var(--f-display); font-size: 22px; font-weight: 700; white-space: nowrap; text-align: right; }
.pack-option .pack-price .pack-save { font-family: var(--f-body); font-size: 12.5px; font-weight: 700; color: var(--redpen); }
.price .amount .from { font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1.5px dashed var(--line); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 24; font-size: 21px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--f-hand); font-size: 30px; color: var(--redpen); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-right: 30px; }

/* Final CTA */
.final { text-align: center; padding: 100px 0 110px; }
.final h2 { max-width: 760px; margin: 0 auto 16px; }
.final p { color: var(--ink-soft); font-size: 19px; margin-bottom: 30px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.foot-note { font-family: var(--f-hand); font-size: 17px; color: var(--ink-soft); }

/* ---------- Dialog (unlock flow) ---------- */
dialog.sheet-dialog {
  border: 0; padding: 0; background: transparent; width: min(470px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: visible;
}
dialog.sheet-dialog::backdrop { background: rgba(20, 26, 50, .45); backdrop-filter: blur(3px); }
.dialog-card { padding: 30px 26px 26px 56px; max-height: calc(100dvh - 24px); overflow: auto; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper-deep); color: var(--ink); font-size: 20px; line-height: 1; }
.dialog-card h3 { font-size: 26px; margin-bottom: 8px; padding-right: 30px; }
.dialog-card .sub { color: var(--ink-soft); font-size: 16px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 650; color: var(--ink-soft); }
.input-row { display: flex; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.input-row span { padding: 12px 12px; color: var(--muted); border-right: 1.5px solid var(--line); font-weight: 600; }
.input-row input, .otp input {
  border: 0; background: transparent; padding: 12px; font: inherit; color: var(--ink); width: 100%; outline: none; font-size: 18px; letter-spacing: .04em;
}
.input-row:focus-within, .otp input:focus { border-color: var(--ink); }
.otp { display: flex; gap: 8px; margin-bottom: 14px; }
.otp input { width: 48px; height: 54px; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 22px; font-weight: 700; padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); margin: 4px 0 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
.unlock-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.unlock-list li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 16px; color: var(--graphite); }
.unlock-list svg { width: 20px; height: 20px; color: var(--redpen); }
.price-line { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px dashed var(--line); padding-top: 14px; margin-bottom: 16px; }
.price-line b { font-family: var(--f-display); font-size: 30px; color: var(--ink); }
.stack { display: grid; gap: 10px; }
.wa-preview { background: #DCF5D5; color: #1d1d1d; border-radius: 14px 4px 14px 14px; padding: 12px 14px; font-size: 15px; line-height: 1.45; margin-bottom: 14px; overflow-wrap: anywhere; }
.wa-preview .link { color: #0b6bcb; text-decoration: underline; }
.step-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.step-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); }
.step-dots i.on { background: var(--redpen); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; z-index: 90;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow); transition: transform .25s, opacity .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ==========================================================
   REPORT PAGE
   ========================================================== */
.report-header .wrap { height: 62px; }
.back { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.back svg { width: 18px; height: 18px; transform: rotate(90deg); }
.progress-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--ink-soft); }
.ring { width: 30px; height: 30px; }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--redpen); stroke-linecap: round; transition: stroke-dashoffset .5s ease; transform: rotate(-90deg); transform-origin: center; }

.report { padding: 34px 0 80px; }
.report .wrap { width: min(860px, 100% - 32px); }
.r-section { margin-top: 56px; }
.r-section > h2 { font-size: clamp(26px, 4.4vw, 34px); margin-bottom: 6px; }
.r-section > .r-sub { color: var(--ink-soft); margin-bottom: 22px; }

.cover { padding-top: 34px; padding-bottom: 30px; }
.cover .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cover h1 { font-size: clamp(40px, 7vw, 62px); margin-bottom: 12px; }
.cover .meta { font-size: 14.5px; color: var(--ink-soft); max-width: 40em; }
.cover-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.cstat { background: var(--paper-deep); border-radius: 12px; padding: 14px 14px 12px; }
.cstat b { display: block; font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 32px; color: var(--ink); line-height: 1.1; }
.cstat span { font-size: 14px; color: var(--ink-soft); line-height: 1.35; display: block; }
/* In the flow above the title (absolutely placed, it covered the subject tabs on desktop) */
.cover .stamp {
  position: static; display: inline-block; margin-bottom: 12px; transform: rotate(-2deg);
  border: 2.5px solid var(--redpen); color: var(--redpen); border-radius: 8px; padding: 4px 10px;
  font-family: var(--f-hand); font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; opacity: .85;
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filters select {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--sheet);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; max-width: 100%;
}
.topic-list { display: grid; gap: 12px; }
.topic { background: var(--sheet); border-radius: 12px; box-shadow: var(--shadow-sm); position: relative; transition: opacity .25s, background-color .4s; }
.topic.done { opacity: .62; }
.topic.done .t-name { text-decoration: line-through; text-decoration-color: var(--redpen); text-decoration-thickness: 2px; }
.topic-head { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; }
.done-box { appearance: none; width: 24px; height: 24px; border: 2px solid var(--ink-soft); border-radius: 6px; margin: 0; cursor: pointer; position: relative; background: var(--paper); }
.done-box:checked { border-color: var(--redpen); }
.done-box:checked::after {
  content: ""; position: absolute; inset: -6px -8px -2px -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 12.5 L9 18 L21 4.5' fill='none' stroke='%23D23B2C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.t-main { background: none; border: 0; text-align: left; padding: 0; display: grid; gap: 3px; }
.t-name { font-weight: 650; color: var(--ink); font-size: 16.5px; line-height: 1.35; }
.t-ch { font-size: 13.5px; color: var(--muted); }
.t-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.t-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.topic[data-tier="3"] .t-label { color: var(--redpen); }
.t-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.topic.open .t-body { grid-template-rows: 1fr; }
.t-body > div { overflow: hidden; }
.t-inner { padding: 0 18px 18px 58px; }
.t-why { font-family: var(--f-hand); font-size: 18px; color: var(--ink); line-height: 1.45; margin-bottom: 12px; }
.evidence { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ev { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--paper-deep); color: var(--ink-soft); }
.ev.on { background: rgba(var(--hl), .7); color: #1F2B5C; }
.ev.sqp { background: var(--redpen); color: #fff; }
.ev.type { background: var(--sky); color: var(--ink); }
.pastq { margin: 0 0 10px; padding: 12px 14px; border-left: 3px solid var(--ink-soft); background: var(--paper); border-radius: 0 8px 8px 0; font-family: var(--f-display); font-variation-settings: "SOFT" 50, "opsz" 14; font-size: 16px; color: var(--graphite); }
.pastq small { display: block; font-family: var(--f-body); font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase; }
.score-line { font-size: 14px; color: var(--muted); }
.score-line b { color: var(--ink); }

.skim-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.skim-list li { padding: 14px 16px 14px 18px; border: 1.5px dashed var(--line); border-radius: 12px; }
.skim-list b { color: var(--ink); display: block; font-weight: 650; }
.skim-list span { font-family: var(--f-hand); color: var(--ink-soft); font-size: 17px; }

.mockpaper { font-family: var(--f-display); font-variation-settings: "SOFT" 30, "opsz" 12; color: var(--graphite); font-size: 16px; padding-bottom: 0; overflow: hidden; }
.mp-head { text-align: center; border-bottom: 1.5px solid var(--graphite); padding-bottom: 12px; margin-bottom: 14px; }
.mp-head b { display: block; font-size: 19px; letter-spacing: .03em; }
.mp-head .mp-note { display: block; margin-top: 4px; font-family: var(--f-body); font-size: 12.5px; font-style: italic; color: var(--muted); }
.mp-row { display: flex; justify-content: space-between; font-family: var(--f-body); font-size: 14px; font-weight: 700; margin-top: 8px; }
.mp-gi { font-size: 14.5px; padding-left: 18px; margin: 6px 0 16px; }
.mp-gi li { margin-bottom: 3px; }
.mp-sec { text-align: center; font-weight: 700; font-family: var(--f-body); letter-spacing: .08em; margin: 18px 0 8px; font-size: 14px; }
.mp-q { display: grid; grid-template-columns: 34px 1fr 30px; gap: 6px; margin-bottom: 12px; }
.mp-q .m { text-align: right; font-family: var(--f-body); font-size: 14px; font-weight: 700; color: var(--muted); }
.mp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; margin-top: 4px; }
.mp-fade { height: 120px; margin: -90px -24px 0 -58px; background: linear-gradient(to bottom, transparent, var(--sheet) 80%); position: relative; }
.mock-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.check-teaser { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--blush); border-radius: 16px; padding: 22px 24px; }
.check-teaser h3 { font-size: 22px; margin-bottom: 4px; }
.check-teaser p { margin: 0; color: var(--ink-soft); }
.soon { font-family: var(--f-hand); font-weight: 700; color: var(--redpen); font-size: 18px; transform: rotate(-4deg); display: inline-block; }
.eve-note { margin-top: 56px; text-align: center; font-family: var(--f-hand); font-size: 22px; color: var(--ink); }
.eve-note span { color: var(--redpen); }

/* Preparing overlay */
.preparing {
  position: fixed; inset: 0; z-index: 80; background: var(--paper) var(--noise);
  display: grid; place-items: center; padding: 20px; transition: opacity .5s ease;
}
.preparing.hide { opacity: 0; pointer-events: none; }
.prep-card { width: min(480px, 100%); padding-top: 34px; }
.prep-card h2 { font-size: 30px; margin-bottom: 6px; }
.prep-card .sub { color: var(--ink-soft); margin-bottom: 22px; }
.prep-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prep-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 16px; transition: color .3s; }
.prep-steps li .ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-content: center; margin-top: 1px; }
.prep-steps li.active { color: var(--ink); font-weight: 600; }
.prep-steps li.active .ic { border-color: var(--redpen); border-top-color: transparent; animation: spin .8s linear infinite; }
.prep-steps li.done { color: var(--ink-soft); }
.prep-steps li.done .ic { border-color: var(--success); background: var(--success); }
.prep-steps li.done .ic::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
@keyframes spin { to { transform: rotate(360deg); } }
.prep-foot { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero .wrap, .how-grid, .proof-grid, .parents-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { padding-top: 0; }
  .get-grid, .price-grid { grid-template-columns: 1fr; max-width: 520px; }
  .price.featured { transform: none; }
  .note-sticky { position: relative; left: auto; bottom: auto; margin: -14px 0 0 auto; width: 230px; }
  .countdown { right: -6px; top: -34px; width: 96px; height: 96px; }
  .countdown b { font-size: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .report .wrap { width: calc(100% - 28px); }
  h1 { font-size: clamp(32px, 8.8vw, 42px); }
  .btn { white-space: normal; text-align: center; padding: 12px 16px; font-size: 15.5px; }
  .hero { padding: 28px 0 52px; }
  .lede { font-size: 17px; }
  .section { padding: 64px 0; }
  .sheet { padding: 20px 14px 18px 40px; }
  .sheet::before { left: 26px; }
  .forecast-head, .forecast-sub { padding-right: 72px; }
  .countdown { right: 4px; top: -24px; width: 78px; height: 78px; }
  .countdown b { font-size: 23px; }
  .countdown span { font-size: 12px; }
  .ch-no { left: -32px; width: 22px; font-size: 12.5px; }
  .ch-btn { grid-template-columns: 1fr auto; }
  .ch-name { grid-column: 1 / 2; font-size: 14.5px; }
  .ch-marks { min-width: 0; font-size: 13.5px; }
  .night-toggle .lbl { display: none; }
  .header-actions .btn-small { display: none; }
  .back span { display: none; }
  .oq.hit::after { right: -16px; }
  .oq { grid-template-columns: 28px 1fr 30px; }
  .cover h1 { font-size: clamp(28px, 7.8vw, 38px); }
  .cover-stats { grid-template-columns: 1fr; }
  .cover .stamp { position: static; display: inline-block; margin-bottom: 12px; }
  .t-inner { padding: 0 14px 16px 14px; }
  .topic-head { padding: 12px 12px; gap: 10px; }
  .mp-opts { grid-template-columns: 1fr; }
  .mp-fade { margin: -90px -14px 0 -40px; }
  .check-teaser { grid-template-columns: 1fr; }
  .dialog-card { padding: 28px 18px 22px 42px; }
  .otp input { width: 42px; height: 50px; }
  .plan-block { padding-left: 40px; }
  .plan-block::before { left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .draw path { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .proto-ribbon, .mock-actions, .check-teaser, .filters, .toast, .exam-bar, .set-toolbar { display: none !important; }
  body { background: #fff; }
}

/* ---------- Full Physics Upgrade: Formula Sheets, Diagrams, Set Switcher & Timed Exam ---------- */
.diagram-box {
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  text-align: center;
}
.diagram-box svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
.t-formulas {
  margin: 10px 0;
  padding: 10px 14px;
  background: var(--paper-deep);
  border-left: 3px solid var(--ink);
  border-radius: 6px;
  font-size: 14px;
}
.t-formulas strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.t-formulas ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}
.t-formulas li { margin-bottom: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

.t-steps {
  margin: 10px 0;
  padding: 10px 14px;
  background: rgba(210, 59, 44, 0.05);
  border: 1px dashed var(--redpen);
  border-radius: 8px;
  font-size: 14px;
}
.t-steps strong {
  display: block;
  font-size: 12.5px;
  color: var(--redpen);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.t-steps ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }

.boost-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--redpen);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 14-Chapter Formula Cheat Sheets */
.formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.formula-card {
  background: var(--sheet);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 3px 0 rgba(20, 24, 36, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.formula-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.formula-card-head h4 {
  font-size: 17px;
  margin: 0;
  color: var(--ink);
}
.formula-card-head span {
  font-family: var(--f-hand);
  font-size: 16px;
  font-weight: 700;
  color: var(--redpen);
  white-space: nowrap;
}
.formula-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink);
  display: grid;
  gap: 6px;
}
.formula-list li {
  line-height: 1.45;
}
.formula-tip {
  font-size: 13px;
  background: var(--paper-deep);
  border-left: 3px solid var(--redpen);
  padding: 7px 10px;
  border-radius: 5px;
  color: var(--ink-soft);
}
.formula-tip b { color: var(--redpen); }

/* Set A/B/C Toolbar & Timed Exam Bar */
.set-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.set-tabs {
  display: inline-flex;
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  padding: 3px;
  gap: 4px;
}
.set-tabs button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 15px;
  border-radius: 99px;
  cursor: pointer;
}
.set-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.exam-bar {
  position: sticky;
  top: 62px;
  z-index: 35;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(20, 24, 36, 0.22);
}
.exam-timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  color: rgb(var(--hl));
  letter-spacing: 0.04em;
}
.exam-score-pill {
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
}
.mp-opt-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 11px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.mp-opt-btn:hover {
  border-color: var(--ink);
}
.mp-opt-btn.selected {
  border-color: var(--ink);
  background: var(--paper-deep);
  font-weight: 600;
}
.mp-opt-btn.correct {
  border-color: var(--success);
  background: rgba(31, 122, 76, 0.12);
  color: var(--success);
  font-weight: 700;
}
.mp-opt-btn.wrong {
  border-color: var(--redpen);
  background: rgba(210, 59, 44, 0.1);
  color: var(--redpen);
}
.mp-step-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px dashed var(--margin);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: var(--f-body);
}
.mp-step-box strong {
  display: block;
  color: var(--redpen);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.mp-step-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
  cursor: pointer;
  color: var(--ink-soft);
}
.mp-step-item input {
  margin-top: 3px;
  accent-color: var(--success);
}
.file-dropzone {
  border: 2px dashed var(--ink-soft);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  background: var(--paper-deep);
  margin-bottom: 14px;
  cursor: pointer;
  display: block;
  transition: border-color 0.2s, background 0.2s;
}
.file-dropzone:hover {
  border-color: var(--redpen);
  background: var(--paper);
}

/* Multi-Subject Switcher & Interactive Red-Pen Grader */
.subject-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.subject-bar button {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
}
.subject-bar button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
@media (max-width: 560px) {
  /* Six subjects: one swipeable row instead of a third of the screen of wrapped pills */
  .subject-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -4px;
    padding: 2px 4px 4px;
    -webkit-overflow-scrolling: touch;
  }
  .subject-bar::-webkit-scrollbar { display: none; }
  .subject-bar button { flex: 0 0 auto; white-space: nowrap; }
}
.redpen-textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 10px;
}
/* ---------- AI Red-Pen answer check + paper upload dialogs ---------- */
/* New containers set display, so [hidden] must win explicitly inside the dialogs. */
.sheet-dialog [hidden], .exam-bar[hidden] { display: none !important; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover, .btn:disabled:active { transform: none; box-shadow: 3px 3px 0 var(--bshadow); }
.btn-small:disabled:hover, .btn-small:disabled:active { box-shadow: 2px 2px 0 var(--bshadow); }
.dialog-close:disabled { opacity: .4; cursor: not-allowed; }
.redpen-stage { display: block; }
.redpen-select {
  width: 100%; max-width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 14.5px; min-height: 42px;
}
.redpen-quota { font-size: 14.5px; font-weight: 650; color: var(--ink); margin: -8px 0 12px; }
.redpen-note {
  background: rgba(var(--hl), var(--hl-a1)); border-left: 3px solid rgb(var(--hl)); border-radius: 0 8px 8px 0;
  color: var(--ink); padding: 8px 10px; margin: 0 0 12px; font-size: 14px; line-height: 1.45;
}
.redpen-error { color: var(--redpen); font-weight: 650; font-size: 14.5px; line-height: 1.45; margin: 8px 0; }
.redpen-fine { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 6px 0; }
.redpen-details { border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); padding: 0 12px; margin: 0 0 12px; }
.redpen-details > summary {
  cursor: pointer; padding: 9px 0; min-height: 40px; font-weight: 650; font-size: 14.5px; color: var(--ink);
}
.redpen-details[open] > summary { border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.redpen-fullq { font-size: 14.5px; color: var(--graphite); max-height: 260px; overflow: auto; overflow-wrap: anywhere; padding-bottom: 6px; }
.redpen-fullq p { margin: 0 0 8px; }
.redpen-or { text-align: center; font-weight: 700; color: var(--redpen); font-size: 12.5px; }
.redpen-fieldset { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px 12px; margin: 0 0 12px; min-width: 0; }
.redpen-fieldset legend { font-weight: 700; font-size: 14.5px; color: var(--ink); padding: 0 6px; }
.redpen-choice { display: flex; gap: 10px; align-items: flex-start; min-height: 40px; padding: 8px 0; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.redpen-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.redpen-choice input:disabled + span { color: var(--muted); }
.redpen-rebind { background: var(--sky); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 14.5px; color: var(--ink); }
.redpen-rebind p { margin: 0 0 8px; }
.redpen-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.redpen-photo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.redpen-photos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.photo-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 6px; border: 1px dashed var(--line); border-radius: 10px; background: var(--paper);
}
.photo-thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: var(--paper-deep); }
.photo-meta { display: grid; line-height: 1.25; min-width: 0; }
.photo-meta b { color: var(--ink); font-size: 14.5px; }
.photo-meta small { color: var(--muted); font-size: 12.5px; }
.photo-btns { display: flex; gap: 4px; }
.mini-btn {
  min-width: 40px; min-height: 40px; padding: 0; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--sheet); color: var(--ink); font-size: 18px; line-height: 1;
}
.mini-btn:hover:not(:disabled) { border-color: var(--ink-soft); }
.mini-btn:disabled { opacity: .4; cursor: not-allowed; }
.redpen-total { font-size: 13.5px; font-weight: 650; color: var(--ink-soft); margin: 8px 0 0; }
.redpen-over { display: block; color: var(--redpen); }
.redpen-cost { text-align: center; margin-bottom: 0; }
.redpen-off { margin: 0 0 12px; }
.redpen-selfcheck { margin-top: 0; }
.redpen-selfcheck strong { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.redpen-done { margin-top: 14px; }
.redpen-busy { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.45; margin: 4px 0 14px; }
.redpen-clock { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--ink-soft); margin-left: 4px; white-space: nowrap; }
.redpen-spinner { width: 34px; height: 34px; margin: 6px auto 4px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--redpen); animation: spin .9s linear infinite; }
/* Checked answer: examiner's ticks, half-marks, crosses and the score in the margin */
.redpen-result { background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.redpen-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 2px; }
.redpen-result-title { margin: 0; font-family: var(--f-display); font-size: 18px; line-height: 1.25; color: var(--ink); }
.redpen-result-title:focus:not(:focus-visible) { outline: none; }
.redpen-score { flex: 0 0 auto; font-family: var(--f-hand); font-size: 26px; font-weight: 700; color: var(--redpen); transform: rotate(-4deg); white-space: nowrap; }
.redpen-disclosure { font-size: 13px; font-style: italic; color: var(--ink-soft); margin: 0 0 8px; }
.redpen-qmeta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.rubric-list { list-style: none; margin: 0 0 10px; padding: 0; }
.rubric-row {
  display: grid; grid-template-columns: minmax(66px, auto) minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 7px 0; border-bottom: 1px dashed var(--line); line-height: 1.45;
}
.rubric-row:last-child { border-bottom: 0; }
.rubric-mark { font-family: var(--f-hand); font-size: 18px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.rubric-mark small { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 700; }
.rubric-row .tick { color: var(--success); }
.rubric-row .partial { color: var(--partial); }
.rubric-row .cross { color: var(--redpen); }
.rubric-row .missing { color: var(--muted); }
.rubric-text { font-size: 14px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.rubric-comment { display: block; margin-top: 3px; font-family: var(--f-hand); font-size: 16px; line-height: 1.3; color: var(--ink-soft); }
.redpen-tip { margin: 10px 0 0; font-family: var(--f-hand); font-size: 17px; line-height: 1.35; color: var(--redpen); }
.redpen-notes { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0; }
.redpen-notes ul { margin: 4px 0 0; padding-left: 18px; }
.redpen-transcript {
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; padding-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--graphite);
}
.redpen-result .redpen-details { margin: 10px 0 0; background: var(--sheet); }
.redpen-result > .btn { margin-top: 12px; }
.redpen-card-msg { font-size: 15.5px; color: var(--ink); margin: 6px 0 10px; }
.redpen-tips { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-soft); }
.redpen-card .stack { margin-top: 10px; }
.photo-meta b, .photo-meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Upload dialog (both pages) */
.dialog-card h3.upload-title { font-size: 21px; line-height: 1.2; }
.upload-subject { font-size: 14.5px; font-weight: 650; color: var(--ink); margin: -6px 0 12px; }
.upload-access { font-size: 14.5px; color: var(--ink); background: var(--sky); border-radius: 10px; padding: 8px 10px; margin: 0 0 12px; }
.upload-pick-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.upload-file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0;
  padding: 6px 6px 6px 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--paper); font-size: 14.5px; color: var(--ink);
}
.upload-file-row span { min-width: 0; overflow-wrap: anywhere; }
.upload-error p { margin: 0 0 8px; }
#uploadSendBtn { margin-top: 10px; }
.upload-samples-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 18px 0 6px; }
.upload-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.upload-qlist { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; max-height: 260px; overflow: auto; font-size: 13.5px; color: var(--graphite); overflow-wrap: anywhere; }
.upload-qlist small { display: block; font-size: 12.5px; color: var(--muted); }
#uploadResultQuestions .redpen-details { margin: 4px 0 12px; }
@media (max-width: 560px) {
  /* ~276 px of content in the dialog: keep a page row (48 px thumb + three 40 px buttons) on one line */
  .redpen-fieldset { padding: 8px 8px 10px; }
  .photo-row { gap: 6px; padding: 5px; }
  .photo-btns { gap: 3px; }
  .redpen-result { padding: 12px 10px; }
  .redpen-score { font-size: 23px; }
  .rubric-row { grid-template-columns: minmax(56px, auto) minmax(0, 1fr); gap: 8px; }
  .redpen-photo-actions .btn, .redpen-actions .btn, .upload-pick-btns .btn { flex: 1 1 auto; }
}

/* ==========================================================
   v1.2.0 — Legal / KYC pages, Parent UPI checkout, OTP + payment-wait states
   ========================================================== */
.fill-me {
  background: rgba(var(--hl), .75); color: #1F2B5C; font-weight: 650;
  padding: 0 .3em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Legal page */
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; padding: 40px 0 80px; }
.legal-toc { position: sticky; top: 86px; display: grid; gap: 8px; }
.legal-toc a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px; padding: 6px 10px; border-left: 3px solid var(--line); }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--ink); border-left-color: var(--redpen); }
.legal-doc { padding: 34px 40px 40px; max-width: 820px; }
.legal-doc section { scroll-margin-top: 86px; padding-top: 34px; margin-top: 34px; border-top: 1.5px dashed var(--line); }
.legal-doc h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.legal-doc h3 { font-size: 19px; margin: 24px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--graphite); font-size: 16.5px; }
.legal-doc ul { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal-doc code { font-size: 14px; background: var(--paper-deep); padding: 1px 6px; border-radius: 4px; }
.legal-meta { font-size: 14px; color: var(--muted); }
.legal-lede { font-size: 17.5px; }
.legal-card {
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 10px 0 18px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.legal-card dt { font-weight: 650; color: var(--ink-soft); font-size: 15px; }
.legal-card dd { margin: 0; color: var(--graphite); overflow-wrap: anywhere; }

/* Parent checkout page */
.pay-page main { min-height: calc(100dvh - 200px); }
.pay-shell { max-width: 540px; padding: 28px 0 56px; }
.pay-card { padding-top: 30px; }
.pay-title { font-size: clamp(28px, 6vw, 36px); margin-bottom: 8px; }
.pay-sub { color: var(--ink-soft); margin-bottom: 18px; }
.pay-loading { margin: 0; color: var(--ink-soft); font-weight: 600; }
.pay-secure-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--success); }
.pay-secure-chip svg { width: 16px; height: 16px; }
.pay-guarantee {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  background: var(--mint); color: var(--graphite); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 15.5px;
}
.pay-guarantee svg { width: 24px; height: 24px; color: var(--success); }
.pay-btn { font-size: 19px; padding: 15px 22px; }
.pay-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.pay-methods { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.pay-inline-error { color: var(--redpen); font-weight: 650; font-size: 15px; margin: -6px 0 12px; }
#payActionError { margin: 12px 0 0; text-align: center; }
.pay-stamp { font-size: 22px; margin-bottom: 14px; background: var(--mint); color: var(--success); }
.pay-receipt { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 4px 0 8px; font-size: 15.5px; }
.pay-receipt dt { color: var(--muted); font-weight: 600; }
.pay-receipt dd { margin: 0; overflow-wrap: anywhere; }

/* Unlock dialog: OTP entry + waiting-for-parent status */
.otp-entry[hidden] { display: none; }
.otp-code-input { letter-spacing: .4em; font-family: var(--f-display); font-weight: 700; }
.pay-wait {
  display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  background: var(--sky); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px;
}
.pay-wait .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--redpen); flex-shrink: 0; animation: pulse 1.4s ease-in-out infinite; }
.pay-wait.done { background: var(--mint); color: var(--success); }
.pay-wait.done .dot { background: var(--success); animation: none; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.8); } }
.btn-wa { background: #25D366; color: #0d2b16; }
body.night .btn-wa { background: #25D366; color: #0d2b16; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .legal-toc .kicker-hand { width: 100%; margin-bottom: 0; }
  .legal-toc a { border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
  .legal-doc { padding: 24px 18px 28px; }
}
@media (max-width: 560px) {
  .legal-card, .pay-receipt { grid-template-columns: 1fr; gap: 2px; }
  .legal-card dd { margin-bottom: 8px; }
  .pay-shell { padding-top: 18px; }
}

/* ---------- Free preview: locked cards + banner (paid content loads from the API) ---------- */
.locked-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: var(--sheet); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-top: 14px;
}
.locked-card .lock-ic { font-size: 22px; line-height: 1; }
.locked-card b { display: block; color: var(--ink); font-size: 16px; line-height: 1.35; }
.locked-card span { color: var(--ink-soft); font-size: 14.5px; }
.lock-slot[hidden], .btn[hidden], .check-teaser [hidden] { display: none; }
.pack-gate {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  background: var(--sky); border-radius: 16px; padding: 20px 22px; margin: 22px 0 6px;
}
.pack-gate[hidden] { display: none; }
.pack-gate .sticker { margin-bottom: 8px; }
.pack-gate p { margin: 0 0 6px; color: var(--ink-soft); font-size: 15.5px; }
.pack-gate .gate-state { margin: 0; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.pack-gate .gate-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
#mock.is-locked .set-tabs,
#mock.is-locked #startTimedExamBtn,
#mock.is-locked #downloadPdfLink,
#mock.is-locked .mock-actions,
#mock.is-locked #answerKeyBox,
#mock.is-locked #examBar,
#mock.is-locked #examResultBox { display: none !important; }
@media (max-width: 560px) {
  .locked-card { grid-template-columns: auto 1fr; }
  .locked-card .btn { grid-column: 1 / -1; }
  .pack-gate { grid-template-columns: 1fr; }
  .pack-gate .gate-actions { justify-content: flex-start; }
}
@media print { .pack-gate, .lock-slot { display: none !important; } }

/* ---------- Upload dialog: subject picker + honest notices ---------- */
.upload-subject { margin-bottom: 10px; }
.upload-subject select {
  width: 100%; padding: 8px 10px; margin-top: 4px;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 14px;
}
.upload-notice {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 10px;
  background: var(--blush); color: var(--ink); font-size: 14px; line-height: 1.45;
}
.upload-notice[hidden] { display: none; }
.upload-notice a { font-weight: 650; }

/* ---------- Timed exam bar: compact on phones so it doesn't cover the paper ---------- */
@media (max-width: 560px) {
  .exam-bar { padding: 8px 10px; gap: 6px 8px; border-radius: 10px; margin-bottom: 12px; }
  .exam-bar > div { gap: 6px !important; }
  .exam-bar > div:first-child > span:first-child { display: none; }
  .exam-timer { font-size: 17px; }
  .exam-bar .btn-small { padding: 4px 9px; font-size: 12.5px; box-shadow: none; }
  .exam-score-pill { font-size: 11.5px; padding: 3px 8px; }
}

/* ---------- Red-Pen self-check (AI checks off or used up) ---------- */
.redpen-sample-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.redpen-sample-chips button {
  font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.redpen-sample-chips button:hover { border-color: var(--ink); }
.redpen-selfcheck .redpen-textarea { margin: 4px 0 10px; }
.redpen-selfcheck [data-rp-self-result] { margin-top: 12px; }

/* ---------- Unlock dialog: sign in ---------- */
.signin-google { margin: 14px 0 6px; }
.google-btn-slot { display: flex; justify-content: center; min-height: 44px; }
.google-btn-slot[aria-busy="true"] { opacity: .55; pointer-events: none; }
.signin-phone { margin-top: 14px; }
.signin-phone > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.signin-phone[open] > summary { margin-bottom: 10px; }
.signin-terms { margin-top: 14px; }
