/* thrvhub "Small Worlds" stylesheet
   1 Fonts  2 Tokens  3 Comfort modes  4 Base and type  5 Layout
   6 Buttons, tags, fields  7 Header  8 Footer  9 Comfort panel
   10 Home  11 Course cards and rows  12 Pricing  13 Prose and pages */

/* 1 Fonts ------------------------------------------------------------ */
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-next.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* 2 Tokens ----------------------------------------------------------- */
/* Colours are copied from design-handoff/tokens.css. The radius scale was
   deliberately cut to 14 / 24 / 40 (plus pill) after the design review on
   2026-11-17; the handoff had seven values. */
:root {
	--bg: #EEF0FB;
	--surface: #FFFFFF;
	--sunken: #EEF0FB;
	--text: #1F1D59;
	--muted: #4A4880;
	--line: #D3D6F3;
	--field: #6E72B0;
	--primary: #1F1D59;
	--on-primary: #FFFFFF;
	--accent: #F0806A;
	--on-accent: #1F1D59;
	--peri: #BFC5F4;
	--blush: #F8D3C8;
	--lilac: #D9CCF5;
	--focus: #C2412A;
	--error: #B3261E;
	--error-bg: #FCE8E6;
	--night: #1F1D59;
	--night-2: #3B3A86;
	--footer: #2B2970;
	--tag: #E3E6FA;
	--progress-track: #D3D6F3;
	--progress: #1F1D59;
	--selected: #FFFFFF;
	--shadow: rgba(31,29,89,0.10);
	--scrim: rgba(31,29,89,0.45);
	--hill: #BFC5F4;
	--sun: #F0806A;
	--paper: #FFFFFF;
	--illo-lilac: #D9CCF5;
	--illo-blush: #F8D3C8;
	--font-display: 'Bricolage Grotesque', sans-serif;
	--font-body: 'Figtree', system-ui, sans-serif;
	--font-easy: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', sans-serif;
	--text-scale: 1;
	--body-leading: 1.65;
	--radius-s: 14px; --radius-field: 14px; --radius-row: 14px; --radius-card: 24px; --radius-panel: 40px; --radius-pill: 999px;
	--r-1: 14px; --r-2: 24px; --r-3: 40px; /* the whole radius scale: small, card, panel (plus pill for buttons and chips) */
	--space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
	--page-max: 1360px; --margin-desktop: 56px; --margin-phone: 20px; --measure: 720px;
	--touch: 44px;
	/* Not in tokens.css: text colours used on the night panels in the approved
	   screens (they are literals there). Listed for sign-off in the build notes. */
	--on-night: #FFFFFF;
	--on-night-soft: #EEF0FB;
	--on-night-muted: #C9CDF6;
	--night-line: #4A4890;
	--wrap: var(--page-max);
	--gutter: clamp(20px, 4.1vw, var(--margin-desktop));
	--section: clamp(48px, 7.6vw, 104px);
	--illo-dim: 1;
	color-scheme: light;
}

