/* Hallmark · shape: prospectus · genre: editorial · theme: brand · redesign: full
 * paper: oklch(97.7% 0.010 81.8) · accent: oklch(56.1% 0.171 36.1) · display: Bricolage Grotesque · body: Spectral · hero: split, offer card · nav: masthead bar · footer: closing call · signature: his own photograph with the weekday class time in the student's city, with the monthly fee
 * axes: light/grotesk-heavy/warm · posture: split · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: P, a calm prospectus is a safe tone; sharpened it by leading with the class time in the reader's own city instead of the seal */
/* Hallmark · dropped #ring, the round seal · its ring text was tracked capitals (67) and the monogram already carries the brand */
/* Hallmark · moved the section headlines under plain headings: "For Filipinos abroad who are good at their work…", "School was the first chance. This one is yours.", "You speak in every class.", "Speaking with Emphasis on Grammar", "You talk to me first. Then you decide.", "Before you message.", "Study on your own time." are now the lead line under each heading · 54 names the eyebrows they sat under */
/* Hallmark · reworded hero lead "Small group. On your phone. You speak in every class, and I correct you right away." to "Live English classes for Filipinos working abroad. You speak in every class." · 58; small group, phone and live correction stay in the figures, How to join and the FAQ */
/* Hallmark · waive 49b · links sit inside running sentences, not controls · the owner wording of his page name wraps like any words in a sentence at 320 to 375px */
/* Hallmark · waive 71 · each h3 has its own Option label 2px above it inside the same fee row · the label belongs to the title, and the row rule above carries the separation */
/* Hallmark · waive 44c · split posture at 1440, offer card in the right column · the card is the signature and sits beside the headline by design, 64px apart */
/* Hallmark · reworded "Message Dr. Dennis on WhatsApp" to "Message on WhatsApp"; "Month 1 · Beginner" to "Month 1: Beginner" · 49b, 63 */
@import url("./tokens.css");
@import url("./base.css");

:root { --display-weight: 700; --tracking-display: -0.025em; }
body { font-size: 1.125rem; line-height: 1.6; }
h1 { max-width: 14ch; }
h2 { max-width: 18ch; }

/* top line */
.util { background: var(--color-brand-deep); color: var(--color-on-brand); font-size: var(--text-sm); }
.util .container { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); justify-content: space-between; padding-block: var(--space-xs); }
.util a { color: var(--color-on-brand); }

/* masthead */
.mast { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.mast .container { display: flex; align-items: center; gap: var(--space-lg); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; margin-right: auto; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand span { display: block; font-size: var(--text-sm); color: var(--color-muted); line-height: 1.2; }
.brand strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.1; letter-spacing: -0.01em; }
.mast nav { display: flex; gap: var(--space-md); font-size: var(--text-md); }
.mast nav a { white-space: nowrap; }
.mast nav a { text-decoration: none; color: var(--color-ink-2); }
.mast nav a:hover { color: var(--color-ink); text-decoration: underline; }
@media (max-width: 76rem) { .mast nav { display: none; } }

/* buttons: one primary style, one quiet style */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); letter-spacing: 0; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn.go { background: var(--color-accent); color: var(--color-accent-ink); }
.btn.go:hover { background: color-mix(in oklab, var(--color-accent) 86%, black); }
.btn.go:active { background: color-mix(in oklab, var(--color-accent) 76%, black); }
.btn.ghost { border-color: currentColor; color: var(--color-ink); background: transparent; }
.btn.ghost:hover { background: var(--color-paper-2); }
.btn.ghost:active { background: var(--color-paper-3); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.mast .btn { min-height: 44px; }
.acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* hero */
.hero { padding-block: var(--space-xl) 0; }
.hero > .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { color: var(--color-brand); font-size: clamp(2.75rem, 3.6vw + 1rem, 4.5rem); }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }
.hero .acts { margin-top: var(--space-xl); }
.hero .sig { margin-top: var(--space-lg); font-family: var(--font-outlier); font-weight: 700; font-size: var(--text-xl); color: var(--color-accent); transform: rotate(-1.5deg); transform-origin: left; }
.hero .more { margin-top: var(--space-md); font-size: var(--text-md); color: var(--color-muted); }

