: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 {
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: contain;
  display: inline-block;
  background: #fff;
}
.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 — graduate photo background (in .hero-bg-fixed) with dark gradient overlay */
.hero {
  position: relative;
  padding: 96px 0 64px;
  color: #fff;
  background-color: transparent;
  background-image: linear-gradient(180deg,
    rgba(7, 13, 27, 0.78) 0%,
    rgba(7, 13, 27, 0.55) 45%,
    rgba(7, 13, 27, 0.40) 70%,
    rgba(239, 246, 255, 0.92) 100%);
  isolation: isolate;
}

/* Photo lives in a separate fixed-position div so iOS Safari honors it
   (iOS ignores background-attachment: fixed for performance). */
.hero-bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('../images/hero-bg.jpg') center 30% / cover no-repeat;
  background-color: #0b1426;
  pointer-events: none;
}
.hero::before {
  /* extra side-vignette so left-aligned copy keeps contrast */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(7, 13, 27, 0.55) 0%,
    rgba(7, 13, 27, 0.20) 45%,
    rgba(7, 13, 27, 0.0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }

.hero-copy h1 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(7, 13, 27, 0.45);
}
.hero-copy .lede {
  font-size: 1.1rem;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(7, 13, 27, 0.3);
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-cta { display: flex; gap: 12px; margin: 28px 0 40px; flex-wrap: wrap; }
.hero .btn-primary {
  background: var(--blue-600);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}
.hero .btn-primary:hover { background: var(--blue-700); box-shadow: 0 12px 28px rgba(29, 78, 216, 0.5); }
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: #fff; }
.hero-stats span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }

.hero-visual { position: relative; height: 440px; }
.card-stack { position: relative; width: 100%; height: 100%; }
.visual-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 48px rgba(7, 13, 27, 0.35);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.visual-card-1 { top: 20px; left: 40px; width: 240px; }
.visual-card-2 { bottom: 20px; left: 0; width: 260px; }
.visual-card-3 { top: 180px; right: 0; width: 220px; }
.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 { color:#242830; font-weight: 500; display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #1a1a1a; font-size: 0.9rem; }
.vc-metric:last-child { border: 0; }
.vc-metric strong { color: var(--green-600); }
.vc-chip { background: var(--amber-500); color: var(--white-700); padding: 10px 14px; border-radius: 999px; font-size: 0.85rem; text-align: center; font-weight: 500; }

/* Sections */
.features, .steps, .cta { padding: 72px 0; background: var(--bg); position: relative; }
.ctat { padding: 72px 0; background: #ffffff00; position: relative; }
.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; align-items: start; }
.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); }
.alert-warning { background: #fffbeb; color: #92400e; }

/* 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); }

.ai-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-50), #ede9fe);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.ai-badge-loading {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
  animation: ai-badge-pulse 1.4s ease-in-out infinite;
}
.ai-badge-pending {
  background: var(--ink-100);
  color: var(--ink-500);
  border-color: var(--ink-200);
  font-style: italic;
}
@keyframes ai-badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ---- Similarity card skeleton (loading state) ---- */
.sim-card.sim-loading {
  background: var(--ink-50);
  border-color: var(--ink-200);
  padding: 18px;
}
.sim-skeleton {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sim-skeleton-score {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ink-100) 0%, var(--ink-200) 50%, var(--ink-100) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.sim-skeleton-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sim-skeleton-bar,
.sim-skeleton-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink-100) 0%, var(--ink-200) 50%, var(--ink-100) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
.sim-skeleton-bar { height: 8px; }
.sim-skeleton-line { width: 90%; }
.sim-skeleton-line.short { width: 65%; }
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.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 {
    padding: 64px 0 40px;
    background-position: center 35%, center 35%;
  }
  .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; background: var(--bg); position: relative; }
.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;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alumni-photo-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
}
.alumni-photo-stack::before,
.alumni-photo-stack::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 36px rgba(7, 13, 27, 0.18);
  border: 6px solid #fff;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}
.alumni-photo-stack::before {
  background-image: linear-gradient(135deg, #fde68a 0%, #fcd34d 60%, #f59e0b 100%);
  transform: rotate(-10deg) translate(-26px, 14px);
  z-index: 1;
}
.alumni-photo-stack::after {
  background-image: linear-gradient(135deg, #dbeafe 0%, #93c5fd 60%, #3b82f6 100%);
  transform: rotate(7deg) translate(26px, -8px);
  z-index: 2;
}
.alumni-card:hover .alumni-photo-stack::before {
  transform: rotate(-13deg) translate(-34px, 18px);
}
.alumni-card:hover .alumni-photo-stack::after {
  transform: rotate(10deg) translate(34px, -12px);
}

.alumni-photo-frame {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(7, 13, 27, 0.28);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
  background: #f1f5f9;
  border: 6px solid #fff;
}
.alumni-card:hover .alumni-photo-frame {
  transform: rotate(-1.5deg) translateY(-4px);
}
.alumni-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.alumni-photo-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 64px 18px 16px;
  background: linear-gradient(to top, rgba(7, 13, 27, 0.88) 0%, rgba(7, 13, 27, 0.45) 55%, transparent 100%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.alumni-photo-caption strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.alumni-photo-caption span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}
.alumni-photo-stamp {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green-600);
  background: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  transform: rotate(-6deg);
  box-shadow: 0 6px 14px rgba(7, 13, 27, 0.25);
  white-space: nowrap;
  border: 2px solid var(--green-600);
}
.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-copy p { max-width: 100%; }
  .alumni-visual { min-height: 280px; }
  .alumni-essay { width: 220px; }
  .alumni-essay-1 { left: 5%; }
  .alumni-essay-2 { left: 30%; }
  .alumni-essay-3 { left: 8%; }
}

