/* marksup: its own light, minimal theme (separate from acads). Shared by every marksup page; generated pages use the
   classes below, the homepage hero animation uses .stage and friends. Written by hand; the pages are generated by src/marksup.py. */
:root {
  --ink: #1d1d1f; --grey: #6e6e73; --hair: #d2d2d7; --tile: #f5f5f7; --bg: #fff;
  --alt: #f5f5f7;  /* the alternate section background (light, neutral, Apple-style grey): sections alternate white / --alt */
  --green: #1aae39; --green-d: #0f7a27; --teal: #009999;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Inter, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --spring: cubic-bezier(.3, 1.3, .5, 1);
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* the chevron motif: one path, used as ^ (logo) and as › (arrows) */
.chev { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.chev.r { transform: rotate(90deg); }
.chevs { display: inline-flex; align-items: center; }
.chevs .chev { margin-left: -.42em; }
.chevs .chev:first-child { margin-left: 0; }
/* on hover the three chevrons light up one after another, like the counter in the animation */
.go .chev, .btn .chev { opacity: .35; transition: opacity .2s, transform .3s var(--ease); }
.go .chev:first-child, .btn .chev:first-child { opacity: 1; }
:is(.sec, .btn):hover .chev { opacity: 1; animation: run .9s var(--ease) infinite; }
:is(.sec, .btn):hover .chev:nth-child(2) { animation-delay: .12s; }
:is(.sec, .btn):hover .chev:nth-child(3) { animation-delay: .24s; }
@keyframes run { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* logo */
.mk { display: inline-block; width: 22px; height: 22px; flex: none; }
.mk rect { fill: var(--green); }
.mk path { fill: none; stroke: #fff; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.logo .mk path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s .2s var(--ease) forwards; }
.logo:hover .mk path { animation: draw .7s var(--ease) forwards, up .5s .1s var(--spring); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes up { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
.brain { width: 1.15em; height: 1em; vertical-align: -.15em; fill: none; stroke: var(--teal); stroke-linejoin: round; stroke-linecap: round; }  /* set on the <svg>: <use> content inherits it */

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 52px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; color: rgba(0,0,0,.8); }
.nav-links a:hover { color: #000; }
.nav-home { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--grey); }
.nav-home:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); font-weight: 600; }
.nav-links a { flex: none; white-space: nowrap; }
@media (max-width: 720px) { .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 0 16px; }
  .nav-home { margin-left: auto; } .nav-links { order: 3; width: 100%; margin: 0; padding: 10px 0 12px; overflow-x: auto; gap: 22px; scrollbar-width: none; } }

/* hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; margin: 0; }
.hero h1 .mu { color: var(--green); }
/* exactly two lines; fitHeadline() sizes the type so the longer line (with the widest exam) fills the column */
.hero h1 .ln { display: block; width: max-content; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the rotating exam: ››› light up, the old exam slides out, the next springs in */
.push { display: inline-flex; vertical-align: .1em; margin-right: .14em; color: var(--green); font-size: .42em; }
.push .chev { opacity: .2; transition: opacity .15s; }
.push .chev.on { opacity: 1; }
.ex { display: inline-block; overflow: hidden; height: 1.12em; vertical-align: bottom; padding-right: .06em; }
.ex > span { display: inline-block; }
.hero p { font-size: 21px; line-height: 1.38; color: var(--grey); margin: 20px 0 32px; max-width: 420px; letter-spacing: -.018em; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 22px; border-radius: 980px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 500; transition: background .2s; }
.btn:hover { background: #000; }
.btn { white-space: nowrap; }
.btn .chevs { font-size: 11px; color: var(--green); }
@media (max-width: 860px) { .hero { padding: 40px 0 64px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero .wrap > div:first-child { text-align: center; } .hero p, .hero h1 .ln { margin-left: auto; margin-right: auto; }
  .count { justify-content: center; } }
@media (max-width: 520px) { .hero p { font-size: 17px; margin: 14px auto 24px; } }

/* the animation */
.stage { position: relative; aspect-ratio: 5 / 6; background: transparent; overflow: hidden; width: 100%; max-width: 520px; justify-self: center; }
/* the quote, phrase by phrase (kinetic type); each keyword gets its own move in play() */
.kin { position: absolute; left: 3%; right: 3%; top: 2%; height: 25%; display: grid; place-items: center; text-align: center; }
.ph { grid-area: 1 / 1; margin: 0; font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.14; }
.ph .k { display: inline-block; color: var(--green-d); transform-origin: 50% 85%; vertical-align: baseline; }
.ph .k i { display: inline-block; font-style: normal; }
.ph.full { font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; color: #aeaeb2; }
.ph.full .k { color: var(--green); transform: none; }
.kcite { position: absolute; left: 0; right: 0; top: 26%; margin: 0; text-align: center; font-size: 13px; font-weight: 500; color: var(--grey); opacity: 0; }
.ph .k.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 600; letter-spacing: 0; color: var(--green); text-shadow: 0 0 10px rgba(26,174,57,.45); }
.ph .k.code i { min-width: .62em; text-align: center; }
/* the chevrons around the pile: outward for "bigger", flipped inward for "the opposite direction" */
.out { position: absolute; left: 0; top: 0; color: var(--green); opacity: 0; display: inline-flex; }
.out .chev { margin-left: -.42em; } .out .chev:first-child { margin-left: 0; }
.chev.lft { transform: rotate(-90deg); }
.count { position: absolute; left: 4%; right: 4%; bottom: 4%; display: flex; align-items: flex-end; gap: 14px; font-variant-numeric: tabular-nums; }
.count b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.count small { font-size: 13px; color: var(--grey); }
.count .from b { transition: color .5s; position: relative; }
.count .from.old b { color: #aeaeb2; }
.count .from b::after { content: ''; position: absolute; left: -2px; right: -2px; top: 52%; height: 3px; border-radius: 2px; background: #aeaeb2; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.count .from.old b::after { transform: scaleX(1); }
.count .arr { font-size: clamp(16px, 2vw, 22px); color: var(--green); padding-bottom: clamp(20px, 2.4vw, 24px); }
.count .arr .chev { opacity: 0; transition: opacity .25s; }
.count .arr .chev.on { opacity: 1; }
.count .to { opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s var(--ease); }
.count .to.on { opacity: 1; transform: none; }
.count .to b { color: var(--green); }
.doc { position: absolute; left: 50%; top: 0; width: 64px; height: 84px; margin-left: -32px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 16px -6px rgba(0,0,0,.18); padding: 10px 9px; opacity: 0; will-change: transform; }
.doc i { display: block; height: 4px; border-radius: 2px; background: #e8e8ed; margin-bottom: 6px; }
.doc i:first-child { width: 60%; background: var(--c, #c7c7cc); }
.doc i:nth-child(3) { width: 80%; } .doc i:nth-child(4) { width: 70%; }
.book { position: absolute; left: 50%; top: 56%; width: 144px; height: 180px; margin: -90px 0 0 -72px; border-radius: 8px 14px 14px 8px; background: #fff;
  box-shadow: inset 10px 0 0 var(--green), 0 2px 4px rgba(0,0,0,.06), 0 24px 48px -16px rgba(0,0,0,.25); display: grid; align-content: center; justify-items: center; gap: 6px; padding-left: 10px; opacity: 0; }
.book b { font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.book small { font-size: 12px; color: var(--grey); }
/* the five regulators, as a small overlapping row of seals at the foot of the booklet */
.book .seals { display: flex; margin-top: 10px; }
.book .seals img { width: 25px; height: 25px; border-radius: 50%; object-fit: contain; padding: 2px; background: #fff; margin-left: -6px;
  box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0,0,0,.18); }
.book .seals img:first-child { margin-left: 0; }
.big { position: absolute; left: 50%; top: 56%; width: 104px; height: 104px; margin: -52px 0 0 -52px; opacity: 0; filter: drop-shadow(0 18px 30px rgba(26,174,57,.28)); }
.big svg { width: 100%; height: 100%; }
.big rect { fill: var(--green); }
.big path { fill: none; stroke: #fff; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sign { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; opacity: 0; }
.sign b { display: block; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.04em; }
.sign span { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--grey); }
.sign a { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-weight: 600; }
.sign .brain { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sign.on .brain { transition: stroke-dashoffset 1.1s var(--ease) .25s; stroke-dashoffset: 0; }
@media (max-width: 520px) { .stage { aspect-ratio: 5 / 7; } .ph { font-size: 22px; } .count { gap: 10px; } }

/* exams + four sections */
.exams { padding: 96px 0; background: var(--alt); }
.exams .sec { background: #fff; } .exams .sec:hover { background: #fff; box-shadow: 0 10px 30px -16px rgba(0,0,0,.22); }
.h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; margin: 0 0 32px; text-align: center; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 12px; border-radius: 980px; border: 1px solid var(--hair); background: #fff; color: var(--ink); font: 500 15px var(--font); letter-spacing: -.01em; cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.chip img { height: 24px; width: auto; }
.chip:hover { border-color: #86868b; }
.chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.chips { margin-bottom: 40px; }
.secs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sec { position: relative; display: flex; flex-direction: column; min-height: 240px; padding: 28px 24px; border-radius: 22px; background: var(--tile); transition: transform .35s var(--ease), background .2s; }
.sec:hover { transform: scale(1.015); background: #efeff2; }
.ic { width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 20px -10px rgba(0,0,0,.18); display: grid; place-items: center; color: var(--green); }
.ic svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ic .soft { stroke: #c7c7cc; }
.ic * { transform-box: fill-box; }
/* 1 understand the exam: the magnifier scans the paper */
.ic-exam .lens { transform-origin: center; }
.sec:hover .ic-exam .lens, .secs.swap .ic-exam .lens { animation: scan 1.6s var(--ease) both; }
.sec:hover .ic-exam .lens { animation-iteration-count: infinite; }
@keyframes scan { 0% { transform: translate(-12px, -14px); } 35% { transform: translate(-4px, -8px); } 70% { transform: translate(-10px, -2px); } 100% { transform: none; } }
/* 2 strategy: the route draws itself, then the chevron arrives */
.ic-strategy .route { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ic-strategy .head { transform-origin: center; }
.sec:hover .ic-strategy .route, .secs.swap .ic-strategy .route { animation: route 1.4s var(--ease) both; }
.sec:hover .ic-strategy .head, .secs.swap .ic-strategy .head { animation: pop 1.4s var(--spring) both; }
.sec:hover .ic-strategy .route, .sec:hover .ic-strategy .head { animation-iteration-count: infinite; }
@keyframes route { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes pop { 0%, 55% { opacity: 0; transform: scale(.4); } 75% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: none; } }
/* 3 free resources: the arrow (our chevron, pointing down) drops into the tray */
.sec:hover .ic-free .drop, .secs.swap .ic-free .drop { animation: drop 1.2s var(--ease) both; }
.sec:hover .ic-free .drop { animation-iteration-count: infinite; }
@keyframes drop { 0% { transform: translateY(-10px); opacity: 0; } 30% { opacity: 1; } 65% { transform: translateY(3px); } 80% { transform: translateY(-1px); } 100% { transform: none; } }
/* 4 courses: the cap lifts, the tassel swings */
.ic-courses .cap { transform-origin: 50% 100%; }
.ic-courses .tassel { transform-origin: 50% 0; }
.sec:hover .ic-courses .cap, .secs.swap .ic-courses .cap { animation: lift 1.4s var(--spring) both; }
.sec:hover .ic-courses .tassel, .secs.swap .ic-courses .tassel { animation: swing 1.4s ease-in-out both; }
.sec:hover .ic-courses .cap, .sec:hover .ic-courses .tassel { animation-iteration-count: infinite; }
@keyframes lift { 0%, 100% { transform: none; } 30% { transform: translateY(-4px) rotate(-6deg); } 55% { transform: translateY(0) rotate(2deg); } }
@keyframes swing { 0%, 100% { transform: none; } 25% { transform: rotate(24deg); } 50% { transform: rotate(-16deg); } 75% { transform: rotate(8deg); } }
.sec h3 { font-size: 24px; line-height: 1.12; letter-spacing: -.03em; margin: 22px 0 8px; }
.sec p { margin: 0; font-size: 15px; color: var(--grey); letter-spacing: -.01em; }
.sec .go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: 15px; color: var(--green-d); }
.sec .go .chevs { font-size: 10px; color: var(--green); }
.secs.swap .sec { animation: swap .45s var(--ease) both; }
.secs.swap .sec:nth-child(2) { animation-delay: .04s; } .secs.swap .sec:nth-child(3) { animation-delay: .08s; } .secs.swap .sec:nth-child(4) { animation-delay: .12s; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .secs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .secs { grid-template-columns: minmax(0, 1fr); } .sec { min-height: 0; } }

/* closing */
.close { padding: 120px 0; text-align: center; background: var(--alt); }
.close h2 { font-size: clamp(40px, 6.5vw, 80px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 32px; font-weight: 700; }
.close h2 span { color: var(--grey); }

/* footer */
.foot { background: #fff; border-top: 1px solid rgba(0,0,0,.06); padding: 40px 0 28px; font-size: 12px; line-height: 1.5; color: var(--grey); }
.foot-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.foot-cols b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.foot-cols a { display: block; padding: 3px 0; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hair); }
.foot-legal .brain { margin: 0 3px; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sec, .secs.swap .sec, :is(.sec, .btn):hover .chev, .ic * { transition: none; animation: none !important; }
  .logo .mk path { animation: none; stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- inner pages */
.mark-hl { color: var(--green); }
.lnav { position: sticky; top: 52px; z-index: 9; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.lnav .wrap { display: flex; align-items: center; gap: 24px; height: 48px; }
.lnav .lname { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.lnav .lname img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }
.lnav nav { display: flex; gap: 22px; margin-left: auto; font-size: 13px; overflow-x: auto; scrollbar-width: none; }
.lnav nav a { white-space: nowrap; color: rgba(0,0,0,.75); }
.lnav nav a:hover { color: #000; }
.lnav nav a[aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .lnav { top: 0; position: relative; } .lnav .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; } .lnav nav { width: 100%; margin: 0; padding: 8px 0 10px; } }

.phd { padding: 72px 0 40px; text-align: center; }
.phd .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--green-d); margin-bottom: 10px; }
.phd .eyebrow img { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; }
.phd h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; margin: 0 auto; max-width: 900px; }
.phd .lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.4; color: var(--grey); margin: 18px auto 0; max-width: 680px; letter-spacing: -.018em; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.btn.light { background: #e8e8ed; color: var(--ink); }
.btn.light:hover { background: #dcdce1; }
.btn.light .chevs { color: var(--green-d); }
.lnk { display: inline-flex; align-items: center; gap: 8px; color: var(--green-d); font-size: 17px; }
.lnk .chevs { font-size: 10px; color: var(--green); }
.lnk:hover { text-decoration: underline; }

.band { padding: 80px 0; }
.band.tint { background: var(--alt); }
.band .h2 + .sub { margin-top: -18px; }
.sub { text-align: center; color: var(--grey); font-size: 19px; line-height: 1.42; max-width: 680px; margin: 0 auto 36px; }
.note { text-align: center; color: var(--grey); font-size: 13px; line-height: 1.5; max-width: 720px; margin: 20px auto 0; }
.h3c { font-size: 24px; letter-spacing: -.03em; margin: 48px 0 16px; }
.anchors { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.anchors a { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 980px; background: var(--tile); font-size: 14px; }
.anchors a:hover { background: #e8e8ed; }
section[id] { scroll-margin-top: 110px; }

.g2, .g3, .g4 { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.tile { display: flex; flex-direction: column; background: var(--tile); border-radius: 22px; padding: 28px 26px; min-width: 0; }
.band.tint .tile { background: #fff; }
a.tile { transition: transform .35s var(--ease), background .2s; }
a.tile:hover { transform: scale(1.015); }
.tile h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 8px; }
.tile p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--grey); }
.tile .fact { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--green-d); }
.tile .go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 15px; color: var(--green-d); }
.tile .go .chevs { font-size: 10px; color: var(--green); }
.tile.dark, .band.tint .tile.dark { background: var(--ink); color: #fff; } .tile.dark p { color: rgba(255,255,255,.72); }
.tile.dark h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }

/* stats (exam at a glance) */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -.035em; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--grey); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }

/* exam stages */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stages .tile .n { font-size: 14px; font-weight: 600; color: var(--green-d); margin-bottom: 8px; }
.stages .tile .num { margin-top: auto; padding-top: 18px; font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stages .tile .num small { font-size: 15px; font-weight: 500; color: var(--grey); letter-spacing: 0; margin-left: 6px; }
@media (max-width: 760px) { .stages { grid-template-columns: minmax(0, 1fr); } }

/* tables */
.tbl { overflow-x: auto; margin-top: 24px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.band.tint .tbl { box-shadow: none; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 13px; font-weight: 600; color: var(--grey); padding: 14px 18px; white-space: nowrap; }
.tbl td { padding: 14px 18px; border-top: 1px solid #ececf0; vertical-align: top; }
.tbl td:first-child { font-weight: 600; }
.tbl .tick { text-align: center; color: var(--green-d); font-weight: 700; }
.tbl th.c { text-align: center; }

/* key–value */
.kv { margin: 0; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--hair); padding: 6px 22px; }
.band.tint .kv { box-shadow: none; }
.kv > div { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid #ececf0; }
.kv > div:first-child { border-top: 0; }
.kv dt { font-size: 15px; font-weight: 600; }
.kv dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
@media (max-width: 560px) { .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* seats by year */
.bars { list-style: none; margin: 8px auto 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 5vw, 56px); height: 240px; max-width: 640px; }
.bars li { flex: 1; max-width: 96px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bars i { display: block; width: 100%; height: var(--h); border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, var(--green), #8fd99e); transform-origin: bottom; animation: grow 1s var(--spring) both; }
.bars b { font-size: 24px; letter-spacing: -.03em; } .bars small { font-size: 13px; color: var(--grey); }
@keyframes grow { from { transform: scaleY(0); } }

/* lists */
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #e3f6e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%230f7a27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: baseline; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -.025em; font-weight: 600; }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 15px; transform: translateY(-3px); }
.chipl { display: flex; flex-wrap: wrap; gap: 8px; }
.chipl span { padding: 6px 12px; border-radius: 980px; background: #fff; font-size: 14px; box-shadow: 0 0 0 1px var(--hair); }

/* course cards */
.cc { display: flex; flex-direction: column; background: var(--tile); border-radius: 26px; padding: 30px; min-width: 0; }
.band.tint .cc { background: #fff; }
.cc .top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--green-d); }
.cc .top img { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; background: #fff; }
.cc h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.035em; margin: 14px 0 8px; }
.cc p { margin: 0; color: var(--grey); font-size: 16px; line-height: 1.45; }
.cc .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.cc .meta span { padding: 5px 11px; border-radius: 980px; background: #fff; font-size: 13px; box-shadow: 0 0 0 1px var(--hair); }
.band.tint .cc .meta span { background: var(--tile); box-shadow: none; }
.cc .buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; padding-top: 24px; }
.cc .price { flex-basis: 100%; font-size: 15px; color: var(--grey); }
.cc.soon, .band.tint .cc.soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hair); }

/* downloads */
.dls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--tile); transition: background .2s; }
.band.tint .dl { background: #fff; }
.dl:hover { background: #ececf0; }
.dl .kind { flex: none; width: 44px; height: 52px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); display: grid; place-items: end center; padding-bottom: 8px; font-size: 10px; font-weight: 700; color: #e5484d; letter-spacing: .02em; }
.dl .kind.xls { color: var(--green-d); }
.dl b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.dl small { font-size: 13px; color: var(--grey); }
@media (max-width: 600px) { .dls { grid-template-columns: minmax(0, 1fr); } }

/* videos */
.vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vids { grid-template-columns: minmax(0, 1fr); } }
.vid { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.vid .th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000 center / cover; }
.vid .th::after { content: ''; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%231d1d1f'/%3E%3C/svg%3E") 55% 50% / 26px no-repeat; transition: transform .25s var(--spring); }
.vid:hover .th::after { transform: scale(1.08); }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid b { display: block; margin-top: 12px; font-size: 16px; letter-spacing: -.015em; }
.vid small { display: block; margin-top: 2px; font-size: 14px; color: var(--grey); }

/* quotes */
.qts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .qts { grid-template-columns: minmax(0, 1fr); } }
.qt { margin: 0; display: flex; flex-direction: column; background: var(--tile); border-radius: 22px; padding: 28px; }
.band.tint .qt { background: #fff; }
.qt blockquote { margin: 0; font-size: 17px; line-height: 1.5; letter-spacing: -.015em; }
.qt blockquote::before { content: '“'; display: block; font-size: 44px; line-height: .6; color: var(--green); margin-bottom: 8px; }
.qt figcaption { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--grey); }
.qt figcaption b { display: block; color: var(--ink); font-size: 14px; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 760px) { .gal { grid-template-columns: minmax(0, 1fr); } }

/* images */
.fig { margin: 0; }
.fig-img, .fig img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .h2 { text-align: left; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--grey); font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--grey); font-size: 17px; line-height: 1.55; max-width: 720px; }

/* articles */
.arts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .arts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .arts { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 700px; margin: 0 auto; font-size: 19px; line-height: 1.6; letter-spacing: -.012em; }
.prose h2 { font-size: 28px; letter-spacing: -.03em; line-height: 1.2; margin: 44px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; } .prose li { margin-bottom: 8px; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--green); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.prose a { color: var(--green-d); text-decoration: underline; }
.prose .tbl { margin: 24px 0; }
.back { display: inline-flex; color: var(--green-d); font-size: 15px; margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) { a.tile, .bars i, .vid .th::after { transition: none; animation: none; } }

/* home: the one-line update under the header, and "Latest at marksup" (as on the acads.com home) */
.news-wrap { display: flex; justify-content: center; padding: 14px 16px 0; }
.news { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 14px 5px 5px; border-radius: 980px; background: var(--tile); font-size: 14px; line-height: 20px; color: rgba(0,0,0,.82); transition: background .2s; }
.news:hover { background: #ececf0; color: #000; }
.news .tag { flex: none; padding: 1px 9px; border-radius: 980px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); font-size: 12.5px; font-weight: 600; color: var(--green-d); }
.news .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news .go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-d); }
.news .go .chevs { font-size: 9px; color: var(--green); }
.news:hover .chev { opacity: 1; animation: run .9s var(--ease) infinite; } .news:hover .chev:nth-child(2) { animation-delay: .12s; } .news:hover .chev:nth-child(3) { animation-delay: .24s; }
.news .chev { opacity: .35; } .news .chev:first-child { opacity: 1; }
.latest { padding: 64px 0 80px; }
.latest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.latest-head h2 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--grey); letter-spacing: -.01em; }
.latest-nav { display: flex; gap: 6px; }
.latest-nav button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--tile); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.latest-nav button:hover { background: #e8e8ed; }
.latest-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px max(22px, calc((100vw - var(--wrap)) / 2 + 22px)) 4px; scroll-padding: 0 max(22px, calc((100vw - var(--wrap)) / 2 + 22px)); }
.latest-row::-webkit-scrollbar { display: none; }
.lt { flex: none; width: 300px; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 14px; background: var(--tile); transition: background .2s; }
.lt:hover { background: #ececf0; }
.lt img { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); padding: 2px; }
.lt span { display: flex; flex-direction: column; min-width: 0; }
.lt small { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--green-d); }
.lt b { font-size: 14.5px; line-height: 19px; font-weight: 600; color: rgba(0,0,0,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .lt { width: 260px; } .news { font-size: 13px; } }

/* active exams (ACTIVE in marksup_content.py): a live dot in the header, a LIVE badge on the home chips */
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(26,174,57,.55); } 70% { box-shadow: 0 0 0 7px rgba(26,174,57,0); } 100% { box-shadow: 0 0 0 0 rgba(26,174,57,0); } }
.nav-links a.live::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: var(--green); vertical-align: 2px; animation: live 1.8s infinite; }
.chip { position: relative; }
.chip.live::after { content: 'LIVE'; position: absolute; top: -8px; right: 12px; padding: 1px 6px; border-radius: 980px; background: var(--green); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; line-height: 14px; }
@media (prefers-reduced-motion: reduce) { .nav-links a.live::after { animation: none; } }
