/* Medcue Glass · marketing pages (home, students, inside, try). Port of prototype pages-core (marketing home block), pages-home and pages-public-a. Shared marketing chrome lives in glass.css. */
@layer glass.page {
/* ── Marketing home ─────────────────────────────────────────────── */
:where(.mc-glass) .h-hero { padding: 72px 0 0; text-align: center; }
:where(.mc-glass) .h-hero .g-appicon { margin: 0 auto 26px; --s: 92px; }
:where(.mc-glass) .h-hero h1 { max-width: 14ch; margin: 0 auto; }
:where(.mc-glass) .h-hero .g-m-lede { max-width: 40ch; margin: 18px auto 0; }
:where(.mc-glass) .h-ctas { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
:where(.mc-glass) .h-window { margin: 56px auto 0; max-width: 1180px; padding: 0 22px; }
:where(.mc-glass) .h-window-in { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 .5px var(--g-sep), 0 40px 80px -30px rgb(0 0 0 / .35); background: var(--g-bg); aspect-ratio: 1440 / 900; }
:where(.mc-glass) .h-window-in iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }
:where(.mc-glass) .h-cap { text-align: center; margin-top: 14px; font-size: 14px; color: var(--g-ink-2); }
:where(.mc-glass) .h-highlights { overflow: hidden; }
:where(.mc-glass) .h-hl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
:where(.mc-glass) .h-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 980px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px max(22px, calc((100vw - 980px) / 2)) 8px; scrollbar-width: none; }
:where(.mc-glass) .h-track::-webkit-scrollbar { display: none; }
:where(.mc-glass) .h-slide { scroll-snap-align: center; position: relative; height: min(560px, 62vw); min-height: 360px; border-radius: 28px; overflow: hidden; background: #000; color: #F5F5F7; }
:where(.mc-glass) .h-slide .h-slide-media { position: absolute; inset: 0; display: grid; place-items: center; }
:where(.mc-glass) .h-slide .h-slide-media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
:where(.mc-glass) .h-slide .h-slide-media.contain img { object-fit: contain; }
:where(.mc-glass) .h-slide p { position: absolute; left: 34px; top: 30px; right: 34px; max-width: 26ch; font: 600 clamp(21px, 2.2vw, 28px)/1.14 var(--g-font-display); letter-spacing: .007em; text-shadow: 0 1px 12px rgb(0 0 0 / .45); }
:where(.mc-glass) .h-slide.light { background: var(--g-bg); color: var(--g-ink); }
:where(.mc-glass) .h-slide.light p { text-shadow: none; }
:where(.mc-glass) .h-dots { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 26px; }
:where(.mc-glass) .h-dots .dots { display: flex; gap: 0; padding: 10px 14px; border-radius: 999px; background: var(--g-fill-3); }
:where(.mc-glass) .h-dots .dots button { position: relative; width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; transition: width var(--g-d-move) var(--g-spring); }
:where(.mc-glass) .h-dots .dots button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 4px; translate: -50% -50%; background: var(--g-label-3); transition: width var(--g-d-move) var(--g-spring); }
:where(.mc-glass) .h-dots .dots button[aria-current="true"] { width: 44px; }
:where(.mc-glass) .h-dots .dots button[aria-current="true"]::before { width: 44px; background: var(--g-ink); }
:where(.mc-glass) .h-dots .play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--g-fill-3); color: var(--g-ink); display: grid; place-items: center; cursor: pointer; }
:where(.mc-glass) .h-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
:where(.mc-glass) .h-bento .g-tile { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
:where(.mc-glass) .h-bento .c2 { grid-column: span 2; } :where(.mc-glass) .h-bento .c3 { grid-column: span 3; } :where(.mc-glass) .h-bento .c4 { grid-column: span 4; }
:where(.mc-glass) .h-big { font: 600 clamp(56px, 6vw, 80px)/1 var(--g-font-display); letter-spacing: -.015em; color: var(--g-ink); }
:where(.mc-glass) .h-tile-img { margin: -36px -36px 0; height: 190px; background: #000; }
:where(.mc-glass) .h-tile-img img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
:where(.mc-glass) .h-honest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 44px; }
:where(.mc-glass) .h-honest h3 { margin-bottom: 8px; }
:where(.mc-glass) .h-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: .5px solid var(--g-sep); }
:where(.mc-glass) .h-compare > div { padding: 34px 28px 0; text-align: center; }
:where(.mc-glass) .h-compare > div + div { border-left: .5px solid var(--g-sep); }
:where(.mc-glass) .h-compare ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 0; }
:where(.mc-glass) .h-compare li { padding: 14px 0; border-top: .5px solid var(--g-sep); font-size: 15px; color: var(--g-ink); }
:where(.mc-glass) .h-compare li.no { color: var(--g-ink-2); }
:where(.mc-glass) .h-compare li.no::before { content: "Not included: "; }
:where(.mc-glass) .h-price { font: 600 40px/1.1 var(--g-font-display); margin: 14px 0 4px; }
:where(.mc-glass) .h-final { text-align: center; }
@media (max-width: 833px) {
  :where(.mc-glass) .h-hero { padding-top: 48px; }
  :where(.mc-glass) .h-bento { grid-template-columns: minmax(0, 1fr); }
  :where(.mc-glass) .h-bento :is(.c2, .c3, .c4) { grid-column: auto; }
  :where(.mc-glass) .h-honest { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  :where(.mc-glass) .h-compare { grid-template-columns: minmax(0, 1fr); }
  :where(.mc-glass) .h-compare > div + div { border-left: 0; border-top: .5px solid var(--g-sep); margin-top: 26px; }
  :where(.mc-glass) .h-slide p { left: 22px; top: 22px; }
}
}

