/* BhartiAI — workwear indigo + hi-vis yellow */
:root {
  --indigo: #1B2A7A;
  --indigo-2: #2A3D9C;
  --indigo-deep: #121C58;
  --hivis: #FFCC00;
  --hivis-2: #F2B700;
  --paper: #F1F3F8;
  --card: #FFFFFF;
  --ink: #161B38;
  --muted: #5A6184;
  --line: #D8DCE9;
  --go: #148F5A;
  --maybe: #C77700;
  --stop: #C43B31;
  --wa: #1C9E50;
  --r-s: 8px;
  --r-m: 16px;
  --f-display: 'Baloo 2', 'Hind', system-ui, sans-serif;
  --f-body: 'Hind', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .4em; font-weight: 800; }
h4 { font-size: 1.05rem; margin-top: 20px; }
p { margin: 0 0 1em; }
a { color: var(--indigo-2); }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1.1 var(--f-body); padding: .9em 1.4em; min-height: 50px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .7; cursor: wait; }
.btn-hivis { background: var(--hivis); color: var(--ink); }
.btn-hivis:hover { background: var(--hivis-2); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: var(--indigo-2); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sm { min-height: 40px; padding: .55em 1.05em; font-size: .93rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--indigo-2); font: 600 .95rem var(--f-body); text-decoration: underline; cursor: pointer; }

/* Brand + topbar */
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.4rem/1 var(--f-display); }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--hivis); color: var(--indigo); font-size: 1.35rem; padding-top: 4px;
  box-shadow: inset 0 -7px 0 var(--indigo-deep);
}
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 20px 10px; background: var(--indigo); color: #fff;
}
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; }
.muted-link { opacity: .7; }
@media (max-width: 520px) {
  .topbar .brand { font-size: 1.15rem; }
  .topbar nav { gap: 10px; }
  .topbar nav a:not(.btn) { font-size: .9rem; }
}
.flash { background: var(--hivis); color: var(--ink); padding: 12px 20px; font-weight: 600; text-align: center; }

/* ===== Landing ===== */
.hero { background: var(--indigo); color: #fff; padding: calc(22px + env(safe-area-inset-top, 0px)) 0 80px; }
.hero-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.2fr .8fr; } }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); max-width: 15ch; letter-spacing: -.015em; }
.lede { font-size: 1.18rem; max-width: 40ch; opacity: .92; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: .95rem; opacity: .72; }

.phone { width: min(330px, 100%); margin: 0 auto; background: var(--indigo-deep); border-radius: 42px; padding: 11px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .65); }
.phone-screen { background: var(--paper); color: var(--ink); border-radius: 32px; padding: 22px 18px 26px; min-height: 540px; display: flex; flex-direction: column; gap: 14px; }
.ph-top { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); font-weight: 600; }
.ph-bar { height: 5px; background: var(--line); border-radius: 9px; overflow: hidden; }
.ph-bar i { display: block; height: 100%; background: var(--hivis); }
.ph-q { background: #fff; border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
.ph-q .hi { font: 700 1.2rem/1.35 var(--f-display); }
.ph-q .ro { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.ph-ans { align-self: flex-end; max-width: 90%; background: var(--indigo); color: #fff; padding: 13px 15px; border-radius: 18px 18px 4px 18px; font-size: .95rem; line-height: 1.5; }
.ph-mic { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }

body.landing { overflow-x: hidden; }
html { overflow-x: clip; }
/* The one loud thing: hazard tape across the page */
.tape {
  position: relative; z-index: 2; width: 104%; margin: -22px 0 0 -2%; height: 46px;
  background: repeating-linear-gradient(-45deg, var(--hivis) 0 24px, var(--ink) 24px 48px);
  transform: rotate(-1.4deg); display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4);
}
.tape span { background: var(--hivis); color: var(--ink); font: 800 1.25rem/1 var(--f-display); padding: 10px 22px 6px; border: 3px solid var(--ink); }

.section { padding: 84px 0; }
.section-alt { background: #fff; }
.section h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); max-width: 20ch; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 5px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 800 3.4rem/1 var(--f-display); color: var(--indigo); margin-bottom: 10px; }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--muted); max-width: 34ch; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; } }
.big { font-size: 1.15rem; }
.fair { border-left: 5px solid var(--hivis); padding: 4px 0 4px 16px; color: var(--muted); }
.sample { display: grid; gap: 10px; }
.sample-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; background: var(--paper); border-radius: var(--r-m); padding: 14px; }
.sample-row p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.sample-row.dim { opacity: .55; }

.roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 22px; }
.roles span { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 600; }

