/* ---------- Base ---------- */
:root {
  --ink: #1b2a6b;          /* ball-point pen blue */
  --ink-soft: #3949ab;
  --bg: #f4f5f9;
  --card: #ffffff;
  --text: #1d2230;
  --muted: #5f6677;
  --line: #e3e6ee;
  --omr: #fdeef0;          /* pink OMR paper */
  --omr-line: #e8a5b0;
  --omr-ink: #c2185b;      /* printed OMR red */
  --ok: #1e8e3e;
  --bad: #d93025;
  --warn: #e37400;
  --radius: 12px;
  --te-font: "Noto Sans Telugu", "Nirmala UI", "Gautami", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif, var(--te-font);
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 .25rem; line-height: 1.25; }
small { color: var(--muted); }
.te, .te-line, .te-inline, .brand-te { font-family: var(--te-font); }
.te-line { color: var(--muted); margin: 0 0 .5rem; }
.te-inline { font-size: .8em; color: var(--muted); font-weight: 400; margin-left: .4rem; }

.wrap { max-width: 860px; margin: 0 auto; padding: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
}
.brand { font-weight: 700; }
.brand small { color: #c5cae9; font-weight: 400; }
.brand-te { font-weight: 600; opacity: .85; margin-left: .3rem; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; border-radius: 10px;
  padding: .7rem 1.1rem; background: #e8eaf6; color: var(--ink);
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:disabled { background: #9fa8da; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--line); color: inherit; }
.topbar .btn.ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { padding: .4rem .75rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.actions.center { justify-content: center; }

/* ---------- Home ---------- */
.hero { padding: 1rem 0 .5rem; }
.hero h1 { font-size: 1.6rem; }
.hero .sub { color: var(--muted); }
.mock-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.badge { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.badge.draft { background: #fff3e0; color: var(--warn); border: 1px solid #ffcc80; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; padding: 0; list-style: none; margin: .8rem 0; }
.facts li { background: #f7f8fc; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; font-size: .9rem; }
.facts b { display: block; font-size: 1.05rem; color: var(--ink); }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: .6rem 0; padding: .5rem .8rem .7rem; }
legend { font-weight: 700; padding: 0 .3rem; }
.choice { display: flex; gap: .55rem; align-items: flex-start; padding: .35rem 0; cursor: pointer; }
.choice.inline { display: inline-flex; margin-right: 1rem; }
.choice input { margin-top: .3rem; accent-color: var(--ink); }
.note { font-size: .85rem; color: var(--muted); }

.badge.official { background: #e6f4ea; color: var(--ok); border: 1px solid #a8dab5; }
.pick-head { margin: .6rem 0 .5rem; font-size: 1rem; }
.mock-list { margin-bottom: 1rem; }
.mock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: .6rem; }
.tabs { display: flex; gap: .4rem; margin-bottom: .6rem; }
.tab { flex: 1; font: inherit; font-weight: 700; cursor: pointer; padding: .6rem .5rem; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; }
.tab .te { font-family: var(--te-font); font-weight: 400; font-size: .8rem; color: var(--muted); }
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab.active .te { color: #c5cae9; }
.mock-pick {
  font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: .15rem;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem;
}
.mock-pick.active { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27,42,107,.12); }
.mp-title { font-weight: 700; }
.mp-te { font-family: var(--te-font); color: var(--muted); font-size: .9rem; }
.mp-meta { font-size: .82rem; color: var(--muted); display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; margin-top: .2rem; }

/* ---------- Instructions ---------- */
.instr li { margin-bottom: .8rem; }
.instr .te { color: var(--muted); font-size: .92rem; }
.agree { display: flex; gap: .5rem; align-items: flex-start; font-weight: 600; margin-top: .5rem; }
.agree input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------- Exam bar ---------- */
.exam-bar { justify-content: space-between; }
.series-tag { font-size: .85rem; }
.series-tag b { display: inline-block; background: #fff; color: var(--ink); border-radius: 6px; padding: 0 .45rem; margin-left: .2rem; font-size: 1rem; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.2rem; letter-spacing: .5px; }
.timer.low { color: #ffcdd2; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.bar-actions { display: flex; gap: .4rem; }

/* ---------- Exam layout ---------- */
.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; align-items: start; }
.booklet { padding: 1rem 1.2rem 6rem; max-width: 820px; min-width: 0; }
.sec-head { margin: 1.4rem 0 .6rem; padding: .5rem .8rem; background: #e8eaf6; border-left: 4px solid var(--ink); border-radius: 6px; font-weight: 700; }
.sec-head .te-inline { color: var(--ink-soft); }
.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .75rem; scroll-margin-top: 70px; }
.q.current { border-color: var(--ink-soft); box-shadow: 0 0 0 2px rgba(57,73,171,.12); }
.q-num { font-weight: 700; color: var(--ink); margin-right: .3rem; }
.q-text { margin: 0 0 .35rem; }
.q-text.te { font-family: var(--te-font); }
.q-text.en + .q-text.te { color: #37474f; }
.q-body { margin-bottom: .35rem; }
.q-body .q-num { float: left; }
.q-body.te { font-family: var(--te-font); color: #37474f; border-top: 1px dashed var(--line); padding-top: .35rem; }
.q-body.te:first-child { border-top: 0; padding-top: 0; color: inherit; }
.q-list { list-style: none; padding-left: 1.4rem; margin: .3rem 0 .45rem; display: grid; gap: .25rem; }
.q-table { border-collapse: collapse; margin: .35rem 0 .5rem 1.4rem; font-size: .93rem; }
.q-table th, .q-table td { border: 1px solid var(--line); padding: .3rem .55rem; text-align: left; vertical-align: top; }
.q-table th { background: #f3f4f9; font-weight: 600; }
.passage { background: #f3f4fb; border: 1px solid #d5d9ee; border-left: 4px solid var(--ink-soft); border-radius: var(--radius); padding: .8rem 1rem; margin: .4rem 0 .9rem; }
.passage p { margin: .25rem 0; }
.passage .te { font-family: var(--te-font); color: #37474f; border-top: 1px dashed #c5cae9; margin-top: .5rem; padding-top: .4rem; }
.rv-passage { margin: .3rem 0 .5rem; font-size: .9rem; }
.rv-passage summary { cursor: pointer; color: var(--ink-soft); font-weight: 600; }
.q-figs { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin: .4rem 0 .6rem 1.4rem; }
.q-figs figure { margin: 0; text-align: center; }
.q-figs img { display: block; max-width: min(100%, 300px); max-height: 220px; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.q-figs figure:not(:only-child) img { max-height: 90px; }
.q-figs figcaption { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.tag.deleted { background: #fff3e0; color: var(--warn); }
.q-opts { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .3rem; }
.q-opts li { display: flex; gap: .5rem; overflow-wrap: anywhere; }
.q-text, .q-list li, .q-table td { overflow-wrap: anywhere; }
.q-opts .ol { font-weight: 700; color: var(--ink); min-width: 1.7rem; }
.q-opts .te { color: #37474f; }
.q-opts .sep { color: #b0b6c3; margin: 0 .3rem; }

/* ---------- OMR sheet ---------- */
.omr {
  position: sticky; top: 52px; height: calc(100vh - 52px); overflow-y: auto;
  background: var(--omr); border-left: 2px solid var(--omr-line);
  padding: .8rem .9rem 2rem; color: var(--omr-ink);
}
.omr-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-bottom: 2px solid var(--omr-line); padding: .3rem 0 .5rem; position: sticky; top: -.8rem; background: var(--omr); z-index: 2; }
.omr-timer { display: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.omr-title { font-weight: 800; letter-spacing: 1px; }
.omr-sub { font-size: .75rem; }
.omr-close { display: none; }
.omr-series { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 0; border-bottom: 1px dashed var(--omr-line); }
.omr-label { font-size: .8rem; font-weight: 700; }
.omr-counts { font-size: .78rem; padding: .5rem 0; display: flex; gap: .8rem; flex-wrap: wrap; }
.omr-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.omr-row { display: flex; align-items: center; gap: .55rem; padding: 3px 6px; border-radius: 6px; }
.omr-row.g5 { border-bottom: 1px solid var(--omr-line); padding-bottom: 6px; margin-bottom: 4px; }
.omr-row.current { background: rgba(194,24,91,.10); }
.omr-row .rn { width: 2.2rem; text-align: right; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.omr-sec-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: .6rem 0 .2rem 2.8rem; opacity: .8; }

.bubbles { display: flex; gap: .45rem; }
.bubble {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--omr-ink); background: #fff; color: var(--omr-ink);
  font: 700 .78rem/1 "Inter", sans-serif; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .06s;
}
.bubble:active { transform: scale(.9); }
.bubble.filled { background: var(--ink); border-color: var(--ink); color: transparent; }
.row-double .bubble.filled { background: #4a148c; border-color: #4a148c; }
.row-double .rn::after { content: " ⚠"; color: var(--bad); }

/* ---------- Phone quick bar ---------- */
.quickbar { display: none; }

@media (max-width: 900px) {
  .exam-layout { grid-template-columns: minmax(0, 1fr); }
  .booklet { padding: .8rem .8rem 7rem; }
  .omr {
    position: fixed; inset: 0; top: 0; height: 100%; z-index: 40; border-left: 0;
    transform: translateY(100%); transition: transform .22s ease;
  }
  .omr.open { transform: translateY(0); }
  .omr-close { display: inline-block; color: var(--omr-ink); border-color: var(--omr-line); }
  .omr-timer { display: inline-block; }
  .omr-head { top: -.8rem; padding-top: .8rem; }
  .bubble { width: 36px; height: 36px; font-size: .85rem; }
  .quickbar {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--omr); border-top: 2px solid var(--omr-line); color: var(--omr-ink);
    padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom));
  }
  .quickbar .bubble { width: 42px; height: 42px; font-size: .95rem; }
  .qb-label { font-weight: 700; min-width: 3rem; }
  .quickbar .btn.ghost { color: var(--omr-ink); border-color: var(--omr-line); }
  .series-tag { font-size: .75rem; }
  .timer { font-size: 1.05rem; }
}
@media (min-width: 901px) { .omr-btn { display: none; } }

/* ---------- Result ---------- */
.banner { border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.banner.bad { background: #fdecea; color: #a50e0e; border: 1px solid #f5c2bd; }
.banner.info { background: #e8f0fe; color: #174ea6; border: 1px solid #c6dafc; }
.score-card { text-align: center; }
.score-big { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.score-big small { font-size: 1.3rem; }
.score-sub { color: var(--muted); margin-bottom: .8rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.stat { background: #f7f8fc; border: 1px solid var(--line); border-radius: 10px; padding: .55rem; }
.stat b { display: block; font-size: 1.3rem; }
.stat.ok b { color: var(--ok); } .stat.bad b { color: var(--bad); } .stat.warn b { color: var(--warn); }
.table-wrap { overflow-x: auto; }
.sec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sec-table th, .sec-table td { padding: .5rem .45rem; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.sec-table th:first-child, .sec-table td:first-child { text-align: left; }
.sec-table tfoot td { font-weight: 700; }
#insights li { margin-bottom: .45rem; }

.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }
.chip { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; cursor: pointer; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.rv { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: .7rem; }
.rv-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; margin-bottom: .35rem; }
.tag { font-weight: 700; border-radius: 999px; padding: .1rem .6rem; font-size: .78rem; }
.tag.correct { background: #e6f4ea; color: var(--ok); }
.tag.wrong { background: #fdecea; color: var(--bad); }
.tag.double { background: #f3e5f5; color: #6a1b9a; }
.tag.blank { background: #f1f3f4; color: var(--muted); }
.rv .q-opts li { padding: .2rem .4rem; border-radius: 6px; }
.rv .q-opts li.is-answer { background: #e6f4ea; }
.rv .q-opts li.is-wrong-pick { background: #fdecea; }
.rv .q-opts .mark { margin-left: auto; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.explain { background: #fffde7; border: 1px solid #fff59d; border-radius: 8px; padding: .55rem .75rem; margin-top: .55rem; font-size: .92rem; }
.explain .te { font-family: var(--te-font); color: #4e4a2a; margin-top: .3rem; }
.report-btn { font: inherit; font-size: .78rem; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(10,15,40,.5); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 1.2rem; max-width: 440px; width: 100%; }
.modal-box textarea { width: 100%; min-height: 90px; font: inherit; padding: .5rem; border-radius: 8px; border: 1px solid var(--line); }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 70;
  background: #202124; color: #fff; padding: .7rem 1rem; border-radius: 10px;
  max-width: min(92vw, 460px); font-size: .92rem; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.toast.warn { background: #b3261e; }

/* ---------- Updates feed ---------- */
.upd-list { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .7rem; }
.upd-list li { border-left: 3px solid var(--ink-soft); padding-left: .7rem; font-size: .93rem; }
.upd-list .te { font-family: var(--te-font); color: var(--muted); font-size: .88rem; }
.upd-date { font-size: .78rem; color: var(--muted); margin-right: .4rem; }
.upd-tag { font-size: .75rem; font-weight: 700; background: #fff3e0; color: var(--warn); border-radius: 999px; padding: .05rem .5rem; }
.upd-list a { font-size: .8rem; color: var(--ink-soft); }

/* ---------- Streak, guess, analysis ---------- */
.streak-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .8rem; }
.streak-bar > span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; }
.streak-bar .te { font-family: var(--te-font); color: var(--muted); font-size: .8rem; margin-left: .3rem; }
.guess-btn { font: inherit; font-size: .8rem; margin-top: .5rem; border: 1px dashed #b0b6c3; background: #fff; color: var(--muted); border-radius: 999px; padding: .2rem .7rem; cursor: pointer; }
.guess-btn.on { background: #fff3e0; border: 1px solid #ffb74d; color: var(--warn); font-weight: 700; }
#analysis h4 { margin: 1rem 0 .4rem; }
.topic-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.tchip { font-size: .82rem; border-radius: 8px; padding: .25rem .55rem; border: 1px solid var(--line); }
.tchip.good { background: #e6f4ea; border-color: #a8dab5; }
.tchip.mid { background: #fff8e1; border-color: #ffe082; }
.tchip.weak { background: #fdecea; border-color: #f5c2bd; }
.ok-t { color: var(--ok); font-weight: 700; } .bad-t { color: var(--bad); font-weight: 700; } .warn-t { color: var(--warn); font-weight: 700; }

/* very small phones (< 360px) */
@media (max-width: 360px) {
  .exam-bar { flex-wrap: wrap; gap: .3rem; padding: .4rem .5rem; }
  .bar-actions .btn.small { padding: .35rem .5rem; font-size: .8rem; }
  .quickbar { gap: .3rem; padding-left: .4rem; padding-right: .4rem; }
  .quickbar .bubbles { gap: .3rem; }
  .quickbar .bubble { width: 36px; height: 36px; }
  .quickbar .btn.ghost { padding: .3rem .45rem; font-size: .78rem; }
}
.rv-head { align-items: flex-start; }
.rv-head .tag { white-space: nowrap; flex-shrink: 0; align-self: flex-start; }

/* ---------- Qualifying chance ---------- */
.qual-top { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: .4rem 0 .6rem; }
.qual-top select { font: inherit; padding: .3rem .5rem; border-radius: 8px; border: 1px solid var(--line); }
.qual-score b { font-size: 1.2rem; color: var(--ink); }
.qual-signal { font-weight: 800; font-size: 1.15rem; border-radius: 10px; padding: .6rem .8rem; margin-bottom: .6rem; }
.qual-signal .te { font-family: var(--te-font); font-weight: 600; font-size: .9rem; margin-left: .4rem; }
.qual-signal.safe { background: #e6f4ea; color: var(--ok); }
.qual-signal.border { background: #fff8e1; color: #b26a00; }
.qual-signal.below { background: #fdecea; color: var(--bad); }
.qual-table td { white-space: normal; vertical-align: top; }
.qnote { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.muted { color: var(--muted); }

/* ---------- Account, lock, pass, rating ---------- */
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.acc-actions { display: flex; gap: .4rem; }
.mock-pick.locked { opacity: .85; }
.lock { font-size: .75rem; font-weight: 700; color: #6a1b9a; background: #f3e5f5; border-radius: 999px; padding: .05rem .5rem; }
.free { font-size: .75rem; font-weight: 800; color: var(--ok); background: #e6f4ea; border-radius: 999px; padding: .05rem .5rem; }
.inp { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; margin: .3rem 0; }
label.f { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-top: .5rem; }
.btn.google { width: 100%; background: #fff; border: 1px solid var(--line); color: #1d2230; }
.or { text-align: center; color: var(--muted); font-size: .85rem; margin: .7rem 0 .3rem; }
.pass-list { list-style: none; padding: 0; display: grid; gap: .35rem; }
.stars { display: flex; gap: .3rem; }
.star { font-size: 2rem; line-height: 1; background: none; border: 0; color: #d0d4de; cursor: pointer; padding: 0 .1rem; }
.star.on { color: #f5a623; }

/* Begin button: looks inactive until the box is ticked, but always explains itself */
#btn-begin.waiting { background: #9fa8da; }
.agree { border-radius: 10px; padding: .6rem .7rem; border: 2px solid transparent; }
.agree.nudge { border-color: var(--warn); background: #fff3e0; animation: nudge .5s ease 2; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.agree input { transform: scale(1.3); }

/* disclaimer box for previous papers with team-prepared parts */
.banner.warnbox { background: #fff8e1; color: #5d4500; border: 1px solid #ffe082; font-weight: 400; font-size: .92rem; margin-top: .6rem; }
.banner.warnbox .te { font-family: var(--te-font); margin-top: .35rem; color: #6d5a1f; }

/* "Report an error" clearly visible (we promise fixes within 24 h) */
.report-btn { font-size: .82rem; text-decoration: none; color: var(--ink-soft); border: 1px solid #c5cae9; border-radius: 999px; padding: .25rem .7rem; background: #f3f4fb; }
.report-btn:hover { background: #e8eaf6; }

/* Learn-the-other-options notes in the answer review */
.opt-notes { margin-top:.5rem; background:#eef5fc; border:1px solid #cfe2f5; border-radius:10px; padding:.45rem .7rem; font-size:.92rem; }
.opt-notes summary { cursor:pointer; font-weight:600; color:#1a4d7a; }
.opt-notes ul { list-style:none; margin:.4rem 0 0; padding:0; }
.opt-notes li { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.45rem; padding:.3rem 0; border-top:1px dashed #cfe2f5; overflow-wrap:anywhere; }
.opt-notes li:first-child { border-top:0; }
.opt-notes .ol { font-weight:700; color:#1a4d7a; }
.opt-notes .te { color:#444; margin-top:.1rem; }

/* ===== Grand Mock card ===== */
.card.grand { background:linear-gradient(135deg,#fff8e1,#ffecb3); border:1px solid #ffd54f; }
.grand-row { display:flex; gap:.8rem; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.grand-row > div { min-width:0; flex:1 1 240px; }
.grand-title { font-weight:700; font-size:1.1rem; color:#7a4b00; }
.grand-count { margin-top:.35rem; font-weight:600; color:#7a4b00; }
.grand-count.live { color:#c62828; }
.badge.grand-b { background:#ffecb3; color:#7a4b00; border:1px solid #ffd54f; }
/* ===== saved (star) + review actions ===== */
.rv-actions { display:flex; justify-content:space-between; align-items:center; gap:.5rem; margin-top:.45rem; flex-wrap:wrap; }
.star-btn { background:#fff; border:1px solid #d0d5e2; border-radius:999px; padding:.25rem .7rem; font:inherit; font-size:.85rem; cursor:pointer; color:#555; }
.star-btn.on { background:#fff8e1; border-color:#ffd54f; color:#7a4b00; font-weight:600; }
.star-btn .te { font-size:.8rem; }
/* ===== topic practice ===== */
.topic-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr)); gap:.5rem; margin-top:.6rem; }
.topic-btn { text-align:left; background:#fff; border:1px solid #d0d5e2; border-radius:10px; padding:.55rem .7rem; font:inherit; cursor:pointer; display:flex; flex-direction:column; gap:.15rem; min-width:0; overflow-wrap:anywhere; }
.topic-btn span { font-size:.82rem; color:#666; }
.topic-btn.all { background:#eef2ff; border-color:#b9c4f0; }
.topic-btn:hover { border-color:#1b2a6b; }
.pr-top { display:flex; justify-content:space-between; gap:.5rem; flex-wrap:wrap; margin:.6rem 0; font-size:.92rem; }
.q-opts.pickable li { cursor:pointer; }
.q-opts.pickable li:hover { background:#eef2ff; }
.card.center { text-align:center; }

/* ---------- Exam picker, footer, help (Launch & hosting, 28 Nov 2026) ---------- */
.exam-chip { margin-left: auto; white-space: nowrap; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.exam-card { text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem; font: inherit; color: inherit; cursor: pointer; }
.exam-card.live { border-color: var(--ink); }
.exam-card.live:hover { background: #eef0fb; }
.exam-card.soon { opacity: .7; cursor: default; }
.exam-card h3 { font-size: 1.05rem; }
.exam-card .tag { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .1rem .6rem; margin-top: .5rem; }
.exam-card.live .tag { background: #e6f4ea; color: var(--ok); }
.exam-card.soon .tag { background: #eceff1; color: var(--muted); }
.site-foot { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; text-align: center; }
.site-foot nav a { color: var(--ink); font-size: .9rem; }
.help-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; border: 0; border-radius: 999px; padding: .6rem 1rem; background: var(--ink); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; }
.help-panel { position: fixed; inset: 0; z-index: 70; background: rgba(10,15,40,.45); display: flex; align-items: flex-end; justify-content: flex-end; padding: 1rem; }
.help-box { background: #fff; border-radius: var(--radius); width: 100%; max-width: 420px; max-height: 80vh; overflow: auto; padding: 1rem; }
.help-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.help-q { display: block; width: 100%; text-align: left; font: inherit; background: #f3f4fb; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .75rem; margin-bottom: .45rem; cursor: pointer; }
.help-q:hover { background: #e8eaf6; }
.help-a { background: #fffde7; border: 1px solid #fff59d; border-radius: 10px; padding: .7rem .8rem; margin-bottom: .6rem; }
.help-a .te { color: var(--muted); margin-top: .35rem; }

/* ---------- Legal pages ---------- */
.legal h1 { font-size: 1.5rem; margin-bottom: .2rem; }
.legal h2 { font-size: 1.1rem; margin: 1.3rem 0 .3rem; }
.legal p, .legal li { line-height: 1.6; }
.legal .updated { color: var(--muted); font-size: .85rem; }
.legal .te-sum { background: #f3f4fb; border-radius: 10px; padding: .7rem .9rem; font-family: var(--te-font); }
.legal mark.todo { background: #ffe0b2; color: #8a4b00; padding: 0 .3rem; border-radius: 4px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.legal dt { font-weight: 700; color: var(--muted); }
.legal dd { margin: 0; }
.topbar a.btn { text-decoration: none; }

/* =====================================================================
   BRAND THEME (29 Nov 2026): indigo + coral, logo = pen ticking a bubble.
   The exam screen keeps the pink OMR sheet and blue-pen bubbles on purpose (realism).
   ===================================================================== */
:root {
  --brand: #3c3489;          /* indigo */
  --brand-dark: #26215c;
  --brand-soft: #eeedfe;
  --accent: #d85a30;         /* coral */
  --accent-dark: #993c1d;
  --accent-soft: #faece7;
  --pen: #1b2a6b;            /* ball-point pen blue for filled OMR bubbles */
  --bg: #f6f5fd;
  --line: #e4e2f3;
  --text: #1f1d33;
  --muted: #5f5c78;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(38,33,92,.06), 0 4px 14px rgba(38,33,92,.06);
}
body { background: var(--bg); }
h1, h2, h3 { color: var(--brand-dark); letter-spacing: -.01em; }

/* top bar: clean white app bar with logo (exam bar stays indigo for focus) */
.topbar { background: #fff; color: var(--brand-dark); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(38,33,92,.03); }
.topbar .btn.ghost { border-color: var(--line); color: var(--brand); background: #fff; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.05rem; color: var(--brand-dark); text-decoration: none; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; }
.brand-te { color: var(--brand); opacity: 1; font-weight: 600; font-size: .9rem; }
.topbar.exam-bar { background: var(--brand-dark); color: #fff; border-bottom: 0; }
.topbar.exam-bar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.series-tag b { color: var(--brand-dark); }

/* buttons */
.btn { border-radius: 12px; background: var(--brand-soft); color: var(--brand); transition: background .15s, transform .06s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.cta, #btn-start.primary, #btn-resume { background: var(--accent); color: #fff; }
.btn.cta:hover, #btn-start.primary:hover, #btn-resume:hover { background: var(--accent-dark); }
.btn.cta { display: inline-block; text-decoration: none; padding: .8rem 1.3rem; font-size: 1.02rem; }
.exam-chip.btn.ghost { border-radius: 999px; font-size: .85rem; }

/* cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* hero */
.hero { background: var(--brand); color: #fff; border-radius: 20px; padding: 1.6rem 1.4rem; margin: .4rem 0 1.1rem; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 22px solid rgba(255,255,255,.07); }
.hero h1 { color: #fff; font-size: 1.75rem; line-height: 1.2; margin-bottom: .2rem; }
.hero .eyebrow { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fac0aa; }
.hero .hero-te { color: #dcd9ff; font-size: 1.1rem; margin-bottom: .7rem; }
.hero .sub { color: #e7e5ff; max-width: 560px; }
.hero-points { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 1.1rem; position: relative; z-index: 1; }
.hero-points span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; }
.hero .btn.cta { position: relative; z-index: 1; }

/* picker */
.pick-head { font-size: 1.15rem; margin: 1.2rem 0 .6rem; scroll-margin-top: 70px; }
.tabs { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .3rem; gap: .3rem; flex-wrap: wrap; box-shadow: var(--shadow); }
.tab { border: 0; border-radius: 10px; background: transparent; color: var(--brand); padding: .5rem .4rem; min-width: 30%; }
.tab.active { background: var(--brand); color: #fff; }
.tab.active .te { color: #dcd9ff; }
.mock-pick { border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .12s, border-color .12s, box-shadow .12s; }
.mock-pick:hover { transform: translateY(-1px); border-color: #c9c5ee; }
.mock-pick.active { border: 2px solid var(--brand); box-shadow: 0 0 0 4px rgba(60,52,137,.12); }
.mp-title { color: var(--brand-dark); }
.mock-pick.locked { opacity: 1; background: #fbfbfe; }
.mock-pick.locked .mp-title { color: var(--muted); }
.lock { color: var(--accent-dark); background: var(--accent-soft); }
.free { color: #0f6e56; background: #e1f5ee; }
.chip.active { background: var(--brand); border-color: var(--brand); }
.facts li { background: var(--brand-soft); border-color: transparent; }
.facts b { color: var(--brand); }
.badge.official { background: #e1f5ee; color: #0f6e56; border-color: #9fe1cb; }

/* grand mock card in brand colours */
.card.grand { background: #fff; border: 2px solid var(--accent); }
.grand-title { color: var(--accent-dark); }
.grand-count { color: var(--brand-dark); }
.badge.grand-b { background: var(--accent-soft); color: var(--accent-dark); border-color: #f0997b; }

/* exam picker screen */
.exam-card { border: 1px solid var(--line); box-shadow: var(--shadow); }
.exam-card.live { border: 2px solid var(--brand); }
.exam-card.live:hover { background: var(--brand-soft); }

/* OMR keeps exam realism; filled bubble = blue ball-point pen */
.bubble.filled { background: var(--pen); border-color: var(--pen); }
.q-num, .q-opts .ol { color: var(--pen); }
.sec-head { background: var(--brand-soft); border-left-color: var(--brand); }
.score-big { color: var(--brand); }

/* footer + help */
.wrap { padding-bottom: 5.5rem; }
.site-foot { text-align: center; margin-top: 2rem; padding-top: 1.4rem; }
.foot-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--brand-dark); }
.foot-brand img { width: 28px; height: 28px; border-radius: 7px; }
.foot-tag { margin: .2rem 0 .8rem; color: var(--muted); font-size: .92rem; }
.site-foot nav a { color: var(--brand); text-decoration: none; margin: 0 .25rem; }
.site-foot nav a:hover { text-decoration: underline; }
.help-fab { background: var(--brand); }
.help-q:hover { background: var(--brand-soft); }

/* legal pages */
.legal .te-sum { background: var(--brand-soft); }

@media (max-width: 600px) {
  .hero { padding: 1.3rem 1.1rem; border-radius: 16px; }
  .hero h1 { font-size: 1.45rem; }
  .brand-te { display: none; }
  .tab { min-width: 45%; font-size: .9rem; }
}

/* =====================================================================
   FEATURES 29 Nov 2026: Today card, trust, strike-out, review grid, learn mode,
   progress page, planner, text size, accessibility
   ===================================================================== */
.brand-title { font-weight: 800; color: var(--brand-dark); }
.brand-title .brand-te { margin-left: .35rem; }

/* trust strip under the hero */
.trust-strip { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: -.3rem 0 1rem; font-size: .85rem; color: #0f6e56; }
.trust-strip span { white-space: nowrap; }
.trust-tag { display: inline-block; margin-left: .3rem; font-size: .8rem; color: #0f6e56; background: #e1f5ee; border-radius: 999px; padding: .05rem .55rem; }

/* Today card */
.card.today h3 { margin-bottom: .5rem; }
.today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.today-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; background: var(--brand-soft); }
.today-list li small { display: block; color: var(--muted); font-size: .8rem; }
.today-list .btn { flex: 0 0 auto; }
.quick-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }

/* strike-out in the booklet */
#booklet .q-opts li { cursor: pointer; border-radius: 8px; padding: .1rem .3rem; }
#booklet .q-opts li:hover { background: #f4f3fd; }
#booklet .q-opts li.struck > span:not(.ol) { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .45; }
#booklet .q-opts li.struck .ol { opacity: .45; }

/* learn mode feedback */
#booklet .q-opts li.is-answer { background: #e1f5ee; }
#booklet .q-opts li.is-wrong-pick { background: #fcebeb; }
.learn-fb { margin: .5rem 0; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); }
.learn-fb.good { background: #f2fbf7; border-color: #9fe1cb; }
.learn-fb.bad { background: #fdf5f4; border-color: #f7c1c1; }

/* exam bar small buttons */
.lang-btn { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); font-family: inherit, var(--te-font); }
@media (max-width: 420px) { #btn-ts { display: none; } .lang-btn { padding: .35rem .5rem; } }

/* review grid in the submit pop-up */
.modal-box { max-height: 90vh; overflow: auto; }
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; margin: .5rem 0; max-height: 40vh; overflow: auto; }
.rg-cell { position: relative; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font: 600 .72rem/1 Inter, sans-serif; color: var(--muted); cursor: pointer; padding: 0; }
.rg-cell.ans { background: var(--pen); border-color: var(--pen); color: #fff; }
.rg-cell.dbl { background: #a32d2d; border-color: #a32d2d; color: #fff; }
.rg-cell.guess::after { content: ""; position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: #ef9f27; }
.rg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .8rem; color: var(--muted); }
.rg-legend .rg-cell { display: inline-block; width: 16px; height: 16px; cursor: default; vertical-align: middle; }

/* answer review header */
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
#sec-filters { margin-bottom: .2rem; }

/* on-track box */
.ontrack { background: var(--brand-soft); border-radius: 12px; padding: .7rem .85rem; line-height: 1.55; }

/* progress page */
.prog-stats { margin-bottom: 1rem; }
.prog-stats .stat { background: #fff; box-shadow: var(--shadow); }
.trend { width: 100%; height: auto; display: block; }
.trend .tg { stroke: var(--line); stroke-width: 1; }
.trend .tl { fill: var(--muted); font-size: 12px; }
.trend .tp { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; }
.trend .td { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.secbar { display: grid; grid-template-columns: minmax(90px, 140px) 1fr 3.2rem; gap: .6rem; align-items: center; margin: .45rem 0; font-size: .92rem; }
.secbar .bar { height: 10px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; }
.secbar .bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.secbar b { text-align: right; }

/* planner */
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.eyebrow-dark { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.ring { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; border: 8px solid var(--brand-soft); border-top-color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font-size: 1.2rem; color: var(--brand-dark); } .ring small { font-size: .7rem; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; margin: 0 0 1rem; }
.wday { background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: .4rem 0; font-size: .8rem; color: var(--muted); }
.wday b { display: block; color: var(--brand-dark); }
.wday.now { border: 2px solid var(--brand); }
.wday.full { background: #e1f5ee; border-color: #9fe1cb; }
.tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.task { display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; align-items: center; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.task .tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--brand); background: #fff; color: #fff; font-weight: 800; cursor: pointer; }
.task.done .tick { background: var(--brand); }
.task.done .ttxt { text-decoration: line-through; color: var(--muted); }
.task .ttxt small { color: var(--muted); }
.task .tact { grid-column: 2; display: flex; flex-wrap: wrap; gap: .35rem; }
.seg { display: flex; gap: .4rem; flex-wrap: wrap; margin: .3rem 0 .6rem; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.syl { list-style: none; padding: 0; margin: .2rem 0 .6rem; display: grid; gap: .25rem; }
.syl small { color: var(--muted); }

/* easier reading */
html.ts-1 { font-size: 112.5%; }
html.ts-2 { font-size: 125%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   LANDING PAGE + SITE MENU (29 Nov 2026)
   ===================================================================== */
.menu-btn { font-size: 1.15rem; line-height: 1; padding: .35rem .65rem; }
.site-bar { gap: .8rem; }
.site-nav { display: flex; gap: 1.1rem; margin-left: auto; }
.site-nav a { color: var(--brand-dark); text-decoration: none; font-weight: 600; font-size: .92rem; }
.site-nav a:hover { color: var(--accent); }
.site-bar .lp-start { margin-left: .4rem; }
.site-bar .menu-btn { display: none; }
@media (max-width: 860px) { .site-nav { display: none; } .site-bar .lp-start { margin-left: auto; } .site-bar .menu-btn { display: inline-block; } }
.topbar .exam-chip + .menu-btn { margin-left: .2rem; }
#screen-progress .menu-btn, #screen-planner .menu-btn { margin-left: auto; }

.lp-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }
.lp-hero { background: var(--brand); color: #fff; padding: 3rem 0 2.6rem; position: relative; overflow: hidden; }
.lp-hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; border: 34px solid rgba(255,255,255,.06); }
.lp-hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.12; margin: .2rem 0; }
.lp-hero .eyebrow { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fac0aa; }
.lp-hero .hero-te { font-family: var(--te-font); color: #dcd9ff; font-size: 1.25rem; margin: .2rem 0 1rem; }
.lp-lead { max-width: 660px; color: #e7e5ff; font-size: 1.08rem; line-height: 1.6; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; position: relative; z-index: 1; }
.lp-ctas.center { justify-content: center; margin-top: 1.6rem; }
.btn.ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); text-decoration: none; padding: .8rem 1.3rem; }
.lp-stats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; position: relative; z-index: 1; }
.lp-stats li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: .8rem 1rem; }
.lp-stats b { display: block; font-size: 1.25rem; }
.lp-stats span { font-size: .85rem; color: #dcd9ff; }

.lp-sec { padding: 3rem 0; scroll-margin-top: 60px; }
.lp-sec.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-sec h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: .3rem; }
.lp-sub { color: var(--muted); margin: 0 0 1.4rem; max-width: 640px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.lp-sec.alt .lp-card { background: var(--bg); box-shadow: none; }
.lp-card h3 { font-size: 1.05rem; margin: .2rem 0 .35rem; }
.lp-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.lp-ic { font-size: 1.6rem; }
.lp-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.2rem 1.6rem; margin-top: 1rem; }
.lp-why > div { border-left: 4px solid var(--accent); padding-left: .9rem; }
.lp-why b { color: var(--brand-dark); font-size: 1.02rem; }
.lp-why p { margin: .3rem 0 0; color: var(--muted); line-height: 1.55; }

.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; align-items: start; }
.plan { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.3rem; }
.plan.featured { background: #fff; border: 2px solid var(--brand); box-shadow: 0 10px 30px rgba(60,52,137,.15); }
.plan.muted-plan { opacity: .9; }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--brand); margin: .4rem 0 .1rem; }
.plan .price s { font-size: 1.2rem; color: var(--muted); font-weight: 600; margin-right: .3rem; }
.plan ul { padding-left: 1.1rem; margin: .9rem 0 1.1rem; line-height: 1.7; }
.plan .btn { width: 100%; text-align: center; text-decoration: none; display: block; }
.plan-badge { position: absolute; top: -12px; left: 1.2rem; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .03em; border-radius: 999px; padding: .2rem .7rem; }

.lp-road { list-style: none; counter-reset: r; padding: 0; margin: 0; display: grid; gap: .8rem; max-width: 760px; }
.lp-road li { counter-increment: r; display: grid; grid-template-columns: 2.4rem 1fr; gap: .1rem .8rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; }
.lp-road li::before { content: counter(r); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lp-road span { color: var(--muted); }

.lp-faq { display: grid; gap: .6rem; max-width: 820px; }
.lp-q { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.lp-q summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); }
.lp-q > div { margin-top: .45rem; line-height: 1.55; }
.lp-q .te { color: var(--muted); }
.landing .site-foot { padding-bottom: 2rem; }

/* site menu panel */
.site-menu { position: fixed; inset: 0; z-index: 80; background: rgba(10,15,40,.45); display: flex; justify-content: flex-end; }
.sm-box { background: #fff; width: min(320px, 88vw); height: 100%; overflow-y: auto; padding: 1rem 1.1rem 2rem; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
.sm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.sm-label { margin: 1rem 0 .3rem; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.sm-box a { display: block; padding: .6rem .5rem; border-radius: 10px; color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.sm-box a:hover, .sm-box a:focus-visible { background: var(--brand-soft); }

/* =====================================================================
   WEBSITE LANGUAGE (29 Nov 2026): html[data-ui] = en (default) | te | both
   Question content (#booklet, #review, #practice, .learn-fb, .rv) follows the test's own language setting.
   ===================================================================== */
html[data-ui="en"] :is(.te, .te-inline, .te-line, .brand-te, .hero-te, .mp-te):not(:is(#booklet, #review, #practice, .learn-fb, .rv) *) { display: none !important; }
html[data-ui="te"] .en-part { display: none; }
html[data-ui="te"] .mock-pick .mp-title { display: none; }
html[data-ui="te"] .mock-pick .mp-te { color: var(--brand-dark); font-weight: 700; font-size: 1rem; }
html[data-ui="te"] .exam-card h3 { display: none; }
html[data-ui="te"] .exam-card .te { font-weight: 800; color: var(--brand-dark); font-size: 1.05rem; }
html[data-ui="te"] body, html[data-ui="te"] [lang="te"] { line-height: 1.7; }

/* dual mode: Telugu twin sits under the English, a little smaller */
html[data-ui="both"] :is(#screen-landing, #site-menu, .hero, .trust-strip, fieldset, .lang-pop) span.te { display: block; font-size: .9em; font-weight: 500; opacity: .85; margin-top: .1rem; }
html[data-ui="both"] :is(.site-nav, .btn, .sm-box a) span.te { font-size: .75em; }
html[data-ui="both"] .lp-hero h1 span.te, html[data-ui="both"] .hero h1 span.te { font-size: .55em; font-weight: 600; opacity: .9; margin-top: .35rem; }
.lp-hero h1 span.te, .hero h1 span.te { display: block; }
html[data-ui="te"] .lp-hero h1, html[data-ui="te"] .hero h1 { font-family: var(--te-font); }

/* language button + pop-up */
.lang-pick { white-space: nowrap; font-weight: 700; }
.topbar .lang-pick { margin-left: auto; }
.topbar .lang-pick ~ .exam-chip, .site-bar .lang-pick ~ .lp-start { margin-left: .3rem; }
.site-nav ~ .lang-pick { margin-left: .5rem; }
.lang-pop { position: fixed; z-index: 90; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(38,33,92,.18); padding: .7rem; width: min(280px, 92vw); }
.lang-pop button { display: block; width: 100%; text-align: left; font: inherit; font-weight: 700; color: var(--brand-dark); background: transparent; border: 1px solid transparent; border-radius: 10px; padding: .6rem .7rem; cursor: pointer; }
.lang-pop button:hover { background: var(--brand-soft); }
.lang-pop button.on, .sm-box a.on { background: var(--brand-soft); border-color: var(--brand); }
.lang-pop button.on::after, .sm-box a.on::after { content: " ✓"; color: var(--accent); }
.lang-pop .note { margin: .4rem .2rem 0; }
@media (max-width: 420px) { .site-bar .lp-start { padding: .4rem .6rem; font-size: .85rem; } .brand > span:first-of-type { font-size: .95rem; } }
/* Telugu / dual: longer labels, so the top bar switches to the ☰ menu sooner and stays on one line */
html:not([data-ui="en"]) .topbar .brand-te { display: none !important; }
.site-nav a, .site-bar .btn { white-space: nowrap; }
@media (max-width: 1240px) {
  html:not([data-ui="en"]) .site-nav { display: none; }
  html:not([data-ui="en"]) .site-bar .menu-btn { display: inline-block; }
  html:not([data-ui="en"]) .site-bar .lang-pick { margin-left: auto; }
}
html[data-ui="both"] .site-bar .lp-start span.te { display: none; }
/* small phones: dashboard bar = logo · language · exam · ☰ (all must fit) */
@media (max-width: 480px) {
  #screen-home .topbar .brand > span, #screen-exams .topbar .brand > span, #screen-progress .brand-title .brand-te, #screen-planner .brand-title .brand-te { display: none !important; }
  .topbar { gap: .4rem; padding-left: .7rem; padding-right: .7rem; }
  .topbar .exam-chip, .topbar .lang-pick, .topbar .menu-btn { padding: .35rem .55rem; font-size: .82rem; }
  #screen-progress .brand-title, #screen-planner .brand-title { font-size: .92rem; }
}

/* dual language: buttons/chips outside the landing page show "English / తెలుగు" on one line */
html[data-ui="both"] :is(.screen:not(#screen-landing)) :is(.btn, .chip) > span.te:not(.lp-cur)::before { content: " / "; }
html[data-ui="both"] :is(.screen:not(#screen-landing)) :is(.btn, .chip) > span.te { display: inline; font-size: .85em; }
/* Today card: Telugu/dual labels are long, so on phones the button drops under the text */
@media (max-width: 600px) {
  html:not([data-ui="en"]) .today-list li { flex-wrap: wrap; }
  html:not([data-ui="en"]) .today-list li > span { flex: 1 1 100%; }
  html:not([data-ui="en"]) .today-list .btn { margin-left: auto; }
}

/* Google login box (29 Nov 2026) */
.login-why { margin: .4rem 0 1rem; padding-left: 1.2rem; color: var(--ink-soft, #444); font-size: .92rem; }
.login-why li { margin: .2rem 0; }
.btn.google { display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 600; padding: .8rem 1rem; font-size: 1rem; }
.btn.google:hover { background: #f6f7fb; }
.btn.google .g-logo { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-weight: 800; color: #fff;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }

/* free-with-login note under CTAs (29 Nov review) */
.lp-login-note { margin: .6rem 0 0; font-size: .9rem; opacity: .9; }
.lp-login-note.center { text-align: center; }
