/* Home service programs — grid layout desktop, snap carousel mobile */
/* Colors: see mm-colors.css (loaded globally via base.html.twig) */

/* ===== Home page spacing system ===== */
.home-page {
  --home-gap: 1.75rem;
  --home-card-pad-y: 1.25rem;
  --home-card-pad-x: 1.15rem;
  --home-inner-gap: 1.15rem;
  --home-icon-gap: 0.75rem;
  --home-text-gap: 0.2rem;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .home-page {
    --home-gap: 2rem;
    --home-card-pad-y: 1.35rem;
    --home-card-pad-x: 1.25rem;
    --home-inner-gap: 1.25rem;
  }
}

.home-page > .home-section {
  margin-top: var(--home-gap);
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* First section: top gap matches intro bottom gap */
.home-page > .home-section--first.svc-programs {
  margin-top: var(--svc-intro-gap, var(--home-gap));
}

.home-page > .home-stats.home-section,
.home-page > .home-section--last {
  margin-top: var(--home-gap);
  margin-bottom: var(--home-gap);
}

/* ===================================================
   SERVICE PROGRAM CARDS
   =================================================== */

/* Equal space above title and below subtitle (into tabs/cards) */
.svc-programs {
  --svc-intro-gap: var(--home-gap);
}

.svc-programs__intro {
  margin: 0 0 var(--svc-intro-gap);
  padding: 0;
  text-align: center;
}

.svc-programs__intro-title {
  margin: 0 0 0.35rem;
  font-family: var(--mm-font, "Montserrat", sans-serif);
  font-size: var(--mm-heading-size);
  font-weight: var(--mm-heading-weight);
  line-height: var(--mm-heading-line);
  letter-spacing: -0.01em;
}

.svc-programs__intro-lead,
.svc-programs__intro-major,
.svc-programs__intro-tail {
  color: #000000;
}

.svc-programs__intro-menus {
  color: var(--mm-orange);
}

.svc-programs__intro-sub {
  margin: 0;
  color: var(--mm-lead-color, #5f5f5f);
  font-family: var(--mm-font, "Montserrat", sans-serif);
  font-size: var(--mm-lead-size, 0.95rem);
  font-weight: var(--mm-lead-weight, 500);
  line-height: var(--mm-lead-line, 1.5);
}

.svc-programs__row {
  width: 100%;
  margin: 0;
}

.svc-programs__slide {
  min-width: 0;
  scroll-margin-top: 6rem;
}

/* ---- Base card ---- */
.svc-card {
  --svc-color: var(--svc-rod);
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 1.2rem;
  color: #000;
  background: var(--svc-color);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

/* Card service colors (SVG path paints the curved colour edge) */
.svc-card--rod {
  --svc-color: var(--svc-rod);
  background: var(--svc-rod);
}

.svc-card--ndn {
  --svc-color: var(--svc-ndn);
  background: var(--svc-ndn);
}

.svc-card--sld {
  --svc-color: var(--svc-sld);
  background: var(--svc-sld);
}

/* ---- Mobile: full-bleed background image ---- */
.svc-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.svc-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--svc-color);
}

/* ---- Desktop active: full-bleed photo + curved colour overlay ---- */
.svc-card__wave-wrap {
  display: none; /* desktop only */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

/* Photo under the colour shape — fill strip height, align to right edge */
.svc-card__wave-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 48%;
  height: 100%;
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
}

.svc-card--rod .svc-card__wave-img,
.svc-card--ndn .svc-card__wave-img,
.svc-card--sld .svc-card__wave-img {
  background-size: auto 100%;
  background-position: right center;
}

/* Full-card SVG — path solid to 52%, round bulge to 58% (photo ~45%) */
.svc-card__wave-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ---- Content (active + mobile) ---- */
.svc-card__main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  container-type: inline-size;
  container-name: svc-main;
}

.svc-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: auto;
  max-width: 100%;
  padding: 1.5rem;
  padding-bottom: 0;
  overflow: hidden;
}

.svc-card__icon,
.svc-card__labels,
.svc-card__badge,
.svc-card__program,
.svc-card__meta,
.svc-card__badge-pill {
  display: none;
}

