/* specialty-practices.css — styles specific to the Specialty Practices page (redesigned 2026-10-21 to match the homepage) */

.page-specialty-practices {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: var(--color-white);
}

.page-specialty-practices section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Shared bits ------------------------------------------------------------ */

.eyebrow {
  font-family: var(--font-body-small-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-body-small-size);
  line-height: var(--font-body-small-line-height);
  color: var(--color-accent1-500);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.text-accent {
  color: var(--color-primary-500);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--color-primary-600);
  color: var(--color-white);
  font-family: var(--font-body-bold-family);
  font-weight: var(--font-body-bold-weight);
  font-size: var(--font-body-regular-size);
  line-height: var(--font-body-regular-line-height);
  transition: background-color var(--transition-hover), color var(--transition-hover), box-shadow var(--transition-hover);
}

/* Figma "Buttons" :hover — same treatment as the header CTA; inset shadow
   stands in for Figma's 1px INSIDE stroke so the button doesn't resize. */
.button--primary:hover,
.button--primary:focus-visible {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  box-shadow: inset 0 0 0 1px var(--color-primary-600);
}

/* Keyboard focus ring — matches base.css (nav links, .nav-cta). */
.button:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.button--outline {
  background: var(--color-white);
  border: 1px solid var(--color-tertiary-400);
  color: var(--color-tertiary-700);
  font-family: var(--font-body-regular-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-body-regular-size);
}

/* Header block ------------------------------------------------------------ */

.header-block {
  align-items: center;
  padding: var(--section-space-top) 32px var(--section-space);
  background: linear-gradient(127deg, #ffffff 0%, var(--color-primary-25) 35%, var(--color-primary-50) 70%, var(--color-accent2-50) 100%);
}

.header-block__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 1160px;
  width: 100%;
  padding: 0 32px;
}

.header-block__title {
  font-family: var(--font-title-family);
  font-weight: var(--font-title-weight);
  font-size: var(--font-title-size);
  line-height: var(--font-title-line-height);
  color: var(--color-neutral-900);
  margin: 0;
}

.header-block__body {
  display: flex;
  flex-direction: column;
  max-width: 660px;
  margin-top: 4px;
}

.header-block__body p {
  font-family: var(--font-body-regular-family);
  font-weight: var(--font-body-regular-weight);
  font-size: var(--font-body-regular-size);
  line-height: var(--font-body-regular-line-height);
  color: var(--color-neutral-500);
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero: text only; title a step smaller than the homepage's. */
.header-block__title {
  font-size: 44px; /* FLAG: no token */
  line-height: 1.12;
  letter-spacing: -1px;
  max-width: 820px;
}

.header-block__body p {
  font-size: 17px; /* FLAG: no token (homepage lead size) */
  line-height: 1.55;
  max-width: 680px;
}

/* Section scaffolding --------------------------------------------------------
   Sections run full width (so bands can carry a background); content sits in
   .sp-inner, which lines up with the hero's left edge at every width. */
.sp-day,
.sp-stages {
  align-items: center;
  padding: var(--section-space) 64px;
}

.sp-day {
  padding-top: var(--section-space-top);
}

.sp-inner {
  width: 100%;
  max-width: 1096px;
  display: flex;
  flex-direction: column;
}

.sp-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.sp-head .eyebrow,
.impact__heading .eyebrow {
  margin: 0;
}

.sp-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: none;
}

.sp-head__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-head__aside {
  margin: 0 0 4px;
  font-size: 13px; /* FLAG: no token */
  color: var(--color-neutral-400);
}

/* Section headings: one step below the homepage (36 / 28 / 24). */
.sp-title {
  margin: 0;
  font-family: var(--font-title-family);
  font-weight: 800;
  font-size: var(--font-size-6);
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: var(--color-neutral-900);
}

.sp-lead {
  margin: 0;
  font-size: 17px; /* FLAG: no token */
  line-height: 1.55;
  color: var(--color-neutral-500);
}

/* A day at the front desk ------------------------------------------------------
   Five stops on one line: what happened sits above the line, a check on it,
   Carrie's fix below. After hours, the line turns dashed and the node is a moon. */
