/* MyMarian landing page — layout modelled on learn.daracorp.io, in the mymarian.net palette */
:root {
  --g: #0d5c3a; --g-deep: #0a3d27; --g-ink: #13291f; --g-soft: #e8f5ed; --g-line: #d5e6dc;
  --gold: #d4af37; --gold-2: #e6c35a; --gold-deep: #b8911f; --gold-soft: #fbf2dc;
  --cream: #fbfaf6; --ink: #1c2420; --muted: #5b6660; --line: #e6e3d8; --white: #fff;
  --serif: "Playfair Display", Georgia, "Noto Sans Ethiopic", serif;
  --sans: "Plus Jakarta Sans", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(16,40,28,.06), 0 12px 32px rgba(16,40,28,.08);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.28);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='.14' stroke-width='1.2'%3E%3Cpath d='M32 6 L58 32 L32 58 L6 32 Z'/%3E%3Cpath d='M32 20 L44 32 L32 44 L20 32 Z'/%3E%3C/g%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
.mm-shell { width: min(1360px, calc(100% - 48px)); margin-inline: auto; }
.mm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mm-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.mm-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.mm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid transparent; font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s; white-space: nowrap; }
.mm-btn:hover { transform: translateY(-2px); }
.mm-btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.mm-btn--gold { background: var(--gold); color: var(--g-ink); box-shadow: 0 10px 26px rgba(212,175,55,.35); }
.mm-btn--gold:hover { background: var(--gold-2); }
.mm-btn--green { background: var(--g); color: #fff; }
.mm-btn--green:hover { background: var(--g-deep); }
.mm-btn--ghost { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; }
.mm-btn--ghost:hover { background: rgba(255,255,255,.16); }
.mm-btn--ghost-dark { border-color: var(--g-line); color: var(--g); background: #fff; }
.mm-btn--ghost-dark:hover { border-color: var(--g); }
.mm-btn--outline { border-color: var(--g); color: var(--g); background: #fff; }
.mm-btn--outline:hover { background: var(--g); color: #fff; }

/* ---------- Nav ---------- */
.mm-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.mm-nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.mm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mm-brand img { width: 36px; height: 36px; border-radius: 9px; }
.mm-brand b { display: block; font: 800 21px/1 var(--serif); color: var(--g); }
.mm-brand small { display: block; margin-top: 3px; font: 700 9.5px/1 var(--sans); letter-spacing: .16em; color: var(--gold-deep); }
.mm-brand--light b { color: #fff; }
.mm-nav__links { display: flex; gap: 26px; margin-left: auto; }
.mm-nav__links a { text-decoration: none; font-weight: 600; color: var(--g-ink); font-size: 15px; position: relative; }
.mm-nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.mm-nav__links a:hover::after { transform: scaleX(1); }
.mm-nav__cta { display: flex; gap: 10px; }
.mm-nav__menu { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 20px; color: var(--g); cursor: pointer; }

/* ---------- Hero ---------- */
.mm-hero { position: relative; color: #fff; padding: 68px 0 64px; overflow: hidden;
  background: radial-gradient(900px 480px at 90% 0%, rgba(212,175,55,.20), transparent 60%),
              radial-gradient(700px 420px at 0% 100%, rgba(63,154,106,.30), transparent 60%),
              linear-gradient(125deg, #072b1c 0%, #0a3d27 45%, #0d5c3a 100%); }
.mm-hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern); background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 60%); mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 60%); pointer-events: none; }
.mm-flag { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #078930 0 33.3%, #fcdd09 33.3% 66.6%, #da121a 66.6%); }
.mm-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.mm-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(212,175,55,.5);
  background: rgba(212,175,55,.10); color: var(--gold-2); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mm-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(212,175,55,.18); animation: mm-pulse 2s infinite; }
@keyframes mm-pulse { 50% { box-shadow: 0 0 0 9px rgba(212,175,55,0); } }
.mm-hero h1 { margin: 22px 0 0; font: 800 clamp(42px, 5.4vw, 72px)/1.02 var(--serif); letter-spacing: -.02em; }
.mm-hero h1 span { color: var(--gold-2); font-style: italic; }
.mm-lead { max-width: 600px; margin: 22px 0 28px; color: rgba(255,255,255,.84); font-size: 18px; line-height: 1.65; }
.mm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mm-search { display: grid; grid-template-columns: 1fr auto; max-width: 600px; margin-top: 24px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.mm-search:focus-within { box-shadow: 0 0 0 4px rgba(212,175,55,.45), 0 16px 40px rgba(0,0,0,.25); }
.mm-search label { display: block; }
.mm-search input { width: 100%; height: 48px; border: 0; outline: 0; padding: 0 20px; font: 500 16px var(--sans); color: var(--ink); background: transparent; border-radius: 999px; }
.mm-search button { border: 0; border-radius: 999px; padding: 0 24px; background: var(--gold); color: var(--g-ink); font: 800 15px var(--sans); cursor: pointer; }
.mm-search button:hover { background: var(--gold-2); }
.mm-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 30px 0 0; padding: 0; list-style: none; max-width: 640px; }
.mm-benefits li { display: flex; align-items: center; gap: 11px; padding: 6px 16px; border-left: 1px solid rgba(255,255,255,.18); font-weight: 700; font-size: 14px; }
.mm-benefits li:first-child { border-left: 0; padding-left: 0; }
.mm-benefits small { display: block; font-weight: 500; font-size: 12px; color: rgba(255,255,255,.65); }
.mm-ico { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 11px; background: rgba(212,175,55,.14); }
.mm-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Product tour ---------- */
.mm-tour { --x: 72%; --y: 80%; position: relative; }
.mm-tour__window { position: relative; aspect-ratio: 16 / 11; border-radius: 18px; background: #fff; color: var(--ink); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.15); transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .5s; }
.mm-tour:hover .mm-tour__window { transform: none; }
.mm-tour__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fff; }
.mm-tour__mark, .mm-mini-logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--g); color: var(--gold-2); font: 800 13px var(--serif); }
.mm-tour__name { font: 800 13px var(--serif); color: var(--g); }
.mm-tour__spacer { flex: 1; }
.mm-tour__step { font-size: 11px; font-weight: 700; color: var(--g); background: var(--g-soft); padding: 4px 10px; border-radius: 999px; }
.mm-tour__stage { position: relative; height: calc(100% - 40px); background: var(--cream); font-size: 12px; }
.mm-scene { position: absolute; inset: 0; padding: 16px; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.985); transition: opacity .55s ease, transform .55s ease, visibility 0s .55s; }
.mm-scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease, transform .55s ease; }
.mm-scene.is-leaving { opacity: 0; visibility: visible; transform: translateY(-8px) scale(.99); }
.mm-scene.is-active > * { animation: mm-rise .6s both; }
.mm-scene.is-active > *:nth-child(2) { animation-delay: .1s; }
.mm-scene.is-active > *:nth-child(3) { animation-delay: .2s; }
.mm-scene.is-active > *:nth-child(4) { animation-delay: .3s; }
@keyframes mm-rise { from { opacity: 0; transform: translateY(10px); } }
.mm-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 8px rgba(16,40,28,.05); }
.mm-kick { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--g); }
.mm-kick.gold { color: var(--gold-deep); }
.mm-mini-btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 999px; background: var(--g); color: #fff; font-weight: 700; font-size: 11px; white-space: nowrap; }
.mm-mini-btn.gold { background: var(--gold); color: var(--g-ink); }
.mm-mininav { display: flex; gap: 14px; align-items: center; padding: 0 2px 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.mm-mininav b { color: var(--g); box-shadow: 0 8px 0 -6px var(--gold); }
.mm-mininav .r { margin-left: auto; color: var(--ink); }
.mm-bar { height: 6px; border-radius: 999px; background: var(--g-soft); overflow: hidden; margin: 6px 0 4px; }
.mm-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--g), #3f9a6a); }
.is-active .mm-bar span { width: var(--p); transition: width 1.2s .4s cubic-bezier(.2,.8,.2,1); }