/* 3 Comfort modes ---------------------------------------------------- */
[data-theme="dark"] {
	--bg: #0F0E26;
	--surface: #1A1940;
	--sunken: #141331;
	--text: #FFFFFF;
	--muted: #DADCF7;
	--line: #4A4887;
	--field: #A9ACE6;
	--primary: #C4C9FF;
	--on-primary: #0F0E26;
	--accent: #F28E78;
	--on-accent: #0F0E26;
	--peri: #34326B;
	--blush: #4A3048;
	--lilac: #3B3366;
	--focus: #F7A894;
	--error: #FFB4A8;
	--error-bg: #4A2230;
	--night: #0B0B1E;
	--night-2: #2A2960;
	--footer: #0B0B1E;
	--tag: #34326B;
	--progress-track: #4A4887;
	--progress: #C4C9FF;
	--selected: #2D2B5A;
	--shadow: rgba(0,0,0,0.35);
	--scrim: rgba(8,8,24,0.6);
	--hill: #5E64AE;
	--sun: #E0796A;
	--paper: #FFFFFF;
	--illo-lilac: #9C8FCB;
	--illo-blush: #C99A90;
	--illo-dim: 0.9;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	[data-theme="auto"] {
		--bg: #0F0E26;
		--surface: #1A1940;
		--sunken: #141331;
		--text: #FFFFFF;
		--muted: #DADCF7;
		--line: #4A4887;
		--field: #A9ACE6;
		--primary: #C4C9FF;
		--on-primary: #0F0E26;
		--accent: #F28E78;
		--on-accent: #0F0E26;
		--peri: #34326B;
		--blush: #4A3048;
		--lilac: #3B3366;
		--focus: #F7A894;
		--error: #FFB4A8;
		--error-bg: #4A2230;
		--night: #0B0B1E;
		--night-2: #2A2960;
		--footer: #0B0B1E;
		--tag: #34326B;
		--progress-track: #4A4887;
		--progress: #C4C9FF;
		--selected: #2D2B5A;
		--shadow: rgba(0,0,0,0.35);
		--scrim: rgba(8,8,24,0.6);
		--hill: #5E64AE;
		--sun: #E0796A;
		--paper: #FFFFFF;
		--illo-lilac: #9C8FCB;
		--illo-blush: #C99A90;
		--illo-dim: 0.9;
		color-scheme: dark;
	}
}
.comfort-text-large { --text-scale: 1.15; }
.comfort-text-largest { --text-scale: 1.3; }
.comfort-spacing-roomy { --body-leading: 2; }
.comfort-font-easy { --font-display: var(--font-easy); --font-body: var(--font-easy); }
.comfort-motion-none *, .comfort-motion-none *::before, .comfort-motion-none *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 4 Base and type ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: calc(100% * var(--text-scale)); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.125rem; line-height: var(--body-leading); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h1, .t-h1 { font-size: clamp(2.5rem, 5.3vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; }
h2, .t-h2 { font-size: clamp(2.125rem, 3.85vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; }
h3, .t-h3 { font-size: clamp(1.5rem, 2.35vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
h4, .t-h4 { font-size: clamp(1.3125rem, 1.8vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.t-display { font-size: clamp(3rem, 6.6vw, 5.5rem); line-height: 1; letter-spacing: -0.045em; }
.t-lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.6; }
.t-small { font-size: 1.0625rem; line-height: 1.55; }
.t-label { font-size: 1rem; line-height: 1.4; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.t-muted { color: var(--muted); }
p { margin: 0; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--muted); }
img, svg, video { max-width: 100%; }
img { height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, label:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
input::placeholder { color: var(--muted); opacity: 1; }
[id] { scroll-margin-top: 24px; }
.screen-reader-text, .thrv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.thrv-skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 12px 20px; border-radius: 999px; font-weight: 700; }
.thrv-skip:focus { top: 16px; color: var(--on-primary); }
.thrv-icon { flex: none; }
.illo { display: block; overflow: hidden; filter: brightness(var(--illo-dim)); }
.illo svg { display: block; width: 100%; height: 100%; }

/* 5 Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--read { max-width: calc(720px + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.7); }
.section--loose { padding-block: calc(var(--section) * 1.2); }
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto 700px; }
.band { background: var(--surface); }
.stack { display: grid; gap: 24px; align-content: start; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.7vw, 64px); align-items: start; }
.thrv-main { padding-block: clamp(32px, 5vw, 64px) var(--section); min-height: 50vh; }
.page-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 860px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* 6 Buttons, tags, fields -------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--primary); background: var(--primary); color: var(--on-primary); font: 700 1.0625rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color 0.15s ease-out, box-shadow 0.15s ease-out; }
.btn:hover { color: var(--on-primary); box-shadow: 0 6px 18px var(--shadow); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.125rem; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 1rem; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--accent:hover { color: var(--on-accent); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.btn--ghost:hover { color: var(--text); box-shadow: none; }
.btn--outline { background: transparent; border-color: var(--field); color: var(--text); }
.btn--outline:hover { color: var(--text); border-color: var(--text); box-shadow: none; }
.btn--secondary { background: var(--surface); border-color: var(--peri); color: var(--text); }
.btn--secondary:hover { color: var(--text); border-color: var(--text); }
.btn--block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--tag); color: var(--text); font: 700 0.9375rem/1.4 var(--font-body); }
.tag--blush { background: var(--blush); }
.tag--lilac { background: var(--lilac); }
.tag--accent { background: var(--accent); color: var(--on-accent); }
.tag--primary { background: var(--primary); color: var(--on-primary); font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.tag--surface { background: var(--surface); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="search"] { width: 100%; min-height: 56px; padding: 0 18px; border: 1.5px solid var(--field); border-radius: var(--r-1); background: var(--surface); color: var(--text); font: inherit; }
.field__hint { color: var(--muted); font-size: 1.0625rem; }
.field__error { display: flex; gap: 8px; align-items: center; color: var(--error); font-weight: 600; font-size: 1.0625rem; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.progress-block { display: grid; gap: 6px; }
.progress-block__label { font-size: 1rem; color: var(--muted); font-weight: 600; }
.progress { height: 10px; border-radius: 999px; background: var(--progress-track); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--progress); }

/* 7 Header ----------------------------------------------------------- */
.site-header { background: var(--bg); }
.site-header__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; min-height: 88px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo__word { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.logo svg { width: 24px; height: 37px; }
.custom-logo { max-height: 48px; width: auto; display: block; }
.site-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; flex: 1 1 auto; min-width: 0; }
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a { white-space: nowrap; }
.site-nav li { position: relative; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; font-weight: 600; font-size: 1.0625rem; text-decoration: none; color: var(--text); }
.site-nav a:hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--peri); }
.site-nav .current-menu-item > a, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.site-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; z-index: 30; min-width: 240px; padding: 8px; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-1); box-shadow: 0 16px 40px var(--shadow); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }
.site-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.site-actions__login { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 1.0625rem; text-decoration: none; }
.comfort-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--surface); color: var(--text); border: 1px solid var(--peri); border-radius: 999px; font: 600 1rem var(--font-body); cursor: pointer; }
.comfort-btn:hover { border-color: var(--text); }
.comfort-btn--floating { position: fixed; right: 16px; bottom: 16px; z-index: 9990; border-color: var(--text); box-shadow: 0 8px 24px var(--shadow); }
.comfort-btn--icon { width: 44px; padding: 0; justify-content: center; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--primary); color: var(--on-primary); cursor: pointer; }
.site-header__mobile { display: none; gap: 8px; margin-left: auto; }

