/* =====================================================================
   CODE COMMANDERS · THE PUBLIC SITE
   ---------------------------------------------------------------------
   Separate from explore.css on purpose. The app is a dark control panel
   for a child at a laptop; this is long-form reading for an adult on a
   phone, usually standing up, usually in a hurry. Different job, different
   rules: bigger type, more air, high contrast, and nothing that moves.

   It borrows the brand tokens from theme.css and nothing else.
   ===================================================================== */


/* The `hidden` attribute is only a UA-stylesheet `display: none`, so ANY
   display rule of ours beats it. The booking buttons are inline-block, so
   `mailBtn.hidden = true` set the attribute and changed nothing — the
   button stayed on screen next to the one that replaced it. Caught by
   rendering the page; it is invisible in the JavaScript, which reported
   hidden:true quite truthfully. */
[hidden] { display: none !important; }

.pub {
  background: var(--void);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.wrap { max-width: 980px; margin: 0 auto; padding-inline: 22px; }
.wrap.narrow { max-width: 720px; }

/* ---------- header ---------------------------------------------------- */
.pubbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px;
  background: color-mix(in srgb, var(--void) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.publogo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 18px;
  letter-spacing: -.01em; color: var(--text); text-decoration: none;
}
.pubnav { display: flex; gap: 20px; margin-left: auto; }
.pubnav a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
}
.pubnav a:hover { color: var(--text); border-bottom-color: var(--gold); }
@media (max-width: 760px) { .pubnav { display: none; } }

/* ---------- buttons --------------------------------------------------- */
.btn-gold, .btn-ghost {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  border-radius: 13px; padding: 14px 22px;
  transition: transform .1s, filter .15s, background .15s;
}
.btn-gold { background: var(--gold); color: var(--void); }
.btn-gold:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }
/* Size modifiers are `btn-sm` / `btn-lg`, NOT `small` / `big`.
   Those two names were already taken in this very file — `.small` is the
   footer tagline and `.big` is a body paragraph — and because they are
   defined further down they quietly won. The header button rendered gold
   text on a gold background, which the markup and the JavaScript both
   reported as perfectly fine. Only looking at it showed anything. */
.btn-gold.btn-sm, .btn-ghost.btn-sm { font-size: 14px; padding: 9px 15px; border-radius: 10px; }
.btn-gold.btn-lg, .btn-ghost.btn-lg { font-size: 17.5px; padding: 17px 30px; }
.pubbar .btn-gold.btn-sm { margin-left: 0; }
/* On a phone the header button is redundant: before you scroll, the hero's
   own button is on screen; after you scroll, the sticky bar is. Keeping all
   three meant two identical gold buttons visible at once and a wrapped,
   two-line logo squeezed beside them. */
@media (max-width: 760px) {
  .pubbar .btn-gold.btn-sm { display: none; }
  .publogo span { white-space: nowrap; font-size: 16.5px; }
}

/* ---------- hero ------------------------------------------------------ */
.hero {
  max-width: 1040px; margin: 0 auto; padding: 56px 22px 20px;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center;
}
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(32px, 5.6vw, 54px); line-height: 1.05; margin: 0 0 20px;
}
.lede { font-size: clamp(17px, 2.1vw, 19.5px); color: var(--muted); margin: 0 0 16px; max-width: 46ch; }
.lede b { color: var(--text); }
.herocta { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ctanote { font-size: 14px; color: var(--muted); }
/* display:block is NOT decoration. The hero art lives inside a <picture>
   (welcome.html serves a different pose on phones), so it is no longer the
   grid item the browser would blockify for us — it is an ordinary inline
   image, and `margin: 0 auto` does nothing to an inline box. Without this the
   phone art sits hard against the left edge: 22px one side, 236px the other.
   Measured, not guessed. Remove it and you break the centring below. */
.heroart { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); }
/* On a phone the hero stacks, so she lands UNDER the headline, the lede and
   the button — and at 230px wide the new artwork is 381px tall, which is 45%
   of the screen. A parent scrolls past half a screen of astronaut to reach
   anything that tells them something.

   She was sized when the art was squarer. The new poses are tall, so the
   same width buys a much taller block. Smaller, and the page gets its
   screen back. */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 8px; }
  .heroart { max-width: 168px; margin: 2px auto 0; }
}
@media (max-width: 480px) {
  .heroart { max-width: 132px; }
}

/* ---------- sections -------------------------------------------------- */
section { padding: 46px 0; }
.band { background: color-mix(in srgb, var(--hull) 55%, var(--void)); border-block: 1px solid var(--line); }
h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.015em;
  font-size: clamp(25px, 3.6vw, 33px); margin: 0 0 8px;
}
.sub { color: var(--muted); margin: 0 0 26px; }
.big { font-size: 18.5px; line-height: 1.65; margin: 0 0 18px; }
.big b { color: var(--gold); }
.note { color: var(--muted); font-size: 15px; margin: 22px 0 0; }