/* scene 1: sign in */
.mm-s-login { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.mm-s-login__story { padding: 26px 22px; color: #fff; background: var(--pattern), linear-gradient(150deg, #0d5c3a, #0a3d27); background-size: 48px 48px, auto; }
.mm-s-login__story .mm-mini-logo { width: 34px; height: 34px; font-size: 18px; margin-bottom: 18px; }
.mm-s-login__story .mm-kick { color: var(--gold-2); }
.mm-s-login__story h3 { margin: 8px 0; font: 800 22px/1.15 var(--serif); }
.mm-s-login__story p { margin: 0; color: rgba(255,255,255,.75); }
.mm-s-login__card { align-self: center; margin: 18px; padding: 18px; display: grid; gap: 10px; }
.mm-s-login__card h4 { font: 800 17px var(--serif); color: var(--g-ink); }
.mm-field { height: 34px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; padding: 0 10px; color: var(--muted); letter-spacing: .1em; }
.mm-typing span { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; color: var(--ink); letter-spacing: 0; }
.is-active .mm-typing span { animation: mm-type 1.3s steps(7) .5s forwards; }
.mm-typing i { width: 1.5px; height: 16px; background: var(--g); margin-left: 1px; animation: mm-blink .8s infinite; }
@keyframes mm-type { to { width: 7ch; } }
@keyframes mm-blink { 50% { opacity: 0; } }
.mm-s-login__card .mm-mini-btn { padding: 10px; border-radius: 9px; }

/* scene 2: dashboard */
.mm-s-dash__welcome { display: grid; grid-template-columns: 1.5fr repeat(3, .6fr); gap: 8px; align-items: center; padding: 14px; border-radius: 12px; color: #fff;
  background: var(--pattern), linear-gradient(130deg, #0a3d27, #0d5c3a); background-size: 48px 48px, auto; margin-bottom: 10px; }
.mm-s-dash__welcome h4 { font: 800 16px var(--serif); margin: 3px 0; }
.mm-s-dash__welcome p { margin: 0; color: rgba(255,255,255,.75); font-size: 10.5px; }
.mm-stat { text-align: center; font-size: 9.5px; color: rgba(255,255,255,.75); border-left: 1px solid rgba(255,255,255,.18); }
.mm-stat b { display: block; font: 800 20px var(--sans); color: #fff; }
.mm-s-dash__grid { display: grid; gap: 7px; }
.mm-course { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px 7px 7px; }
.mm-course i { display: grid; place-items: center; height: 40px; border-radius: 8px; font: 700 9.5px var(--sans); font-style: normal; }
.c-bio { background: #e0f2ea; color: #0f7a55; } .c-math { background: #e7efe2; color: #2c6e2f; } .c-chem { background: #fbf0d0; color: #9a6b00; }
.mm-course strong { font-size: 11.5px; }
.mm-course small { color: var(--muted); font-size: 10px; }

/* scene 3: lesson + AI */
.mm-s-lesson { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.mm-s-lesson aside { display: grid; align-content: start; gap: 6px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.mm-s-lesson aside h5 { margin: 0 0 4px; font-size: 10.5px; color: var(--g-ink); }
.mm-s-lesson aside span { padding: 6px 8px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.mm-s-lesson aside .on { background: var(--g-soft); color: var(--g); box-shadow: inset 3px 0 0 var(--gold); }
.mm-s-lesson__main { display: grid; gap: 8px; align-content: start; }
.mm-s-lesson__card { padding: 12px; }
.mm-s-lesson__card h4 { font: 800 15px var(--serif); margin: 3px 0 8px; color: var(--g-ink); }
.mm-enzyme { position: relative; height: 54px; border-radius: 10px; background: linear-gradient(90deg, var(--g-soft), var(--gold-soft)); overflow: hidden; }
.mm-enzyme i { position: absolute; top: 14px; width: 26px; height: 26px; border-radius: 40% 60% 50% 50%; background: var(--g); opacity: .85; }
.mm-enzyme i:nth-child(1) { left: 12%; } .mm-enzyme i:nth-child(2) { left: 30%; background: var(--gold); border-radius: 50%; width: 18px; height: 18px; top: 18px; }
.mm-enzyme i:nth-child(3) { left: 46%; background: #3f9a6a; border-radius: 50%; width: 18px; height: 18px; top: 18px; }
.is-active .mm-enzyme i:nth-child(2) { animation: mm-bind 2.4s .4s ease-in-out infinite; }
.is-active .mm-enzyme i:nth-child(3) { animation: mm-bind2 2.4s .4s ease-in-out infinite; }
@keyframes mm-bind { 50% { left: 17%; } 100% { left: 60%; } }
@keyframes mm-bind2 { 50% { left: 21%; } 100% { left: 78%; } }
.mm-chat { padding: 10px; display: grid; gap: 7px; }
.mm-chat .q { justify-self: end; max-width: 80%; padding: 7px 10px; border-radius: 12px 12px 3px 12px; background: var(--g); color: #fff; font-weight: 600; }
.mm-chat .a { max-width: 92%; padding: 8px 10px; border-radius: 12px 12px 12px 3px; background: var(--gold-soft); color: var(--ink); line-height: 1.45; }
.mm-chat .a b { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2px; }
.is-active .mm-chat .a { animation: mm-rise .5s 1.1s both; }

/* scene 4: exam */
.mm-s-exam__body { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 6px 4px; }
.mm-ring { --p: 0; position: relative; width: 140px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 76%, transparent 77% 100%), conic-gradient(var(--g) calc(var(--p) * 1%), var(--g-soft) 0); }
.mm-ring b { font: 800 30px var(--sans); color: var(--g); }
.mm-ring small { color: var(--muted); font-size: 10px; font-weight: 600; }
.mm-s-exam__info h4 { font: 800 17px var(--serif); margin: 4px 0 10px; color: var(--g-ink); }
.mm-passbar { position: relative; height: 10px; border-radius: 999px; background: var(--g-soft); margin-bottom: 20px; }
.mm-passbar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--g), #3f9a6a); }
.is-active .mm-passbar span { width: var(--p); transition: width 1.3s .4s cubic-bezier(.2,.8,.2,1); }
.mm-passbar em { position: absolute; left: var(--m); top: -4px; bottom: -4px; width: 2px; background: #da121a; font-style: normal; }
.mm-passbar em::after { content: "50% pass"; position: absolute; top: 18px; left: -18px; font-size: 9px; font-weight: 700; color: #b42318; white-space: nowrap; }
.mm-s-exam__info ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; color: var(--muted); }
.mm-s-exam__info ul b { color: var(--ink); }

/* scene 5: telegram report */
.mm-s-report { display: grid; place-items: center; background: linear-gradient(160deg, #dfeee5, #f3ecd6); }
.mm-tg { width: min(330px, 92%); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 16px 40px rgba(16,40,28,.18); }
.mm-tg__head { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; background: #229ed9; color: #fff; }
.mm-tg__head small { opacity: .8; }
.mm-tg__msg { margin: 12px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #eef6ee; line-height: 1.5; }
.mm-tg__msg strong { display: block; margin-bottom: 4px; color: var(--g-ink); font-size: 13px; }
.mm-tg__msg p { margin: 2px 0; }
.mm-tg__msg .tip { margin-top: 6px; color: var(--g); font-weight: 700; }
.mm-tg__msg small { display: block; text-align: right; color: #6a9a7a; font-size: 9.5px; }

/* scene 6: prize */
.mm-s-prize { display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--gold-soft), var(--cream) 70%); }
.mm-medal { font-size: 54px; filter: drop-shadow(0 10px 18px rgba(184,145,31,.35)); }
.is-active .mm-medal { animation: mm-pop .7s .2s both; }
@keyframes mm-pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } 70% { transform: scale(1.12); } }
.mm-s-prize h4 { font: 800 22px var(--serif); color: var(--g-ink); }
.mm-s-prize p { margin: 0 0 6px; color: var(--muted); }
.mm-confetti i { position: absolute; top: -10px; width: 7px; height: 12px; border-radius: 2px; opacity: 0; }
.is-active .mm-confetti i { animation: mm-fall 2.6s ease-in infinite; }
.mm-confetti i:nth-child(3n) { background: #078930; } .mm-confetti i:nth-child(3n+1) { background: #fcdd09; } .mm-confetti i:nth-child(3n+2) { background: #da121a; }
.mm-confetti i:nth-child(1){left:8%;animation-delay:.1s}.mm-confetti i:nth-child(2){left:16%;animation-delay:.9s}.mm-confetti i:nth-child(3){left:25%;animation-delay:.4s}
.mm-confetti i:nth-child(4){left:34%;animation-delay:1.3s}.mm-confetti i:nth-child(5){left:43%;animation-delay:.2s}.mm-confetti i:nth-child(6){left:52%;animation-delay:1s}
.mm-confetti i:nth-child(7){left:61%;animation-delay:.6s}.mm-confetti i:nth-child(8){left:70%;animation-delay:1.5s}.mm-confetti i:nth-child(9){left:78%;animation-delay:.3s}
.mm-confetti i:nth-child(10){left:86%;animation-delay:1.1s}.mm-confetti i:nth-child(11){left:93%;animation-delay:.7s}.mm-confetti i:nth-child(12){left:4%;animation-delay:1.8s}
@keyframes mm-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(320px) rotate(540deg); } }

/* cursor */
.mm-tour__cursor { position: absolute; left: var(--x); top: var(--y); width: 20px; z-index: 5; transition: left .9s cubic-bezier(.4,0,.2,1), top .9s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.mm-tour__cursor svg { width: 20px; fill: var(--g-ink); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.mm-tour__ring { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; z-index: 4; pointer-events: none; }
.mm-tour.is-clicking .mm-tour__ring { animation: mm-ping .7s ease-out; }
@keyframes mm-ping { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }
.mm-tour__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; }
.mm-tour__status { font-weight: 700; color: #fff; }
.mm-tour__dots { display: flex; gap: 8px; }
.mm-tour__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: transform .2s, background .2s; }
.mm-tour__dots button[aria-current="true"] { background: var(--gold); transform: scale(1.35); }
.mm-tour__live { justify-self: end; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- Section heads ---------- */
.mm-sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.mm-sec-head--center { justify-content: center; text-align: center; }
.mm-kicker { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--g); }
.mm-kicker.gold { color: var(--gold-2); }
.mm-sec-head h2, .mm-exams h2, .mm-cta h2 { font: 800 clamp(30px, 3.6vw, 46px)/1.1 var(--serif); letter-spacing: -.015em; color: var(--g-ink); }
.mm-sec-head p:not(.mm-kicker) { max-width: 640px; margin: 12px 0 0; color: var(--muted); font-size: 16.5px; }
.mm-link { flex: 0 0 auto; color: var(--g); font-weight: 800; text-decoration: none; }
.mm-link:hover { text-decoration: underline; }

/* ---------- Catalog ---------- */
.mm-catalog { padding: 76px 0 30px; }
.mm-filters { display: flex; gap: 9px; margin: 28px 0 24px; overflow-x: auto; padding-bottom: 6px; }
.mm-chip { flex: 0 0 auto; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--g-line); background: #fff; color: var(--g-ink); font: 700 14.5px var(--sans); cursor: pointer; transition: all .18s; }
.mm-chip:hover { border-color: var(--g); color: var(--g); }
.mm-chip[aria-pressed="true"] { background: var(--g); border-color: var(--g); color: #fff; box-shadow: 0 8px 18px rgba(13,92,58,.22); }
.mm-chip span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 7px; padding: 0 6px; border-radius: 999px; background: var(--g-soft); color: var(--g); font-size: 11px; }
.mm-chip[aria-pressed="true"] span { background: rgba(255,255,255,.18); color: #fff; }
.mm-chip--subject { border-style: dashed; }
.mm-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mm-card { display: flex; flex-direction: column; min-height: 330px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; animation: mm-rise .5s both; }
.mm-card:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(16,40,28,.08), 0 22px 44px rgba(16,40,28,.15); }
.mm-card__img { aspect-ratio: 16 / 9; background: var(--g-soft) center / cover no-repeat; }
.mm-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.mm-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.mm-tag { padding: 4px 10px; border-radius: 999px; background: var(--g-soft); color: var(--g); font-size: 11.5px; font-weight: 800; }
.mm-code { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.mm-card h3 { font: 700 20px/1.25 var(--serif); color: var(--g-ink); }
.mm-card p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-card__go { margin-top: auto; padding-top: 14px; color: var(--g); font-weight: 800; font-size: 14px; }
.mm-card:hover .mm-card__go { color: var(--gold-deep); }
.mm-card--skel { background: linear-gradient(100deg, #fff 30%, #f2efe6 50%, #fff 70%); background-size: 300% 100%; animation: mm-shimmer 1.3s infinite; }
@keyframes mm-shimmer { to { background-position: -100% 0; } }
.mm-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 18px; background: #fff; }
.mm-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Features ---------- */
.mm-features { margin-top: 60px; padding: 80px 0; background: #fff; border-block: 1px solid var(--line); }
.mm-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.mm-feat-grid article { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--cream); transition: transform .2s, box-shadow .2s, border-color .2s; }
.mm-feat-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--g-line); }
.mm-fi { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--g-soft); font-size: 24px; margin-bottom: 14px; }
.mm-feat-grid h3 { font: 700 20px var(--serif); color: var(--g-ink); }
.mm-feat-grid p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Grade 12 ---------- */
.mm-exams { padding: 80px 0 40px; }
.mm-exams__card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 52px; border-radius: 28px; color: #fff; overflow: hidden; position: relative;
  background: var(--pattern), radial-gradient(600px 300px at 100% 0%, rgba(212,175,55,.25), transparent 60%), linear-gradient(135deg, #0a3d27, #0d5c3a); background-size: 64px 64px, auto, auto; }
.mm-exams h2 { color: #fff; }
.mm-ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.mm-ticks li { position: relative; padding-left: 32px; color: rgba(255,255,255,.88); font-size: 16px; }
.mm-ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--g-ink); font-weight: 900; font-size: 12px; }
.mm-exams__visual { display: grid; justify-items: center; gap: 18px; }
.mm-ring.big { width: 220px; background: radial-gradient(closest-side, #0b4a30 76%, transparent 77% 100%), conic-gradient(var(--gold) 78%, rgba(255,255,255,.15) 0); }
.mm-ring.big b { color: #fff; font-size: 46px; }
.mm-ring.big small { color: rgba(255,255,255,.7); font-size: 13px; }
.mm-exams__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mm-exams__chips span { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-weight: 700; font-size: 13px; }

/* ---------- CTA ---------- */
.mm-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 40px 0 90px; padding: 44px; border-radius: 24px;
  background: linear-gradient(120deg, var(--gold-soft), #f4f8f1); border: 1px solid #efe3bf; }
.mm-cta h2 { font-size: clamp(26px, 2.8vw, 36px); }
.mm-cta p { margin: 10px 0 0; color: var(--muted); font-size: 16.5px; max-width: 620px; }
.mm-cta p b { color: var(--g); }
.mm-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.mm-footer { color: rgba(255,255,255,.78); background: var(--pattern), #072b1c; background-size: 64px 64px; border-top: 4px solid var(--gold); }
.mm-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.mm-footer p { margin: 14px 0; max-width: 380px; }
.mm-footer h4 { margin-bottom: 14px; font: 700 13px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.mm-footer__grid > div > a:not(.mm-btn):not(.mm-brand) { display: block; margin: 8px 0; text-decoration: none; }
.mm-footer__grid a:not(.mm-btn):hover { color: #fff; }
.mm-footer__base { display: flex; justify-content: space-between; padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .mm-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1020px) {
  .mm-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .mm-tour { max-width: 640px; }
  .mm-tour__window { transform: none; }
  .mm-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .mm-exams__card { grid-template-columns: 1fr; padding: 36px; }
  .mm-footer__grid { grid-template-columns: 1fr 1fr; }
  .mm-nav__links { display: none; }
  .mm-nav__cta { margin-left: auto; }
}
@media (max-width: 760px) {
  .mm-shell { width: calc(100% - 32px); }
  .mm-nav__inner { height: 64px; gap: 12px; }
  .mm-nav__cta .mm-btn--ghost-dark { display: none; }
  .mm-nav__cta { margin-left: auto; }
  .mm-nav.is-open .mm-nav__links { display: grid; position: absolute; top: 64px; left: 0; right: 0; padding: 16px 20px; gap: 14px; background: #fff; border-bottom: 1px solid var(--line); }
  .mm-nav__menu { display: block; margin-left: 0; }
  .mm-hero { padding: 44px 0 52px; }
  .mm-lead { font-size: 16.5px; }
  .mm-hero__actions .mm-btn { flex: 1 1 auto; }
  .mm-search { border-radius: 18px; grid-template-columns: 1fr; gap: 6px; }
  .mm-search button { height: 46px; border-radius: 14px; }
  .mm-benefits { grid-template-columns: 1fr; gap: 12px; }
  .mm-benefits li { border-left: 0; padding: 0; }
  .mm-tour__window { aspect-ratio: 4 / 4.8; }
  .mm-tour__stage { font-size: 11px; }
  .mm-s-login { grid-template-columns: 1fr; }
  .mm-s-login__story { padding: 16px; } .mm-s-login__story h3 { font-size: 18px; }
  .mm-s-dash__welcome { grid-template-columns: repeat(3, 1fr); } .mm-s-dash__welcome > div:first-child { grid-column: 1 / -1; }
  .mm-s-lesson { grid-template-columns: 1fr; } .mm-s-lesson aside { display: none; }
  .mm-s-exam__body { grid-template-columns: 1fr; justify-items: center; } .mm-ring { width: 110px; }
  .mm-tour__live { display: none; } .mm-tour__foot { grid-template-columns: 1fr auto; }
  .mm-sec-head { flex-direction: column; align-items: start; }
  .mm-cards { grid-template-columns: 1fr; }
  .mm-card { min-height: 0; }
  .mm-feat-grid { grid-template-columns: 1fr; }
  .mm-exams__card { padding: 28px 22px; border-radius: 22px; }
  .mm-cta { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .mm-cta__actions .mm-btn { flex: 1; }
  .mm-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .mm-footer__base { flex-direction: column; gap: 6px; }
}
@media (min-width: 761px) and (max-width: 1180px) { .mm-cards { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
