/* Why MedExPrep (2026). Builds on mxp-home.css (.mxh base). New pieces are .mxw-*. */
main.site-main.mxw { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }

/* ── hero ─────────────────────────────── */
.mxw-hero { position: relative; overflow: hidden; padding: 88px 0 0; color: #fff;
  background:
    radial-gradient(800px 480px at 88% 0%, rgba(59, 198, 194, .28), transparent 62%),
    radial-gradient(700px 420px at 0% 100%, rgba(59, 198, 194, .1), transparent 60%),
    linear-gradient(180deg, #0b1b33 0%, #0d2147 100%); }
.mxw-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 75%); pointer-events: none; }
.mxw-hero > .mxh-wrap { position: relative; z-index: 1; }
.mxw-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.mxw-h1 { text-wrap: balance; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; color: #fff; margin: 0; }
.mxw-h1 em { display: block; margin-top: 6px; font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.02em; color: #7fe3dd; }
.mxw-lead { margin-top: 22px !important; max-width: 580px; font-size: 18.5px; line-height: 1.65; color: rgba(255, 255, 255, .78); }
.mxw-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mxw-hero__fine { margin-top: 14px !important; font-size: 13.5px; color: rgba(255, 255, 255, .55); }

.mxw-xp { position: relative; display: grid; gap: 14px; }
.mxw-xp__q, .mxw-xp__tb { border-radius: 18px; padding: 20px; background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.mxw-xp__q { transform: rotate(-1.2deg) translateX(-14px); }
.mxw-xp__tb { transform: rotate(.8deg) translateX(18px); background: #fff; }
.mxw-xp__tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-d); background: var(--teal-bg); padding: 4px 9px; border-radius: 6px; }
.mxw-xp__q p { margin-top: 10px !important; font-size: 15px; font-weight: 600; line-height: 1.45; }
.mxw-xp__opt { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); }
.mxw-xp__opt i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.mxw-xp__opt b { margin-left: auto; display: grid; font-size: 16px; }
.mxw-xp__opt.is-bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.mxw-xp__opt.is-bad i { background: var(--bad); }
.mxw-xp__opt.is-ok { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.mxw-xp__opt.is-ok i { background: var(--ok); }
.mxw-xp__row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); opacity: 0; transform: translateY(6px); animation: mxwIn .5s ease forwards; animation-delay: calc(.4s + var(--d) * .35s); }
.mxw-xp__row b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 1px; }
.mxw-xp__ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; flex: none; }
.mxw-xp__ico--eye { background: #e0f2fe; color: #0369a1; }
.mxw-xp__ico--trap { background: #fef3c7; color: #b45309; }
.mxw-xp__ico--next { background: var(--teal-bg); color: var(--teal-d); }
.mxw-xp__audio { display: flex; align-items: center; gap: 10px; padding-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mxw-xp__audio .mxh-wave { flex: 1; width: auto; }
.mxw-xp__play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 13px; flex: none; }
@keyframes mxwIn { to { opacity: 1; transform: none; } }

.mxw-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0 !important; border-top: 1px solid rgba(255, 255, 255, .12); }
.mxw-stats > div { padding: 26px 24px 30px; border-left: 1px solid rgba(255, 255, 255, .12); }
.mxw-stats > div:first-child { border-left: 0; padding-left: 0; }
.mxw-stats dt { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.mxw-stats dd { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ── anatomy steps ────────────────────── */
.mxw-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: s; position: relative; }
.mxw-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 46px; height: 2px; background: linear-gradient(90deg, var(--teal-bg), var(--teal-l), var(--teal-bg)); }
.mxw-steps li { position: relative; text-align: center; padding: 0 6px; }
.mxw-steps__n { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.mxw-steps__i { position: relative; z-index: 1; margin: 24px auto 16px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--teal-d); font-size: 20px; border: 1px solid var(--line); box-shadow: var(--sh); }
.mxw-steps h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.mxw-steps p { margin-top: 6px !important; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ── three tutors ─────────────────────── */
.mxw-tutors { background: var(--bg); }
.mxw-tabs { display: flex; justify-content: center; gap: 6px; padding: 6px; margin: 0 auto 28px; width: max-content; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-sm); }
.mxw-tabs button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.mxw-tabs button:hover { color: var(--ink); }
.mxw-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.mxw-tabs button:focus-visible { outline: 3px solid rgba(23, 157, 153, .45); outline-offset: 2px; }
.mxw-panel { animation: mxwFade .35s ease; }
@keyframes mxwFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mxw-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-lg); overflow: hidden; }
.mxw-app__l { padding: 30px; border-right: 1px solid var(--line); }
.mxw-app__r { padding: 30px; background: linear-gradient(180deg, #fbfdfd, #f4faf9); display: grid; gap: 10px; align-content: start; }
.mxw-app__k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mxw-app__stem { margin-top: 12px !important; font-size: 16px; line-height: 1.65; color: var(--ink); }
.mxw-app__stem mark { background: #fef08a; color: inherit; padding: 1px 3px; border-radius: 3px; }
.mxw-app__ask { margin-top: 18px !important; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.mxw-app__opts { list-style: none; display: grid; gap: 8px; margin-top: 18px !important; }
.mxw-app__opts li { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); font-size: 15px; color: var(--text); }
.mxw-app__opts li i { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 700; background: var(--bg); color: var(--ink); flex: none; }
.mxw-app__opts li.is-ok { border-color: #86efac; background: #ecfdf3; color: #166534; font-weight: 600; }
.mxw-app__opts li.is-ok i { background: var(--ok); color: #fff; }
.mxw-app__h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--teal-d); margin-bottom: 4px !important; }
.mxw-card { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 3px solid #cbd5e1; }
.mxw-card b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 3px; }
.mxw-card p { font-size: 14px; line-height: 1.55; color: var(--text); }
.mxw-card--ok { border-left-color: var(--ok); }
.mxw-card--warn { border-left-color: var(--warn); }
.mxw-card--bad { border-left-color: var(--bad); margin-top: 16px; }
.mxw-listen { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.mxw-listen > span:last-child { margin-left: auto; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.mxw-heat { display: grid; gap: 10px; margin-top: 16px; }
.mxw-heat__r { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.mxw-heat__r i { height: 8px; border-radius: 6px; background: #eef2f7; position: relative; overflow: hidden; }
.mxw-heat__r i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--teal-l), var(--teal)); border-radius: 6px; }
.mxw-heat__r.is-low i::after { background: linear-gradient(90deg, #fca5a5, var(--bad)); }
.mxw-heat__r b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.mxw-heat__r.is-low b { color: var(--bad); }

/* ── compare table ────────────────────── */
.mxw-table { max-width: 940px; margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--sh); }
.mxw-table__h, .mxw-table__r { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); align-items: center; }
.mxw-table__h > span { padding: 18px 16px; font-size: 13.5px; font-weight: 700; color: var(--muted); text-align: center; }
.mxw-table__h > span.is-us { color: #fff; background: var(--ink); }
.mxw-table__r { border-top: 1px solid var(--line); align-items: stretch; }
.mxw-table__r > span { padding: 15px 16px; text-align: center; font-size: 14.5px; color: var(--text); display: flex; align-items: center; justify-content: center; }
.mxw-table__r > span:first-child, .mxw-table__h > span:first-child { justify-content: flex-start; text-align: left; font-weight: 600; color: var(--ink); padding-left: 24px; }
.mxw-table__r > span.is-us { background: color-mix(in srgb, var(--teal) 6%, #fff); }
.mxw-y, .mxw-n { display: inline-grid !important; place-items: center; width: 24px; height: 24px; padding: 0 !important; border-radius: 50%; font-size: 14px; line-height: 1; }
.mxw-y .mxh-i, .mxw-n .mxh-i { width: 14px; height: 14px; stroke-width: 2.6; }
.mxw-y { color: var(--teal-d); background: var(--teal-bg); }
.is-us .mxw-y { color: #fff; background: var(--teal); box-shadow: 0 4px 10px -4px rgba(23, 157, 153, .7); }
.mxw-n { color: #c3ccd8; background: none; }
.mxw-n .mxh-i { width: 12px; height: 12px; }
.mxw-table__price > span { font-weight: 600; }
.mxw-table__price > span.is-us b { font-size: 18px; color: var(--teal-d); margin-right: 4px; }

/* ── audio ────────────────────────────── */
.mxw-audio { background: radial-gradient(700px 400px at 100% 0%, rgba(59, 198, 194, .2), transparent 60%), var(--navy); color: #fff; }
.mxw-audio__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.mxw-uses { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px !important; }
.mxw-uses li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; font-weight: 600; }
.mxw-uses .mxh-i { color: #7fe3dd; font-size: 17px; }
.mxw-math { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 18px; padding: 32px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.mxw-math > div { text-align: center; }
.mxw-math b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.mxw-math span { display: block; margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.mxw-math > i { font-style: normal; font-size: 26px; color: rgba(255, 255, 255, .4); }
.mxw-math > i:nth-of-type(2) { grid-column: 1 / -1; transform: rotate(90deg); }
.mxw-math .is-big { grid-column: 1 / -1; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--teal), #20b3ad); }
.mxw-math .is-big b { font-size: 48px; }
.mxw-math .is-big span { color: rgba(255, 255, 255, .9); }

/* ── loop ─────────────────────────────── */
.mxw-cycle { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mxw-cycle li { position: relative; padding: 24px 20px; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-sm); }
.mxw-cycle li:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; border-top: 2px solid #c3cfdc; border-right: 2px solid #c3cfdc; transform: translateY(-50%) rotate(45deg); z-index: 1; }
.mxw-cycle__i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-bg); color: var(--teal-d); font-size: 19px; margin-bottom: 14px; }
.mxw-cycle li:last-child { background: var(--ink); border-color: var(--ink); }
.mxw-cycle li:last-child h3 { color: #fff; }
.mxw-cycle li:last-child p { color: rgba(255, 255, 255, .7); }
.mxw-cycle li:last-child .mxw-cycle__i { background: rgba(59, 198, 194, .18); color: #7fe3dd; }
.mxw-cycle h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.mxw-cycle p { margin-top: 6px !important; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ── quality ──────────────────────────── */
.mxw-quality { background: var(--bg); }
.mxw-quality__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.mxw-quality .mxh-head { position: sticky; top: 110px; }
.mxw-note { margin-top: 20px !important; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); }
.mxw-pipe { list-style: none; display: grid; gap: 0; position: relative; }
.mxw-pipe::before { content: ""; position: absolute; left: 25px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--teal-l), var(--teal-bg)); }
.mxw-pipe li { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 14px 0; }
.mxw-pipe__i { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--teal-d); font-size: 21px; box-shadow: var(--sh-sm); flex: none; }
.mxw-pipe h3 { margin-top: 4px !important; font-size: 17px; font-weight: 700; color: var(--ink); }
.mxw-pipe p { margin-top: 4px !important; font-size: 15px; color: var(--muted); }

/* ── institutions ─────────────────────── */
.mxw-inst { padding-top: 0; }
.mxw-inst__box { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 56px; border-radius: 28px; color: #fff;
  background: radial-gradient(600px 360px at 100% 100%, rgba(59, 198, 194, .22), transparent 60%), linear-gradient(150deg, #0d2147, #0b1b33); }
.mxw-inst__list { list-style: none; display: grid; gap: 12px; }
.mxw-inst__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.mxw-inst__list .mxh-i { font-size: 20px; color: #7fe3dd; margin-top: 2px; }
.mxw-inst__list b { display: block; font-size: 15.5px; }
.mxw-inst__list span { display: block; margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .65); }

/* reveal */
.mxw [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.mxw [data-rv].is-in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────── */
@media (max-width: 1024px) {
  .mxw-steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .mxw-steps::before { display: none; }
  .mxw-cycle { grid-template-columns: repeat(2, 1fr); }
  .mxw-cycle li::after { display: none; }
  .mxw-cycle li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .mxw-hero { padding-top: 56px; }
  .mxw-hero__grid, .mxw-audio__grid, .mxw-quality__grid, .mxw-inst__box { grid-template-columns: 1fr; gap: 36px; }
  .mxw-quality .mxh-head { position: static; }
  .mxw-xp__q, .mxw-xp__tb { transform: none; }
  .mxw-stats { grid-template-columns: repeat(2, 1fr); }
  .mxw-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .mxw-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .mxw-app { grid-template-columns: 1fr; }
  .mxw-app__l { border-right: 0; border-bottom: 1px solid var(--line); }
  .mxw-inst__box { padding: 36px 26px; }
}
@media (max-width: 640px) {
  .mxw-h1 { font-size: 36px; }
  .mxw-lead { font-size: 16.5px; }
  .mxw-ctas .mxh-btn { width: 100%; }
  .mxw-stats > div { padding: 18px 14px 20px; }
  .mxw-stats > div:nth-child(odd) { padding-left: 0; }
  .mxw-stats dt { font-size: 26px; }
  .mxw-steps { grid-template-columns: repeat(2, 1fr); }
  .mxw-tabs { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .mxw-app__l, .mxw-app__r { padding: 20px; }
  .mxw-table { border-radius: 16px; }
  .mxw-table__h, .mxw-table__r { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr); }
  .mxw-table__h > span:nth-child(3), .mxw-table__r > span:nth-child(3) { display: none; }
  .mxw-table__r > span, .mxw-table__h > span { padding: 12px 8px; font-size: 13px; }
  .mxw-table__r > span:first-child, .mxw-table__h > span:first-child { padding-left: 14px; }
  .mxw-cycle { grid-template-columns: 1fr; }
  .mxw-math { padding: 22px; }
  .mxw-math b { font-size: 26px; }
  .mxw-math .is-big b { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { .mxw *, .mxw [data-rv] { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; } }