/* ---------- the four steps -------------------------------------------- */
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps .num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--void);
  font-family: var(--display); font-weight: 800; font-size: 18px;
}
.steps h3 { font-family: var(--display); font-size: 19.5px; font-weight: 700; margin: 6px 0 6px; }
.steps p { margin: 0; color: var(--muted); max-width: 62ch; }
.steps b { color: var(--text); }

/* ---------- the games ------------------------------------------------- */
.games {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.games li {
  background: var(--hull); border: 1px solid var(--line); border-radius: 15px;
  padding: 18px 20px;
}
.games b { display: block; font-family: var(--display); font-size: 19px; margin-bottom: 6px; }
.games span { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- fees ------------------------------------------------------ */
.pricecard {
  background: var(--hull); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 28px 24px; margin-top: 22px; max-width: 560px;
}
.pricetag { margin: 0 0 18px; display: flex; align-items: baseline; gap: 10px; }
.pricetag b { font-family: var(--display); font-size: 46px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }
.pricetag span { color: var(--muted); font-size: 17px; }
.included { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.included li { padding-left: 28px; position: relative; color: var(--muted); }
.included li b { color: var(--text); }
.included li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--mint); font-weight: 700;
}
.pricefoot { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.aside {
  margin: 26px 0 0; max-width: 62ch; color: var(--muted);
  border-left: 3px solid var(--gold); padding-left: 16px;
}
.aside b { color: var(--text); }

/* ---------- booking --------------------------------------------------- */
.bookband { text-align: center; padding-bottom: 60px; }
.bookband .sub { max-width: 48ch; margin-inline: auto; }
.bookrow { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 18px; }
.booknote { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.booknote b { color: var(--text); }

/* ---------- footer ---------------------------------------------------- */
.pubfoot { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.footrow { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.footrow img { height: auto; opacity: .95; }
.footnav { display: grid; gap: 9px; }
.footnav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footnav a:hover { color: var(--gold); }
.small { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
.tiny { color: var(--muted); font-size: 12.5px; margin: 26px auto 0; opacity: .75; line-height: 1.5; }

/* ---------- long-form legal pages ------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 22px 70px; }
.legal h1 { font-family: var(--display); font-size: clamp(28px, 5vw, 38px); font-weight: 800; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14.5px; margin: 0 0 30px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 14px; }
.legal strong, .legal b { color: var(--text); }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text); font-weight: 700; }
.legal td { color: var(--muted); }
.callout {
  background: var(--hull); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 16px 18px; margin: 0 0 20px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- the printable consent form -------------------------------- */
.form-wrap { max-width: 760px; margin: 0 auto; padding: 40px 22px 70px; }
.consent-doc {
  background: #fff; color: #11131f; border-radius: 14px;
  padding: 40px 44px; line-height: 1.55;
}
.consent-doc h1 { font-family: var(--display); font-size: 27px; margin: 0 0 4px; color: #11131f; }
.consent-doc h2 { font-size: 17px; margin: 26px 0 8px; color: #11131f; }
.consent-doc p, .consent-doc li { color: #2b2f42; font-size: 15px; }
.consent-doc .rule { border: 0; border-top: 1px solid #d8dbe8; margin: 24px 0; }
.fieldline { display: flex; gap: 10px; align-items: flex-end; margin: 0 0 16px; flex-wrap: wrap; }
.fieldline label { font-size: 14px; color: #4a4f68; white-space: nowrap; }
.fieldline .line { flex: 1; min-width: 160px; border-bottom: 1px solid #11131f; height: 22px; }
.tickrow { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.tickbox { flex: none; width: 17px; height: 17px; border: 1.5px solid #11131f; border-radius: 3px; margin-top: 3px; }
.printbar { display: flex; gap: 12px; align-items: center; margin: 0 0 20px; flex-wrap: wrap; }

@media print {
  /* `.callout` on the consent page is the note telling parents they do not
     need to print the form. Printing it is faintly ridiculous, and it was
     also what pushed the signature onto a third, otherwise empty sheet. */
  .pubbar, .pubfoot, .printbar, .mascot-stand, .stickycta,
  .form-wrap > .callout { display: none !important; }

  /* Never split a tick box away from the sentence it agrees to, and never
     orphan the signature line from the declarations above it. A signature on
     a page of its own is a signature to nothing. */
  .tickrow, .fieldline { break-inside: avoid; page-break-inside: avoid; }
  .consent-doc h2 { break-after: avoid; page-break-after: avoid; }
  .pub { background: #fff; }
  .form-wrap { padding: 0; }
  .consent-doc { border-radius: 0; padding: 0; }
  .consent-doc h1 { font-size: 22px; margin-bottom: 2px; }
  .consent-doc p, .consent-doc li, .consent-doc td { font-size: 12px; line-height: 1.42; }

  /* The two new sections (the newsletter and the game link) pushed the
     signature onto a third sheet on its own. Tightening the vertical rhythm
     for print only pulls it back onto two — which matters because a coach is
     printing two copies of this per family, by hand, in a clubhouse. */
  .consent-doc h2 { font-size: 15px; margin: 15px 0 5px; }
  .consent-doc p { margin-bottom: 8px; }
  .consent-doc .rule { margin: 14px 0; }
  .consent-doc table td { padding: 3px 0 !important; }
  .fieldline { margin-bottom: 11px; }
  .tickrow { margin-bottom: 9px; }
  @page { margin: 14mm; }
}

/* ---------- the pre-opening flag -------------------------------------- */
/* Says out loud, above the headline, that the centre hasn't opened. A parent
   who discovers that fact in the last paragraph feels they were nearly
   tricked; a parent who reads it first just reads on. */
/* inline-block, not inline-flex: as a flex container each run of text
   between the <b> became its own flex item, so on a narrow phone the one
   sentence laid out as three justified-looking columns. */
.openflag {
  display: inline-block;
  margin: 0 0 18px; padding: 7px 14px 7px 11px; line-height: 1.45;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--hull) 70%, transparent);
  font-size: 14px; color: var(--muted);
}
.openflag b { color: var(--text); font-weight: 700; }
.openflag .dot {
  display: inline-block; vertical-align: middle;
  margin: -2px 8px 0 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 22%, transparent);
}

/* ---------- what it's built on ---------------------------------------- */
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 20px;
}
.bulist {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.bulist b { display: block; font-family: var(--display); font-size: 17.5px; margin-bottom: 6px; }
.bulist span { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tiny-note { font-size: 13px; opacity: .8; }

/* ---------- the two age columns --------------------------------------- */
.agerow {
  display: grid; gap: 18px; margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.agecard {
  background: var(--hull); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 24px 20px;
}
.agetag {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 8px;
}
.agecard h3 { font-family: var(--display); font-size: 21px; font-weight: 700; margin: 0 0 12px; }
.agecard p { color: var(--muted); margin: 0 0 12px; font-size: 16px; }
.agecard p:last-child { margin-bottom: 0; }
.agecard b { color: var(--text); }
/* The three rungs a seven-year-old climbs before they open a code editor:
   typing → ScratchJr → blocks. Numbered, because the order IS the argument —
   a parent who reads it as a list of three activities has missed the point. */
.ladder {
  counter-reset: rung; list-style: none;
  margin: 0 0 14px; padding: 0; display: grid; gap: 12px;
}
.ladder li {
  counter-increment: rung; position: relative; padding-left: 36px;
  color: var(--muted); font-size: 15.5px; line-height: 1.55;
}
.ladder li::before {
  content: counter(rung); position: absolute; left: 0; top: 1px;
  width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 13px;
}
.ladder li::after {
  /* the line joining one rung to the next */
  content: ""; position: absolute; left: 11px; top: 27px; bottom: -12px;
  width: 1.5px; background: var(--line);
}
.ladder li:last-child::after { display: none; }

/* ---------- the FAQ ---------------------------------------------------- */
/* Native <details>, deliberately. No library, no JavaScript, it works with
   scripting off, and a search engine indexes every answer — which for a brand
   nobody has heard of is most of the point of writing them. */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 2px;
  font-family: var(--display); font-weight: 700; font-size: 17.5px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; flex: none;
  font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1;
  color: var(--gold); transition: transform .15s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--gold); }
.faq details > p {
  color: var(--muted); margin: 0 0 16px; max-width: 66ch; font-size: 16px;
}
.faq details > p:first-of-type { margin-top: -2px; }
.faq details b { color: var(--text); }
.faq details a { color: var(--gold); }

/* ---------- parent quotes --------------------------------------------- */
.quotes {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.quotes li {
  background: var(--hull); border: 1px solid var(--line); border-radius: 16px;
  border-top: 3px solid var(--gold); padding: 20px 22px;
}
.qtext { margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; }
.qwho { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- waitlist perks -------------------------------------------- */
.waitperks {
  list-style: none; margin: 22px auto 10px; padding: 0;
  display: inline-grid; gap: 10px; text-align: left;
}
.waitperks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.waitperks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--mint); font-weight: 700;
}

/* ---------- sticky CTA, phone only ------------------------------------ */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;                      /* the media query turns it on */
  align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--void) 95%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.stickycta > span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.stickycta > span b, .stickycta .js-opening { color: var(--text); }
.stickycta .btn-gold { margin-left: auto; flex: none; }
@media (max-width: 760px) {
  /* `[hidden]` wins over this because of the !important at the top of the
     file, so the observer still controls whether it shows. */
  .stickycta { display: flex; }
  .pub { padding-bottom: 68px; }      /* so the bar never covers the footer */
}

@media (prefers-reduced-motion: reduce) {
  .btn-gold:hover, .btn-ghost:hover { transform: none; }
}

/* A four-item "how we work" list wrapped 3 + 1 at desktop width, which reads
   as three points and an afterthought. Two columns keeps it a 2×2 block. */
.bulist.pairs { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .bulist.pairs { grid-template-columns: 1fr; } }
