/* ══════════════════════════════════════════════════════════════
   Indian Talent Olympiad — redesign
   Palette: ink navy on paper white, medal gold, saffron accent.
   Signature: OMR answer-sheet motif + exam-paper section labels.
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink: #16265c;
  --ink-2: #0e1a40;
  --ink-soft: #3a4a85;
  --paper: #ffffff;
  --paper-2: #f5f7fe;
  --paper-3: #eceffb;
  --gold: #f0a81c;
  --gold-deep: #b97c0a;
  --saffron: #ff6b1a;
  --green: #1e8a5b;
  --red: #d43d2a;
  --rule: #dde3f3;
  --shadow: 0 10px 30px rgba(22, 38, 92, 0.10);
  --shadow-lg: 0 24px 60px rgba(22, 38, 92, 0.16);
  --r: 14px;
  --r-lg: 22px;
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Menlo", monospace;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── graph-paper texture (exam sheet) ─────────────────────── */
.graph {
  background-image:
    linear-gradient(rgba(22, 38, 92, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 38, 92, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── topbar ───────────────────────────────────────────────── */
.topbar {
  background: var(--ink-2);
  color: #cdd6f5;
  font-size: 13px;
  font-family: var(--font-mono);
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 36px; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-links { display: flex; gap: 18px; }
@media (max-width: 640px) { .topbar .tb-note { display: none; } }

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap {
  display: flex; align-items: center; gap: 28px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand b {
  font-family: var(--font-display); font-size: 19px; line-height: 1.1;
  color: var(--ink); letter-spacing: -0.01em; display: block;
}
.brand small {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-soft); letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links > a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links > a:hover { border-bottom-color: var(--gold); }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 10px 20px !important;
  border-radius: 999px; border-bottom: none !important; font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: var(--saffron); transform: translateY(-1px); }
.login-dd { position: relative; }
.login-dd > button {
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink);
  background: none; border: 1.5px solid var(--rule); border-radius: 999px;
  padding: 8px 18px; cursor: pointer;
}
.login-dd > button:hover { border-color: var(--ink); }
.login-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff;
  border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 8px; display: none;
}
.login-dd.open .login-menu, .login-dd:focus-within .login-menu { display: block; }
.login-menu a {
  display: block; padding: 10px 14px; text-decoration: none; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.login-menu a:hover { background: var(--paper-2); }
.login-menu a small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12.5px; }
.hamb { display: none; margin-left: auto; background: none; border: none; cursor: pointer; }
.hamb span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 920px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; padding: 16px 24px; gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links > a { padding: 12px 4px; border-bottom: 1px solid var(--paper-3); }
  .hamb { display: block; }
  .login-dd { order: 10; margin-top: 8px; }
}

/* ── ribbon ───────────────────────────────────────────────── */
.ribbon {
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  color: var(--ink-2); font-weight: 700; font-size: 14px; text-align: center;
  padding: 8px 20px;
}
.ribbon a { color: var(--ink-2); }

/* ── hero ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--paper-2); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px;
  align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--ink-soft); background: radial-gradient(circle, var(--ink) 45%, transparent 48%);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02; letter-spacing: -0.025em; color: var(--ink);
  margin: 18px 0 22px; font-weight: 800;
}
.hero h1 .bubbled {
  display: inline-grid; place-items: center; width: 0.94em; height: 0.94em;
  border-radius: 50%; background: var(--gold); color: var(--ink-2);
  border: 3px solid var(--ink-2); vertical-align: -0.08em; font-size: 0.92em;
}
.hero .lede { font-size: 18.5px; color: var(--ink-soft); max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 16px; border-radius: 999px; padding: 15px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none; cursor: pointer; font-family: var(--font-body);
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--saffron); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold { background: var(--gold); color: var(--ink-2); box-shadow: var(--shadow); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.hero-trust {
  display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-soft);
}
.hero-trust b { display: block; font-family: var(--font-display); font-size: 21px; color: var(--ink); }

/* OMR sheet card — the signature */
.omr {
  background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 26px 28px 72px; position: relative;
  transform: rotate(1.6deg); max-width: 420px; margin-left: auto;
}
.omr::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  border-left: 10px solid var(--gold); pointer-events: none;
}
.omr-head {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-soft); display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-right: 44px;
  border-bottom: 1.5px dashed var(--rule); padding-bottom: 12px; margin-bottom: 16px;
}
.omr-row { display: flex; align-items: center; gap: 14px; padding: 7px 0; }
.omr-q { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); width: 64px; }
.omr-opts { display: flex; gap: 12px; }
.omr-b {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-soft);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-soft); position: relative;
}
.omr-b.fill { border-color: var(--ink); color: transparent; }
.omr-b.fill::after {
  content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--ink);
  transform: scale(0); animation: bfill 0.35s ease forwards;
}
.omr-row:nth-child(3) .omr-b.fill::after { animation-delay: 0.3s; }
.omr-row:nth-child(4) .omr-b.fill::after { animation-delay: 0.6s; }
.omr-row:nth-child(5) .omr-b.fill::after { animation-delay: 0.9s; }
.omr-row:nth-child(6) .omr-b.fill::after { animation-delay: 1.2s; }
.omr-row:nth-child(7) .omr-b.fill::after { animation-delay: 1.5s; }
@keyframes bfill { to { transform: scale(1); } }
.omr-stamp {
  position: absolute; right: 18px; bottom: 16px; transform: rotate(-8deg);
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  color: var(--gold-deep); border: 3px solid var(--gold-deep); border-radius: 10px;
  padding: 4px 14px; letter-spacing: 0.06em; background: rgba(240, 168, 28, 0.08);
}
.omr-medal {
  position: absolute; top: -22px; right: -18px; width: 64px; height: 64px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd873, var(--gold) 60%, var(--gold-deep));
  border: 3px solid #fff; box-shadow: var(--shadow); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--ink-2);
  transform: rotate(8deg);
}
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .omr { margin: 12px auto 0; transform: rotate(0.8deg); }
}

