:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-500: #10b981;
  --green-600: #059669;
  --amber-500: #f59e0b;
  --red-500: #ef4444;
  --red-50: #fef2f2;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50: #f8fafc;
  --bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-700); }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
small { color: var(--ink-500); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-500); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: var(--ink-200); }
.btn-ghost:hover { background: var(--ink-50); color: var(--ink-900); }
.btn-secondary { background: var(--ink-100); color: var(--ink-900); }
.btn-secondary:hover { background: var(--ink-200); }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); font-weight: 700; }
.brand:hover { color: var(--ink-900); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; border-radius: 10px; font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.03em;
}
.brand-text { font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-700); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-600); }
.nav-links a.btn { padding: 8px 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-900); margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-copy .lede { font-size: 1.1rem; max-width: 540px; color: var(--ink-700); }
.hero-cta { display: flex; gap: 12px; margin: 28px 0 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; padding-top: 24px; border-top: 1px solid var(--ink-200); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--ink-900); }
.hero-stats span { font-size: 0.85rem; color: var(--ink-500); }

.hero-visual { position: relative; height: 440px; }
.card-stack { position: relative; width: 100%; height: 100%; }
.visual-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.visual-card-1 { top: 20px; left: 40px; width: 240px; }
.visual-card-2 { top: 180px; right: 0; width: 220px; }
.visual-card-3 { bottom: 20px; left: 0; width: 260px; }
.vc-header { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-500); font-weight: 600; margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-b { background: var(--blue-500); }
.dot-g { background: var(--green-500); }
.dot-y { background: var(--amber-500); }
.score-circle {
  width: 110px; height: 110px; border-radius: 50%;
  background: conic-gradient(var(--blue-500) 0 87%, var(--ink-100) 87% 100%);
  display: grid; place-items: center; margin: 0 auto 16px;
  position: relative;
}
.score-circle::before {
  content: ''; position: absolute; inset: 10px; background: #fff; border-radius: 50%;
}
.score-circle span { position: relative; font-size: 1.8rem; font-weight: 700; color: var(--blue-600); }
.score-circle small { position: absolute; bottom: 20px; font-size: 0.7rem; color: var(--ink-500); }
.vc-bar { height: 6px; background: var(--ink-100); border-radius: 999px; margin-bottom: 8px; overflow: hidden; }
.vc-bar span { display: block; height: 100%; background: var(--blue-500); border-radius: 999px; }
.vc-metric { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ink-100); font-size: 0.9rem; }
.vc-metric:last-child { border: 0; }
.vc-metric strong { color: var(--green-600); }
.vc-chip { background: var(--blue-50); color: var(--blue-700); padding: 10px 14px; border-radius: 999px; font-size: 0.85rem; text-align: center; font-weight: 500; }

/* Sections */
.features, .steps, .cta { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
  display: flex; flex-direction: column;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.icon-blue { background: var(--blue-50); color: var(--blue-600); }
.icon-green { background: #ecfdf5; color: var(--green-600); }
.icon-amber { background: #fffbeb; color: var(--amber-500); }
.feature-list { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.feature-list li {
  padding: 6px 0 6px 24px; position: relative; font-size: 0.92rem; color: var(--ink-700);
}
.feature-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--green-600); font-weight: 700;
}

.steps { background: var(--ink-50); }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; counter-reset: steps; }
.step-list li { background: #fff; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--ink-100); }
.step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--blue-600); color: #fff;
  border-radius: 50%; font-weight: 700; margin-bottom: 12px;
}

.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff; padding: 48px; border-radius: var(--radius-xl);
  flex-wrap: wrap;
}
.cta-box h2 { color: #fff; margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-box .btn-primary { background: #fff; color: var(--blue-700); }
.cta-box .btn-primary:hover { background: var(--ink-50); color: var(--blue-700); }

/* Footer */
.site-footer { padding: 56px 0 24px; border-top: 1px solid var(--ink-100); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-grid h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); margin-bottom: 12px; }
.footer-grid a { display: block; padding: 4px 0; color: var(--ink-700); font-size: 0.95rem; }
.copyright { font-size: 0.85rem; color: var(--ink-500); padding-top: 24px; border-top: 1px solid var(--ink-100); }

/* Page header */
.page-header {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, var(--blue-50), #fff);
  border-bottom: 1px solid var(--ink-100);
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--ink-500); max-width: 640px; }

/* Layout for tools */
.tool-layout { padding: 40px 0 80px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 24px;
}
.panel h3 { margin-bottom: 4px; }
.panel .muted { margin-bottom: 16px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

/* Forms */
label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink-900);
  background: #fff;
  transition: border 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
