/* ============================================================
   CAREFLOW — Onboarding sections (Why 3 months + First 30 days)
   ============================================================ */

/* ============================================================
   SECTION 9 — WHY 3 MONTHS (cream)
   ============================================================ */
.why {
  background: var(--cream);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--warm-grey-line);
}
.why-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 96px;
}
.why-head .eyebrow {
  display: block;
  margin-bottom: 24px;
}
.why-head h2 {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(38px, 4.8vw, 64px);
  letter-spacing: -0.026em;
  line-height: 1.04;
  margin: 0 0 32px;
  color: var(--forest);
}
.why-head h2 em { font-style: italic; color: var(--pink); }
.why-lede {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(24, 32, 90, 0.78);
  max-width: 640px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-bottom: 120px;
}
.why-col {
  border-top: 1px solid var(--warm-grey-line);
  padding-top: 36px;
}
.why-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(72px, 8vw, 104px);
  letter-spacing: -0.045em;
  line-height: 0.85;
  color: var(--pink);
  margin-bottom: 22px;
}
.why-period {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--warm-grey);
  margin-bottom: 14px;
}
.why-col h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--forest);
}
.why-col p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(24, 32, 90, 0.78);
  margin: 0;
}

/* --- Performance curve --- */
.why-curve {
  margin: 0 auto 64px;
  max-width: 1080px;
  padding: 40px 8px 16px;
}
.curve-track {
  position: relative;
  height: 4px;
  background: var(--warm-grey-line);
  border-radius: 2px;
  margin: 80px 0 0;
}
.curve-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg,
    var(--cyan) 0%,
    var(--cyan-deep) 30%,
    var(--pink) 65%,
    var(--pink-deep) 100%);
  border-radius: 2px;
  transition: width 1400ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.why-curve.playing .curve-fill { width: 100%; }

.curve-zone {
  position: absolute;
  top: -7px; bottom: -7px;
  left: 38%; width: 35%;
  background: rgba(240, 98, 171, 0.13);
  border-left: 1px solid var(--pink);
  border-right: 1px solid var(--pink);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 600ms ease-out 900ms;
}
.curve-zone-pulse {
  position: absolute;
  top: -7px; bottom: -7px;
  left: 38%; width: 35%;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}
.why-curve.playing .curve-zone { opacity: 1; }
.why-curve.playing .curve-zone-pulse {
  animation: zone-pulse 1.6s ease-out 1500ms 1 forwards;
}
@keyframes zone-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 98, 171, 0.5); opacity: 1; }
  60%  { box-shadow: 0 0 0 14px rgba(240, 98, 171, 0); opacity: 1; }
  100% { box-shadow: 0 0 0 14px rgba(240, 98, 171, 0); opacity: 0; }
}

.curve-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.why-curve.playing .curve-dot.d1 { opacity: 1; transition-delay: 200ms; }
.why-curve.playing .curve-dot.d2 { opacity: 1; transition-delay: 800ms; }
.why-curve.playing .curve-dot.d3 { opacity: 1; transition-delay: 1300ms; }

.curve-dot-mark {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--forest);
  box-shadow: 0 0 0 4px var(--cream);
  position: relative;
  z-index: 1;
}
.curve-dot.hot .curve-dot-mark {
  width: 18px; height: 18px;
  background: var(--pink);
  border-color: var(--pink-deep);
}
.curve-dot-label {
  position: absolute;
  top: -64px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--warm-grey);
  line-height: 1.4;
}
.curve-dot-label strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 15px;
  color: var(--forest);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.curve-dot.hot .curve-dot-label strong { color: var(--pink); }
.curve-dot.d3 .curve-dot-label { transform: translateX(-78%); }
.curve-dot.d1 .curve-dot-label { transform: translateX(-22%); }

.curve-axis {
  display: flex; justify-content: space-between;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-grey);
  opacity: 0.6;
  padding: 0 4px;
}

.why-closer {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--pink);
}

/* ============================================================
   SECTION 10 — FIRST 30 DAYS (dark)
   ============================================================ */
.first30 {
  background: var(--forest);
  color: var(--cream);
  padding: var(--section-y) 0;
}
.first30-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}
.first30-head .eyebrow {
  color: var(--pink);
  display: block;
  margin-bottom: 24px;
}
.first30-head h2 {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(38px, 4.8vw, 64px);
  letter-spacing: -0.026em;
  line-height: 1.04;
  margin: 0 0 24px;
  color: var(--cream);
}
.first30-head h2 em { font-style: italic; color: var(--pink); }
.first30-sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(248, 245, 240, 0.78);
  margin: 0;
}

.first30-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.f30-card {
  position: relative;
  background: rgba(248, 245, 240, 0.04);
  border: 1px solid rgba(248, 245, 240, 0.12);
  border-radius: 18px;
  padding: 36px 30px 32px;
  transition: background 320ms var(--ease), transform 320ms var(--ease), border-color 320ms var(--ease);
  display: flex; flex-direction: column;
  min-height: 320px;
}
.f30-card:hover {
  transform: translateY(-3px);
  background: rgba(248, 245, 240, 0.07);
  border-color: rgba(248, 245, 240, 0.18);
}
.f30-period {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--pink);
  margin-bottom: 18px;
}
.f30-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 18px;
  color: var(--cream);
  max-width: 220px;
}
.f30-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(248, 245, 240, 0.78);
  margin: 0;
  flex: 1;
}
.f30-mark {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(248, 245, 240, 0.18);
}

.first30-tail {
  text-align: center;
  max-width: 720px;
  margin: 64px auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
  color: rgba(248, 245, 240, 0.78);
  letter-spacing: -0.005em;
}
.first30-tail em { color: var(--pink); font-style: italic; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid, .first30-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-curve { padding: 16px 0; }
  .curve-track { margin-top: 100px; }
  .curve-dot-label { font-size: 11px; }
  .curve-dot-label strong { font-size: 13px; }
  .curve-dot-label { white-space: normal; max-width: 110px; }
}
@media (max-width: 640px) {
  .curve-dot.d1 .curve-dot-label { transform: translateX(-10%); }
  .curve-dot.d3 .curve-dot-label { transform: translateX(-90%); }
  .f30-mark { font-size: 36px; top: 20px; right: 20px; }
}
