/* XPNova Home (default since 2026-11-12, promoted from the Home 2 design sample).
   Loaded by index.html together with assets/views/home2.js. Comet Camp tokens
   from styles.css. The first screen keeps the original stargazers illustration.
   Below it, four question cards sit two per row: the question small and simple,
   then its explanation video, which is on screen from the start. The diagnostic
   scenes use the owner's ten selected line characters. */

body:has(.hp2-page) { background: var(--bg); background-image: none; }
body:has(.hp2-page) .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "header" "main" "foot"; }
body:has(.hp2-page) .app-main { max-width: 1240px; width: 100%; margin-inline: auto; padding: 0 clamp(16px, 4.5vw, 64px) 72px; min-width: 0; }
body:has(.hp2-page) .app-foot { padding-inline: max(24px, calc((100% - 1112px) / 2)); z-index: auto; }
body:has(.hp2-page) .app-header { box-shadow: none; }

.hp2-page { color: var(--ink); text-align: left; --hp2-measure: 62ch; }
.hp2-page * { box-sizing: border-box; }
.hp2-page h1, .hp2-page h2, .hp2-page h3 { font-family: var(--font-heading); color: var(--forest-3); margin: 0; text-wrap: balance; }
.hp2-page h1 { font-size: clamp(36px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.034em; font-weight: 800; max-width: 15ch; margin-bottom: 22px; }
.hp2-nowrap { white-space: nowrap; }
.hp2-page h2 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.12; letter-spacing: -.027em; font-weight: 800; margin-bottom: 16px; }
.hp2-page h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.012em; font-weight: 700; margin-bottom: 6px; }
.hp2-page p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 16px; max-width: var(--hp2-measure); text-wrap: pretty; }
.hp2-page a:not(.btn) { color: var(--forest); text-underline-offset: 4px; }
.hp2-page button { font-family: inherit; }
.hp2-stick { object-fit: contain; }
.hp2-page [tabindex="-1"]:focus { outline: none; }
.hp2-page .btn { border-radius: 12px; font-size: 16px; }

/* ---------- in-page navigation ---------- */
.hp2-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 26px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hp2-page .hp2-nav a, .hp2-nav button { display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 6px 0; min-height: 36px; cursor: pointer; }
.hp2-page .hp2-nav a:hover, .hp2-nav button:hover { color: var(--forest); text-decoration: underline; }
.hp2-page .hp2-nav .hp2-nav-dash { margin-left: auto; color: var(--forest-3); font-weight: 700; }

/* ---------- hero ---------- */
.hp2-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(34px, 5vw, 80px); align-items: center; padding: clamp(48px, 6.5vw, 96px) 0; }
.hp2-hero-art { display: block; width: 100%; max-width: 520px; height: auto; justify-self: center; }
.hp2-page .hp2-orient { font-size: 15px; font-weight: 700; color: var(--forest); margin-bottom: 14px; }
.hp2-page .hp2-lead { font-size: 19px; line-height: 1.6; max-width: 44ch; }
.hp2-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin: 28px 0 12px; }
.hp2-page .hp2-start-note { font-size: 14px; color: var(--muted); margin: 0; }
.hp2-text-button { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; min-height: 40px; padding: 4px 0; border: 0; background: none; color: var(--forest); font-size: 15px; font-weight: 700; cursor: pointer; }
.hp2-text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.hp2-page .hp2-fineprint { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 22px 0 0; max-width: 46ch; }

/* ---------- try four questions: two video cards per row ---------- */
.hp2-try { padding: clamp(56px, 6vw, 88px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.hp2-try-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.hp2-try-art { display: block; flex: none; width: 140px; height: auto; margin-bottom: -6px; }
.hp2-page .hp2-try-note { font-size: 14px; color: var(--muted); margin: 0; }
.hp2-q-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.hp2-q { min-width: 0; margin: 0; padding: 24px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; }
.hp2-q-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--forest); }
.hp2-q-head span + span { font-weight: 400; color: var(--muted); }
.hp2-page .hp2-q h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 16px; }

