/* ==========================================================================
   Clinical Editorial — Dedicated Exam Landing Pages (/racgp-cce, /amc-clinical)
   Warm paper ground (#FAFAF8), deep charcoal ink (#111827), crisp editorial
   hierarchy, restrained clinical accent, and live marksheet readability.
   ========================================================================== */

.el-page {
  --el-paper: #fafaf8;
  --el-surface: #ffffff;
  --el-surface-warm: #f3f1ec;
  --el-ink: #111827;
  --el-ink-secondary: #374151;
  --el-ink-muted: #6b7280;
  --el-border: #e5e2dc;
  --el-border-strong: #d4cfc6;
  --el-accent: #0f5c5c;
  --el-accent-hover: #0a4646;
  --el-accent-soft: #ecf6f5;
  --el-accent-border: #b7dbd8;
  --el-good-bg: #ecfdf5;
  --el-good-text: #166534;
  --el-good-border: #bbf7d0;
  --el-miss-bg: #fef2f2;
  --el-miss-text: #991b1b;
  --el-miss-border: #fecaca;
  --el-warn-bg: #fffbeb;
  --el-warn-text: #92400e;
  --el-warn-border: #fde68a;
  --el-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --el-sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --el-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  background: var(--el-paper);
  color: var(--el-ink);
  font-family: var(--el-sans);
  line-height: 1.6;
  min-height: 100vh;
}

.el-page--amc {
  --el-accent: #1e3a5f;
  --el-accent-hover: #152b47;
  --el-accent-soft: #eef3f9;
  --el-accent-border: #c3d3e8;
}

.el-container {
  margin: 0 auto;
  max-width: 1140px;
  padding: 0 24px;
}

.el-container--narrow {
  max-width: 860px;
}

