/* ==========================================================================
   Code Lean — extras layered on top of style.css
   (design tokens, buttons, countdown, modal, sliders all come from there)
   ========================================================================== */

/* ---------- Hero: ECG line between the date and the countdown ---------- */

.ecg {
  display: block;
  width: min(360px, 78%);
  height: 34px;
  margin: -0.4rem auto 1.4rem;
  color: var(--gold);
}

.ecg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Pain section ---------- */

.lead-bold {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.3;
  color: var(--pink-deep);
  margin: 0 0 1.5rem;
}

.intro-card {
  margin: 2rem 0 1.8rem;
  padding: 1.6rem 1.7rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--gold);
}

.intro-card__eyebrow {
  margin-bottom: 0.4rem;
}

.intro-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
  color: var(--green-deep);
}

.intro-card p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Phases: a patient's path through the hospital ---------- */

.phases {
  list-style: none;
  margin: 2.2rem 0 2rem;
  padding: 0;
  position: relative;
  display: grid;
  gap: 1.4rem;
}

/* The rail the phases hang from */
.phases::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--gold) 0 6px,
    transparent 6px 12px
  );
}

.phase {
  position: relative;
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 1.1rem;
  align-items: start;
}

.phase__node {
  position: relative;
  z-index: 1;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}

.phase__body {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.phase__unit {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

.phase__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.2;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.phase__goal {
  font-weight: 700;
  color: var(--pink-deep);
  margin: 0 0 0.5rem;
}

.phase__body p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- Ready-to-learn band ---------- */

.care-plan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  line-height: 1.3;
  color: var(--gold-light);
  margin: 1.8rem 0 1.6rem;
}

.cta-center {
  text-align: center;
}

.section--pink .hero__microcopy {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Hosts ---------- */

.hosts {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3.5rem);
  margin-top: 2.4rem;
}

@media (min-width: 900px) {
  .hosts {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
}

.host-card__photo-wrap {
  position: relative;
  max-width: 360px;
  margin: 0 auto 1.8rem;
}

.host-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--pos, 50% 20%);
  border-radius: var(--radius-lg);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-card);
}

.host-card__photo-wrap .host__badge {
  right: -10px;
}

.host-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem);
  margin: 0 0 0.3rem;
}

.host-card__role {
  font-weight: 700;
  color: var(--pink-deep);
  margin: 0 0 1.1rem;
}

.host-card .prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Google reviews ---------- */

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin: 0 0 2.2rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.95rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  line-height: 1;
}

.reviews-head .stars {
  font-size: 1.25rem;
}

.reviews {
  columns: 1;
  column-gap: 1.4rem;
}

@media (min-width: 700px) {
  .reviews { columns: 2; }
}

@media (min-width: 1040px) {
  .reviews { columns: 3; }
}

.review {
  break-inside: avoid;
  margin: 0 0 1.4rem;
  padding: 1.4rem 1.4rem 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
}

.review blockquote {
  margin: 0.8rem 0 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.97rem;
  line-height: 1.6;
}

.review__who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
}

.review__src {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.reviews-cta {
  text-align: center;
  margin-top: 0.8rem;
}

.reviews-cta a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Transformations (reuses .tcard + .ba-slider) ---------- */

/* Eight stories centre their last row instead of leaving a gap. */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.testimonial-grid > .tcard {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .testimonial-grid > .tcard {
    flex: 0 1 calc((100% - 1.6rem) / 2);
  }
}

@media (min-width: 1000px) {
  .testimonial-grid > .tcard {
    flex: 0 1 calc((100% - 3.2rem) / 3);
  }
}

/* Photos cropped from side-by-side posts keep faces in frame. */
.ba-slider__after,
.ba-slider__before {
  object-position: var(--pos, 50% 50%);
}

/* A before/after that arrives as one finished image */
.tcard__composite {
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.tcard__composite img {
  width: 100%;
  height: auto;
}

/* ---------- Who it's for ---------- */

.forwho-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}

.forwho-card .checklist {
  margin-bottom: 1.8rem;
}

.forwho-card__close {
  padding-top: 1.4rem;
  border-top: 1px dashed var(--gold);
}

.forwho-card__close p {
  margin: 0 0 0.3rem;
}

.make-time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  color: var(--green-deep);
  margin: 1.4rem 0 1.3rem !important;
}

/* ---------- Sticky bar: keep the label from crowding on tablets ---------- */

.stickybar__label {
  white-space: nowrap;
}
