/* ============================================================
   InterviewPrep.in — Corporate-modern aesthetic
   Deep navy + teal · serious career platform vibes
   ============================================================ */

:root {
  --bg: #FAFBFC;
  --bg-card: #FFFFFF;
  --bg-elev: #F4F6F8;
  --bg-tint: #EEF4F4;

  --ink: #0A1628;
  --ink-soft: #1A2942;
  --ink-mute: #4A5878;
  --ink-faint: #7A8AA0;

  --line: #E2E7EE;
  --line-soft: #EDF1F5;
  --line-bright: #CBD3DD;

  --teal: #0E9888;
  --teal-deep: #086E63;
  --teal-soft: #D5F0EC;
  --teal-bright: #19C2AE;

  --navy: #0A1628;
  --gold: #D4A12B;

  --green: #16A34A;
  --amber: #D97706;
  --red: #DC2626;
  --blue: #2563EB;

  --display: 'Newsreader', Georgia, serif;
  --body: 'Geist', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.1);
  --shadow-glow: 0 8px 32px rgba(14, 152, 136, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--teal); color: #fff; }

/* ===== DOTTED BG ===== */
.dot-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(74, 88, 120, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 80%);
}

/* ===== NAV ===== */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--bg);
  border-radius: var(--r-sm);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-icon { transform: rotate(-8deg); }
.brand-text {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.dot { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-mute); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.cta-link {
  background: var(--navy) !important;
  color: var(--bg) !important;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  transition: all .25s;
  font-weight: 500;
}
.cta-link:hover { background: var(--teal) !important; transform: translateY(-1px); }
@media (max-width: 720px) { .nav-links a:not(.cta-link) { display: none; } }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 1s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1000px) { .hero-inner { grid-template-columns: 1fr; gap: 60px; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.28); }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(44px, 7.5vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: -2%; bottom: 4px;
  width: 104%; height: 8px;
  background: var(--teal);
  opacity: 0.2;
  border-radius: 999px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1.2s cubic-bezier(.16,1,.3,1) .8s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-mute);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 48px; }

.btn-primary {
  background: var(--navy);
  color: var(--bg);
  padding: 15px 28px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform: translateX(-101%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-arrow { transition: transform .25s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-primary.big { padding: 18px 34px; font-size: 16px; }

.btn-ghost {
  color: var(--ink);
  padding: 15px 22px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--line-bright);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.hero-trust {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.trust-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.divider { width: 1px; height: 40px; background: var(--line); }

/* ===== HERO VISUAL ===== */
.hero-visual {
  position: relative;
  height: 500px;
  display: grid;
  place-items: center;
}
@media (max-width: 1000px) { .hero-visual { height: 420px; } }

.visual-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  width: 320px;
}
.visual-back {
  top: 30px; right: 0;
  z-index: 1;
  transform: rotate(4deg);
  animation: floatBack 6s ease-in-out infinite;
}
@keyframes floatBack {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-8px); }
}

.vc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.vc-pill {
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.vc-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.vc-q {
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.vc-mic {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elev);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.vc-mic-ring {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
  animation: pulse 1.5s infinite;
}
.vc-mic-icon { font-size: 16px; }

.visual-front {
  bottom: 30px; left: 0;
  z-index: 2;
  transform: rotate(-3deg);
  animation: floatFront 6s ease-in-out infinite;
}
@keyframes floatFront {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-12px); }
}

.vc-score-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.vc-score-num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.04em;
}
.vc-score-num span {
  font-size: 22px;
  color: var(--ink-faint);
}
.vc-score-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  margin: 8px 0 18px;
  font-weight: 600;
}
.vc-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--ink-mute);
}
.vc-bar-row > span { width: 70px; }
.vc-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-elev);
  border-radius: 3px;
  overflow: hidden;
}
.vc-bar > div {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
}

.visual-tag {
  position: absolute;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 5;
  animation: bob 4s ease-in-out infinite;
}
.tag-1 { top: 5%; right: -10px; background: var(--teal); }
.tag-2 { bottom: 8%; right: -20px; animation-delay: 1s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}
.orb-1 {
  width: 200px; height: 200px;
  background: var(--teal);
  top: -50px; right: -50px;
  opacity: 0.2;
}
.orb-2 {
  width: 250px; height: 250px;
  background: var(--gold);
  bottom: -80px; left: -50px;
  opacity: 0.15;
}

/* ===== SECTION COMMON ===== */
.section-head {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 32px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
  font-weight: 500;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
}
.section-title em {
  color: var(--teal);
  font-style: italic;
  font-weight: 400;
}

