/* School2Success flow pages (quiz, consent notice, privacy choices, 18+ confirmation): one column, white, navy and gold.
   Noto Serif for headings, IBM Plex Sans for reading, with Devanagari faces for Marathi and Hindi. */
:root {
  --ink: #122246; --soft: #4F5A73; --faint: #7D869B; --gold: #BF8C3A; --gold-ink: #8C6420;
  --line: #E4E6EC; --line-strong: #CDD1DA; --wash: #F6F7F9; --bg: #FFFFFF; --error: #B42318; --error-bg: #FDECEA;
  --serif: "Noto Serif", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "IBM Plex Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: #EADBC0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.app { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom)); }
.top { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand svg { width: 19px; height: 22px; flex: none; }
.brand span { font: 700 17px/1 "Noto Serif", Georgia, serif; letter-spacing: -.01em; }
.brand b { color: var(--gold); font-weight: 700; }
.langs { display: flex; align-items: center; }
.langs button { border: 0; background: none; cursor: pointer; min-height: 40px; padding: 0 7px; font: 500 13.5px/1 var(--sans); color: var(--faint); }
.langs button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--gold); }
main { flex: 1; display: flex; flex-direction: column; }

.screen { display: none; flex: 1; flex-direction: column; padding-top: 26px; }
.screen.on { display: flex; }
.enter { animation: enter .32s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.label { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
:lang(mr) .label, :lang(hi) .label { font: 500 13.5px/1.45 var(--sans); letter-spacing: 0; text-transform: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; text-wrap: balance; }
h1 { margin-top: 12px; font-size: clamp(34px, 9.4vw, 44px); line-height: 1.08; letter-spacing: -.026em; }
h1:focus { outline: none; }
.t2 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
:lang(mr) h1, :lang(hi) h1, :lang(mr) .t2, :lang(hi) .t2 { line-height: 1.32; letter-spacing: 0; }
.lede { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.small { margin: 0; font-size: 14px; line-height: 1.5; color: var(--soft); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
:lang(mr) .facts, :lang(hi) .facts { font: 500 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.push { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: #fff; font: 500 16.5px/1.2 var(--sans); text-decoration: none; text-align: center; transition: transform .2s var(--ease), background-color .2s; }
.btn:hover { background: #1B2F5C; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.tbtn { align-self: flex-start; border: 0; background: none; padding: 10px 0; min-height: 44px; cursor: pointer; font: 500 15px/1.3 var(--sans); color: var(--soft); text-align: left; }
.tbtn:hover { color: var(--ink); }
.tbtn:disabled { color: var(--faint); cursor: default; }

.preview { margin-top: 8px; }
.preview .bars { margin-bottom: 10px; }
.videos { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.videos p:last-child { margin-top: 6px; font: 500 17px/1.45 var(--serif); }

/* Fields */
.fl { display: block; margin: 22px 0 8px; font-size: 14.5px; font-weight: 500; }
.field { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); font-size: 17px; }
.field:focus { border-color: var(--ink); outline: none; }
.field.code { font: 500 24px/1 var(--mono); letter-spacing: .35em; text-align: center; }
.phone { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; }
.phone:focus-within { border-color: var(--ink); }
.phone span { font-weight: 500; color: var(--soft); }
.phone input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 17px; }
.classes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cls { height: 54px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); cursor: pointer; font: 500 18px/1 var(--sans); }
.cls[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dob { display: grid; grid-template-columns: 1fr 1.5fr 1.2fr; gap: 8px; }
.dob select { width: 100%; height: 54px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); font-size: 16px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 17px) 24px, calc(100% - 12px) 24px; background-size: 5px 5px; background-repeat: no-repeat; }
.dob select:focus { border-color: var(--ink); outline: none; }
.hint { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--soft); }

/* The rising bars: one per career area. They grow as you answer; the leaders darken; the top one gets the dot. */
.bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; height: 42px; align-items: end; margin-top: 16px; }
.bars i { position: relative; display: block; height: calc(var(--h, 0) * 100%); min-height: 3px; border-radius: 3px 3px 1px 1px; background: var(--line);
  transition: height .55s var(--ease), background-color .4s; }
.bars i.lead { background: var(--ink); }
.bars i.top::after { content: ""; position: absolute; left: 50%; top: -13px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--gold); animation: dot .4s .5s var(--ease) both; }
@keyframes dot { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bars.big { height: 96px; gap: 8px; margin-top: 30px; }

/* Questions */
.qhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.count { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; color: var(--soft); }
.q { margin: 26px 0 0; font: 500 26px/1.26 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.q:focus { outline: none; }
:lang(mr) .q, :lang(hi) .q { font-size: 24px; line-height: 1.45; letter-spacing: 0; }
.opts { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.opt { display: block; width: 100%; min-height: 60px; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left;
  font: 400 17px/1.4 var(--sans); color: var(--ink); transition: background-color .15s, color .15s, padding .25s var(--ease); }
.opt:hover { background: var(--wash); padding-left: 10px; }
.opt[aria-pressed="true"] { background: var(--ink); color: #fff; padding-left: 16px; }
.qfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }

/* Scan and handover */
.scan-note { margin-top: 18px; min-height: 1.5em; }

/* Unlock */
.notice { margin-top: 22px; padding: 18px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notice .n-title { font: 500 20px/1.3 var(--serif); }
.notice .n-intro { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--soft); }
.notice .n-head { margin: 16px 0 4px; font: 500 14.5px/1.4 var(--sans); }
.notice .n-list { margin: 0; padding: 0 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--soft); }
.notice .n-list li + li { margin-top: 4px; }
.notice .n-foot { margin: 14px 0 12px; font-size: 12.5px; color: var(--faint); }
.notice a { color: var(--ink); }
.agree { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; line-height: 1.45; }
.agree input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }
.agree.opt-in { color: var(--soft); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.error { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--error-bg); color: var(--error); font-size: 14.5px; font-weight: 500; line-height: 1.45; }

/* Result */
.areas { list-style: none; margin: 26px 0 0; padding: 0; }
.area { padding: 20px 0; border-top: 1px solid var(--line); }
.area:last-child { border-bottom: 1px solid var(--line); }
.ahead { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.rank { font: 500 14px/1.6 var(--mono); color: var(--faint); }
.area:first-child .rank { color: var(--gold-ink); }
.area h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.01em; }
:lang(mr) .area h3, :lang(hi) .area h3 { letter-spacing: 0; line-height: 1.45; }
.why { margin: 6px 0 0; color: var(--soft); font-size: 15.5px; line-height: 1.5; }
.meta { margin: 6px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
:lang(mr) .meta, :lang(hi) .meta { font: 500 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.careers { list-style: none; margin: 14px 0 0 36px; padding: 0; }
.careers li { padding: 10px 0; border-top: 1px dashed var(--line); }
.careers b { font: 500 17px/1.35 var(--serif); }
.careers p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: #F4EBDD; color: var(--gold-ink); font: 500 11.5px/1.5 var(--sans); vertical-align: 2px; white-space: nowrap; }
.block { margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); }
.block p:last-child { margin-top: 6px; color: var(--ink); font-size: 16px; line-height: 1.55; }

.foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
