.site-header .brand img {
  height: auto;
  filter: grayscale(1) invert(1);
}

.hero,
.benefits,
.allergen-range,
.cro-routine,
.why-modena,
.insurance,
.booking {
  background: var(--paper);
}

.mechanism,
.fit-main,
.safety,
.stories {
  background: var(--sage);
}

.fit-takeaways {
  background: color-mix(in srgb, var(--clay) 60%, var(--paper));
}

.fit-prompt {
  color: var(--muted);
}

.allergen-callout {
  background: var(--sage);
  border-color: var(--line);
}

.dark-surface .button:not(.button-coral) {
  background: var(--paper);
  color: var(--text);
}

.dark-surface .button:not(.button-coral):hover {
  background: var(--sage);
}

.ages .age-callout {
  margin-top: 32px;
}

.ages .age-callout .button,
.pathway .pathway-callout .button {
  background: var(--dd-brand);
  color: var(--paper);
}

.ages .age-callout .button:hover,
.pathway .pathway-callout .button:hover {
  background: color-mix(in srgb, var(--dd-brand) 94%, var(--dd-ink));
}

.hero {
  padding-block: clamp(28px, 4vw, 56px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}

.hero-copy {
  min-width: 0;
  text-align: left;
}

.hero .eyebrow {
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(44px, 4.3vw, 66px);
  line-height: 1.06;
  text-wrap: balance;
  margin-top: 24px;
}

.hero-subtitle {
  margin-top: 24px;
  font-size: clamp(22px, 2vw, 27px);
}

.hero-description {
  max-width: 52ch;
  margin: 20px 0 26px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.hero .button-row {
  justify-content: flex-start;
  gap: 12px 20px;
}

.hero .button {
  min-width: 0;
  min-height: 56px;
  padding: 16px 24px;
  font-size: 14px;
}

.hero .button-outline {
  padding-inline: 0;
}

.hero-reassurance {
  display: block;
  margin-top: 20px;
  font-size: 16px;
  text-align: left;
  color: var(--muted);
}

.hero-microproof {
  justify-content: flex-start;
  margin: 20px 0 0;
  gap: 8px 18px;
  font-size: 14px;
}

.hero-photo {
  min-width: 0;
  width: 100%;
  margin: 0;
}

.hero-photo > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-position: center;
  border-radius: var(--radius);
}

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

.allergen-media,
.allergen-picture {
  aspect-ratio: 2 / 1;
}

.allergen-question {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, var(--paper) 35%, transparent 36%),
    var(--sage);
  color: var(--dd-control);
  font-family: var(--font-display);
  font-size: clamp(64px, 6vw, 88px);
  font-weight: var(--weight-display);
  line-height: 1;
}

.pathway-track {
  min-height: 0;
  height: auto;
  padding-bottom: 36px;
}

.pathway-thread {
  top: 0;
  height: 160px;
  transform: none;
  filter: none;
  mix-blend-mode: normal;
  color: var(--accent);
}

.pathway-list {
  position: relative;
  display: grid;
  grid-template-areas: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
}

.pathway-list li {
  position: relative;
  grid-area: auto;
  top: auto;
  left: auto;
  width: auto;
  margin-top: 0;
  text-align: center;
}

.pathway-list li:nth-child(even) {
  padding-top: 80px;
}

.pathway-list li > .icon {
  position: relative;
  top: auto;
  left: auto;
  width: 80px;
  height: 80px;
  padding: 14px;
  margin: 0 auto 20px;
  background: var(--dd-brand);
  filter: none;
}

.pathway-list h3 {
  font-size: 17px;
  line-height: 1.4;
}

.pathway-list p {
  font-size: 17px;
  line-height: 1.6;
}

.cro-video-group > h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cro-cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.benefits figure {
  position: relative;
}

.benefits figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 20px 18px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(
    transparent,
    color-mix(in srgb, var(--dd-ink) 85%, transparent)
  );
  color: var(--paper);
  font-size: 18px;
  font-weight: var(--weight-label);
}

.benefits-main-photo figcaption {
  padding-bottom: 44px;
}

.cro-starting-points {
  margin-top: 28px;
}

.cro-starting-points article {
  padding-block: 20px;
  border-top: 1px solid var(--dark-line);
}

.cro-starting-points h3 {
  font-size: 23px;
  line-height: 1.35;
}

.cro-starting-points p {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.6;
}

.fit-takeaways > .display {
  font-size: clamp(32px, 3.4vw, 48px);
}

.cro-video-intro {
  margin-bottom: 28px;
  font-size: 19px;
  line-height: 1.6;
}

.cro-routine {
  padding-block: var(--section-space);
}

.routine-board {
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  aspect-ratio: auto;
}

.routine-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.routine-copy {
  position: static;
  width: auto;
}