/* ── marquee of real event photos ─────────────────────────── */
.marquee { background: var(--ink-2); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee figure { width: 300px; flex-shrink: 0; }
.marquee img { width: 300px; height: 176px; object-fit: cover; border-radius: 10px; }
.marquee figcaption {
  font-family: var(--font-mono); font-size: 11px; color: #aab6e0; margin-top: 7px;
  letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── sections ─────────────────────────────────────────────── */
section.block { padding: 84px 0; }
section.block.alt { background: var(--paper-2); }
.sec-label {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep); font-weight: 600;
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.sec-label::after { content: ""; height: 1.5px; width: 64px; background: var(--gold); }
h2.sec-title {
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); font-weight: 800;
  max-width: 720px;
}
.sec-sub { color: var(--ink-soft); font-size: 17px; max-width: 640px; margin-top: 14px; }

/* ── stats band ───────────────────────────────────────────── */
.stats { background: var(--ink); color: #fff; padding: 56px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { text-align: center; position: relative; }
.stat b {
  font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px);
  font-weight: 800; letter-spacing: -0.02em; display: block; color: var(--gold);
}
.stat span {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #b9c4ea;
}
.stat .src { display: block; font-size: 10px; letter-spacing: 0.06em; color: #7383b8; margin-top: 4px; text-transform: none; }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: 1fr; gap: 26px; } }

/* ── path cards (conversion core) ─────────────────────────── */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.path {
  background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-lg);
  padding: 30px 28px 28px; position: relative; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.path:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.path .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-deep); background: rgba(240, 168, 28, 0.14);
  border-radius: 999px; padding: 5px 12px; align-self: flex-start;
}
.path h3 { font-family: var(--font-display); font-size: 24px; color: var(--ink); margin: 16px 0 10px; font-weight: 800; letter-spacing: -0.01em; }
.path p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.path .btn { margin-top: 22px; justify-content: center; }
.path.feature { background: var(--ink); border-color: var(--ink); }
.path.feature h3 { color: #fff; }
.path.feature p { color: #b9c4ea; }
.path.feature .tag { background: rgba(240, 168, 28, 0.2); color: var(--gold); }
@media (max-width: 920px) { .paths { grid-template-columns: 1fr; } }

/* ── subjects grid ────────────────────────────────────────── */
.subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.subject {
  background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r);
  padding: 20px; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.subject:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow); }