/* MEDCUE GLASS · Home (Round 3). Loaded after pages-core.css; overrides its old h-* rules. */
@layer glass.page {

/* ── Hero ───────────────────────────────────────────────────────── */
:where(.mc-glass) .h-hero { padding: 64px 0 0; text-align: center; }
:where(.mc-glass) .h-hero-text { max-width: 820px; }
:where(.mc-glass) .h-hero h1 { max-width: 14ch; margin: 0 auto; }
:where(.mc-glass) .h-hero .g-m-lede { max-width: 44ch; margin: 18px auto 0; }
:where(.mc-glass) .h-ctas { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }

/* Device scene. Static state first (no JS, reduced motion): a framed window with its caption.
   With motion.js the [data-hero-zoom] contract in motion.css pins it and drives --p. */
:where(.mc-glass) .h-scene { margin-top: 56px; --m-hero-top: 48px; }
:where(.mc-glass) .h-device { position: relative; width: min(1180px, 92vw); margin-inline: auto; aspect-ratio: 16 / 10; background: var(--g-bg-plain); }
:where(html:not(.m-on)) :where(.mc-glass) .h-device { border-radius: var(--g-r-device); box-shadow: var(--g-pop-shadow); }
:where(.mc-glass) .h-device-in { position: relative; isolation: isolate; overflow: hidden; background: var(--g-bg-plain); }
:where(.mc-glass) .h-device iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; background: var(--g-bg-plain); }
:where(.mc-glass) .h-cap { text-align: center; margin: 16px auto 0; padding: 0 22px; font: 400 15px/1.35 var(--g-font); color: var(--g-ink-2); max-width: 52ch; }
:where(html.m-on) :where(.mc-glass) .h-scene { margin-top: 40px; }

/* Tablet: the reader's two-column layout rendered at 1100px and scaled to the window (home.js fit()). */
@media (min-width: 701px) and (max-width: 1024px) {
  :where(.mc-glass) .h-device, :where(html.m-on) :where(.mc-glass) .h-hero .h-scene .h-device { aspect-ratio: 4 / 3; }
  :where(.mc-glass) .h-device-in { position: absolute; inset: 0; border-radius: inherit; }
}

/* Phone: the screen's own phone layout, framed, no pin. */
@media (max-width: 700px) {
  :where(.mc-glass) .h-hero { padding-top: 40px; }
  :where(.mc-glass) .h-hero .g-m-lede { max-width: 30ch; }
  :where(.mc-glass) .h-hero .h-scene { margin-top: 36px; height: auto; }
  :where(.mc-glass) .h-hero .h-scene > .m-hero-stage { position: static; height: auto; display: block; }
  :where(.mc-glass) .h-hero .h-scene .h-device { position: relative; top: auto; width: calc(100% - 32px); aspect-ratio: auto; height: min(560px, 74svh); max-height: none; border-radius: var(--g-r-device); box-shadow: var(--g-pop-shadow); }
  :where(.mc-glass) .h-hero .h-scene .h-device::before { display: none; }
  :where(.mc-glass) .h-hero .h-scene .h-device > .h-device-in { height: 100%; border-radius: inherit; }
  :where(.mc-glass) .h-device iframe { width: var(--fw, 358px); height: 100%; }
  :where(.mc-glass) .h-hero .h-scene .m-hero-stage > .h-cap.m-cap { position: static; opacity: 1; translate: none; transition: none; margin-top: 16px; }
}

