/* Course pages: the courses list, a course page and every section type in the library.
   Mobile first; the desktop layout is in the min-width query at the end. Flat colours only. */

.course-page main > section + section { border-top: 1px solid var(--line); }
.course-page main > section.final { border-top: 0; }

/* Section heading and intro, sized for a phone. The heading always keeps the same distance to what follows;
   an intro (optional in the CMS) tucks under the heading and takes that distance over. */
.sec-h { font-size: 27px; line-height: 1.5; margin-bottom: 30px; }
.sec-h + .sec-intro { margin-top: -20px; }
.sec-intro { font-size: 16.5px; margin-bottom: 30px; }
/* no lone last words, whatever length the CMS text is */
main :is(p, li, h4, dd, figcaption) { text-wrap: pretty; }
.sec-body > :last-child, .sec-body > .rich:last-child { margin-bottom: 0; }
/* On a phone the side label would repeat the heading under it */
.sec:has(.sec-h) > .label { display: none; }

/* ───────── Motion ─────────
   Content rises in once as it scrolls into view; lists follow one item at a time (--i is set by course.js). */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv .stg > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
.js .rv.in .stg > * { opacity: 1; transform: none; }

/* ───────── Page head (courses list, gallery) ───────── */
.page-head { padding-top: calc(var(--header) + 36px); padding-bottom: 4px; }
.page-h { font-family: var(--display); font-size: 48px; line-height: 1.3; }
.page-sub { color: var(--muted); font-size: 17px; margin-top: 6px; max-width: 520px; }
.courses-sec { border-top: 0 !important; padding-top: 36px; }
.course-list { display: grid; gap: 16px; }

