/* ==========================================================================
   Maths with Bhavana – theme styles
   Tokens are shared with the platform plugin (same --mwb-* names).
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
	/* Brand colours – change here to re-theme the whole site. */
	--mwb-navy: #12254a;
	--mwb-navy-2: #1c3668;
	--mwb-blue: #3a5fae;
	--mwb-blue-soft: #6f8fd0;
	--mwb-sky: #eef3fb;
	--mwb-sky-2: #e2eaf7;
	--mwb-grey: #f5f6f8;
	--mwb-line: #dde3ee;
	--mwb-text: #182236;
	--mwb-muted: #5a6479;
	--mwb-gold: #b08a44;
	--mwb-gold-soft: #f7efdf;
	--mwb-good: #1d7458;
	--mwb-font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
	--mwb-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mwb-radius: 14px;
	--mwb-shadow: 0 1px 2px rgba(18, 37, 74, .06), 0 6px 20px rgba(18, 37, 74, .06);
	--mwb-shadow-lg: 0 14px 44px rgba(18, 37, 74, .14);
	--mwb-ease: cubic-bezier(.2, .7, .2, 1);
	--mwb-header-h: 76px;
	--container: 1200px;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; font-family: var(--mwb-font-body); font-size: 16.5px; line-height: 1.65; color: var(--mwb-text); background: #fff; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--mwb-blue); text-underline-offset: 3px; }
a:hover { color: var(--mwb-navy); }
h1, h2, h3, h4 { font-family: var(--mwb-font-head); color: var(--mwb-navy); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--mwb-blue-soft); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100000; background: var(--mwb-navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.center { text-align: center; }
.small { font-size: .88rem; }
.muted { color: var(--mwb-muted); }
.site-main { outline: none; min-height: 50vh; }

/* ------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.3rem; border-radius: 999px; font: 600 .96rem/1.2 var(--mwb-font-body); text-decoration: none !important; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s var(--mwb-ease), box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--mwb-shadow); }
.btn--primary { background: var(--mwb-navy); color: #fff !important; }
.btn--primary:hover { background: var(--mwb-navy-2); }
.btn--ghost { background: #fff; color: var(--mwb-navy) !important; border-color: var(--mwb-line); }
.btn--ghost:hover { border-color: var(--mwb-sky-2); background: var(--mwb-sky); }
.btn--gold { background: var(--mwb-gold); color: #fff !important; }
.btn--gold:hover { background: #9c783a; }
.btn--light { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.btn--light:hover { background: rgba(255, 255, 255, .1); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .88rem; }
.btn--lg { min-height: 54px; padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.5rem 0; }
.btn-row--center { justify-content: center; }
.text-link { font-weight: 600; text-decoration: none; color: var(--mwb-blue); }
.text-link:hover { text-decoration: underline; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--mwb-sky); color: var(--mwb-navy); font: 600 .78rem var(--mwb-font-body); }

/* -------------------------------------------------------------- Header */
.site-header { position: sticky; top: var(--mwb-admin-bar, 0px); z-index: 1000; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--mwb-line); box-shadow: 0 4px 20px rgba(18, 37, 74, .06); }
.site-header__inner { display: flex; align-items: center; gap: 1.2rem; min-height: var(--mwb-header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex: none; }
.brand__mark { width: 48px; height: 48px; object-fit: contain; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--mwb-font-head); font-size: 1.28rem; font-weight: 600; color: var(--mwb-navy); letter-spacing: -.01em; }
.brand__tag { font-size: .68rem; letter-spacing: .08em; color: var(--mwb-gold); font-weight: 600; margin-top: 3px; }
.brand--light .brand__name { color: #fff; }
.primary-nav { margin-left: auto; }
.primary-nav .menu { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; }
.primary-nav .menu a { display: block; white-space: nowrap; padding: .5rem .6rem; border-radius: 8px; color: var(--mwb-text); text-decoration: none; font-weight: 500; font-size: .93rem; position: relative; }
.primary-nav .menu a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 2px; background: var(--mwb-gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--mwb-ease); }
.primary-nav .menu a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { transform: scaleX(1); }
.primary-nav .current-menu-item > a { color: var(--mwb-navy); font-weight: 600; }
.primary-nav .sub-menu { display: none; }
.primary-nav__actions { display: none; }
.site-header__actions { display: flex; gap: .5rem; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--mwb-line); background: #fff; cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; margin: auto; }
.nav-toggle__bars i { display: block; height: 2px; background: var(--mwb-navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1280px) {
	.site-header__actions { display: none; }
	.nav-toggle { display: grid; }
	.primary-nav { position: fixed; inset: calc(var(--mwb-header-h) + var(--mwb-admin-bar, 0px)) 0 0 0; background: #fff; padding: 1.2rem clamp(1rem, 4vw, 2rem) 2rem; opacity: 0; transform: translateY(-10px); transition: opacity .25s var(--mwb-ease), transform .25s var(--mwb-ease), visibility .25s; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; margin: 0; visibility: hidden; }
	.nav-open .primary-nav { opacity: 1; transform: none; visibility: visible; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { padding: .9rem .4rem; font-size: 1.1rem; border-bottom: 1px solid var(--mwb-line); border-radius: 0; }
	.primary-nav .menu a::after { display: none; }
	.primary-nav__actions { display: grid; gap: .6rem; }
	.primary-nav__actions .btn { width: 100%; min-height: 50px; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand__tag { display: none; } .brand__name { font-size: 1.12rem; } .brand__mark { width: 40px; height: 40px; } }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 20%, rgba(58, 95, 174, .12), transparent 60%), radial-gradient(600px 400px at 10% 90%, rgba(176, 138, 68, .10), transparent 60%), linear-gradient(180deg, #fbfcfe, #fff); z-index: -1; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font: 700 .76rem var(--mwb-font-body); color: var(--mwb-gold); margin: 0 0 .8rem; }
.hero__title { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.6rem); line-height: 1.08; margin: 0 0 1.2rem; }
.hero__sub { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--mwb-muted); max-width: 36em; margin: 0 0 1.6rem; }
.hero__teacher { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--mwb-line); border-radius: 16px; padding: .6rem 1.1rem .6rem .6rem; box-shadow: var(--mwb-shadow); width: fit-content; margin-bottom: 1.6rem; }
.hero__teacher img { width: 56px; height: 70px; object-fit: cover; border-radius: 12px; }
.hero__teacher p { margin: 0; display: grid; line-height: 1.35; }
.hero__teacher strong { font-family: var(--mwb-font-head); font-size: 1.1rem; color: var(--mwb-navy); }
.hero__teacher span { font-size: .85rem; color: var(--mwb-muted); }
.hero__ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; margin: 1.6rem 0 0; font-size: .9rem; color: var(--mwb-muted); }
.hero__facts li { display: flex; align-items: center; gap: .35rem; }
.hero__facts .icon { width: 18px; height: 18px; color: var(--mwb-good); }