/* ===== HOW IT WORKS ===== */
.how {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.how-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .how-grid { grid-template-columns: 1fr; } }

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  transition: all .25s;
}
.how-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.how-num {
  font-family: var(--display);
  font-size: 56px;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 16px;
}
.how-card h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
.how-card p {
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.55;
}

/* ===== ROLES MARQUEE ===== */
.roles-show {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: var(--bg);
}
.roles-show .section-title { color: var(--bg); }
.roles-show .section-title em { color: var(--gold); }
.roles-show .eyebrow { color: var(--gold); }

.roles-marquee {
  overflow: hidden;
  position: relative;
}
.roles-marquee::before, .roles-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.roles-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy), transparent);
}
.roles-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--navy), transparent);
}
.roles-track {
  display: flex;
  gap: 12px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marq-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  white-space: nowrap;
}
.marq-icon { font-size: 20px; }

/* ============================================================
   APP / INTERVIEW FLOW
   ============================================================ */
.app {
  padding: 60px 0 100px;
  position: relative;
  z-index: 1;
}
.app-frame {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Step indicator */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  transition: color .25s;
}
.step.active { color: var(--ink); }
.step.done { color: var(--teal); }
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 13px;
  transition: all .25s;
}
.step.active .step-dot {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.step.done .step-dot {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.step-line {
  width: 60px; height: 2px;
  background: var(--line);
}

/* Screens */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn .35s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SETUP SCREEN ===== */
.setup-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 700px) { .setup-grid { padding: 28px; gap: 28px; } }

.setup-section { display: flex; flex-direction: column; gap: 14px; }
.setup-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.setup-hint {
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 4px;
}

/* Role grid */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.role-card {
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all .2s;
}
.role-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.role-card.active {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal-deep);
}
.role-icon { font-size: 22px; flex-shrink: 0; }
.role-name { line-height: 1.2; }

.setup-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  font-size: 15px;
  color: var(--ink);
  transition: border .2s;
}
.setup-input:focus { outline: none; border-color: var(--teal); }

/* Difficulty */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  text-align: left;
  transition: all .2s;
}
.diff-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.diff-card.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.diff-icon { font-size: 28px; margin-bottom: 12px; }
.diff-card h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink);
}
.diff-card p {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* Segmented control */
.seg-control {
  display: flex;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px;
  gap: 4px;
}
.seg-control button {
  flex: 1;
  padding: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  border-radius: 4px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.seg-control button small {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 400;
}
.seg-control button.active {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.seg-control button.active small { color: rgba(255,255,255,0.7); }

.setup-cta { text-align: center; margin-top: 12px; }
.setup-foot {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===== INTERVIEW SCREEN ===== */
.interview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.iv-meta {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.iv-sep { color: var(--ink-faint); margin: 0 8px; }
.iv-diff {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 8px;
}
.iv-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.iv-progress-bar {
  width: 160px;
  height: 6px;
  background: var(--bg-elev);
  border-radius: 3px;
  overflow: hidden;
}
.iv-progress-bar > div {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  transition: width .35s ease;
}

/* Loading */
.iv-loading, .results-loading {
  text-align: center;
  padding: 80px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loading-pulse {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  margin-bottom: 12px;
  animation: loadPulse 1.5s ease-in-out infinite;
}
@keyframes loadPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}
.loading-text {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.loading-sub {
  font-size: 14px;
  color: var(--ink-mute);
}

/* Question card */
.iv-question-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.iv-question-tag {
  position: absolute;
  top: -10px; left: 24px;
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 5px 12px;
  border-radius: 999px;
}
.iv-question {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
}

/* Answer area */
.iv-answer-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.iv-answer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.iv-answer-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.iv-mode-tabs {
  display: flex;
  background: var(--bg-elev);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 2px;
}
.iv-mode-tabs button {
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  border-radius: 4px;
  transition: all .2s;
}
.iv-mode-tabs button.active {
  background: var(--ink);
  color: var(--bg);
}

#ivAnswer {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
  resize: vertical;
  min-height: 160px;
  transition: border .2s;
}
#ivAnswer:focus { outline: none; border-color: var(--teal); background: var(--bg-card); }

/* Voice mode */
.iv-voice {
  text-align: center;
  padding: 24px 0;
}
.mic-btn {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 38px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  transition: all .25s;
}
.mic-btn:hover { transform: scale(1.05); }
.mic-btn.listening {
  background: var(--red);
  animation: micPulse 1.2s infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); }
}
.mic-icon { line-height: 1; }
.mic-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.mic-transcript {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  min-height: 100px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
  text-align: left;
}

.iv-answer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}
.link-btn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-decoration: underline;
}
.link-btn:hover { color: var(--red); }

/* Feedback */
.iv-feedback {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--teal-soft) 100%);
  border: 1px solid var(--teal);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
