/* The home page's own CSS, after the kit's files (src/components/homepage/Kit.tsx). Page CSS only
   where the kit's references allow it: tokens, the inside of visuals, frame ratios and --p-h. */

/* Candlelight palette (brand guidelines, October 13, 2026) as the kit's page tokens. Geist comes
   from next/font in the root layout. */
:root {
  --p-bg: #fff8ec; --p-surface: #ffffff; --p-ink: #1e2a3a; --p-muted: #4a5a6c;
  --p-accent: #1f57c8; --p-accent-ink: #fff8ec; --p-action: #1f57c8; --p-action-ink: #fff8ec;
  --p-inv-bg: #1e2a3a; --p-inv-surface: #1e2a3a; --p-inv-ink: #fff8ec; --p-inv-muted: #e8eef7;
  --p-inv-accent: #fff8ec; --p-inv-accent-ink: #1e2a3a; --p-inv-action: #fff8ec; --p-inv-action-ink: #1e2a3a;
  --font-display: var(--font-geist-sans), "Geist", system-ui, sans-serif;
  --font-text: var(--font-geist-sans), "Geist", system-ui, sans-serif;
  --font-mono: var(--font-geist-mono), "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
}
/* Brand rule (Ryan, November 8, 2026): colours stay in the Candlelight palette, so the kit's lit
   ground is the brand's mist, white, ink, slate and blue-text. */
