/* Colours are taken from the Vidhyavahi logo. */
:root {
  --royal: #000896;
  --royal-2: #0b1cc0;
  --ink: #0a1147;
  --ink-2: #111a5e;
  --gold: #ffc21a;
  --orange: #f5821f;
  --orange-text: #b4530a;
  --sky: #37c8ff;
  --paper: #fbf7ee;
  --paper-2: #f3ecdc;
  --card: #fffdf8;
  --line: #e7dfcd;
  --text: #0a1147;
  --muted: #4d5478;
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 600 17px/1.6 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img, svg { display: block; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; background: #fff; border-radius: 10px; font-weight: 800;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 16px;
  font-weight: 800; text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 24px rgba(255, 194, 26, .3); }
.btn-gold:hover { background: #ffcf4d; }
.btn-line { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
.btn-line:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 13px; font-size: 15.5px; box-shadow: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 8, 150, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; letter-spacing: -.01em; text-decoration: none; }
.brand img { border-radius: 11px; }
.brand b { color: var(--orange); font-weight: 900; }
.nav .brand b { color: var(--gold); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; color: rgba(255, 255, 255, .86); }
.nav-links a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(40px, 6vw, 76px) 0 clamp(90px, 10vw, 130px);
  background:
    radial-gradient(620px 460px at 82% 18%, rgba(55, 200, 255, .3), transparent 70%),
    radial-gradient(560px 420px at 4% 96%, rgba(245, 130, 31, .24), transparent 70%),
    var(--royal);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(32px, 4vw, 56px); align-items: center; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 194, 26, .15); color: var(--gold);
  font-weight: 800; font-size: 15.5px;
}
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { transform: scale(3.2); opacity: 0; } }
h1 { margin-top: 20px; font-size: clamp(2.5rem, 5vw, 3.95rem); line-height: 1.06; font-weight: 900; letter-spacing: -.025em; }
h1 span, h1 em { display: block; }
h1 em { font-style: normal; color: var(--gold); }
.lead { margin-top: 20px; max-width: 34em; font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: rgba(255, 255, 255, .88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.exam-strip { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 32px; font-weight: 800; color: rgba(255, 255, 255, .78); font-size: 16px; }
.exam-strip li + li { position: relative; }
.exam-strip li + li::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--orange); }

.book-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(44px, 6.5vw, 90px); fill: var(--paper); }