.visual { position: relative; }
.portrait { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-3); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero .portrait { width: 88%; margin-left: auto; }
.offer { position: relative; z-index: var(--z-raised); width: 78%; margin-top: calc(var(--space-4xl) * -1); background: var(--color-brand); color: var(--color-on-brand); border-radius: var(--radius-card); padding: var(--space-lg); }
.hero .who { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-ink-2); max-width: 44ch; }
.offer h2 { font-size: var(--text-title); max-width: none; color: var(--color-on-brand); }
.offer .days { color: var(--color-on-brand-muted); font-size: var(--text-md); margin-top: var(--space-2xs); }
.offer dl { margin: var(--space-md) 0 0; display: grid; gap: var(--space-md); }
.offer dl div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding-top: var(--space-md); border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-on-brand) 25%, transparent); }
.offer dt { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.offer dd { margin: 0; color: var(--color-on-brand-muted); font-size: var(--text-md); line-height: 1.35; }
.offer .price { margin-top: var(--space-md); display: flex; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; }
.offer .price b { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.03em; }
.offer .price span { color: var(--color-on-brand-muted); font-size: var(--text-md); }
.offer .price a { margin-left: auto; color: var(--color-on-brand); font-size: var(--text-md); }
.offer .teacher { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-on-brand) 25%, transparent); font-size: var(--text-md); color: var(--color-on-brand-muted); }
.offer .teacher b { color: var(--color-on-brand); font-weight: 600; }

/* credential figures */
.figs { margin-top: var(--space-xl); border-block: var(--rule-hair) solid var(--color-rule); }
.hero .figs .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.fig { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; display: grid; gap: var(--space-2xs); align-content: start; }
.fig + .fig { padding-left: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.fig b { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; color: var(--color-brand); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fig span { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.4; }

/* sections */
.sec { padding-block: var(--section-gap-s); }
.sec.tint { background: var(--color-paper-2); }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-xl); }
.head h2 { color: var(--color-brand); }
.head .lead { font-size: var(--text-xl); line-height: 1.3; color: var(--color-ink-2); max-width: 30ch; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.gap { margin-top: var(--space-md); }
.muted { color: var(--color-muted); }

/* who + why */
.aims { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; gap: 0; }
.aims li { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); display: grid; gap: var(--space-3xs); }
.aims b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.aims span { color: var(--color-ink-2); }
.why { background: var(--color-brand); color: var(--color-on-brand); border-radius: var(--radius-card); padding: var(--space-xl); }
.why h2 { color: var(--color-on-brand); font-size: var(--text-2xl); max-width: none; }
.why .line { margin-top: var(--space-md); font-size: var(--text-xl); line-height: 1.3; }
.why p:not(.line):not(.sigs) { color: var(--color-on-brand-muted); }
.why .sigs { margin-top: var(--space-xl); font-family: var(--font-body); font-style: italic; font-weight: 600; font-size: var(--text-xl); line-height: 1.2; }
.why .sigs span { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--text-md); color: var(--color-on-brand-muted); margin-top: var(--space-2xs); }

/* method */
.syll { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.syll li { counter-increment: s; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.syll li::before { content: counter(s); font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1; color: var(--color-accent); }
.syll b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.syll span { color: var(--color-ink-2); }
.ladder-t { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); margin-bottom: var(--space-md); }
.ladder { display: grid; gap: var(--space-xs); }
.rung { background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-md) var(--space-lg); }
.rung:nth-child(2) { margin-left: 8%; }
.rung:nth-child(3) { margin-left: 16%; background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-brand); }
.rung h3 { font-size: var(--text-lg); max-width: none; }
.rung p { font-size: var(--text-md); margin-top: var(--space-3xs); }
.rung:nth-child(3) p { color: var(--color-on-brand-muted); }

/* teacher */
.fac { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.bio p + p, .bio .portrait + p { margin-top: var(--space-md); }
.bio .portrait { margin-bottom: var(--space-lg); }
.bio blockquote { margin: var(--space-xl) 0 0; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-xl); line-height: 1.35; font-style: italic; color: var(--color-brand); }
.cv { margin: 0; }
.cv div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.cv dt { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--color-brand); }
.cv dd { margin: 0; font-size: var(--text-md); color: var(--color-ink-2); }

/* fees */
.course { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--color-ink-2); margin-bottom: var(--space-md); }
.fees { border-top: 2px solid var(--color-brand); }
.fee { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2.5fr); gap: var(--space-lg); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); align-items: start; }
.fee .code { font-size: var(--text-sm); color: var(--color-muted); }
.fee h3 { font-size: var(--text-title); margin-top: var(--space-3xs); color: var(--color-brand); }
.fee .rec { display: inline-block; margin-top: var(--space-xs); font-size: var(--text-sm); padding: var(--space-3xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); }
.fee .when, .fee .len { font-size: var(--text-md); line-height: 1.45; }
.fee .amt { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.02em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.fee .amt small { display: block; margin-top: var(--space-xs); font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); letter-spacing: 0; color: var(--color-muted); }
.fine { margin-top: var(--space-md); font-size: var(--text-md); color: var(--color-ink-2); max-width: 75ch; }