/* The question, small and simple: a figure thumbnail beside a short stem. */
.hp2-q-brief { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; }
.hp2-page .hp2-q-figure { flex: none; margin: 0; padding: 4px; background: #fff; border: 1px solid var(--line-soft); border-radius: 8px; --question-image-height: 76px; --question-image-width: 150px; }
.hp2-page .hp2-q-figure .question-raster-image { object-position: center; }
.hp2-page .hp2-q-stem { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }

/* The shared explanation player, sized as on the previous Home's cards. */
.hp2-page .hp2-q .explanation-video { margin: 0; border: 0; padding: 0; background: transparent; box-shadow: none; }
.hp2-page .hp2-q .explanation-video-heading { font-size: 12px; justify-content: flex-end; margin-bottom: 8px; color: var(--muted); }
.hp2-page .hp2-q .explanation-video-heading strong { display: none; }
.hp2-page .hp2-q .explanation-video video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #152d25; }
.hp2-page .hp2-q .xp-video-player { border-radius: 10px; max-width: 100%; overflow: hidden; }
.hp2-page .hp2-q .xp-video-picture { background: #152d25; }
.hp2-page .hp2-q .xp-video-player video { border-radius: 0; }
.hp2-page .hp2-q .xp-video-controls { gap: 7px; padding: 10px 8px; font-size: 11px; }
.hp2-page .hp2-q .xp-video-button, .hp2-page .hp2-q .xp-video-download { font-size: 11px; min-height: 32px; padding: 3px 5px; }
.hp2-page .hp2-q .xp-video-volume { max-width: 45px; }
.hp2-page .hp2-q .explanation-video-note { font-size: 11px; line-height: 1.5; margin: 9px 0 0; color: var(--muted); }
.hp2-page .hp2-q-description { font-size: 15px; line-height: 1.6; margin: 18px 0 10px; }
.hp2-page .hp2-video-missing { font-size: 15px; padding: 18px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 12px; }
.hp2-q-more { border-top: 1px solid var(--line-soft); margin-top: 16px; padding-top: 6px; }
.hp2-q-more summary { min-height: 36px; padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--forest); cursor: pointer; }
.hp2-page .hp2-q-more p { font-size: 14px; line-height: 1.65; white-space: pre-line; color: var(--ink); margin: 12px 0; }
.hp2-q-passage { margin: 10px 0 0; padding: 12px 14px; background: var(--surface); border-radius: 10px; }
.hp2-q-passage strong { font-family: var(--font-heading); color: var(--forest-3); }
.hp2-page .hp2-q-passage p { margin: 8px 0 0; }
.hp2-page .hp2-q-more .hp2-q-explain-title { font-weight: 700; color: var(--forest-3); margin-bottom: 0; }
.hp2-page .hp2-q-more .hp2-q-explain { margin-top: 4px; }
.hp2-page .hp2-sample-note { font-size: 13px; color: var(--muted); margin: 22px 0 0; }

/* ---------- review timeline: the gaps widen as the schedule does ---------- */
.hp2-review, .hp2-next, .hp2-exams, .hp2-faq, .hp2-founder { padding: clamp(56px, 6vw, 88px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.hp2-review-intro { max-width: 720px; }
/* Each stop's Nova stands on the line, above its dot. */
.hp2-timeline { --hp2-art: 160px; list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr); }
.hp2-stop { position: relative; padding: calc(var(--hp2-art) + 50px) 28px 0 0; min-width: 0; }
.hp2-stop-art { position: absolute; left: -6px; top: 0; height: var(--hp2-art); width: auto; max-width: calc(100% - 16px); object-fit: contain; object-position: left bottom; }
.hp2-stop::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--hp2-art) + 17px); height: 3px; background: var(--forest); }
.hp2-stop:last-child::before { right: auto; width: 20px; }
.hp2-stop::after { content: ""; position: absolute; left: 0; top: calc(var(--hp2-art) + 8px); width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 3px solid var(--forest); }
.hp2-stop-mastered::after { width: 30px; height: 30px; top: calc(var(--hp2-art) + 4px); left: -4px; background: var(--gold); border-color: var(--gold-sh); }
.hp2-when { display: block; font-size: 14px; font-weight: 700; color: var(--forest); margin-bottom: 6px; }
.hp2-stop-mastered .hp2-when { color: var(--gold-ink); }
.hp2-page .hp2-stop p { font-size: 15px; line-height: 1.6; margin: 0; max-width: 34ch; }
.hp2-page .hp2-review-note { font-size: 13px; color: var(--muted); margin: 30px 0 0; }

