/* ============================================
   Scholarship Coaching launch page
   Warm cream editorial palette · Fraunces headlines · Nunito body
   Inspired by the deethiopian.com creator-brand aesthetic, softened.
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #FBF7F1;   /* main bg */
  --cream-2:      #F4EEE3;   /* alt section */
  --ink:          #1F1A17;   /* text */
  --ink-soft:     rgba(31,26,23,0.68);
  --ink-faint:    rgba(31,26,23,0.14);
  --line:         rgba(31,26,23,0.10);

  --indigo:       #312E81;   /* Apply Bright + College Insider indigo */
  --indigo-dark:  #1E1B4B;
  --gold:         #C69C42;   /* warm accent for eyebrows and rules */
  --gold-soft:    #EACB84;

  --serif:        'Fraunces', 'Playfair Display', Georgia, serif;
  --sans:         'Nunito', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

em { font-style: italic; }

/* ---------- NAV ---------- */
.sc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 56px;
  background: transparent;
  border-bottom: 1px solid var(--ink-faint);
}
.sc-nav__logo {
  text-decoration: none;
  color: var(--ink);
}
.sc-nav__brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sc-nav__back {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.sc-nav__back:hover { color: var(--gold); }

/* ---------- HERO ---------- */
.sc-hero {
  padding: 72px 56px 96px;
}
.sc-hero__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 960px) {
  .sc-hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

.sc-hero__copy { max-width: 640px; }

.sc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}
.sc-eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E24A4A;
  box-shadow: 0 0 8px rgba(226,74,74,0.55);
  animation: sc-pulse 1.4s ease-in-out infinite;
}
@keyframes sc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.sc-hero__headline {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px;
}
.sc-hero__headline em {
  font-style: italic;
  color: var(--indigo);
  font-weight: 400;
}

.sc-hero__sub {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 40px;
}

/* ---- COUNTDOWN ---- */
.sc-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 520px;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--cream-2);
  border-radius: 20px;
  border: 1px solid var(--line);
}
.sc-countdown.is-live {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: var(--cream);
  border-color: transparent;
}
.sc-countdown__unit {
  text-align: center;
  padding: 6px 4px;
}
.sc-countdown__value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--ink);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.sc-countdown.is-live .sc-countdown__value { color: var(--cream); }
.sc-countdown__label {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sc-countdown.is-live .sc-countdown__label { color: rgba(251,247,241,0.75); }

.sc-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.sc-hero__meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.sc-hero__meta strong { color: var(--ink); font-weight: 800; }

.sc-hero__portrait {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(31,26,23,0.18);
  border: 1px solid var(--line);
}
.sc-hero__portrait img { display: block; width: 100%; height: auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn--large { padding: 20px 40px; font-size: 15px; }

/* ---------- SHARED SECTION TYPE ---------- */
.sc-section__eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--gold);
}
.sc-section__eyebrow--light {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}
.sc-section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
}
.sc-section__title em { color: var(--indigo); }

.sc-p {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 18px;
}
.sc-p:last-child { margin-bottom: 0; }
.sc-p strong { font-weight: 800; }
.sc-p em     { color: var(--indigo); font-weight: 600; }

/* ---------- STORY ---------- */
.sc-story {
  padding: 96px 56px;
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  background: var(--cream-2);
}
.sc-story__inner {
  max-width: 780px;
  margin: 0 auto;
}
.sc-story__body {
  max-width: 680px;
  margin: 0 0 40px;
}

/* ---- CRED GRID ---- */
.sc-cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink-faint);
  border-left: 1px solid var(--ink-faint);
}
.sc-cred {
  padding: 24px 20px;
  border-right: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  background: var(--cream);
}
.sc-cred__value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  color: var(--ink);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.sc-cred__label {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ---------- WHAT IT DOES ---------- */
.sc-what {
  padding: 96px 56px;
}
.sc-what__inner {
  max-width: 900px;
  margin: 0 auto;
}
.sc-list {
  list-style: none;
  margin-top: 40px;
  padding: 0;
}
.sc-list__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--ink-faint);
  align-items: baseline;
}
.sc-list__item:last-child { border-bottom: 1px solid var(--ink-faint); }
.sc-list__num {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
}
.sc-list__body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.sc-list__body p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .sc-list__item { grid-template-columns: 60px 1fr; gap: 20px; }
  .sc-list__num  { font-size: 30px; }
}