.grad { margin-top: var(--space-xl); display: grid; gap: var(--space-3xs); padding: var(--space-lg); background: var(--color-brand); color: var(--color-on-brand); border-radius: var(--radius-card); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.grad:hover { background: var(--color-brand-deep); }
.grad:active { background: var(--color-brand-deep); }
.grad:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.grad .code { color: var(--color-on-brand-muted); font-size: var(--text-sm); }
.grad b { font-family: var(--font-display); font-size: var(--text-title); line-height: 1.2; }
.grad span:last-child { color: var(--color-on-brand-muted); font-size: var(--text-md); }

/* reading lab */
.lab-steps { margin-top: var(--space-lg); }
.lab-figs { margin: var(--space-lg) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-hair) solid var(--color-rule); }
.lab-figs div { padding: var(--space-md) var(--space-md) 0 0; }
.lab-figs dt { font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl); line-height: 1; color: var(--color-brand); font-variant-numeric: tabular-nums; }
.lab-figs dd { margin: var(--space-2xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.lab-side { display: grid; gap: var(--space-lg); }
.shot { margin: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--color-brand-deep); }
.shot img { width: 100%; height: auto; }
.science { background: var(--color-brand); color: var(--color-on-brand); border-radius: var(--radius-card); padding: var(--space-lg); }
.science h3 { color: var(--color-on-brand); }
.science ul { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; gap: var(--space-md); }
.science li { font-size: var(--text-md); color: var(--color-on-brand-muted); }
.science b { color: var(--color-on-brand); font-weight: 600; }
.science cite { display: block; margin-top: var(--space-3xs); font-style: normal; font-size: var(--text-sm); color: var(--color-on-brand-muted); }
.benefits { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.benefits h3 { color: var(--color-brand); }
.benefits ul { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--space-sm) var(--gap-columns); }
.benefits li { padding-left: var(--space-lg); position: relative; }
.benefits li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 2px; background: var(--color-accent); }
.lab-acts { margin-top: var(--space-xl); }

/* join */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--color-brand); color: var(--color-on-brand); font-family: var(--font-display); font-weight: 700; }
.steps b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.steps span { color: var(--color-ink-2); font-size: var(--text-md); }
.side { display: grid; gap: var(--space-lg); }
.times { background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-lg); }
.times h3 { color: var(--color-brand); }
.times dl { margin: var(--space-md) 0 0; }
.times dl div { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.times dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.testband { background: var(--color-brand); color: var(--color-on-brand); border-radius: var(--radius-card); padding: var(--space-lg); }
.testband h3 { color: var(--color-on-brand); }
.testband p { margin: var(--space-xs) 0 var(--space-md); color: var(--color-on-brand-muted); font-size: var(--text-md); }
.testband .btn:focus-visible { outline-color: var(--color-on-brand); }

/* faq */
.faq-head { margin-top: var(--section-gap-s); }
.faq { max-width: 52rem; }
.faq details { border-top: var(--rule-hair) solid var(--color-rule); }
.faq details:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--color-accent); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-brand); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.faq details p { padding-bottom: var(--space-md); color: var(--color-ink-2); }

/* books */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.shelf a { display: grid; gap: var(--space-3xs); padding: var(--space-lg); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-top: 4px solid var(--color-brand); border-radius: var(--radius-card); text-decoration: none; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.shelf a:hover { border-top-color: var(--color-accent); background: var(--color-paper-3); }
.shelf a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.shelf b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: 1.2; }
.shelf span { font-size: var(--text-sm); color: var(--color-muted); }
.books .acts { margin-top: var(--space-lg); }

.books-intro { max-width: 60ch; color: var(--color-ink-2); }
.shelf-row { margin-top: var(--space-xl); }
.shelf-row h2, .shelf-row h3 { max-width: none; font-size: var(--text-title); color: var(--color-brand); padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.covers { margin-top: var(--space-md); display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: var(--space-lg) var(--space-md); }
.book { position: relative; display: grid; align-content: start; gap: var(--space-3xs); text-decoration: none; color: var(--color-ink); }
.book img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); margin-bottom: var(--space-xs); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.book:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--color-brand-deep) 55%, transparent); }
.book:active img { transform: translateY(0); }
.book:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-card); }
.book b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.25; }
.book .sub { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.35; }
.book .free { position: absolute; top: var(--space-xs); left: var(--space-xs); padding: var(--space-3xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) { .book img { transition: none; } .book:hover img { transform: none; } }
@media (max-width: 40rem) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-sm); } }