/* Course card */
.ccard { display: block; text-decoration: none; border-radius: 22px; padding: 22px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--spring), box-shadow .3s; }
.ccard:active { transform: scale(.985); }
.ccard-when { font-size: 14px; color: var(--muted); }
.ccard-when b { color: #fff; font-weight: 500; }
.ccard-main { display: grid; gap: 24px; margin-top: 12px; }
.ccard-h { font-family: var(--display); font-size: 26px; line-height: 1.45; text-wrap: balance; }
.ccard-sum { color: var(--muted); font-size: 16px; margin: 8px 0 14px; }
/* the dots sit in the gap; the one before the first item of each line falls outside and is clipped */
.meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 21px; overflow: hidden; font-size: 14px; color: var(--muted); }
.meta li { position: relative; }
.meta li::before { content: "·"; position: absolute; inset-inline-start: -13px; }
.ccard-date { display: none; }
.ccard-foot { display: grid; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ccard .price-now { font-size: 40px; }
.ccard .btn { box-shadow: none; }

/* ───────── Hero ───────── */
.hero { position: relative; padding: calc(var(--header) + 14px) 0 0; overflow: clip; }
.hero-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.hero-top b { color: #fff; font-weight: 500; }
.hero-top .sep { opacity: .6; }

/* The title with its long stroke (kashida), as on the invite */
.kt { --kt: 15.4vw; position: relative; font-family: var(--display); font-weight: 700; font-size: var(--kt); line-height: 1.32; margin: 14px 0 15vw; }
.kt-main { display: block; white-space: nowrap; overflow-x: clip; overflow-y: visible; margin-inline-end: calc(-1 * var(--gutter)); }
.kt-tail { position: absolute; left: 0; top: 88%; font-weight: 500; font-size: 7.2vw; line-height: 1.3; white-space: nowrap; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-lead { font-size: 18px; line-height: 1.85; color: rgba(255, 255, 255, .86); }
.hero-lead strong { color: #fff; }
.hero-bullets { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.hero-bullets li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; line-height: 1.75; }
.hero-bullets .ic { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.hero-buy { display: grid; gap: 20px; margin-top: 34px; }
.hero-buy .btn { width: 100%; }
.hero-media { order: -1; margin: 4px 0 26px; }

/* Price: the full price leads; the crossed-out list price and the installment option stay quiet */
.price { display: grid; gap: 4px; }
.price-main { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-now { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1.05; }
.price-now .money { gap: .14em; }
.price-was { font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--faint); }
.price-split { font-size: 15px; color: var(--muted); }
.price-md .price-now { font-size: 48px; }
/* text-decoration does not reach into the inline-flex price, so the strike is drawn */
.price-was, .plan-price s { text-decoration: none; position: relative; width: fit-content; }
.price-was::after, .plan-price s::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 1.5px; background: currentColor; border-radius: 1px; }

.seats { font-size: 14px; color: var(--muted); }

.facts { list-style: none; padding: 22px 0 28px; margin: 40px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: rgba(255, 255, 255, .86); }
.facts .ic { width: 22px; height: 22px; flex: none; opacity: .8; }

/* Entrance on load: the stroke draws out of the last letter, then the rest settles in */
/* fill "backwards": once done, the animation lets go, so nothing keeps a transform (a lifted video must escape the hero) */
.js .hero .kt-run { animation: stroke 1.3s var(--ease) .2s backwards; }
.js .hero .kt-tail { animation: rise .9s var(--ease) 1.05s backwards; }
.js .hero .hero-top, .js .hero .hero-lead, .js .hero .hero-media, .js .hero .hero-bullets, .js .hero .hero-buy, .js .hero .facts { animation: rise .9s var(--ease) backwards; }
.js .hero .hero-top { animation-delay: .05s; }
.js .hero .hero-media { animation-delay: .35s; }
.js .hero .hero-lead { animation-delay: .45s; }
.js .hero .hero-bullets { animation-delay: .55s; }
.js .hero .hero-buy { animation-delay: .65s; }
.js .hero .facts { animation-delay: .75s; }
@keyframes stroke { from { clip-path: inset(-150% -10% -150% 100%); } to { clip-path: inset(-150% -10% -150% 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ───────── Video note: round, like Telegram ───────── */
.vnote { --d: 76px; margin: 0; position: relative; display: flex; align-items: center; gap: 14px; }
.vnote-ring { position: relative; flex: none; width: var(--d); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); }
.vnote-clip { position: absolute; inset: 4px; border-radius: 50%; overflow: hidden; isolation: isolate; background: var(--navy); }
.vnote-poster { position: absolute; left: 50%; bottom: 0; width: 88%; max-width: none; transform: translateX(-50%); }
.vnote video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.vnote.has-frame video { opacity: 1; }
.vnote-progress { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.vnote-progress circle { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); opacity: 0; transition: opacity .3s; }
.vnote.playing .vnote-progress circle { opacity: 1; }
.vnote-btn { all: unset; position: absolute; inset: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.vnote-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.vnote-play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--blue); box-shadow: 0 8px 20px -8px rgba(1, 20, 32, .6); transition: transform .45s var(--spring), opacity .3s; }
.vnote-play .ic { width: 16px; height: 16px; } /* media controls keep their direction in RTL (HIG); the path is centred on its centroid */
.vnote-btn:hover .vnote-play { transform: scale(1.07); }
.vnote.playing:not(.paused) .vnote-play { opacity: 0; transform: scale(.6); }
.vnote-dur { display: none; position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: rgba(1, 20, 32, .55); font-size: 13px; font-variant-numeric: tabular-nums; pointer-events: none; }
.vnote figcaption { display: grid; gap: 1px; line-height: 1.55; }
.vnote figcaption b { font-size: 16px; font-weight: 500; }
.vnote figcaption > span { font-size: 14px; color: var(--muted); }
.vnote .ph-tag { top: -10px; inset-inline-end: auto; left: 0; }
/* Telegram enlarges a round video while it plays: on a phone it lifts out of the row into the middle of the screen */
.vnote-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 108, .94); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.vnote-scrim.on { opacity: 1; pointer-events: auto; }
.vnote-ring.lifted { position: fixed; z-index: 81; margin: 0; }
.vnote.lifted .vnote-dur { display: block; }
.vnote.lifted .vnote-play { width: 60px; height: 60px; }
.vnote.lifted .vnote-play .ic { width: 24px; height: 24px; }
.vnote.lifted .vnote-clip { inset: 6px; }
.vnote-close { position: fixed; z-index: 82; top: calc(14px + env(safe-area-inset-top)); left: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.vnote-close.on { opacity: 1; pointer-events: auto; }


/* ───────── Voice note: laid out like a messaging app's voice message ─────────
   avatar · play · waveform on one centre line; the duration under the waveform's start; a knob marks the position */
.voice { display: grid; grid-template-columns: 48px 32px minmax(0, 1fr); grid-template-rows: 32px auto; column-gap: 10px; row-gap: 2px; align-items: center; max-width: 420px; padding: 10px 14px 8px 16px; border-radius: 22px; border-start-start-radius: 6px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.voice-av { grid-row: 1 / 3; grid-column: 1; position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); }
.voice-av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.voice-mic { position: absolute; left: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--navy); box-shadow: 0 0 0 2px var(--navy); transition: background .3s; }
.voice.played .voice-mic { background: var(--ok); }
.voice-play { all: unset; grid-row: 1; grid-column: 2; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: #fff; border-radius: 50%; }
.voice-play svg { width: 26px; height: 26px; transition: transform .35s var(--spring); }
.voice-play:active svg { transform: scale(.85); }
.voice-play .i-pause, .voice.playing .voice-play .i-play { display: none; }
.voice.playing .voice-play .i-pause { display: block; }
.voice-play:disabled { opacity: .4; cursor: default; }
.voice-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.voice-wave { --pos: 0; grid-row: 1; grid-column: 3; position: relative; display: flex; align-items: center; gap: 2px; height: 32px; cursor: pointer; direction: ltr; transform: scaleX(-1); touch-action: none; }
.voice-wave i { flex: 1; min-width: 2px; height: calc(var(--h) * 26px); min-height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .32); transition: background .15s; }
.voice-wave i.on { background: #fff; }
.voice-knob { position: absolute; top: 50%; left: calc(var(--pos) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--navy); transition: transform .3s var(--spring); pointer-events: none; }
.voice.playing .voice-knob { transform: scale(1.15); }
.voice-wave:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.voice-meta { grid-row: 2; grid-column: 3; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.voice-time { font-variant-numeric: tabular-nums; }
.voice-speed { all: unset; cursor: pointer; font-size: 11.5px; font-weight: 600; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; opacity: 0; transition: opacity .3s; }
.voice.playing .voice-speed, .voice.paused .voice-speed { opacity: 1; }
.voice-note-line { margin-top: 10px; font-size: 13.5px; color: var(--faint); }

.media-sec { display: grid; gap: 24px; position: relative; }

/* ───────── Journey: stations along a track that fills as you read ───────── */
.journey { list-style: none; margin: 4px 0 0; padding: 0; }
.jstep { position: relative; padding-inline-start: 56px; padding-bottom: 34px; }
.jstep:last-child { padding-bottom: 0; }
.jstep:not(:last-child)::before, .jstep:not(:last-child)::after { content: ""; position: absolute; right: 17px; top: 42px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line); }
.jstep:not(:last-child)::after { background: #fff; transform-origin: top; transform: scaleY(0); transition: transform .9s var(--ease); }
.jstep.filled::after { transform: scaleY(1); }
.jnode {
  position: absolute; right: 0; top: 0; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); font-family: var(--display); font-weight: 700; font-size: 16px;
  transition: background .5s var(--ease), color .5s, box-shadow .5s, transform .6s var(--spring);
}
.jstep.on .jnode { background: #fff; color: var(--blue); box-shadow: none; transform: scale(1.06); }
.jstep h4 { font-family: var(--display); font-size: 21px; line-height: 1.5; margin: 2px 0 4px; }
.jstep .rich { color: var(--muted); font-size: 16px; max-width: 520px; }

/* ───────── Audience ───────── */
.aud { display: grid; gap: 34px; }
.aud-col h4 { font-size: 17px; font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.aud-col ul { list-style: none; padding: 0; margin: 0; }
.aud-col li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.8; }
.aud-col .ic { flex: none; margin-top: 4px; }
.yes .ic { color: var(--ok); }
.no li { color: var(--muted); }
.no .ic { color: var(--faint); }
.aud-col strong { color: #fff; font-weight: 500; }

/* ───────── Curriculum ───────── */
.cur-sum { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.cur .row { grid-template-columns: 28px minmax(0, 1fr) 16px; column-gap: 12px; row-gap: 0; padding-block: 18px; align-items: start; }
.rows.cur > li:first-child .row { border-top: 1px solid var(--line); }
.cur-n { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--faint); padding-top: 3px; transition: color .3s; }
.open .cur-n { color: #fff; }
.cur-t { font-family: var(--display); font-size: 19px; line-height: 1.55; }
.cur-d { grid-column: 2; font-size: 13.5px; color: var(--muted); }
.cur .row .plus { grid-row: 1 / 3; grid-column: 3; margin-top: 9px; }
.cur .panel-inner > div { padding-bottom: 26px; }
.cur-summary { color: var(--muted); margin-bottom: 16px; font-size: 16px; }
.cur-lessons { list-style: none; counter-reset: l; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15.5px; line-height: 1.75; color: rgba(255, 255, 255, .86); }
.cur-lessons li { counter-increment: l; position: relative; padding-inline-start: 40px; }
.cur-lessons li::before { content: counter(l); position: absolute; inset-inline-start: 0; top: 1px; width: 22px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; text-align: start; }
.checkpoint { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15.5px; line-height: 1.8; }
.checkpoint b { font-weight: 500; color: var(--accent); }

/* ───────── Schedule ───────── */
.cal { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 8px; }
.cal-day { display: flex; flex-direction: column; align-items: center; padding: 12px 4px 10px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s, opacity .4s; }
.cal-num { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.25; }
.cal-mo { font-size: 12.5px; color: var(--muted); }
.cal-day.next { background: #fff; color: var(--blue); box-shadow: none; }
.cal-day.next .cal-mo { color: rgba(20, 32, 153, .7); }
.cal-day.past { opacity: .4; }
.text-link { all: unset; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15.5px; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 7px; transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: #fff; }
.text-link[hidden] { display: none; }
.text-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* ───────── What's new ───────── */
.news { list-style: none; padding: 0; margin: 0; }
.news li { position: relative; padding: 14px 0; padding-inline-start: 22px; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.news li::before { content: ""; position: absolute; right: 2px; top: 1.45em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ───────── Quote ───────── */
.quote { padding-block: 72px; }
.quote figure { margin: 0 auto; max-width: 860px; text-align: center; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.6; text-wrap: balance; }
.quote figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* ───────── Case study ───────── */
.case { border-radius: 22px; padding: 22px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.case-app { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.case-icon { width: 60px; height: 60px; border-radius: 22.37%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.case-name { display: grid; line-height: 1.5; }
.case-name b { font-size: 19px; }
.case-name a { text-decoration: none; }
.case-name a::after { content: " ↗"; font-size: .75em; color: var(--muted); }
.case-name span { font-size: 14px; color: var(--muted); }
.case-story { color: rgba(255, 255, 255, .86); font-size: 16.5px; }
.case-story strong { color: #fff; }
.case-steps { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.case-steps b { display: block; }
.case-metrics { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }

.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px 12px; margin: 0; }
.stats dt { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 6.2vw, 26px); line-height: 1.3; text-wrap: balance; }
.stats dd { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ───────── Toolkit ───────── */
.tools { list-style: none; padding: 0; margin: 0; }
.tool { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tool:first-child { border-top: 1px solid var(--line); }
.tool-logo { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.tool-logo .brand { width: 20px; height: 20px; }
.tool-txt { display: grid; line-height: 1.6; }
.tool-txt b { font-size: 16px; font-weight: 500; }
.tool-txt span { font-size: 14.5px; color: var(--muted); }

/* ───────── Instructor ───────── */
.inst { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.inst-photo { position: relative; flex: none; width: 92px; aspect-ratio: 1; border-radius: 22.37%; overflow: hidden; background: var(--navy); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.inst-photo img { position: absolute; left: 4%; bottom: 0; width: 92%; max-width: none; }
.inst-body { min-width: 0; }
.inst-wordmark { --H: 28px; display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 8px; }
.wm { display: block; background: #fff; -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat; mask: var(--m) 0 0 / 100% 100% no-repeat; }
.wm1 { --m: url(/assets/img/wordmark-1.svg); height: var(--H); aspect-ratio: 3.6; }
.wm2 { --m: url(/assets/img/wordmark-2.svg); height: calc(var(--H) * 1.2308); aspect-ratio: 2.925; margin-top: calc(var(--H) * .4769); }
.inst-name { font-family: var(--display); font-size: 30px; line-height: 1.3; }
.inst-role { color: var(--muted); font-size: 15px; line-height: 1.6; }
.inst-bio { color: rgba(255, 255, 255, .86); font-size: 16.5px; }
.inst-co { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.inst-co li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.inst-co img { width: 30px; height: 30px; border-radius: 22.37%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.inst-stats { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.inst-links { margin-top: 22px; }

/* ───────── Testimonials ───────── */
.quotes { list-style: none; padding: 0; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.quotes::-webkit-scrollbar { display: none; }
.tcard { flex: 0 0 84%; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 22px; border-radius: 22px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.tcard blockquote { margin: 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.95; }
.tby { display: flex; align-items: center; gap: 12px; }
.tby img, .tav { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.tav { display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; }
.tby span { display: grid; line-height: 1.5; }
.tby b { font-size: 15px; font-weight: 500; }
.tby small { font-size: 13px; color: var(--muted); }

/* ───────── Fit quiz: one question at a time ───────── */
.quiz { position: relative; border-radius: 24px; padding: 22px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.quiz-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 22px; }
.quiz-bar span { display: block; height: 100%; width: var(--progress, 0%); background: #fff; border-radius: inherit; transition: width .6s var(--ease); }
.quiz-q { list-style: none; padding: 0; margin: 0; display: grid; }
.quiz-q li { grid-area: 1 / 1; }
.quiz-count { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.quiz-text { font-size: 20px; font-weight: 500; line-height: 1.65; min-height: 3.3em; }
.quiz-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.quiz-ans button { all: unset; display: grid; place-items: center; height: 54px; border-radius: 999px; cursor: pointer; font-size: 17px; font-weight: 500; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); transition: background .25s, color .25s, box-shadow .25s, transform .4s var(--spring); }
.quiz-ans button:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.quiz-ans button:active { transform: scale(.96); }
.quiz-ans button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: none; }
.quiz-ans button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.quiz-why { display: none; }
.quiz-back { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
/* without JavaScript the questions simply list */
.quiz:not(.on) .quiz-q { gap: 28px; }
.quiz:not(.on) .quiz-q li { grid-area: auto; }
.quiz:not(.on) .quiz-bar { display: none; }
.quiz.on .quiz-q li { opacity: 0; visibility: hidden; transform: translateX(-28px); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .55s; }
.quiz.on .quiz-q li.past { transform: translateX(28px); }
.quiz.on .quiz-q li.now { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease) .1s, transform .55s var(--ease) .1s, visibility 0s; }
.quiz.done .quiz-q, .quiz.done .quiz-back { display: none; }
.quiz-res { animation: rise .6s var(--ease) both; }
.quiz-res[hidden] { display: none; }
.quiz-res h4 { font-family: var(--display); font-size: 26px; line-height: 1.45; margin-bottom: 6px; }
.quiz-res .rich { color: rgba(255, 255, 255, .86); font-size: 16.5px; }
.quiz-notes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.quiz-notes li { padding: 12px 14px; border-radius: 14px; background: var(--lift); font-size: 15px; line-height: 1.75; }
.quiz-notes li b { display: block; font-weight: 500; margin-bottom: 2px; }
.quiz-notes li .rich { color: var(--muted); font-size: 15px; }
.quiz-res-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.quiz-res-act .btn { flex: 1 1 100%; }
.quiz-again { font-size: 14.5px; color: var(--muted); }

/* ───────── Pricing ───────── */
.price-card { border-radius: 24px; padding: 24px; background: #fff; color: var(--blue); }
.price-card .price-was { color: rgba(20, 32, 153, .45); }
.price-card .price-split, .price-card .seats { color: rgba(20, 32, 153, .66); }
.price-card .btn { background: var(--blue); color: #fff; box-shadow: none; width: 100%; }
.pc-head { display: grid; gap: 20px; }
.includes { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(20, 32, 153, .12); }
.includes li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.7; }
.includes .ic { color: var(--blue); margin-top: 3px; flex: none; }
.price-card .seats { margin-top: 16px; }
.plans-alt { list-style: none; padding: 0; margin: 14px 0 0; }
.plans-alt li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.btn.sm { height: 42px; padding-inline: 18px; font-size: 15px; gap: 8px; box-shadow: none; }
.guarantee { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--lift); font-size: 15.5px; }
.guarantee .ic { color: var(--ok); margin-top: 3px; flex: none; }
.paylogos { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; color: rgba(255, 255, 255, .88); }
.paylogos .brand { height: 26px; width: 44px; }
.paylogos .pl-mada { width: 50px; height: 18px; }
.paylogos .pl-mc { width: 34px; }
.paylogos .pl-ap, .paylogos .pl-sp { width: 64px; height: 40px; }
.pl-txt { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* ───────── Ask me: a conversation ───────── */
.chat { border-radius: 26px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-inline: calc(-1 * var(--gutter) + 8px); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); object-fit: cover; object-position: top; }
.chat-head b { font-size: 16px; font-weight: 500; }
.chat-log { display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 6px; }
.qa { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.msg { max-width: 86%; padding: 10px 15px; border-radius: 20px; font-size: 16px; line-height: 1.8; }
.msg.me { align-self: flex-end; background: #fff; color: var(--blue); border-end-end-radius: 6px; }
.msg.them { align-self: flex-start; background: rgba(255, 255, 255, .1); border-end-start-radius: 6px; }
.msg.them:has(.voice) { padding: 0; background: none; max-width: 92%; }
.msg.them .voice { background: rgba(255, 255, 255, .1); box-shadow: none; }
.msg.greet { margin-bottom: 8px; }
.chat.on .qa-bank > .qa { display: none; }
.chat.on .qa.asked { display: flex; }
.qa.asked .msg.me { animation: pop-in .5s var(--spring) both; transform-origin: bottom left; }
.qa.asked .msg.them:not([hidden]) { animation: pop-in .55s var(--spring) both; transform-origin: bottom right; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; border-radius: 20px; border-end-start-radius: 6px; background: rgba(255, 255, 255, .1); animation: pop-in .35s var(--spring) both; }
.typing[hidden] { display: none; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .7); animation: bounce 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-suggest { padding: 6px 14px 16px; }
.chat-suggest[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.chips button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; font-size: 15px; line-height: 1.55; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); animation: pop-in .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 60ms); transition: background .2s, color .2s, box-shadow .2s; }
.chips button:hover { background: #fff; color: var(--blue); box-shadow: none; }
.chips button:active { transform: scale(.96); }
.chips button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chips .more { box-shadow: none; color: var(--muted); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(255, 255, 255, .3); }
.chat-ask { display: grid; gap: 12px; padding: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.chat-ask-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-ask-btns .btn { flex: 1 1 0; }
.ask-ic { width: 18px; height: 18px; }
.faq-q { font-weight: 500; }
.faq-list .row { grid-template-columns: minmax(0, 1fr) 0 0 20px; }

/* ───────── Closing call to action ───────── */
.final { padding-block: 72px 96px; text-align: center; }
.final-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-h { font-family: var(--display); font-size: 32px; line-height: 1.45; text-wrap: balance; }
.final-text { color: var(--muted); max-width: 480px; font-size: 16.5px; }
.final .price, .final .price-main { justify-items: center; justify-content: center; }
.final .btn { width: 100%; max-width: 420px; }
.final-when { font-size: 14px; color: var(--muted); }

/* ───────── Other library sections ───────── */
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.incl li { display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.incl-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); margin-bottom: 8px; }
.incl b { font-size: 16.5px; font-weight: 500; }
.incl li > span:last-child { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.cmp-scroll { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.cmp th, .cmp td { padding: 12px 10px; text-align: start; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.cmp tbody th { font-weight: 500; }
.cmp td { color: var(--muted); }
.cmp .hl { background: rgba(255, 255, 255, .07); color: #fff; }
.cmp-note { margin-top: 12px; font-size: 13.5px; color: var(--faint); }
.flow { list-style: none; padding: 0; margin: 0; }
.flow li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.flow time { font-family: var(--display); font-weight: 700; font-size: 18px; }
.flow b { display: block; font-weight: 500; }
.flow span { color: var(--muted); font-size: 15px; }
.prose { max-width: 620px; }

/* ───────── Sticky buy bar (phones) ───────── */
.buybar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  padding: 8px; padding-inline-start: 18px; border-radius: 22px; background: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 36px -18px rgba(1, 20, 32, .8);
  transform: translateY(calc(100% + 30px)); transition: transform .6s var(--spring);
}
.buybar.show { transform: none; }
.buybar-price { display: grid; line-height: 1.25; }
.buybar-price .money { font-family: var(--display); font-weight: 700; font-size: 24px; }
.buybar-price small { font-size: 12.5px; color: var(--muted); }
.buybar .btn { height: 48px; padding-inline: 22px 18px; box-shadow: none; }
.draft-bar { position: fixed; z-index: 60; top: calc(var(--header) + 8px); left: 50%; translate: -50% 0; padding: 6px 14px; border-radius: 999px; background: var(--warn); color: #1C1700; font-size: 13px; font-weight: 500; white-space: nowrap; }

/* ───────── Gallery ───────── */
.gal-item { border-top: 1.5px dashed rgba(255, 255, 255, .22); }
.gal-item > section { border-top: 0 !important; }
.gal-tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-top: 22px; font-size: 13.5px; color: var(--muted); }
.gal-tag code { direction: ltr; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #fff; }
.gal-tag b { color: #fff; font-weight: 500; }
.gallery .hero { padding-top: 30px; }

/* ═════════ Larger screens ═════════ */
@media (min-width: 761px) {
  .sec-h { font-size: clamp(30px, 3.2vw, 38px); line-height: 1.45; margin-bottom: 40px; }
  .sec-h + .sec-intro { margin-top: -28px; }
  .sec-intro { font-size: 17.5px; margin-bottom: 40px; }
  /* the side label sits on the heading's first line (its line box is 1.45 × the heading's size) */
  .sec:has(.sec-h) > .label { display: block; padding-top: calc((clamp(30px, 3.2vw, 38px) * 1.45 - 30px) / 2); }

  .page-head { padding-top: calc(var(--header) + 72px); }
  .page-h { font-size: clamp(56px, 7vw, 84px); }
  .page-sub { font-size: 19px; }
  .courses-sec { padding-top: 56px; }

  .ccard { padding: 32px; border-radius: 24px; }
  .ccard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
  .ccard:hover .btn .arr { transform: translateX(-5px); }
  .ccard-main { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; margin-top: 14px; }
  .ccard-h { font-size: clamp(28px, 3.2vw, 36px); }
  .ccard-sum { font-size: 17px; }
  .ccard-date { align-self: start; width: 108px; display: flex; flex-direction: column; align-items: center; padding: 14px 8px 12px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); line-height: 1.5; }
  .ccard-date b { font-family: var(--display); font-size: 44px; line-height: 1.15; color: #fff; }
  .ccard-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 2px; margin-top: 26px; padding-top: 22px; }
  .ccard-foot .price { display: contents; }
  .ccard-foot .price-main { grid-row: 1; grid-column: 1; }
  .ccard-foot .price-split { grid-row: 2; grid-column: 1; }
  .ccard-foot .btn { grid-row: 1; grid-column: 2; }

  .hero { padding-top: calc(var(--header) + 36px); }
  .hero-top { font-size: 15px; }
  .kt { --kt: clamp(60px, 10.6vw, 136px); margin: 18px 0 0; }
  .kt-main { margin-inline-end: calc(-1 * max(var(--gutter), (100vw - var(--wide)) / 2)); }
  .kt-run { position: relative; }
  .kt-tail { left: auto; top: auto; right: .5em; bottom: calc(var(--kt) * .61); font-size: calc(var(--kt) * .3); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; margin-top: 18px; }
  .hero-grid.no-media { grid-template-columns: minmax(0, 1fr); }
  .hero-lead { font-size: 21px; max-width: 620px; }
  .hero-bullets li { font-size: 18px; align-items: center; }
  .hero-bullets .ic { width: 24px; height: 24px; margin-top: 0; }
  .hero-buy { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 40px; row-gap: 4px; margin-top: 44px; }
  .hero-buy .price, .pc-head .price { display: contents; }
  .hero-buy .price-main, .pc-head .price-main { grid-row: 1; grid-column: 1; }
  .hero-buy .price-split, .pc-head .price-split { grid-row: 2; grid-column: 1; }
  .hero-buy .btn, .pc-head .btn { grid-row: 1; grid-column: 2; width: auto; }
  .hero-media { order: 0; margin: 0; justify-self: center; }
  .price-now { font-size: 72px; }
  .price-md .price-now { font-size: 56px; }
  .facts { display: flex; gap: 14px 44px; flex-wrap: wrap; margin-top: 56px; padding: 26px 0 30px; }
  .facts li { font-size: 17px; }

  .vnote { --d: 290px; flex-direction: column; text-align: center; gap: 18px; }
  .vnote-clip { inset: 7px; }
  .vnote-play { width: 62px; height: 62px; }
  .vnote-play .ic { width: 24px; height: 24px; }
  .vnote-dur { display: block; }
  .vnote figcaption b { font-size: 17px; }
  .vnote .ph-tag { top: 6px; }
  .vnote.playable .vnote-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .3); animation: halo 3s var(--ease) infinite; pointer-events: none; }
  .vnote.playing .vnote-ring::after { animation: none; opacity: 0; }
  .vnote-md { --d: 230px; }
  .media-sec { grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }

  .jstep { padding-inline-start: 64px; padding-bottom: 38px; }
  .jstep:not(:last-child)::before, .jstep:not(:last-child)::after { right: 19px; top: 46px; }
  .jnode { width: 40px; height: 40px; font-size: 17px; }
  .jstep h4 { font-size: 23px; }
  .jstep .rich { font-size: 17px; }

  .aud { grid-template-columns: 1fr 1fr; gap: 40px; }

  .cur .row { grid-template-columns: 40px minmax(0, 1fr) auto 20px; align-items: center; padding-block: 20px; }
  .cur-n { padding-top: 0; font-size: 17px; }
  .cur-t { font-size: 22px; }
  .cur-d { grid-column: auto; font-size: 14px; }
  .cur .row .plus { grid-row: auto; grid-column: auto; margin-top: 0; }
  .cur .panel-inner > div { padding-inline-start: 52px; padding-bottom: 32px; }
  .cur-lessons { font-size: 16px; }
  .cur-lessons li { padding-inline-start: 30px; }

  .cal { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 26px; }
  .cal-day { padding: 16px 8px 14px; border-radius: 20px; }
  .cal-num { font-size: 42px; }
  .cal-mo { font-size: 14px; }

  .quote { padding-block: 112px; }
  .quote blockquote p { font-size: clamp(32px, 4.2vw, 50px); }
  .quote figcaption { margin-top: 24px; font-size: 16px; }

  .case { padding: 32px; border-radius: 26px; }
  .case-icon { width: 72px; height: 72px; }
  .case-name b { font-size: 21px; }
  .case-story { font-size: 17.5px; max-width: 600px; }
  .stats { gap: 24px; }
  .stats dt { font-size: 32px; }
  .stats dd { font-size: 14px; }

  .tools { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .tool:nth-child(2) { border-top: 1px solid var(--line); }

  .inst { gap: 32px; margin-bottom: 26px; }
  .inst-photo { width: 168px; }
  .inst-wordmark { --H: 40px; margin-bottom: 12px; }
  .inst-role { font-size: 17px; }
  .inst-bio { font-size: 17.5px; max-width: 640px; }

  .quotes { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; overflow: visible; }
  .tcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tcard { padding: 26px; }

  .quiz { padding: 32px; }
  .quiz-text { font-size: 23px; }
  .quiz-ans { max-width: 360px; }
  .quiz-res-act .btn { flex: 0 0 auto; }

  .price-card { padding: 32px; }
  .pc-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 4px; }
  .price-card .btn { width: auto; }

  .chat { margin-inline: 0; }
  .chat-log { padding: 22px 18px 8px; }
  .msg { font-size: 16.5px; max-width: 82%; }
  .chat-suggest { padding: 6px 18px 18px; }
  .chat-ask { grid-template-columns: 1fr auto; align-items: center; padding: 16px 18px; }
  .chat-ask-btns .btn { flex: 0 0 auto; }

  .final { padding-block: 104px 128px; }
  .final-h { font-size: clamp(36px, 4.6vw, 56px); }
  .final-text { font-size: 18px; }
  .final .btn { width: auto; }

  .incl { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .cmp { font-size: 16px; }
  .flow li { grid-template-columns: 76px minmax(0, 1fr); }
  .flow time { font-size: 20px; }

  .buybar { display: none; }
}

@keyframes halo { 0% { transform: scale(.96); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv .stg > * { opacity: 1; transform: none; }
}

/* five pay logos stay on one line down to 360px */
@media (max-width: 420px) {
  .paylogos { gap: 12px; }
  .paylogos .brand { width: 39px; height: 23px; }
  .paylogos .pl-mada { width: 44px; height: 16px; }
  .paylogos .pl-mc { width: 30px; }
  .paylogos .pl-ap, .paylogos .pl-sp { width: 56px; height: 35px; }
}