/* ── Highlights: one slide system ───────────────────────────────── */
:where(.mc-glass) .h-highlights { overflow: hidden; }
:where(.mc-glass) .h-hl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
:where(.mc-glass) .h-track { --sw: 420px; display: grid; grid-auto-flow: column; grid-auto-columns: var(--sw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; --lp: max(22px, calc((100vw - var(--sw)) / 2)); padding: 34px var(--lp) 8px; scroll-padding-inline: var(--lp); scrollbar-width: none; overscroll-behavior-x: contain; }
:where(.mc-glass) .h-track::-webkit-scrollbar { display: none; }
:where(.mc-glass) .h-track:focus-visible { outline: 2px solid var(--g-tint); outline-offset: -2px; border-radius: 26px; }
:where(.mc-glass) .h-slide { --pad: 28px; scroll-snap-align: center; position: relative; margin: 0; width: var(--sw); aspect-ratio: 11 / 16; border-radius: 26px; overflow: hidden; background: var(--g-stage); color: var(--g-on-stage); isolation: isolate; }
:where(.mc-glass) .h-slide-h { position: absolute; z-index: 2; top: var(--pad); left: var(--pad); max-width: 85%; font: 600 var(--g-m-h4)/1.19 var(--g-font-display); letter-spacing: .011em; text-wrap: balance; }
:where(.mc-glass) .h-media { position: absolute; inset: auto 0 0 0; height: 64%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
:where(.mc-glass) .h-slide[data-media="image"] .h-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
:where(.mc-glass) .h-slide[data-media="image"] .h-media::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 38%; background: linear-gradient(180deg, var(--g-stage), transparent); pointer-events: none; }
:where(.mc-glass) .h-slide[data-media="image"] .h-slide-h { text-shadow: 0 1px 14px color-mix(in srgb, var(--g-on-stage-ink) 50%, transparent); }
:where(.mc-glass) .h-slide[data-media="image"]:nth-child(1) .h-media img { object-position: 100% 50%; inset: 4% 0 0 0; height: 96%; }
:where(.mc-glass) .h-slide[data-media="image"]:nth-child(1) .h-media::after { display: none; }
:where(.mc-glass) .h-slide[data-media="image"]:nth-child(4) .h-media img { object-position: 50% 30%; }
:where(.mc-glass) .h-inspect { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--g-on-stage) 92%, transparent); color: var(--g-on-stage-ink); font: 600 14px/1 var(--g-font); cursor: pointer; }
:where(.mc-glass) .h-inspect:hover { background: var(--g-on-stage); }
:where(.mc-glass) .h-inspect:focus-visible, :where(.mc-glass) .h-play .t-play:focus-visible { outline: 2px solid var(--g-on-stage); outline-offset: 2px; }

/* Panel specimens: opaque, top corners only, bleeding off the bottom.
   Neutralise the old pages-core `.h-slide p` caption rule for specimen text. */
:where(.mc-glass) .h-slide .h-panel p { position: static; inset: auto; max-width: none; text-shadow: none; font: inherit; letter-spacing: normal; margin: 0; }
:where(.mc-glass) .h-panel { width: calc(100% - 40px); max-height: 100%; overflow: hidden; background: var(--g-bg-2); color: var(--g-label); border-radius: var(--g-r-card) var(--g-r-card) 0 0; padding: 18px 18px 24px; text-align: left; }
:where(.mc-glass) .h-opts { display: grid; margin: 0 -18px; }
:where(.mc-glass) .h-opt { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 9px 18px; align-items: start; font: 400 14px/1.3 var(--g-font); color: var(--g-label); }
:where(.mc-glass) .h-opt + .h-opt::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: .5px; background: var(--g-sep); }
:where(.mc-glass) .h-opt .L { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--g-font-rounded); color: var(--g-label-2); box-shadow: inset 0 0 0 1.5px var(--g-fill); }
:where(.mc-glass) .h-opt .why { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.34; color: var(--g-label-2); }
:where(.mc-glass) .h-opt .tag { font: 600 12px/1.2 var(--g-font); white-space: nowrap; margin-top: 2px; }
:where(.mc-glass) .h-opt[data-outcome="correct"] { background: var(--g-correct-soft); }
:where(.mc-glass) .h-opt[data-outcome="correct"] .L { background: var(--g-green); color: var(--g-on-stage); box-shadow: none; }
:where(.mc-glass) .h-opt[data-outcome="correct"] .tag { color: var(--g-correct); }
:where(.mc-glass) .h-opt[data-outcome="wrong"] { background: var(--g-wrong-soft); }
:where(.mc-glass) .h-opt[data-outcome="wrong"] .L { background: var(--g-wrong); color: var(--g-on-stage); box-shadow: none; }
:where(.mc-glass) .h-opt[data-outcome="wrong"] .tag { color: var(--g-wrong); }

:where(.mc-glass) .h-card { display: grid; gap: 16px; align-content: start; padding-top: 22px; }
:where(.mc-glass) .h-slide .h-panel p.h-card-front { margin: 0; font: 600 20px/1.28 var(--g-font-display); letter-spacing: -.005em; }
:where(.mc-glass) .h-play { display: flex; align-items: center; gap: 14px; }
:where(.mc-glass) .h-prog { flex: 1; height: 4px; border-radius: 2px; background: var(--g-fill-2); overflow: hidden; }
:where(.mc-glass) .h-prog i { display: block; height: 100%; background: var(--g-orange); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
:where(.mc-glass) .h-slide .h-panel p.h-card-cap { margin: 0; color: var(--g-label-2); font: 400 13px/1.3 var(--g-font); }

:where(.mc-glass) .h-steps { position: absolute; z-index: 2; left: 50%; bottom: 18px; translate: -50% 0; display: flex; gap: 2px; margin: 0; padding: 4px; list-style: none; border-radius: 999px; background: var(--g-stage-mat); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); white-space: nowrap; }
:where(.mc-glass) .h-steps li { padding: 8px 13px; border-radius: 999px; font: 500 13px/1 var(--g-font); color: color-mix(in srgb, var(--g-on-stage) 72%, transparent); }
:where(.mc-glass) .h-steps li[aria-current="step"] { background: var(--g-on-stage); color: var(--g-on-stage-ink); font-weight: 600; }