.routine-heading .display {
  max-width: 16ch;
  font-size: clamp(38px, 4vw, 58px);
}

.routine-heading .section-intro {
  max-width: 35ch;
  margin: 24px 0 0;
  font-size: clamp(18px, 1.7vw, 22px);
}

.routine-photo {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 16px 18px 0 -4px var(--sage-deep);
}

.routine-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.routine-thread {
  display: none;
}

.routine-step {
  position: relative;
  width: auto;
  text-align: center;
}

.routine-grid .icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  outline: 10px solid var(--paper);
}

.routine-grid h3 {
  min-height: 2.8em;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0;
}

.routine-grid p {
  font-size: 17px;
  line-height: 1.65;
  margin-top: 12px;
}

.routine-support-frame {
  position: static;
  height: auto;
  margin-top: 36px;
  padding: 0;
}

.routine-support {
  justify-content: center;
  padding: 28px;
  text-align: center;
  background: var(--dd-brand);
}

.routine-support p {
  font-size: clamp(26px, 2.6vw, 36px);
}

.routine-support .icon {
  filter: brightness(0) invert(1);
}

.modena-layout .display {
  font-size: clamp(38px, 3.6vw, 54px);
  line-height: 1.12;
}

.cro-video-group {
  margin-top: 48px;
}

.cro-video-group > h3 {
  margin-bottom: 26px;
}

.cro-video-answer {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.6;
}

.dark-surface .oit-video-meta,
.dark-surface .oit-video-error {
  color: var(--paper);
}

.cro-section-action {
  margin-top: 36px;
}

.safety {
  padding-bottom: var(--section-space);
}

.feature-grid article {
  align-content: start;
}

.why-modena {
  padding-block: var(--section-space);
}

.modena-office > img {
  height: clamp(430px, 48vw, 650px);
}

.insurance-heading .display {
  max-width: 15ch;
}

.cro-cost-grid article {
  padding: 28px;
  border-radius: var(--radius-small);
  background: var(--sage);
}

.cro-cost-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--weight-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cro-cost-grid h3 {
  font-size: 25px;
  line-height: 1.3;
}

.cro-cost-grid p {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.6;
}

.cro-cost-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
}

.cro-cost-next p {
  max-width: 58ch;
  font-size: 19px;
  line-height: 1.6;
}

.cro-cost-next .button {
  flex-shrink: 0;
}

.booking-layout {
  align-items: stretch;
}

.cro-booking-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--sage);
}

.cro-booking-card > h3 {
  text-align: left;
}

.cro-booking-steps {
  display: grid;
  gap: 16px;
  margin-block: 18px;
}