/* ---------- NOTIFY / SUBSCRIBE ---------- */
.sc-notify {
  padding: 0 56px 96px;
}
.sc-notify__inner {
  max-width: 820px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--cream);
  border-radius: 8px;
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sc-notify__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 16px;
}
.sc-notify__lede {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: rgba(251,247,241,0.75);
  max-width: 560px;
  margin: 0 auto 32px;
}
.sc-notify__cta {
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid var(--cream);
}
.sc-notify__cta:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--ink);
  transform: translateY(-1px);
}
.sc-notify__foot {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(251,247,241,0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- FOOTER ---------- */
.sc-footer {
  text-align: center;
  padding: 32px 56px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-top: 1px solid var(--ink-faint);
}
.sc-footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.sc-footer a:hover { border-color: var(--gold); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .sc-nav        { padding: 20px 24px; }
  .sc-hero       { padding: 40px 24px 64px; }
  .sc-story      { padding: 64px 24px; }
  .sc-what       { padding: 64px 24px; }
  .sc-notify     { padding: 0 20px 64px; }
  .sc-notify__inner { padding: 48px 20px; }
  .sc-hero__cta .btn { width: 100%; }
  .sc-countdown  { grid-template-columns: repeat(4, 1fr); padding: 18px 12px; gap: 4px; }

  /* Keep the subscribe CTA inside the dark card on narrow screens */
  .sc-notify__cta {
    max-width: 100%;
    width: 100%;
    white-space: normal;
    padding: 16px 20px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }
}
@media (max-width: 420px) {
  .sc-notify__inner { padding: 40px 16px; }
  .sc-notify__cta   { font-size: 12.5px; padding: 15px 16px; }
}

/* ============================================
   Dynamic layer — marquee, reveals, ticks
   ============================================ */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Press marquee — editorial ticker between hero and story */
.sc-marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink-faint);
  background: var(--cream);
  padding: 18px 0;
}
.sc-marquee__track {
  display: flex;
  width: max-content;
}
/* Each group slides exactly its own width, so the next identical group
   lands where it started — a seamless loop with no blank gap at any
   viewport width (4 groups keep the strip covered on wide screens). */
.sc-marquee__group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  flex-shrink: 0;
  white-space: nowrap;
  animation: sc-marquee-scroll 22s linear infinite;
  will-change: transform;
}
.sc-marquee:hover .sc-marquee__group { animation-play-state: paused; }
.sc-marquee__lead {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.sc-marquee__item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}
.sc-marquee__sep {
  color: var(--gold);
  font-size: 13px;
}
@keyframes sc-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* Countdown digits pop when they change */
.sc-countdown__value.is-tick {
  animation: sc-tick 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes sc-tick {
  0%   { transform: translateY(-8px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}
.sc-countdown__value { display: block; }

/* Portrait: slow ken-burns drift, sharpens on hover */
.sc-hero__portrait img {
  transition: transform 6s ease;
}
.sc-hero__portrait:hover img { transform: scale(1.04); }

/* Numbered list: gold rule draws in as each row reveals */
.sc-list__item { position: relative; }
.sc-list__item::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  height: 1.5px;
  width: 0;
  background: var(--gold);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.sc-list__item.is-visible::before { width: 100px; }

/* Cred stat values keep steady width while counting */
.sc-cred__value { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sc-marquee__group { animation: none; }
  .sc-countdown__value.is-tick { animation: none; }
  .sc-hero__portrait img { transition: none; }
  .sc-list__item::before { transition: none; }
}