:where(.mc-glass) .h-viva { display: grid; gap: 14px; align-content: start; padding-top: 18px; }
:where(.mc-glass) .h-viva-head { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; position: relative; }
:where(.mc-glass) .h-ring { grid-row: 1 / span 2; width: 72px; height: 72px; transform: rotate(-90deg); }
:where(.mc-glass) .h-ring circle { fill: none; stroke: var(--g-fill-2); stroke-width: 6; }
:where(.mc-glass) .h-ring circle.on { stroke: var(--g-purple, var(--g-tint)); stroke-linecap: round; }
:where(.mc-glass) .h-time { position: absolute; left: 0; top: 0; width: 72px; height: 72px; display: grid; place-items: center; font: 600 15px/1 var(--g-font-rounded); font-variant-numeric: tabular-nums; }
:where(.mc-glass) .h-slide .h-panel p.h-viva-t { grid-column: 2; margin: 0; font: 600 17px/1.25 var(--g-font-display); }
:where(.mc-glass) .h-parts { background: var(--g-bg-3); }
:where(.mc-glass) .h-parts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 14px; font: 400 14px/1.25 var(--g-font); position: relative; }
:where(.mc-glass) .h-parts li + li::before { content: ""; position: absolute; top: 0; left: 46px; right: 0; height: .5px; background: var(--g-sep); }
:where(.mc-glass) .h-parts li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--g-font-rounded); background: var(--g-fill-3); color: var(--g-label-2); }

:where(.mc-glass) .h-gotcha { display: grid; gap: 10px; align-content: start; padding-top: 20px; }
:where(.mc-glass) .h-gotcha-t { margin: 0; font: 600 20px/1.25 var(--g-font-display); letter-spacing: -.005em; }
:where(.mc-glass) .h-md { font: 400 14px/1.4 var(--g-font); color: var(--g-label); }
:where(.mc-glass) .h-md ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; }
:where(.mc-glass) .h-slide .h-md p { margin: 0 0 6px; }

:where(.mc-glass) .h-dots { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 26px; }
:where(.mc-glass) .h-dots .dots { display: flex; gap: 0; padding: 10px 14px; border-radius: 999px; background: var(--g-fill-3); }
:where(.mc-glass) .h-dots .dots button { position: relative; width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; transition: width var(--g-d-move) var(--g-spring); }
:where(.mc-glass) .h-dots .dots button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 4px; translate: -50% -50%; background: var(--g-label-3); transition: width var(--g-d-move) var(--g-spring); }
:where(.mc-glass) .h-dots .dots button[aria-current="true"] { width: 44px; }
:where(.mc-glass) .h-dots .dots button[aria-current="true"]::before { width: 44px; background: var(--g-ink); }
:where(.mc-glass) .h-dots .play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--g-fill-3); color: var(--g-ink); display: grid; place-items: center; cursor: pointer; }
:where(.mc-glass) .h-dots :is(button):focus-visible { outline: 2px solid var(--g-tint); outline-offset: 2px; }

@media (min-width: 701px) {
  :where(.mc-glass) .h-track { --lp: max(22px, calc((100vw - 980px) / 2)); padding-inline-end: max(22px, calc(100vw - var(--sw) - var(--lp))); }
  :where(.mc-glass) .h-slide { scroll-snap-align: start; }
}
/* Image zoom without motion.js stays still; the keyframes live in motion.css */

/* ── Rest of page ───────────────────────────────────────────────── */
:where(.mc-glass) .h-ey { font-size: 17px; }
:where(.mc-glass) .h-loop-lede { max-width: 44ch; margin-top: 14px; }
:where(.mc-glass) .h-bento .g-m-h4 { margin-top: 6px; }
:where(.mc-glass) .h-tile-link { text-decoration: none; color: inherit; }
:where(.mc-glass) .h-stat { margin: 0; }
:where(.mc-glass) .h-stat .h-n { font-variant-numeric: tabular-nums; }
:where(.mc-glass) .h-tile-link .h-big { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; }
:where(.mc-glass) .h-tile-img img { object-position: 50% 30%; }
:where(.mc-glass) .h-center { text-align: center; }
:where(.mc-glass) .h-per { font-size: 17px; }
:where(.mc-glass) .h-crumb { height: 14px; width: auto; }
:where(.mc-glass) .h-final-lede { margin-top: 12px; }
:where(.mc-glass) .h-compare .g-mbtn { margin-top: 18px; }

@media (max-width: 700px) {
  :where(.mc-glass) .h-track { --sw: 300px; }
  :where(.mc-glass) .h-slide { --pad: 22px; }
  :where(.mc-glass) .h-slide-h { font-size: 19px; }
  :where(.mc-glass) .h-panel { width: calc(100% - 28px); padding: 14px 14px 20px; }
  :where(.mc-glass) .h-opts { margin: 0 -14px; }
  :where(.mc-glass) .h-opt { padding: 7px 14px; font-size: 13px; }
  :where(.mc-glass) .h-opt + .h-opt::before { left: 46px; }
  :where(.mc-glass) .h-opt .why { font-size: 12px; }
  :where(.mc-glass) .h-slide .h-panel p.h-card-front, :where(.mc-glass) .h-gotcha-t { font-size: 18px; }
  :where(.mc-glass) .h-md { font-size: 13px; }
}
}