/* ---------- coming next: curriculum lessons (in development) ---------- */
.hp2-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 24px clamp(32px, 5vw, 72px); align-items: center; }
.hp2-next-copy .hp2-status { margin-bottom: 16px; }
.hp2-next-list { list-style: none; margin: 26px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hp2-next-list li { padding: 18px 18px 6px; background: var(--surface-2); border: 2px solid var(--line); border-radius: 16px; }
.hp2-page .hp2-next-list h3 { font-size: 17px; }
.hp2-page .hp2-next-list p { font-size: 15px; line-height: 1.55; }
.hp2-next-art { display: block; width: auto; max-width: 100%; height: 280px; justify-self: center; }

/* ---------- tests covered ---------- */
.hp2-exam-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px 32px; padding: 26px 0; border-bottom: 1px solid var(--line-soft); max-width: 1000px; }
.hp2-exam-row:first-of-type { margin-top: 12px; }
.hp2-page .hp2-exam-row p { margin-bottom: 0; }
.hp2-page .hp2-status { display: inline-block; align-self: start; justify-self: start; margin: 2px 0 0; padding: 5px 12px; border: 2px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.hp2-page .hp2-status-ready { background: var(--forest); border-color: var(--forest); color: #fff8e7; }
.hp2-page .hp2-context-notice { font-size: 13px; color: var(--muted); margin: 22px 0 0; }

/* ---------- parent questions ---------- */
.hp2-faq-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 820px; }
.hp2-page .hp2-faq-intro h2 { margin-bottom: 0; }
.hp2-faq-art { display: block; flex: none; width: auto; height: 116px; }
.hp2-faq-list { max-width: 820px; margin-top: 18px; border-top: 2px solid var(--forest-3); }
.hp2-faq-list details { border-bottom: 1px solid var(--line); }
.hp2-faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; min-height: 56px; font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--forest-3); cursor: pointer; list-style: none; }
.hp2-faq-list summary::-webkit-details-marker { display: none; }
.hp2-faq-list summary::after { content: "+"; flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--line); border-radius: 50%; font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--forest); }
.hp2-faq-list details[open] summary::after { content: "\2212"; background: var(--green-bg); border-color: var(--green-line); }
.hp2-faq-list summary:hover { color: var(--forest); }
.hp2-page .hp2-faq-list p { font-size: 16px; padding: 0 2px 20px; margin: 0; }

/* ---------- founder and close ---------- */
.hp2-founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(36px, 5vw, 76px); }
.hp2-page .hp2-founder h2 { max-width: 16ch; }
.hp2-founder-art { display: block; width: auto; max-width: 100%; height: 280px; margin-top: 26px; }
.hp2-page .hp2-signature { font-weight: 700; color: var(--forest-3); margin-top: 22px; }
.hp2-close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px clamp(28px, 4vw, 56px); align-items: center; padding: clamp(40px, 5vw, 64px) clamp(22px, 4vw, 56px); background: var(--green-bg); border: 2px solid var(--green-line); border-radius: 22px; }
.hp2-close .hp2-close-art { max-width: 340px; margin: 0; }
.hp2-diagnostic-art { width: 100%; display: grid; justify-items: center; gap: 18px; }
.hp2-diagnostic-nova { display: block; width: auto; max-width: 100%; height: 252px; }
.hp2-diagnostic-duo { display: flex; justify-content: center; align-items: flex-end; gap: 16px; width: 100%; }
.hp2-diagnostic-duo .hp2-diagnostic-nova { width: calc((100% - 16px) / 2); max-width: 148px; height: 224px; object-position: center bottom; }
.hp2-diagnostic-topics { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; color: var(--forest); font-size: 12px; font-weight: 600; }
.hp2-quiet-link { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .hp2-page .hs-scene * { animation: none !important; }
}

@media (max-width: 1000px) {
  .hp2-q { padding: 20px; }
  .hp2-page .hp2-q h3 { font-size: 21px; }
  .hp2-page .hp2-q .xp-video-volume, .hp2-page .hp2-q .xp-video-download { display: none; }
}

@media (max-width: 960px) {
  .hp2-hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .hp2-hero-art { max-width: 420px; }
  .hp2-page h1 { max-width: 16ch; }
  .hp2-next { grid-template-columns: minmax(0, 1fr); }
  .hp2-next-list { grid-template-columns: minmax(0, 1fr); }
  .hp2-next-art { height: 220px; justify-self: start; }
  .hp2-founder { grid-template-columns: minmax(0, 1fr); }
  .hp2-founder-art { height: 240px; }
}