@media (max-width: 1340px) {
	.site-header__inner { min-height: 68px; }
	.site-actions { white-space: normal; }
	.logo__word { font-size: 1.625rem; }
	.site-header__mobile { display: flex; }
	.menu-toggle { display: inline-flex; }
	.js .site-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 20px; }
	.js .site-menu.is-open { display: flex; }
	html:not(.js) .site-menu { flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 20px; }
	html:not(.js) .menu-toggle { display: none; }
	.site-menu .comfort-btn { display: none; }
	.site-nav ul { flex-direction: column; gap: 4px; }
	.site-nav a { white-space: normal; }
	.site-nav a { display: flex; min-height: 52px; padding: 0 18px; background: var(--surface); border-radius: var(--r-1); font-size: 1.125rem; }
	.site-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 4px 0 0 16px; background: none; }
	.site-actions { flex-direction: column; align-items: stretch; }
	.site-actions > a { justify-content: center; min-height: 52px; }
}

/* 8 Footer ----------------------------------------------------------- */
.site-footer { background: var(--footer); color: var(--on-night-soft); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--on-night); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 48px); padding-block: 56px 32px; }
.site-footer__brand { display: grid; gap: 12px; align-content: start; }
.site-footer__brand p { color: var(--on-night-muted); max-width: 340px; }
.site-footer .logo { color: var(--on-night-soft); }
.site-footer .logo svg { --text: var(--on-night-soft); }
.site-footer nav { display: grid; gap: 2px; align-content: start; }
.site-footer nav p { font-weight: 700; margin-bottom: 6px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer nav a, .site-footer nav button { display: flex; align-items: center; min-height: 44px; }
.site-footer nav button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.site-footer nav button:hover { color: var(--on-night); text-decoration: underline; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 20px 40px; border-top: 1px solid var(--night-line); color: var(--on-night-muted); font-size: 1rem; }
@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; padding-block: 40px 24px; }
	.site-footer__brand { grid-column: 1 / -1; }
}

/* 9 Comfort panel ---------------------------------------------------- */
.comfort { width: min(520px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); box-shadow: -12px 0 40px var(--shadow); overflow-y: auto; }
.comfort::backdrop { background: var(--scrim); }
.comfort__inner { display: grid; gap: 22px; padding: 28px 32px; margin: 0; }
.comfort__head { display: flex; align-items: center; gap: 12px; }
.comfort__head h2 { flex: 1 1 auto; font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; }
.comfort__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-1); background: var(--tag); }
.comfort__lede { color: var(--muted); }
.comfort__group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.comfort__group legend { padding: 0; margin-bottom: 10px; font: 700 1.1875rem var(--font-body); }
.comfort__hint { margin: -4px 0 4px; color: var(--muted); font-size: 1.0625rem; }
.comfort__options { display: grid; gap: 10px; }
.comfort__options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comfort__options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 96px; padding: 12px 8px; border-radius: var(--r-1); border: 1px solid var(--peri); background: var(--surface); color: var(--text); text-align: center; cursor: pointer; }
.opt:hover { border-color: var(--text); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__label { font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.opt__check { display: none; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); align-items: center; justify-content: center; }
.opt:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.opt:has(input:checked) .opt__label { font-weight: 800; }
.opt:has(input:checked) .opt__check { display: inline-flex; }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.opt__aa { font: 700 26px/1 var(--font-body); }
.opt__aa--easy { font-family: var(--font-easy); }
.opt__swatch { position: relative; display: flex; width: 52px; height: 34px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.opt__swatch:not(.opt__swatch--auto) > span:first-child { position: absolute; left: 8px; top: 9px; width: 30px; height: 5px; border-radius: 3px; background: var(--text); }
.opt__swatch:not(.opt__swatch--auto) > span:last-child { position: absolute; left: 8px; top: 19px; width: 20px; height: 5px; border-radius: 3px; background: var(--accent); }
.opt__swatch--auto > span { flex: 1; background: var(--bg); position: static; width: auto; height: auto; border-radius: 0; }
.comfort__preview { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--r-1); background: var(--sunken); }
.comfort__preview p:last-child { font-size: 1.125rem; line-height: var(--body-leading); }
.comfort__foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 4px; margin-bottom: -4px; border-top: 1px solid var(--line); background: var(--bg); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 999px; border: 1px solid var(--peri); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--text); }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 560px) { .comfort__inner { padding: 20px 18px 24px; } .comfort__head h2 { font-size: 1.75rem; } }

/* 10 Home ------------------------------------------------------------ */
.hero { display: grid; justify-items: center; gap: 24px; text-align: center; padding-block: clamp(32px, 4.7vw, 64px) clamp(32px, 4.1vw, 56px); }
.hero h1 { max-width: 1000px; }
.hero__lede { max-width: 640px; color: var(--muted); }
.hero__cta, .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__facts { font-size: 1.0625rem; color: var(--muted); }
.hero-illo { height: clamp(260px, 38vw, 520px); }
.hero-illo svg { height: 100%; }

