* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: #f4f6f9;
  color: #1a1a2e;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #14213d;
  padding: 16px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .brand {
  color: #f5f2ea;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
}
.nav-links a {
  color: #b9c2d6;
  text-decoration: none;
  margin-left: 22px;
  font-size: 0.92rem;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: #f5f2ea; border-color: #b8862b; }
.nav-user { color: #d9ad4e; margin-left: 22px; font-size: 0.88rem; }

.container {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 20px;
}
.container.is-landing {
  max-width: none;
  margin: 0;
  padding: 0;
}

.flash {
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.flash-success { background: #d4edda; color: #155724; }
.flash-danger { background: #f8d7da; color: #721c24; }
.flash-info { background: #d1ecf1; color: #0c5460; }
.flash-warning { background: #fff3cd; color: #856404; }

.card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

h1, h2, h3 { margin-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e5e8ec;
  font-size: 0.92rem;
}
th { color: #555; font-weight: 600; }

form.stacked label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 600;
  font-size: 0.9rem;
}
form.stacked input[type=text],
form.stacked input[type=email],
form.stacked input[type=password],
form.stacked input[type=number],
form.stacked input[type=datetime-local],
form.stacked select,
form.stacked textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 0.95rem;
}
form.stacked textarea { min-height: 90px; font-family: inherit; }

.btn {
  display: inline-block;
  background: #3454d1;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  margin-top: 14px;
}
.btn:hover { background: #2a41a8; }
.btn-danger { background: #c0392b; }
.btn-danger:hover { background: #992d22; }
.btn-secondary { background: #6c757d; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-mcq { background: #e0e7ff; color: #3730a3; }
.badge-multi { background: #e0f2fe; color: #075985; }
.badge-numeric { background: #fce7f3; color: #9d174d; }
.badge-coding { background: #dcfce7; color: #166534; }
.badge-subjective { background: #fef3c7; color: #92400e; }

.timer {
  position: sticky;
  top: 10px;
  background: #1a1a2e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  z-index: 10;
}
.question-block {
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.option-row { margin: 6px 0; }
code, pre {
  background: #f0f2f5;
  border-radius: 6px;
  padding: 2px 6px;
  font-family: "SF Mono", Menlo, monospace;
}
pre { padding: 12px; overflow-x: auto; }
.muted { color: #777; font-size: 0.85rem; }

/* ===== Landing page ===== */
.lp-hero {
  background: #14213d;
  padding: 96px 24px 84px;
  text-align: center;
}
.lp-hero-inner {
  max-width: 620px;
  margin: 0 auto;
  animation: lp-rise 0.6s ease-out both;
}
.lp-seal { display: inline-flex; margin-bottom: 20px; }
.lp-hero h1 {
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  font-weight: 600;
  font-size: 2.75rem;
  line-height: 1.15;
  color: #f5f2ea;
  margin: 0 0 18px;
}
.lp-sub {
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #b9c2d6;
  max-width: 480px;
  margin: 0 auto 32px;
}
.lp-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.lp-btn-primary {
  background: #b8862b;
  color: #1a1408;
  border: none;
  font-weight: 600;
  padding: 12px 28px;
}
.lp-btn-primary:hover { background: #cc9a34; }
.lp-link {
  color: #d9ad4e;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(217,173,78,0.4);
  padding-bottom: 2px;
}
.lp-link:hover { border-color: #d9ad4e; }

.lp-stats {
  max-width: 720px;
  margin: -40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  position: relative;
}
.lp-stat-card {
  background: #fff;
  border: 1px solid #e3e6ec;
  border-radius: 12px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(20, 33, 61, 0.08);
}
.lp-stat-num {
  display: block;
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  font-weight: 600;
  font-size: 2.1rem;
  color: #14213d;
  line-height: 1;
  margin-bottom: 8px;
}
.lp-stat-label {
  display: block;
  font-size: 0.82rem;
  color: #5b6478;
  line-height: 1.4;
}

.lp-steps {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px 28px;
}
.lp-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.lp-step-num {
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #b8862b;
  line-height: 1;
  flex-shrink: 0;
}
.lp-step h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: #1a1a2e;
}
.lp-step p {
  margin: 0;
  font-size: 0.88rem;
  color: #5b6478;
  line-height: 1.5;
}

.lp-guard {
  background: #1a1a2e;
  margin: 56px auto;
  padding: 48px 24px;
  display: flex;
  gap: 28px;
  align-items: center;
  max-width: 880px;
  border-radius: 14px;
}
.lp-guard-icon { flex-shrink: 0; }
.lp-guard h2 {
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  color: #f5f2ea;
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.lp-guard p {
  color: #b9c2d6;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

.lp-features {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.lp-feature h3 {
  font-size: 1.02rem;
  color: #1a1a2e;
  margin: 0 0 8px;
  border-left: 3px solid #b8862b;
  padding-left: 12px;
}
.lp-feature p {
  margin: 0 0 0 15px;
  font-size: 0.9rem;
  color: #5b6478;
  line-height: 1.55;
}

.lp-final-cta {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.lp-final-card {
  background: #fff;
  border: 1px solid #e3e6ec;
  border-radius: 14px;
  padding: 44px 32px;
  text-align: center;
}
.lp-final-card h2 {
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  font-size: 1.6rem;
  color: #1a1a2e;
  margin: 0 0 10px;
}
.lp-final-card p {
  color: #5b6478;
  font-size: 0.95rem;
  margin: 0 0 22px;
}

.lp-footer {
  background: #14213d;
  padding: 48px 24px 0;
  margin-top: 20px;
}
.lp-footer-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lp-footer-brand {
  display: block;
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  font-size: 1.1rem;
  color: #f5f2ea;
  margin-bottom: 10px;
}
.lp-footer-col p {
  color: #8592ad;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
.lp-footer-col h4 {
  color: #d9ad4e;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.lp-footer-col a {
  display: block;
  color: #b9c2d6;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.lp-footer-col a:hover { color: #f5f2ea; }
.lp-footer-bottom {
  text-align: center;
  padding: 20px 0;
  color: #6a7690;
  font-size: 0.82rem;
}
.lp-footer-bottom strong { color: #d9ad4e; }

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero-inner { animation: none; }
}
@media (max-width: 640px) {
  .lp-hero h1 { font-size: 2.1rem; }
  .lp-guard { flex-direction: column; text-align: center; border-radius: 0; }
  .lp-footer-grid { grid-template-columns: 1fr; }
}

/* Logout is a POST form (CSRF-safe) styled to look like a nav link */
.nav-links form { display: inline; margin: 0; }
.nav-logout {
  background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  color: #b9c2d6; font: inherit; font-size: 0.92rem; margin: 0 0 0 22px; padding: 0 0 3px;
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.nav-logout:hover { color: #f5f2ea; border-color: #b8862b; }


/* ---- exam layout: question + palette ---- */
.exam-layout { display: flex; gap: 20px; align-items: flex-start; }
.exam-main { flex: 1; min-width: 0; }
.palette { width: 250px; flex-shrink: 0; position: sticky; top: 70px; background: #fff; border-radius: 10px;
  padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.palette-counts { font-size: 0.8rem; color: #555; margin-bottom: 8px; }
.palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; max-height: 320px; overflow-y: auto; }
.pbtn, .pb { border: none; border-radius: 6px; font-size: 0.82rem; font-weight: 600; }
.pbtn { height: 36px; cursor: pointer; margin: 0; padding: 0; }
.pbtn.locked { cursor: not-allowed; opacity: 0.75; }
.pbtn.current { outline: 3px solid #1a1a2e; outline-offset: 1px; }
.pbtn.answered, .pb.answered { background: #16a34a; color: #fff; }
.pbtn.unanswered, .pb.unanswered { background: #dc2626; color: #fff; }
.pbtn.notvisited, .pb.notvisited { background: #e5e7eb; color: #374151; }
.pbtn.marked, .pb.marked { background: #7c3aed; color: #fff; }
.pbtn.marked-answered, .pb.marked-answered { background: #7c3aed; color: #fff; box-shadow: inset 0 0 0 3px #16a34a; }
.palette-legend { display: flex; flex-direction: column; gap: 3px; font-size: 0.75rem; color: #555; margin-bottom: 10px; }
.palette-legend .pb { display: inline-block; width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }
.q-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 5px 12px; font-size: 0.82rem; margin-top: 0; }
.nav-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.nav-bar .btn { margin-top: 0; }
.nav-bar .btn:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 820px) {
  .exam-layout { flex-direction: column; }
  .palette { width: auto; position: static; }
}

/* ---- English / Hindi switch: pages carry both versions, the data-lang attribute decides which one shows ---- */
.lang-hi { display: none; }
html[data-lang="hi"] .lang-hi { display: inline; }
html[data-lang="hi"] .lang-en { display: none; }


/* ---------- sign-in / register: brand panel + form ---------- */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 980px; margin: 18px auto 0; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 44px rgba(20,33,61,.16); background: #fff; }
.auth-split .auth-card { max-width: none !important; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 38px 36px; align-self: center; }
.auth-brand {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 34px 34px 28px; color: #dfe6fa;
  background: radial-gradient(420px 260px at 95% -5%, rgba(217,173,78,.40), transparent 70%), radial-gradient(360px 280px at -10% 105%, rgba(84,120,255,.32), transparent 70%), linear-gradient(145deg, #14213d, #1d3166);
}
.auth-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.auth-pitch h2 { color: #fff; font-size: 2rem; line-height: 1.12; margin: 0 0 12px; letter-spacing: -.02em; }
.auth-pitch p { color: #c3cdea; margin: 0 0 18px; max-width: 36ch; }
.auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-pitch li { padding-left: 16px; border-left: 3px solid #d9ad4e; color: #c3cdea; font-size: .94rem; line-height: 1.4; }
.auth-pitch li b { color: #fff; }
.auth-note { margin: 0; color: #e8c978; font-style: italic; font-size: .95rem; }
@media (max-width: 820px) {
  .auth-split { grid-template-columns: 1fr; margin-top: 4px; }
  .auth-brand { padding: 22px 22px 20px; gap: 14px; }
  .auth-pitch h2 { font-size: 1.45rem; }
  .auth-pitch ul, .auth-note { display: none; }
  .auth-split .auth-card { padding: 26px 22px; }
}

/* ---------- site footer ---------- */
.site-footer { margin-top: 48px; color: #b9c4e4; background: radial-gradient(520px 220px at 100% 0%, rgba(217,173,78,.22), transparent 70%), linear-gradient(160deg, #101b34, #1a2c5c); border-top: 3px solid #d9ad4e; }
.sf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; max-width: 980px; margin: 0 auto; padding: 36px 24px 22px; }
.sf-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.sf-brand p { margin: 12px 0 14px; max-width: 32ch; line-height: 1.5; font-size: .94rem; }
.sf-install { background: transparent; color: #f2dca0; border: 1px solid #d9ad4e; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: .88rem; cursor: pointer; }
.sf-install[hidden] { display: none; }
.sf-links, .sf-credit { display: flex; flex-direction: column; gap: 8px; font-size: .94rem; }
.sf-links b, .sf-credit b { color: #fff; font-size: .95rem; margin-bottom: 4px; }
.sf-links a { color: #b9c4e4; text-decoration: none; width: fit-content; }
.sf-links a:hover, .sf-links a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sf-credit p { margin: 0; line-height: 1.5; }
.sf-name { color: #e8c978; font-size: 1.15rem; letter-spacing: .01em; }
.sf-powered { display: inline-flex; align-items: center; gap: 7px; }
.sf-powered strong { color: #fff; }
.bd-mark { flex: none; }
.sf-bottom { max-width: 980px; margin: 0 auto; padding: 14px 24px 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: #8e9bbb; }
.site-footer.slim { margin-top: 28px; background: none; border-top: 1px solid #e3e8f1; color: #6b7390; }
.sf-slim { display: flex; justify-content: center; align-items: center; gap: 8px 22px; flex-wrap: wrap; padding: 16px; font-size: .84rem; }
.sf-slim strong { color: #3a4468; }
.site-footer.slim .sf-powered { color: #6b7390; }
.site-footer.slim .sf-powered strong { color: #14213d; }
@media (max-width: 760px) { .sf-grid { grid-template-columns: 1fr; gap: 22px; padding: 28px 20px 14px; } .sf-bottom { padding: 12px 20px 20px; } }

/* a thin brass line under the top bar ties the pages to the footer */
.navbar { border-bottom: 3px solid #d9ad4e; }

/* ===== Landing page v2 ===== */
.is-landing { font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; }
.is-landing h1, .is-landing h2 { font-family: 'Fraunces', Georgia, serif; }
.lp2-hero { position: relative; overflow: hidden; background: #14213d; padding: 56px 24px 64px; }
.lp2-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #b8862b; filter: blur(90px); opacity: .22; top: -160px; left: -120px; animation: lp2-drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes lp2-drift { to { transform: translate(80px, 50px); } }
.lp2-hero-grid { position: relative; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.lp2-eyebrow { color: #d9ad4e; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; animation: lp2-rise .6s ease-out both; }
.lp2-hero h1 { color: #f5f2ea; font-weight: 600; font-size: 3.1rem; line-height: 1.12; margin: 0 0 18px; animation: lp2-rise .7s ease-out .12s both; }
.lp2-sub { color: #b9c2d6; font-size: 1.05rem; line-height: 1.6; max-width: 480px; margin: 0 0 28px; animation: lp2-rise .7s ease-out .25s both; }
.lp2-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp2-cta .btn { animation: lp2-rise .7s ease-out .36s both; }
.lp2-cta .btn:nth-child(2) { animation-delay: .48s; }
.lp2-cta .btn, .lp2-final .btn { margin-top: 0; }
.lp2-btn { background: #b8862b; color: #1a1408; font-weight: 600; padding: 13px 26px; border-radius: 8px; transition: transform .2s, box-shadow .2s, background .2s; }
.lp2-btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.lp2-btn:focus-visible, .lp2-btn-ghost:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lp2-btn-ghost:active { transform: scale(.98); }
.lp2-btn:hover { background: #cc9a34; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(184,134,43,.35); }
.lp2-btn-ghost { background: transparent; color: #f5f2ea; border: 1.5px solid #b9c2d6; padding: 12px 24px; border-radius: 8px; transition: border-color .2s, transform .2s; }
.lp2-btn-ghost:hover { background: transparent; border-color: #d9ad4e; transform: translateY(-2px); }

.lp2-exam { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: lp2-float .9s cubic-bezier(.2,.7,.2,1) .3s both; }
.lp2-stage { position: relative; height: 330px; }
.lp2-slide { position: absolute; inset: 0; padding: 18px 20px; opacity: 0; transform: translateX(26px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.lp2-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.lp2-exam-top { display: flex; justify-content: space-between; align-items: center; color: #1a1a2e; font-size: .92rem; margin-bottom: 12px; }
.lp2-timer { background: #fde8e8; color: #8a1f1f; border-radius: 999px; padding: 3px 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lp2-exam-body { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 16px; }
.lp2-exam-body p, .lp2-q { margin: 8px 0 12px; color: #1a1a2e; font-size: .95rem; line-height: 1.5; }
.lp2-badge { display: inline-block; background: #e0e7ff; color: #3730a3; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 10px; }
.lp2-opt { border: 1.5px solid #d0d5dd; border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; color: #1a1a2e; font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.lp2-opt.sel { background: #fff; }
.lp2-slide.on .lp2-opt.sel { animation: lp2-select .5s ease-out 1.1s both; }
@keyframes lp2-select { to { background: #eef1f8; border-color: #14213d; } }
.lp2-opt .bx { position: relative; width: 16px; height: 16px; border: 1.5px solid #9aa3b5; border-radius: 4px; flex: none; }
.lp2-opt .bx::after { content: ""; position: absolute; left: 4px; top: 0; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.lp2-slide.on .lp2-opt.c[style] .bx { animation: lp2-tick .3s ease-out var(--d) forwards; }
.lp2-slide.on .lp2-opt.c[style] .bx::after { animation: lp2-showtick .1s linear var(--d) forwards; }
@keyframes lp2-tick { to { background: #14213d; border-color: #14213d; } }
@keyframes lp2-showtick { to { opacity: 1; } }
.lp2-opt sub { font-size: .7em; }
.lp2-pal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-content: start; padding-top: 4px; }
.lp2-pal i { height: 22px; border-radius: 4px; background: #e0e3ea; opacity: 0; }
.lp2-pal i.a { background: #4caf7a; } .lp2-pal i.r { background: #8e6bd1; } .lp2-pal i.n { background: #b8862b; }
.lp2-slide.on .lp2-pal i { animation: lp2-pop .35s ease-out forwards; }
.lp2-pal i:nth-child(1){animation-delay:.3s}.lp2-pal i:nth-child(2){animation-delay:.4s}.lp2-pal i:nth-child(3){animation-delay:.5s}.lp2-pal i:nth-child(4){animation-delay:.6s}
.lp2-pal i:nth-child(5){animation-delay:.7s}.lp2-pal i:nth-child(6){animation-delay:.8s}.lp2-pal i:nth-child(7){animation-delay:.9s}.lp2-pal i:nth-child(8){animation-delay:1s}
@keyframes lp2-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.lp2-num { border: 1.5px solid #14213d; border-radius: 8px; padding: 8px 12px; background: #eef1f8; display: flex; flex-direction: column; gap: 2px; }
.lp2-num small { color: #5b6478; font-size: .74rem; }
.lp2-num b { font: 600 1.5rem 'Fraunces', Georgia, serif; color: #14213d; display: flex; align-items: center; min-height: 34px; }
.lp2-num .val { opacity: 0; }
.lp2-slide.on .lp2-num .val { animation: lp2-show .1s linear 1.2s forwards; }
.lp2-num .caret { width: 2px; height: 22px; background: #14213d; margin-left: 2px; animation: lp2-blink 1s steps(1) infinite; }
@keyframes lp2-show { to { opacity: 1; } } @keyframes lp2-blink { 50% { opacity: 0; } }
.lp2-hint { font-size: .8rem !important; color: #5b6478 !important; }
.lp2-code { background: #0e172b; border-radius: 10px; padding: 14px 16px; font: .9rem/1.8 ui-monospace, Menlo, Consolas, monospace; color: #e8ebf5; }
.lp2-code u { text-decoration: none; color: #8fb4ff; } .lp2-code em { font-style: normal; color: #d9ad4e; }
.lp2-cl { opacity: 0; transform: translateX(-8px); }
.lp2-slide.on .lp2-cl { animation: lp2-line .4s ease-out var(--d) forwards; }
@keyframes lp2-line { to { opacity: 1; transform: none; } }
.lp2-runrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.lp2-run { background: #b8862b; color: #1a1408; font-weight: 600; font-size: .85rem; padding: 6px 16px; border-radius: 6px; }
.lp2-slide.on .lp2-run { animation: lp2-press .4s ease-out 2.8s; }
@keyframes lp2-press { 50% { transform: scale(.9); } }
.lp2-res { display: inline-flex; align-items: center; gap: 6px; color: #166534; background: #dcfce7; font-size: .85rem; font-weight: 500; padding: 5px 12px; border-radius: 6px; opacity: 0; }
.lp2-res svg { width: 16px; height: 16px; fill: none; stroke: #166534; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp2-slide.on .lp2-res { animation: lp2-show .3s ease-out 3.4s forwards; }
.lp2-scene { padding: 0; }
.lp2-scene svg { width: 100%; height: 100%; display: block; }
.lp2-cap { position: absolute; left: 14px; bottom: 12px; background: rgba(14,23,43,.78); color: #f5f2ea; font-size: .78rem; padding: 5px 12px; border-radius: 999px; }
.lp2-scene .chip { opacity: 0; transform-box: fill-box; transform-origin: center; }
.lp2-slide.on .chip.c1 { animation: lp2-chip .5s cubic-bezier(.3,1.6,.5,1) 1.5s forwards; }
.lp2-slide.on .chip.c2 { animation: lp2-chip .5s cubic-bezier(.3,1.6,.5,1) .5s forwards; }
@keyframes lp2-chip { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
.lp2-scene .hand { transform-box: fill-box; }
.lp2-slide.on .hand { animation: lp2-type .5s ease-in-out infinite alternate; }
@keyframes lp2-type { to { transform: translate(4px, -3px); } }
.lp2-scene .m-sel { fill: #fff; }
.lp2-slide.on .m-sel { animation: lp2-msel .4s ease-out 1.3s forwards; }
@keyframes lp2-msel { to { fill: #cfd6ee; stroke: #14213d; } }
.lp2-dots { display: flex; justify-content: center; gap: 8px; padding: 10px 0 14px; background: #fff; }
.lp2-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #d0d5dd; cursor: pointer; transition: width .3s, background .3s; }
.lp2-dots button { position: relative; }
.lp2-dots button::after { content: ''; position: absolute; inset: -10px -4px; }
.lp2-dots button:focus-visible { outline: 2px solid #14213d; outline-offset: 3px; }
.lp2-dots button.on { width: 26px; border-radius: 6px; background: #b8862b; }
@keyframes lp2-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lp2-float { from { opacity: 0; transform: translateY(30px) rotate(2deg); } to { opacity: 1; transform: none; } }

.lp2-strip { background: #f3ecd9; padding: 14px 24px; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 10px 24px; font-size: .88rem; color: #14213d; }
.lp2-strip span { display: inline-flex; align-items: center; gap: 8px; }
.lp2-strip svg, .lp2-tool svg { fill: none; stroke: #b8862b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp2-strip svg { width: 18px; height: 18px; }

.lp2-sec { max-width: 1080px; margin: 0 auto; padding: 44px 24px 4px; }
.lp2-sec h2 { font-weight: 500; font-size: 1.7rem; color: #14213d; margin: 0 0 18px; }
.lp2-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lp2-type { background: #fff; border: 1.5px solid #e6dfc9; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 2px; color: #14213d; transition: transform .2s, border-color .2s, box-shadow .2s; }
.lp2-type b { font-weight: 600; } .lp2-type span { color: #5b6478; font-size: .9rem; }
.lp2-type:hover, .lp2-tool:hover { transform: translateY(-4px); border-color: #b8862b; }
.lp2-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp2-steps div { display: flex; flex-direction: column; gap: 10px; color: #14213d; }
.lp2-steps span { width: 44px; height: 44px; border-radius: 50%; background: #b8862b; color: #fff; display: grid; place-items: center; font-weight: 500; transition: transform .25s; }
.lp2-steps div:hover span { transform: scale(1.12) rotate(-6deg); }
.lp2-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 32px; }
.lp2-tool { background: #fff; border: 1.5px solid #e6dfc9; border-radius: 14px; padding: 22px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.lp2-tool svg { width: 30px; height: 30px; margin-bottom: 14px; }
.lp2-tool h3 { margin: 0 0 6px; font-size: 1.1rem; color: #14213d; } .lp2-tool p { margin: 0; color: #5b6478; font-size: .95rem; }
.lp2-note { background: #14213d; color: #f5f2ea; border-radius: 14px; padding: 20px 26px; line-height: 1.6; }
.lp2-note strong { color: #d9ad4e; font-weight: 500; }
.lp2-final { background: #f3ecd9; margin-top: 44px; padding: 56px 24px; text-align: center; }
.lp2-final h2 { font-weight: 500; font-size: 1.9rem; color: #14213d; margin: 0 0 8px; }
.lp2-final p { margin: 0 0 22px; color: #14213d; }
@media (max-width: 860px) {
  .lp2-stage { height: 350px; }
  .lp2-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lp2-hero h1 { font-size: 2.4rem; }
  .lp2-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp2-tools { grid-template-columns: minmax(0, 1fr); }
  .lp2-strip { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lp2-glow, .lp2-eyebrow, .lp2-hero h1, .lp2-sub, .lp2-cta, .lp2-exam, .lp2-slide *, .lp2-slide { animation: none !important; transition: none !important; }
  .lp2-eyebrow, .lp2-hero h1, .lp2-sub, .lp2-cta, .lp2-exam, .lp2-pal i, .lp2-cl, .lp2-res, .lp2-num .val, .lp2-scene .chip { opacity: 1 !important; transform: none !important; }
}

/* ----- Slide 6: live exam room ----- */
.lp3-tchip { position: absolute; top: 10px; right: 12px; }
.lp3 { padding: 0; background: linear-gradient(#14213d 0 72%, #7a5b35 72%); }
.lp3-wrap { position: absolute; left: 50%; top: 0; width: 480px; height: 330px; margin-left: -240px; }
.lp3-wrap > svg { width: 480px; height: 330px; display: block; }
.lp3 .bob { animation: lp3-bob 3.2s ease-in-out infinite alternate; }
@keyframes lp3-bob { to { transform: translateY(1.6px); } }
.lp3 .hand-t { transform-box: fill-box; animation: lp2-type .45s ease-in-out infinite alternate; }
.lp3-live, .lp3-conn { position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 7px; background: rgba(14,23,43,.8); color: #f5f2ea; font-size: .74rem; padding: 4px 11px; border-radius: 999px; }
.lp3-live { left: 12px; } .lp3-conn { right: 12px; }
.lp3-live i, .lp3-conn i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; animation: lp3-dot 1.6s ease-in-out infinite; }
@keyframes lp3-dot { 50% { opacity: .35; } }
.lp3-mon { position: absolute; left: 99px; top: 54px; width: 282px; height: 176px; background: #fff; overflow: hidden; border-radius: 3px; display: flex; flex-direction: column; font-size: 10px; line-height: 1.3; color: #1a1a2e; }
.lp3-hd { height: 22px; flex: none; background: #14213d; color: #f5f2ea; display: flex; justify-content: space-between; align-items: center; padding: 0 8px; }
.lp3-hd .lp2-timer { font-size: 9px; padding: 1px 8px; }
.lp3-bd { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 8px; padding: 6px 8px 0; }
.lp3-ql { color: #b8862b; font-weight: 600; font-size: 9px; }
.lp3-q { margin: 2px 0 5px; font-size: 10px; line-height: 1.35; }
.lp3-o { display: flex; align-items: center; gap: 6px; border: 1px solid #d0d5dd; border-radius: 5px; height: 18px; padding: 0 6px; margin-bottom: 2px; }
.lp3-o i { width: 9px; height: 9px; border: 1.5px solid #9aa3b5; border-radius: 50%; }
.lp3-slide-on, .lp3.on .lp3-o.sel { animation: lp3-pick .25s ease-out 1.9s forwards; }
.lp3.on .lp3-o.sel i { animation: lp3-pickdot .25s ease-out 1.9s forwards; }
@keyframes lp3-pick { to { border-color: #14213d; background: #eef1f8; } }
@keyframes lp3-pickdot { to { background: #14213d; border-color: #14213d; box-shadow: inset 0 0 0 1.5px #eef1f8; } }
.lp3-pal { display: grid; grid-template-columns: repeat(5, 14px); gap: 3px; align-content: start; }
.lp3-pal b { height: 14px; border-radius: 3px; background: #e0e3ea; }
.lp3-pal b.a { background: #4caf7a; } .lp3-pal b.r { background: #8e6bd1; } .lp3-pal b.cur { background: #b8862b; }
.lp3.on .lp3-pal b.cur { animation: lp3-done .2s linear 3.9s forwards; }
@keyframes lp3-done { to { background: #4caf7a; } }
.lp3-ft { height: 24px; flex: none; border-top: 1px solid #e3e6ec; background: #f7f8fb; display: flex; align-items: center; gap: 5px; padding: 0 8px; font-size: 9px; }
.lp3-b { border: 1px solid #c7ccd8; border-radius: 4px; padding: 2px 6px; background: #fff; white-space: nowrap; }
.lp3-b.g { background: #b8862b; border-color: #b8862b; color: #fff; }
.lp3-b.n { margin-left: auto; background: #14213d; border-color: #14213d; color: #fff; }
.lp3-saved { display: inline-flex; align-items: center; gap: 3px; color: #166534; font-weight: 500; opacity: 0; white-space: nowrap; }
.lp3-saved svg { width: 10px; height: 10px; fill: none; stroke: #166534; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.lp3.on .lp3-saved { animation: lp2-show .2s linear 3.9s forwards; }
.lp3-cur { position: absolute; left: 0; top: 0; width: 14px; height: 18px; z-index: 3; opacity: 0; pointer-events: none; }
.lp3.on .lp3-cur { animation: lp3-cursor 5s ease-in-out .4s forwards; }
@keyframes lp3-cursor {
  0% { opacity: 1; transform: translate(250px, 40px); }
  28% { opacity: 1; transform: translate(18px, 106px); }
  34% { transform: translate(18px, 106px) scale(.82); }
  40% { transform: translate(18px, 106px); }
  64% { transform: translate(86px, 160px); }
  69% { transform: translate(86px, 160px) scale(.82); }
  75%, 100% { opacity: 1; transform: translate(86px, 160px); }
}
@media (max-width: 540px) {
  .lp3 { background: linear-gradient(#14213d 0 80%, #7a5b35 80%); }
  .lp3-wrap { top: 22px; transform: scale(.8); transform-origin: top center; }
}
@media (prefers-reduced-motion: reduce) { .lp3 * { animation: none !important; } .lp3-cur { opacity: 0 !important; } }

/* ----- Footer ----- */
.lp2-footer { background: #0e172b; color: #b9c2d6; padding: 52px 24px 0; font-size: .93rem; }
.lp2-foot-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.lp2-foot-logo { font: 600 1.35rem 'Fraunces', Georgia, serif; color: #f5f2ea; text-decoration: none; }
.lp2-foot-brand p { margin: 12px 0 0; line-height: 1.6; max-width: 340px; }
.lp2-foot-by a { color: #d9ad4e; text-decoration: none; } .lp2-foot-by a:hover { text-decoration: underline; }
.lp2-footer h4 { margin: 0 0 14px; font: 600 .78rem 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #d9ad4e; }
.lp2-footer nav { display: flex; flex-direction: column; gap: 10px; }
.lp2-footer nav a { color: #b9c2d6; text-decoration: none; width: fit-content; transition: color .2s, transform .2s; }
.lp2-footer nav a:hover { color: #f5f2ea; transform: translateX(3px); }
.lp2-footer a:focus-visible { outline: 2px solid #d9ad4e; outline-offset: 3px; border-radius: 2px; }
.lp2-foot-bar { max-width: 1080px; margin: 0 auto; border-top: 1px solid rgba(185,194,214,.18); padding: 18px 0 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #8892ab; }
.lp2-foot-bar a { color: #8892ab; text-decoration: none; } .lp2-foot-bar a:hover { color: #f5f2ea; }
@media (max-width: 860px) { .lp2-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp2-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .lp2-foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----- Hero text rotator ----- */
.lp2-rot { display: grid; }
.lp2-rs { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; }
.lp2-rs.on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease .05s, transform .3s ease .05s, visibility 0s; }
.lp2-rs .lp2-eyebrow, .lp2-rs h1, .lp2-rs .lp2-sub, .lp2-rs .lp2-m1, .lp2-rs .lp2-m2, .lp2-rs .lp2-mq { animation: none; opacity: 0; }
.lp2-rs.on .lp2-eyebrow, .lp2-rs.on h1, .lp2-rs.on .lp2-sub, .lp2-rs.on .lp2-m1, .lp2-rs.on .lp2-m2, .lp2-rs.on .lp2-mq { animation: lp2-rise .5s ease-out var(--d, 0s) both; }
.lp2-m1, .lp2-m2 { margin: 0; font: 600 clamp(2rem, 4.8vw, 3.1rem)/1.15 'Fraunces', Georgia, serif; }
.lp2-m1 { color: #fff; } .lp2-m2 { color: #d9ad4e; margin-top: 4px; }
.lp2-rs hr { border: 0; height: 1px; width: min(300px, 70%); background: rgba(185,194,214,.35); margin: 22px 0 18px; transform: scaleX(0); transform-origin: left; }
.lp2-rs.on hr { animation: lp2-draw .5s ease-out var(--d, 0s) both; }
@keyframes lp2-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp2-mq { margin: 0 0 28px; max-width: 470px; font: 400 1.12rem/1.7 'Noto Serif Devanagari', 'Fraunces', Georgia, serif; color: #e1e5f2; }
.lp2-rs .lp2-eyebrow { margin-bottom: 14px; }
.lp2-rdots { display: flex; gap: 8px; margin-top: 26px; }
.lp2-rdots button { position: relative; width: 26px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(185,194,214,.3); cursor: pointer; transition: width .3s, background .3s; }
.lp2-rdots button::after { content: ''; position: absolute; inset: -10px -3px; }
.lp2-rdots button.on { width: 44px; background: #d9ad4e; }
.lp2-rdots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .lp2-rs { transition: none !important; } .lp2-rs .lp2-m1, .lp2-rs .lp2-m2, .lp2-rs .lp2-mq, .lp2-rs hr { opacity: 1 !important; transform: none !important; animation: none !important; } }
/* landing footer extras */
.lp2-foot-name { color: #e8c978; font-weight: 600; }
.lp2-install { background: transparent; color: #d9ad4e; border: 1px solid #d9ad4e; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; cursor: pointer; width: fit-content; }
.lp2-install[hidden] { display: none; }
.navbar { position: sticky; top: 0; z-index: 100; }

/* landing: About */
.lp2-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; padding-top: 52px; align-items: start; scroll-margin-top: 70px; }
.lp2-about h2 { margin-bottom: 14px; }
.lp2-about-text p { color: #3a4468; line-height: 1.7; margin: 0 0 12px; max-width: 62ch; }
.lp2-about-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.lp2-about-points li { border-left: 3px solid #b8862b; padding-left: 14px; color: #3a4468; line-height: 1.5; }
.lp2-about-points b { color: #14213d; }
.lp2-about-card { background: linear-gradient(150deg, #14213d, #1d3166); color: #dfe6fa; border-radius: 18px; padding: 26px; box-shadow: 0 14px 34px rgba(20,33,61,.22); }
.lp2-about-card p { margin: 0 0 12px; line-height: 1.6; }
.lp2-about-tag { display: inline-block; font-size: .82rem; color: #e8c978; margin-bottom: 8px; }
.lp2-about-card .lp2-about-name { font: 600 1.7rem 'Fraunces', Georgia, serif; color: #fff; margin-bottom: 8px; }
.lp2-about-by a { color: #e8c978; text-decoration: none; }
.lp2-about-cta { margin-top: 6px !important; }
#features, #how-it-works { scroll-margin-top: 70px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 860px) { .lp2-about { grid-template-columns: minmax(0, 1fr); } }
/* nav: current page */
.nav-links a.nav-on { color: #f5f2ea; border-color: #b8862b; }