html[data-ground] { --ground-bg: #e8eef7; --ground-surface: #ffffff; --ground-ink: #1e2a3a; --ground-muted: #4a5a6c; --ground-accent: #1f57c8; }

/* The root layout makes <body> a flex column for the app pages. Here the kit lays out the page:
   as a flex item <main> would take the width of its widest screenshot. */
body { display: block; }

.nav__logo img { display: block; height: 26px; width: auto; }
.footer__logo img { display: block; height: 32px; width: auto; }
.rows .rows__name small { display: block; margin-top: var(--s-1); font-weight: 400; color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.hero--triptych .hero__cta .btn { height: var(--btn-h, 44px); font-size: var(--t-body); }
.hero__fact { margin-top: var(--s-4); font-size: var(--t-small); color: var(--muted); }
/* the closing's big button keeps its height when the closing's text runs to two lines */
.closing__cta .btn--xl { flex-shrink: 0; }
/* every button label is centered, including one that wraps (Ryan, November 17, 2026) */
.btn { text-align: center; }
/* on the narrowest phones the label wraps inside the button instead of widening the page */
@media (max-width: 359px) { .closing__cta .btn--xl.btn--wide { min-width: 0; max-width: 100%; height: auto; min-height: 48px; padding: var(--s-3) var(--s-4); white-space: normal; text-align: center; font-size: 16px; } }
.footer__disclaimer { display: block; max-width: 72ch; margin-top: var(--s-3); line-height: 1.55; }

/* The menu card's picture: the real checklist, top left. */
.menu-shot { overflow: hidden; background: #e8eef7; }
.menu-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------- hero: the triptych's collage of real screens ---------- */
.ly-collage .ly-piece.shot-piece { padding: 0; overflow: hidden; background: #fff8ec; }
.ly-collage .shot-piece .frame__img { position: static; display: block; width: 100%; height: auto; object-fit: initial; }
/* placed in % of the collage; below 1024 the collage spans the wrap, so each piece takes a line */
.ly-collage .pc-a1 { left: 2%; top: 3%; width: 78%; } .ly-collage .pc-b1 { left: 40%; top: 50%; width: 58%; }
.ly-collage .pc-a2 { left: 2%; top: 3%; width: 70%; } .ly-collage .pc-b2 { left: 34%; top: 52%; width: 64%; }
.ly-collage .pc-a3 { left: 2%; top: 3%; width: 74%; } .ly-collage .pc-b3 { left: 46%; top: 40%; width: 52%; }
@media (max-width: 1023px) {
  .ly-collage :is(.pc-a1, .pc-a2, .pc-a3) { left: 0; width: 84%; top: 0; }
  .ly-collage :is(.pc-b1, .pc-b2, .pc-b3) { left: 16%; width: 84%; top: auto; bottom: 0; }
}

/* ---------- screens inside frames: shown whole on the brand mist, or from the top when tall ---------- */
.shot-frame, .tall-shot { background: #e8eef7; }
.shot-frame .frame__img { object-fit: contain; object-position: center; padding: 16px; background: transparent; }
.tall-shot .frame__img { object-fit: cover; object-position: top center; padding: 16px 16px 0; background: transparent; }
.plan-shots { margin-top: var(--s-7); }
.plan-shots .shot-frame { --ratio: 74%; }
@media (min-width: 1024px) { #students .frame--split, #founder .frame--split { --ratio: 100%; } }
@media (max-width: 639px) {
  #students .frame--split, #founder .frame--split { --ratio: 110%; }
  #pass .frame--split { --ratio: 84%; }
  .plan-shots .shot-frame + .shot-frame { display: none; }
}

/* ---------- who it is for: the small label over For parents and For students ---------- */
.who { margin: 0; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- How it works: a number in front of each step ---------- */
.how-steps h3 { display: flex; align-items: center; gap: 12px; }
.how-n { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
  background: #e8eef7; color: #1e2a3a; font-size: 14px; font-weight: 600; line-height: 1; }
.mo-pc__step.is-on .how-n, #how:not(.is-live) .how-n { background: #1f57c8; color: #fff8ec; }

/* ---------- Wick: the study guide on the dark band, its candle badge and its four-step ladder ---------- */
/* amber on ink is 7.1 to 1 (brand guidelines, section 3); the flame is drawn as supplied, no glow */
.wick-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: #f5a524; font-weight: 600; letter-spacing: 0.02em; }
/* the facts under the text: mist on ink, 12 to 1 */
#wick .rows .rows__name small { color: #e8eef7; }
/* the ladder: each step a rung on one amber rail, its screen cut from the app's own practice screen
   and shown whole at its own shape (no empty ground above or below it) */
.wick-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8, 48px); }
/* the numbers and the rail sit in the gap left of the ladder, so the steps' text starts on the page's split line */
.wick-step { position: relative; }
.wick-step:not(:last-child)::before { content: ""; position: absolute; left: -41px; top: 40px; bottom: calc(-1 * var(--s-8, 48px) + 8px); width: 2px; border-radius: 2px; background: #b86e00; }
.wick-n { position: absolute; left: -56px; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  background: #f5a524; color: #1e2a3a; font-size: 15px; font-weight: 700; line-height: 1; }
.wick-step h3 { margin: 3px 0 0; font-family: var(--font-text); font-size: 20px; line-height: 28px; font-weight: 560; letter-spacing: -0.012em; color: var(--ink); }
.wick-step > p { margin: 6px 0 0; color: #e8eef7; max-width: 46ch; }
.wick-screen { margin-top: 16px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25), 0 18px 40px -24px rgb(0 0 0 / .6); }
.wick-screen__img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* from 1024px the text stays beside the ladder while it scrolls past */
@media (min-width: 1024px) { .wick-hold { position: sticky; top: 120px; } }
@media (max-width: 1023px) { .wick-ladder { margin-top: var(--s-8, 48px); } }
/* below 1024px the ladder takes the full width: the numbers come back inside it */
@media (max-width: 1023px) { .wick-step { padding-left: 52px; } .wick-step:not(:last-child)::before { left: 15px; } .wick-n { left: 0; } }
@media (max-width: 639px) { .wick-step { padding-left: 44px; } .wick-step:not(:last-child)::before { left: 13px; } .wick-n { width: 28px; height: 28px; font-size: 14px; } }

/* ---------- the fall dates card (offguard), built from src/lib/testPlan.ts ---------- */
.dates-frame { background: #e8eef7; }
.dates { width: min(100%, 460px); background: #fff; border-radius: 16px; padding: 20px 24px; color: #1e2a3a; font-family: var(--font-text);
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 48px -24px rgb(30 42 58 / .35); }
.dates__head { font-weight: 500; margin: 0 0 6px; }
.dates__note { margin: 8px 0 0; font-size: 14px; color: #5c6b7a; }
.dates ol { list-style: none; margin: 0; padding: 0; display: grid; }
.dates li { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid #e8eef7; font-size: 15px; line-height: 1.4; }
.dates li b { font-weight: 500; }
.dates li.is-gap { background: linear-gradient(90deg, #fdecc8, transparent); margin-inline: -12px; padding-inline: 12px; border-radius: 8px; }
.dates__chip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; line-height: 1; padding: 4px 8px; border-radius: 999px; background: #e8eef7; color: #33445a; }
.dates__chip--amber { background: #fdecc8; color: #7a4a00; }
@media (max-width: 1023px) { #offguard .frame--split { --ratio: 70%; } }
/* on a phone the dates frame holds the whole list */
@media (max-width: 639px) { #offguard .frame--split { --ratio: 180%; } .dates li { grid-template-columns: 76px 1fr; } .dates li .dates__chip { display: none; } }

/* ---------- pinned chapters: each step's screen ---------- */
.mo-pc__visual.shot-visual { position: relative; background: #e8eef7; }
.shot-visual .frame__img { object-fit: contain; object-position: center; padding: 24px; background: transparent; }
@media (max-width: 639px) {
  #how[data-moment]:not(.is-live) .mo-pc__visual.shot-visual { aspect-ratio: auto; height: 300px; }
  #how[data-moment]:not(.is-live) .mo-pc__steps { gap: var(--s-7); }
  .shot-visual .frame__img { padding: 12px; }
}

/* ---------- the sign-up card before passes go on sale ----------
   WaitlistForm is styled with the app's Tailwind classes; the kit's element rules (headings, text
   colour) would otherwise win over them, so the card sets its own type back. */
.signup-card { align-self: start; }
/* /#waitlist-heading (four pages link to it) lands below the fixed nav */
#waitlist-heading { scroll-margin-top: calc(var(--nav-h, 64px) + var(--s-6, 24px)); }
.signup-shot { --ratio: 82%; }
.signup-shot .frame__img { object-fit: contain; object-position: top center; }
@media (max-width: 639px) { .signup-shot { --ratio: 86%; } }
/* revert-layer: every element in the card takes the app's own (layered) Tailwind styles again,
   so the kit's unlayered element rules (button { color: inherit }, headings, lists) step aside. */
.signup-card * { all: revert-layer; }
.signup-card p { color: #33445a; }
.signup-card h2#waitlist-heading { font-family: var(--font-display); font-size: var(--t-h2, 32px); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.15; margin: 0 0 var(--s-3); color: var(--ink); }


/* ---------- section heights (Ryan, November 8, 2026: "fix the height") ----------
   The kit holds every section at exactly one or two screens, which left 190 to 390px of empty
   ground between sections at 1440x900, and more on taller screens. Here each section takes its
   content's height with one even gap between sections (112px at 1440, 80px on a phone). The hero keeps the first screen, and from
   1024px How it works keeps its two pinned screens while its moment is live. This is a deliberate departure from the kit's one-section-per-screen
   rule, at the client's request. */
main > :is(section, .section):not(.hero, .section--hero),
footer.closing {
  height: auto; min-height: 0;
  padding-top: 56px; padding-bottom: 56px;
  scroll-margin-top: var(--nav, 72px);
}
main > :is(section, .section):not(.hero, .section--hero) > .wrap, footer.closing > .wrap { height: auto; }
@media (min-width: 1024px) {
  /* the pinned moment's two screens, only while it is live. At rest (reduced motion, a screen under
     560px tall, no script) the section takes its content's height like the rest; a fixed two screens
     there left up to 750px of empty ground above For parents (Ryan, November 18, 2026). The top of
     the section never moves when the moment mounts, so a /#how link still lands in place. */
  main > section#how[data-moment].is-live { height: calc(2 * 100vh); height: calc(2 * 100svh); padding-top: 56px; padding-bottom: 56px; }
  /* the kit centres the pinned grid in a full screen, which left 250 to 390px of ground above and below
     How it works. Here the grid is as tall as its content and pins 120px from the top (the kit's --padt),
     so the section starts and ends on the same gap as the rest. The steps still change with the
     section's scroll (lib.scrub 'hold'), all three while it is pinned. */
  /* flex: none: from 640 to 1279px the kit makes each section a flex column and grows its wrap to fill
     it (flex: 1 0 auto), which stretched the pinned grid to the full two screens. A grid that tall cannot
     stick, so on a laptop at 1024 to 1279px wide the steps scrolled away with an empty screen under them
     (Ryan, November 18, 2026, Chrome at 1225x669). */
  /* top: on a tall desktop screen a stage pinned 120px down left the lower half of the screen empty for
     a whole screen of scroll (378px at 1920x969, 698px at 2560x1289; Ryan, November 18, 2026). The stage
     now pins in the middle of the space under the nav: 36px is half the nav, 235px half the tallest
     stage (471px, from 1280px wide). It never pins higher than 120px, and its foot stays on screen on
     any screen tall enough for the moment to be live (560px). */
  main > section#how[data-moment].is-live > .mo-pc__grid { flex: none; height: auto; padding-top: 0; top: max(120px, calc(50svh + 36px - 235px)); align-content: start; }
}
@media (max-width: 639px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing { padding-top: 40px; padding-bottom: 40px; }
  /* the phone action bar covers the foot of the page, so the footer keeps room under its last links */
  footer.closing { padding-bottom: calc(40px + var(--bar, 0px)); }
}

/* the sign-up card's timeline (src/components/TestPlan.tsx): its rail and dots were drawn for a white
   card, so the card is white here too (brand colours only: the rail is mist), and the rail is set in so
   each dot sits on it inside the column. */
.signup-card { background: #ffffff; border: 1px solid #e8eef7; border-radius: 16px; padding: 28px; }
@media (max-width: 639px) { .signup-card { padding: 20px; } }
.signup-card ol.border-l-2 { border-left-color: #e8eef7; margin-left: 6px; }
/* bg-mist is both the app's Tailwind colour (the test chips in TestPlan.tsx) and one of the kit's lit
   grounds (backgrounds.css draws it as a blue glow in ::before). revert-layer above takes back the
   elements but not their pseudo-elements, so the glow is switched off here: it spread over each row. */
.signup-card .bg-mist::before, .signup-card .bg-mist::after { content: none; }
@media (max-width: 1023px) { #parents .grid > .span-6.start-7 { margin-top: var(--s-5, 24px); } }

/* ---------- the hero's button under the headline (Ryan, November 8, 2026) ----------
   The kit's triptych puts the button alone in the right column from 1280px, where it read as
   floating. From 1024px it now sits under the headline, as the kit already does from 1024 to 1279,
   and the collage takes the rest of the row. */
@media (min-width: 1280px) {
  .hero--triptych .hero__grid { grid-template-rows: 1fr auto 1fr; }
  .hero--triptych .hero__grid > :first-child { grid-column: 1 / span 4; grid-row: 1; align-self: end; }
  .hero--triptych .hero__grid > :first-child, .hero--triptych .hero__cta { grid-column: 1 / span 5; }
  .hero--triptych .ly-collage { grid-column: 7 / span 6; grid-row: 1 / span 3; }
  .hero--triptych .hero__cta { grid-column: 1 / span 4; grid-row: 2; justify-content: flex-start; margin-top: var(--s-6); }
  .hero--triptych .hero__cta .btn { height: 56px; font-size: var(--t-body); }
}

/* ---------- the closing on a wide screen (Ryan, November 8, 2026) ----------
   A full-width button over the footer read as a sticky bar that does not stick. From 1024px the
   heading and the button share one row and the button is its normal size. On a phone the closing
   keeps its full-width button and the sticky action bar stays. */
@media (min-width: 1024px) {
  footer.closing .closing__cta.close--type { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s-8, 48px); }
  footer.closing .closing__cta.close--type > .btn--xl.btn--wide { align-self: flex-end; width: auto; height: 56px; padding-inline: 28px; font-size: var(--t-body); }
  footer.closing .closing__links { margin-top: var(--s-9, 72px); }
}

/* ---------- the free diagnostic band (lead capture) ---------- */
/* the section's own ground is the band: the brand mist, edge to edge */
main > section.diag-band { background: #e8eef7; }
/* Right under the hero (Ryan, November 14, 2026): the words, "no card" and the button on the
   left, a sample report on the right. The rows' lines are white, since a mist line would vanish. */
main > section.diag-band { --line: #ffffff; --line-strong: #ffffff; }
.diag-band > .wrap { align-items: center; row-gap: var(--s-6, 32px); }
.diag-band h2 { max-width: 22ch; }
.diag-band__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 16px; }
.diag-band__cta .btn { height: 56px; padding-inline: 28px; font-size: var(--t-body); }
.diag-band__note { margin: 0; font-weight: 600; color: #33445a; }
.diag-band__figure { margin: 0; }
main .diag-shot { background: #fff8ec; border-color: #ffffff; --ratio: 96%; }
.diag-band__caption { margin: 10px 0 0; font-size: 14px; color: #33445a; }
@media (max-width: 639px) { .diag-band__cta .btn { width: 100%; } main .diag-shot { --ratio: 110%; } }
/* the free way in, under the hero's button */
.hero--triptych .hero__cta { flex-direction: column; align-items: flex-start; gap: 12px; }
.hero__free { align-self: flex-start; }
@media (max-width: 1023px) { .hero--triptych .hero__cta { align-items: stretch; } .hero__free { align-self: center; } }

/* ---------- brand colours only (Ryan, November 8, 2026: "are colors accurate with brand guidelines?") ----------
   The kit draws hairlines and quiet text as tints of the ink. Candlelight names mist for borders and
   slate for secondary text, so those are used instead: mist lines on the light grounds, slate-2 lines
   on the ink band. */
:root, .ground-base, .ground-surface { --line: #e8eef7; --line-strong: #e8eef7; }
.ground-inverse { --line: #4a5a6c; --line-strong: #4a5a6c; }
main .frame { border-color: #e8eef7; }
main .ground-inverse .frame { border-color: #4a5a6c; }
.hero .hero__fact { color: #33445a; }
/* the footer sits on mist, so its rules are white (a mist line would vanish there) */
footer.closing :is(.footer__legal, .footer__disclaimer) { border-color: #ffffff; }

/* Announcement bar (Ryan, November 19, 2026): the founding price, inside the fixed .nav above the
   bar (src/components/FoundingBar.tsx). --nav grows by the bar's height, so everything the kit
   places under the header (the hero, anchors, the phone sheet, the menus) moves down with it. */
:root:has(.nav > .announce) { --announce: 36px; --nav: calc(72px + var(--announce)); }
@media (max-width: 639px) { :root:has(.nav > .announce) { --nav: calc(56px + var(--announce)); } }
.nav:has(> .announce) { padding-top: var(--announce); }
.announce {
  position: absolute; top: 0; left: 0; right: 0; height: var(--announce);
  display: flex; align-items: center; justify-content: center; gap: var(--s-2); padding: 0 var(--gut);
  background: var(--p-ink); color: var(--p-bg); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.announce:hover { background: #2a3a4f; }
.announce:focus-visible { outline: 2px solid var(--p-bg); outline-offset: -4px; }
.announce__link { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.announce__short { display: none; }
@media (max-width: 767px) { .announce { font-size: 13px; } .announce__long { display: none; } .announce__short { display: inline; } }

/* Sign in: a small menu under the word, not the full-width panel the Tests menu uses (Ryan,
   November 19, 2026). The phone sheet keeps the kit's own rows. */
.nav__item--drop { position: relative; }
@media (min-width: 1024px) {
  .nav__item--drop > .nav__menu {
    left: 0; right: auto; width: 280px; padding: var(--s-2);
    background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r-md, 12px);
  }
  .nav__item--drop .menu-col { gap: 0; }
  .nav__item--drop .menu-col a { padding: var(--s-2) var(--s-3); border-radius: var(--r-sm, 8px); }
  .nav__item--drop .menu-col a:hover, .nav__item--drop .menu-col a:focus-visible { background: #e8eef7; color: var(--ink); }
}

/* One pass sign (Ryan, November 19, 2026): option B's dark pill and candle with option A's test
   chips, above the hero h1 and the pass heading (src/components/OnePassSign.tsx). */
.pass-sign { display: inline-flex; align-items: center; gap: var(--s-3); margin: 0; padding: 6px 6px 6px 16px;
  border-radius: 999px; background: var(--p-ink); color: var(--p-bg); }
.pass-sign__lead { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 15px; font-weight: 600; white-space: nowrap; }
.pass-sign__tests { display: flex; gap: var(--s-1); }
.pass-sign__test { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px;
  background: #e8eef7; color: #1f57c8; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.hero__sign { margin-bottom: var(--s-4); }
@media (max-width: 379px) { .pass-sign { gap: var(--s-2); padding-left: 12px; } .pass-sign__test { padding: 0 8px; font-size: 12px; } }

/* ---------- November 24, 2026 site review ----------
   The h1 is two lines in one element: the test names in small type, then the promise (Ryan:
   "a combination of A and B so we can rank"). */
.hero h1 .hero__kicker { display: block; margin-bottom: var(--s-3, 12px); font-size: var(--t-body); line-height: 1.4; font-weight: 600; letter-spacing: 0; color: #33445a; }
@media (max-width: 639px) { .hero--triptych h1 { font-size: 34px; line-height: 1.08; } }
/* On a phone the two buttons come right after the words, before the screenshots, so a parent
   opening a WhatsApp link sees a button on the first screen (finding 1). */
@media (max-width: 1023px) {
  .hero--triptych .hero__text-col { order: 1; }
  .hero--triptych .hero__cta { order: 2; margin-top: var(--s-5, 24px); }
  .hero--triptych .ly-collage { order: 3; }
}