/* footer */
footer { background: var(--color-brand-deep); color: var(--color-on-brand); padding-block: var(--section-gap-s) var(--space-xl); }
footer .close { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-lg); padding-bottom: var(--space-xl); border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-on-brand) 20%, transparent); }
footer h2 { color: var(--color-on-brand); }
.foot { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); padding-top: var(--space-lg); font-size: var(--text-md); }
.foot a { color: var(--color-on-brand); display: inline-block; padding-block: var(--space-sm); }
.foot span { font-family: var(--font-display); font-weight: 600; }
.social { display: flex; flex-wrap: wrap; gap: var(--space-sm); padding-top: var(--space-lg); }
.social a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid color-mix(in oklab, var(--color-on-brand) 35%, transparent); color: var(--color-on-brand); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); transition: background-color var(--dur-short) var(--ease-out); }
.social a:hover { background: color-mix(in oklab, var(--color-on-brand) 12%, transparent); }
.social a:active { background: color-mix(in oklab, var(--color-on-brand) 20%, transparent); }
.social svg { width: 20px; height: 20px; }
.legal { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-on-brand-muted); max-width: 75ch; }

a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.util a:focus-visible, footer a:focus-visible, .offer a:focus-visible, .why a:focus-visible { outline-color: var(--color-on-brand); }
footer .btn.go:focus-visible { outline-color: var(--color-on-brand); }

@media (max-width: 60rem) {
  .hero > .container, .head, .cols, .fac { grid-template-columns: minmax(0, 1fr); }
  .hero > .container { gap: var(--space-xl); }
  .head { gap: var(--space-md); align-items: start; }
  .hero .figs .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig:nth-child(3) { padding-left: 0; border-left: 0; }
  .fig:nth-child(n+3) { border-top: var(--rule-hair) solid var(--color-rule); }
  .fee { grid-template-columns: minmax(0, 1fr) auto; }
  .fee .when, .fee .len { grid-column: 1 / -1; }
  .fee .amt { grid-column: 2; grid-row: 1; }
}
@media (max-width: 40rem) {
  .brand span { display: none; }
  .mast .btn { padding: 0 var(--space-md); }
  .offer, .why { padding: var(--space-lg); }
  .hero .portrait { width: 100%; }
  .offer { width: auto; margin: calc(var(--space-2xl) * -1) var(--space-md) 0; }
  .cv div { grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); }
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .rung:nth-child(2) { margin-left: 5%; } .rung:nth-child(3) { margin-left: 10%; }
  .btn { white-space: normal; text-align: center; }
  .acts .btn { flex: 1 1 100%; }
  .mast .btn { white-space: nowrap; }
  .foot { font-size: var(--text-sm); }
}

/* Start-here doors: free level test and thesis advising, right under the hero */
.mast nav a.hot { color: var(--color-accent); font-weight: 600; font-family: var(--font-display); }
.mast nav a.hot:hover { color: var(--color-accent); }
.btn.light { background: var(--color-paper); color: var(--color-ink); }
.doors { display: grid; margin-bottom: var(--space-2xl); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); }
.door { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-xl); border-radius: var(--radius-card); text-decoration: none; }
.door h2 { font-size: var(--text-2xl); max-width: 22ch; }
.door p { font-size: var(--text-md); max-width: 52ch; }
.door .btn { justify-self: start; margin-top: var(--space-sm); }
.door.test { background: var(--color-accent); color: var(--color-accent-ink); }
.door.test h2 { color: var(--color-accent-ink); }
.door.test:hover .btn.light { background: var(--color-paper-2); }
.door.grad2 { background: var(--color-brand-deep); color: var(--color-on-brand); }
.door.grad2 h2 { color: var(--color-on-brand); }
.door.grad2 p { color: var(--color-on-brand-muted); }
.door.grad2 .amt { display: flex; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; }
.door.grad2 .amt b { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; color: var(--color-on-brand); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.door.grad2:hover .btn.go { background: color-mix(in oklab, var(--color-accent) 86%, black); }
.door:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.mbar { display: none; }
@media (max-width: 52rem) {
  .doors { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-2xl); }
  .door { padding: var(--space-lg); }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); padding: var(--space-xs) var(--space-sm) calc(var(--space-xs) + env(safe-area-inset-bottom)); background: var(--color-brand-deep); }
  .mbar .btn { min-height: 48px; padding: 0 var(--space-xs); font-size: var(--text-sm); }
  body { padding-bottom: 72px; }
}

/* Council fixes, 27 Nov: quieter phone top, home shelf of four, phone headline */
.covers.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.books .acts { margin-top: var(--space-xl); }
@media (max-width: 40rem) {
  .util { display: none; }
  .covers.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 2.75rem); }
  .mast .container { gap: var(--space-sm); }
  .offer .price a { display: inline-block; padding-block: var(--space-sm); }
}
.books-hero > .container { display: block; }
.books-hero { padding-block: var(--space-2xl) 0; }

.amt s{display:block;opacity:.75;font-size:1.2rem;margin:0 0 .1rem}