.sp-day__line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.sp-day__line::before,
.sp-day__line::after {
  content: "";
  position: absolute;
  top: 97px;
}

.sp-day__line::before {
  left: 0;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-100), var(--color-primary-300) 60%);
}

.sp-day__line::after {
  left: 80%;
  right: 0;
  border-top: 2px dashed var(--color-primary-700);
}

.sp-day__stop {
  display: grid;
  grid-template-rows: 84px auto auto;
  align-content: start;
}

.sp-day__what {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding-bottom: 18px;
}

.sp-day__time {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px; /* FLAG: no token */
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
  color: var(--color-primary-600);
}

.sp-day__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-primary-950);
  color: var(--color-primary-200);
  font-size: 11px; /* FLAG: no token */
}

.sp-day__problem {
  font-size: 15px; /* FLAG: no token */
  line-height: 1.35;
  color: var(--color-neutral-400);
}

.sp-day__node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-600);
  color: var(--color-white);
  box-shadow: 0 0 0 6px var(--color-white);
}

.sp-day__stop--night .sp-day__node {
  background: var(--color-primary-950);
}

.sp-day__fix {
  margin: 0;
  padding-top: 18px;
  font-size: var(--font-size-3);
  line-height: 1.35;
  font-weight: 800;
  color: var(--color-neutral-900);
}

/* Before, after, and long after ------------------------------------------------ */
.sp-stages {
  background: var(--color-primary-25);
  border-top: 1px solid var(--color-primary-100);
  border-bottom: 1px solid var(--color-primary-100);
}

.sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.sp-chip {
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: inset 0 0 0 1px var(--color-primary-200);
  color: var(--color-primary-950);
  font: inherit;
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: background-color var(--transition-hover), color var(--transition-hover), box-shadow var(--transition-hover);
}

.sp-chip:hover {
  background: var(--color-primary-50);
}

.sp-chip[aria-selected="true"] {
  background: var(--color-primary-600);
  box-shadow: none;
  color: var(--color-white);
}

.sp-chip:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.sp-stages__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.sp-stages__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sp-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--color-primary-200);
  border-radius: 24px;
  background: var(--color-white);
}

.sp-stage__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-100);
  color: var(--color-primary-600);
}

.sp-stage__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-stage__eyebrow {
  margin: 0;
  font-size: 12px; /* FLAG: no token */
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-600);
}

.sp-stage__title {
  margin: 0;
  font-family: var(--font-title-family);
  font-weight: 800;
  font-size: 24px; /* FLAG: no token */
  letter-spacing: -0.3px;
  color: var(--color-neutral-900);
}

.sp-stage__tag {
  margin: 2px 0 0;
  font-size: 15px; /* FLAG: no token */
  color: var(--color-neutral-500);
}

.sp-stage__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.sp-stage__list li {
  font-size: 15px; /* FLAG: no token */
  line-height: 1.45;
  color: var(--color-neutral-600);
}

.sp-stage__list li::marker {
  color: var(--color-primary-600);
}

.sp-stages__note {
  margin: 0;
  font-size: var(--font-size-1);
  color: var(--color-neutral-500);
}

.sp-stages__note strong {
  color: var(--color-primary-950);
}

.sp-stages__disclaimer {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-primary-100);
  font-size: var(--font-size-1);
  line-height: 1.5;
  color: var(--color-neutral-500);
}

/* Impact ----------------------------------------------------------------------
   The patient quote sits as a tall card beside six compact result cards. */
.impact {
  gap: 36px;
  max-width: 1224px;
  padding: var(--section-space) 32px;
  align-items: stretch;
  scroll-margin-top: 96px; /* the sticky header doesn't cover it after "See all results" */
}

.impact__head,
.impact__grid {
  padding: 0 32px;
}

.impact__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.impact__heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.impact__subtitle {
  max-width: 380px;
  font-size: 13px; /* FLAG: no token */
  line-height: 1.5;
  color: var(--color-neutral-400);
  margin: 0 0 4px;
}

.impact__subtitle sup {
  font-weight: var(--font-weight-semibold);
}

.impact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 3fr);
  gap: 16px;
}

.impact__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--color-primary-200);
  border-radius: 20px;
  background: var(--color-primary-25);
}

