/* =================================================================
   Enrollment Intelligence Engine — shared design system
   CMU brand: maroon #6A0032, gold #FFC82E. Font: Inter.
   ================================================================= */

:root {
  --cmu-maroon: #6A0032;
  --cmu-maroon-dark: #4A0022;
  --cmu-maroon-light: #8F0043;
  --cmu-gold: #FFC82E;
  --cmu-gold-dark: #E6B300;
  --neutral-900: #1A1A1A;
  --neutral-700: #4A4A4A;
  --neutral-500: #737373;
  --neutral-300: #D1D1D1;
  --neutral-100: #F5F5F5;
  --white: #FFFFFF;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.14);
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--neutral-900); line-height: 1.6; background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cmu-maroon); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--neutral-300);
  padding: 16px 0; position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-weight: 800; font-size: 1.1rem; color: var(--cmu-maroon); letter-spacing: -0.02em; }
.wordmark span { color: var(--neutral-900); font-weight: 500; }
@media (max-width: 560px) { .wordmark span { display: none; } }

/* ---------- Program switcher nav ---------- */
.program-nav {
  background: var(--neutral-100);
  border-bottom: 1px solid var(--neutral-300);
  padding: 12px 0;
}
.program-nav .container {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.program-nav-label {
  font-size: 0.8rem; font-weight: 600; color: var(--neutral-500);
  margin-right: 4px; white-space: nowrap;
}
.program-nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.program-pill {
  display: inline-block; padding: 6px 14px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  background: var(--white); color: var(--neutral-700);
  border: 1.5px solid var(--neutral-300);
  transition: all 0.2s ease;
}
a.program-pill:hover { border-color: var(--cmu-maroon); color: var(--cmu-maroon); text-decoration: none; }
.program-pill.current {
  background: var(--cmu-maroon); border-color: var(--cmu-maroon); color: var(--white);
}
@media (max-width: 700px) {
  .program-nav .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--cmu-maroon) 0%, var(--cmu-maroon-dark) 100%);
  color: var(--white); padding: 80px 0 96px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,200,46,0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 820px; }
.hero-kicker {
  display: inline-block; background: rgba(255,255,255,0.12);
  color: var(--cmu-gold); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 50px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--cmu-gold); }
.hero-subhead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,0.9); margin-bottom: 36px;
  max-width: 640px; line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 32px; border: none; border-radius: var(--radius);
  font-size: 1.1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--cmu-gold); outline-offset: 2px; }