.subject .code {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  color: var(--gold-deep); letter-spacing: 0.1em; background: var(--paper-2);
  border-radius: 6px; padding: 3px 8px; display: inline-block;
}
.subject h4 { font-family: var(--font-display); font-size: 17.5px; color: var(--ink); margin: 12px 0 4px; font-weight: 700; }
.subject small { color: var(--ink-soft); font-size: 13px; }
@media (max-width: 920px) { .subjects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .subjects { grid-template-columns: 1fr; } }

/* ── steps ────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.step { position: relative; background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-lg); padding: 30px 26px; }
.step .n {
  width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--ink);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600;
  font-size: 15px; color: var(--ink); background: #fff; margin-bottom: 18px;
}
.step:nth-child(2) .n { background: var(--gold); border-color: var(--gold-deep); }
.step:nth-child(3) .n { background: var(--ink); color: #fff; }
.step h3 { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.step p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } }

/* ── app section ──────────────────────────────────────────── */
.app-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; margin-top: 20px; }
.app-grid img.phone { max-width: 340px; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(22,38,92,0.25)); }
.app-list { list-style: none; margin: 24px 0 30px; }
.app-list li { padding: 9px 0 9px 36px; position: relative; color: var(--ink-2); font-size: 16px; }
.app-list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid var(--green);
  background: radial-gradient(circle, var(--green) 42%, transparent 46%);
}
.store-badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.store-badges img { height: 52px; width: auto; }
@media (max-width: 920px) { .app-grid { grid-template-columns: 1fr; } }

/* ── testimonials ─────────────────────────────────────────── */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.testi {
  background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.testi .who { display: flex; gap: 14px; align-items: center; }
.testi .who img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--gold); }
.testi .who b { font-family: var(--font-display); font-size: 17px; color: var(--ink); display: block; }
.testi .who small { color: var(--ink-soft); font-size: 13px; line-height: 1.4; display: block; }
.testi blockquote { color: var(--ink-2); font-size: 15.5px; font-style: italic; border-left: 3px solid var(--gold); padding-left: 14px; }
@media (max-width: 920px) { .testis { grid-template-columns: 1fr; } }

/* ── offices ──────────────────────────────────────────────── */
.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.office { border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--rule); background: #fff; }
.office img { height: 150px; width: 100%; object-fit: cover; }
.office div { padding: 14px 16px; font-weight: 600; font-size: 14px; color: var(--ink); }
@media (max-width: 920px) { .offices { grid-template-columns: repeat(2, 1fr); } }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { background: linear-gradient(120deg, var(--ink-2), var(--ink)); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(240,168,28,0.16) 2.5px, transparent 3px);
  background-size: 34px 34px;
}
.cta-band .wrap { position: relative; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-band p { color: #b9c4ea; font-size: 17px; max-width: 560px; margin: 0 auto 32px; }
.cta-band .hero-ctas { justify-content: center; }

/* ── footer ───────────────────────────────────────────────── */
footer { background: var(--ink-2); color: #aab6e0; padding: 64px 0 32px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h5 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: #cdd6f5; text-decoration: none; }
.foot-grid a:hover { color: var(--gold); }
.foot-brand b { font-family: var(--font-display); color: #fff; font-size: 19px; display: block; margin-bottom: 10px; }
.foot-contact { margin-top: 16px; line-height: 2; }
.foot-contact a { font-weight: 600; }
.foot-social { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.foot-social a {
  font-family: var(--font-mono); font-size: 12px; border: 1px solid #3a4a85;
  border-radius: 999px; padding: 5px 12px;
}
.foot-social a:hover { border-color: var(--gold); }
.foot-base {
  border-top: 1px solid #26355f; margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #7383b8;
}
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── reveal on scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ══════════════ FORM PAGES ══════════════ */
.form-hero { background: var(--paper-2); padding: 56px 0 40px; }
.form-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); color: var(--ink); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 10px; }
.form-hero p { color: var(--ink-soft); max-width: 640px; }
.form-hero .already { margin-top: 14px; font-size: 14.5px; }
.form-hero .already a { color: var(--gold-deep); font-weight: 700; }

.form-shell { padding: 48px 0 84px; }
.form-card {
  background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow); max-width: 860px; margin: 0 auto; overflow: hidden;
}
.form-card .fc-head {
  border-left: 8px solid var(--gold); padding: 22px 32px;
  border-bottom: 1.5px dashed var(--rule); display: flex; justify-content: space-between;
  align-items: center; gap: 12px; flex-wrap: wrap;
}
.form-card .fc-head h2 { font-family: var(--font-display); font-size: 21px; color: var(--ink); font-weight: 800; }
.form-card .fc-head .mono { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--ink-soft); }
.form-body { padding: 32px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .fgrid { grid-template-columns: 1fr; } .form-body { padding: 24px 20px; } }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink-2);
  border: 1.5px solid var(--rule); border-radius: 10px; padding: 12px 14px;
  background: var(--paper-2); transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 38, 92, 0.1);
}
.field .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; }
.field.error input, .field.error select { border-color: var(--red); }
.field .err-msg { display: none; font-size: 12.5px; color: var(--red); margin-top: 5px; font-weight: 600; }
.field.error .err-msg { display: block; }

