/* =========================================================================================
   Homepage v2 (Cassi's 19 Nov 2026 handover, 01_HOMEPAGE_BUILD.md). Staff preview only until approved:
   served by /home-route.php to console admins with preview on; the public still gets index.html.
   Palette = the approved course-selection tokens (course-select-v3.css), declared once here.
   ========================================================================================= */
@font-face {
  font-family: "Manrope";
  src: url("/fd-assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fd-assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
.hv2 {
  --hv-navy: #09234B;
  --hv-text: #F5F8FF;
  --hv-muted: #C8D8EE;
  --hv-mint: #35EDC3;
  --hv-mint-hover: #8CF5DC;
  --hv-pale: #A8CCFF;
  --hv-pale-hover: #E5F1FF;
  --hv-silver: linear-gradient(170deg, #F4F6FA, #D9DDE4 43%, #B2B6BE 78%, #CBD0D8);
  --hv-silver-hover: #E8ECF2;
  --hv-silver-line: #B2B6BE;
  --hv-card: #0E2242;
  --hv-card-line: rgba(168, 204, 255, .22);
  --hv-panel: #0A203E;
  --hv-focus: #FFFFFF;
  --hv-radius: 16px;
  font-family: "Manrope", system-ui, sans-serif;
}
.hv2 :where(*, *::before, *::after) { box-sizing: border-box; }
/* The page is one continuous navy, like the approved course-selection pages (the front door's other pages are light). */
body.hv2 { background: linear-gradient(180deg, #081A35 0%, #0B2342 55%, #081A35 100%) fixed; color: var(--hv-text); }
body.hv2 main { background: transparent; }
.hv2-wrap { max-width: var(--maxw, 1200px); margin-inline: auto; padding-inline: var(--gutter, 1.25rem); }

/* ---------- buttons: navy text on filled colour ---------- */
.hv2-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hv2-ctas--center { justify-content: center; }
.hv2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  font: 800 1.02rem/1.25 "Manrope", system-ui, sans-serif; text-decoration: none !important;
  color: var(--hv-navy) !important; transition: background-color .2s ease, transform .2s ease;
}
.hv2-btn--mint { background: var(--hv-mint); }
.hv2-btn--mint:hover { background: var(--hv-mint-hover); }
.hv2-btn--pale { background: var(--hv-pale); }
.hv2-btn--pale:hover { background: var(--hv-pale-hover); }
.hv2-btn--silver { background: var(--hv-silver); }
.hv2-btn--silver:hover { background: var(--hv-silver-hover); }
.hv2-btn:focus-visible, .hv2-clip__btn:focus-visible { outline: 3px solid var(--hv-focus); outline-offset: 3px; }
.hv2-arrow { font-size: 1.2em; line-height: 1; }

/* ---------- hero: the existing background video, shorter, text left on the nav-logo line ---------- */
.hv2 .hv2-hero { min-height: min(80svh, 780px); place-items: center start; }
.hv2 .hv2-hero .hero__overlay {
  background:
    linear-gradient(90deg, rgba(7,9,13,.82) 0%, rgba(7,9,13,.66) 34%, rgba(7,9,13,.30) 62%, rgba(7,9,13,.12) 100%),
    linear-gradient(180deg, rgba(7,9,13,.55) 0%, rgba(7,9,13,.22) 40%, rgba(7,9,13,.5) 82%, var(--c-bg) 100%);
}
.hv2-hero__content {
  position: relative; z-index: 2; width: 100%;
  padding: calc(var(--nav-h, 70px) + 40px) var(--gutter, 1.25rem) 56px;
  color: var(--hv-text); text-shadow: 0 1px 14px rgba(0,0,0,.45);
}
.hv2-eyebrow { margin: 0 0 14px; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hv-mint); }
html body.hv2 .hv2-title {
  margin: 0; max-width: 17ch; font: 700 clamp(2.3rem, 1.3rem + 3.6vw, 4.1rem)/1.06 "Manrope", system-ui, sans-serif !important;
  letter-spacing: -0.02em; color: #FFFFFF; text-wrap: balance;
}
.hv2-lead { max-width: 54ch; margin: 20px 0 0; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); line-height: 1.6; color: #E6EEF9; text-wrap: pretty; }
.hv2-nudge { max-width: 54ch; margin: 22px 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--hv-muted); }
.hv2-nudge strong { color: #FFFFFF; font-weight: 800; }
.hv2-hero .hv2-btn { text-shadow: none; }

/* ---------- sections ---------- */
.hv2-section { padding-block: clamp(36px, 5vw, 64px); }
.hv2 h2 { color: #FFFFFF; font-family: "Manrope", system-ui, sans-serif; }

/* ---------- Learn / Practise / Improve ---------- */
.hv2-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.hv2-card { display: flex; flex-direction: column; padding: 14px 14px 24px; border-radius: var(--hv-radius); background: var(--hv-card); border: 1px solid var(--hv-card-line); }
html body.hv2 .hv2-card__h { margin: 18px 6px 8px; color: #FFFFFF; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem) !important; font-weight: 800 !important; }
.hv2-card p { margin: 0 6px; color: var(--hv-muted); line-height: 1.6; font-size: 1rem; }
.hv2-clip { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #050A14; border: 1px solid var(--hv-card-line); }
.hv2-clip img, .hv2-clip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.hv2-clip iframe { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.hv2-clip.is-playing iframe { opacity: 1; }
.hv2-clip__btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); background: rgba(9,35,75,.82); color: #FFFFFF; cursor: pointer;
}
.hv2-clip__btn[hidden] { display: none; }
.hv2-clip__btn:hover { background: var(--hv-navy); }
/* the icon: a play triangle, or two pause bars while playing */
.hv2-clip__icon { width: 14px; height: 16px; background: currentColor; clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.hv2-clip.is-playing .hv2-clip__icon { clip-path: none; background: linear-gradient(90deg, currentColor 0 36%, transparent 36% 64%, currentColor 64%); }
/* the play fallback (autoplay blocked, or reduced motion): a larger centred button */
.hv2-clip.is-still .hv2-clip__btn { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 60px; height: 60px; }
.hv2-clip.is-still .hv2-clip__icon { width: 18px; height: 20px; }

/* ---------- Writing Diagnostic panel ---------- */
.hv2-diag {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 56px);
  padding: clamp(22px, 3.4vw, 44px); border-radius: 20px; border: 2px solid var(--hv-silver-line);
  background: radial-gradient(ellipse at 84% 70%, #1C527C, transparent 60%), var(--hv-panel);
}
html body.hv2 .hv2-diag h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem) !important; font-weight: 800 !important; line-height: 1.15; text-wrap: balance; }
.hv2-diag__copy > p { margin: 16px 0 0; color: var(--hv-muted); line-height: 1.6; font-size: 1.05rem; max-width: 52ch; }
.hv2-diag__price { margin-top: 18px !important; color: #E1E5ED !important; }
.hv2-diag__fig { margin: 0; text-align: center; }
.hv2-diag__fig img { display: block; width: 100%; height: auto; }
.hv2-diag__fig figcaption { margin-top: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--hv-muted); }

/* ---------- closing CTA ---------- */
.hv2-close { text-align: center; padding-top: clamp(24px, 4vw, 48px); }
html body.hv2 .hv2-close h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem) !important; font-weight: 800 !important; }

/* ---------- small screens: stack; content sets the hero height ---------- */
@media (max-width: 900px) {
  .hv2-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .hv2-diag { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hv2 .hv2-hero { min-height: 0; }
  .hv2-hero__content { padding-top: calc(var(--nav-h, 70px) + 28px); padding-bottom: 40px; }
  .hv2-ctas { flex-direction: column; align-items: stretch; }
  .hv2-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hv2-btn, .hv2-clip iframe { transition: none; }
}

/* Readiness Check pop-up (Cassi, 19 Nov 2026). Native <dialog>: modal, focus contained, Esc closes. */
.hv2-rc { position: fixed; inset: 0; margin: auto; width: min(920px, calc(100vw - 32px)); height: min(860px, calc(100vh - 48px)); max-width: none; max-height: none;
  padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: #0b1f45; color: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; }
.hv2-rc::backdrop { background: rgba(4, 12, 30, .72); }
.hv2-rc[open] { display: flex; flex-direction: column; }
.hv2-rc__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.12); flex: 0 0 auto; }
.hv2-rc__title { font: 800 1rem/1.2 Manrope, system-ui, sans-serif; }
.hv2-rc__close { width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff;
  font: 400 28px/1 system-ui, sans-serif; cursor: pointer; }
.hv2-rc__close:hover { background: rgba(255,255,255,.2); }
.hv2-rc__close:focus-visible { outline: 3px solid var(--hv-mint, #35edc3); outline-offset: 2px; }
.hv2-rc__body { flex: 1 1 auto; min-height: 0; }
.hv2-rc__body iframe { display: block; width: 100%; height: 100%; border: 0; background: #0b1f45; }
html.hv2-rc-open { overflow: hidden; }
@media (max-width: 640px) {
  .hv2-rc { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