.btn-primary { background: var(--cmu-gold); color: var(--cmu-maroon-dark); box-shadow: 0 4px 12px rgba(255,200,46,0.35); }
.btn-primary:hover { background: var(--cmu-gold-dark); }
.btn-maroon { background: var(--cmu-maroon); color: var(--white); }
.btn-maroon:hover { background: var(--cmu-maroon-light); }
.btn-small { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Intent widget (two-tap confirmation) ---------- */
.intent-widget { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.intent-widget.centered { align-items: center; }
.microcopy { font-size: 0.9rem; color: rgba(255,255,255,0.75); max-width: 480px; }
.microcopy.on-light { color: var(--neutral-500); }

.intent-confirm-card {
  max-width: 520px; border-radius: 12px; padding: 22px 24px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
}
.intent-confirm-card.on-light {
  background: var(--neutral-100); border-color: var(--neutral-300);
}
.intent-confirm-card .confirm-text { font-size: 1.05rem; margin-bottom: 16px; }
.intent-confirm-card.on-light .confirm-text { color: var(--neutral-900); }
.confirm-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.intent-no {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 0.95rem; color: rgba(255,255,255,0.75);
  text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px;
}
.intent-no:hover { color: var(--cmu-gold); }
.intent-confirm-card.on-light .intent-no { color: var(--neutral-500); }
.intent-confirm-card.on-light .intent-no:hover { color: var(--cmu-maroon); }

.intent-done {
  display: flex; align-items: center; gap: 14px;
  max-width: 520px; border-radius: 12px; padding: 20px 24px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
}
.intent-done.on-light { background: var(--neutral-100); border-color: var(--neutral-300); }
.intent-done .icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--cmu-gold); color: var(--cmu-maroon-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
}
.intent-done strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.intent-done span { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.intent-done.on-light strong { color: var(--neutral-900); }
.intent-done.on-light span { color: var(--neutral-700); }

/* Secondary link (official program page) */
.secondary-link {
  display: inline-block; font-size: 0.95rem;
  color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px;
}
.secondary-link:hover { color: var(--cmu-gold); }

/* ---------- Credibility bar ---------- */
.credibility { background: var(--neutral-100); padding: 32px 0; border-bottom: 1px solid var(--neutral-300); }
.credibility-grid { display: grid; grid-template-columns: 1fr; gap: 24px; text-align: center; }
@media (min-width: 700px) { .credibility-grid { grid-template-columns: repeat(3, 1fr); } }
.cred-item { padding: 16px; }
.cred-item strong { display: block; font-size: 1.1rem; color: var(--cmu-maroon); margin-bottom: 6px; }
.cred-item span { font-size: 0.95rem; color: var(--neutral-700); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-header { max-width: 720px; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.25rem); font-weight: 800;
  color: var(--cmu-maroon); margin-bottom: 14px; letter-spacing: -0.02em;
}
.section-header p { font-size: 1.1rem; color: var(--neutral-700); }

/* ---------- Pathway / Why cards ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 28px; counter-reset: step; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  position: relative; background: var(--white); border: 1px solid var(--neutral-300);
  border-radius: 16px; padding: 32px 28px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.step-card:hover { box-shadow: var(--shadow-md); border-color: var(--cmu-maroon); }
.step-card.numbered::before {
  counter-increment: step; content: counter(step); position: absolute;
  top: -18px; left: 28px; width: 42px; height: 42px; background: var(--cmu-maroon);
  color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; border: 3px solid var(--white);
}
.step-card h3 { font-size: 1.2rem; font-weight: 700; margin: 12px 0 10px; color: var(--neutral-900); }
.step-card p { color: var(--neutral-700); font-size: 0.98rem; }

/* ---------- Explore section (tabs / chips / static) ---------- */
.explore { background: var(--neutral-100); }
.explore-tabs {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}
.explore-tabs.scrollable {
  flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.explore-tab {
  flex: 0 0 auto; min-width: 150px; padding: 14px 20px; background: var(--white);
  border: 2px solid var(--neutral-300); border-radius: var(--radius); cursor: pointer;
  text-align: center; font-weight: 700; color: var(--neutral-700); transition: all 0.2s ease;
  font-family: inherit; font-size: 0.95rem;
}
.explore-tab:hover { border-color: var(--cmu-maroon); color: var(--cmu-maroon); }
.explore-tab.active { background: var(--cmu-maroon); border-color: var(--cmu-maroon); color: var(--white); }
.explore-tab:focus-visible { outline: 3px solid var(--cmu-gold); outline-offset: 2px; }
.explore-panels { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.explore-panel { display: none; padding: 36px; }
.explore-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.explore-panel h3 { font-size: 1.4rem; color: var(--cmu-maroon); margin-bottom: 12px; }
.explore-panel p { color: var(--neutral-700); margin-bottom: 20px; font-size: 1.02rem; }
.explore-panel ul { color: var(--neutral-700); margin: 0 0 20px 20px; }
.explore-panel li { margin-bottom: 8px; }
.stem-badge {
  display: inline-block; background: var(--cmu-gold); color: var(--cmu-maroon-dark);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}

.outcome-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .outcome-row { grid-template-columns: repeat(2, 1fr); } }
.outcome-box { background: var(--neutral-100); border-radius: 12px; padding: 22px; }
.outcome-box label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--neutral-500); margin-bottom: 6px; }
.outcome-box strong { display: block; font-size: 1.15rem; color: var(--neutral-900); }
.outcome-box .salary { font-size: 1.5rem; color: var(--cmu-maroon); }

/* Static highlight cards (non-interactive explore sections) */
.highlight-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .highlight-grid { grid-template-columns: repeat(3, 1fr); } }
.highlight-card {
  background: var(--white); border-radius: 16px; padding: 30px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-300);
}
.highlight-card h3 { font-size: 1.15rem; color: var(--cmu-maroon); margin-bottom: 10px; }
.highlight-card p { color: var(--neutral-700); font-size: 0.97rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--neutral-300); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 22px 0; font-size: 1.1rem; font-weight: 700; color: var(--neutral-900);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-family: inherit;
}
.faq-question:hover { color: var(--cmu-maroon); }
.faq-question:focus-visible { outline: 3px solid var(--cmu-gold); outline-offset: 2px; }
.faq-question .icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--neutral-100); color: var(--cmu-maroon);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); background: var(--cmu-gold); color: var(--cmu-maroon-dark); }
.faq-answer { display: none; padding: 0 0 24px; color: var(--neutral-700); font-size: 1rem; line-height: 1.65; }
.faq-item.open .faq-answer { display: block; }

/* ---------- Social proof ---------- */
.social-proof { background: var(--cmu-maroon); color: var(--white); }
.social-proof .section-header h2, .social-proof .section-header p { color: var(--white); }
.social-proof .section-header p { opacity: 0.9; }
.salary-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; }
.salary-table th, .salary-table td { padding: 16px 24px; text-align: left; }
.salary-table th { background: rgba(0,0,0,0.15); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cmu-gold); }
.salary-table td { border-bottom: 1px solid rgba(255,255,255,0.1); }
.salary-table tr:last-child td { border-bottom: none; }
.salary-table .amount { font-weight: 700; color: var(--cmu-gold); font-size: 1.05rem; white-space: nowrap; }
.salary-source { font-size: 0.85rem; opacity: 0.7; margin-top: 12px; }
@media (max-width: 600px) { .salary-table th, .salary-table td { padding: 12px 14px; font-size: 0.9rem; } }
.trust-badges { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; align-items: center; }
.badge {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; padding: 10px 18px; font-size: 0.85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Final CTA ---------- */
.final-cta { background: var(--neutral-100); padding: 80px 0; }
.final-cta-card {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-md);
  padding: 40px 28px; text-align: center; max-width: 720px; margin: 0 auto;
}
@media (min-width: 700px) { .final-cta-card { padding: 56px 48px; } }
.final-cta-card h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--cmu-maroon); margin-bottom: 12px; }
.deadline {
  display: inline-block; background: var(--cmu-gold); color: var(--cmu-maroon-dark);
  font-weight: 700; padding: 8px 16px; border-radius: 50px;
  margin-bottom: 24px; font-size: 0.95rem;
}
.deadline.neutral { background: var(--neutral-100); color: var(--neutral-700); border: 1px solid var(--neutral-300); }
.final-cta-card p { color: var(--neutral-700); margin-bottom: 28px; font-size: 1.05rem; }
.final-cta-card .intent-widget { align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--neutral-900); color: rgba(255,255,255,0.7); padding: 48px 0 32px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--cmu-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Mobile button behavior ---------- */
@media (max-width: 560px) {
  .intent-widget, .intent-widget .btn, .confirm-actions .btn { width: 100%; }
  .confirm-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero { padding: 60px 0 72px; }
}
