/* prepzo.live. Colours are the app's tokens (contracts/tokens/tokens.json): Day, and Night study in dark mode. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("/fonts/mukta-regular.woff2") format("woff2"); font-weight: 400 500; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; src: url("/fonts/mukta-bold.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A8E0-A8FF; }

:root {
  color-scheme: light;
  --paper: #f3f5fa; --raised: #ffffff; --sunken: #eef1f7; --rule: #e7eaf2; --rule-strong: #78839a;
  --graphite: #0f1426; --muted: #5a6378;
  --ink: #2b3fd6; --ink-2: #4a5dff; --ink-fill: #2b3fd6; --ink-fill-2: #4a5dff; --ink-pressed: #2033b8; --ink-soft: #eef0ff; --on-ink: #ffffff;
  --hl: #ffdf3d; --hl-soft: #fff6c4; --on-hl: #131929;
  --correct: #0f7a52; --correct-soft: #e6f6ee; --wrong: #c2311f;
  --nta-not: #c2391f; --nta-ans: #1a7a3c; --nta-mark: #6a3ea6; --nta-nv: #e3e6ec; --on-nta: #ffffff;
  --shadow-card: 0 1px 2px rgba(20, 28, 64, 0.04), 0 8px 24px -6px rgba(20, 28, 64, 0.08);
  --shadow-ink: 0 8px 20px -6px rgba(43, 63, 214, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --wash: rgba(43, 63, 214, 0.07);
  --r-tile: 6px; --r-btn: 14px; --r-card: 24px;
  --font: "Plus Jakarta Sans", "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0b0e19; --raised: #151a2b; --sunken: #0f1322; --rule: #232a40; --rule-strong: #6b7593;
    --graphite: #eceff7; --muted: #a3abc0;
    --ink: #8fa1ff; --ink-2: #a9b7ff; --ink-fill: #3f51e0; --ink-fill-2: #5265f7; --ink-pressed: #3445c4; --ink-soft: #1b2350;
    --hl: #f5d43a; --hl-soft: #3a3310;
    --correct: #4fd39c; --correct-soft: #0f3326; --wrong: #ff8a7a;
    --nta-mark: #7a4cbb; --nta-nv: #2a3046;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px -6px rgba(0, 0, 0, 0.5);
    --shadow-ink: 0 8px 24px -8px rgba(82, 101, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    --wash: rgba(143, 161, 255, 0.07);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--graphite);
  font: 450 17px/1.6 var(--font); font-feature-settings: "tnum" 0;
  background-image: linear-gradient(180deg, var(--wash), transparent 420px); background-repeat: no-repeat;
}
:lang(hi) { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--raised); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header and footer */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 28px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 16px; }
.lang { font-weight: 600; text-decoration: none; color: var(--graphite); }
.foot { margin-top: 96px; padding: 32px 0 48px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.foot-nav a { color: var(--graphite); font-weight: 600; text-decoration: none; }
.foot p { margin: 4px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn);
  background: linear-gradient(180deg, var(--ink-fill-2), var(--ink-fill)); color: var(--on-ink); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-ink); border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { background: var(--ink-pressed); }
.btn-small { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 15px; }
.btn-quiet { background: var(--raised); color: var(--graphite); box-shadow: 0 0 0 1px var(--rule-strong) inset; }
.play { display: inline-block; line-height: 0; margin: -12px -12px; } /* Google's badge carries its own clear space */
.play img { height: 80px; width: auto; }

/* Type */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(36px, 6.4vw, 60px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { letter-spacing: 0; line-height: 1.25; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; margin: 20px 0 28px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; margin: 0 0 12px; }
mark.hl { background: linear-gradient(transparent 55%, var(--hl) 55%, var(--hl) 92%, transparent 92%); color: inherit; padding: 0 2px; }
@media (prefers-color-scheme: dark) { mark.hl { background: linear-gradient(transparent 55%, rgba(245, 212, 58, 0.42) 55%, rgba(245, 212, 58, 0.42) 92%, transparent 92%); } }

/* Home: hero */
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.hero-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 28px; } }