/* --- Header --- */
.el-nav {
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--el-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.el-nav__inner {
  align-items: center;
  display: flex;
  gap: 20px;
  height: 68px;
  justify-content: space-between;
}

.el-nav__brand {
  align-items: center;
  color: var(--el-ink);
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.el-nav__logo {
  height: 26px;
  width: auto;
}

.el-nav__pill {
  background: var(--el-accent-soft);
  border: 1px solid var(--el-accent-border);
  border-radius: 999px;
  color: var(--el-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.el-nav__links {
  align-items: center;
  display: none;
  gap: 24px;
}

.el-nav__links a {
  color: var(--el-ink-secondary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.el-nav__links a:hover {
  color: var(--el-ink);
}

.el-nav__actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.el-nav__signin {
  color: var(--el-ink-secondary);
  display: none;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.el-nav__signin:hover {
  color: var(--el-ink);
}

/* --- Buttons --- */
.el-btn {
  align-items: center;
  background: var(--el-accent);
  border: 1px solid var(--el-accent);
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  padding: 13px 22px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.el-btn:hover {
  background: var(--el-accent-hover);
  border-color: var(--el-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.el-btn--sm {
  font-size: 13px;
  padding: 9px 14px;
}

.el-btn--ghost {
  background: var(--el-surface);
  border-color: var(--el-border-strong);
  color: var(--el-ink);
}

.el-btn--ghost:hover {
  background: var(--el-surface-warm);
  border-color: var(--el-ink-muted);
  color: var(--el-ink);
}

.el-btn--block {
  width: 100%;
}

/* --- Editorial Typography --- */
.el-kicker {
  color: var(--el-accent);
  font-family: var(--el-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.el-h1 {
  color: var(--el-ink);
  font-family: var(--el-serif);
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 22ch;
}

.el-h2 {
  color: var(--el-ink);
  font-family: var(--el-serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 14px;
}

.el-lead {
  color: var(--el-ink-secondary);
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  margin: 0;
  max-width: 62ch;
}

/* --- Hero --- */
.el-hero {
  border-bottom: 1px solid var(--el-border);
  padding: 56px 0 48px;
}

.el-hero__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

.el-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.el-hero__reassurance {
  color: var(--el-ink-muted);
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 0;
}

/* --- Above-the-fold Founders Credibility Card --- */
.el-founders-bar {
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  border-radius: 16px;
  margin-top: 36px;
  padding: 20px 24px;
}

.el-founders-bar__label {
  color: var(--el-ink-muted);
  font-family: var(--el-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.el-founders-bar__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.el-founder-chip {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.el-founder-chip__avatar {
  align-items: center;
  background: var(--el-accent-soft);
  border: 1px solid var(--el-accent-border);
  border-radius: 50%;
  color: var(--el-accent);
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--el-serif);
  font-size: 15px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.el-founder-chip__name {
  color: var(--el-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.el-founder-chip__meta {
  color: var(--el-ink-muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 2px 0 0;
}

/* --- Sections --- */
.el-section {
  border-bottom: 1px solid var(--el-border);
  padding: 64px 0;
}

.el-section--warm {
  background: var(--el-surface-warm);
}

.el-section--surface {
  background: var(--el-surface);
}

/* --- Cost-of-Failure Economics Grid --- */
.el-stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 32px;
}

.el-stat-card {
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  border-radius: 14px;
  padding: 24px;
}

.el-stat-card--accent {
  background: var(--el-accent-soft);
  border-color: var(--el-accent-border);
}

.el-stat-card__value {
  color: var(--el-ink);
  font-family: var(--el-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}

.el-stat-card--accent .el-stat-card__value {
  color: var(--el-accent);
}

.el-stat-card__label {
  color: var(--el-ink);
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
}

.el-stat-card__detail {
  color: var(--el-ink-muted);
  font-size: 13.5px;
  margin: 0;
}

/* --- Interactive Audio Station & Live Marksheet Preview --- */
.el-preview-shell {
  background: var(--el-surface);
  border: 1px solid var(--el-border-strong);
  border-radius: 18px;
  box-shadow: 0 18px 40px -28px rgba(17, 24, 39, 0.25);
  margin-top: 32px;
  overflow: hidden;
}

.el-preview-topbar {
  align-items: center;
  background: var(--el-ink);
  color: #f9fafb;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 24px;
}

.el-preview-topbar__code {
  color: #9ca3af;
  font-family: var(--el-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.el-preview-topbar__title {
  color: #ffffff;
  font-family: var(--el-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.el-preview-topbar__meta {
  color: #d1d5db;
  font-size: 12.5px;
  margin: 4px 0 0;
}

.el-preview-controls {
  align-items: center;
  display: flex;
  gap: 10px;
}

.el-play-btn {
  align-items: center;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  color: var(--el-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 800;
  gap: 8px;
  padding: 10px 18px;
  transition: transform 0.12s ease, background 0.15s ease;
}

.el-play-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.el-reset-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
}

.el-reset-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.el-audio-strip {
  align-items: center;
  background: var(--el-surface-warm);
  border-bottom: 1px solid var(--el-border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 24px;
}

.el-waveform {
  align-items: center;
  display: inline-flex;
  gap: 3px;
  height: 22px;
}

.el-waveform span {
  background: var(--el-accent);
  border-radius: 2px;
  display: block;
  height: 6px;
  opacity: 0.4;
  transition: height 0.2s ease, opacity 0.2s ease;
  width: 3px;
}

.el-preview-shell[data-playing="true"] .el-waveform span {
  animation: el-wave 0.9s ease-in-out infinite;
  opacity: 1;
}

.el-preview-shell[data-playing="true"] .el-waveform span:nth-child(2) { animation-delay: 0.12s; }
.el-preview-shell[data-playing="true"] .el-waveform span:nth-child(3) { animation-delay: 0.24s; }
.el-preview-shell[data-playing="true"] .el-waveform span:nth-child(4) { animation-delay: 0.36s; }
.el-preview-shell[data-playing="true"] .el-waveform span:nth-child(5) { animation-delay: 0.48s; }
.el-preview-shell[data-playing="true"] .el-waveform span:nth-child(6) { animation-delay: 0.6s; }
.el-preview-shell[data-playing="true"] .el-waveform span:nth-child(7) { animation-delay: 0.72s; }

@keyframes el-wave {
  0%, 100% { height: 6px; }
  50% { height: 20px; }
}

.el-audio-strip__status {
  color: var(--el-ink-secondary);
  font-size: 13px;
  font-weight: 700;
}

.el-audio-strip__timer {
  color: var(--el-ink);
  font-family: var(--el-mono);
  font-size: 13px;
  font-weight: 700;
}

.el-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.el-transcript-pane {
  border-bottom: 1px solid var(--el-border);
  padding: 22px 24px;
}

.el-marksheet-pane {
  background: #fcfcfb;
  padding: 22px 24px;
}

.el-pane-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.el-pane-heading h3 {
  color: var(--el-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.el-pane-heading span {
  color: var(--el-ink-muted);
  font-family: var(--el-mono);
  font-size: 12px;
}

.el-turn-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.el-turn {
  background: var(--el-paper);
  border: 1px solid var(--el-border);
  border-radius: 12px;
  cursor: pointer;
  padding: 13px 15px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.el-turn:hover {
  border-color: var(--el-border-strong);
}

.el-turn--candidate {
  background: #ffffff;
}

.el-turn--active {
  border-color: var(--el-accent);
  box-shadow: 0 0 0 2px var(--el-accent-soft);
}

.el-turn__meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.el-turn__speaker {
  color: var(--el-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.el-turn--candidate .el-turn__speaker {
  color: var(--el-accent);
}

.el-turn__time {
  color: var(--el-ink-muted);
  font-family: var(--el-mono);
  font-size: 11px;
}

.el-turn__text {
  color: var(--el-ink-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.el-score-banner {
  align-items: center;
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.el-score-banner__score {
  color: var(--el-ink);
  font-family: var(--el-mono);
  font-size: 16px;
  font-weight: 800;
}

.el-score-banner__missed {
  background: var(--el-miss-bg);
  border: 1px solid var(--el-miss-border);
  border-radius: 999px;
  color: var(--el-miss-text);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.el-criteria-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.el-criterion {
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  border-radius: 11px;
  opacity: 0.62;
  padding: 12px 14px;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.el-criterion--revealed {
  opacity: 1;
}

.el-criterion--awarded.el-criterion--revealed {
  background: var(--el-good-bg);
  border-color: var(--el-good-border);
}

.el-criterion--missed.el-criterion--revealed {
  background: var(--el-miss-bg);
  border-color: var(--el-miss-border);
}

.el-criterion__top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.el-criterion__domain {
  color: var(--el-ink-muted);
  font-family: var(--el-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.el-criterion__badge {
  border-radius: 999px;
  font-family: var(--el-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
}

.el-criterion--awarded .el-criterion__badge {
  background: #dcfce7;
  color: var(--el-good-text);
}

.el-criterion--missed .el-criterion__badge {
  background: #fee2e2;
  color: var(--el-miss-text);
}

.el-criterion__text {
  color: var(--el-ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.el-criterion__note {
  color: var(--el-ink-secondary);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 6px 0 0;
}

/* --- Steps Grid --- */
.el-steps-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 32px;
}

.el-step-card {
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  border-radius: 14px;
  padding: 24px;
}

.el-step-card__num {
  color: var(--el-accent);
  font-family: var(--el-mono);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 10px;
}

.el-step-card__title {
  color: var(--el-ink);
  font-family: var(--el-serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}

.el-step-card__body {
  color: var(--el-ink-secondary);
  font-size: 14.5px;
  margin: 0;
}

/* --- Transparency Callout --- */
.el-transparency {
  background: var(--el-surface);
  border: 1px solid var(--el-border-strong);
  border-left: 4px solid var(--el-accent);
  border-radius: 14px;
  padding: 28px;
}

.el-transparency__list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.el-transparency__list li {
  color: var(--el-ink);
  font-size: 14px;
  font-weight: 700;
  padding-left: 22px;
  position: relative;
}

.el-transparency__list li::before {
  color: var(--el-accent);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

/* --- Pricing Card --- */
.el-pricing-card {
  background: var(--el-surface);
  border: 1px solid var(--el-border-strong);
  border-radius: 18px;
  box-shadow: 0 20px 44px -32px rgba(17, 24, 39, 0.28);
  margin-top: 28px;
  overflow: hidden;
}

.el-pricing-card__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.el-pricing-card__left {
  background: var(--el-accent-soft);
  border-bottom: 1px solid var(--el-accent-border);
  padding: 32px;
}

.el-pricing-card__right {
  padding: 32px;
}

.el-price-amount {
  color: var(--el-ink);
  font-family: var(--el-serif);
  font-size: 3.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 12px 0 6px;
}

.el-price-period {
  color: var(--el-accent);
  font-family: var(--el-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.el-price-anchor {
  color: var(--el-ink-secondary);
  font-size: 13.5px;
  margin: 0 0 24px;
}

.el-price-features {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.el-price-features li {
  color: var(--el-ink-secondary);
  font-size: 14.5px;
  padding-left: 24px;
  position: relative;
}

.el-price-features li::before {
  color: var(--el-accent);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

/* --- Founders Full Grid --- */
.el-founders-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 28px;
}

.el-founder-card {
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  border-radius: 14px;
  padding: 22px;
}

.el-founder-card__head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.el-founder-card__name {
  color: var(--el-ink);
  font-family: var(--el-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.el-founder-card__role {
  color: var(--el-ink-secondary);
  font-size: 13px;
  font-weight: 700;
  margin: 2px 0 0;
}

.el-founder-card__creds {
  color: var(--el-accent);
  font-family: var(--el-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.el-founder-card__focus {
  color: var(--el-ink-muted);
  font-size: 13.5px;
  margin: 0;
}

/* --- FAQ --- */
.el-faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.el-faq-item {
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  border-radius: 12px;
  padding: 18px 22px;
}

.el-faq-item summary {
  color: var(--el-ink);
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 800;
  list-style: none;
}

.el-faq-item summary::-webkit-details-marker {
  display: none;
}

.el-faq-item p {
  color: var(--el-ink-secondary);
  font-size: 14.5px;
  margin: 10px 0 0;
}

/* --- Footer --- */
.el-footer {
  background: var(--el-surface);
  padding: 36px 0;
}

.el-footer__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.el-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.el-footer__links a {
  color: var(--el-ink-secondary);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.el-footer__links a:hover {
  color: var(--el-accent);
  text-decoration: underline;
}

@media (min-width: 860px) {
  .el-nav__links {
    display: flex;
  }

  .el-nav__signin {
    display: inline-block;
  }

  .el-preview-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .el-transcript-pane {
    border-bottom: none;
    border-right: 1px solid var(--el-border);
  }

  .el-pricing-card__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .el-pricing-card__left {
    border-bottom: none;
    border-right: 1px solid var(--el-accent-border);
  }
}
