/* ============================================================
   AKINTAYO FUNNEL — DESIGN SYSTEM
   Navy + Gold Authority · Cormorant Garamond + Montserrat
   ============================================================ */

:root {
  /* Brand palette */
  --navy-950: #060d1f;
  --navy-900: #0a1a3c;
  --navy-800: #10254f;
  --navy-700: #17306a;
  --navy-600: #1e3a8a;
  --gold-300: #e6c36b;
  --gold-400: #d4a73c;
  --gold-500: #c9962e;
  --gold-600: #a9741c;
  --gold-700: #8a5c12;
  --cream: #faf9f6;
  --cream-2: #f3f1ea;
  --ink: #0f172a;
  --ink-soft: #3b4763;
  --ink-mute: #64748b;
  --border: #e2ded2;
  --danger: #dc2626;
  --success: #15803d;

  /* Semantic tokens */
  --color-bg: var(--cream);
  --color-surface: #ffffff;
  --color-primary: var(--navy-600);
  --color-accent: var(--gold-500);
  --color-text: var(--ink);
  --color-text-soft: var(--ink-soft);
  --color-text-mute: var(--ink-mute);

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", -apple-system, sans-serif;

  /* Rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 6px rgba(10, 26, 60, 0.06), 0 18px 40px -18px rgba(10, 26, 60, 0.18);
  --shadow-cta: 0 6px 18px -6px rgba(169, 116, 28, 0.55);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

/* `body h1` beats Tailwind CDN preflight (injected after this sheet) */
body h1, body h2, body h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}

body h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
body h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
body h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

body p { margin: 0 0 var(--space-4); }

a { color: var(--navy-600); }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container-narrow { max-width: 780px; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-4);
}
.eyebrow::before,
.eyebrow.eyebrow-lined::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-500);
  display: inline-block;
}
.eyebrow-plain::before, .eyebrow-plain::after { display: none; }

.on-dark .eyebrow, .eyebrow.on-gold-dark { color: var(--gold-300); }
.on-dark .eyebrow::before, .on-dark .eyebrow::after { background: var(--gold-400); }

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--color-text-soft);
  line-height: 1.7;
}