.sp-quote__mark {
  color: var(--color-primary-300);
}

.sp-quote__text {
  margin: 0;
  font-size: var(--font-size-4);
  line-height: 1.35;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.3px;
  color: var(--color-primary-950);
}

.sp-quote__who {
  margin-top: auto;
  font-size: 13px; /* FLAG: no token */
  line-height: 1.45;
  color: var(--color-neutral-400);
}

/* FLAG: no token (#fbf6f2 card, #efe2d8 border — warm neutrals, not in the ramps). */
.impact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid #efe2d8;
  border-radius: 24px;
  background: #fbf6f2;
}

.impact-card__viz {
  display: flex;
  align-items: flex-end;
  height: 100px;
  margin-bottom: 12px;
}

.impact-card__viz--people {
  gap: 8px;
}

.impact-card__viz--weeks,
.impact-card__viz--cases {
  display: grid;
  grid-template-columns: repeat(10, 14px);
  gap: 6px;
  align-content: end;
}

.impact-card__viz--cases {
  grid-template-columns: repeat(10, 16px);
}

.impact-card__week {
  width: 14px;
  height: 20px;
  border-radius: 4px;
  background: var(--color-secondary-400);
}

.impact-card__week.is-off {
  background: var(--color-secondary-50);
}

.impact-card__case {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--color-primary-600);
}

.impact-card__case.is-avoided {
  background: transparent;
  border: 2px dashed var(--color-primary-300);
}

.impact-card__viz--bars {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
}

.impact-card__bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.impact-card__bar-label {
  flex: 0 0 86px;
  font-size: 12px; /* FLAG: no token */
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-400);
}

.impact-card__bar-track {
  flex: 1 1 0;
  height: 18px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--color-secondary-50);
}

.impact-card__bar-track span {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: var(--color-secondary-400);
}

.impact-card__bar-pct {
  flex: 0 0 34px;
  text-align: right;
  font-size: 12px; /* FLAG: no token */
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary-600);
}

/* FLAG: no token (52px stat size). */
.impact-card__value {
  font-family: var(--font-title-family);
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--color-secondary-500);
}

.impact-card__label {
  font-size: 15px; /* FLAG: no token */
  line-height: 1.45;
  color: var(--color-neutral-500);
}

/* Compact sizing for the result cards on this page. */
.impact-card {
  gap: 6px;
  padding: 22px;
  border-radius: 20px;
}

.impact-card__viz {
  height: 64px;
  margin-bottom: 10px;
}

.impact-card__viz > svg:only-child {
  width: auto;
  height: 64px;
}

.impact-card__viz--people {
  gap: 5px;
}

.impact-card__viz--people svg {
  width: 14px;
  height: 31px;
}

.impact-card__viz--weeks,
.impact-card__viz--cases {
  grid-template-columns: repeat(10, 14px);
  gap: 5px;
}

.impact-card__case {
  width: 14px;
  height: 14px;
}

.impact-card__bar {
  gap: 8px;
}

.impact-card__bar-label {
  flex-basis: 82px;
  white-space: nowrap;
}

.impact-card__bar-pct {
  flex-basis: 30px;
}

.impact-card__value {
  font-size: 36px; /* FLAG: no token */
  letter-spacing: -1px;
  white-space: nowrap;
}

.impact-card__label {
  font-size: var(--font-size-1);
}

/* Live in 3 weeks (closing band) ----------------------------------------------- */
.sp-cta {
  align-items: center;
  padding: var(--section-space) 64px;
  background: var(--color-primary-25);
  border-top: 1px solid var(--color-primary-100);
}

.sp-cta__inner {
  width: 100%;
  max-width: 1096px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: center;
}

.sp-cta__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.sp-cta__title {
  margin: 0;
  font-family: var(--font-title-family);
  font-weight: 800;
  font-size: var(--font-size-6);
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: var(--color-neutral-900);
}

.sp-cta__lead {
  margin: 0;
  font-size: 17px; /* FLAG: no token */
  line-height: 1.55;
  color: var(--color-neutral-500);
}

.sp-cta__button {
  margin-top: 6px;
}

.sp-cta__card {
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: 0 1px 0 var(--color-primary-200), 0 18px 40px rgba(98, 4, 117, 0.08);
}