.final { background: var(--hivis); padding: 64px 0; }
.final-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.final h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.foot { background: var(--ink); color: rgba(255, 255, 255, .65); padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }

/* ===== Auth ===== */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: calc(24px + env(safe-area-inset-top, 0px)) 18px 32px; background: var(--indigo); }
.auth .form-card { width: 100%; max-width: 440px; }
.auth h1 { font-size: 1.9rem; }
.switch { text-align: center; margin: 16px 0 0; color: var(--muted); }

/* ===== Forms ===== */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; max-width: 680px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff;
  padding: 12px 14px; min-height: 52px; border: 2px solid var(--line); border-radius: var(--r-s);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(27, 42, 122, .16); }
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--indigo); }
.error { background: #FCEAE8; color: var(--stop); border-left: 5px solid var(--stop); padding: 12px 14px; border-radius: var(--r-s); margin-bottom: 18px; font-weight: 600; }
.warn { background: #FFF4CC; border-left: 5px solid var(--hivis); padding: 12px 14px; border-radius: var(--r-s); margin-top: 24px; }

/* ===== App pages ===== */
.page { padding: 28px 20px 72px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin: 0; }
.page-head .muted { margin: 0 0 2px; }
.job-meta { color: var(--muted); font-size: .95rem; margin: 2px 0 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.stat { background: var(--indigo); color: #fff; border-radius: var(--r-m); padding: 16px; }
.stat b { display: block; font: 800 2.1rem/1 var(--f-display); }
.stat span { font-size: .85rem; opacity: .8; }
.stat-go { background: var(--hivis); color: var(--ink); }
.stat-go span { opacity: .75; }

.job-list { display: grid; gap: 12px; }
.job-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-left: 7px solid var(--hivis); border-radius: var(--r-s); padding: 16px 18px; }
.job-row:hover { border-color: var(--indigo); border-left-color: var(--hivis); }
.job-row.closed { border-left-color: var(--line); opacity: .65; }
.job-row h3 { font-size: 1.3rem; margin: 0; }
.fresh { display: inline-block; margin-top: 6px; font-size: .82rem; font-weight: 600; color: var(--go); }
.count { text-align: right; font: 800 1.8rem/1 var(--f-display); }
.count small { display: block; font: 500 .8rem var(--f-body); color: var(--muted); margin-top: 4px; }
.empty { text-align: center; background: var(--card); border: 2px dashed var(--line); border-radius: var(--r-m); padding: 44px 20px; }
.empty p { color: var(--muted); max-width: 44ch; margin: 0 auto 18px; }

.badge { display: inline-block; vertical-align: middle; font: 600 .74rem/1.6 var(--f-body); padding: 1px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.badge.st-shortlisted { background: #DDF3E8; color: var(--go); }
.badge.st-hired { background: var(--go); color: #fff; }
.badge.st-rejected { background: #FCEAE8; color: var(--stop); }

/* Share box */
.share { background: var(--ink); color: #fff; border-radius: var(--r-m); padding: 22px; margin-bottom: 18px; }
.share h2 { font-size: 1.5rem; margin-bottom: 4px; }
.share p { opacity: .8; margin-bottom: 12px; }
.share-new { box-shadow: 0 0 0 4px var(--hivis); }
.share-link { display: flex; gap: 8px; margin-bottom: 12px; }
.share-link input { flex: 1; min-width: 0; background: #262D58; color: #fff; border-color: #3A427A; font-size: .95rem; min-height: 44px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share .btn-ghost { color: #fff; }

/* Question editor */
.qedit { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 24px; }
.qedit summary { cursor: pointer; padding: 16px 18px; font: 700 1.1rem var(--f-display); list-style: none; }
.qedit summary::-webkit-details-marker { display: none; }
.qedit summary span { font: 500 .88rem var(--f-body); color: var(--indigo-2); margin-left: 6px; }
.qedit-form { padding: 0 18px 18px; }
.qedit-row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-bottom: 14px; }
.qedit-row input { margin-bottom: 6px; }
.qedit-row .roman { font-size: .92rem; min-height: 44px; color: var(--muted); }
.qnum { font: 800 1.3rem/52px var(--f-display); color: var(--indigo); }

/* Tabs */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.tabs a { white-space: nowrap; padding: 8px 15px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.tabs a span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a.on span { color: var(--hivis); }

/* Candidate */
.score { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 1.35rem/1 var(--f-display); color: #fff; background: var(--muted); padding-top: 3px; }
.score.v-shortlist { background: var(--go); }
.score.v-maybe { background: var(--maybe); }
.score.v-reject { background: var(--stop); }
.cand { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 12px; }
.cand.st-rejected { opacity: .6; }
.cand.st-hired { border-color: var(--go); box-shadow: inset 5px 0 0 var(--go); }
.cand[open] { border-color: var(--indigo); }
.cand summary { list-style: none; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px; cursor: pointer; align-items: start; }
.cand summary::-webkit-details-marker { display: none; }
.cand h3 { font-size: 1.22rem; margin: 2px 0 0; }
.cand-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.sum { margin: 6px 0 0; font-size: .97rem; line-height: 1.5; }
.cand-body { border-top: 1px solid var(--line); padding: 4px 16px 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.actions .inline { margin: 0; }
.actions select { min-height: 40px; padding: 6px 12px; font-size: .93rem; width: auto; border-radius: 999px; }
.ask-next { background: #FFF4CC; border-left: 5px solid var(--hivis); padding: 11px 14px; border-radius: var(--r-s); margin-bottom: 14px; }
.pro-con { display: grid; gap: 12px; }
@media (min-width: 640px) { .pro-con { grid-template-columns: 1fr 1fr; } }
.pro-con > div { background: var(--paper); border-radius: var(--r-s); padding: 12px 14px; font-size: .95rem; }
.pro-con ul { margin: 6px 0 0; padding-left: 20px; }
.pro b { color: var(--go); }
.con b { color: var(--maybe); }
.qa { margin: 10px 0; }
.qa .q { font-weight: 600; font-size: .95rem; }
.qa .a { background: var(--paper); border-radius: var(--r-s); padding: 10px 12px; margin-top: 4px; white-space: pre-wrap; }
.qa em { color: var(--muted); }

/* ===== Candidate apply (phone first) ===== */
.apply-page { background: #fff; }
.apply-head { background: var(--indigo); color: #fff; padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 18px; }
.apply-head > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.apply-head .co { opacity: .78; margin-bottom: 0; font-size: .95rem; }
.apply-head h1 { font-size: 2rem; margin: 2px auto 8px; }
.apply-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.apply-tags span { background: rgba(255, 255, 255, .13); padding: 4px 12px; border-radius: 999px; font-size: .88rem; }
.progress { height: 6px; background: rgba(255, 255, 255, .2); border-radius: 9px; overflow: hidden; margin-top: 18px; }
.progress i { display: block; width: 0; height: 100%; background: var(--hivis); transition: width .35s ease; }
.progress-label { font-size: .85rem; opacity: .8; margin: 8px auto 0; }
.apply-body { max-width: 560px; margin: 0 auto; padding: 22px 20px 48px; }
.step h2 { font-size: 1.55rem; }
.how { background: var(--paper); border-radius: var(--r-m); padding: 14px 16px; margin-top: 18px; }
.how p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.qcount { color: var(--muted); font-weight: 600; margin: 0 0 4px; font-size: .9rem; }
.qcard .hi { font: 700 1.5rem/1.35 var(--f-display); }
.qcard .ro { color: var(--muted); margin-top: 6px; }
.speak { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 0; margin-top: 4px; color: var(--indigo-2); font: 600 1rem var(--f-body); cursor: pointer; }
.mic-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 22px 0 18px; }
.mic-label { font-weight: 600; text-align: center; }
.mic {
  width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--hivis); color: var(--ink);
  box-shadow: 0 0 0 9px rgba(255, 204, 0, .28), inset 0 -8px 0 rgba(0, 0, 0, .1);
  transition: transform .12s ease, background-color .15s ease;
}
.mic:active { transform: scale(.94); }
.mic svg { width: 42px; height: 42px; }
.ph-mic .mic { width: 76px; height: 76px; }
.ph-mic .mic svg { width: 32px; height: 32px; }
.mic.rec { background: var(--stop); color: #fff; animation: pulse 1.3s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(196, 59, 49, .5); } 100% { box-shadow: 0 0 0 26px rgba(196, 59, 49, 0); } }
@media (prefers-reduced-motion: reduce) { .mic.rec { animation: none; box-shadow: 0 0 0 9px rgba(196, 59, 49, .35); } .progress i { transition: none; } }
.step-nav { display: flex; gap: 10px; margin-top: 20px; }
.step-nav .btn { flex: 1; }
.step + .step { margin-top: 36px; }
.js .step + .step { margin-top: 0; }
.nomic { background: #FFF4CC; border-radius: var(--r-s); padding: 12px 14px; font-size: .95rem; }
.done { text-align: center; padding: 36px 6px; }
.done h1, .done h2 { font-size: 1.8rem; }
.done p { color: var(--muted); max-width: 36ch; margin-left: auto; margin-right: auto; }
.tick { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--go); color: #fff; display: grid; place-items: center; font: 800 2.6rem/1 var(--f-display); }