.svc-card__headline {
  display: inline-grid;
  grid-auto-flow: row;
  justify-items: stretch;
  gap: 0.05em;
  margin: 0;
  width: max-content;
  max-width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.15rem, 0.88rem + 0.9vw, 1.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.svc-card__headline--logo {
  text-transform: none;
  line-height: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.svc-card__logo {
  display: block;
  /* Mild crop of transparent PNG pad — keep size controlled */
  width: 112%;
  max-width: none;
  height: auto;
  max-height: 5.25rem;
  margin-left: -4%;
  object-fit: contain;
  object-position: left center;
}

/* NDN / SLD logos are wider — don't crop (ROD unchanged) */
.svc-card--ndn .svc-card__logo,
.svc-card--sld .svc-card__logo {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  max-height: 5.5rem;
}

/*
 * Active / mobile text titles: one orange line.
 * ROD + SLD share one size; NDN ("Neighborhood Dinner Night", longest) gets its own
 * width-fitted size below so it stays on one line without shrinking the others.
 */
.svc-card__main .svc-card__headline:not(.svc-card__headline--logo),
.svc-programs__slide.is-active .svc-card__headline:not(.svc-card__headline--logo) {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.25em;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.1rem, 6.2cqi, 1.75rem);
  letter-spacing: 0;
}

/* NDN: longest title — own smaller size so it stays on one line */
.svc-card--ndn .svc-card__main .svc-card__headline:not(.svc-card__headline--logo) {
  font-size: clamp(0.85rem, 5.6cqi, 1.6rem);
}

.svc-card__headline-primary,
.svc-card__headline-secondary {
  display: block;
  white-space: nowrap;
}

.svc-card__headline-primary {
  justify-self: start;
  text-align: left;
  color: var(--mm-orange);
}

.svc-card__headline-secondary {
  width: 100%;
  text-align: center;
  color: #fff;
}

.svc-card__main .svc-card__headline-primary,
.svc-card__main .svc-card__headline-secondary {
  width: auto;
  max-width: 100%;
  text-align: center;
  color: var(--mm-orange);
}

.svc-card__desc {
  max-width: 100%;
  margin: 0;
  margin-inline: auto;
  color: #000;
  font-size: clamp(0.72rem, 0.64rem + 0.25vw, 0.84rem);
  line-height: 1.35;
  white-space: nowrap;
  text-align: center;
}

.svc-card__form {
  width: 100%;
  max-width: 100%;
  margin-top: 0.15rem;
  padding: 0.95rem 1rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

/* Access-code panel: same Find-your-menu fills as mobile OrderTypeTabs.
   Fills are opaque, so drop the frosted blur (no visible effect, costs a GPU pass). */
.svc-card--rod .svc-card__form,
.svc-card--ndn .svc-card__form,
.svc-card--sld .svc-card__form {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.svc-card--rod .svc-card__form {
  background: var(--svc-rod-find);
}

.svc-card--ndn .svc-card__form {
  background: var(--svc-ndn-find);
}

.svc-card--sld .svc-card__form {
  background: var(--svc-sld-find);
}

.svc-card__form-label {
  display: block;
  margin-bottom: 0.55rem;
  color: #000;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.svc-card__input-row {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.svc-card__input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 0 !important;
  border-radius: 999px !important;
  color: #172019;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 550;
  box-shadow: none !important;
}

.svc-card__input::placeholder {
  color: #9a9a9a;
}

.svc-card__input:focus {
  border: 0 !important;
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.35) !important;
  outline: none;
}

.svc-card__input-row:focus-within {
  border: 0;
  box-shadow: none;
}

.svc-card__go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  width: auto;
  height: 44px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  color: #1a1a1a !important;
  background: var(--mm-orange) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.svc-card__go:hover,
.svc-card__go:focus-visible {
  color: #1a1a1a !important;
  background: var(--mm-orange) !important;
  filter: brightness(1.08);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.svc-card__secure {
  margin-top: 0.65rem;
  color: #000;
  font-size: clamp(0.65rem, 0.58rem + 0.25vw, 0.72rem);
  white-space: nowrap;
}

.svc-card__secure .fa-lock {
  margin-right: 0.3rem;
  font-size: 0.66rem;
}

.svc-card__find-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding: 0;
  border: 0;
  color: #000;
  background: none;
  font-size: clamp(0.65rem, 0.58rem + 0.25vw, 0.72rem);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.svc-card__find-link .fa-search {
  font-size: 1.15em;
  line-height: 1;
  text-decoration: none;
}

.svc-card__find-link:hover,
.svc-card__find-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Find Access Code popup */
.access-finder .modal-content {
  border-radius: 1.1rem;
  overflow: hidden;
}

.access-finder__header {
  align-items: flex-start;
  border-bottom: 0;
  color: #fff;
  background: var(--mm-green);
}

.access-finder__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.access-finder__program {
  font-size: 0.8rem;
  opacity: 0.9;
}

.access-finder__intro {
  color: #555;
  font-size: 0.85rem;
}

.access-finder__label {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.access-finder .form-select {
  min-height: 44px;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  text-overflow: ellipsis;
}

.access-finder__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--mm-green);
  border-radius: 0.75rem;
  background: rgba(55, 137, 6, 0.08);
}

.access-finder__result-label {
  color: #444;
  font-size: 0.8rem;
}

.access-finder__code {
  color: var(--mm-green);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.access-finder__cancel,
.access-finder__use {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.access-finder__cancel {
  border: 1px solid #ccc;
  color: #333;
  background: #fff;
}

.access-finder__use,
.access-finder__use:hover,
.access-finder__use:focus-visible,
.access-finder__use:disabled {
  border: 0;
  color: #1a1a1a;
  background: var(--mm-orange);
}

.access-finder__use:hover,
.access-finder__use:focus-visible {
  filter: brightness(1.06);
}

/* How It Works / Signup — round icon + label (no split pill) */
.svc-card__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  width: 100%;
  margin: 0.55rem 0 0;
  padding: 0;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  color: var(--mm-ink, #1a1a1a);
  font-family: var(--mm-font, "Montserrat", sans-serif);
  font-weight: 600;
  font-size: clamp(0.68rem, 0.6rem + 0.2vw, 0.82rem);
  line-height: 1.1;
  transition: color 0.15s ease;
}

.svc-card__link:hover,
.svc-card__link:focus-visible {
  color: var(--mm-orange-bright, #ff9f17);
  text-decoration: none;
}

.svc-card__link-icn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  min-height: 0;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(26, 26, 26, 0.85);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.svc-card__link:hover .svc-card__link-icn,
.svc-card__link:focus-visible .svc-card__link-icn {
  border-color: var(--mm-orange-bright, #ff9f17);
  background: rgba(0, 0, 0, 0.06);
}

.svc-card__link-icn img {
  display: block;
  height: 24px;
  width: auto;
  filter: brightness(0);
  transition: filter 0.15s ease;
}

.svc-card__link:hover .svc-card__link-icn img,
.svc-card__link:focus-visible .svc-card__link-icn img {
  filter: brightness(0) saturate(100%) invert(71%) sepia(48%) saturate(2879%) hue-rotate(360deg) brightness(101%) contrast(101%);
}

/* Active card (coloured panel) — dark icon circles + labels */
.svc-card__main .svc-card__link {
  color: var(--mm-ink, #1a1a1a);
}

.svc-card__main .svc-card__link-icn {
  border-color: rgba(26, 26, 26, 0.85);
  background: transparent;
}

.svc-card__main .svc-card__link-icn img {
  filter: brightness(0);
}

.svc-card__main .svc-card__link:hover,
.svc-card__main .svc-card__link:focus-visible {
  color: var(--mm-orange-bright, #ff9f17);
}

.svc-card__main .svc-card__link:hover .svc-card__link-icn,
.svc-card__main .svc-card__link:focus-visible .svc-card__link-icn {
  border-color: var(--mm-orange-bright, #ff9f17);
  background: rgba(0, 0, 0, 0.06);
}

.svc-card__main .svc-card__link:hover .svc-card__link-icn img,
.svc-card__main .svc-card__link:focus-visible .svc-card__link-icn img {
  filter: brightness(0) saturate(100%) invert(71%) sepia(48%) saturate(2879%) hue-rotate(360deg) brightness(101%) contrast(101%);
}

.svc-card__link-label {
  flex: 1 1 auto;
  display: block;
  min-width: 0;
  padding: 0;
  text-align: left;
  white-space: nowrap;
}

/* ---- Side card (inactive desktop): white card, image top, text below ---- */
.svc-card__side {
  display: none;
}

.svc-card__side-media {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  max-width: none;
  min-height: 8.5rem;
  overflow: hidden;
  border-radius: 0 1.1rem 1.1rem 0;
  align-self: stretch;
}

.svc-card__side-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8.5rem;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.svc-card__side-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.95rem 1rem 1rem 1.1rem;
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  background: #fff;
}

.svc-card__side-badge,
.svc-card__side-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.28rem 0.7rem;
  border-radius: 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.svc-card__side-sticker--rod,
.svc-card--rod .svc-card__side-badge {
  background: var(--svc-rod);
  color: #fff;
}

.svc-card__side-sticker--ndn,
.svc-card--ndn .svc-card__side-badge {
  background: var(--svc-ndn);
  color: var(--mm-ink);
}

.svc-card__side-sticker--sld,
.svc-card--sld .svc-card__side-badge {
  background: var(--svc-sld);
  color: var(--mm-ink);
}

.svc-card__side-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--mm-ink);
}

.svc-card__side-title.svc-card__headline {
  font-size: clamp(0.88rem, 0.78rem + 0.3vw, 1.05rem);
}

.svc-card__side-title.svc-card__headline .svc-card__headline-primary {
  color: var(--mm-orange);
}

.svc-card__side-title.svc-card__headline .svc-card__headline-secondary {
  color: #fff;
}

.svc-card__side-title--logo {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.svc-card__side-logo {
  display: block;
  width: 112%;
  max-width: none;
  height: auto;
  max-height: 3.25rem;
  margin-left: -4%;
  object-fit: contain;
  object-position: left center;
}

.svc-card--ndn .svc-card__side-logo,
.svc-card--sld .svc-card__side-logo {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  max-height: 3.25rem;
}

.svc-card__side-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #555;
}

.svc-card__side-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mm-ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.svc-card__side-link i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.svc-card__side-link:hover i {
  transform: translateX(3px);
}

.svc-card__activate {
  display: none;
}

.svc-programs__tabs {
  display: none;
}

/* ===================================================
   DESKTOP LAYOUT (>= 992px)
   =================================================== */

/* ===================================================
   DESKTOP LAYOUT (>= 992px)
   =================================================== */
@media (min-width: 992px) {

  /* Grid: active card left 65%, two side cards stacked right 35% */
  .svc-programs__row {
    display: grid;
    grid-template-columns: 65fr 35fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
  }

  .svc-programs__slide.is-active {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
  }

  .svc-programs__slide.is-side-top {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
  }

  .svc-programs__slide.is-side-bottom {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
  }

  /* Active card: same height as both side decorative cards */
  .svc-programs__slide.is-active .svc-card {
    height: 100%;
    min-height: 0;
  }

  /* Hide mobile bg/overlay, show wave image */
  .svc-programs__slide.is-active .svc-card__bg,
  .svc-programs__slide.is-active .svc-card__overlay {
    display: none;
  }

  .svc-programs__slide.is-active .svc-card__wave-wrap {
    display: block;
  }

  /* Active content: keep form inside green curve (~52%); avoid right-edge clip */
  .svc-programs__slide.is-active .svc-card__main {
    position: relative;
    z-index: 3;
    width: 54%;
    padding: 1rem 1.1rem 1rem 1.15rem;
    height: auto;
    flex: 0 0 auto;
    overflow: hidden;
    gap: 0.5rem;
  }

  .svc-programs__slide.is-active .svc-card__content {
    width: auto;
    padding: 0;
    gap: 0.45rem;
  }

  /* Enter Access Code panel — space above (after subtitle) and below (before links) */
  .svc-programs__slide.is-active .svc-card__form {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .svc-programs__slide.is-active .svc-card__links {
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
    gap: 0.55rem 0.65rem;
  }

  .svc-programs__slide.is-active .svc-card__logo {
    width: 112%;
    max-width: none;
    margin-left: -4%;
    height: auto;
    max-height: 5.25rem;
  }

  .svc-programs__slide.is-active .svc-card--ndn .svc-card__logo,
  .svc-programs__slide.is-active .svc-card--sld .svc-card__logo {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    max-height: 5.5rem;
  }

  .svc-programs__slide.is-active .svc-card__link-icn {
    width: 2.35rem;
    height: 2.35rem;
    min-height: 0;
  }

  /* Count variants */
  .svc-programs__row[data-svc-count="2"] {
    grid-template-rows: 1fr;
  }
  .svc-programs__row[data-svc-count="2"] .svc-programs__slide.is-active { grid-row: 1; }
  .svc-programs__row[data-svc-count="2"] .svc-programs__slide:not(.is-active) { grid-column: 2; grid-row: 1; }
  .svc-programs__row[data-svc-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .svc-programs__row[data-svc-count="1"] .svc-programs__slide { grid-column: 1; grid-row: 1; }

  /* ---- Side (inactive) cards: same curved colour (~60%) + photo as active ---- */
  .svc-programs__slide:not(.is-active) .svc-card {
    height: 100%;
    min-height: 0;
    color: #000;
    border: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }

  .svc-programs__slide:not(.is-active) .svc-card--rod {
    background: var(--svc-rod);
  }

  .svc-programs__slide:not(.is-active) .svc-card--ndn {
    background: var(--svc-ndn);
  }

  .svc-programs__slide:not(.is-active) .svc-card--sld {
    background: var(--svc-sld);
  }

  .svc-programs__slide:not(.is-active):hover .svc-card {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
  }

  /* Hide flat bg/overlay; show curved wave (same as active) */
  .svc-programs__slide:not(.is-active) .svc-card__bg,
  .svc-programs__slide:not(.is-active) .svc-card__overlay {
    display: none;
  }

  .svc-programs__slide:not(.is-active) .svc-card__wave-wrap {
    display: block;
  }

  /* Hide active form content */
  .svc-programs__slide:not(.is-active) .svc-card__main {
    display: none;
  }

  /* Side copy sits inside the curved colour zone (~52%) */
  .svc-programs__slide:not(.is-active) .svc-card__side {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    z-index: 3;
    width: 54%;
    max-width: 54%;
    height: 100%;
    overflow: hidden;
    background: transparent;
  }

  .svc-programs__slide:not(.is-active) .svc-card__side-media {
    display: none;
  }

  .svc-programs__slide:not(.is-active) .svc-card__side-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.85rem 0.55rem 0.85rem 1rem;
    box-sizing: border-box;
    background: transparent;
    color: #000;
    text-align: left;
  }

  .svc-programs__slide:not(.is-active) .svc-card__side-sticker {
    align-self: flex-start;
    flex: 0 0 auto;
    margin: 0;
    background: rgba(255, 255, 255, 0.22);
    color: #000;
    box-shadow: none;
  }

  .svc-programs__slide:not(.is-active) .svc-card--ndn .svc-card__side-sticker,
  .svc-programs__slide:not(.is-active) .svc-card--sld .svc-card__side-sticker {
    color: #000;
  }

  .svc-programs__slide:not(.is-active) .svc-card__side-title.svc-card__headline {
    font-size: clamp(0.92rem, 0.8rem + 0.35vw, 1.12rem);
    width: auto;
    max-width: 100%;
    margin: 0;
    align-self: flex-start;
  }

  .svc-programs__slide:not(.is-active) .svc-card__side-title.svc-card__headline .svc-card__headline-primary {
    color: var(--mm-orange);
  }

  .svc-programs__slide:not(.is-active) .svc-card__side-title.svc-card__headline .svc-card__headline-secondary {
    color: #fff;
  }

  .svc-programs__slide:not(.is-active) .svc-card__side-title--logo {
    margin: 0;
    width: 100%;
    display: block;
    line-height: 0;
    overflow: hidden;
  }

  .svc-programs__slide:not(.is-active) .svc-card__side-logo {
    width: 112%;
    max-width: none;
    margin-left: -4%;
    height: auto;
    max-height: 3.25rem;
  }

  .svc-programs__slide:not(.is-active) .svc-card--ndn .svc-card__side-logo,
  .svc-programs__slide:not(.is-active) .svc-card--sld .svc-card__side-logo {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .svc-programs__slide:not(.is-active) .svc-card__side-desc {
    color: #000;
    margin: 0;
    text-align: left;
  }

  .svc-programs__slide:not(.is-active) .svc-card__side-link {
    color: #000;
    margin-top: 0.15rem;
    padding-top: 0;
    align-self: flex-start;
  }

  /* Soft hover only — no zoom crop */
  .svc-programs__slide:not(.is-active):hover .svc-card__wave-img {
    transform: none;
  }

  .svc-programs__slide:not(.is-active) .svc-card__wave-img {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* Clickable overlay button */
  .svc-programs__slide:not(.is-active) .svc-card__activate {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    color: transparent;
    background: transparent;
    cursor: pointer;
  }

  .svc-programs__slide:not(.is-active) .svc-card__activate:focus-visible {
    outline: 3px solid var(--svc-color);
    outline-offset: -4px;
  }
}

/* Mobile/tablet: named ROD / NDN / SLD tabs, no horizontal scroll. */
@media (max-width: 991.98px) {
  .svc-programs {
    overflow: visible;
  }

  /* Keep intro top/bottom gap equal (do not shrink bottom) */
  .svc-programs__intro {
    margin-bottom: var(--svc-intro-gap);
  }

  .svc-programs__tabs {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 var(--home-gap);
  }

  .svc-programs__tab {
    appearance: none;
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.5rem;
    margin: 0;
    padding: 0.45rem 0.7rem;
    border: 1px solid #e4e0d8;
    border-radius: 999px;
    background: #fff;
    color: #4a4a4a;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  }

  .svc-programs__tab.is-active {
    color: #fff;
    border-color: transparent;
  }

  .svc-programs__tabs[data-active="rod"] .svc-programs__tab.is-active,
  .svc-programs__tab--rod.is-active {
    background: var(--svc-rod);
  }

  .svc-programs__tabs[data-active="ndn"] .svc-programs__tab.is-active,
  .svc-programs__tab--ndn.is-active {
    background: var(--svc-ndn);
  }

  .svc-programs__tabs[data-active="sld"] .svc-programs__tab.is-active,
  .svc-programs__tab--sld.is-active {
    background: var(--svc-sld);
  }

  .svc-programs__row {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .svc-programs__slide {
    display: none;
    width: 100%;
    min-width: 0;
  }

  .svc-programs__slide.is-active {
    display: block;
  }

  /* Same active-tab look as desktop: colour left, wave image right */
  .svc-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    padding: 0;
  }

  .svc-card__side,
  .svc-card__overlay,
  .svc-card__bg {
    display: none !important;
  }

  .svc-card__wave-wrap {
    display: block !important;
  }

  .svc-card__main {
    display: flex;
    position: relative;
    z-index: 3;
    width: 50%;
    padding: 1.2rem 0.85rem 1.15rem 1.1rem;
    gap: 0.65rem;
  }

  .svc-card__logo {
    width: 112%;
    max-width: none;
    margin-left: -4%;
    max-height: 4.5rem;
  }

  .svc-card--ndn .svc-card__logo,
  .svc-card--sld .svc-card__logo {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    max-height: 4.75rem;
  }

  .svc-card__content {
    display: flex !important;
    width: auto;
    padding: 0;
  }

  .svc-card__form {
    width: 100%;
  }

  .svc-card__links {
    margin: 0.15rem 0 0;
    padding: 0;
  }

  .svc-card__desc {
    font-size: clamp(0.72rem, 0.65rem + 0.4vw, 0.85rem);
  }
}

@keyframes svc-mobile-photo {
  from {
    opacity: 0;
    transform: translateX(1.1rem) translateY(0.35rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .svc-card__main {
    width: 50%;
    padding-right: 12px;
  }
}

@media (max-width: 767.98px) {
  .svc-card {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.95rem 1rem;
    border-radius: 1rem;
  }

  .svc-card__wave-wrap,
  .svc-card__bg,
  .svc-card__overlay {
    display: none !important;
  }

  .svc-card__main {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0;
    gap: 0.75rem;
  }

  .svc-card__content {
    width: 100%;
    padding: 0;
  }

  .svc-card__form {
    width: 100%;
  }

  .svc-card__links {
    width: 100%;
    margin: 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    gap: 0.65rem 0.55rem;
  }

  .svc-card__link {
    font-size: 0.72rem;
  }

  .svc-card__link-icn {
    width: 2.15rem;
    height: 2.15rem;
    min-height: 0;
  }

  .svc-card__link-icn img {
    height: 22px;
  }

  .svc-card__desc,
  .svc-card__secure {
    white-space: normal;
  }

  .svc-card__program {
    font-size: 0.82rem;
  }
}

@media (max-width: 479.98px) {
  .svc-card__form {
    width: 100%;
  }

  .svc-card__links {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .svc-card__link {
    font-size: 0.78rem;
  }

  .svc-card__link-label {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card__bg,
  .svc-card__go,
  .svc-programs__tab {
    transition: none;
    animation: none;
  }
}
/* Benefits strip — between app CTA and Featured Restaurants
   Design: tall white bar, large mint icon circles, title+desc centered,
   short vertical dividers between columns (desktop). */
.home-benefits__card {
  background: var(--mm-white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--mm-border, #ebe9e6);
}

.home-benefits__grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  grid-template-columns: 1fr;
}

.home-benefits__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  min-width: 0;
  text-align: center;
  padding: 0.15rem 0.75rem;
}

.home-benefits__item::after {
  display: none;
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: #e5e5e5;
}

.home-benefits__icon {
  position: relative;
  flex-shrink: 0;
  width: var(--mm-section-icon, 3.5rem);
  height: var(--mm-section-icon, 3.5rem);
  border-radius: 50%;
  display: block;
  background: var(--mm-green-soft);
  color: var(--mm-green-900);
  font-size: var(--mm-section-glyph, 1.35rem);
}

.home-benefits__icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  font-size: inherit;
  text-align: center;
}

.home-benefits__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  width: 100%;
}

.home-benefits__title {
  color: var(--mm-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-benefits__desc {
  color: #6b6b6b;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  max-width: 14rem;
}

@media (min-width: 576px) {
  .home-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0;
  }

  .home-benefits__item:not(:nth-child(2n))::after {
    display: block;
  }
}

@media (min-width: 992px) {
  .home-benefits__grid,
  .home-benefits__grid[data-benefit-count="5"] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0;
  }

  .home-benefits__grid[data-benefit-count="5"] > .home-benefits__item {
    flex: unset;
    max-width: none;
  }

  .home-benefits__item::after {
    display: none;
  }

  .home-benefits__item:not(:nth-child(3n))::after {
    display: block;
  }
}

@media (min-width: 1200px) {
  .home-benefits__card {
    padding: 1rem 0.85rem;
  }

  .home-benefits__grid,
  .home-benefits__grid[data-benefit-count="5"] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .home-benefits__grid[data-benefit-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-benefits__grid[data-benefit-count="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-benefits__item {
    padding: 0.1rem 0.7rem;
  }

  .home-benefits__item::after,
  .home-benefits__item:not(:nth-child(3n))::after {
    display: none;
  }

  .home-benefits__item:not(:last-child)::after {
    display: block;
  }

  .home-benefits__icon {
    width: var(--mm-section-icon, 3.5rem);
    height: var(--mm-section-icon, 3.5rem);
    font-size: var(--mm-section-glyph, 1.35rem);
  }

  .home-benefits__title {
    font-size: 0.92rem;
  }

  .home-benefits__desc {
    font-size: 0.74rem;
    max-width: 11.5rem;
  }
}

/* How It Works — numbered badges + square icons + arrows */
.home-how__card {
  background: var(--mm-white);
  border: 1px solid var(--mm-cream);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  padding: clamp(1.35rem, 2vw, 1.85rem) clamp(1.15rem, 2vw, 1.75rem);
  border-radius: 1.15rem;
}

.home-how__title {
  margin: 0 0 1.35rem;
  color: var(--mm-ink);
  font-family: var(--mm-font, "Montserrat", sans-serif);
  font-size: var(--mm-heading-size, clamp(1.28rem, 1.18rem + 0.45vw, 1.55rem));
  font-weight: var(--mm-heading-weight, 800);
  line-height: var(--mm-heading-line, 1.25);
  letter-spacing: -0.01em;
  text-align: center;
}

.home-how__major {
  color: var(--mm-green);
}

.home-how__menus {
  color: var(--mm-orange);
}

.home-how__steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

.home-how__step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 0;
}

.home-how__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--mm-section-icon, 3.5rem);
  height: var(--mm-section-icon, 3.5rem);
  border-radius: 0.65rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: var(--mm-green-900, var(--mm-green));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.home-how__icon i {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: var(--mm-section-glyph, 1.35rem);
}

.home-how__text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.home-how__step-title {
  color: var(--mm-ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.home-how__step-desc {
  color: #6a6a6a;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.home-how__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  color: #c5c5c5;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 0.2rem;
}

.home-how__arrow i {
  margin: 0 !important;
  line-height: 1 !important;
}

@media (min-width: 992px) {
  .home-how__steps {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
  }

  .home-how__step {
    gap: 0.55rem;
  }

  .home-how__arrow {
    display: flex;
  }

  .home-how__title {
    margin-bottom: 1.6rem;
  }

  .home-how__icon {
    width: var(--mm-section-icon, 3.5rem);
    height: var(--mm-section-icon, 3.5rem);
    border-radius: 0.7rem;
  }

  .home-how__icon i {
    font-size: var(--mm-section-glyph, 1.35rem);
  }

  .home-how__step-title {
    font-size: 0.95rem;
  }

  .home-how__step-desc {
    font-size: 0.78rem;
  }
}

@media (min-width: 1200px) {
  .home-how__steps {
    gap: 0.65rem;
  }

  .home-how__icon {
    width: var(--mm-section-icon, 3.5rem);
    height: var(--mm-section-icon, 3.5rem);
  }

  .home-how__icon i {
    font-size: var(--mm-section-glyph, 1.35rem);
  }
}

/* Organization CTA banner — bottom of homepage */
.home-orgcta__banner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--mm-green-deep);
  color: #fff;
  border-radius: 1.15rem;
  padding: 0.75rem 1.15rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 76, 4, 0.35);
}

.home-orgcta__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.home-orgcta__art {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* City image left — in flow so copy centers between image and partner */
.home-orgcta__art--building {
  position: static;
  width: 5.75rem;
  flex-shrink: 0;
  align-self: center;
}

.home-orgcta__art--shop {
  width: 5rem;
  flex-shrink: 0;
}

.home-orgcta__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.home-orgcta__art--shop .home-orgcta__img {
  object-position: center;
}

.home-orgcta__svg {
  display: block;
  width: 100%;
  height: auto;
}

.home-orgcta__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-orgcta__title {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.home-orgcta__brand {
  color: var(--mm-orange);
}

.home-orgcta__brandMajor {
  color: var(--mm-green);
}

.home-orgcta__lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.5rem !important;
}

.home-orgcta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.home-orgcta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.home-orgcta__btn--primary {
  background: var(--mm-orange);
  background: linear-gradient(180deg, var(--mm-orange-bright) 0%, var(--mm-orange-dark) 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.home-orgcta__btn--primary:hover,
.home-orgcta__btn--primary:focus-visible {
  background: var(--mm-orange-dark);
  background: linear-gradient(180deg, var(--mm-orange-dark) 0%, var(--mm-orange-bright) 100%);
  border: 0;
  color: #fff;
  filter: brightness(1.06);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
  text-decoration: none;
}

.home-orgcta__btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.home-orgcta__btn--ghost:hover,
.home-orgcta__btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.home-orgcta__divider {
  display: none;
  width: 1px;
  align-self: center;
  height: 64%;
  min-height: 3.5rem;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.home-orgcta__partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.home-orgcta__partner-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 0 1 auto;
  text-align: left;
}

.home-orgcta__partner-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.home-orgcta__partner-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.home-orgcta__partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  color: var(--mm-orange);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}

.home-orgcta__partner-link:hover,
.home-orgcta__partner-link:focus-visible {
  color: #ffb04a;
}

.home-orgcta__partner-link i {
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .home-orgcta__art--building {
    width: 6.75rem;
  }

  .home-orgcta__art--shop {
    width: 5.75rem;
  }
}

@media (min-width: 992px) {
  .home-orgcta__banner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    padding: 0.7rem 1.35rem;
  }

  .home-orgcta__main {
    flex: 1 1 58%;
    justify-content: flex-start;
    align-items: center;
    min-height: 0;
  }

  .home-orgcta__copy {
    flex: 1 1 auto;
    max-width: none;
    text-align: center;
  }

  .home-orgcta__actions {
    justify-content: center;
  }

  .home-orgcta__art--building {
    width: 7.25rem;
  }

  .home-orgcta__art--shop {
    width: 6.25rem;
  }

  .home-orgcta__divider {
    display: block;
  }

  .home-orgcta__partner {
    position: relative;
    flex: 0 1 34%;
    max-width: 24rem;
    min-height: 0;
    padding-top: 0;
    padding-right: 0.25rem;
    border-top: 0;
    align-self: center;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .home-orgcta__art--building {
    display: none;
  }

  .home-orgcta__title {
    white-space: normal;
    font-size: 1.1rem;
  }

  .home-orgcta__actions {
    width: 100%;
    justify-content: center;
  }

  .home-orgcta__btn {
    flex: 1 1 auto;
  }
}

/* StrykerFox technology partner banner — matched to design mock */
.home-techpartner {
  --sf-navy: #0a1f44;
  --sf-fox: #2d8cff;
}

.home-techpartner__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.15rem 1.25rem; /* ~18–20px vertical breathing room */
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(95deg, #ffffff 0%, #f8fbff 42%, #eef6ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 1rem; /* ~16px like mock */
  box-shadow: 0 10px 28px rgba(10, 31, 68, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

/* Soft blue wave behind CTA (right side) */
.home-techpartner__card::before {
  content: "";
  position: absolute;
  right: -3.5rem;
  top: -55%;
  width: 16rem;
  height: 210%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 35% 55%, rgba(69, 183, 255, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 65% 40%, rgba(45, 140, 255, 0.14) 0%, transparent 72%);
  transform: rotate(-8deg);
}

.home-techpartner__card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(232, 244, 255, 0.45) 55%, rgba(220, 239, 255, 0.65) 100%);
}

.home-techpartner__card:hover,
.home-techpartner__card:focus-visible {
  text-decoration: none;
  color: inherit;
  border-color: rgba(45, 140, 255, 0.28);
  box-shadow: 0 14px 32px rgba(10, 31, 68, 0.12);
  transform: translateY(-1px);
}

.home-techpartner__brand,
.home-techpartner__copy,
.home-techpartner__divider,
.home-techpartner__cta {
  position: relative;
  z-index: 1;
}

.home-techpartner__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 0 0 auto;
}

.home-techpartner__logo {
  display: block;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  object-fit: contain;
}

.home-techpartner__brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.home-techpartner__eyebrow {
  color: #94a3b8;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.2;
}

.home-techpartner__name {
  color: var(--sf-navy);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.home-techpartner__name-fox {
  color: var(--sf-fox);
}

.home-techpartner__divider {
  display: none;
  width: 1px;
  height: 2.75rem;
  align-self: center;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.home-techpartner__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem; /* ~6px between title and services */
  min-width: 0;
  flex: 1 1 auto;
}

.home-techpartner__title {
  display: block;
  margin: 0;
  color: var(--sf-navy);
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.home-techpartner__services {
  display: block;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.home-techpartner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  align-self: flex-start;
  height: 2.75rem;
  padding: 0 1.35rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: var(--sf-navy);
  border-radius: 999px;
  flex: 0 0 auto;
  transition: background-color 0.2s ease;
}

.home-techpartner__cta i {
  font-size: 0.7rem;
  transform: rotate(45deg);
}

.home-techpartner__card:hover .home-techpartner__cta,
.home-techpartner__card:focus-visible .home-techpartner__cta {
  background: #132a55;
}

@media (min-width: 768px) {
  .home-techpartner__card {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem; /* ~20–24px vertical like mock */
    border-radius: 1rem;
  }

  .home-techpartner__divider {
    display: block;
  }

  .home-techpartner__cta {
    align-self: center;
    margin-left: auto;
  }
}

@media (min-width: 992px) {
  .home-techpartner__card {
    gap: 1.75rem;
    padding: 1.35rem 1.75rem;
  }

  .home-techpartner__logo {
    width: 3.25rem;
    height: 3.25rem;
  }

  .home-techpartner__name {
    font-size: 1.3rem;
  }

  .home-techpartner__title {
    font-size: 1.1rem;
  }

  .home-techpartner__services {
    font-size: 0.85rem;
  }

  .home-techpartner__divider {
    height: 3rem;
  }

  .home-techpartner__cta {
    height: 2.85rem;
    padding: 0 1.45rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .home-techpartner__name {
    font-size: 1.15rem;
  }

  .home-techpartner__services {
    font-size: 0.75rem;
  }

  .home-techpartner__cta {
    width: 100%;
  }
}

/* Featured restaurants — reference-style cards (no rating / time / min order) */
.home-featured {
  padding: 0;
}

.home-featured__card {
  display: flex;
  flex-direction: column;
  gap: var(--home-inner-gap, 1.15rem);
  background: var(--mm-white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  padding: var(--home-card-pad-y, 1.25rem) var(--home-card-pad-x, 1.15rem);
  border: 1px solid var(--mm-cream);
  border-radius: 1rem;
}

.home-featured__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-featured__intro {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.home-featured__heading {
  min-width: 0;
}

.home-featured__title {
  font-family: var(--mm-font, "Montserrat", sans-serif);
  font-size: var(--mm-heading-size);
  font-weight: var(--mm-heading-weight);
  line-height: var(--mm-heading-line);
  letter-spacing: -0.01em;
  color: #000;
}

.home-featured__title-featured {
  color: #000;
}

.home-featured__title .mm-brand__menus {
  color: #000;
  font-weight: inherit;
  letter-spacing: inherit;
}

.home-featured__subtitle {
  margin-top: 0.2rem;
  color: var(--mm-lead-color, #5f5f5f);
  font-family: var(--mm-font, "Montserrat", sans-serif);
  font-size: var(--mm-lead-size, 0.95rem);
  font-weight: var(--mm-lead-weight, 500);
  line-height: var(--mm-lead-line, 1.5);
}

.home-featured__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-left: auto;
}

.home-featured__city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #5f5f5f;
  font-size: 0.9rem;
  font-weight: 600;
}

.home-featured__city .fa-map-marker-alt {
  color: var(--mm-orange);
  font-size: 0.85rem;
}
 
.home-featured__viewall {
  color: var(--mm-orange);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-featured__viewall:hover {
  color: var(--mm-orange-dark);
  text-decoration: underline;
}

.home-featured__carousel-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.home-featured__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 0.25rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
}

.home-featured__track::-webkit-scrollbar {
  display: none;
}

/* Arrows: half on card, half outside — no extra gutter width */
.home-featured__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: var(--mm-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease;
  font-size: 0.85rem;
}

.home-featured__arrow--prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.home-featured__arrow--next {
  right: 0;
  transform: translate(50%, -50%);
}

/* Mobile: exactly 1 full card (no half peek) */
.home-featured__item {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 100%;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 1rem;
  box-shadow: none;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-featured__item:hover {
    transform: translateY(-4px);
    border-color: #ddd;
    box-shadow: none;
  }

  .home-featured__item:hover .home-featured__logo {
    transform: scale(1.04);
  }
}

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

  .home-featured__item:hover {
    transform: none;
  }

  .home-featured__item:hover .home-featured__logo {
    transform: none;
  }
}

/* Tablet: exactly 2 full cards */
@media (min-width: 768px) {
  .home-featured__item {
    flex-basis: calc((100% - 1rem) / 2);
    width: calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }
}

/* Desktop: exactly 4 full cards */
@media (min-width: 992px) {
  .home-featured__item {
    flex-basis: calc((100% - 3rem) / 4);
    width: calc((100% - 3rem) / 4);
    max-width: calc((100% - 3rem) / 4);
  }
}

.home-featured__media {
  position: relative;
  width: 100%;
  height: 7.5rem;
  flex: 0 0 7.5rem;
  overflow: hidden;
  margin-bottom: 0;
  padding: 0.85rem 0.75rem;
  background: #f7f7f7;
  border-radius: 1rem 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-featured__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}

.home-featured__logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* fill the box exactly (no ratio, no white space) */
  object-position: center;
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-featured__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: flex-start;
  padding: 0.9rem 0.75rem 0.9rem;
  min-width: 0;
  min-height: 4.75rem;
  text-align: center;
  background: #fff;
  border-radius: 0 0 1rem 1rem;
}

.home-featured__name {
  margin: 0 0 0.15rem;
  color: #2b2b2b;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.home-featured__meta {
  margin: 0;
  color: #8a8a8a;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  height: 1.3em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

@media (min-width: 768px) {
  .home-featured__media {
    height: 8rem;
    flex-basis: 8rem;
    padding: 0.95rem 0.85rem;
  }

  .home-featured__name {
    font-size: 1rem;
  }

  .home-featured__body {
    padding: 0.9rem 0.7rem 0.85rem;
    min-height: 5rem;
  }
}

@media (min-width: 1200px) {
  .home-featured__media {
    height: 8.5rem;
    flex-basis: 8.5rem;
  }
}

@media (max-width: 575.98px) {
  .home-page {
    --home-gap: 1.5rem;
    --home-card-pad-y: 1.1rem;
    --home-card-pad-x: 0.95rem;
  }

  .home-page > .home-section--first.svc-programs {
    margin-top: var(--svc-intro-gap, var(--home-gap));
  }

  .home-featured__card {
    padding: var(--home-card-pad-y) var(--home-card-pad-x);
  }

  .home-featured__subtitle {
    font-size: var(--mm-lead-size, 0.95rem);
  }

  .home-featured__actions {
    width: 100%;
    justify-content: space-between;
  }

  .home-featured__city,
  .home-featured__viewall {
    font-size: 0.82rem;
  }

  .home-featured__media {
    height: 6.5rem;
    flex-basis: 6.5rem;
    padding: 0.75rem 0.65rem;
  }

  .home-featured__body {
    padding: 0.85rem 0.75rem 0.85rem;
    min-height: 4.5rem;
  }
}

/* Mobile app CTA — same card shell size as Featured Restaurants */
.home-appcta__card {
  display: flex;
  flex-direction: column;
  gap: var(--home-inner-gap, 1.15rem);
  background: #f7f3ea;
  padding: var(--home-card-pad-y, 1.25rem) var(--home-card-pad-x, 1.15rem);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--mm-cream);
  border-radius: 1rem;
  box-sizing: border-box;
}

.home-appcta__headline {
  margin: 0 0 0.65rem;
  color: var(--mm-ink);
  font-family: var(--mm-font, "Montserrat", sans-serif);
  font-size: var(--mm-heading-size);
  font-weight: var(--mm-heading-weight);
  line-height: var(--mm-heading-line);
}

.home-appcta__headline-main {
  display: block;
}

.home-appcta__headline-tag {
  display: block;
  margin-top: 0.25rem;
  color: var(--mm-ink);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.home-appcta__headline span,
.home-appcta__headline .mm-brand__menus {
  color: var(--mm-orange);
}

.home-appcta__headline .home-appcta__headline-main,
.home-appcta__headline .home-appcta__headline-tag {
  color: var(--mm-ink);
}

.home-appcta__headline .home-appcta__headline-main .mm-brand__menus {
  color: var(--mm-orange);
}

.home-appcta__layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.home-appcta__copy {
  min-width: 0;
}

.home-appcta__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0 !important;
}

/* Plain list-item (default round bullet) per client mockup */
.home-appcta__list li {
  color: #2a2a2a;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Play + QR | phones | App Store + QR */
.home-appcta__visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  min-width: 0;
}

.home-appcta__storecol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  min-width: 0;
}

.home-appcta__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0;
}

.home-appcta__qr-img {
  display: block;
  width: 120px;
  height: 120px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.45rem;
}

.home-appcta__qr-caption {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--mm-muted, #5a5a5a);
  text-align: center;
}

.home-appcta__storebtn {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
  text-decoration: none;
  line-height: 1;
  border-radius: 0.55rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.home-appcta__storebtn:hover,
.home-appcta__storebtn:focus-visible {
  text-decoration: none;
  opacity: 0.92;
  transform: translateY(-1px);
}

.home-appcta__storebadge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  min-height: 44px;
  height: 44px;
  padding: 0 0.75rem 0 0.55rem;
  background: #000;
  color: var(--mm-white);
  border: 1px solid #3a3a3a;
  border-radius: 0.55rem;
  box-sizing: border-box;
}

.home-appcta__storeicon {
  flex: 0 0 auto;
  display: block;
  overflow: visible;
}

.home-appcta__storeicon--apple {
  width: 24px;
  height: 24px;
}

.home-appcta__storeicon--play {
  width: 24px;
  height: 24px;
}

.home-appcta__storecopy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
}

.home-appcta__storekicker {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--mm-white);
  white-space: nowrap;
}

.home-appcta__storebtn--apple .home-appcta__storekicker {
  font-size: 0.52rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.home-appcta__storebtn--play .home-appcta__storekicker {
  text-transform: uppercase;
}

.home-appcta__storename {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--mm-white);
  white-space: nowrap;
}

.home-appcta__storebtn--apple .home-appcta__storename {
  font-size: 0.98rem;
}

.home-appcta__storebtn--play,
.home-appcta__storebtn--apple {
  min-width: 0;
}

.home-appcta__phones {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 280px;
  min-height: 0;
  padding: 0;
}

/* Slim black phone bezel — refined frame, not bulky */
.home-appcta__phone {
  width: min(38%, 130px);
  padding: 2px;
  box-sizing: border-box;
  background: #111;
  border: 1px solid var(--mm-ink);
  border-radius: 1.1rem;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.12) inset,
    0 10px 22px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.home-appcta__phone-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 1.1rem;
  background: var(--mm-white);
}

.home-appcta__phone--back {
  transform: translate(18px, -8px) rotate(-4deg);
  z-index: 1;
}

.home-appcta__phone--front {
  transform: translate(-18px, 8px) rotate(3deg);
  z-index: 2;
}

/* Shared home card shell — equal radius / border on all section cards */
.home-benefits__card,
.home-featured__card,
.home-stats__card,
.home-appcta__card,
.home-pathways__card,
.home-how__card {
  border-radius: 1.15rem;
}

/* Stats — Why MajorMenus intro + metric columns */
.home-stats__card {
  background: #f3f3f3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 1.35rem 1.25rem;
  border: 1px solid #ebe8e2;
  border-radius: 1rem;
}

.home-stats__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  column-gap: 0;
  row-gap: 1.15rem;
}

.home-stats__intro {
  flex: 1 1 100%;
  min-width: 0;
  padding: 0.15rem 0.25rem 0.35rem;
  text-align: left;
}

.home-stats__heading {
  margin: 0 0 0.4rem;
  color: var(--mm-ink);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-stats__lead {
  margin: 0 0 0.75rem;
  color: var(--mm-lead-color, #5f5f5f);
  font-family: var(--mm-font, "Montserrat", sans-serif);
  font-size: var(--mm-lead-size, 0.95rem);
  font-weight: var(--mm-lead-weight, 500);
  line-height: var(--mm-lead-line, 1.5);
  max-width: 18rem;
}

.home-stats__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mm-green-800);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.home-stats__more:hover,
.home-stats__more:focus-visible {
  color: var(--mm-green-900);
  text-decoration: underline;
}

.home-stats__more i {
  font-size: 0.78rem;
}

.home-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 0;
  padding: 0.35rem 0.75rem;
}

.home-stats__icon {
  position: relative;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--mm-green-800);
  flex-shrink: 0;
  display: block;
  margin-bottom: 0.15rem;
}

.home-stats__icon i {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  font-size: 1.45rem;
  line-height: 1 !important;
  text-align: center;
}

.home-stats__item strong {
  display: block;
  color: var(--mm-green-800);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
}

.home-stats__item > span {
  display: block;
  color: #5f5f5f;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .home-stats__intro {
    flex: 1 1 100%;
  }

  .home-stats__item {
    flex: 1 1 0;
  }
}

@media (min-width: 992px) {
  .home-stats__card {
    padding: 1.5rem 1.35rem;
  }

  .home-stats__row {
    flex-wrap: nowrap;
    align-items: center;
  }

  .home-stats__intro {
    flex: 1.15 1 0;
    max-width: 17.5rem;
    padding: 0.25rem 1.25rem 0.25rem 0.5rem;
    border-right: 1px solid #d8d8d8;
  }

  .home-stats__heading {
    font-size: 1.28rem;
  }

  .home-stats__lead {
    font-size: 0.86rem;
    max-width: 15.5rem;
  }

  .home-stats__item {
    flex: 1 1 0;
    padding: 0.35rem 0.85rem;
    border-right: 1px solid #d8d8d8;
  }

  .home-stats__item:last-child {
    border-right: 0;
  }

  .home-stats__item strong {
    font-size: 1.55rem;
  }
}

@media (min-width: 1200px) {
  .home-stats__intro {
    max-width: 19rem;
    padding-right: 1.5rem;
  }

  .home-stats__heading {
    font-size: 1.35rem;
  }

  .home-stats__item strong {
    font-size: 1.65rem;
  }
}

/* Pathways */
.home-pathways__card {
  display: flex;
  flex-direction: column;
  background: #f7f3ea;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--mm-cream);
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-pathways__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.home-pathways__card--how { background: #eef6ea; }
.home-pathways__card--rest { background: #fff3e8; }
.home-pathways__card--org { background: #eef2ff; }

.home-pathways__media {
  height: 160px;
  overflow: hidden;
  background: #ddd;
}

.home-pathways__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-pathways__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.home-pathways__body strong {
  color: var(--mm-ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.home-pathways__body span {
  color: #5a5a5a;
  font-size: 0.88rem;
  line-height: 1.4;
}

.home-pathways__body em {
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-pathways__card--how em { color: #2f7d1e; }
.home-pathways__card--rest em { color: var(--mm-orange); }
.home-pathways__card--org em { color: #2563eb; }

@media (max-width: 575.98px) {
  .home-featured__card {
    padding: 1.15rem 0.9rem;
  }

  .home-stats__card {
    padding: 1.2rem 1rem;
  }

  .home-appcta__card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: var(--home-card-pad-y, 1.25rem) var(--home-card-pad-x, 1.15rem);
    overflow: hidden;
  }

  .home-appcta__headline-main {
    white-space: normal;
  }

  .home-appcta__list {
    gap: 0.55rem;
  }

  .home-appcta__list li {
    font-size: 0.88rem;
  }

  .home-appcta__layout {
    gap: 1.25rem;
    width: 100%;
  }

  .home-appcta__copy {
    width: 100%;
  }

  /* Phone: mockups, then equal-width store buttons only (QR not useful on-device) */
  .home-appcta__visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "phones phones"
      "play apple";
    gap: 1rem 0.65rem;
    width: 100%;
    align-items: stretch;
    justify-items: stretch;
  }

  .home-appcta__phones {
    grid-area: phones;
    order: 0;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    flex: none;
    justify-content: center;
    justify-self: center;
    padding: 0.15rem 0;
  }

  .home-appcta__storecol--play {
    grid-area: play;
  }

  .home-appcta__storecol--apple {
    grid-area: apple;
  }

  .home-appcta__storecol {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: stretch;
    gap: 0;
  }

  .home-appcta__qr {
    display: none;
  }

  .home-appcta__storebtn {
    display: flex;
    width: 100%;
    max-width: 100%;
  }

  .home-appcta__storebadge {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    height: 44px;
    padding: 0 0.55rem 0 0.45rem;
    gap: 0.4rem;
    box-sizing: border-box;
  }

  .home-appcta__storecopy {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .home-appcta__storekicker,
  .home-appcta__storename {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-appcta__storeicon--apple,
  .home-appcta__storeicon--play {
    width: 20px;
    height: 20px;
  }

  .home-appcta__storekicker {
    font-size: 0.5rem;
  }

  .home-appcta__storename {
    font-size: 0.8rem;
  }

  .home-appcta__storebtn--apple .home-appcta__storename {
    font-size: 0.8rem;
  }

  .home-appcta__phone {
    width: min(46%, 100px);
    border-radius: 0.9rem;
  }

  .home-appcta__phone-img {
    border-radius: 0.8rem;
    max-height: 200px;
    object-fit: cover;
    object-position: top center;
  }

  .home-appcta__phone--back {
    transform: translate(10px, -4px) rotate(-3deg);
  }

  .home-appcta__phone--front {
    transform: translate(-10px, 4px) rotate(2deg);
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .home-appcta__card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: var(--home-card-pad-y, 1.25rem) var(--home-card-pad-x, 1.15rem);
  }

  .home-appcta__layout {
    gap: 1.35rem;
    width: 100%;
  }

  .home-appcta__headline-main {
    white-space: normal;
  }

  .home-appcta__visual {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "play phones apple";
    gap: 0.85rem 1rem;
    width: 100%;
    align-items: center;
    justify-items: center;
  }

  .home-appcta__storecol--play {
    grid-area: play;
  }

  .home-appcta__phones {
    grid-area: phones;
    order: 0;
    flex: none;
    max-width: 240px;
    margin: 0;
    width: 100%;
  }

  .home-appcta__storecol--apple {
    grid-area: apple;
  }

  .home-appcta__qr {
    display: flex;
  }

  .home-appcta__qr-img {
    width: 100px;
    height: 100px;
  }

  .home-appcta__storebadge {
    width: auto;
    min-width: 0;
    padding: 0 0.7rem 0 0.55rem;
  }

  .home-appcta__phone {
    width: min(42%, 105px);
  }

  .home-appcta__phone-img {
    max-height: 210px;
    object-fit: cover;
    object-position: top center;
  }
}

@media (min-width: 992px) {
  .home-appcta__card {
    padding: var(--home-card-pad-y, 1.25rem) var(--home-card-pad-x, 1.15rem);
    max-width: none;
  }

  .home-appcta__layout {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem 2rem;
  }

  .home-appcta__copy {
    flex: 1 1 40%;
    align-self: flex-start;
    max-width: none;
    min-width: 0;
  }

  .home-appcta__visual {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-areas: "play phones apple";
    flex: 0 1 auto;
    gap: 1rem 1.5rem;
    align-items: center;
    justify-items: center;
  }

  .home-appcta__storecol--play {
    grid-area: play;
  }

  .home-appcta__phones {
    grid-area: phones;
    order: 0;
    flex: 0 1 auto;
    max-width: 280px;
  }

  .home-appcta__storecol--apple {
    grid-area: apple;
  }

  .home-appcta__storebadge {
    min-height: 44px;
    height: 44px;
    padding: 0 0.7rem 0 0.55rem;
    gap: 0.45rem;
  }

  .home-appcta__storeicon--apple,
  .home-appcta__storeicon--play {
    width: 22px;
    height: 22px;
  }

  .home-appcta__storekicker {
    font-size: 0.55rem;
  }

  .home-appcta__storename {
    font-size: 0.88rem;
  }

  .home-appcta__storebtn--apple .home-appcta__storename {
    font-size: 0.9rem;
  }

  .home-appcta__qr-img {
    width: 124px;
    height: 124px;
  }

  .home-appcta__phone {
    width: min(40%, 140px);
    padding: 2.5px;
    border-radius: 1.2rem;
  }

  .home-appcta__phone-img {
    border-radius: 1.05rem;
  }

  .home-stats__item {
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .home-appcta__headline-main {
    white-space: nowrap;
  }
}

/* App CTA copy: start level with the store buttons (they sit lower once the phones grow ≥1200px) */
@media (min-width: 1200px) {
  .home-appcta__copy {
    padding-top: 0.95rem;
  }
}