@media (max-width: 700px) {
  .iv-feedback { grid-template-columns: 1fr; text-align: center; }
}
.iv-feedback-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.fb-num {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.04em;
  line-height: 1;
}
.fb-num.score-strong { color: var(--green); }
.fb-num.score-mid { color: var(--amber); }
.fb-num.score-weak { color: var(--red); }
.fb-num.score-poor { color: var(--ink-faint); }
.fb-of {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink-faint);
}
.fb-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink);
}
.fb-num.score-strong + .iv-feedback-text .fb-title { color: var(--green); }
.iv-feedback-text p {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.6;
  margin-bottom: 8px;
}
.fb-tip {
  font-size: 13px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  margin-top: 8px;
}

/* ===== RESULTS SCREEN ===== */
.results-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.result-hero {
  background: var(--navy);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 700px) {
  .result-hero { grid-template-columns: 1fr; gap: 24px; padding: 32px; text-align: center; }
}
.result-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.result-score {
  font-family: var(--display);
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--bg);
}
.result-score small { font-size: 32px; color: rgba(255,255,255,0.4); margin-left: 4px; }
.result-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
}
.result-tag.score-strong { background: var(--teal); }
.result-tag.score-mid { background: var(--amber); }
.result-tag.score-weak { background: var(--red); }
.result-summary {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  font-style: italic;
}

.result-bars {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bar-item { display: flex; flex-direction: column; gap: 8px; }
.bar-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}
.bar-score { color: var(--teal); font-weight: 700; }
.bar-track {
  height: 8px;
  background: var(--bg-elev);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
  transition: width 1s cubic-bezier(.16,1,.3,1);
}

.result-section {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.result-h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--ink);
}

.result-questions { display: flex; flex-direction: column; gap: 8px; }
.result-q-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.result-q-item summary {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-family: var(--body);
}
.result-q-item summary::-webkit-details-marker { display: none; }
.rq-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 600;
}
.rq-text {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
.rq-score {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card);
}
.rq-score.score-strong { background: var(--teal-soft); color: var(--teal-deep); }
.rq-score.score-mid    { background: #FEF3C7; color: var(--amber); }
.rq-score.score-weak   { background: #FEE2E2; color: var(--red); }
.rq-score.score-poor   { background: var(--bg); color: var(--ink-faint); }

.rq-body {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rq-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.rq-answer p, .rq-feedback p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.rq-tip {
  background: var(--bg-card);
  border-left: 3px solid var(--teal);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  margin-top: 6px;
}

/* Strengths/weaknesses */
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .result-grid { grid-template-columns: 1fr; } }

.result-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.result-block.strength { border-top: 3px solid var(--green); }
.result-block.weakness { border-top: 3px solid var(--amber); }
.result-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-block li {
  padding: 10px 14px;
  background: var(--bg-elev);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.study-plan {
  list-style: none;
  counter-reset: item;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.study-plan li {
  counter-increment: item;
  padding: 14px 18px 14px 56px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.study-plan li::before {
  content: counter(item);
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.result-tip {
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--teal-deep);
  text-align: center;
}

/* ===== BIG CTA ===== */
.big-cta {
  text-align: center;
  padding: 100px 32px;
  position: relative;
  z-index: 1;
}
.big-cta h2 {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
  max-width: 900px;
  margin: 0 auto 18px;
}
.big-cta h2 em { color: var(--teal); font-style: italic; font-weight: 400; }
.big-cta-sub {
  color: var(--ink-mute);
  font-size: 17px;
  margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: var(--bg);
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.footer .brand { color: var(--bg); }
.footer .brand-icon { background: var(--bg); color: var(--navy); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 14px; }

.footer-cross { margin-bottom: 56px; }
.footer-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.cross-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 18px 22px;
  border-radius: var(--r-md);
  transition: all .25s;
  color: var(--bg);
}
.cross-card:hover { border-color: var(--gold); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.cross-icon {
  font-size: 24px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
}
.cross-card div:not(.cross-icon) { flex: 1; }
.cross-card strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
}
.cross-card em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.cross-arrow { color: rgba(255,255,255,0.3); font-size: 20px; transition: all .25s; }
.cross-card:hover .cross-arrow { color: var(--gold); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; }
  .reveal { opacity: 1; transform: none; }
}