.sp-cta__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-cta__step {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
}

.sp-cta__step + .sp-cta__step {
  border-top: 1px solid var(--color-neutral-100);
}

/* Same big gradient numbers as Book a Call's "Here's what happens" steps. */
.sp-cta__num {
  font-family: var(--font-title-family);
  font-weight: 800;
  font-size: 88px; /* FLAG: no token */
  line-height: 0.8;
  letter-spacing: -4px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sp-cta__step--1 .sp-cta__num {
  background-image: linear-gradient(170deg, var(--color-primary-200) 0%, var(--color-primary-100) 40%, rgba(248, 210, 251, 0) 88%);
}

.sp-cta__step--2 .sp-cta__num {
  background-image: linear-gradient(170deg, var(--color-primary-100) 0%, var(--color-secondary-100) 45%, rgba(197, 208, 241, 0) 88%);
}

.sp-cta__step--3 .sp-cta__num {
  background-image: linear-gradient(170deg, var(--color-secondary-200) 0%, var(--color-secondary-100) 45%, rgba(228, 233, 246, 0) 88%);
}

.sp-cta__step-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-cta__step-title {
  font-size: 20px; /* FLAG: no token */
  font-weight: 800;
  color: var(--color-neutral-900);
}

.sp-cta__step-desc {
  font-size: 15px; /* FLAG: no token */
  line-height: 1.5;
  color: var(--color-neutral-500);
}

/* Calendar strip: 15 weekdays, ending on a ringed LIVE pill. */
.sp-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--color-neutral-100);
}

.sp-strip__days {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-strip__week {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-strip__day {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  transform-origin: left center;
}

.sp-strip__day--w1 { background: var(--color-primary-200); }
.sp-strip__day--w2 { background: var(--color-secondary-200); }
.sp-strip__day--w3 { background: var(--color-secondary-300); }

.sp-strip__day--live {
  flex: 1.6;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-600);
  color: var(--color-white);
  font-size: 10px; /* FLAG: no token */
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-primary-600);
}

.sp-strip__ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px; /* FLAG: no token */
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
}

.sp-strip__ends span:last-child {
  color: var(--color-primary-600);
}

/* Fill-in animation: armed by JS (so it's never hidden without JS), played
   once when the strip scrolls into view. Skipped for reduced motion. */
.sp-strip.is-armed:not(.is-visible) .sp-strip__day {
  opacity: 0;
}

.sp-strip.is-visible .sp-strip__day {
  animation: sp-day-fill 0.3s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.sp-strip.is-visible .sp-strip__day--live {
  animation: sp-live-pop 1.2s ease-out both;
  animation-delay: 0.9s;
}

.sp-strip.is-visible .sp-strip__week:nth-child(1) .sp-strip__day:nth-child(1) { animation-delay: 0s; }
.sp-strip.is-visible .sp-strip__week:nth-child(1) .sp-strip__day:nth-child(2) { animation-delay: 0.055s; }
.sp-strip.is-visible .sp-strip__week:nth-child(1) .sp-strip__day:nth-child(3) { animation-delay: 0.11s; }
.sp-strip.is-visible .sp-strip__week:nth-child(1) .sp-strip__day:nth-child(4) { animation-delay: 0.165s; }
.sp-strip.is-visible .sp-strip__week:nth-child(1) .sp-strip__day:nth-child(5) { animation-delay: 0.22s; }
.sp-strip.is-visible .sp-strip__week:nth-child(2) .sp-strip__day:nth-child(1) { animation-delay: 0.275s; }
.sp-strip.is-visible .sp-strip__week:nth-child(2) .sp-strip__day:nth-child(2) { animation-delay: 0.33s; }
.sp-strip.is-visible .sp-strip__week:nth-child(2) .sp-strip__day:nth-child(3) { animation-delay: 0.385s; }
.sp-strip.is-visible .sp-strip__week:nth-child(2) .sp-strip__day:nth-child(4) { animation-delay: 0.44s; }
.sp-strip.is-visible .sp-strip__week:nth-child(2) .sp-strip__day:nth-child(5) { animation-delay: 0.495s; }
.sp-strip.is-visible .sp-strip__week:nth-child(3) .sp-strip__day:nth-child(1) { animation-delay: 0.55s; }
.sp-strip.is-visible .sp-strip__week:nth-child(3) .sp-strip__day:nth-child(2) { animation-delay: 0.605s; }
.sp-strip.is-visible .sp-strip__week:nth-child(3) .sp-strip__day:nth-child(3) { animation-delay: 0.66s; }
.sp-strip.is-visible .sp-strip__week:nth-child(3) .sp-strip__day:nth-child(4) { animation-delay: 0.715s; }

@keyframes sp-day-fill {
  from { opacity: 0; transform: scaleX(0.15); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes sp-live-pop {
  0% { opacity: 0; transform: scale(0.6); }
  25% { opacity: 1; transform: scale(1.08); }
  35% { transform: scale(1); box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-primary-600), 0 0 0 4px rgba(160, 13, 163, 0.45); }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-primary-600), 0 0 0 16px rgba(160, 13, 163, 0); }
}