/* Hero graphic */
.hero-graphic { position: relative; aspect-ratio: 560 / 460; max-width: 600px; margin-left: auto; }
.hero-graphic__svg { width: 100%; height: 100%; display: block; }
.hg-grid { color: rgba(18, 37, 74, .07); stroke: var(--mwb-line); stroke-width: 1; }
.hg-label { font: italic 600 16px var(--mwb-font-head); fill: var(--mwb-navy); }
.hg-note { font: italic 600 15px var(--mwb-font-head); fill: var(--mwb-navy); }
.hg-note--soft { fill: var(--mwb-blue); opacity: .8; }
.hg-curve { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s var(--mwb-ease) .3s forwards; }
.hg-area { opacity: 0; animation: fadeIn 1s ease 1.6s forwards; }
.hg-tangent { opacity: 0; animation: fadeIn .6s ease 2.1s forwards, tangent 6s ease-in-out 2.7s infinite; transform-origin: 290px 150px; }
.hg-point { transform-origin: 290px 150px; animation: pulse 2.4s ease-in-out 2.2s infinite; }
.hg-card { position: absolute; background: #fff; border: 1px solid var(--mwb-line); border-radius: 16px; box-shadow: var(--mwb-shadow-lg); padding: .7rem .9rem; display: grid; gap: .25rem; }
.hg-card__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mwb-gold); font-weight: 700; }
.hg-card--matrix { left: -2%; top: 8%; }
.hg-matrix { display: grid; grid-template-columns: repeat(2, 2.2em); gap: .1em .6em; padding: .2em .55em; font: 600 1.05rem var(--mwb-font-head); color: var(--mwb-navy); border-left: 2px solid var(--mwb-navy); border-right: 2px solid var(--mwb-navy); border-radius: 6px; text-align: center; }
.hg-card--det { right: 2%; top: 44%; }
.hg-det { font: italic 600 1.1rem var(--mwb-font-head); color: var(--mwb-navy); }
.hg-card--score { left: 12%; bottom: 2%; grid-template-columns: 44px auto; align-items: center; gap: .6rem; }
.hg-card--score svg { width: 44px; height: 44px; }
.hg-card--score span { display: grid; line-height: 1.1; }
.hg-card--score strong { color: var(--mwb-good); font-size: 1.1rem; }
.hg-card--score small { color: var(--mwb-muted); font-size: .75rem; }
.hg-score-ring { animation: ring 1.6s var(--mwb-ease) 1s both; }
.hg-sym { position: absolute; font: italic 600 1.35rem var(--mwb-font-head); color: var(--mwb-blue); opacity: .35; animation: float 7s ease-in-out infinite; pointer-events: none; }
.hg-sym.s1 { top: 2%; left: 42%; }
.hg-sym.s2 { top: 22%; right: 4%; animation-delay: -2s; color: var(--mwb-gold); }
.hg-sym.s3 { bottom: 26%; left: 2%; animation-delay: -4s; font-size: 1.05rem; }
.hg-sym.s4 { bottom: 4%; right: 18%; animation-delay: -1s; }
.hg-sym.s5 { top: 62%; left: 44%; animation-delay: -3s; color: var(--mwb-gold); }
.hg-sym.s6 { top: 12%; right: 30%; animation-delay: -5s; }
.float-a { animation: float 6s ease-in-out infinite; }
.float-b { animation: float 7s ease-in-out -2s infinite; }
.float-c { animation: float 8s ease-in-out -4s infinite; }