@media (max-width: 760px) {
  .hp2-nav .hp2-nav-jump { display: none; }
  .hp2-page .hp2-lead { font-size: 18px; }
  .hp2-try-art { width: 96px; }
  .hp2-q-list { grid-template-columns: minmax(0, 1fr); }
  .hp2-page .hp2-q .xp-video-volume { display: block; }
  /* Vertical timeline: each Nova sits small at the right of its stop. */
  .hp2-timeline { --hp2-art: 0px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .hp2-stop { padding: 0 100px 22px 44px; min-height: 100px; }
  .hp2-stop-art { left: auto; right: 0; top: -4px; height: 88px; max-width: 88px; object-position: right top; }
  .hp2-stop:nth-child(2) { padding-bottom: 36px; }
  .hp2-stop:nth-child(3) { padding-bottom: 58px; }
  .hp2-stop::before { left: 10px; right: auto; top: 8px; bottom: 0; width: 3px; height: auto; }
  .hp2-stop:last-child::before { display: none; }
  .hp2-stop::after { top: 0; }
  .hp2-stop-mastered::after { left: -4px; top: -4px; }
  .hp2-close { grid-template-columns: minmax(0, 1fr); }
  .hp2-close .hp2-close-art { max-width: 300px; margin: 0 auto; }
  .hp2-exam-row { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
  .hp2-faq-list summary { font-size: 17px; }
  .hp2-faq-art { height: 88px; }
}

@media (max-width: 480px) {
  .hp2-try-intro { align-items: flex-start; }
  .hp2-try-art { width: 72px; }
  .hp2-q { padding: 17px; border-radius: 14px; }
  .hp2-q-head span + span { display: none; }
  .hp2-q-brief { flex-direction: column; }
  .hp2-page .hp2-q .xp-video-volume { display: none; }
  .hp2-page .hp2-q .xp-video-controls { gap: 5px; }
  .hp2-page .hp2-q .xp-video-button { font-size: 10px; padding: 2px 4px; }
}

/* ---------- 2026-11-14: the owner's Claude Design pass ("Comet Camp, refined") ----------
   Same tokens as styles.css. Coral is the one action to take next; cards use a
   1.5px line and an 18px radius; subject chips carry the design's subject colours
   (two inks darkened slightly so small text keeps 4.5:1 on its fill). */
.hp2-icon { flex: none; display: block; }
.hp2-page .hp2-nav a, .hp2-nav button { font-size: 14px; font-weight: 700; min-height: 44px; }
.hp2-page .hp2-orient { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: #deeee4; color: var(--forest-3); font-size: 14px; line-height: 1.4; margin-bottom: 18px; }
.hp2-page .hp2-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 14px 28px; border: 2px solid transparent; border-radius: 16px; background: var(--coral); color: #1f2d22; font-size: 17px; font-weight: 800; line-height: 1.2; text-decoration: none; box-shadow: 0 4px 0 #c95f42; transition: transform .12s ease, filter .15s ease; }
.hp2-page .hp2-cta:hover { filter: brightness(1.06); color: #1f2d22; }
.hp2-page .hp2-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 #c95f42; }
.hp2-page .hp2-cta:focus-visible, .hp2-text-button:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 10px; }
.hp2-actions .hp2-text-button { margin-top: 0; gap: 8px; min-height: 44px; }
.hp2-page .hp2-start-note { margin-top: 2px; }

/* What every family gets: the forest band under the first screen. */
.hp2-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 36px; padding: 22px clamp(18px, 3vw, 36px); margin-bottom: 8px; background: var(--forest); color: #fff8e7; border-radius: 18px; }
.hp2-band-item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hp2-band-item .hp2-icon { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--forest-2); color: var(--gold); }
.hp2-page .hp2-band-item p { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: #fff8e7; }

/* Subject chips on the sample cards. */
.hp2-chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.hp2-chip-maths { background: #e6eef5; color: #2f6690; }
.hp2-chip-numerical { background: #e0f0ec; color: #1a6b5e; }
.hp2-chip-reading { background: #f0e8f3; color: #7a4a8c; }
.hp2-chip-verbal { background: #f8eadc; color: #96491a; }
.hp2-q { border-width: 1.5px; background: var(--surface-2); }

.hp2-next-list li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-width: 1.5px; border-radius: 18px; }
.hp2-next-list li .hp2-icon { color: var(--forest); margin-bottom: 2px; }
.hp2-page .hp2-next-list h3, .hp2-page .hp2-next-list p { margin: 0; }

/* Tests covered: one card, one row per test. */
.hp2-exam-card { max-width: 1000px; margin-top: 8px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; }
.hp2-exam-card .hp2-exam-row { padding: 22px 24px; border-bottom: 1.5px solid var(--line-soft); }
.hp2-exam-card .hp2-exam-row:first-of-type { margin-top: 0; }
.hp2-exam-card .hp2-exam-row:last-child { border-bottom: 0; }

.hp2-diagnostic-topics span { padding: 4px 11px; border-radius: 999px; background: #deeee4; color: var(--forest-3); font-size: 12.5px; font-weight: 700; }
.hp2-close { border-width: 2px; border-radius: 24px; }

@media (max-width: 900px) { .hp2-band { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hp2-page .hp2-cta { transition: none; } }