/* The NTA screen, drawn: palette shapes and colours as in the app's Exam Hall */
.nta { background: var(--raised); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 18px; max-width: 420px; width: 100%; justify-self: center; font-size: 13px; }
.nta-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.nta-head b { font-size: 14px; }
.nta-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.nta-time span { color: var(--muted); font-weight: 500; margin-right: 6px; }
.nta-tabs { display: flex; gap: 6px; margin: 12px 0; overflow: hidden; }
.nta-tabs span { padding: 5px 10px; border-radius: 999px; background: var(--sunken); color: var(--muted); font-weight: 600; white-space: nowrap; }
.nta-tabs .on { background: var(--ink-soft); color: var(--ink); }
.nta-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 6px 4px 14px; }
.t { font-style: normal; aspect-ratio: 1.15; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; position: relative; border-radius: var(--r-tile); }
.t-nv { background: var(--nta-nv); color: var(--graphite); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.t-ans { background: var(--nta-ans); color: var(--on-nta); clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%); border-radius: 0; padding-bottom: 6px; }
.t-not { background: var(--nta-not); color: var(--on-nta); clip-path: polygon(50% 0, 100% 32%, 100% 100%, 0 100%, 0 32%); border-radius: 0; padding-top: 6px; }
.t-mark, .t-am { background: var(--nta-mark); color: var(--on-nta); border-radius: 50%; aspect-ratio: 1; width: 86%; justify-self: center; }
.t-am::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--nta-ans) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; box-shadow: 0 0 0 2px var(--raised); }
.t-now { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.nta-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 12px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.nta-legend span { display: flex; align-items: center; gap: 8px; }
.nta-legend i { width: 14px; height: 13px; flex: none; }
.nta-legend .t-mark, .nta-legend .t-am { width: 13px; }
.nta-legend .t-am::after { width: 7px; height: 7px; right: -3px; bottom: -3px; background-image: none; box-shadow: 0 0 0 1px var(--raised); }
.nta-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.nta-btns span { flex: 1 1 auto; text-align: center; padding: 9px 10px; border-radius: 4px; font-weight: 600; border: 1px solid var(--rule-strong); }
.nta-btns .save { background: var(--nta-ans); color: var(--on-nta); border-color: var(--nta-ans); }

/* Home: features */
.section { padding: 72px 0 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 12px 0 0; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.feature { padding: 28px 0; border-top: 1px solid var(--rule); }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }
.feature .detail { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--sunken); font-size: 14px; font-weight: 600; color: var(--graphite); }
.chip-hl { background: var(--hl); color: var(--on-hl); }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; align-items: center; gap: 0; font-size: 14px; font-weight: 700; }
.steps li { display: flex; align-items: center; color: var(--graphite); }
.steps li + li::before { content: ""; width: 22px; height: 2px; background: var(--rule-strong); margin: 0 6px; opacity: 0.5; }
.steps b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--ink-soft); color: var(--ink); }
.steps .done b { background: var(--correct-soft); color: var(--correct); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* Home: plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--raised); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 28px; }
.plan-pass { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--ink); }
.plan h3 { font-size: 22px; }
.plan .sub { color: var(--muted); margin: 6px 0 16px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--rule); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%232B3FD6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.plan-foot { margin-top: 20px; font-size: 15px; color: var(--muted); }
.prices { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; background: var(--raised); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.prices th, .prices td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.prices th { font-size: 13px; color: var(--muted); font-weight: 700; }
.prices .num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.prices tr:last-child td { border-bottom: 0; }
.prices-missing { margin-top: 20px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .prices th, .prices td { padding: 10px; } }

/* Home: closing call */
.cta { margin-top: 72px; padding: 40px; border-radius: var(--r-card); background: linear-gradient(160deg, #141a3a, #252e66); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.78); }
@media (max-width: 560px) { .cta { padding: 28px 20px; } }

/* Documents: legal pages, contact, delete account */
.doc { max-width: 760px; padding-top: 40px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc .meta { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; scroll-margin-top: 80px; }
.doc h3 { margin: 24px 0 8px; font-size: 18px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.doc th { font-size: 13px; color: var(--muted); font-weight: 700; }
.doc td:first-child { font-weight: 600; width: 30%; }
.table-scroll { overflow-x: auto; }
.toc { background: var(--raised); box-shadow: var(--shadow-card); border-radius: 16px; padding: 16px 20px; margin: 28px 0 0; font-size: 15px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } .doc td:first-child { width: 38%; } }
.review { margin: 20px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--hl-soft); color: var(--graphite); font-size: 15px; font-weight: 600; }
.box { background: var(--raised); box-shadow: var(--shadow-card); border-radius: 16px; padding: 20px 24px; margin: 20px 0; }
.box p { margin: 6px 0; }
.box dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.box dt { color: var(--muted); font-weight: 600; }
.box dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .box dl { grid-template-columns: 1fr; gap: 2px; } .box dd { margin-bottom: 10px; } }
mark.fill { background: var(--hl); color: var(--on-hl); padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: 0.9em; }

/* Fallback pages: /join/<code>, /app/… */
.fallback { max-width: 560px; padding-top: 48px; text-align: center; }
.fallback h1 { font-size: clamp(30px, 5vw, 40px); }
.fallback .lead { margin-left: auto; margin-right: auto; }
.code { display: inline-flex; align-items: center; gap: 12px; margin: 8px 0 24px; padding: 12px 14px 12px 22px; border-radius: 16px; background: var(--raised); box-shadow: var(--shadow-card); }
.code b { font-size: 30px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.copy { min-height: 40px; padding: 0 14px; font-size: 15px; }
.howto { text-align: left; background: var(--raised); box-shadow: var(--shadow-card); border-radius: 16px; padding: 18px 22px 18px 42px; margin: 28px 0 0; }
.howto li { margin: 6px 0; }
.or { color: var(--muted); font-size: 15px; margin: 18px 0 8px; }
.fallback .actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.alt-lang { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted); }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.fallback .spaced { margin-top: 28px; }