.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg input { display: none; }
.seg label {
  border: 1.5px solid var(--rule); border-radius: 999px; padding: 10px 22px;
  cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--ink-soft);
  margin: 0; transition: all 0.15s ease;
}
.seg input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

/* enrollment table */
.enroll-note {
  background: rgba(240, 168, 28, 0.1); border: 1.5px solid rgba(240, 168, 28, 0.4);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--gold-deep);
  font-weight: 600; margin-bottom: 20px;
}
.enroll { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.enroll th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); text-align: left;
  padding: 10px 12px; border-bottom: 2px solid var(--ink);
}
.enroll td { padding: 10px 12px; border-bottom: 1px solid var(--paper-3); }
.enroll td:last-child { width: 130px; }
.enroll .code { font-family: var(--font-mono); font-size: 11px; color: var(--gold-deep); }
.enroll input[type="number"] {
  width: 110px; font: inherit; font-size: 15px; border: 1.5px solid var(--rule);
  border-radius: 8px; padding: 8px 10px; background: var(--paper-2);
}
.enroll input[type="number"]:focus { outline: none; border-color: var(--ink); background: #fff; }
.enroll-total {
  display: flex; justify-content: flex-end; gap: 14px; align-items: baseline;
  margin-top: 16px; font-weight: 700; color: var(--ink);
}
.enroll-total b { font-family: var(--font-display); font-size: 26px; color: var(--gold-deep); }

.form-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 32px; border-top: 1.5px dashed var(--rule); flex-wrap: wrap;
}
.form-actions .note { font-size: 13px; color: var(--ink-soft); max-width: 380px; }

/* progress rail (multi-step) */
.rail { display: flex; gap: 0; margin: 26px auto 0; max-width: 860px; }
.rail .rstep {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; color: var(--ink-soft); padding-bottom: 12px; position: relative;
  border-bottom: 3px solid var(--rule);
}
.rail .rstep.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--gold); }
.rail .rstep.done { border-bottom-color: var(--green); color: var(--green); }

/* success overlay */
.success-overlay {
  position: fixed; inset: 0; background: rgba(14, 26, 64, 0.65); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.success-overlay.show { display: flex; }
.success-card {
  background: #fff; border-radius: var(--r-lg); max-width: 460px; width: 100%;
  padding: 44px 36px; text-align: center; box-shadow: var(--shadow-lg); position: relative;
}
.success-card .ok {
  width: 74px; height: 74px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; margin: 0 auto 22px; color: #fff; font-size: 34px;
}
.success-card h3 { font-family: var(--font-display); font-size: 26px; color: var(--ink); margin-bottom: 10px; font-weight: 800; }
.success-card p { color: var(--ink-soft); font-size: 15px; }
.success-card .demo-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gold-deep);
  background: rgba(240,168,28,0.12); border-radius: 999px; padding: 5px 14px;
  display: inline-block; margin-top: 18px;
}
.success-card .btn { margin-top: 24px; }

