/* =========================================================
   Young Money — case study / product page styles
   (nested inside Valocitee's site, distinct product accent)
   ========================================================= */

:root{
  --ym-emerald: #16a34a;
  --ym-emerald-light: #22c55e;
  --ym-mint-bg: #eaf7f0;
  --ym-mint-line: #cdead9;
}

/* ---------- Utility topbar ---------- */
.ym-topbar{
  background: var(--navy-950);
  color: var(--slate-300);
}
.ym-topbar .wrap{
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.ym-topbar a{ color: var(--cyan-300); }
.ym-topbar a:hover{ color: var(--white); }

/* ---------- Product wordmark in header ---------- */
.ym-wordmark{
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.ym-wordmark .dot{ color: var(--ym-emerald); }
.ym-wordmark .tag{
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--slate);
  font-weight: 500;
}
@media (max-width: 640px){ .ym-wordmark .tag{ display:none; } }

.btn-ym{
  background: var(--ym-emerald);
  color: var(--white);
}
.btn-ym:hover{ background: var(--ym-emerald-light); }

/* ---------- Hero ---------- */
.ym-hero{
  background: var(--navy-900);
  color: var(--white);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.ym-hero::before{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 320px at 85% 0%, rgba(34,197,94,0.16), transparent 60%),
    radial-gradient(500px 320px at 10% 100%, rgba(63,197,240,0.14), transparent 60%);
  pointer-events: none;
}
.ym-hero .wrap{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.ym-hero .eyebrow{ color: var(--ym-emerald-light); }
.ym-hero h1{
  font-size: clamp(36px, 4.8vw, 58px);
  margin: 18px 0 22px;
  color: var(--white);
}
.ym-hero h1 em{
  font-style: normal;
  background: linear-gradient(120deg, var(--cyan-300), var(--ym-emerald-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ym-hero p.lede{
  font-size: 17.5px;
  color: var(--slate-300);
  max-width: 480px;
  margin-bottom: 34px;
}

.waitlist-form{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.waitlist-form input[type="email"]{
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
}
.waitlist-form input[type="email"]::placeholder{ color: var(--slate-300); }
.waitlist-form button{ flex: none; border: none; }
.waitlist-note{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-300);
}
.waitlist-success{
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ym-emerald-light);
  margin-bottom: 16px;
}
.waitlist-success.is-visible{ display: flex; }
.waitlist-form.is-hidden{ display: none; }

/* Big Starter Score gauge in hero */
.ym-gauge-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ym-gauge-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 34px;
  text-align: center;
  width: 100%;
  max-width: 340px;
}
.ym-gauge-card svg{ width: 100%; height: auto; }
.ym-gauge-legend{
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-300);
  letter-spacing: .03em;
}

@media (max-width: 940px){
  .ym-hero .wrap{ grid-template-columns: 1fr; }
  .ym-gauge-wrap{ order: -1; }
  .ym-gauge-card{ max-width: 300px; margin-inline: auto; }
}

/* ---------- Problem stats ---------- */
.ym-stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ym-stat-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.ym-stat-card strong{
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 10px;
}
.ym-stat-card p{ font-size: 14px; color: var(--slate); }
@media (max-width: 940px){ .ym-stats-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .ym-stats-grid{ grid-template-columns: 1fr; } }

/* ---------- Modules ---------- */
.modules{ background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.module-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.module-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--paper);
  position: relative;
}
.module-badge{
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ym-mint-bg);
  color: var(--ym-emerald);
  border: 1px solid var(--ym-mint-line);
}
.module-badge.v11{
  background: #eaf1fe;
  color: var(--blue-600);
  border-color: #d3e0fb;
}
.module-card h4{ font-size: 16.5px; margin: 0 60px 10px 0; }
.module-card p{ font-size: 13.8px; color: var(--slate); }
@media (max-width: 940px){ .module-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .module-grid{ grid-template-columns: 1fr; } }

/* ---------- Market opportunity ---------- */
.market-band{
  background: var(--navy-900);
  border-radius: 20px;
  padding: clamp(36px, 5vw, 60px);
  color: var(--white);
}
.market-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 36px;
}
.market-grid div strong{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  background: linear-gradient(120deg, var(--cyan-300), var(--ym-emerald-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.market-grid div span{
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-300);
  letter-spacing: .02em;
}
@media (max-width: 860px){ .market-grid{ grid-template-columns: repeat(2, 1fr); } }

/* ---------- Channels ---------- */
.channel-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.channel-card{
  border-top: 2px solid var(--ym-emerald);
  padding-top: 18px;
}
.channel-card h4{ font-size: 16px; margin-bottom: 8px; }
.channel-card p{ font-size: 14px; color: var(--slate); }
@media (max-width: 860px){ .channel-list{ grid-template-columns: 1fr; } }

/* ---------- Mission + final CTA ---------- */
.mission-band{
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.mission-band blockquote{
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  margin: 20px 0 0;
  color: var(--ink);
}
.mission-band cite{
  display: block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 13px;
  color: var(--slate);
}

.ym-final-cta{
  background: var(--navy-900);
  color: var(--white);
}
.ym-final-cta .contact-band{ background: transparent; padding: 0; margin: 0;}
.ym-final-cta .waitlist-form{ justify-content: center; max-width: 480px; margin-inline: auto; }
.ym-final-cta .waitlist-note{ text-align: center; }