.chooser__intro { display: grid; gap: 22px; }
.chooser__options { border: 0; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.chooser__options legend { font-weight: 700; margin-bottom: 12px; padding: 0; }
.chooser__opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 18px; border-radius: var(--r-1); border: 1px solid var(--peri); background: transparent; color: var(--text); font: 700 1.1875rem/1.3 var(--font-body); text-align: left; cursor: pointer; }
.chooser__opt:hover { border-color: var(--text); }
.chooser__opt[aria-pressed="true"] { background: var(--surface); border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.chooser__dot { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1.5px solid var(--field); color: transparent; }
.chooser__opt[aria-pressed="true"] .chooser__dot { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chooser__name { flex: 1 1 auto; }
.chooser__count { font-weight: 500; font-size: 1rem; color: var(--muted); white-space: nowrap; }
.chooser__panel { display: grid; gap: 8px; padding: clamp(22px, 3vw, 40px); border-radius: var(--r-2); background: var(--surface); }
.chooser__panel[hidden] { display: none; }
.chooser__panel .t-label { margin-bottom: 8px; }

.how__title { margin-bottom: clamp(28px, 4vw, 56px); }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); position: relative; counter-reset: none; }
.path__step { display: grid; align-content: start; gap: 12px; position: relative; }
.path__step:nth-child(2) { margin-top: clamp(0px, 3vw, 40px); }
.path__step:nth-child(3) { margin-top: clamp(0px, 6vw, 80px); }
.path__step .illo { width: 100%; max-width: 260px; border-radius: var(--r-2); }
.path__step h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.path__step p { max-width: 24em; }
@media (max-width: 860px) { .path { grid-template-columns: 1fr; } .path__step:nth-child(n) { margin-top: 0; } .path__step { grid-template-columns: 120px minmax(0, 1fr); column-gap: 20px; } .path__step .illo { grid-row: span 2; max-width: 120px; } }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: var(--night); color: var(--on-night); }
.feature__illo { min-height: clamp(280px, 44vw, 600px); background: var(--night-2); }
.feature__body { display: grid; gap: 24px; align-content: center; padding: clamp(28px, 4.7vw, 64px); }
.feature__body h2 { font-size: clamp(1.875rem, 3.5vw, 3rem); color: var(--on-night); }
.feature__body a.btn { justify-self: start; }
.feature__kicker { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 700; font-size: 1.0625rem; }
.feature__lede { color: var(--on-night-soft); }
.feature__meta { color: var(--on-night-muted); font-size: 1.0625rem; }
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dot-list li { display: flex; gap: 12px; align-items: baseline; }
.dot-list li::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.feature .dot-list { color: var(--on-night-soft); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.proof { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: var(--blush); }
.proof__body { display: grid; gap: 18px; align-content: center; padding: clamp(28px, 4.5vw, 64px); }
.proof__body .t-lead { max-width: 34em; }
.proof__people { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; max-width: 34em; }
.proof__people li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.proof__people a, .proof__people strong { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.proof__people span { color: var(--muted); }
.proof .illo { min-height: 260px; background: var(--night); }
.proof .illo svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } .proof .illo { order: -1; min-height: 140px; } }

.closing { background: var(--night); color: var(--on-night); }
.closing__inner { display: grid; justify-items: center; gap: 28px; text-align: center; padding-top: var(--section); }
.closing h2 { font-size: clamp(2.375rem, 5.6vw, 4.75rem); max-width: 900px; color: var(--on-night); }
.closing .illo { margin-top: 40px; }
.closing .illo svg { height: auto; }

/* 11 Course cards and rows ------------------------------------------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.course-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-2); overflow: hidden; background: var(--surface); color: var(--text); transition: box-shadow 0.15s ease-out; }
.course-card:hover { box-shadow: 0 14px 36px var(--shadow); }
.course-card__cover { position: relative; aspect-ratio: 5 / 3; background: var(--tag); }
.course-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card__tags { position: absolute; left: 14px; top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.course-card__body { display: grid; gap: 12px; align-content: start; flex: 1 1 auto; padding: 24px 26px 26px; }
.course-card__title { font-size: clamp(1.3125rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.course-card__title a { color: inherit; text-decoration: none; }
.course-card__title a::after { content: ""; position: absolute; inset: 0; }
.course-card__meta { color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }
.course-card__price { font-weight: 700; margin-top: auto; padding-top: 4px; }

.course-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.course-rows li { border-top: 1px solid var(--line); }
.course-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 28px; gap: 18px; align-items: center; padding: 20px 0; text-decoration: none; color: var(--text); }
.course-row:hover { color: var(--text); }
.course-row:hover .course-row__title { text-decoration: underline; text-decoration-thickness: 2px; }
.course-row__cover { width: 72px; height: 72px; border-radius: var(--r-1); }
.course-row__cover img { width: 100%; height: 100%; object-fit: cover; }
.course-row__text { display: grid; gap: 4px; }
.course-row__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); line-height: 1.25; letter-spacing: -0.01em; }
.course-row__meta { color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 520px) { .course-row { grid-template-columns: 56px minmax(0, 1fr); } .course-row__cover { width: 56px; height: 56px; border-radius: var(--r-1); } .course-row > .thrv-icon { display: none; } }

/* 12 Pricing --------------------------------------------------------- */
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px clamp(18px, 2vw, 28px); border-radius: var(--r-1); background: var(--sunken); border: 2px solid transparent; }
.plan-row--best { background: var(--peri); border-color: var(--text); }
.plan-row__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.plan-row__name .tag { margin-left: 6px; vertical-align: 3px; white-space: nowrap; }
.plan-row__sub { display: block; color: var(--muted); }
.plan-row--best .plan-row__sub, .plan-row--best .plan-row__price span { color: var(--text); }
.plan-row__price { font-size: 1.375rem; font-weight: 700; white-space: nowrap; }
.plan-row__price span { font-weight: 500; font-size: 1rem; color: var(--muted); }