.sp-cta__note {
  margin: 18px 0 0;
  font-size: var(--font-size-1);
  line-height: 1.5;
  color: var(--color-neutral-500);
}

/* Footnotes ------------------------------------------------------------ */

.page-footnotes {
  max-width: 1224px;
  width: 100%;
  margin: 0;
  padding: 24px 64px 40px;
  font-family: var(--font-body-regular-family);
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-neutral-500);
}

/* ==========================================================================
   RESPONSIVE
   ≤1024: the day turns into a vertical timeline; impact quote goes on top.
   ≤900: cards and the closing band stack.  ≤768 / ≤480: tighter gutters and
   smaller headings (body sizes stay put, see tokens.css).
   ========================================================================== */
@media (max-width: 1024px) {
  .sp-day__line {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 560px;
  }

  /* The line is drawn per stop, so it ends at the last one; the stretch
     into the evening is dashed, like the desktop line. */
  .sp-day__line::before,
  .sp-day__line::after {
    display: none;
  }

  .sp-day__stop:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 0;
    left: 13px;
    width: 2px;
    background: var(--color-primary-200);
  }

  .sp-day__stop:nth-last-child(2)::before {
    width: 0;
    background: none;
    border-left: 2px dashed var(--color-primary-700);
  }

  .sp-day__stop {
    position: relative;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    padding-bottom: 28px;
  }

  .sp-day__node {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
  }

  .sp-day__what {
    grid-column: 2;
    grid-row: 1;
    padding: 2px 0 6px;
  }

  .sp-day__fix {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0;
  }

  .impact__grid {
    grid-template-columns: 1fr;
  }

  .impact__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sp-stages__grid {
    grid-template-columns: 1fr;
  }

  .sp-cta__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sp-cta__main,
  .sp-cta__card {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .header-block {
    padding: var(--section-space-top) var(--space-lg) var(--section-space);
  }

  .header-block__inner {
    padding: 0 var(--space-lg);
  }

  .header-block__title {
    font-size: var(--font-title-size);
  }

  .sp-title,
  .sp-cta__title {
    font-size: var(--font-size-5);
  }

  .sp-head--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .impact__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sp-stage {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .header-block {
    padding: var(--section-space-top) var(--space-md) var(--section-space);
  }

  .header-block__inner {
    padding: 0 var(--space-md);
  }

  .sp-day,
  .sp-stages,
  .sp-cta {
    padding-left: 32px;
    padding-right: 32px;
  }

  .impact {
    padding: var(--section-space) var(--space-md);
  }

  .impact__head,
  .impact__grid {
    padding: 0 var(--space-md);
  }

  .page-footnotes {
    padding: 24px 32px 40px;
  }

  .sp-title,
  .sp-cta__title {
    font-size: 24px; /* FLAG: no token */
  }

  .impact__cards {
    grid-template-columns: 1fr;
  }

  .sp-cta__card {
    padding: 20px;
  }

  .sp-cta__step {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .sp-cta__num {
    font-size: 64px;
    letter-spacing: -3px;
  }

  .sp-strip__days {
    gap: 8px;
  }

  .sp-strip__week {
    gap: 3px;
  }

  .sp-strip__day--live {
    flex: 2.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-chip {
    transition: none;
  }
}