textarea { resize: vertical; min-height: 260px; line-height: 1.6; }
.field { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help { font-size: 0.82rem; color: var(--ink-500); margin-top: 6px; }

/* Essay result */
.score-hero {
  display: flex; align-items: center; gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--blue-50), #fff);
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100);
  margin-bottom: 24px;
}
.score-hero .big-score {
  width: 130px; height: 130px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--blue-500) 0 var(--pct, 0%), var(--ink-100) var(--pct, 0%) 100%);
  flex-shrink: 0;
}
.score-hero .big-score::before {
  content: ''; position: absolute; inset: 12px; background: #fff; border-radius: 50%;
}
.score-hero .big-score-value { position: relative; font-size: 2rem; font-weight: 800; color: var(--blue-700); }
.score-hero .big-score-value small { font-size: 0.9rem; color: var(--ink-500); font-weight: 500; display: block; text-align: center; }
.score-hero h3 { margin-bottom: 4px; }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.metric {
  background: var(--ink-50); padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--ink-100);
}
.metric-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-500); margin-bottom: 6px; }
.metric-label strong { color: var(--ink-900); }
.metric-bar { height: 6px; background: var(--ink-200); border-radius: 999px; overflow: hidden; }
.metric-bar span { display: block; height: 100%; background: var(--blue-500); border-radius: 999px; transition: width 0.4s ease; }