/* 13 Prose and pages ------------------------------------------------- */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(1.625rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; margin-top: 1.8em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.45em; }
.prose img { border-radius: var(--r-1); }
.prose blockquote { margin-inline: 0; padding: 22px 26px; border-radius: var(--r-2); background: var(--blush); }
.prose a { font-weight: 600; }
.prose--wide { max-width: none; }
.entry + .entry { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }

/* 14 Catalogue ------------------------------------------------------- */
.catalogue { padding-block: clamp(24px, 3vw, 40px) var(--section); }
.catalogue__head { display: grid; gap: 18px; max-width: 860px; margin-bottom: 28px; }
.search { display: grid; gap: 8px; max-width: 640px; margin-top: 6px; }
.search label { font-weight: 700; }
.search__box { position: relative; display: flex; align-items: center; }
.search__box > .thrv-icon { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.search__box input { width: 100%; min-height: 60px; padding: 0 120px 0 52px; border: 1.5px solid var(--field); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; }
.catalogue-form { display: grid; gap: 20px; }
.catalogue-form__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.chips legend { float: left; padding: 0 6px 0 0; font-weight: 700; margin: 0; line-height: 44px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 10px; border-radius: var(--r-1); border: 1px solid var(--peri); background: var(--surface); font-weight: 600; font-size: 1.0625rem; }
.chip__box { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid var(--field); background: var(--surface); color: transparent; }
.chip input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); font-weight: 700; }
.chip input:checked + span .chip__box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort label { font-weight: 700; }
.sort select { min-height: 44px; padding: 0 14px; border: 1px solid var(--peri); border-radius: var(--r-1); background: var(--surface); color: var(--text); font: 600 1.0625rem var(--font-body); }
.filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.filters a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--peri); background: var(--surface); color: var(--text); font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.filters a:hover { border-color: var(--text); color: var(--text); }
.filters a[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.catalogue__status { margin: 20px 0 24px; color: var(--muted); }
.course-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.course-card__cover-wrap { position: relative; }
.course-card__cover { aspect-ratio: 5 / 3; background: var(--tag); }
.course-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card__price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 10px 10px 10px 16px; border-radius: var(--r-1); background: var(--sunken); font-size: 1.0625rem; line-height: 1.4; }
.course-card__price span.t-muted, .course-card__price p span { color: var(--muted); }
.course-card__go { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.course-card--help { background: var(--night); color: var(--on-night); }
.course-card--help .course-card__body { gap: 14px; justify-items: start; }
.course-card--help h2 { color: var(--on-night); }
.course-card--help p { color: var(--on-night-soft); }
.pager { margin-top: 40px; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--peri); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.pager .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.empty { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-2); background: var(--surface); }

/* 15 Course page ----------------------------------------------------- */
.course-page { padding-block: 8px var(--section); }
.crumbs ol { list-style: none; margin: 0; padding: 8px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.crumbs li { display: inline-flex; align-items: center; }
.course-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: var(--night); color: var(--on-night); }
.course-hero__body { display: grid; gap: 22px; align-content: center; padding: clamp(28px, 4.2vw, 60px); }
.course-hero h1 { font-size: clamp(2rem, 3.85vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; color: var(--on-night); }
.course-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.course-hero__lede { color: var(--on-night-soft); }
.course-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 1.0625rem; color: var(--on-night-muted); }
.course-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.course-hero__illo { min-height: clamp(220px, 30vw, 440px); background: var(--night-2); }
.course-hero__illo img { width: 100%; height: 100%; object-fit: cover; }
.course-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 3.5vw, 48px); align-items: start; margin-top: clamp(32px, 4.7vw, 64px); }
.course-main { display: grid; gap: clamp(36px, 4.1vw, 56px); min-width: 0; }
.course-main > section { display: grid; gap: 20px; min-width: 0; }
.t-h2s { font-size: clamp(1.75rem, 2.95vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: 32px; }
.plain-list li { padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; line-height: 1.35; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px 28px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; }
.tick-list .thrv-icon { margin-top: 4px; }
.course-content__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.instructor { grid-template-columns: 96px minmax(0, 1fr) !important; gap: 24px !important; align-items: start; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-2); background: var(--surface); }
.instructor__avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--lilac); }
.instructor__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.instructor > div { display: grid; gap: 8px; }
.instructor h3 { font-size: 1.875rem; }
.course-side { position: sticky; top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-2); background: var(--surface); }
.course-facts { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.course-facts li { display: flex; gap: 12px; align-items: center; }
.course-side__plans { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.mini-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-1); background: var(--sunken); color: var(--text); text-decoration: none; line-height: 1.4; }
.mini-plan--best { background: var(--peri); }
.mini-plan:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
@media (max-width: 960px) {
	.course-hero, .course-layout { grid-template-columns: minmax(0, 1fr); }
	.course-hero__illo { order: -1; }
	.course-side { position: static; order: -1; }
	.instructor { grid-template-columns: 64px minmax(0, 1fr) !important; }
	.instructor__avatar { width: 64px; height: 64px; }
}