/* ---------------- Contributor / Alumni partner section ---------------- */
.contributor { padding: 72px 0; background: var(--bg); position: relative; }
.contributor-card {
  background: linear-gradient(135deg, #0b1426 0%, #1e3a8a 60%, #2563eb 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}
.contributor-card::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 70%);
  pointer-events: none;
}
.contributor-card::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
  pointer-events: none;
}
.contributor-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}
.contributor-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 16px;
}
.contributor-head h2 {
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.contributor-lede {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.contributor-lede strong { color: #fde68a; font-weight: 700; }
.contributor-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.contributor-benefit {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.contributor-benefit-icon {
  font-size: 1.8rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  margin-bottom: 14px;
}
.contributor-benefit h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.contributor-benefit p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}
.contributor-benefit code {
  background: rgba(253, 230, 138, 0.16);
  color: #fde68a;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82em;
  font-weight: 600;
}
.contributor-cta {
  text-align: center;
  position: relative;
  z-index: 1;
}
.contributor-cta .btn-primary {
  background: #fde68a;
  color: #0b1426;
  border-color: #fde68a;
  box-shadow: 0 12px 28px rgba(253, 230, 138, 0.25);
}
.contributor-cta .btn-primary:hover {
  background: #fcd34d;
  color: #0b1426;
  border-color: #fcd34d;
  box-shadow: 0 16px 32px rgba(252, 211, 77, 0.35);
}
.contributor-fineprint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 920px) {
  .contributor-card { padding: 40px 28px; }
  .contributor-benefits { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .contributor { padding: 48px 0; }
  .contributor-card { padding: 32px 22px; border-radius: var(--radius-lg); }
  .contributor-head h2 { font-size: 1.4rem; }
  .contributor-lede { font-size: 0.96rem; }
  .contributor-cta .btn-lg {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 14px 18px;
    font-size: 0.95rem;
    width: 100%;
    display: flex;
    word-break: break-word;
  }
}

@media (max-width: 560px) {
  .alumni { padding: 40px 0; }
  .alumni-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
    gap: 24px;
  }
  .alumni-copy h2 { font-size: 1.5rem; }
  .alumni-copy p { font-size: 0.98rem; }
  .alumni-stats { gap: 16px; margin: 18px 0 22px; }
  .alumni-stat strong { font-size: 1.25rem; }
  .alumni-stat span { font-size: 0.78rem; }
  .alumni-card .btn-lg {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 14px 18px;
    font-size: 0.95rem;
    width: 100%;
    display: flex;
    word-break: break-word;
  }
  .alumni-fineprint { font-size: 0.75rem; }
  .alumni-visual { min-height: 240px; }
  .alumni-essay { width: 200px; padding: 14px; gap: 8px; }
  .alumni-essay-1 { left: 0; }
  .alumni-essay-2 { left: 18%; }
  .alumni-essay-3 { left: 2%; top: 120px; }
}

/* ---------------- Pricing page ---------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pricing-grid-3 {
  grid-template-columns: 1fr 1.05fr 1fr;
  align-items: stretch;
}
.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

/* Promo counter */
.promo-counter {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.promo-counter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--ink-700);
}
.promo-counter-head strong { color: var(--red-500); }
.promo-counter-bar {
  height: 6px;
  background: #fde68a;
  border-radius: 999px;
  overflow: hidden;
}
.promo-counter-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Regular (informational) card */
.pricing-card--regular {
  opacity: 0.85;
}
.pricing-card--regular .pricing-amount {
  color: var(--ink-500);
  text-decoration: line-through;
  text-decoration-color: var(--ink-400);
}

.pricing-card--soldout .pricing-amount {
  color: var(--ink-400);
  text-decoration: line-through;
}

/* Checkout panel */
.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--ink-100);
  font-size: 0.95rem;
}
.checkout-row-discount { color: var(--green-600); }
.checkout-row-total {
  border-bottom: 0;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 2px solid var(--ink-200);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
}
.checkout-coupon {
  margin: 16px 0;
  padding: 14px;
  background: var(--ink-50);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--ink-200);
}
.checkout-coupon-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.checkout-coupon-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.checkout-coupon-row input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-50);
}
.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: 980px) {
  .pricing-grid-3 { grid-template-columns: 1fr; }
  .pricing-grid-4 { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .pricing-grid-4 { grid-template-columns: 1fr 1fr; }
}
@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; }

.account-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.account-actions .btn { flex: 1 1 auto; min-width: 140px; }

@media (max-width: 560px) {
  .account-actions .btn { width: 100%; flex-basis: 100%; }
}

/* 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; }

/* ---------------- Reviews / Testimonials carousel ---------------- */
.reviews {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ink-50) 100%);
  overflow: hidden;
}
.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 1rem;
}
.reviews-stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.reviews-summary strong {
  color: var(--ink-900);
  font-size: 1.1rem;
}

.reviews-marquee {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.reviews-row {
  overflow: hidden;
  width: 100%;
}
.reviews-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}
.reviews-track-left  { animation: marquee-left  60s linear infinite; }
.reviews-track-right { animation: marquee-right 60s linear infinite; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.review-card {
  flex: 0 0 340px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.review-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 0.95rem;
}
.review-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-700);
  flex: 1;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.review-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-900);
  line-height: 1.2;
}
.review-meta span {
  font-size: 0.78rem;
  color: var(--ink-500);
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track-left,
  .reviews-track-right { animation: none; }
}

@media (max-width: 720px) {
  .review-card { flex: 0 0 280px; padding: 18px; }
  .reviews-track-left  { animation-duration: 45s; }
  .reviews-track-right { animation-duration: 45s; }
}