/* MEDCUE GLASS v2 · public batch A: students, AMC, inside, pricing, try. Link after pages-core.css. */
@layer glass.page {

/* ── Shared marketing blocks ─────────────────────────────────────── */
:where(.mc-glass) .pa-hero { padding: 84px 0 92px; text-align: center; }
:where(.mc-glass) .pa-hero h1 { max-width: 16ch; margin: 0 auto; text-wrap: balance; }
:where(.mc-glass) .pa-hero .g-m-lede { max-width: 42ch; margin: 20px auto 0; }
:where(.mc-glass) .pa-hero-sm { padding: 64px 0 40px; }
:where(.mc-glass) .pa-hero-sm h1 { max-width: none; }
:where(.mc-glass) .pa-note { max-width: 46ch; margin: 28px auto 0; font-size: 15px; }
:where(.mc-glass) .pa-center { text-align: center; margin-top: 34px; }
:where(.mc-glass) .g-mwrap.pa-narrow { max-width: 780px; }
:where(.mc-glass) .pa-icons .g-tile-ic { margin-bottom: 16px; }
:where(.mc-glass) .pa-icons h3 { margin-bottom: 8px; }
:where(.mc-glass) .pa-list { margin: 0; }
:where(.mc-glass) .g-msection:not(.alt) .pa-list { background: var(--g-bg-3); }
:where(.mc-glass) .pa-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; margin-top: 44px; align-items: start; }
:where(.mc-glass) .pa-two > div > h3 { margin-bottom: 16px; }
:where(.mc-glass) .pa-addons > div > h3 { margin-bottom: 0; }
:where(.mc-glass) .pa-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
:where(.mc-glass) .pa-split.rev .pa-copy { order: 2; }
:where(.mc-glass) .pa-copy .g-m-lede { max-width: 38ch; }
:where(.mc-glass) .pa-copy .g-tile-ic { margin-bottom: 18px; }
:where(.mc-glass) .pa-h { margin-bottom: 14px; text-wrap: balance; }
:where(.mc-glass) .pa-vis { min-width: 0; display: grid; gap: 14px; }
:where(.mc-glass) .pa-plan { margin-top: 20px; font-size: 15px; line-height: 1.5; color: var(--g-ink-2); max-width: 44ch; }
:where(.mc-glass) .pa-plan strong { color: var(--g-ink); font-weight: 600; }
:where(.mc-glass) .pa-ch { padding: 88px 0; scroll-margin-top: 100px; }
:where(.mc-glass) .pa-quote { margin: 30px 0 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--g-fill); }
:where(.mc-glass) .pa-quote p { font: 400 17px/1.5 var(--g-font); letter-spacing: -.02em; color: var(--g-ink); margin: 0; }
:where(.mc-glass) .pa-quote footer { margin-top: 10px; font-size: 14px; color: var(--g-ink-2); }

/* Figures: opaque stage, contain, caption and credit */
:where(.mc-glass) .pa-fig { margin: 0; min-width: 0; }
:where(.mc-glass) .pa-stage { height: auto; aspect-ratio: var(--ar, 1.6); max-height: none; width: 100%; }
:where(.mc-glass) .pa-cap { display: flex; justify-content: space-between; gap: 12px; margin: 10px 4px 0; font-size: 13px; line-height: 1.38; color: var(--g-ink-2); }
:where(.mc-glass) .pa-cap span:last-child { text-align: right; }
:where(.mc-glass) .pa-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:where(.mc-glass) .pa-casehead { display: grid; gap: 10px; }
:where(.mc-glass) .pa-gtitle { font: 600 19px/1.3 var(--g-font-display); letter-spacing: -.012em; margin: 0; color: var(--g-ink); }

/* Cards that hold a fragment */
:where(.mc-glass) .pa-card { background: var(--g-bg-2); border-radius: var(--g-r-card); padding: 22px; display: grid; gap: 14px; align-content: start; }
:where(.mc-glass) .g-msection:not(.alt) .pa-card { background: var(--g-bg-3); }
:where(.mc-glass) .pa-cardfront { font: 600 clamp(21px, 2.1vw, 25px)/1.28 var(--g-font-display); letter-spacing: -.012em; margin: 0; color: var(--g-ink); }
:where(.mc-glass) .pa-cardback { margin: 0; font-size: 17px; line-height: 1.45; color: var(--g-ink); padding-top: 14px; border-top: .5px solid var(--g-sep); }
:where(.mc-glass) .pa-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
:where(.mc-glass) .pa-play { width: 40px; height: 40px; }
:where(.mc-glass) .pa-play .g-ic { width: 16px; height: 16px; }
:where(.mc-glass) .pa-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
:where(.mc-glass) .pa-md { font-size: 15px; line-height: 1.45; color: var(--g-ink); }
:where(.mc-glass) .pa-md p { margin: 0 0 6px; }
:where(.mc-glass) .pa-md ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
:where(.mc-glass) .pa-md li > ul { margin-top: 6px; color: var(--g-ink-2); }
:where(.mc-glass) .pa-md strong { font-weight: 600; }
:where(.mc-glass) .pa-demo .q-opt { cursor: default; }
:where(.mc-glass) .pa-demo .q-opt:not([data-outcome]):hover { background: transparent; }
:where(.mc-glass) .pa-demo .q-opt .L { animation: none; }
:where(.mc-glass) .g-msection:not(.alt) .pa-demo { background: var(--g-bg-3); }
:where(.mc-glass) .pa-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--g-fill-3); color: var(--g-ink-2); font: 600 14px/1 var(--g-font-rounded); }
:where(.mc-glass) .pa-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(.mc-glass) .pa-parts { counter-reset: none; }
:where(.mc-glass) .pa-station { display: grid; gap: 14px; }
:where(.mc-glass) .pa-station-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
:where(.mc-glass) .pa-chat { gap: 16px; }
:where(.mc-glass) .pa-example { margin: 0; }
:where(.mc-glass) .pa-ask { justify-self: end; max-width: 80%; margin: 0; padding: 10px 16px; border-radius: 20px 20px 6px 20px; background: var(--g-fill-3); font-size: 17px; line-height: 1.35; color: var(--g-ink); }
:where(.mc-glass) .pa-answer { display: grid; gap: 10px; }
:where(.mc-glass) .pa-answer p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--g-ink); }
:where(.mc-glass) .pa-answer p.g-footnote { color: var(--g-ink-2); font-size: 13px; }

