.mamy-surface {
  min-height: 100vh;
  isolation: isolate;
  background: #f6f3ed;
}

.mamy-surface::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("mamy-relief-background.jpg") center / cover no-repeat;
}

.mamy-home .hero {
  background: transparent;
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.mamy-home .topbar {
  background: rgba(241, 233, 219, .9);
  border-bottom-color: rgba(110, 94, 70, .16);
}

.mamy-home .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
}

.mamy-home .hero h1 {
  color: #172d29;
  font-size: clamp(2.05rem, 4.2vw, 4rem);
  max-width: 17ch;
  text-wrap: balance;
}

.mamy-home .hero p { color: #36504a; max-width: 47ch; }
.mamy-home .hero .eyebrow { color: #234a40; background: #d4e4db; }
.hero-fan {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.28;
  isolation: isolate;
}
.hero-fan img {
  position: absolute;
  top: calc(5% + var(--distance) * 4%);
  left: calc(50% + var(--offset) * 8.4%);
  z-index: var(--layer);
  width: 24%;
  height: auto;
  transform: translateX(-50%) rotate(calc(var(--offset) * 5deg));
  border: clamp(2px, .35vw, 5px) solid #ffffffa8;
  border-radius: clamp(.5rem, 1.2vw, 1.1rem);
  box-shadow: 0 .6rem 1.4rem #29233840;
}

.mamy-home .hero .store-button { background: #203b34; }
.mamy-home .hero .store-button:hover { background: #326456; }

@media (max-width: 52rem) {
  .mamy-home .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (orientation: portrait) {
  .mamy-surface::before { background-size: 100% 100%; }
}

.mamy-home .card,
.mamy-home .shot,
.mamy-home .store-card,
.mamy-home .social-link {
  background: #ffffff32;
  border: 1px solid #fff9;
  box-shadow: none;
}
.mamy-home .card p,
.mamy-home .store-card p,
.mamy-home .section-head p,
.mamy-home .shot p { color: #49435a; }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.feature-grid .card, .parent-benefits .card { padding: .85rem 1rem; border-radius: 1rem; min-width: 0; }
.feature-grid .card {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: .25rem .55rem;
}
.app-feature-icon { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.feature-grid h3, .parent-benefits h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.feature-grid p, .parent-benefits p { margin: .25rem 0 0; font-size: .9rem; line-height: 1.45; }
.feature-grid p { grid-column: 1 / -1; }
.screen-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .8rem;
  max-width: 68rem;
  margin-inline: auto;
}
#ebeveyn .screen-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 56rem; }
.screen-gallery .shot { margin: 0; min-width: 0; padding: .55rem; border-radius: 1rem; }
.screen-gallery img { display: block; width: 100%; max-width: 10.5rem; height: auto; margin-inline: auto; border-radius: .75rem; }
.screen-gallery h3 { margin: .65rem .2rem .25rem; font-size: 1rem; }
.screen-gallery p { margin: .25rem .2rem .4rem; font-size: .89rem; line-height: 1.45; }
.parent-benefits { margin-bottom: 1.3rem; gap: .65rem; }
#ebeveyn .section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
@media (max-width: 60rem) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .feature-grid, .screen-gallery, #ebeveyn .screen-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 24rem) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

.premium-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.3rem, 4vw, 3rem);
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid #71618e55;
  border-radius: 1.6rem;
  align-items: center;
  background: radial-gradient(ellipse at top left, #c8aafa85, transparent 62%), linear-gradient(125deg, #f2e8fbc9, #fff4df60);
  box-shadow: 0 1rem 3rem #3f275317;
}
.premium-panel h2 { margin: 0; font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.055em; }
.premium-panel h3 { font-size: clamp(1.15rem, 2.7vw, 1.8rem); line-height: 1.25; }
.premium-panel p { color: #49435a; }
.premium-panel h2 span { color: #65429b; font-size: .55em; vertical-align: .23em; }
.premium-panel .premium-plan { font-size: .94rem; }
.premium-benefits { display: grid; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.premium-benefits li { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: .65rem; align-items: start; padding: .7rem; border: 1px solid #fff9; border-radius: .85rem; background: #ffffff47; }
.premium-benefits li div span { display: block; margin-top: .15rem; color: #49435a; font-size: .9rem; line-height: 1.45; }
.premium-icon { display: grid; place-items: center; aspect-ratio: 1; border-radius: .6rem; background: #efe3fc; }
.brand-icon { flex: none; width: 1.5rem; height: 1.5rem; vertical-align: middle; }
.teacher-callout { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.teacher-callout > div { flex: 1 1 28rem; }
.teacher-callout h2 { margin: 0; }
.teacher-callout p { margin-bottom: 0; }
.mamy-home .teacher-callout .button { background: #ffffff32; box-shadow: none; }
@media (max-width: 48rem) {
  .premium-panel { grid-template-columns: minmax(0, 1fr); }
}