/* ══════════════ CONTENT PAGES ══════════════ */
.page-shell { padding: 56px 0 84px; }
.page-shell .wrap { max-width: 980px; }
.prose { font-size: 16px; color: var(--ink-2); }
.prose h2 {
  font-family: var(--font-display); font-size: 26px; color: var(--ink); font-weight: 800;
  letter-spacing: -0.01em; margin: 44px 0 14px; padding-top: 8px;
}
.prose h2:first-child { margin-top: 0; }
.prose h2::before {
  content: ""; display: block; width: 56px; height: 4px; background: var(--gold);
  border-radius: 2px; margin-bottom: 12px;
}
.prose h3 { font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight: 700; margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; color: var(--ink-soft); }
.prose p strong, .prose li strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold-deep); font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 18px 0 24px; border: 1.5px solid var(--rule); border-radius: var(--r); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.ptable th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: #fff; text-align: left; padding: 12px 16px;
}
.ptable td { padding: 11px 16px; border-bottom: 1px solid var(--paper-3); color: var(--ink-2); }
.ptable tr:nth-child(even) td { background: var(--paper-2); }
.ptable .code { font-family: var(--font-mono); font-size: 11px; color: var(--gold-deep); }
.note-card {
  background: rgba(240, 168, 28, 0.1); border: 1.5px solid rgba(240, 168, 28, 0.4);
  border-radius: var(--r); padding: 16px 20px; margin: 18px 0; font-size: 14.5px; color: var(--ink-2);
}
.note-card b { color: var(--gold-deep); }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0 24px; }
.info-card {
  background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r); padding: 20px;
  border-top: 4px solid var(--gold);
}
.info-card h4 { font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-bottom: 10px; font-weight: 700; }
.info-card dl { font-size: 13.5px; }
.info-card dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.info-card dd { color: var(--ink-2); font-weight: 600; margin: 1px 0 0; }
@media (max-width: 820px) { .info-cards { grid-template-columns: 1fr; } }
.faq-item { border: 1.5px solid var(--rule); border-radius: var(--r); margin-bottom: 12px; background: #fff; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--ink); font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--gold-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-item div { padding: 0 20px 16px; color: var(--ink-soft); font-size: 15px; }

/* ══════════════ LOGIN PAGES ══════════════ */
.login-shell { padding: 64px 0 96px; }
.login-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 920px; margin: 0 auto;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1.5px solid var(--rule);
}
.login-side {
  background: var(--ink); color: #fff; padding: 44px 40px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.login-side::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(240,168,28,0.14) 2px, transparent 2.5px);
  background-size: 30px 30px;
}
.login-side > * { position: relative; }
.login-side h2 { font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: -0.01em; margin: 6px 0 10px; }
.login-side p { color: #b9c4ea; font-size: 15px; }
.login-side .app-list li { color: #dbe2f7; font-size: 14.5px; }
.login-side .app-list li::before { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 42%, transparent 46%); }
.login-side .eyebrow { color: var(--gold); }
.login-side .eyebrow::before { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 45%, transparent 48%); }
.login-form { background: #fff; padding: 44px 40px; }
.login-form h1 { font-family: var(--font-display); font-size: 26px; color: var(--ink); font-weight: 800; margin-bottom: 6px; }
.login-form .sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 26px; }
.login-form .field { margin-bottom: 18px; }
.login-form .btn { width: 100%; justify-content: center; }
.login-form .alt { text-align: center; margin-top: 20px; font-size: 14.5px; color: var(--ink-soft); }
.login-form .alt a { color: var(--gold-deep); font-weight: 700; }
.login-form .forgot { font-size: 13px; text-align: right; margin-top: -8px; margin-bottom: 18px; }
.login-form .forgot a { color: var(--ink-soft); }
@media (max-width: 820px) { .login-grid { grid-template-columns: 1fr; } .login-side { order: 2; } }

:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .omr-b.fill::after { animation: none; transform: scale(1); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .path, .subject { transition: none; }
}