/* Students: three fragments */
:where(.mc-glass) .pa-tiles3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
:where(.mc-glass) .pa-tiles3 > .g-tile { display: flex; flex-direction: column; gap: 20px; padding: 32px; }
:where(.mc-glass) .pa-tiles3 > .g-tile:first-child { grid-column: 1 / -1; }
:where(.mc-glass) .pa-tile-body { display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: flex-start; }
:where(.mc-glass) .pa-qsplit { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
:where(.mc-glass) .pa-qtext { display: grid; gap: 14px; align-content: center; }
:where(.mc-glass) .pa-qtext p { margin: 0; }
:where(.mc-glass) .pa-stem { font-size: 16px; line-height: 1.5; color: var(--g-ink-2); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
:where(.mc-glass) .pa-lead { font: 600 19px/1.35 var(--g-font-display); letter-spacing: -.012em; color: var(--g-ink); }

:where(.mc-glass) .pa-tiles3 .g-list { background: var(--g-bg-2); }
:where(.mc-glass) .pa-more { margin-top: auto; }
:where(.mc-glass) .pa-more .g-cell { min-height: 48px; }
/* Inside: chapter jump links, plan table, FAQ */
:where(.mc-glass) .pa-chnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 40px auto 0; max-width: 640px; }
:where(.mc-glass) .pa-chnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--g-fill-3); color: var(--g-ink); font-size: 15px; text-decoration: none !important; transition: background-color var(--g-d-fast) linear; }
:where(.mc-glass) .pa-chnav a:hover { background: var(--g-fill-2); }
:where(.mc-glass) .pa-tablewrap { max-width: 880px; margin: 44px auto 0; }
:where(.mc-glass) .pa-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
:where(.mc-glass) .pa-table thead th { font: 600 19px/1.2 var(--g-font-display); padding: 0 8px 18px; text-align: center; color: var(--g-ink); }
:where(.mc-glass) .pa-table tbody th { width: 34%; text-align: left; font: 400 15px/1.35 var(--g-font); color: var(--g-ink); padding: 15px 12px 15px 0; }
:where(.mc-glass) .pa-table td { text-align: center; font-size: 15px; line-height: 1.35; color: var(--g-ink); padding: 15px 8px; }
:where(.mc-glass) .pa-table tbody tr { border-top: .5px solid var(--g-sep); }
:where(.mc-glass) .pa-table tbody tr:first-child td { font-size: 14px; color: var(--g-ink-2); }
:where(.mc-glass) .pa-y { display: grid; justify-items: center; }
:where(.mc-glass) .pa-y .g-ic { width: 20px; height: 20px; stroke-width: 2.4; color: var(--g-correct); }
:where(.mc-glass) .pa-n { color: var(--g-ink-2); font-size: 18px; }
:where(.mc-glass) .pa-table .g-chip { height: 24px; padding: 0 9px; font-size: 13px; }
:where(.mc-glass) .pa-faq { margin-top: 40px; border-bottom: .5px solid var(--g-sep); }
:where(.mc-glass) .pa-faq details { border-top: .5px solid var(--g-sep); }
:where(.mc-glass) .pa-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; font: 600 19px/1.3 var(--g-font-display); letter-spacing: -.008em; color: var(--g-ink); }
:where(.mc-glass) .pa-faq summary::-webkit-details-marker { display: none; }
:where(.mc-glass) .pa-faq summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--g-tint) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
:where(.mc-glass) .pa-faq summary .g-chev { transition: rotate var(--g-d-fast) var(--g-ease); }
:where(.mc-glass) .pa-faq details[open] summary .g-chev { rotate: 90deg; }
:where(.mc-glass) .pa-faq-a { padding: 0 0 22px; max-width: 62ch; color: var(--g-ink-2); font: 400 17px/1.5 var(--g-font); letter-spacing: -.02em; }
:where(.mc-glass) .pa-faq-a p { margin: 0; }
:where(.mc-glass) .pa-faq-a a { color: var(--g-tint); }