/* Phone demo: the --p-* values are set from the theme list in script.js */
.demo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  --p-bg: #F0FAF6; --p-sf: #fff; --p-sf2: #E4F5ED; --p-bd: #D4EDE1; --p-tx: #0D1F17; --p-tx2: #3D6B56;
  --p-pr: #008560; --p-ac: #C2410C; --p-ok: #15803D; --p-okbg: #DCFCE7; --p-no: #B91C1C; --p-nobg: #FEE2E2;
  --p-hdr: linear-gradient(135deg, #008560, #006246); --p-hdrtx: #fff; --p-hdrsub: rgba(255, 255, 255, .78); --p-hdrb: transparent;
  --p-r: 16px; --p-optr: 14px; --p-lr: 9px; --p-bw: 1px; --p-sh: 0 3px 12px rgba(0, 168, 120, .12);
  width: 304px; max-width: 100%; padding: 10px; border-radius: 44px;
  background: #060a33;
  box-shadow: 0 30px 70px rgba(0, 3, 60, .55), inset 0 0 0 2px rgba(255, 255, 255, .14);
}
.screen {
  display: flex; flex-direction: column; height: 556px; overflow: hidden;
  border-radius: 34px; background: var(--p-bg); color: var(--p-tx);
  transition: background-color .25s ease, color .25s ease;
}
.p-head { padding: 26px 18px 16px; background: var(--p-hdr); color: var(--p-hdrtx); border-bottom: 2px solid var(--p-hdrb); }
.p-title { display: block; font-size: 19px; font-weight: 900; line-height: 1.2; }
.p-sub { display: block; font-size: 13px; font-weight: 700; color: var(--p-hdrsub); }
.p-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px; min-height: 0; }
.p-card { padding: 13px; background: var(--p-sf); border: var(--p-bw) solid var(--p-bd); border-radius: var(--p-r); box-shadow: var(--p-sh); }
.p-kicker { display: flex; justify-content: space-between; align-items: center; min-height: 20px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--p-ac); }
.p-plus { padding: 0 8px; border-radius: 999px; background: var(--p-okbg); color: var(--p-ok); font-size: 12px; letter-spacing: 0; }
.p-q { margin: 4px 0 10px; font-size: 16px; font-weight: 800; line-height: 1.3; }
.p-opts { display: grid; gap: 7px; }
.p-opt {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 5px 9px;
  border: 1.5px solid var(--p-bd); border-radius: var(--p-optr);
  background: var(--p-sf); color: var(--p-tx); font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.2; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, opacity .15s ease;
}
.p-opt:not(:disabled):hover { border-color: var(--p-pr); }
.p-opt:disabled { cursor: default; color: var(--p-tx); }
.p-opt i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--p-lr); background: var(--p-sf2); color: var(--p-tx2); font-style: normal; font-weight: 800; font-size: 12.5px; }
.p-opt span { flex: 1; }
.p-opt::after { flex: none; font-weight: 900; font-size: 15px; }
.p-opt.ok { border-color: var(--p-ok); background: var(--p-okbg); }
.p-opt.ok i { background: var(--p-ok); color: #fff; }
.p-opt.ok::after { content: "✓"; color: var(--p-ok); }
.p-opt.no { border-color: var(--p-no); background: var(--p-nobg); }
.p-opt.no i { background: var(--p-no); color: #fff; }
.p-opt.no::after { content: "✕"; color: var(--p-no); }
.p-opt.dim { opacity: .55; }
.p-sol { flex: 1; min-height: 0; padding: 11px 13px; font-size: 13.5px; line-height: 1.4; font-weight: 600; border-radius: var(--p-r); background: var(--p-sf2); }
.p-sol p { margin-top: 3px; }
.p-sol strong { font-weight: 900; color: var(--p-ac); }
.p-hint { display: grid; place-items: center; height: 100%; margin: 0 !important; font-weight: 800; color: var(--p-tx2); }
.p-again { display: block; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--p-ac); text-decoration: underline; cursor: pointer; }

.themes { text-align: center; }
.themes-label { font-size: 15.5px; font-weight: 700; color: rgba(255, 255, 255, .84); }
.themes-label b { color: #fff; font-weight: 800; }
.swatches { display: grid; grid-template-columns: repeat(8, 40px); justify-content: center; gap: 2px; margin-top: 6px; }
.swatch { display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.swatch span { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); transition: transform .15s ease, box-shadow .15s ease; }
.swatch:hover span { transform: scale(1.12); }
.swatch[aria-pressed="true"] span { box-shadow: 0 0 0 2px var(--royal), 0 0 0 4px var(--gold); }

/* Sections */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(30px, 4vw, 48px); }
.eyebrow { font-size: 15px; font-weight: 800; color: var(--orange-text); }
h2 { margin-top: 4px; font-size: clamp(2rem, 4vw, 3.05rem); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.section-head h2 + p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
h3 { font-size: 1.32rem; line-height: 1.22; font-weight: 900; letter-spacing: -.01em; }

/* Feature tiles */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.tile { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 32px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.tile p { margin-top: 8px; color: var(--muted); }
.tile > :last-child:not(p) { margin-top: auto; padding-top: 22px; }
.tile-royal { background: var(--royal); border-color: var(--royal); color: #fff; }
.tile-royal h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.tile-royal p { color: rgba(255, 255, 255, .86); }
.tile-warm { background: #ffe9c9; border-color: #fbdcab; }
.tile-warm p { color: #5c4630; }

.subjects { display: flex; flex-wrap: wrap; gap: 8px; }
.subjects li { padding: 6px 15px; border-radius: 999px; background: rgba(255, 255, 255, .13); font-weight: 800; font-size: 15.5px; }
.subjects li:first-child { background: var(--gold); color: var(--ink); }

.mistakes { display: grid; gap: 8px; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px; background: rgba(255, 255, 255, .72); font-weight: 800; font-size: 15px; line-height: 1.25; }
.m-row i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font-style: normal; font-size: 14px; }
.m-done i { background: #15803d; }

.bars { display: grid; gap: 12px; }
.bars span { position: relative; display: block; padding-bottom: 12px; }
.bars b { font-size: 15px; font-weight: 800; }
.bars span::before, .bars span::after { content: ""; position: absolute; left: 0; bottom: 0; height: 7px; border-radius: 7px; }
.bars span::before { width: 100%; background: var(--paper-2); }
.bars span::after { width: var(--w); background: #15803d; }
.bars .low::after { background: var(--orange); }

.rewards { display: grid; gap: 16px; }
.week { display: flex; gap: 6px; }
.week span { flex: 0 1 44px; display: grid; place-items: center; aspect-ratio: 1; border-radius: 13px; background: var(--paper-2); color: var(--muted); font-weight: 800; font-size: 15px; }
.week .on { background: var(--orange); color: var(--ink); }
.medals { display: flex; flex-wrap: wrap; gap: 10px; }
.medal { padding: 7px 17px 7px 13px; border-radius: 999px; font-weight: 800; font-size: 15.5px; display: inline-flex; align-items: center; gap: 8px; }
.medal::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: currentColor; }
.bronze { background: #f6e3d3; color: #8a4b1c; }
.silver { background: #e7eaf1; color: #56607a; }
.gold { background: #fff0c2; color: #8f6400; }

.extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: clamp(34px, 5vw, 56px); }
.extras li { padding-top: 16px; border-top: 3px solid var(--orange); }
.extras h3 { font-size: 1.12rem; }
.extras p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Tests */
.section-ink { background: var(--ink); color: #fff; }
.section-ink .eyebrow { color: var(--gold); }
.section-ink .section-head h2 + p { color: rgba(255, 255, 255, .78); }
.timetable { width: 100%; border-collapse: collapse; }
.timetable thead th { padding: 0 16px 12px 0; font-size: 15px; font-weight: 800; text-align: left; color: rgba(255, 255, 255, .66); }
.timetable tbody tr { border-top: 1px solid rgba(255, 255, 255, .15); transition: background-color .15s ease; }
.timetable tbody tr:hover { background: var(--ink-2); }
.timetable tbody th { padding: 18px 16px 18px 0; font-size: 1.2rem; font-weight: 900; text-align: left; white-space: nowrap; }
.timetable td { padding: 18px 16px 18px 0; color: rgba(255, 255, 255, .82); }
.timetable td:nth-child(3), .timetable td:nth-child(4) { color: var(--gold); font-weight: 800; white-space: nowrap; }
.timetable td:last-child, .timetable thead th:last-child { padding-right: 0; }

/* Exams */
.exams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.exam { padding: clamp(20px, 2.5vw, 30px); }
.exam + .exam { border-left: 1px solid var(--line); }
.exam h3 { font-size: 1.85rem; letter-spacing: -.02em; }
.subs { margin-top: 6px; min-height: 3.2em; color: var(--muted); font-size: 16px; line-height: 1.45; }
.marks { margin-top: 14px; font-weight: 700; font-size: 15.5px; color: var(--muted); }
.marks b { color: #137638; font-size: 1.32rem; font-weight: 900; }
.marks b.neg { margin-left: 10px; color: #b91c1c; }
.marks b.zero { margin-left: 10px; color: var(--muted); }

.promise { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 22px; padding: 20px 24px; border-radius: var(--r); background: var(--paper-2); }
.promise p { flex: 1 1 340px; color: var(--muted); font-size: 16px; }
.promise a { font-weight: 800; color: var(--text); white-space: nowrap; }

/* FAQ */
.section-tint { background: var(--paper-2); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 64px); align-items: start; }
.faq details { border-bottom: 1px solid #dacfb6; }
.faq details:first-child { border-top: 1px solid #dacfb6; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; font-size: 1.1rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--orange-text); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }
.faq details a { font-weight: 800; color: var(--text); }

/* Launch */
.launch {
  padding: clamp(64px, 9vw, 110px) 0; color: #fff; text-align: center;
  background: radial-gradient(520px 340px at 50% 0%, rgba(55, 200, 255, .32), transparent 72%), var(--royal);
}
.launch-in { display: flex; flex-direction: column; align-items: center; }
.launch img { border-radius: 26px; box-shadow: 0 16px 40px rgba(0, 3, 60, .5); }
.launch h2 { margin-top: 22px; }
.launch p { max-width: 30em; margin-top: 12px; color: rgba(255, 255, 255, .88); font-size: 1.08rem; }
.launch .btn { margin-top: 24px; }
.launch .small { font-size: 15px; color: rgba(255, 255, 255, .78); overflow-wrap: anywhere; }
.launch .small a { font-weight: 800; color: #fff; }

/* Footer */
.footer { padding: 22px 0; background: var(--ink); color: rgba(255, 255, 255, .76); font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.brand-small { font-size: 18px; color: #fff; }
.brand-small img { border-radius: 8px; }
.footer a { font-weight: 800; color: #fff; }

/* Reveal on scroll, only once script is known to be running */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .nav-row { justify-content: space-between; }
  .span-7, .span-5 { grid-column: span 12; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam:nth-child(3) { border-left: 0; }
  .exam:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { margin-bottom: 8px; }
}

@media (max-width: 680px) {
  .timetable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .timetable, .timetable tbody, .timetable tr, .timetable th, .timetable td { display: block; }
  .timetable tbody tr { padding: 16px 0; }
  .timetable tbody tr:hover { background: none; }
  .timetable tbody th { padding: 0 0 4px; }
  .timetable td { padding: 0; white-space: normal !important; }
  .timetable td:nth-child(3), .timetable td:nth-child(4) { display: inline; }
  .timetable td:nth-child(2) { margin-bottom: 6px; }
  .timetable td:nth-child(3)::after { content: " questions · "; font-weight: 700; color: rgba(255, 255, 255, .7); }
  .hero-cta .btn { flex: 1 1 100%; }
  .swatches { grid-template-columns: repeat(4, 44px); }
  .swatch { width: 44px; }
}

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .exam-strip li + li::before { display: none; }
  .extras { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .exams { grid-template-columns: minmax(0, 1fr); }
  .exam + .exam { border-left: 0; border-top: 1px solid var(--line); }
  .subs { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