/* 16 Pricing page ---------------------------------------------------- */
.plan-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plan-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr) minmax(260px, auto); gap: 24px; align-items: center; padding: 28px 32px; border-radius: var(--r-2); background: var(--surface); }
.plan-card .btn { white-space: nowrap; }
.plan-card > div { display: grid; gap: 6px; justify-items: start; }
.plan-card > div p { color: var(--muted); }
.plan-card--best { background: var(--peri); box-shadow: inset 0 0 0 2px var(--text); }
.plan-card--best > div p { color: var(--text); }
.plan-card__count { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 600; }
.plan-card__price { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.plan-card__price span { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-card--best .plan-card__price span { color: var(--text); }
@media (max-width: 1040px) { .plan-card { grid-template-columns: minmax(0, 1fr) auto; } .plan-card .btn { grid-column: 1 / -1; } .plan-card__count { grid-column: 1 / -1; grid-row: 2; } }
.free-note { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); margin-top: 24px; border-radius: var(--r-2); overflow: hidden; background: var(--blush); }
.free-note__illo { min-height: 200px; }
.free-note > div { display: grid; gap: 12px; justify-items: start; align-content: center; padding: clamp(24px, 3vw, 40px); }
@media (max-width: 760px) { .free-note { grid-template-columns: 1fr; } .free-note__illo { height: 180px; } }
.pricing__join { margin-top: clamp(32px, 4vw, 56px); }
.pricing__more { margin-top: clamp(40px, 5.6vw, 76px); gap: clamp(32px, 4.1vw, 56px); }
.icon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.icon-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 4px 22px; border-radius: var(--r-1); background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .thrv-icon { transform: rotate(90deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* 17 Log in and sign up ---------------------------------------------- */
.auth { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4.7vw, 64px); align-items: center; }
.auth__panel { display: grid; align-content: space-between; border-radius: var(--r-3); overflow: hidden; background: var(--night); color: var(--on-night); min-height: 520px; }
.auth__words { display: grid; gap: 16px; padding: clamp(28px, 4.1vw, 56px) clamp(28px, 4.1vw, 56px) 0; }
.auth__words h2 { color: var(--on-night); }
.auth__words p { font-size: 1.25rem; color: var(--on-night-soft); }
.auth__panel .illo svg { height: auto; }
.auth__form { display: grid; gap: 28px; min-width: 0; align-content: start; }
.auth__tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface); }
.auth__tabs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; color: var(--text); }
.auth__tabs a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.auth__switch { color: var(--muted); }
.auth__switch a { font-weight: 700; color: var(--text); }
.signup-form { display: grid; gap: 20px; }
.signup-form .field input[type="text"], .signup-form .field input[type="email"], .signup-form .field input[type="password"] { width: 100%; box-sizing: border-box; min-height: 56px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: var(--r-1); background: var(--surface); color: var(--text); font: 400 1.125rem var(--font-body); }
.signup-form .field input:focus { border-color: var(--text); }
.field__reveal { position: relative; }
.field__reveal input { padding-right: 60px !important; }
.icon-btn--bare { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; }
.form-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-1); background: var(--error-bg); color: var(--error); font-weight: 600; }
.form-alert .thrv-icon { margin-top: 2px; }
.role { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.role legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.role__opt { position: relative; display: flex; align-items: center; min-height: 52px; cursor: pointer; }
.role__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role__opt span { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 18px; border: 1px solid var(--peri); border-radius: var(--r-1); background: var(--surface); font-weight: 700; font-size: 1.0625rem; }
.role__opt span::before { content: ""; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--field); background: var(--surface); }
.role__opt input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.role__opt input:checked + span::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 5px var(--surface); }
.role__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-height: 44px; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; }
.check__box { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; margin-top: 2px; border-radius: 8px; border: 1.5px solid var(--field); background: var(--surface); color: transparent; }
.check input:checked + .check__box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.check input:focus-visible + .check__box { outline: 3px solid var(--focus); outline-offset: 3px; }
.check a { font-weight: 700; }
.auth__note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-1); background: var(--blush); }
.auth__note .thrv-icon { margin-top: 3px; }
.auth__note a { font-weight: 700; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__panel { display: none; } }

/* Without JavaScript: controls that need it are hidden, and every chooser panel shows. */
html:not(.js) [data-thrv-comfort-open] { display: none; }
html:not(.js) .chooser__panel[hidden] { display: grid; }
.auth__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.125rem, 3.85vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; color: var(--on-night); }