/* Pricing */
:where(.mc-glass) .pa-price { max-width: 560px; margin: 44px auto 0; padding: 36px 28px 30px; display: grid; justify-items: center; gap: 0; text-align: center; }
:where(.mc-glass) .pa-plan-name { margin-top: 30px; color: var(--g-ink); }
:where(.mc-glass) .pa-amount { margin: 6px 0 0; font: 600 clamp(64px, 11vw, 96px)/1 var(--g-font-display); letter-spacing: -.02em; color: var(--g-ink); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; column-gap: 6px; }
:where(.mc-glass) .pa-amount .cur { font-size: .4em; font-weight: 500; letter-spacing: 0; align-self: flex-start; margin-top: .22em; }
:where(.mc-glass) .pa-amount .unit { font: 400 21px/1 var(--g-font-display); letter-spacing: .011em; color: var(--g-ink-2); }
:where(.mc-glass) .pa-intro { min-height: 4.4em; max-width: 36ch; margin: 18px 0 0; }
:where(.mc-glass) .pa-price .g-mbtn { margin-top: 10px; }
:where(.mc-glass) .pa-fine { margin: 16px 0 0; max-width: 40ch; font-size: 13px; line-height: 1.4; color: var(--g-ink-2); }
:where(.mc-glass) .pa-freegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; margin-top: 40px; }
:where(.mc-glass) .pa-freegrid p { padding: 16px 0; border-top: .5px solid var(--g-sep); }
:where(.mc-glass) .pa-freegrid p strong { color: var(--g-ink); font-weight: 600; }

/* Try */
:where(.mc-glass) .pa-try { padding: 0 0 96px; }
:where(.mc-glass) .pa-try .pa-fig { max-width: 880px; margin: 0 auto; }
:where(.mc-glass) .pa-qcol { max-width: 700px; margin: 36px auto 0; min-width: 0; }
:where(.mc-glass) .pa-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
:where(.mc-glass) .pa-actions .g-btn-filled { min-width: 200px; }
:where(.mc-glass) .pa-qcol .q-opts { background: var(--g-bg-3); }
:where(.mc-glass) .pa-expl { margin-top: 28px; }
:where(.mc-glass) .pa-after { text-align: center; padding: 72px 0; }

/* Dark: tiles sit on #000 sections, so lift them to the grouped surface */
@media not all /* dark is set by html[data-learner-theme], see learner-appearance.js */ {
  :root:not([data-theme="light"]) :where(.mc-glass) :is(.pa-tiles3 > .g-tile, .pa-price) { background: var(--g-bg-2); }
  :root:not([data-theme="light"]) :where(.mc-glass) .pa-tiles3 .g-list { background: var(--g-bg-3); }
}
:root[data-learner-theme="dark"] :where(.mc-glass) :is(.pa-tiles3 > .g-tile, .pa-price) { background: var(--g-bg-2); }
:root[data-learner-theme="dark"] :where(.mc-glass) .pa-tiles3 .g-list { background: var(--g-bg-3); }

@media (max-width: 1023px) {
  :where(.mc-glass) .pa-split { gap: 44px; }
}
@media (max-width: 833px) {
  :where(.mc-glass) .pa-hero { padding: 52px 0 60px; }
  :where(.mc-glass) .pa-hero-sm { padding: 44px 0 28px; }
  :where(.mc-glass) .pa-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  :where(.mc-glass) .pa-split.rev .pa-copy { order: -1; }
  :where(.mc-glass) .pa-ch { padding: 60px 0; scroll-margin-top: 80px; }
  :where(.mc-glass) .pa-two { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  :where(.mc-glass) .pa-tiles3 { grid-template-columns: minmax(0, 1fr); }
  :where(.mc-glass) .pa-tiles3 > .g-tile { padding: 24px; }
  :where(.mc-glass) .pa-qsplit { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  :where(.mc-glass) .pa-freegrid { grid-template-columns: minmax(0, 1fr); }
  :where(.mc-glass) .pa-table thead th { font-size: 15px; padding-bottom: 14px; }
  :where(.mc-glass) .pa-table tbody th, :where(.mc-glass) .pa-table td { font-size: 14px; }
  :where(.mc-glass) .pa-table tbody th { width: 31%; padding-right: 6px; }
  :where(.mc-glass) .pa-table td { padding: 13px 4px; }
  :where(.mc-glass) .pa-table tbody tr:first-child td { font-size: 13px; }
  :where(.mc-glass) .pa-actions .g-btn-filled { flex: 1; min-width: 0; }
  :where(.mc-glass) .pa-price { padding: 28px 18px 24px; }
  :where(.mc-glass) .pa-faq summary { font-size: 17px; }
  :where(.mc-glass) .pa-cap { flex-direction: column; gap: 2px; }
  :where(.mc-glass) .pa-cap span:last-child { text-align: left; }
}
}
@layer glass.page {
:where(.mc-glass) .pa-pair .pa-cap { flex-direction: column; gap: 2px; margin-inline: 2px; }
:where(.mc-glass) .pa-pair .pa-cap span:last-child { text-align: left; }
}

/* ── Marketing chrome additions ─────────────────────────────────── */
@layer glass.page {
  :where(.mc-glass) .g-crumbs ol { display: flex; flex-wrap: wrap; min-width: 0; gap: 8px; list-style: none; margin: 0; padding: 0; align-items: center; }
  :where(.mc-glass) .g-crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
  :where(.mc-glass) .g-crumbs .g-crumb-home { display: inline-flex; align-items: center; }
  :where(.mc-glass) .g-crumbs .g-crumb-home::after { content: "›"; margin-left: 8px; opacity: .6; }
  :where(.mc-glass) .g-independence { margin-top: 0; }
  :where(.mc-glass) .pa-frag-lede { max-width: 46ch; margin-top: 14px; }
  :where(.mc-glass) .pa-cell-t { font-size: 15px; }
  html.g-menu-open { overflow: hidden; }

  /* Image viewer (full-size inspect) */
  :where(.mc-glass) dialog.g-viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #0b0c0e; color: #f5f5f7; font: 500 14px/1.3 var(--g-font); }
  :where(.mc-glass) dialog.g-viewer::backdrop { background: rgb(0 0 0 / .6); }
  :where(.mc-glass) dialog.g-viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
  :where(.mc-glass) .g-viewer-bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 16px 12px; }
  :where(.mc-glass) .g-viewer-grp { display: flex; gap: 6px; align-items: center; }
  :where(.mc-glass) .g-viewer-btn { appearance: none; border: 0; cursor: pointer; min-height: 40px; min-width: 40px; padding: 0 14px; border-radius: 999px; display: inline-grid; place-items: center; background: rgb(255 255 255 / .12); color: inherit; font: 600 14px/1 var(--g-font); }
  :where(.mc-glass) .g-viewer-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  :where(.mc-glass) .g-viewer-stage { overflow: hidden; position: relative; touch-action: none; cursor: grab; }
  :where(.mc-glass) .g-viewer-stage.is-drag { cursor: grabbing; }
  :where(.mc-glass) .g-viewer-stage img { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; max-width: none; }
  :where(.mc-glass) .g-viewer-cap { padding: 10px 16px max(14px, env(safe-area-inset-bottom)); opacity: .8; font-size: 13px; }
  :where(.mc-glass) .g-viewer-pct { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; opacity: .8; }
}

