/* =========================================================
   For mellomtrinnet (M): lyst, rundt og leikent.
   ========================================================= */

.m-hero { background: #F6F4FF; padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.m-hero__grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .m-hero__grid { grid-template-columns: 1.3fr 1fr; } }
.m-hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); line-height: 1.02; max-width: 12ch; }
.m-hero h1 span { display: block; color: var(--c-accent-dark); }

/* Leiken illustrasjon laga av former (ingen bilete av elevar) */
.m-art { position: relative; aspect-ratio: 1; max-width: 26rem; width: 100%; margin-inline: auto; }
.m-art span { position: absolute; display: block; }
.m-art__a { inset: 8% 10% 14% 6%; background: #DCD5FF; border-radius: 46% 54% 63% 37% / 42% 45% 55% 58%; }
.m-art__b { width: 34%; aspect-ratio: 1; right: 6%; top: 6%; background: var(--c-accent-dark); border-radius: 50%; }
.m-art__c { width: 26%; aspect-ratio: 1; left: 4%; bottom: 8%; background: #fff; border: 10px solid var(--c-accent-light); border-radius: 50%; }
.m-art__d { width: 40%; height: 12%; left: 30%; bottom: 30%; background: var(--c-ink-900); border-radius: 999px; transform: rotate(-18deg); }
.m-art__e { width: 14%; aspect-ratio: 1; left: 38%; top: 18%; background: #fff; border-radius: 30%; transform: rotate(18deg); box-shadow: var(--shadow); }

/* Fire steg som store, runde kort */
.m-steps { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 640px) { .m-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .m-steps { grid-template-columns: repeat(4, 1fr); } }
.m-step { counter-increment: s; padding: var(--sp-5); border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--border); }
.m-step::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 3rem; height: 3rem; margin-bottom: var(--sp-3);
  border-radius: 50%;
  background: var(--c-accent-tint);
  color: var(--c-accent-dark);
  font-family: var(--font-friendly);
  font-weight: 900;
  font-size: 1.4rem;
}
.m-step:nth-child(2)::before { background: var(--c-accent-dark); color: #fff; }
.m-step:nth-child(3)::before { background: var(--c-ink-900); color: #fff; }
.m-step:nth-child(4)::before { background: #fff; border: 3px solid var(--c-accent-dark); }
.m-step h3 { margin-bottom: var(--sp-2); font-size: 1.5rem; }
.m-step p { margin: 0; color: var(--text-muted); }

/* Boks til foreldre inne på M-sida */
.m-parents { padding: clamp(1.5rem, 1rem + 2vw, 3rem); border-radius: var(--radius-lg); background: var(--c-ink-900); color: #fff;
  --text: #fff; --text-muted: var(--c-grey-on-dark); --accent: var(--c-accent-light); --accent-ink: var(--c-ink-900); --link: var(--c-accent-light); --focus: var(--c-accent-light); --surface: var(--c-ink-800); --border: var(--c-ink-700); --accent-soft: var(--c-accent-deep); --bg-alt: var(--c-ink-800); }
.m-parents h2 { color: #fff; }

.m-hero--compact { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.m-hero--compact h1 { max-width: 18ch; }