/* ---------- Dark hero ---------- */
.hero-navy {
  position: relative;
  background:
    radial-gradient(1000px 520px at 78% -10%, rgba(212, 167, 60, 0.16), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(30, 58, 138, 0.5), transparent 65%),
    linear-gradient(168deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #eef1f8;
  overflow: hidden;
}
.hero-navy::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23ffffff' stroke-opacity='0.025' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-navy > * { position: relative; z-index: 1; }
.hero-navy h1, .hero-navy h2, .hero-navy h3 { color: #ffffff; }
.hero-navy .lead { color: #c4cde0; }

.on-dark { color: #eef1f8; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lead { color: #c4cde0; }

.text-gold { color: var(--gold-400); }
.display-accent {
  font-style: italic;
  color: var(--gold-400);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2.2rem;
  min-height: 56px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  text-align: center;
}
.btn:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 45%, var(--gold-600) 100%);
  color: var(--navy-950);
  box-shadow: var(--shadow-cta);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(169, 116, 28, 0.6); }
.btn-gold:active { transform: translateY(0); }

.btn-navy {
  background: var(--navy-800);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 2px solid var(--navy-800);
}
.on-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-xl { padding: 1.3rem 2.8rem; font-size: 1.02rem; min-height: 64px; }

.btn-sub {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--color-text-mute);
  letter-spacing: 0.02em;
}
.on-dark .btn-sub { color: #9fb0cf; }

/* Decline / downgrade link */
.decline-link {
  display: inline-block;
  margin-top: var(--space-6);
  font-size: 0.9rem;
  color: var(--color-text-mute);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 180ms ease;
}
.decline-link:hover { color: var(--color-text-soft); }
.on-dark .decline-link { color: #8fa0c2; }
.on-dark .decline-link:hover { color: #c4cde0; }

/* ---------- Header ---------- */
.funnel-header {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.funnel-header.light { border-bottom: 1px solid var(--border); background: var(--color-surface); }
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  color: var(--navy-950);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.funnel-header.light .brand-name { color: var(--navy-900); }

/* ---------- Step indicator ---------- */
.step-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  background: rgba(212, 167, 60, 0.12);
  border: 1px solid rgba(212, 167, 60, 0.35);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: var(--space-6);
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
}

.card-dark {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(6px);
}

.card-gold-edge { border-top: 4px solid var(--gold-500); }

/* ---------- Value stack ---------- */
.stack-list { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.stack-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.97rem;
}
.stack-list li strong { font-weight: 600; }
.stack-value {
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.6);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.price-old {
  font-size: 1.3rem;
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.6);
}
.price-now {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
}
.on-dark .price-now { color: var(--gold-300); }
.price-note { font-size: 0.85rem; color: var(--color-text-mute); }
.on-dark .price-note { color: #9fb0cf; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.check-list .ck {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 3px;
  color: var(--gold-600);
}
.on-dark .check-list .ck { color: var(--gold-400); }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
  justify-content: center;
  align-items: center;
  padding: 1.1rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa0c2;
}
.trust-bar span { display: inline-flex; align-items: center; gap: 0.55rem; }
.trust-bar svg { width: 16px; height: 16px; color: var(--gold-400); }

/* ---------- Testimonials ---------- */
.testimonial {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  left: 1.4rem;
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 1;
  color: var(--gold-400);
  opacity: 0.55;
}
.testimonial blockquote {
  margin: 1.4rem 0 1.2rem;
  font-size: 0.98rem;
  color: var(--color-text-soft);
  font-style: italic;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.testimonial .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1rem;
}
.testimonial figcaption small { display: block; font-weight: 400; color: var(--color-text-mute); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-600);
  transition: transform 200ms ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div {
  padding: 0 1.4rem 1.25rem;
  color: var(--color-text-soft);
  font-size: 0.94rem;
}

/* ---------- Countdown ---------- */
.countdown-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.countdown-wrap .countdown { font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.on-dark .countdown-wrap {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; text-align: left; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}
.field .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 150, 46, 0.2);
}
.field .hint { font-size: 0.78rem; color: var(--color-text-mute); margin-top: 0.3rem; }
.field .error-msg { display: none; font-size: 0.8rem; color: var(--danger); margin-top: 0.3rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }

/* ---------- Badges & misc ---------- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--navy-900);
  color: var(--gold-300);
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--gold-500);
  color: var(--gold-600);
}

.divider-gold {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-600));
  border: none;
  margin: var(--space-6) auto;
}
.divider-gold.left { margin-inline: 0; }

.guarantee-seal {
  width: 92px; height: 92px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--gold-300), var(--gold-600));
  color: var(--navy-950);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-cta);
  flex: none;
}

/* Photo placeholder */
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(212, 167, 60, 0.35);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.photo-frame .ph-label {
  color: #8fa0c2;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 167, 60, 0.35);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  border: 1px solid rgba(212, 167, 60, 0.3);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.video-frame .play-btn {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  display: grid; place-items: center;
  color: var(--navy-950);
  box-shadow: 0 0 0 12px rgba(212, 167, 60, 0.15), var(--shadow-cta);
  transition: transform 220ms ease;
}
.video-frame:hover .play-btn { transform: scale(1.07); }

/* ---------- Footer ---------- */
.funnel-footer {
  background: var(--navy-950);
  color: #7f8db0;
  padding: 3rem 0 2.5rem;
  font-size: 0.8rem;
  line-height: 1.7;
}
.funnel-footer a { color: #a8b6d6; }
.funnel-footer .disclaimer {
  max-width: 820px;
  margin: 1.25rem auto 0;
  font-size: 0.74rem;
  color: #5d6b8e;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(6, 13, 31, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(212, 167, 60, 0.3);
  display: none;
}
.sticky-cta .btn { width: 100%; min-height: 52px; padding: 0.8rem 1rem; }
@media (max-width: 767px) {
  .sticky-cta.show { display: block; }
  body.has-sticky-cta { padding-bottom: 92px; }
}

/* ---------- Faculty cards ---------- */
.faculty-card {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-card);
}
.faculty-card h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.25rem;
}
.faculty-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 0.75rem;
}
.faculty-card p:last-child {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}
.faculty-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(212, 167, 60, 0.3);
}
.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.faculty-initials {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-300);
}

/* ---------- Book cards ---------- */
.book-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .book-grid-duo { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
}
.book-card {
  text-align: center;
}
.book-card h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}
.book-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
  max-width: 28rem;
  margin-inline: auto;
}
.book-cover {
  max-width: 220px;
  margin-inline: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(10, 26, 60, 0.08),
    0 18px 36px -16px rgba(10, 26, 60, 0.45);
  transition: transform 220ms ease;
}
.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.book-card:hover .book-cover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .book-card:hover .book-cover { transform: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