/* ------------------------------------------------------------ Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; text-align: left; flex-wrap: wrap; }
.section-title { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); margin: 0 0 .8rem; }
.section-lead { color: var(--mwb-muted); font-size: 1.08rem; margin: 0; }
.section--why { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature { background: #fff; border: 1px solid var(--mwb-line); border-radius: 18px; padding: 1.6rem; box-shadow: var(--mwb-shadow); position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--mwb-sky), transparent 70%); transition: transform .5s var(--mwb-ease); }
.feature:hover::after { transform: scale(1.6); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mwb-sky); color: var(--mwb-navy); margin-bottom: 1rem; position: relative; z-index: 1; }
.feature h3 { font-size: 1.2rem; margin: 0 0 .4rem; position: relative; z-index: 1; }
.feature p { margin: 0; color: var(--mwb-muted); position: relative; z-index: 1; }
.card-lift { transition: transform .3s var(--mwb-ease), box-shadow .3s var(--mwb-ease), border-color .3s; }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--mwb-shadow-lg); border-color: var(--mwb-sky-2); }

/* How it works */
.section--how { background: linear-gradient(180deg, var(--mwb-sky), #fff); }
.process { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; position: relative; }
.process__line { position: absolute; top: 34px; left: 10%; width: 80%; height: 20px; overflow: visible; z-index: 0; }
.process__line path { stroke: var(--mwb-gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; fill: none; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.8s var(--mwb-ease); }
.process.is-in .process__line path { stroke-dashoffset: 0; }
.process__step { position: relative; z-index: 1; text-align: center; padding: 0 .4rem; }
.process__num { position: absolute; top: -6px; left: calc(50% + 22px); width: 24px; height: 24px; border-radius: 50%; background: var(--mwb-gold); color: #fff; font: 700 .75rem/24px var(--mwb-font-body); }
.process__icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; background: #fff; border: 2px solid var(--mwb-sky-2); color: var(--mwb-navy); box-shadow: var(--mwb-shadow); transition: transform .3s var(--mwb-ease), background .3s, color .3s; }
.process__icon .icon { width: 30px; height: 30px; }
.process__step:hover .process__icon { transform: scale(1.08); background: var(--mwb-navy); color: #fff; }
.process__step h3 { font-size: 1.2rem; margin: 0 0 .3rem; }
.process__step p { margin: 0; color: var(--mwb-muted); font-size: .93rem; }

/* Chapters section */
.section--chapters { background: #fff; }
.section--chapters .mwb-chapter-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Practice & assessment */
.section--assess { background: var(--mwb-navy); color: #dfe6f3; overflow: hidden; }
.section--assess::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.section--assess .section-title { color: #fff; }
.section--assess .section-lead { color: #c7d2e6; }
.section--assess .eyebrow { color: #e3c98f; }
.assess { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.ticks li { padding-left: 1.8rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(176, 138, 68, .25); color: #e3c98f; font-size: .8rem; display: grid; place-items: center; font-weight: 700; }
.assess__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.assess__item { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 1.1rem 1.2rem; }
.assess__item:hover { background: rgba(255, 255, 255, .09); border-color: rgba(227, 201, 143, .45); box-shadow: none; }
.assess__item span { color: #e3c98f; }
.assess__item h3 { color: #fff; font-size: 1.08rem; margin: .4rem 0 .2rem; }
.assess__item p { margin: 0; font-size: .88rem; color: #b9c4da; }

/* Revision */
.section--revision { background: #fff; }
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.rev-card { display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 1px solid var(--mwb-line); border-radius: 18px; padding: 1.6rem; text-decoration: none; color: var(--mwb-text) !important; box-shadow: var(--mwb-shadow); }
.rev-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--mwb-sky); color: var(--mwb-navy); }
.rev-card--key .rev-card__icon { background: var(--mwb-gold-soft); color: var(--mwb-gold); }
.rev-card--mistake .rev-card__icon { background: #fbe9e7; color: #b0413a; }
.rev-card h3 { margin: .2rem 0 0; font-size: 1.3rem; }
.rev-card__demo { background: var(--mwb-grey); border-radius: 12px; padding: .8rem 1rem; font-size: .95rem; min-height: 72px; display: flex; align-items: center; justify-content: center; text-align: center; overflow-x: auto; }
.rev-card--formula .rev-card__demo { background: var(--mwb-sky); }
.rev-card--mistake .rev-card__demo s { color: #b0413a; }
.rev-card p { margin: 0; color: var(--mwb-muted); flex: 1; }

/* About */
.section--about { background: linear-gradient(180deg, #fff, var(--mwb-sky)); }
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__photo { position: relative; margin: 0; max-width: 420px; justify-self: center; }
.about__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--mwb-shadow-lg); }
.about__frame { position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--mwb-gold); border-radius: 22px; z-index: 0; }
.about__photo figcaption { text-align: center; font-size: .85rem; color: var(--mwb-muted); margin-top: 1.6rem; }
.about__role { color: var(--mwb-gold); font-weight: 600; margin: -.4rem 0 1rem; }
.philosophy { margin: 1.5rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--mwb-gold); background: #fff; border-radius: 0 16px 16px 0; box-shadow: var(--mwb-shadow); }
.philosophy p { margin: 0; font: italic 500 1.15rem/1.7 var(--mwb-font-head); color: var(--mwb-navy); }
.philosophy cite { display: block; margin-top: .6rem; font: 600 .75rem var(--mwb-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--mwb-gold); font-style: normal; }
.philosophy--lg p { font-size: 1.3rem; }

/* Dashboard preview */
.section--preview { background: #fff; }
.devices { position: relative; max-width: 980px; margin: 0 auto; padding-right: 120px; }
.device--laptop { background: #0e1b36; border-radius: 18px 18px 8px 8px; padding: 12px 12px 18px; box-shadow: var(--mwb-shadow-lg); }
.device__bar { display: flex; gap: 6px; padding: 0 6px 10px; }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.mock { display: grid; grid-template-columns: 70px 1fr; background: #f6f8fc; border-radius: 8px; overflow: hidden; min-height: 360px; }
.mock__side { background: #fff; border-right: 1px solid var(--mwb-line); display: grid; align-content: start; gap: 10px; padding: 14px 12px; }
.mock__side b { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--mwb-navy), var(--mwb-blue)); margin-bottom: 8px; }
.mock__side span { height: 10px; border-radius: 6px; background: var(--mwb-grey); }
.mock__side span.on { background: var(--mwb-navy); }
.mock__main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock__hello { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(120deg, var(--mwb-sky), #fff); border-radius: 12px; padding: 12px 14px; }
.mock__hello strong { font-family: var(--mwb-font-head); color: var(--mwb-navy); font-size: 1.05rem; }
.mock__hello span { font-size: .75rem; background: var(--mwb-navy); color: #fff; border-radius: 8px; padding: 6px 10px; }
.mock__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock__stats span { background: #fff; border: 1px solid var(--mwb-line); border-radius: 10px; padding: 8px 10px; font-size: .75rem; color: var(--mwb-muted); display: grid; }
.mock__stats b { font: 600 1.25rem var(--mwb-font-head); color: var(--mwb-navy); }
.mock__stats b em { font: 400 .7rem var(--mwb-font-body); color: var(--mwb-muted); font-style: normal; }
.mock__stats small { font-size: .68rem; }
.mock__row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.mock__row + .mock__row { grid-template-columns: 2fr 1fr; }
.mock__card { background: #fff; border: 1px solid var(--mwb-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.mock__card small { font-size: .7rem; color: var(--mwb-muted); font-weight: 600; }
.mock__card svg { width: 100%; max-height: 80px; }
.mock__card text { font: 700 13px var(--mwb-font-body); fill: var(--mwb-navy); }
.mock__card--gold { background: var(--mwb-gold-soft); border-color: #eadcbc; }
.mock__card--gold b { font: 600 2rem var(--mwb-font-head); color: var(--mwb-gold); }
.mock__bars { display: grid; gap: 7px; }
.mock__bars i { display: block; height: 7px; border-radius: 6px; background: linear-gradient(90deg, var(--mwb-blue), var(--mwb-navy)) left / var(--w) 100% no-repeat, var(--mwb-grey); }
.mock-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.devices.is-in .mock-line { animation: draw 1.6s var(--mwb-ease) .3s forwards; }
.mock-ring { transition: stroke-dashoffset 1.2s var(--mwb-ease); }
.device--phone { position: absolute; right: 0; bottom: -30px; width: 210px; background: #0e1b36; border-radius: 30px; padding: 10px; box-shadow: var(--mwb-shadow-lg); }
.phone { background: #fff; border-radius: 22px; padding: 14px 12px; display: grid; gap: 8px; }
.phone__top { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; color: var(--mwb-navy); }
.phone__timer { background: var(--mwb-sky); border-radius: 999px; padding: 2px 8px; }
.phone__q { font-size: .78rem; line-height: 1.45; color: var(--mwb-text); padding: 6px 0; }
.phone__opt { border: 1.5px solid var(--mwb-line); border-radius: 10px; padding: 7px 9px; font-size: .75rem; font-weight: 600; color: var(--mwb-navy); }
.phone__opt.is-on { border-color: var(--mwb-navy); background: var(--mwb-sky); }
.phone__pal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 4px; }
.phone__pal i { height: 18px; border-radius: 5px; border: 1.5px solid var(--mwb-line); }
.phone__pal i.a { background: var(--mwb-navy); border-color: var(--mwb-navy); }
.phone__pal i.m { background: var(--mwb-gold-soft); border-color: var(--mwb-gold); }
.phone__pal i.c { border-color: var(--mwb-blue); box-shadow: 0 0 0 2px rgba(58, 95, 174, .25); }

/* Improve loop */
.section--improve { background: var(--mwb-sky); }
.improve { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.loop { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto; }
.loop__ring { position: absolute; inset: 12%; width: 76%; height: 76%; overflow: visible; }
.loop__ring circle { fill: none; stroke: var(--mwb-gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--mwb-ease); transform: rotate(-90deg); transform-origin: center; vector-effect: non-scaling-stroke; }
.loop.is-in .loop__ring circle { stroke-dashoffset: 0; }
.loop__node { position: absolute; width: 38%; background: #fff; border: 1px solid var(--mwb-line); border-radius: 14px; padding: .7rem .8rem; box-shadow: var(--mwb-shadow); text-align: center; display: grid; gap: .15rem; }
.loop__node strong { font-family: var(--mwb-font-head); color: var(--mwb-navy); font-size: 1.05rem; }
.loop__node span { font-size: .78rem; color: var(--mwb-muted); line-height: 1.35; }
.loop__node--1 { top: 0; left: 31%; }
.loop__node--2 { right: 0; top: 38%; }
.loop__node--3 { bottom: 0; left: 31%; }
.loop__node--4 { left: 0; top: 38%; }
.loop__center { position: absolute; inset: 42%; display: grid; place-items: center; border-radius: 50%; background: var(--mwb-navy); color: #e3c98f; font-size: 2rem; }
.loop__center span { display: block; animation: spin 10s linear infinite; }

/* Final CTA */
.cta-final { padding: clamp(3rem, 7vw, 5rem) 0; background: #fff; }
.cta-final__inner { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--mwb-navy) 0%, #1f3d78 100%); border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: center; gap: 2rem; color: #d7e0f0; }
.cta-final__copy { position: relative; z-index: 1; }
.cta-final h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); margin: 0 0 .7rem; }
.cta-final p { font-size: 1.08rem; margin: 0 0 1.5rem; }
.cta-final__btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-final__art { position: relative; z-index: 1; width: 100%; max-width: 280px; justify-self: end; margin-bottom: calc(-1 * clamp(2rem, 5vw, 3.5rem)); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .3)); }
.cta-final__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.section--extra { padding: 3rem 0 0; }

/* ------------------------------------------------------------ Page hero */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--mwb-sky), #fff 70%); border-bottom: 1px solid var(--mwb-line); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.8rem, 4vw, 3rem); }
.page-hero__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); margin: .3rem 0 .4rem; max-width: 22em; }
.page-hero__lead { color: var(--mwb-muted); font-size: 1.1rem; margin: 0; max-width: 42em; }
.page-hero__art { position: absolute; right: 0; bottom: 0; width: 55%; height: 100%; color: rgba(176, 138, 68, .35); pointer-events: none; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .5rem; padding: 0; font-size: .85rem; color: var(--mwb-muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.crumbs a { color: var(--mwb-muted); text-decoration: none; }
.crumbs a:hover { color: var(--mwb-blue); }
.content-wrap { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.app-page { padding: 0 0 2rem; }
.mwb-app .app-page > .mwb-public, .mwb-app .app-page > .mwb-auth { margin-top: 1.5rem; }

/* Prose */
.prose { max-width: 760px; font-size: 1.05rem; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 .7rem; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin: .35rem 0; }
.prose blockquote { border-left: 4px solid var(--mwb-gold); margin: 1.5rem 0; padding: .5rem 1.2rem; color: var(--mwb-navy); font-family: var(--mwb-font-head); font-style: italic; }
.prose details { border: 1px solid var(--mwb-line); border-radius: 14px; padding: 0; margin: 0 0 .8rem; background: #fff; box-shadow: var(--mwb-shadow); overflow: hidden; }
.prose details summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; color: var(--mwb-navy); position: relative; }
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--mwb-gold); transition: transform .25s; }
.prose details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.prose details > :not(summary) { padding: 0 1.2rem 1rem; margin: 0; color: var(--mwb-muted); animation: fadeIn .3s; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--mwb-line); padding: .5rem .7rem; }

/* About page */
.about-page { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); padding-top: 3rem; padding-bottom: 4rem; align-items: start; }
.about-page .about__photo { position: sticky; top: calc(var(--mwb-header-h) + 1.5rem); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); padding-top: 2.5rem; padding-bottom: 4rem; }
.contact-card { background: var(--mwb-sky); border: 1px solid var(--mwb-sky-2); border-radius: 18px; padding: 1.5rem; }
.contact-card h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.contact-card li { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; }
.contact-card .icon { color: var(--mwb-gold); }
.contact-card small { color: var(--mwb-muted); }

/* Syllabus */
.syllabus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.syllabus__unit { background: #fff; border: 1px solid var(--mwb-line); border-radius: 18px; padding: 1.3rem 1.4rem; box-shadow: var(--mwb-shadow); }
.syllabus__unit header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.syllabus__unit h2 { font-size: 1.25rem; margin: 0; }
.syllabus__unit ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.syllabus__unit li { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; padding: .45rem 0; border-top: 1px solid var(--mwb-grey); }
.syllabus__unit li a { text-decoration: none; color: var(--mwb-text); font-weight: 500; display: flex; gap: .55rem; align-items: center; }
.syllabus__unit li a:hover { color: var(--mwb-blue); }
.syllabus__unit small { color: var(--mwb-muted); font-size: .8rem; white-space: nowrap; }
.syllabus__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--mwb-sky); color: var(--mwb-navy); font-size: .78rem; font-weight: 700; }
.info-band { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--mwb-navy); color: #d7e0f0; border-radius: 20px; padding: 1.6rem 1.8rem; margin-top: 2rem; }
.info-band h2 { color: #fff; margin: 0 0 .3rem; font-size: 1.4rem; }
.info-band p { margin: 0; }

/* 404 / empty */
.notfound { padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.notfound__art { width: min(360px, 90%); margin-bottom: 1rem; }
.notfound h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.empty-state { text-align: center; padding: 3rem 0; }
.post-list { display: grid; gap: 1rem; }
.post-card { border: 1px solid var(--mwb-line); border-radius: 16px; padding: 1.4rem; }
.post-card h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.post-card h2 a { text-decoration: none; color: var(--mwb-navy); }

/* --------------------------------------------------------------- Footer */
.site-footer { background: #0d1c3a; color: #b6c1d6; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; margin-top: 0; }
.site-footer a { color: #dfe6f3; text-decoration: none; }
.site-footer a:hover { color: #e3c98f; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 2rem; }
.site-footer h2 { font: 700 .78rem var(--mwb-font-body); text-transform: uppercase; letter-spacing: .12em; color: #e3c98f; margin: .4rem 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer__pos { margin: 1rem 0 .6rem; font-size: .92rem; }
.site-footer__teacher { font-size: .9rem; color: #dfe6f3; margin: 0; }
.site-footer__teacher span { color: #8e9ab3; font-size: .82rem; }
.site-footer__notice p { font-size: .86rem; line-height: 1.6; margin: 0 0 .6rem; }
.site-footer .brand__tag { color: #e3c98f; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .84rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__small { color: #8e9ab3; }

/* ------------------------------------------------------------ Animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--mwb-ease) var(--d, 0ms), transform .7s var(--mwb-ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes tangent { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-8deg); } }
@keyframes ring { from { stroke-dashoffset: 113; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
	.hero__inner, .assess, .about, .improve { grid-template-columns: minmax(0, 1fr); }
	.hero-graphic { margin: 0 auto; max-width: 520px; }
	.feature-grid, .rev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
	.process__line { display: none; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about-page, .contact { grid-template-columns: minmax(0, 1fr); }
	.about-page .about__photo { position: static; }
	.devices { padding-right: 0; }
	.device--phone { right: -10px; bottom: -40px; width: 170px; }
}
@media (max-width: 700px) {
	body { font-size: 16px; }
	.feature-grid, .rev-grid, .assess__grid, .syllabus { grid-template-columns: minmax(0, 1fr); }
	.process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero__ctas .btn { flex: 1 1 100%; }
	.hero__teacher { width: 100%; }
	.cta-final__inner { grid-template-columns: minmax(0, 1fr); text-align: left; }
	.cta-final__art { justify-self: center; max-width: 200px; }
	.cta-final__btns .btn { flex: 1 1 100%; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.mock { grid-template-columns: 1fr; }
	.mock__side { display: none; }
	.mock__stats { grid-template-columns: repeat(2, 1fr); }
	.mock__row, .mock__row + .mock__row { grid-template-columns: 1fr; }
	.device--phone { position: relative; right: auto; bottom: auto; margin: -40px auto 0; width: 200px; }
	.hg-card { padding: .5rem .65rem; }
	.hg-matrix { font-size: .9rem; }
	.loop__node { width: 48%; padding: .5rem; }
	.loop__node span { display: none; }
	.page-hero__art { width: 100%; opacity: .6; }
	.section-head--split .btn { width: 100%; }
	.about__photo { margin-right: 12px; }
	.about__frame { inset: 12px -10px -12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.js .reveal { opacity: 1; transform: none; }
	.hg-curve, .process__line path, .loop__ring circle, .mock-line { stroke-dashoffset: 0 !important; }
	.hg-area, .hg-tangent { opacity: 1; }
	.float-a, .float-b, .float-c, .hg-sym, .loop__center span { animation: none !important; }
}

/* Compact chapter cards on the homepage for phones */
@media (max-width: 700px) {
	.section--chapters .mwb-chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
	.section--chapters .mwb-chapter-card { padding: .9rem .8rem; gap: .35rem; }
	.section--chapters .mwb-chapter-card__title { font-size: 1rem; }
	.section--chapters .mwb-chapter-card .mwb-chapter-icon { width: 38px; height: 34px; }
	.section--chapters .mwb-chapter-card__toggle, .section--chapters .mwb-chapter-card__meta .mwb-pill, .section--chapters .mwb-chapter-card__reveal { display: none !important; }
	.section--chapters .mwb-chapter-card__meta { font-size: .75rem; }
}
