/* =========================================================
   AI Interview Chat — landing page styles
   Change --accent to re-theme the whole page.
   ========================================================= */
:root {
  --accent: #8EA2FF;
  --teal: #6EE7D2;
  --bg: #06070A;
  --bg-2: #0A0B0F;
  --bg-3: #0B0C11;
  --text: #F3F4F6;
  --muted: #A1A7B3;
  --dim: #5E6470;
  --dimmer: #7C8290;
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: #C9D2FF; }
a:hover { color: #FFFFFF; }
p, h1, h2, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.page { min-height: 100vh; overflow-x: hidden; position: relative; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 1180px; }
.hidden { display: none !important; }

/* ---------- utility text ---------- */
.mono { font-family: var(--mono); }
.small { font-size: 12px; }
.tiny { font-size: 11px; letter-spacing: .1em; }
.accent { color: var(--accent); }
.teal { color: var(--teal); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.dimmer { color: var(--dimmer); }
.white { color: #FFFFFF; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  margin-bottom: 28px; font-family: var(--mono); font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dimmer); }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.035em; max-width: 980px; }
.h2-xl { font-size: clamp(38px, 5.2vw, 80px); max-width: 1100px; }
.h2-md { font-size: clamp(38px, 4.6vw, 64px); }
.body-lg { margin-top: 32px; max-width: 480px; font-size: 17px; line-height: 1.65; color: var(--muted); }

.gradient-text {
  background: linear-gradient(90deg, #FFFFFF 0%, var(--accent) 35%, var(--teal) 65%, #FFFFFF 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
.gradient-text-2 { background: linear-gradient(90deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; gap: 8px; }
.btn-md { min-height: 50px; padding: 0 24px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-xl { min-height: 58px; padding: 0 34px; font-size: 16px; }
.btn-white { background: #FFFFFF; color: var(--bg); }
.btn-white:hover { color: var(--bg); }
.btn-accent {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 18px 50px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-accent:hover { color: var(--bg); }
.btn-ghost { border: 1px solid rgba(255,255,255,.18); color: var(--text); font-weight: 500; }
.btn-ghost:hover { color: #FFFFFF; border-color: rgba(255,255,255,.35); }
.cta .btn-white { box-shadow: 0 20px 60px -15px color-mix(in srgb, var(--accent) 80%, transparent); }

/* ---------- nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(6,7,10,.62); border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #FFFFFF; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { color: #FFFFFF; }
.nav-links { display: flex; gap: 36px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #FFFFFF; }

/* ---------- glows ---------- */
.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(30px); }
.glow-a { width: 900px; height: 900px; right: -220px; top: -260px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 62%); }
.glow-b { width: 700px; height: 700px; left: -300px; bottom: -380px; background: radial-gradient(circle, rgba(110,231,210,.16) 0%, transparent 65%); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 120px; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.hero-title { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 8.4vw, 136px); line-height: .92; letter-spacing: -0.045em; }
.hero-title span { display: block; }
.hero-lede { margin-top: 40px; max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.hero-ctas { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }

/* entrance animation */
.rise { animation: rise 1s var(--ease) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .34s; }
.d4 { animation-delay: .5s; } .d5 { animation-delay: .62s; }
.gradient-text.rise { animation: rise 1s .34s var(--ease) both, sheen 6s linear infinite; }

/* ---------- orb ---------- */
.orb-col { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.orb { position: relative; width: 440px; max-width: 100%; aspect-ratio: 1 / 1; }
.orb-ring-dashed { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14); animation: spin 60s linear infinite; }
.orb-ring-conic {
  position: absolute; inset: 9%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--accent) 85%, transparent) 70deg, transparent 140deg, rgba(110,231,210,.7) 230deg, transparent 300deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 68%, transparent 69%);
  mask: radial-gradient(circle, transparent 66%, #000 67%, #000 68%, transparent 69%);
  animation: spin 9s linear infinite;
}
.orb-ring-orbit { position: absolute; inset: 18%; border-radius: 50%; border: 1px solid var(--line); animation: spinrev 40s linear infinite; }
.orb-satellite { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 18px var(--teal); }
.orb-core {
  position: absolute; inset: 27%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95) 0%, color-mix(in srgb, var(--accent) 90%, transparent) 22%, rgba(30,36,70,.9) 62%, #0B0D14 100%);
  box-shadow: 0 0 120px -10px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 -20px 60px rgba(0,0,0,.6);
  animation: breathe 4.5s ease-in-out infinite;
}
.orb-wave { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; height: 60px; }
.orb-wave span { width: 3px; border-radius: 3px; background: linear-gradient(180deg, #FFFFFF, var(--accent)); animation: wave 1.3s ease-in-out infinite; }

.chip {
  position: absolute; padding: 10px 14px; border-radius: 14px; font-size: 13px;
  background: rgba(16,18,26,.78); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.chip-1 { left: -6%; top: 14%; animation: float 6s ease-in-out infinite; }
.chip-2 { right: -4%; top: 46%; animation: float 7s 1s ease-in-out infinite; }
.chip-3 { left: 4%; bottom: 24%; font-size: 12px; animation: float 8s .5s ease-in-out infinite; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); flex: none; }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 26px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-size: 22px; color: #8A909C; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--accent); }

/* ---------- sections ---------- */
.section { position: relative; }
.section-why { padding: 160px 0 120px; }
.section-demo { padding: 120px 0 160px; overflow: hidden; }
.section-how { padding: 140px 0; border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--bg), #090A0F 50%, var(--bg)); }
.section-progress { padding: 140px 0 160px; }

/* ---------- compare ---------- */
.compare { margin-top: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.compare-col { padding: 48px; }
.compare-old { background: var(--bg-2); }
.compare-new { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, #0D0F16 55%); border-left: 1px solid var(--line); }
.compare-word { margin: 20px 0 36px; font-family: var(--display); font-size: 34px; letter-spacing: -0.02em; color: #8A909C; }
.checklist { display: flex; flex-direction: column; gap: 18px; font-size: 16px; color: #8A909C; }
.checklist.bright { color: #E5E7EB; }
.checklist li { display: flex; gap: 14px; align-items: center; }
.checklist svg { width: 18px; height: 18px; flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ic-x { stroke: var(--dim); stroke-width: 2; }
.ic-check { stroke: var(--teal); stroke-width: 2.2; }

/* ---------- demo ---------- */
.glow-demo { left: 50%; top: 40%; width: 1100px; height: 700px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); filter: blur(40px); }
.section-demo .container { position: relative; }
.demo-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.demo-head > div { flex: 1 1 520px; min-width: 0; }
.demo-head .eyebrow { margin-bottom: 24px; }
.demo-intro { flex: 0 1 360px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.tabs { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  min-height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03);
  color: var(--muted); font: 500 15px var(--sans); transition: all .2s;
}
.tab:hover { color: #FFFFFF; border-color: rgba(255,255,255,.3); }
.tab[aria-selected="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); color: #FFFFFF; }

.demo-body { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px; }
.panel { border-radius: 28px; border: 1px solid rgba(255,255,255,.1); }
.convo { flex: 999 1 560px; min-width: 0; background: linear-gradient(180deg, rgba(20,22,32,.92), rgba(10,11,16,.92)); box-shadow: 0 40px 120px -40px rgba(0,0,0,.9); overflow: hidden; }
.convo-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,.07); }
.convo-title { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.convo-feed { padding: 32px 28px; display: flex; flex-direction: column; gap: 24px; min-height: 380px; }
.msg { display: flex; gap: 14px; align-items: flex-start; }
.msg-content { min-width: 0; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFFFF, var(--accent) 45%, #1E2446); box-shadow: 0 0 24px -4px var(--accent); }
.msg-label { margin-bottom: 8px; font-size: 12px; color: var(--dimmer); font-family: var(--mono); letter-spacing: .08em; }
.question { font-family: var(--display); font-size: 23px; line-height: 1.35; letter-spacing: -0.01em; color: #FFFFFF; min-height: 62px; }
.caret { display: inline-block; width: 2px; height: 22px; margin-left: 3px; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.answer { align-self: flex-end; max-width: 88%; padding: 18px 20px; border-radius: 20px 20px 6px 20px; background: rgba(255,255,255,.06); border: 1px solid var(--line); animation: rise .6s var(--ease) both; }
.answer p:last-child { font-size: 15px; line-height: 1.6; color: #D7DAE0; }
#analyzeBtn { align-self: flex-start; box-shadow: 0 14px 40px -12px var(--accent); }
.analyzing { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.dots { display: flex; gap: 5px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dots 1.2s infinite; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
#tipBox { animation: rise .6s var(--ease) both; }
#tipBox .avatar { box-shadow: none; }
.tip { min-width: 0; padding: 18px 20px; border-radius: 6px 20px 20px 20px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.tip .msg-label { margin-bottom: 6px; }
.tip p:last-child { font-size: 15px; line-height: 1.6; color: #E5E7EB; }

.scorecard { flex: 1 1 320px; min-width: 0; background: rgba(12,13,19,.9); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.score-head { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.btn-replay { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #C9CDD4; font: 500 13px var(--sans); cursor: pointer; }
.btn-replay:hover { color: #FFFFFF; border-color: rgba(255,255,255,.3); }
.score-total { display: flex; align-items: baseline; gap: 10px; }
#overall { font-family: var(--display); font-weight: 600; font-size: 88px; line-height: 1; letter-spacing: -0.05em; color: #FFFFFF; }
.out-of { font-size: 16px; color: var(--dimmer); }
.score-list { display: flex; flex-direction: column; gap: 18px; }
.score-row-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.score-row-top span:first-child { color: #C9CDD4; }
.score-row-top span:last-child { font-family: var(--mono); color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width 1.1s var(--ease); }
.fineprint { margin-top: auto; font-size: 12px; line-height: 1.5; color: var(--dimmer); }

/* ---------- how it works ---------- */
.section-how .eyebrow { margin-bottom: 24px; }
.timeline { position: relative; margin-top: 88px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18) 10%, rgba(255,255,255,.18) 90%, transparent); }
.timeline-pulse { position: absolute; top: -3px; width: 120px; height: 7px; border-radius: 7px; background: linear-gradient(90deg, transparent, var(--accent), transparent); filter: blur(1px); animation: travel 5s ease-in-out infinite; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 40px; }
.step-n { font-family: var(--display); font-size: 96px; font-weight: 500; line-height: 1; letter-spacing: -0.05em; background: linear-gradient(180deg, #FFFFFF, rgba(255,255,255,.08)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-title { margin: 22px 0 10px; font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.step-body { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- progress ---------- */
.progress-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.progress-copy { flex: 1 1 440px; min-width: 0; }
.progress-copy .eyebrow { margin-bottom: 24px; }
.feature-list { margin-top: 40px; display: flex; flex-direction: column; gap: 1px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); max-width: 460px; }
.feature-list li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--bg-3); font-size: 15px; }
.feature-list svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.history-col { flex: 1 1 480px; min-width: 0; position: relative; }
.glow-history { inset: -10% -6%; border-radius: 0; background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
.history { position: relative; background: linear-gradient(180deg, rgba(22,24,34,.95), rgba(11,12,17,.95)); padding: 28px; box-shadow: 0 50px 120px -40px rgba(0,0,0,.9); transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); }
.history-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.history-title { font-family: var(--display); font-size: 20px; font-weight: 500; }
.trend { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 0 4px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.trend span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(110,231,210,.25)); }
.history-list { display: flex; flex-direction: column; margin-top: 8px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.history-row p:first-child { font-size: 15px; color: #E5E7EB; }
.history-row .sub { margin-top: 4px; font-size: 13px; color: var(--dimmer); }
.pill { flex: none; padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: 13px; background: rgba(255,255,255,.06); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: 180px 0 200px; border-top: 1px solid var(--line-soft); text-align: center; }
.cta-glow { position: absolute; left: 50%; bottom: -520px; width: 1200px; height: 900px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent) 0%, transparent 60%); filter: blur(20px); }
.cta-horizon { position: absolute; left: 50%; bottom: -760px; width: 1400px; height: 1400px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.cta-inner { position: relative; max-width: 1100px; }
.cta-title { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 9vw, 150px); line-height: .9; letter-spacing: -0.05em; }
.cta .body-lg { margin-top: 36px; max-width: 520px; font-size: 18px; }
.cta-actions { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--dimmer); }
.footer-links { display: flex; gap: 24px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.history.reveal { transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) translateY(32px); }
.history.reveal.in { transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); }

/* ---------- keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinrev { to { transform: rotate(-360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes travel { 0% { left: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 120px); opacity: 0; } }
@keyframes dots { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes sheen { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .brand { font-size: 15px; }
  .nav .btn-sm { padding: 0 16px; font-size: 13px; }
  .hero { padding: 64px 0 88px; }
  .section-why { padding: 112px 0 88px; }
  .section-demo, .section-how, .section-progress { padding: 96px 0; }
  .compare-col { padding: 32px 24px; }
  .compare-new { border-left: 0; border-top: 1px solid var(--line); }
  .convo-feed { padding: 24px 18px; }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
  .history { transform: none; }
  .history.reveal, .history.reveal.in { transform: none; }
  .cta { padding: 120px 0 140px; }
}

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

/* ---------- login page ---------- */
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; text-align: center; }
.login-title { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -.02em; }
.login-back { color: var(--muted); font-size: 14px; text-decoration: none; }
.login-back:hover { color: #FFFFFF; }
.login-msg { color: var(--dimmer); max-width: 360px; min-height: 1em; }
.nav-signout { background: none; border: 0; padding: 0; color: var(--text); font-size: 14px; cursor: pointer; text-decoration: underline; }

/* ---------- role selection page ---------- */
.roles-page { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 48px 24px 80px; text-align: center; }
.roles-page .body-lg { margin-top: 0; }
.role-search { width: 100%; max-width: 480px; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--text); font: 400 15px var(--sans); }
.role-search::placeholder { color: var(--dim); }
#roleGrid { width: 100%; display: flex; flex-direction: column; gap: 28px; text-align: left; margin-top: 8px; }
.role-cat-title { color: var(--dimmer); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; font-weight: 500; }
.role-list { display: flex; flex-wrap: wrap; gap: 10px; }
.role-chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #C9CDD4; font: 500 14px var(--sans); cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.role-chip:hover { color: #FFFFFF; border-color: var(--accent); transform: translateY(-1px); }
.role-empty { color: var(--muted); }
.role-other { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 16px; color: var(--dimmer); }
.role-other-row { display: flex; gap: 12px; width: 100%; justify-content: center; flex-wrap: wrap; }

/* ---------- interview page ---------- */
.iv-page { padding: 32px 24px 80px; display: flex; flex-direction: column; gap: 20px; }
.iv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.iv-meta { display: flex; gap: 16px; align-items: center; color: var(--muted); }
.iv-change { color: var(--accent); }
.iv-progress { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 12px; }
.iv-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width .4s var(--ease); }
.iv-count { color: var(--dimmer); }
.iv-bubble { font-family: var(--display); font-size: 24px; line-height: 1.35; letter-spacing: -.01em; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-3); margin-bottom: 20px; }
.iv-label { display: block; color: var(--dimmer); margin-bottom: 8px; }
.iv-answer { width: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--text); font: 400 16px/1.6 var(--sans); resize: vertical; }
.iv-answer::placeholder { color: var(--dim); }
.iv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.iv-row-center { justify-content: center; margin-top: 8px; }
.iv-words { color: var(--dimmer); }
.iv-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.iv-score { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-3); }
.iv-score-n { font-family: var(--display); font-size: 34px; font-weight: 600; }
.iv-score:first-child .iv-score-n { background: linear-gradient(90deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.iv-score-l { color: var(--dimmer); text-transform: uppercase; letter-spacing: .06em; }
.iv-tips { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.iv-tips li { padding: 14px 16px; border-left: 2px solid var(--accent); background: var(--bg-3); border-radius: 0 12px 12px 0; color: #C9CDD4; line-height: 1.55; }
.iv-history { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; counter-reset: q; }
.iv-history li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: #C9CDD4; }
#ivSummaryView .login-title { text-align: center; margin-bottom: 20px; }
.iv-note { color: var(--dim); text-align: center; margin-top: 12px; }
@media (max-width: 560px) { .iv-scores { grid-template-columns: repeat(2, 1fr); } .iv-bubble { font-size: 20px; } }

/* ---------- history page ---------- */
.hist-list { display: flex; flex-direction: column; gap: 12px; }
.hist-item { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-3); }
.hist-item summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; color: #C9CDD4; }
.hist-item[open] summary { border-bottom: 1px solid var(--line); }
.hist-answer { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.hist-answer + .hist-answer { border-top: 1px solid var(--line-soft); }
.hist-q { font-family: var(--display); font-size: 17px; }
.hist-a { color: var(--muted); line-height: 1.6; white-space: pre-wrap; }
.hist-m { color: var(--dimmer); }
#ivReturn, #hReturn { background: var(--teal); color: var(--bg); border: 0; font-weight: 600; }
#ivReturn:hover, #hReturn:hover { color: var(--bg); }

/* ---------- email login / sign up ---------- */
.login-or { width: 100%; max-width: 360px; display: flex; align-items: center; gap: 12px; color: var(--dimmer); }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.login-tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; }
.login-tabs button[aria-selected="true"] { background: #FFFFFF; color: var(--bg); }
.login-form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.login-form label { color: var(--dimmer); margin-top: 6px; }
.login-form .role-search { max-width: none; }
.login-form .btn { margin-top: 14px; justify-content: center; }
#formMsg { color: #FF9A9A; }

/* ---------- profile menu ---------- */
.profile { position: relative; margin-left: 12px; flex-shrink: 0; }
.profile-fixed { position: absolute; top: 20px; right: 24px; margin: 0; }
.profile-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: linear-gradient(135deg, var(--accent), var(--teal)); color: var(--bg); font: 600 15px var(--display); cursor: pointer; overflow: hidden; padding: 0; display: grid; place-items: center; }
.profile-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-btn:hover { border-color: #FFFFFF; }
.profile-menu { position: absolute; right: 0; top: 52px; z-index: 50; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #0F1117; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); display: flex; flex-direction: column; text-align: left; }
.profile-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow-wrap: anywhere; }
.profile-head span { color: var(--muted); }
.profile-item { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: 500 14px var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.profile-item:hover, .profile-item:focus-visible { background: rgba(255,255,255,.08); color: #FFFFFF; }
.profile-danger { color: #FF8A8A; }
.profile-danger:hover { background: rgba(255,90,90,.14); color: #FFB0B0; }
.dialog-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.65); }
.dialog { width: 100%; max-width: 420px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #0F1117; display: flex; flex-direction: column; gap: 16px; }
.dialog h2 { font-family: var(--display); font-size: 22px; }
.dialog p { color: var(--muted); line-height: 1.55; }
.dialog .role-search { max-width: none; }
.dialog-msg { color: #FF9A9A !important; min-height: 1em; }
.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.btn-danger { background: #E5484D; color: #FFFFFF; }
.btn-danger:hover { color: #FFFFFF; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- coding problem ---------- */
.iv-code { font-family: var(--mono); font-size: 14px; line-height: 1.55; tab-size: 4; white-space: pre; overflow-x: auto; }
.iv-row-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.iv-codeout { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.iv-test { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 10px; font: 400 13px var(--mono); overflow-wrap: anywhere; }
.iv-test.pass { background: rgba(110,231,210,.1); border: 1px solid rgba(110,231,210,.3); color: var(--teal); }
.iv-test.fail { background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.3); color: #FF9A9A; }
.iv-test span { color: #C9CDD4; }
.iv-code-err { padding: 10px 14px; border-radius: 10px; background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.3); color: #FF9A9A; font: 400 13px var(--mono); white-space: pre-wrap; }
.hist-code { font-family: var(--mono); font-size: 13px; background: var(--bg); padding: 12px; border-radius: 10px; overflow-x: auto; }

/* ---------- voice controls ---------- */
.iv-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: -8px 0 20px; }
.iv-tools .btn { gap: 8px; }
.iv-auto { display: flex; align-items: center; gap: 8px; color: var(--dimmer); cursor: pointer; }
.iv-auto input { width: 16px; height: 16px; accent-color: var(--accent); }
.iv-mic { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.iv-mic .btn { gap: 8px; }
.iv-mic .iv-words { margin: 0; }
.btn.recording { border-color: #E5484D; color: #FF9A9A; }
.btn.recording svg { animation: pulse-mic 1.2s ease-in-out infinite; }
@keyframes pulse-mic { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .btn.recording svg { animation: none; } }

/* voice buttons: filled color instead of the default outline */
#ivListen { background: var(--accent); color: var(--bg); border: 0; font-weight: 600; }
#ivListen:hover { color: var(--bg); }
#ivMic { background: #FFB86B; color: var(--bg); border: 0; font-weight: 600; }
#ivMic:hover { color: var(--bg); }
#ivMic.recording { background: #E5484D; color: #FFFFFF; }

/* ---------- AI interviewer ---------- */
.iv-interviewer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.iv-avatar { position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line); overflow: hidden; background: var(--bg-3); transition: border-color .2s, box-shadow .2s; }
.iv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iv-avatar-sm { width: 48px; height: 48px; }
.iv-avatar.speaking { border-color: var(--teal); animation: speak-glow 1.1s ease-in-out infinite; }
@keyframes speak-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(110,231,210,.55); } 50% { box-shadow: 0 0 0 9px rgba(110,231,210,0); } }
@media (prefers-reduced-motion: reduce) { .iv-avatar.speaking { animation: none; box-shadow: 0 0 0 4px rgba(110,231,210,.45); } }
.iv-who { display: flex; flex-direction: column; gap: 2px; }
.iv-who strong { font-family: var(--display); font-size: 18px; }
.iv-who span { color: var(--dimmer); }
.iv-switch { display: flex; gap: 8px; margin-left: auto; }
.iv-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #C9CDD4; font: 500 13px var(--sans); cursor: pointer; }
.iv-pick img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.iv-pick[aria-pressed="true"] { border-color: var(--accent); color: #FFFFFF; background: rgba(142,162,255,.12); }
.iv-bubble-soft { font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--muted); margin-bottom: 12px; }
.iv-reply { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-3); margin-bottom: 20px; }
.iv-reply-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.iv-reply-body p { line-height: 1.55; overflow-wrap: anywhere; }
.iv-reply-follow { font-family: var(--display); font-size: 19px; color: #FFFFFF; }
.iv-typing { color: var(--dimmer); }
@media (max-width: 560px) { .iv-switch { margin-left: 0; width: 100%; } }

/* ---------- interview room ---------- */
.mouth { position: absolute; left: var(--mx); top: var(--my); width: var(--mw); height: var(--mh); opacity: 0; transform: translate(-50%, -50%) scale(1, 0); pointer-events: none; border-radius: 50% 50% 56% 56% / 32% 32% 68% 68%; background: radial-gradient(ellipse at 50% 15%, #8a2b2b 0%, #4a1414 55%, #240808 100%); box-shadow: 0 0 0 2px var(--lip); overflow: hidden; }
.mouth::before { content: ''; position: absolute; left: 7%; right: 7%; top: 0; height: 34%; background: #f6f1ea; border-radius: 0 0 45% 45% / 0 0 100% 100%; }
.mouth::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: -12%; height: 42%; background: #c4585a; border-radius: 50%; }
.stage-caption { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); z-index: 3; max-width: 82%; padding: 10px 18px; border-radius: 14px; background: rgba(6,7,10,.78); backdrop-filter: blur(6px); color: #FFFFFF; font-size: 16px; line-height: 1.45; text-align: center; }
.stage-caption strong { color: var(--teal); font-weight: 600; }
.stage-start { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(6,7,10,.35); }
.stage-start.is-intro { inset: auto 12px 12px auto; background: none; padding: 0; }
.stage-start .nav-signout { color: #FFFFFF; font-size: 14px; }
.stage-sound { position: absolute; top: 12px; right: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(6,7,10,.6); color: #FFFFFF; font: 500 13px var(--sans); cursor: pointer; }
.stage-sound.is-off { color: #FF9A9A; }
.iv-asker { color: var(--teal); margin-bottom: 8px; }
@media (max-width: 640px) { .stage-caption { font-size: 13px; bottom: 6%; padding: 8px 12px; } .stage-sound span { display: none; } .stage-sound { padding: 0 10px; } .tag { font-size: 10px; padding: 3px 8px; } }

/* ---------- interview room: one scene, two animated layers ---------- */
.stage { position: relative; width: min(100%, calc(72vh * 1.278)); margin: 0 auto; aspect-ratio: 1254 / 981; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: #1b4a9c; isolation: isolate; }
.scene { position: absolute; inset: 0; }
.scene img { display: block; width: 100%; height: 100%; }
.scene-base { position: absolute; inset: 0; }
/* Each interviewer is a cut-out of the same picture that moves on top of the still scene. */
.actor { position: absolute; inset: 0; clip-path: var(--clip); }
.figure { position: absolute; inset: 0; transform-origin: var(--ox) var(--oy); will-change: transform; }
.figure img { position: absolute; inset: 0; }
.tag { position: absolute; bottom: 2.2%; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: rgba(6,7,10,.72); color: #FFFFFF; font: 500 12px var(--mono); white-space: nowrap; }
.tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.tag.is-speaking::before { background: var(--teal); box-shadow: 0 0 8px 2px rgba(110,231,210,.7); }
.tag-left { left: 2%; }
.tag-right { right: 2%; }

/* Makenzie's smile already shows teeth: her lower jaw moves and a dark gap shows behind it. */
.gap { position: absolute; inset: 0; clip-path: var(--gap); background: linear-gradient(180deg, #3d1114, #1a0507); pointer-events: none; }
.jaw { position: absolute; inset: 0; clip-path: var(--jaw); will-change: transform; pointer-events: none; }
.jaw img { position: absolute; inset: 0; }
.iv-answer[readonly] { cursor: default; background: rgba(255,255,255,.03); }
.iv-hist-head { display: flex; justify-content: space-between; gap: 16px; }
.iv-history li { flex-direction: column; }
.iv-history details { margin-top: 8px; color: var(--muted); }
.iv-history summary { cursor: pointer; font: 500 13px var(--mono); color: var(--dimmer); }
.iv-history details ul { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 0 18px; list-style: disc; font-size: 14px; line-height: 1.5; }

/* ---------- tap-to-answer microphone ---------- */
.iv-voicebox { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 4px; text-align: center; }
.iv-bigmic { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 132px; height: 132px; border-radius: 50%; border: 0; background: #FFB86B; color: var(--bg); font: 600 13px var(--sans); cursor: pointer; box-shadow: 0 14px 40px -12px rgba(255,184,107,.7); transition: transform .2s var(--ease), box-shadow .2s; }
.iv-bigmic:hover { transform: scale(1.04); }
.iv-bigmic.recording { background: #E5484D; color: #FFFFFF; animation: mic-pulse 1.3s ease-in-out infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.55); } 50% { box-shadow: 0 0 0 20px rgba(229,72,77,0); } }
@media (prefers-reduced-motion: reduce) { .iv-bigmic.recording { animation: none; box-shadow: 0 0 0 8px rgba(229,72,77,.4); } }
.iv-review { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
#ivAudio { display: none; }

/* review buttons: color instead of the default outline */
#ivPlay { background: var(--accent); color: var(--bg); border: 0; font-weight: 600; }
#ivPlay:hover { color: var(--bg); }
#ivRedo { background: #FFB86B; color: var(--bg); border: 0; font-weight: 600; }
#ivRedo:hover { color: var(--bg); }

/* ---------- interview results: grades, feedback, better answers ---------- */
.grade-A { --gc: #6EE7D2; } .grade-B { --gc: #8EA2FF; } .grade-C { --gc: #FFB86B; } .grade-D { --gc: #FF9A5B; } .grade-F { --gc: #FF6B6B; }
.iv-overall { display: flex; align-items: center; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-3); margin-bottom: 18px; }
.iv-grade { flex-shrink: 0; width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; border: 4px solid var(--gc, var(--line)); color: var(--gc, #FFFFFF); font: 700 56px var(--display); }
.iv-overall-text { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.iv-outcome { font: 600 18px var(--display); }
.iv-overall-text p { line-height: 1.55; }
.iv-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; text-align: left; }
.iv-twocol > div { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-3); }
.iv-h { color: var(--dimmer); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; font-weight: 500; }
.iv-bullets { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; list-style: disc; line-height: 1.5; color: #C9CDD4; }
.iv-feedback-status { color: var(--dimmer); text-align: center; margin: 4px 0 12px; min-height: 1em; }
#ivRetryFeedback { align-self: center; margin: 0 auto 16px; display: block; }
.iv-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; text-align: left; }
.iv-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-3); display: flex; flex-direction: column; gap: 10px; }
.iv-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.iv-card-q { font: 500 17px var(--display); line-height: 1.35; }
.iv-chip { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--gc); color: var(--gc); font: 700 18px var(--display); }
.iv-fb { color: #C9CDD4; line-height: 1.6; }
.iv-fb strong { color: #FFFFFF; }
.iv-better { padding: 14px 16px; border-left: 3px solid var(--teal); border-radius: 0 12px 12px 0; background: rgba(110,231,210,.07); }
.iv-better p { line-height: 1.6; color: #E5E8EE; }
.iv-better-code { margin: 0; padding: 12px; border-radius: 10px; background: var(--bg); overflow-x: auto; font: 400 13px/1.55 var(--mono); color: #E5E8EE; white-space: pre; }
.iv-said summary { cursor: pointer; font: 500 13px var(--mono); color: var(--dimmer); }
.iv-said p { margin-top: 8px; color: var(--muted); line-height: 1.6; white-space: pre-wrap; }
.iv-said pre { margin-top: 8px; }
@media (max-width: 640px) { .iv-overall { flex-direction: column; text-align: center; } .iv-overall-text { text-align: center; } .iv-twocol { grid-template-columns: 1fr; } }

.hist-item summary .iv-chip { width: 32px; height: 32px; font-size: 16px; }
.hist-summary { padding: 14px 18px 4px; }
.hist-better { padding-left: 12px; border-left: 3px solid var(--teal); color: #E5E8EE; }

/* =========================================================
   Buttons are never white. Every button is a color:
   blue (--accent) is the main action, teal is secondary, amber is for retry or "warm" actions,
   red is for anything destructive. Use these for any new button.
   ========================================================= */
.btn-white { background: linear-gradient(90deg, var(--accent), var(--teal)); color: var(--bg); }
.btn-white:hover { color: var(--bg); }
.btn-ghost { background: var(--teal); color: var(--bg); border: 0; font-weight: 600; }
.btn-ghost:hover { color: var(--bg); border: 0; }
.btn-replay { background: var(--accent); color: var(--bg); border: 0; font-weight: 600; }
.btn-replay:hover { color: var(--bg); border: 0; }

.tab { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: #E4E9FF; }
.tab:hover { color: #FFFFFF; border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.role-chip { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: #E4E9FF; }
.role-chip:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.login-tabs { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.login-tabs button { background: color-mix(in srgb, var(--accent) 14%, transparent); color: #E4E9FF; }
.login-tabs button[aria-selected="true"] { background: var(--accent); color: var(--bg); }

.nav-signout, .stage-start .nav-signout { color: var(--teal); }
.stage-sound { background: var(--teal); color: var(--bg); border: 0; font-weight: 600; }
.stage-sound.is-off { background: #E5484D; color: #FFFFFF; }
.profile-item { background: color-mix(in srgb, var(--accent) 16%, transparent); margin-bottom: 4px; }
.profile-item:hover, .profile-item:focus-visible { background: var(--accent); color: var(--bg); }
.profile-danger { background: rgba(229,72,77,.16); color: #FF9A9A; }
.profile-danger:hover, .profile-danger:focus-visible { background: #E5484D; color: #FFFFFF; }

/* ---------- admin: all accounts ---------- */
.admin-wrap { overflow-x: auto; margin: 16px 0 28px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-table th { font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--dimmer); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
#aSearch { margin-top: 8px; }

/* ---------- landing nav: Start practicing + Company + Pre-assessment ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn-teal { background: var(--teal); color: var(--bg); }
.btn-teal:hover { color: var(--bg); filter: brightness(1.08); }
.btn-amber { background: #FFB86B; color: var(--bg); }
.btn-amber:hover { color: var(--bg); filter: brightness(1.08); }
@media (max-width: 720px) { .nav { flex-wrap: wrap; } .nav-actions { gap: 8px; } }
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

/* ---------- company dashboard + pre-assessment ---------- */
.co-center { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.co-center .body-lg { margin-top: 0; }
.co-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.co-title { text-align: left; font-size: 34px; }
.co-sub { color: var(--muted); line-height: 1.55; }
.co-meta { color: var(--dimmer); }
.co-empty { color: var(--muted); padding: 12px 0; }
.co-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.co-card { border: 1px solid var(--line); border-radius: 18px; background: var(--bg-3); padding: 22px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.co-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.co-card-title { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.co-codebadge { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--teal) 55%, transparent); color: var(--teal); font-size: 13px; letter-spacing: .04em; }
.co-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.co-actions-left { justify-content: flex-start; }
.co-pad { padding: 14px 18px 18px; }
.btn.co-danger { background: rgba(229,72,77,.16); color: #FF9A9A; border: 1px solid rgba(229,72,77,.45); }
.btn.co-danger:hover { background: #E5484D; color: #FFFFFF; border-color: #E5484D; }
.co-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.co-field { display: flex; flex-direction: column; gap: 8px; color: var(--dimmer); text-align: left; }
.co-row { display: flex; gap: 10px; align-items: center; }
.co-row .co-input { flex: 1; }
.co-input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--text); font: 400 15px/1.5 var(--sans); }
.co-input::placeholder { color: var(--dim); }
.co-input:focus { outline: none; border-color: var(--teal); }
select.co-input { background: var(--bg-3); }
textarea.co-input { resize: vertical; }
.co-code { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.co-hint { color: var(--dim); }
.co-h2 { font-family: var(--display); font-size: 22px; font-weight: 600; margin-top: 18px; display: flex; align-items: baseline; gap: 10px; }
.co-count { color: var(--dimmer); font-weight: 400; }
.co-qs { display: flex; flex-direction: column; gap: 10px; }
.co-q { display: flex; gap: 10px; align-items: flex-start; }
.co-q-n { width: 26px; padding-top: 16px; color: var(--dimmer); text-align: right; flex-shrink: 0; }
.co-q-text { flex: 1; }
.co-q-tools { display: flex; flex-direction: column; gap: 4px; }
.co-icon { width: 34px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #C9CDD4; cursor: pointer; font-size: 13px; }
.co-icon:hover:not(:disabled) { border-color: var(--teal); color: #FFFFFF; }
.co-icon:disabled { opacity: .3; cursor: default; }
.co-add { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.co-add .co-field { width: 100%; }
.co-bank { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-3); }
.co-bank summary { padding: 16px 18px; cursor: pointer; color: #C9CDD4; font-weight: 500; }
.co-bank[open] summary { border-bottom: 1px solid var(--line); }
.co-bank-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.co-bank-body .co-field { width: 100%; max-width: 420px; }
.co-bank-list { width: 100%; display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.co-check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: #C9CDD4; line-height: 1.5; cursor: pointer; text-align: left; }
.co-check:hover { background: rgba(255,255,255,.04); }
.co-check input { margin-top: 4px; accent-color: var(--teal); width: 16px; height: 16px; flex-shrink: 0; }
.co-check input:disabled + span { color: var(--dim); }
.co-msg { max-width: none; color: #FF9A9A; text-align: left; }
.co-stats { margin: 8px 0 4px; }
.co-ans-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.co-ans-head .iv-chip { width: 32px; height: 32px; font-size: 16px; }
.co-twocol { padding: 0 18px 8px; }
.hist-item summary .co-sub { font-size: 14px; }
.co-ready { width: 100%; max-width: 520px; }
.co-tips li { color: var(--muted); }
/* Candidates taking a company pre-assessment do not see grades; the company reviews them. */
.assess-only { display: none; }
body.is-assessment .assess-only { display: block; }
body.is-assessment .practice-only,
body.is-assessment .iv-overall,
body.is-assessment #ivTwoCol,
body.is-assessment #ivHistory { display: none !important; }
@media (max-width: 560px) { .co-list { grid-template-columns: 1fr; } .co-title { font-size: 28px; } }

/* ---------- company dashboard: applicants sidebar ---------- */
.co-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.co-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-3); max-height: calc(100vh - 32px); }
.co-side.hidden + .co-main { grid-column: 1 / -1; }
.co-nav-item, .co-side-item { width: 100%; border: 0; border-radius: 12px; font: 500 14px var(--sans); text-align: left; cursor: pointer; color: var(--text); background: color-mix(in srgb, var(--teal) 14%, var(--bg-3)); }
.co-nav-item { padding: 12px 14px; background: var(--teal); color: var(--bg); font-weight: 600; }
.co-nav-item:hover { filter: brightness(1.08); }
.co-side-h { margin-top: 6px; color: var(--dimmer); text-transform: uppercase; letter-spacing: .06em; }
.co-side-search { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.co-side-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; }
.co-side-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.co-side-item:hover { background: color-mix(in srgb, var(--teal) 28%, var(--bg-3)); }
.co-side-item.is-active { background: var(--teal); color: var(--bg); }
.co-side-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-side-name strong, .co-side-name .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-side-name .small { opacity: .75; }
.co-side-state { flex-shrink: 0; opacity: .75; }
.co-side-empty { color: var(--muted); line-height: 1.5; padding: 4px 2px; }
.co-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: #8B93A1; }
.co-dot-done { background: #4ADE80; }
.co-dot-progress { background: #FFB86B; }
.co-app-item { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.co-app-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-side { position: static; max-height: none; }
  .co-side-list { max-height: 240px; }
}

/* ---------- pre-assessment countdown ---------- */
.iv-timer { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; }
.iv-timer .mono { min-width: 150px; color: var(--teal); font-weight: 600; }
.iv-timer-track { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.iv-timer-bar { height: 100%; border-radius: 999px; background: var(--teal); transition: width .25s linear; }
.iv-timer.is-low .mono { color: #FF7A7A; }
.iv-timer.is-low .iv-timer-bar { background: #E5484D; }
.co-q-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.co-q-time { min-height: 38px; padding: 6px 12px; max-width: 220px; font-size: 14px; }
.co-timeset { max-width: 560px; margin-bottom: 8px; }
.co-timeset .co-input { max-width: 240px; }
