/* =====================================================================
   A+ Academy — main stylesheet (one file styles every page)
   ---------------------------------------------------------------------
     1. Fonts
     2. Colours and sizes  ← change brand colours HERE
     3. Base
     4. Layout helpers
     5. Header and menu
     6. Buttons
     7. Home: hero
     8. Home: topic ticker
     9. Home: inside a lesson
    10. Home: why parents choose us
    11. Home: subjects
    12. Home: tutors
    13. Pricing
    14. Booking form
    15. FAQs
    16. Inner pages
    17. Footer
    18. Animations
   ===================================================================== */

/* 1. FONTS ----------------------------------------------------------- */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-600-subset.woff2") format("woff2"); }

/* 2. COLOURS AND SIZES ---------------------------------------------- */
:root {
  --navy: #13223B;
  --navy-2: #1C3050;
  --orange: #E8623A;
  --orange-ink: #C2471F;   /* buttons/orange text: darker so white text is readable */
  --teal: #2E8B84;
  --teal-ink: #23706A;
  --cream: #FCFAF6;
  --grey: #5B6470;
  --sun: #F6C445;          /* small doodles only */
  --paper: #FFFFFF;
  --peach: #FDEBE3;
  --mint: #E2F1EE;
  --sky: #E8EFF7;
  --line: #E6E0D5;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --wrap: 74rem;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --section: clamp(4rem, 8vw, 6.5rem);
  --r: 14px;
  --r-lg: 28px;
  --shadow: 0 2px 4px rgba(19, 34, 59, .05), 0 18px 40px -18px rgba(19, 34, 59, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 3. BASE ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--cream); color: var(--grey); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (min-width: 64em) { body { font-size: 1.125rem; } }
h1, h2, h3 { color: var(--navy); margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.015em; }
h1 { font-size: clamp(2.25rem, 1rem + 6.4vw, 4.7rem); }
h2 { font-size: clamp(2.15rem, 1.4rem + 3vw, 3.6rem); }
h3 { font: 700 1.2rem/1.3 var(--sans); letter-spacing: -.01em; }
p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }
strong { color: var(--navy); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--peach); color: var(--navy); }
.visually-hidden { 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: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; color: #fff; }

/* 4. LAYOUT ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }
.bg-white { background: var(--paper); }
.bg-navy { background: var(--navy); color: #C8D2E0; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.head { max-width: 40rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.head--center { margin-inline: auto; text-align: center; }
.head p { font-size: 1.12em; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font: 700 .95rem/1 var(--sans); color: var(--teal-ink); margin-bottom: 1rem; }
.kicker::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.bg-navy .kicker { color: #8FD3CC; }
.lede { font-size: clamp(1.12rem, 1rem + .55vw, 1.35rem); line-height: 1.5; max-width: 34rem; }

/* 5. HEADER AND MENU ------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 250, 246, .92); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(19, 34, 59, .4); }
.header-inner { display: flex; align-items: center; gap: .75rem; min-height: 4.6rem; }
.brand { margin-right: auto; flex: none; }
.brand img { height: 44px; width: auto; }
@media (min-width: 64em) { .brand img { height: 50px; } }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop a { position: relative; display: block; padding: .55rem .85rem; color: var(--navy); font-weight: 500; font-size: 1rem; text-decoration: none; }
.nav-desktop a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { flex: none; }
.nav-mobile > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile .icon-close, .nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: .75rem var(--gutter) 1.5rem; box-shadow: 0 30px 40px -20px rgba(19, 34, 59, .5); }
.nav-mobile[open] .menu-panel { animation: drop .25s var(--ease); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.menu-panel a { display: block; padding: 1rem .25rem; color: #fff; font: 400 1.6rem/1.1 var(--serif); text-decoration: none; }
.menu-panel a:hover { color: #F8B39C; }
@media (min-width: 62em) { .nav-desktop { display: block; } .nav-mobile { display: none; } }
@media (max-width: 22.5em) { .brand img { height: 38px; } .header-cta { padding-inline: .85rem; font-size: .9rem; } }

/* 6. BUTTONS --------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent; font: 700 1.02rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--orange-ink); color: #fff; box-shadow: 0 10px 22px -10px rgba(194, 71, 31, .8); }
.btn--primary:hover { background: #A93C18; color: #fff; transform: translateY(-2px); box-shadow: 0 16px 26px -12px rgba(194, 71, 31, .85); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--peach); color: var(--navy); transform: translateY(-2px); }
.btn--small { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; box-shadow: none; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* 7. HERO ------------------------------------------------------------ */
.hero { position: relative; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(3rem, 7vw, 4.5rem); align-items: center; }
@media (min-width: 60em) { .hero-grid { grid-template-columns: 1.15fr .85fr; } .hero h1 { font-size: clamp(3.2rem, .6rem + 4.3vw, 4.25rem); } }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem .45rem .5rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--navy); font-weight: 500; font-size: .92rem; margin-bottom: 1.5rem; box-shadow: 0 6px 16px -12px rgba(19, 34, 59, .4); }
.pill b { background: var(--teal-ink); color: #fff; border-radius: 999px; padding: .2rem .6rem; font-size: .8rem; }
.hero h1 { margin-bottom: .55em; }
.hero h1 .line { display: block; }
.marked { position: relative; display: inline-block; white-space: nowrap; }
.marked svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.hero .lede { margin-bottom: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 2rem 0 0; color: var(--navy); font-weight: 500; font-size: .98rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts svg { width: 20px; height: 20px; color: var(--teal); }

.hero-art { position: relative; max-width: 34rem; width: 100%; justify-self: center; padding: 1.5rem 1rem 2.5rem 0; }
.blob { position: absolute; inset: 0 0 1rem 1.25rem; background: var(--orange); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; transform: rotate(-6deg); }
.blob-2 { position: absolute; width: 38%; aspect-ratio: 1; right: -4%; top: -2%; border-radius: 50%; background: var(--sun); opacity: .9; }
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(19, 34, 59, .6); transform: rotate(2deg); border: 6px solid #fff; background: #ddd; }
.photo img { width: 100%; height: auto; aspect-ratio: 716 / 584; object-fit: cover; }
.chip { position: absolute; display: flex; align-items: center; gap: .6rem; background: #fff; color: var(--navy); border-radius: 16px; padding: .7rem .95rem; font-weight: 700; font-size: .9rem; line-height: 1.2; box-shadow: var(--shadow); }
.chip small { display: block; font-weight: 400; color: var(--grey); font-size: .8rem; }
.chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip .dot svg { width: 20px; height: 20px; }
.chip--a { left: -.5rem; bottom: 1.25rem; }
.chip--a .dot { background: var(--mint); color: var(--teal-ink); }
.chip--b { right: -.25rem; top: 32%; }
.chip--b .dot { background: var(--peach); color: var(--orange-ink); }
.sticker { position: absolute; left: -1.25rem; top: -.25rem; width: 112px; height: 112px; }
.sticker .ring { width: 100%; height: 100%; }
.sticker .ring text { font: 700 9.5px var(--sans); fill: #fff; }
.sticker .core { position: absolute; inset: 22%; border-radius: 50%; background: var(--navy); display: grid; place-items: center; color: #fff; font: 400 1.35rem/1 var(--serif); text-align: center; }
@media (min-width: 60em) { .hero-art { justify-self: end; } }
@media (max-width: 30em) {
  .hero-art { padding: 1rem .5rem 2.5rem 0; }
  .sticker { width: 88px; height: 88px; left: -.5rem; top: -.75rem; }
  .sticker .core { font-size: 1.05rem; }
  .chip { font-size: .82rem; padding: .55rem .75rem; }
  .chip .dot { width: 28px; height: 28px; }
  .chip--b { top: auto; bottom: -1rem; right: 0; }
  .chip--a { bottom: 3.25rem; }
}

/* 8. TOPIC TICKER ---------------------------------------------------- */
.ticker { background: var(--navy); color: #fff; overflow: hidden; padding-block: 1.15rem; border-block: 4px solid var(--orange); }
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex: none; }
.ticker li { display: flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; font: 400 clamp(1.35rem, 1.1rem + 1vw, 1.9rem)/1 var(--serif); white-space: nowrap; }
.ticker li::after { content: ""; width: 14px; height: 14px; background: var(--orange); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.ticker li:nth-child(3n)::after { background: var(--sun); }
.ticker li:nth-child(3n+1)::after { background: #6FC3BB; }

/* 9. INSIDE A LESSON ------------------------------------------------- */
.lesson { position: relative; overflow: hidden; }
.lesson-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64em) { .lesson-grid { grid-template-columns: .72fr 1.28fr; gap: 4rem; } }
.lesson .head { margin-bottom: 1.5rem; }
.lesson-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.lesson-points li { display: flex; gap: .9rem; align-items: flex-start; color: #DDE4EE; }
.lesson-points .num { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font: 700 .95rem/1 var(--sans); margin-top: .1rem; }
.lesson-points strong { color: #fff; display: block; }
.window { margin: 0; position: relative; background: #0C1729; border-radius: 18px; padding: 2.4rem .6rem .6rem; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.window::before { content: ""; position: absolute; top: .95rem; left: 1rem; width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; box-shadow: 16px 0 0 #FEBC2E, 32px 0 0 #28C840; }
.window-label { position: absolute; top: .55rem; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: #9FB0C5; white-space: nowrap; }
.window-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF4D4D; animation: pulse 1.6s ease-in-out infinite; }
.window img { border-radius: 10px; width: 100%; height: auto; }
.pin { position: absolute; width: 2rem; height: 2rem; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font: 700 .95rem/1 var(--sans); box-shadow: 0 0 0 6px rgba(232, 98, 58, .3); }
.pin--1 { left: 31%; top: 43%; }
.pin--2 { left: 72%; top: 15%; }
.pin--3 { left: 57%; top: 47%; }
.note-hand { position: absolute; font: 600 1.7rem/1.05 var(--hand); color: var(--sun); display: none; }
@media (min-width: 64em) {
  .note-hand { display: block; }
  .note-hand--1 { left: -1rem; bottom: -3.4rem; transform: rotate(-4deg); }
  .note-hand--1 svg { position: absolute; left: 7rem; top: -3.1rem; width: 70px; }
}

/* 10. WHY PARENTS CHOOSE US ----------------------------------------- */
.why { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 40em) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .why { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.why li { position: relative; padding: 1.6rem 1.5rem 1.5rem; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.why li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem; color: var(--navy); background: var(--peach); transition: transform .3s var(--ease); }
.why li:nth-child(3n+2) .ico { background: var(--mint); }
.why li:nth-child(3n) .ico { background: var(--sky); }
.why li:hover .ico { transform: rotate(-8deg) scale(1.06); }
.why .ico svg { width: 28px; height: 28px; }
.why h3 { margin-bottom: .3rem; }
.why p { margin: 0; font-size: .98rem; }
@media (max-width: 39.99em) {
  .why { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .why li { padding: 1.1rem 1rem; border-radius: 18px; }
  .why .ico { width: 44px; height: 44px; border-radius: 13px; margin-bottom: .8rem; }
  .why .ico svg { width: 24px; height: 24px; }
  .why h3 { font-size: 1rem; }
  .why p { font-size: .88rem; line-height: 1.45; }
}

/* 11. SUBJECTS ------------------------------------------------------- */
.subjects { display: grid; gap: 1.1rem; }
@media (min-width: 52em) { .subjects { grid-template-columns: repeat(3, 1fr); } }
.subject { position: relative; display: flex; flex-direction: column; min-height: 17rem; padding: 1.75rem; border-radius: var(--r-lg); text-decoration: none; color: #fff; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.subject::before { content: ""; position: absolute; right: -3.5rem; bottom: -3.5rem; width: 12rem; height: 12rem; border-radius: 50%; background: rgba(255, 255, 255, .12); z-index: -1; transition: transform .5s var(--ease); }
.subject:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 26px 50px -24px rgba(19, 34, 59, .7); color: #fff; }
.subject:hover::before { transform: scale(1.35); }
.subject--maths { background: var(--teal-ink); }
.subject--english { background: var(--orange-ink); }
.subject--tests { background: var(--navy); }
.subject h3 { font: 400 clamp(2rem, 1.6rem + 1.2vw, 2.6rem)/1 var(--serif); color: #fff; margin-bottom: .5rem; }
.subject p { margin-bottom: 1.25rem; color: rgba(255, 255, 255, .88); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tags li { padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 500; }
.subject .go { margin-top: auto; display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.subject .go span { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform .25s var(--ease); }
.subject .go svg { width: 18px; height: 18px; }
.subject:hover .go span { transform: translateX(4px) rotate(-45deg); }

/* 12. TUTORS --------------------------------------------------------- */
.tutors { display: grid; gap: 1.25rem; }
@media (min-width: 52em) { .tutors { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.tutor { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; background: var(--paper); border-radius: var(--r-lg); padding: 1.6rem; border: 1px solid var(--line); }
.monogram { width: 4.25rem; height: 4.25rem; border-radius: 22px; display: grid; place-items: center; color: #fff; font: 400 2.2rem/1 var(--serif); background: var(--orange); transform: rotate(-5deg); }
.tutor:nth-child(2) .monogram { background: var(--teal); transform: rotate(5deg); }
.tutor h3 { font: 400 1.75rem/1.1 var(--serif); margin-bottom: .2rem; }
.tutor .meta { font-size: .9rem; color: var(--teal-ink); font-weight: 700; margin-bottom: .7rem; }
.tutor p { margin: 0; }
@media (max-width: 30em) {
  .tutor { grid-template-columns: 1fr; gap: .9rem; padding: 1.4rem; }
  .monogram { width: 3.4rem; height: 3.4rem; font-size: 1.8rem; border-radius: 18px; }
}

/* 13. PRICING -------------------------------------------------------- */
.prices { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0 0 1.75rem; }
@media (min-width: 48em) { .prices { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.price { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); padding: 1.75rem; border: 1px solid var(--line); }
.price h3 { margin-bottom: .2rem; }
.price .for { font-size: .95rem; margin-bottom: 1.25rem; }
.price .amount { font: 400 3.6rem/1 var(--serif); color: var(--navy); margin: auto 0 0; }
.price .amount small { font: 500 1rem var(--sans); color: var(--grey); margin-left: .2rem; }
.price--feature { background: var(--navy); border-color: var(--navy); color: #C8D2E0; }
.price--feature h3, .price--feature .amount { color: #fff; }
@media (max-width: 47.99em) {
  .price { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; padding: 1.3rem 1.4rem; }
  .price h3, .price .for { grid-column: 1; }
  .price .for { margin: 0; }
  .price .amount { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 2.8rem; }
}
.price--feature .badge { position: absolute; top: -.85rem; right: 1.25rem; background: var(--sun); color: var(--navy); font-weight: 700; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; transform: rotate(3deg); }
.price-notes { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.price-notes li { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; color: var(--navy); font-weight: 500; }
.price-notes svg { width: 16px; height: 16px; color: var(--teal); }

/* 14. BOOKING FORM --------------------------------------------------- */
.book-panel { display: grid; gap: 2rem; background: var(--navy); border-radius: clamp(22px, 4vw, 36px); padding: clamp(1.25rem, 4.5vw, 3.5rem); color: #C8D2E0; position: relative; overflow: hidden; isolation: isolate; }
.book-panel::before { content: ""; position: absolute; width: 26rem; height: 26rem; border-radius: 50%; background: var(--teal); opacity: .28; left: -10rem; bottom: -14rem; z-index: -1; }
@media (min-width: 62em) { .book-panel { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; } }
.book-panel h1, .book-panel h2 { color: #fff; }
.book-panel h1 { font-size: clamp(2.15rem, 1.4rem + 3vw, 3.6rem); }
@media (max-width: 61.99em) { .book-panel--form-first .form-card { order: -1; } .book-panel--form-first .book-intro { padding-top: 0; } }
.book-intro { padding-top: .5rem; }
.book-steps { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 1.1rem; counter-reset: s; }
.book-steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; align-items: start; }
.book-steps li::before { content: counter(s); width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--orange); color: #fff; display: grid; place-items: center; font: 400 1.2rem/1 var(--serif); }
.book-steps strong { color: #fff; display: block; }
.book-intro .mail { color: #fff; font-weight: 700; word-break: break-word; }
.form-card { background: var(--paper); border-radius: 22px; padding: clamp(1.25rem, 4vw, 2rem); color: var(--grey); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.form-row { display: grid; column-gap: 1rem; }
@media (min-width: 36em) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); font-size: .97rem; margin-bottom: .4rem; }
.opt { font-weight: 400; color: var(--grey); }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--navy); background: var(--cream); border: 1.5px solid #D6CFC2; border-radius: 12px; padding: .75rem .9rem; min-height: 50px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
textarea { min-height: 6.5rem; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2313223B' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .95rem center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background-color: #fff; box-shadow: 0 0 0 4px rgba(46, 139, 132, .2); }
input:user-invalid, select:user-invalid { border-color: #B3261E; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.05rem; border: 1.5px solid #D6CFC2; border-radius: 999px; background: var(--cream); color: var(--navy); font-weight: 500; cursor: pointer; transition: all .15s; }
.choice span:hover { border-color: var(--navy); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; }
.form-card .btn { width: 100%; margin-top: .3rem; }
.form-small { font-size: .86rem; margin: .85rem 0 0; text-align: center; }

/* 15. FAQS ----------------------------------------------------------- */
.faq-list { max-width: 50rem; display: grid; gap: .75rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { border-color: #CFC7B8; box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; position: relative; padding: 1.2rem 3.5rem 1.2rem 1.4rem; color: var(--navy); font-weight: 700; font-size: 1.06rem; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; width: 1.9rem; height: 1.9rem; margin-top: -.95rem; border-radius: 50%; background: var(--peach); color: var(--orange-ink); display: grid; place-items: center; font: 400 1.4rem/1 var(--sans); transition: transform .25s var(--ease), background-color .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--orange-ink); color: #fff; }
.faq-answer { padding: 0 1.4rem 1.3rem; }
.faq-answer p { margin: 0; }
.faq-item[open] .faq-answer { animation: rise .3s var(--ease); }
.faq-more { margin-top: 1.75rem; font-weight: 700; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.3rem); }

/* 16. INNER PAGES ---------------------------------------------------- */
.page-hero { padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }
.page-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60em) { .page-hero-grid--img { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.page-hero h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.4rem); }
.page-hero .lede { margin-bottom: 1.75rem; }
.page-hero-img { position: relative; padding: 1rem 0 1rem 1rem; }
.page-hero-img::before { content: ""; position: absolute; inset: 0 1.5rem 2rem 0; border-radius: var(--r-lg); background: var(--peach); transform: rotate(-3deg); }
.page-hero-img--teal::before { background: var(--mint); }
.page-hero-img img { position: relative; border-radius: 20px; box-shadow: var(--shadow); border: 5px solid #fff; }
.crumbs { font-size: .9rem; margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #A3A9B1; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy); font-weight: 500; }
.years { display: grid; gap: 1.1rem; }
@media (min-width: 52em) { .years { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.year { background: var(--paper); border-radius: var(--r-lg); padding: 1.6rem; border: 1px solid var(--line); }
.year::before { content: ""; display: block; width: 3rem; height: 6px; border-radius: 6px; background: var(--teal); margin-bottom: 1.1rem; }
.year:nth-child(2)::before { background: var(--orange); }
.year:nth-child(3)::before { background: var(--navy); }
.year h3 { font: 400 1.7rem/1.1 var(--serif); margin-bottom: .2rem; }
.year .sub { color: var(--teal-ink); font-weight: 700; font-size: .92rem; margin-bottom: 1rem; }
.year ul { padding-left: 1.1rem; margin: 0; }
.year li { margin-bottom: .35rem; }
.year li::marker { color: var(--orange); }
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56em) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check-list li { position: relative; padding-left: 2.1rem; margin-bottom: .8rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2323706A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.info-card { background: var(--paper); border-radius: var(--r-lg); padding: 1.75rem; border: 1px solid var(--line); }
.info-card h3 { font: 400 1.7rem/1.1 var(--serif); }
.mini-prices { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.mini-prices li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--navy); }
.mini-prices b { font: 400 1.7rem/1 var(--serif); white-space: nowrap; }
.cta-band { background: var(--orange-ink); border-radius: var(--r-lg); padding: clamp(1.75rem, 5vw, 3rem); display: grid; gap: 1.5rem; align-items: center; color: #FDE4DA; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; right: -4rem; top: -5rem; width: 16rem; height: 16rem; border-radius: 50%; background: rgba(255, 255, 255, .1); z-index: -1; }
@media (min-width: 52em) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .25em; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); }
.cta-band p { margin: 0; }
.related { display: grid; gap: .9rem; }
@media (min-width: 40em) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: block; padding: 1.2rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; font-weight: 700; color: var(--navy); transition: transform .2s var(--ease), border-color .2s; }
.related a:hover { transform: translateY(-3px); border-color: var(--navy); }
.related span { display: block; font-weight: 400; font-size: .92rem; color: var(--grey); margin-top: .15rem; }
.message-page { min-height: 60vh; display: flex; align-items: center; }

/* 17. FOOTER --------------------------------------------------------- */
.site-footer { background: var(--navy); color: #AEBBCD; padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer-brand img { height: 54px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 23rem; }
.site-footer h2 { font: 700 .95rem/1.3 var(--sans); color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #D5DDE8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); }
.footer-email { font-weight: 700; color: #fff !important; word-break: break-word; }
.footer-gap { margin-top: 1.5rem; }
.footer-bottom { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* 18. ANIMATIONS ----------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes reveal-photo { from { clip-path: inset(100% 0 0 0 round 28px); } to { clip-path: inset(0 0 0 0 round 28px); } }
@keyframes blob { 0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; } 50% { border-radius: 56% 44% 55% 45% / 44% 58% 42% 56%; } }
@keyframes in-view { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(232, 98, 58, .55); } to { box-shadow: 0 0 0 14px rgba(232, 98, 58, 0); } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance (plays once on load) */
  .hero .pill { animation: rise .6s var(--ease) both; }
  .hero h1 .line { animation: rise .7s var(--ease) both; }
  .hero h1 .line:nth-child(2) { animation-delay: .12s; }
  .hero .lede { animation: rise .7s .25s var(--ease) both; }
  .hero .btn-row { animation: rise .7s .35s var(--ease) both; }
  .hero-facts { animation: rise .7s .45s var(--ease) both; }
  .marked path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s .75s var(--ease) forwards; }
  .blob { animation: blob 9s ease-in-out infinite; }
  .photo { animation: reveal-photo 1s .2s var(--ease) both; }
  .chip--a { animation: pop .6s 1s var(--ease) both, float 5s 1.6s ease-in-out infinite; }
  .chip--b { animation: pop .6s 1.25s var(--ease) both, float 6s 1.9s ease-in-out infinite; }
  .sticker { animation: pop .6s .8s var(--ease) both; }
  .sticker .ring { animation: spin 16s linear infinite; }

  /* Topic ticker */
  .ticker-track { animation: ticker 38s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }

  /* Pins on the lesson screenshot */
  .pin { animation: ring 1.8s ease-out infinite; }
  .pin--2 { animation-delay: .6s; }
  .pin--3 { animation-delay: 1.2s; }

  /* Things slide in as you scroll (browsers that support it; others just show them) */
  @supports (animation-timeline: view()) {
    .reveal { animation: in-view linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .reveal-stagger > * { animation: in-view linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .site-header, .ticker, .site-footer, .btn, .hero-art { display: none !important; } body { background: #fff; } }

/* Spacing helpers (used instead of inline styles) */
.section--flush { padding-top: 0; }
.page-hero--short { padding-bottom: 0; }
.pill b { white-space: nowrap; }
@media (max-width: 40em) { .pin { width: 1.45rem; height: 1.45rem; font-size: .75rem; box-shadow: 0 0 0 4px rgba(232, 98, 58, .3); } }