.cro-booking-steps li {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.cro-booking-steps li > span {
  color: var(--dd-control);
  font-size: 20px;
}

.cro-booking-steps strong {
  font-size: 19px;
}

.cro-booking-steps p {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.6;
}

.cro-booking-card .button {
  width: 100%;
}

.cro-booking-card.mh-appointment {
  --appointment-ink: var(--text);
  --appointment-border: var(--dd-control);
  --appointment-surface: var(--sage);
  --appointment-field: var(--paper);
  --appointment-field-ink: var(--text);
  --appointment-error: var(--accent-ink);
  display: block;
  padding: clamp(25px, 2.5vw, 37px);
  background-image: none;
}

.cro-booking-card .mh-appointment-form {
  margin-top: 24px;
}

.cro-booking-card .mh-appointment-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cro-booking-card :is(input:not([type="hidden"]), select) {
  min-height: 48px;
  border-radius: 7px;
}

.cro-phone-control {
  position: relative;
}

.cro-phone-prefix {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 13px;
  display: flex;
  align-items: center;
  color: var(--appointment-field-ink);
  pointer-events: none;
}

.cro-booking-card .cro-phone-control input {
  padding-inline-start: 43px;
}

.cro-booking-card button[type="submit"] {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 30px;
  background: var(--text);
  color: var(--paper);
  justify-content: center;
}

.cro-booking-card button[type="submit"]:hover:not(:disabled) {
  background: var(--dd-control);
}

.cro-booking-card .mh-appointment-actions {
  gap: 12px;
}

.cro-booking-card .mh-appointment-actions a {
  font-size: 14px;
}

.cro-booking-card .mh-appointment-consent {
  color: var(--muted);
}

.cro-booking-card .mh-appointment-status {
  border-radius: 7px;
}

.cro-direct-booking {
  margin-top: 24px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.cro-direct-booking a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .cro-booking-card .mh-appointment-fields {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1101px) {
  .cro-routine {
    padding-top: 24px;
  }

  .routine-board {
    aspect-ratio: 5 / 4;
    min-height: 980px;
  }

  .routine-thread {
    display: block;
    height: 100%;
    object-fit: fill;
  }

  .routine-heading,
  .routine-grid {
    display: contents;
  }

  .routine-copy {
    position: absolute;
    top: 3.7%;
    left: 3%;
    width: 29.5%;
  }

  .routine-heading .display {
    font-size: clamp(36px, 3.5vw, 48px);
    max-width: none;
    line-height: 1.08;
  }

  .routine-heading .section-intro {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.5;
    max-width: 28ch;
    margin-top: 18px;
  }

  .routine-copy .section-rule {
    margin-block: 22px 0;
  }

  .routine-photo {
    position: absolute;
    top: 3.7%;
    left: 37.05%;
    width: 56.35%;
    height: 49.1%;
    box-shadow:
      32px 0 0 -10px var(--sage-deep),
      -32px 0 0 -10px var(--sage-deep);
  }

  .routine-step {
    position: absolute;
    top: 55.5%;
    width: 21%;
    text-align: center;
  }

  .routine-step:nth-child(1) {
    top: 44.3%;
    left: 3%;
    width: 20%;
    text-align: left;
  }

  .routine-step:nth-child(2) {
    left: 23.7%;
  }

  .routine-step:nth-child(3) {
    left: 46.4%;
  }

  .routine-step:nth-child(4) {
    left: 74%;
  }

  .routine-grid .icon-badge {
    width: clamp(72px, 6.5vw, 90px);
    height: clamp(72px, 6.5vw, 90px);
    margin-bottom: 18px;
    outline: 0;
  }

  .routine-step:first-child .icon-badge {
    margin-left: 24%;
  }

  .routine-grid h3 {
    min-height: 0;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.35;
  }

  .routine-grid p {
    font-size: clamp(15px, 1.25vw, 17px);
    line-height: 1.55;
  }

  .routine-support-frame {
    position: absolute;
    top: 85.2%;
    right: 9.5%;
    bottom: auto;
    left: 9.5%;
    height: 12.7%;
    margin: 0;
    padding: 10px 0;
  }

  .routine-support {
    padding: 20px 28px;
    gap: 24px;
    border-radius: var(--radius);
  }

  .routine-support .icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .routine-support p {
    font-size: clamp(26px, 2.3vw, 32px);
    text-align: left;
  }
}

@media (max-width: 1100px) {
  .routine-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .routine-heading .display {
    max-width: 22ch;
  }

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

@media (min-width: 951px) {
  .fit-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fit-main {
    padding-right: clamp(24px, 3vw, 40px);
  }

  .fit-takeaways {
    padding-left: clamp(24px, 3vw, 40px);
  }
}

@media (max-width: 950px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-photo {
    max-width: 560px;
    margin-inline: auto;
  }

  .hero h1 {
    font-size: clamp(44px, 6.5vw, 64px);
  }

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

  .pathway-list li:nth-child(even) {
    padding-top: 24px;
  }

  .pathway-list li > .icon {
    width: 64px;
    height: 64px;
  }

  .cro-cost-grid {
    gap: 18px;
  }

  .cro-cost-grid article {
    padding: 22px;
  }

  .cro-cost-next {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .allergen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(37px, 9.5vw, 56px);
  }

  .hero-subtitle {
    font-size: 23px;
  }

  .hero-reassurance {
    font-size: 16px;
  }

  .hero-photo > img {
    aspect-ratio: 4 / 5;
  }

  .allergen-media,
  .allergen-picture {
    aspect-ratio: 10 / 7;
  }

  .routine-heading .display {
    font-size: 40px;
  }

  .routine-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .routine-step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 20px;
    text-align: left;
  }

  .routine-grid .icon-badge {
    grid-row: span 2;
    width: 72px;
    height: 72px;
    margin: 0;
    outline: 0;
  }

  .routine-grid h3 {
    min-height: 0;
    font-size: 17px;
  }

  .routine-grid p {
    grid-column: 2;
    font-size: 16px;
    margin: 8px 0 0;
  }

  .pathway-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .pathway-list li {
    text-align: left;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 20px;
    align-items: center;
  }

  .pathway-list li > .icon {
    width: 56px;
    height: 56px;
    padding: 0;
    margin: 0;
  }

  .pathway-list h3,
  .pathway-list p {
    grid-column: 2;
  }

  .pathway-list h3 {
    font-size: 16px;
  }

  .pathway-list p {
    font-size: 16px;
    margin-top: 8px;
  }

  .cro-cost-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .cro-life-context,
  .cro-video-group {
    margin-top: 36px;
  }

  .cro-life-context > p,
  .cro-starting-points p,
  .cro-video-intro {
    font-size: 18px;
  }

  .cro-cost-next .button {
    width: 100%;
  }

  .cro-booking-steps li {
    gap: 14px;
  }
}