@layer glass.page {
  :where(.mc-glass) .g-crumbs ol, :where(.mc-glass) .g-crumbs li { list-style: none; }
  :where(.mc-glass) .g-crumbs li::marker { content: ""; }
}

@layer glass.page {
:where(.mc-glass) .t-play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--g-orange); color: #fff; cursor: pointer; position: relative; }
:where(.mc-glass) .t-play .g-ic { width: 18px; height: 18px; }
:where(.mc-glass) .t-play svg.ring { position: absolute; inset: -4px; width: 52px; height: 52px; transform: rotate(-90deg); }
:where(.mc-glass) .t-play svg.ring circle { fill: none; stroke: var(--g-orange); stroke-width: 2.5; stroke-dasharray: 150.8; stroke-dashoffset: var(--off, 150.8); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
}

@layer glass.page {
:where(.mc-glass) .q-stage { display: block; width: 100%; height: min(calc(100dvh - 160px), 760px); padding: 0; border: 0; border-radius: var(--g-r-card); background: var(--g-stage); cursor: zoom-in; overflow: hidden; position: relative; }
:where(.mc-glass) .q-stage img { width: 100%; height: 100%; object-fit: contain; }
:where(.mc-glass) .q-stage .hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; height: 34px; padding: 0 13px; border-radius: var(--g-r-capsule); color: #1D1D1F; background: rgb(250 250 252 / .82); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: 0 0 0 .5px rgb(0 0 0 / .08), 0 4px 14px -4px rgb(0 0 0 / .3); font: 600 13px/1 var(--g-font); }
:where(.mc-glass) .q-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
:where(.mc-glass) .q-stage, :where(.mc-glass) .q-body.wide-fig .q-stage { position: relative; display: block; height: auto; aspect-ratio: var(--fig-ar, 1); max-height: var(--stage-h); width: min(100%, calc(var(--stage-h) * var(--fig-ar, 1))); margin-inline: auto; border-radius: var(--g-r-card); background: var(--g-stage); overflow: hidden; cursor: auto; }
:where(.mc-glass) .q-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, var(--g-stage-dim), transparent 55%); opacity: 0; transition: opacity var(--g-d-base) linear; }
:where(.mc-glass) .q-stage.is-finding::before { opacity: 1; }
:where(.mc-glass) .q-stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--g-tint); opacity: 0; }
:where(.mc-glass) .q-stage.is-ref::after { animation: q-ring 1100ms linear; }
:where(.mc-glass) .q-zoom { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; }
:where(.mc-glass) .q-zoom:focus-visible { outline-offset: -3px; border-radius: inherit; }
:where(.mc-glass) .q-zoom img { width: 100%; height: 100%; object-fit: contain; transition: opacity var(--g-d-base) linear; }
:where(.mc-glass) .q-stage.is-finding .q-zoom img { opacity: .55; }
:where(.mc-glass) .q-stage .hint { z-index: 2; }
:where(.mc-glass) .q-stage.is-finding .q-find-text { opacity: 1; }
:where(.mc-glass) .q-meta { margin-bottom: 14px; }
:where(.mc-glass) .q-mono { font-family: var(--g-mono); }
:where(.mc-glass).q-embed .q-meta, :where(.mc-glass).q-embed .q-vitals-wrap > p, :where(.mc-glass).q-embed .q-tools, :where(.mc-glass).q-embed .x-inline { display: none; }
}