/* 18 Contact, form notes, content blocks ------------------------------ */
.contact { max-width: calc(760px + 2 * var(--gutter)); }
.contact-form { display: grid; gap: 24px; }
.contact-form .field input[type="text"], .contact-form .field input[type="email"], .contact-form .field textarea { width: 100%; box-sizing: border-box; padding: 14px 16px; min-height: 56px; border: 1.5px solid var(--field); border-radius: var(--r-1); background: var(--surface); color: var(--text); font: 400 1.125rem var(--font-body); }
.contact-form .field textarea { min-height: 180px; resize: vertical; line-height: var(--body-leading); }
.contact-form .field input:focus, .contact-form .field textarea:focus { border-color: var(--text); }
.contact-form .field [aria-invalid="true"] { border-color: var(--error); }
.contact-form .btn { justify-self: start; }
.role__opt--hint span { display: grid; gap: 0; align-content: center; padding-block: 10px; }
.role__opt--hint small { font-weight: 500; font-size: 1.0625rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 0; }
.form-note { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-1); background: var(--tag); }
.form-note .thrv-icon { margin-top: 3px; }

/* Content pages (About, FAQ, Privacy, Welcome) */
.prose a { color: var(--text); }
.prose .wp-block-buttons { margin-top: 2em; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.prose .wp-block-button__link:hover { color: var(--on-primary); box-shadow: 0 6px 18px var(--shadow); }
.prose details { margin: 10px 0; padding: 4px 22px; border-radius: var(--r-1); background: var(--surface); }
.prose summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-weight: 700; cursor: pointer; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; font-size: 1.5rem; line-height: 1; flex: none; }
.prose details[open] summary::after { content: "\2212"; }
.prose details > :not(summary) { padding-bottom: 16px; }
.prose table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-1); overflow: hidden; font-size: 1.0625rem; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose .wp-block-table { overflow-x: auto; }
.prose--faq h2 { margin-top: 2em; }
.page-head--lead { max-width: 860px; }
.thrv-citation-ref { font-size: 0.75rem; position: relative; top: -0.5em; line-height: 1; margin-left: 1px; font-weight: 700; color: var(--muted); vertical-align: baseline; }

.course-side > *, .course-side .tutor-card, .course-side .tutor-btn { min-width: 0; max-width: 100%; }
.course-side .tutor-btn { white-space: normal; }

/* Small pieces added in the design review ------------------------------ */
.chooser__title { font-size: 1.1875rem; font-weight: 700; font-family: var(--font-body); letter-spacing: 0; margin-bottom: 8px; }
.comfort__preview-title, .instructor__lead { font-weight: 700; color: var(--muted); font-size: 1.0625rem; }
.notfound { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.notfound .illo { border-radius: var(--r-3); background: var(--night); }
.notfound__body { display: grid; gap: 18px; justify-items: start; }
@media (max-width: 860px) { .notfound { grid-template-columns: 1fr; } .notfound .illo { order: -1; max-height: 220px; } }

/* Typographic polish ---------------------------------------------------- */
p, li, .t-lead { text-wrap: pretty; }
.plan-card__price, .course-card__price, .plan-row__price, .price { font-variant-numeric: tabular-nums lining-nums; }
::selection { background: var(--peri); color: var(--text); }
:root { accent-color: var(--primary); }
a, button, summary, label, .btn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--peri); }

/* 99 Motion -----------------------------------------------------------
 * Rules: transform and opacity only, one easing, no bounce, nothing moves
 * until the visitor does something (the single exception is the lamp-sun
 * rising once on the home page). Hover only where hover exists. Switched
 * off by the Comfort "Movement: none" setting and prefers-reduced-motion. */
:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); --t-fast: 120ms; --t-base: 200ms; --t-slow: 320ms; interpolate-size: allow-keywords; }

