/* Services hero: the demo site (a cleaning company with online booking).
   Type is sized in container units so the whole demo scales with the browser frame. */
.mode-frame { container-type: inline-size; }
.mini {
  background: #F4FAF7; color: #10302A;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  font-family: var(--font);
}
.m-nav { gap: 2cqw; font-size: 1.55cqw; min-height: 0; }
.m-logo { font-weight: 800; font-size: 2.3cqw; letter-spacing: -0.02em; color: #0F766E; }
.m-links { display: flex; gap: 2.2cqw; margin-left: auto; color: #4B635D; font-weight: 600; }
.m-navbtn { padding: 0.7cqw 1.6cqw; border-radius: 999px; background: #0F766E; color: #fff; font-weight: 700; }

.m-copy { gap: 1.8cqw; align-content: center; }
.m-title {
  height: auto; background: none;
  font-size: 4.4cqw; font-weight: 800; font-stretch: 108%; line-height: 1.02; letter-spacing: -0.03em; color: #10302A;
}
.m-text { height: auto; width: auto; background: none; font-size: 1.6cqw; line-height: 1.45; color: #4B635D; max-width: 30em; }
.m-btn {
  height: auto; width: auto; justify-self: start;
  padding: 1.1cqw 2.4cqw; border-radius: 999px; background: #0F766E; color: #fff;
  font-size: 1.6cqw; font-weight: 700;
}

.m-booking {
  align-self: center;
  display: grid; gap: 1.4cqw; padding: 2.4cqw;
  border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -14px rgb(16 48 42 / 0.35);
  font-size: 1.5cqw;
}
.m-booking b { font-size: 1.9cqw; }
.m-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9cqw; }
.m-slots span { padding: 0.9cqw 0; border-radius: 8px; text-align: center; box-shadow: inset 0 0 0 1px #D5E3DE; font-weight: 600; }
.m-slots .on { background: #0F766E; color: #fff; box-shadow: none; }
.m-total { display: flex; justify-content: space-between; padding-top: 1.2cqw; border-top: 1px solid #E3ECE8; font-weight: 700; }
.m-total em { font-style: normal; font-variant-numeric: tabular-nums; }

.m-cards { min-height: 0; }
.m-cards .m-block { display: grid; gap: 0.4cqw; padding: 1.6cqw 1.8cqw; border-radius: 12px; }
.m-cards small { font-size: 1.3cqw; color: #4B635D; font-weight: 600; }
.m-cards strong { font-size: 2.1cqw; font-weight: 800; letter-spacing: -0.01em; }

/* Price text: correct everywhere except while a Fix is still "broken" */
.bug-text { display: none; color: var(--bug); }
.modes[data-mode="fix"]:not(.is-fixed) .bug-text { display: inline; }
.modes[data-mode="fix"]:not(.is-fixed) .ok-text { display: none; }

/* Extra breakage for the Fix mode */
.m-title { transition: letter-spacing 500ms var(--ease-out), font-family 0s; }
.modes[data-mode="fix"]:not(.is-fixed) .m-title { font-family: "Times New Roman", serif; letter-spacing: 0.04em; font-weight: 400; }
.modes[data-mode="fix"]:not(.is-fixed) .m-btn { width: 78%; background: #9AA5A2; }
.modes[data-mode="fix"]:not(.is-fixed) .m-booking { rotate: 3deg; translate: 0 5%; }
.modes[data-mode="fix"]:not(.is-fixed) .m-slots .on { background: #9AA5A2; }

/* Build: inner text and parts appear after their wireframe box has drawn */
@media (prefers-reduced-motion: no-preference) {
  .modes[data-mode="build"].is-playing .m-block > * { animation: wire-child 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 140ms); }
}
@keyframes wire-child { 0%, 55% { opacity: 0; } 100% { opacity: 1; } }