.analysis-block { margin-top: 24px; }
.analysis-block h4 { font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.analysis-block ul { padding-left: 20px; margin: 0 0 16px; }
.analysis-block li { padding: 4px 0; color: var(--ink-700); }
.tag { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.tag-strong { background: #ecfdf5; color: var(--green-600); }
.tag-weak { background: var(--red-50); color: var(--red-500); }
.tag-tip { background: #fffbeb; color: var(--amber-500); }

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.coverage-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
  background: #fff;
}
.coverage-covered { border-color: var(--green-500); background: #ecfdf5; }
.coverage-missing { border-color: var(--red-500); background: var(--red-50); }
.coverage-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
  background: #fff;
}
.coverage-covered .coverage-icon { color: var(--green-600); border: 2px solid var(--green-500); }
.coverage-missing .coverage-icon { color: var(--red-500); border: 2px solid var(--red-500); }
.coverage-body { flex: 1; min-width: 0; }
.coverage-title { font-weight: 600; font-size: 0.95rem; color: var(--ink-900); margin-bottom: 2px; }
.coverage-meta { font-size: 0.8rem; color: var(--ink-500); margin-bottom: 6px; }
.coverage-bar {
  height: 4px; background: var(--ink-200); border-radius: 999px;
  overflow: hidden; margin-bottom: 6px;
}
.coverage-covered .coverage-bar span { background: var(--green-500); }
.coverage-missing .coverage-bar span { background: var(--red-500); }
.coverage-bar span { display: block; height: 100%; border-radius: 999px; }
.coverage-hint { font-size: 0.8rem; color: var(--ink-700); line-height: 1.4; }

@media (max-width: 920px) {
  .coverage-grid { grid-template-columns: 1fr; }
}

.paragraph-card {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.paragraph-card h5 { font-size: 0.9rem; margin-bottom: 8px; }
.paragraph-card .quote { font-size: 0.88rem; color: var(--ink-700); font-style: italic; padding: 8px 12px; border-left: 3px solid var(--blue-500); background: #fff; border-radius: 0 6px 6px 0; margin-bottom: 10px; }
.paragraph-card .note { font-size: 0.88rem; color: var(--ink-700); }

/* TBS */
.tbs-setup { max-width: 680px; margin: 0 auto; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.category-card {
  border: 2px solid var(--ink-200); border-radius: var(--radius-md);
  padding: 16px; cursor: pointer; text-align: center;
  transition: all 0.15s;
  background: #fff;
}
.category-card:hover { border-color: var(--blue-300, #93c5fd); }
.category-card.selected { border-color: var(--blue-500); background: var(--blue-50); }
.category-card h4 { margin: 8px 0 4px; font-size: 1rem; }
.category-card small { display: block; color: var(--ink-500); }

.quiz-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius-md); margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.timer {
  display: inline-flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--blue-600);
  background: var(--blue-50); padding: 6px 14px; border-radius: 999px;
}
.timer.warn { color: var(--red-500); background: var(--red-50); }
.progress {
  flex: 1; height: 6px; background: var(--ink-100); border-radius: 999px;
  overflow: hidden; min-width: 160px; max-width: 360px;
}
.progress span { display: block; height: 100%; background: var(--blue-500); transition: width 0.3s; }

.question-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 28px;
}
.question-text { font-size: 1.1rem; margin-bottom: 20px; color: var(--ink-900); line-height: 1.6; }
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 2px solid var(--ink-200); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s; background: #fff;
}
.option:hover { border-color: var(--blue-300, #93c5fd); background: var(--blue-50); }
.option input { margin-top: 3px; }
.option.selected { border-color: var(--blue-500); background: var(--blue-50); }
.option.correct { border-color: var(--green-500); background: #ecfdf5; }
.option.incorrect { border-color: var(--red-500); background: var(--red-50); }
.option-label { font-weight: 600; margin-right: 6px; color: var(--ink-500); }

.quiz-actions { display: flex; justify-content: space-between; margin-top: 20px; }

.review-list .paragraph-card { background: #fff; }
.review-list .explanation {
  background: var(--blue-50); border-radius: 8px; padding: 10px 14px;
  color: var(--ink-900); font-size: 0.9rem; margin-top: 10px;
}

/* Interview */
.chat {
  display: flex; flex-direction: column; gap: 14px;
  max-height: 520px; overflow-y: auto; padding: 8px;
}
.bubble {
  max-width: 85%; padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 0.95rem; line-height: 1.55;
}
.bubble-q { background: var(--ink-100); color: var(--ink-900); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-a { background: var(--blue-600); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble small { display: block; font-size: 0.75rem; opacity: 0.75; margin-bottom: 4px; }

.q-num { font-size: 0.8rem; color: var(--ink-500); margin-bottom: 8px; }
.q-text { font-size: 1.1rem; font-weight: 500; margin-bottom: 16px; line-height: 1.55; }

/* Auth */
.auth-wrap { max-width: 440px; margin: 60px auto; padding: 0 24px; }
.auth-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.tabs { display: flex; gap: 4px; background: var(--ink-100); padding: 4px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.tabs button {
  flex: 1; padding: 8px; border: 0; background: transparent; cursor: pointer;
  border-radius: 6px; font-weight: 600; color: var(--ink-500);
}
.tabs button.active { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm); }
.alert { padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 12px; }
.alert-error { background: var(--red-50); color: var(--red-500); }
.alert-success { background: #ecfdf5; color: var(--green-600); }

/* Similarity section */
.sim-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
  background: var(--ink-50);
  margin-bottom: 8px;
}
.sim-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--ink-100);
  text-align: center;
}
.sim-score strong {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sim-score span {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
}
.sim-body { display: flex; flex-direction: column; gap: 10px; }
.sim-bar {
  height: 10px;
  background: var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.sim-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.sim-note { margin: 0; font-size: 0.9rem; color: var(--ink-700); }
.sim-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-500);
}
.sim-meta strong { color: var(--ink-900); font-weight: 700; }

.sim-low { border-color: #fecaca; background: #fef2f2; }
.sim-low .sim-score strong { color: var(--red-500); }
.sim-low .sim-bar span { background: var(--red-500); }

.sim-mid { border-color: #fde68a; background: #fffbeb; }
.sim-mid .sim-score strong { color: var(--amber-500); }
.sim-mid .sim-bar span { background: var(--amber-500); }

.sim-high { border-color: #bbf7d0; background: #f0fdf4; }
.sim-high .sim-score strong { color: var(--green-600); }
.sim-high .sim-bar span { background: var(--green-500); }

.sim-very-high { border-color: #bfdbfe; background: var(--blue-50); }
.sim-very-high .sim-score strong { color: var(--blue-600); }
.sim-very-high .sim-bar span { background: var(--blue-600); }

.sim-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.sim-empty {
  padding: 16px;
  border: 1px dashed var(--ink-200);
  border-radius: var(--radius-md);
  background: var(--ink-50);
}

/* ---------------- Awardee LLM feedback ---------------- */
.fb-summary {
  background: var(--blue-50);
  border-left: 3px solid var(--blue-600);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 0 0 14px 0;
  line-height: 1.6;
  font-size: 0.92rem;
}
.fb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.fb-card {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: #fff;
}
.fb-card.fb-weaker { border-color: #fecaca; background: #fff5f5; }
.fb-card.fb-comparable { border-color: #fde68a; background: #fffbeb; }
.fb-card.fb-stronger { border-color: #bbf7d0; background: #f0fdf4; }
.fb-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 6px; flex-wrap: wrap;
}
.fb-head h5 { margin: 0; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.fb-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; background: #fff;
}
.fb-weaker .fb-icon { color: var(--red-500); border: 1px solid var(--red-500); }
.fb-comparable .fb-icon { color: var(--amber-500); border: 1px solid var(--amber-500); }
.fb-stronger .fb-icon { color: var(--green-600); border: 1px solid var(--green-600); }
.fb-badge {
  font-size: 0.72rem; padding: 3px 9px; border-radius: 999px;
  background: #fff; border: 1px solid currentColor;
}
.fb-weaker .fb-badge { color: var(--red-500); }
.fb-comparable .fb-badge { color: var(--amber-500); }
.fb-stronger .fb-badge { color: var(--green-600); }
.fb-reason {
  margin: 4px 0 8px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-700);
}
.fb-tip {
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.55;
}
.fb-loading {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border: 1px dashed var(--ink-200);
  border-radius: var(--radius-md);
  background: var(--ink-50);
}
.fb-spinner {
  width: 18px; height: 18px;
  border: 2px solid #bfdbfe;
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: fb-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes fb-spin {
  to { transform: rotate(360deg); }
}

/* Hidden utility */
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { height: 360px; }
  .feature-grid, .step-list, .footer-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--ink-100);
    padding: 12px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--ink-100); }
  .nav-links a:last-child { border: 0; }
  .nav-toggle { display: block; }
  .hero-stats { gap: 24px; }
  .cta-box { flex-direction: column; text-align: center; padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .score-hero { flex-direction: column; text-align: center; }
  .metrics { grid-template-columns: 1fr; }
  .sim-card { grid-template-columns: 1fr; text-align: center; }
  .sim-meta { justify-content: center; }
}

/* ---------------- Interview media (camera + mic) ---------------- */
.media-preview-wrap {
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  max-width: 560px;
  box-shadow: var(--shadow-md);
}
.media-preview-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror like a webcam */
}
.media-preview-status {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.media-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.media-tip {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.media-tip strong { font-size: 0.85rem; color: var(--ink-900); }
.media-tip span { font-size: 0.8rem; color: var(--ink-500); }

/* Floating camera preview during interview */
.camera-pip {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 200px;
  height: 150px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  border: 2px solid #fff;
  z-index: 40;
}
.camera-pip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.camera-pip-label {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: 999px;
}
.camera-pip-dot {
  position: absolute;
  top: 10px; right: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: transparent;
}
.camera-pip-dot.live {
  background: var(--red-500);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: recPulse 1.4s infinite;
}

/* Paused overlay on PiP */
.camera-pip-paused {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.camera-pip-paused.show { opacity: 1; }

/* Question countdown ring + side panel */
.q-countdown {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
  margin: 16px 0 20px;
  padding: 18px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
}
.q-countdown-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}
.q-countdown-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.q-ring-bg {
  fill: none;
  stroke: var(--ink-200);
  stroke-width: 10;
}
.q-ring-fg {
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.2s;
}
.q-ring-fg.warn { stroke: var(--amber-500); }
.q-ring-fg.danger { stroke: var(--red-500); animation: recPulse 1.2s infinite; }
.q-countdown-value {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.q-countdown-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, 30%);
  font-size: 0.75rem;
  color: var(--ink-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.q-countdown-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Live record indicator */
.rec-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-700);
}
.rec-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: recPulse 1.4s infinite;
}
.interview-stage.paused .rec-live-dot,
#interviewStage.paused .rec-live-dot {
  animation: none;
  background: var(--ink-400);
  box-shadow: none;
}

.rec-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.rec-status { color: var(--ink-500); font-size: 0.85rem; }
.rec-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: var(--ink-900);
  font-size: 0.95rem;
}
.rec-playback { width: 100%; }

.q-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

@keyframes recPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

#interviewStage.paused .q-countdown { background: #fef3c7; border-color: #fde68a; }
#interviewStage.paused .q-ring-fg { stroke: var(--amber-500) !important; animation: none; }

@media (max-width: 720px) {
  .media-tips { grid-template-columns: 1fr; }
  .camera-pip { width: 140px; height: 105px; right: 12px; bottom: 12px; }
  .q-countdown { grid-template-columns: 1fr; text-align: center; }
  .q-countdown-side { align-items: center; }
  .rec-live, .q-actions { align-self: center; justify-content: center; }
}

/* ---------------- Pro tier — full-section paywall ---------------- */
.pro-tag {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.pro-content-wrap {
  position: relative;
  margin-top: 24px;
}

.pro-content-wrap.pro-locked .pro-content {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
  max-height: 800px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

.pro-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  z-index: 5;
  pointer-events: none;
}

.pro-overlay-card {
  background: #fff;
  border: 1px solid var(--blue-100);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  border-radius: 16px;
  padding: 32px 36px;
  text-align: center;
  max-width: 480px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pro-overlay-icon {
  font-size: 2.4rem;
  margin-bottom: 4px;
}

.pro-overlay-card h3 {
  color: var(--ink-900);
}

/* ---------------- Admin tabs ---------------- */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--ink-100);
  border-radius: 999px;
  width: fit-content;
}
.admin-tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-500);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.admin-tab:hover { color: var(--ink-900); }
.admin-tab.active {
  background: #fff;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

/* ---------------- AI controls ---------------- */
.ai-card {
  margin: 16px 0 20px;
  padding: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
}
.ai-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ai-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.ai-toggle input { accent-color: var(--blue-600); width: 16px; height: 16px; }
.ai-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), #6366f1);
  padding: 3px 8px;
  border-radius: 999px;
}
.ai-fields { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.ai-status { font-size: 0.85rem; color: var(--ink-500); margin-top: 6px; }
.ai-status.error { color: var(--red-500); }
.ai-status.success { color: var(--green-600); }

/* ---------------- Alumni references section ---------------- */
.alumni { padding: 64px 0; }
.alumni-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-50) 0%, #ffffff 60%, #f5f3ff 100%);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.alumni-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
}
.alumni-copy h2 { margin-bottom: 12px; }
.alumni-copy p { font-size: 1.05rem; max-width: 560px; }
.alumni-stats {
  display: flex;
  gap: 32px;
  margin: 24px 0 28px;
  flex-wrap: wrap;
}
.alumni-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.alumni-stat span {
  font-size: 0.85rem;
  color: var(--ink-500);
  font-weight: 500;
}
.alumni-cta { margin-top: 4px; }
.alumni-fineprint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.alumni-visual { position: relative; min-height: 320px; }
.alumni-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
}
.alumni-essay {
  position: absolute;
  width: 240px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s ease;
}
.alumni-essay-1 { top: 10px; left: 10%; transform: rotate(-5deg); z-index: 1; }
.alumni-essay-2 { top: 70px; left: 38%; transform: rotate(2deg); z-index: 3; }
.alumni-essay-3 { top: 140px; left: 12%; transform: rotate(-2deg); z-index: 2; }
.alumni-card:hover .alumni-essay-1 { transform: rotate(-7deg) translateY(-4px); }
.alumni-card:hover .alumni-essay-2 { transform: rotate(3deg) translateY(-6px); }
.alumni-card:hover .alumni-essay-3 { transform: rotate(-3deg) translateY(-2px); }

.ae-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.ae-line {
  height: 8px;
  background: var(--ink-100);
  border-radius: 4px;
}
.ae-line.w-60 { width: 60%; }
.ae-line.w-65 { width: 65%; }
.ae-line.w-70 { width: 70%; }
.ae-line.w-75 { width: 75%; }
.ae-line.w-78 { width: 78%; }
.ae-line.w-80 { width: 80%; }
.ae-line.w-85 { width: 85%; }
.ae-line.w-88 { width: 88%; }
.ae-line.w-90 { width: 90%; }
.ae-line.w-95 { width: 95%; }
.ae-stamp {
  align-self: flex-end;
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green-600);
  border: 2px solid var(--green-600);
  padding: 3px 10px;
  border-radius: 6px;
  transform: rotate(-8deg);
}

@media (max-width: 920px) {
  .alumni-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .alumni-visual { min-height: 280px; }
  .alumni-essay { width: 220px; }
  .alumni-essay-1 { left: 5%; }
  .alumni-essay-2 { left: 30%; }
  .alumni-essay-3 { left: 8%; }
}

/* ---------------- Pricing page ---------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pricing-card--featured {
  border: 2px solid var(--blue-600);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.18);
  transform: translateY(-4px);
}
.pricing-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.pricing-head {
  margin-bottom: 16px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-100);
}
.pricing-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.pricing-period {
  color: var(--ink-500);
  font-size: 0.95rem;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--ink-700);
}
.pricing-features li.muted {
  color: var(--ink-400);
}

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
}

/* Account page rows */
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-100);
  gap: 12px;
}
.account-row:last-child { border-bottom: 0; }

/* FAQ details */
details {
  border-bottom: 1px solid var(--ink-100);
  padding: 12px 0;
}
details:last-child { border-bottom: 0; }
details summary {
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: '▸ ';
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.15s;
}
details[open] summary::before { transform: rotate(90deg); }
details p { padding-left: 18px; margin: 8px 0 0; }

/* Alerts (used by pricing.js) */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.alert-info { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.alert-success { background: #ecfdf5; color: var(--green-600); border: 1px solid #a7f3d0; }
.alert-error { background: var(--red-50); color: var(--red-500); border: 1px solid #fecaca; }