@media (prefers-reduced-motion: no-preference) {
	/* Buttons: pressed feels pressed. */
	.btn, .comfort-btn, .icon-btn, .filters a, .chip span, .opt, .role__opt span, .chooser__opt { transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-fast) var(--ease), color var(--t-base) var(--ease); }
	.btn:active, .comfort-btn:active, .icon-btn:active, .opt:active, .chooser__opt:active, .filters a:active { transform: scale(0.98); }
	.opt:active { transform: scale(0.97); }

	/* Links: the underline changes colour and settles, nothing jumps. */
	a { transition: color var(--t-base) var(--ease), text-decoration-color var(--t-base) var(--ease), text-underline-offset var(--t-base) var(--ease); }
	.site-nav a { transition: color var(--t-base) var(--ease), text-decoration-color var(--t-base) var(--ease), text-underline-offset var(--t-slow) var(--ease); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: transparent; text-underline-offset: 4px; }
	.site-nav a:hover { text-decoration-color: var(--peri); text-underline-offset: 8px; }
	.site-nav a[aria-current="page"], .site-nav .current-menu-item > a { text-underline-offset: 8px; }
	.prose a:hover { text-decoration-color: currentColor; text-underline-offset: 0.3em; }

	/* Ticks draw themselves when something is chosen. */
	.chooser__dot path, .chip__box path, .opt__check path, .form-note path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset var(--t-slow) var(--ease) 60ms; }
	.chooser__opt[aria-pressed="true"] .chooser__dot path, .chip input:checked + span .chip__box path, .opt:has(input:checked) .opt__check path { stroke-dashoffset: 0; }
	.chooser__dot, .chip__box, .role__opt span::before { transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
	.form-note path { animation: thrv-draw 520ms var(--ease) 120ms forwards; }
	@keyframes thrv-draw { to { stroke-dashoffset: 0; } }

	/* Chooser: the answer settles in, rows follow one after another. */
	[data-thrv-chooser].has-chosen .chooser__panel:not([hidden]) { animation: thrv-rise var(--t-slow) var(--ease) both; }
	[data-thrv-chooser].has-chosen .chooser__panel:not([hidden]) > * { animation: thrv-rise var(--t-slow) var(--ease) both; }
	[data-thrv-chooser].has-chosen .chooser__panel:not([hidden]) > :nth-child(2) { animation-delay: 60ms; }
	[data-thrv-chooser].has-chosen .chooser__panel:not([hidden]) > :nth-child(3) { animation-delay: 120ms; }
	[data-thrv-chooser].has-chosen .chooser__panel:not([hidden]) > :nth-child(4) { animation-delay: 180ms; }
	[data-thrv-chooser].has-chosen .chooser__panel:not([hidden]) > :nth-child(n+5) { animation-delay: 240ms; }
	@keyframes thrv-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

	/* Course cards: lift, a tinted layered shadow, cover leans in, arrow nudges. */
	.course-card { transition: box-shadow var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
	.course-card__cover { overflow: hidden; }
	.course-card__cover img, .course-card__cover svg { transition: transform 600ms var(--ease); transform-origin: 50% 60%; }
	.course-card__go { transition: transform var(--t-base) var(--ease), background-color var(--t-base) var(--ease); }
	.course-card:focus-within { transform: translateY(-3px); box-shadow: 0 1px 2px var(--shadow), 0 10px 20px -6px var(--shadow), 0 28px 48px -16px var(--shadow); }
	.course-card:focus-within .course-card__cover img, .course-card:focus-within .course-card__cover svg { transform: scale(1.035); }
	.course-card:focus-within .course-card__go { transform: translateX(3px); }

	/* Comfort panel: slides in over a fading scrim (keyframes, so it is never stuck hidden). */
	.comfort[open] { animation: thrv-slide-in 380ms var(--ease) both; }
	.comfort[open]::backdrop { animation: thrv-fade-in 320ms var(--ease) both; }
	@keyframes thrv-slide-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
	@keyframes thrv-fade-in { from { opacity: 0; } to { opacity: 1; } }

	/* Light, dark and auto cross-fade instead of snapping. */
	html.is-theming, html.is-theming *, html.is-theming *::before, html.is-theming *::after { transition: background-color 320ms var(--ease), color 320ms var(--ease), border-color 320ms var(--ease), fill 320ms var(--ease) !important; }

	/* Hero: the lamp-sun rises once. Never the headline. */
	.hero-illo circle[fill="var(--sun)"], .hero-illo circle[stroke="#F8D3C8"] { transform-box: fill-box; transform-origin: 50% 50%; animation: thrv-sunrise 1400ms var(--ease) 150ms both; }
	.hero-illo circle[stroke="#F8D3C8"] { animation-duration: 1900ms; animation-delay: 350ms; }
	@keyframes thrv-sunrise { from { opacity: 0; transform: translateY(26px) scale(0.92); } to { opacity: 1; transform: none; } }

	/* FAQ and prose details: open and close with height, the plus turns into a cross. */
	.faq details, .prose details { interpolate-size: allow-keywords; }
	@supports selector(::details-content) {
		.faq details::details-content, .prose details::details-content { block-size: 0; overflow: clip; transition: block-size var(--t-slow) var(--ease), content-visibility var(--t-slow) allow-discrete; }
		.faq details[open]::details-content, .prose details[open]::details-content { block-size: auto; }
	}
	.faq summary .thrv-icon { transition: transform var(--t-slow) var(--ease); }
	.prose summary::after { display: inline-block; transition: transform var(--t-slow) var(--ease); }
	.prose details[open] summary::after { transform: rotate(180deg); }

	/* Cross-page: a short fade, no sliding. */
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: ease-out; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px var(--shadow); }
	.btn:hover .thrv-icon { transform: translateX(3px); }
	.btn .thrv-icon { transition: transform var(--t-base) var(--ease); }
	.btn--ghost:hover { transform: none; }
	.course-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px var(--shadow), 0 10px 20px -6px var(--shadow), 0 28px 48px -16px var(--shadow); }
	.course-card:hover .course-card__cover img, .course-card:hover .course-card__cover svg { transform: scale(1.035); }
	.course-card:hover .course-card__go { transform: translateX(3px); }
	.course-row { transition: background-color var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
	.course-row:hover { transform: translateX(4px); }
	.logo svg { transition: transform var(--t-slow) var(--ease); transform-origin: 50% 90%; }
	.logo:hover svg { transform: rotate(-5deg); }
	.comfort-btn:hover .thrv-icon { transform: rotate(-12deg); }
	.comfort-btn .thrv-icon { transition: transform var(--t-slow) var(--ease); }
}

/* Movement "none" also stops cross-page fades. */
.comfort-motion-none::view-transition-group(*), .comfort-motion-none::view-transition-old(*), .comfort-motion-none::view-transition-new(*) { animation: none !important; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
