/* Supernova Quizzes — brand site.
   Same Owambe system as the app: adire indigo ground, brand violet, gold for
   the one thing that must not be missed, hard offset edges, no soft shadows.
   Plain HTML/CSS on purpose — a marketing page with a build step is a second
   thing to maintain for no benefit. */

:root {
  /* LIGHT GROUND, violet blended over it.
     The app stays dark -- it is played on a TV in a room with the lights down,
     and a white screen there is a lamp pointed at the players. This page is
     read for two minutes in daylight, often by a school or a company deciding
     whether to reply, and the dark version was hard work for that.

     Three of the brand colours DO NOT SURVIVE the inversion, measured against
     white: --gold 1.58:1, --nova-lit 2.66:1, --muted 2.83:1. They are on-dark
     colours. So the light palette is not the dark one with the background
     swapped -- it is a second set, and the rule is:

       gold is a FILL, never text   (ink on gold reads 11.75:1)
       violet darkens for anything at body weight (#5B3FD9, 6.40:1)
       the brand violet stays for large display type only

     Every value below clears 6:1 on the page behind it. */
  --page: #FBFAFE;   /* a breath of violet in the white, not a glare */
  --card: #FFFFFF;
  --ink: #1C1340;    /* body text — 16.6:1 */
  --ink-soft: #5A5280; /* secondary text — 6.8:1 */
  --nova: #5B3FD9;   /* links and accents at body weight — 6.4:1 */
  --nova-deep: #4C2FB8; /* display headings — 8.4:1 */
  --nova-lit: #806BD8;  /* the brand violet, large type and fills only */
  /* --chalk is DELIBERATELY NOT DEFINED. On the dark site it meant "pale type
     on a dark ground"; here there is no such thing, and leaving it defined as
     an alias for --ink let .join__input paint text in its own background
     colour. A missing variable fails visibly in a browser's inspector; a
     wrongly-aliased one fails silently on the page. */
  --indigo: #FFFFFF; /* kept: every raised surface resolves through this */
  --muted: #5A5280;  /* kept: the old name, now a legible value */
  --gold: #FFC53D;   /* FILLS ONLY. Never type. */
  --edge: #150C33;   /* the hard offset, now ink rather than near-black */
  --hairline: rgba(28, 19, 64, 0.14);
  --r-slab: 22px;
  --offset: 4px;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --ui: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  /* The purple, blended over the white rather than under it. Kept weak: on a
     dark ground a bloom reads as depth, on a light one the same strength reads
     as a stain. */
  background-image:
    radial-gradient(120% 70% at 12% 0%, rgba(91, 63, 217, 0.16), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(128, 107, 216, 0.10), transparent 62%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.08; }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 940px;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 0;
}
.mark { width: min(200px, 52vw); height: auto; }
.mark--type {
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--nova);
}
.mast__play {
  flex: none;
  color: var(--nova);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.mast__play:hover { text-decoration: underline; }

main {
  max-width: 940px;
  margin: 0 auto;
  padding: 2.5rem 1.15rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* --- Hero ----------------------------------------------------------------- */

.hero { display: flex; flex-direction: column; gap: 0.9rem; }
.hero__rule {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--nova);
  font-size: 0.8rem;
}
.hero__rule::after {
  content: "";
  flex: 1;
  max-width: 180px;
  border-top: 1.5px dashed rgba(255, 197, 61, 0.55);
}
.hero h1 { margin: 0; font-size: clamp(2.1rem, 9vw, 3.4rem); }
.hero h1 em { font-style: normal; color: var(--nova); }
.hero__latin {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.08em;
}
.hero__lead {
  margin: 0.4rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* --- Join box (in the hero, deliberately) --------------------------------- */

.join {
  margin-top: 0.9rem;
  padding: 1.1rem;
  background: var(--card);
  border: 2px solid var(--edge);
  border-radius: var(--r-slab);
  box-shadow: var(--offset) var(--offset) 0 var(--edge);
  max-width: 26rem;
}
.join__label { margin: 0 0 0.6rem; font-weight: 700; font-size: 0.92rem; }
.join__form { display: flex; gap: 0.5rem; }
.join__input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0.7rem 0.8rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-align: center;
  text-transform: uppercase;
  /* Explicit, not var(--chalk) on var(--ink).
     On the dark site those were a pale type colour on a dark field. Inverting
     the palette made --chalk resolve to the same value as --ink, so this input
     rendered its text in exactly its own background colour -- type a room code
     and nothing appears. It is the only interactive control on the page, so it
     gets stated values rather than aliases that can collide again. */
  color: #1C1340;
  background: #FFFFFF;
  border: 2px solid rgba(28, 19, 64, 0.35);
  border-radius: var(--r-slab);
}
.join__input:focus { outline: 3px solid var(--nova-lit); outline-offset: 2px; border-color: var(--nova); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7rem 1.35rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--edge);
  border-radius: var(--r-slab);
  cursor: pointer;
  box-shadow: var(--offset) var(--offset) 0 var(--edge);
  transition: transform 180ms, box-shadow 180ms;
}
.btn:active { transform: translate(var(--offset), var(--offset)); box-shadow: 0 0 0 var(--edge); }
.btn--loud  { color: var(--edge); background: var(--gold); }
.btn--brand { color: #fff; background: var(--nova); }
.btn--ghost { color: var(--ink); background: var(--card); }

/* --- Stats ---------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (min-width: 680px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div {
  padding: 1.1rem 0.9rem;
  text-align: center;
  background: var(--card);
  border: 2px solid var(--edge);
  border-radius: var(--r-slab);
  box-shadow: var(--offset) var(--offset) 0 var(--edge);
}
.stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 6vw, 2rem);
  color: var(--nova-deep);
  line-height: 1;
}
.stats span { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.78rem; }

/* --- Story ---------------------------------------------------------------- */

.story h2, .idea h2, .strands h2 { margin: 0 0 0.8rem; font-size: clamp(1.3rem, 5vw, 1.7rem); }
.story p { margin: 0 0 0.8rem; max-width: 46rem; color: var(--muted); }
.story__note { color: var(--nova) !important; font-weight: 700; font-style: italic; }

/* --- The idea ------------------------------------------------------------- */

.idea__grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 680px) { .idea__grid { grid-template-columns: repeat(3, 1fr); } }
.idea article {
  padding: 1.2rem;
  background: var(--card);
  border: 2px solid var(--edge);
  border-radius: var(--r-slab);
  box-shadow: var(--offset) var(--offset) 0 var(--edge);
}
.idea__badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--edge);
  background: var(--gold);
  border-radius: 50%;
}
.idea h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
.idea p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* --- Strands -------------------------------------------------------------- */

.strands { display: flex; flex-direction: column; gap: 0.9rem; }
.strand {
  padding: 1.2rem;
  background: var(--card);
  border: 2px solid var(--edge);
  border-left: 10px solid var(--nova);
  border-radius: var(--r-slab);
  box-shadow: var(--offset) var(--offset) 0 var(--edge);
}
.strand h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--nova); }
.strand p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.strand strong { color: var(--ink); }
.strand__link {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--nova);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.strand__link:hover { text-decoration: underline; }

/* --- Closing -------------------------------------------------------------- */

.cta { display: flex; flex-direction: column; gap: 0.7rem; }
.cta h2 { margin: 0; font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
.cta__sub { margin: 0; color: var(--muted); }
.cta__links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }

.foot {
  max-width: 940px;
  margin: 0 auto;
  padding: 1.6rem 1.15rem 2.5rem;
  border-top: 1px solid var(--hairline);
}
.foot__mark { margin: 0; font-weight: 800; }
.foot__tag { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.85rem; font-style: italic; }

/* ===========================================================================
   TABS — the four strands, each its own page
   ===========================================================================
   Real pages rather than anchors on one page, because the most valuable link
   on this site is the one somebody sends a school: "here is what we do for
   schools" has to land on the schools pitch, not at the top of a scroll.

   The nav markup is duplicated in every page rather than injected by script.
   A marketing site that needs JavaScript to render its own navigation is a
   site whose navigation is missing when the script fails, and five copies of
   nine lines is cheaper to live with than a build step.
   ========================================================================= */

.mast { flex-wrap: wrap; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0.9rem 1.15rem 0;
}
.tabs a {
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a:hover { color: var(--ink); border-color: var(--nova); }
/* aria-current, not a class: the thing that tells a screen reader which page
   this is should be the same thing that colours it. */
.tabs a[aria-current="page"] {
  color: var(--nova);
  border-color: var(--nova);
  background: rgba(124, 92, 230, 0.16);
}

/* --- A page that is not the front page ---------------------------------- */
.phero { display: flex; flex-direction: column; gap: 0.8rem; }
.phero__kicker {
  margin: 0;
  color: var(--nova);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.phero h1 { margin: 0; font-size: clamp(1.9rem, 8vw, 3.1rem); }
.phero__lead { margin: 0; max-width: 44rem; color: var(--muted); font-size: 1.05rem; }

/* --- The four doors on the front page ----------------------------------- */
.doors { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 680px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border: 2px solid var(--edge);
  border-radius: var(--r-slab);
  background: var(--card);
  box-shadow: var(--offset) var(--offset) 0 var(--edge);
  color: inherit;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.door:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--edge); }
.door h3 { margin: 0; font-size: 1.1rem; color: var(--nova); }
.door p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.door__go { margin-top: 0.35rem; color: var(--nova); font-size: 0.85rem; font-weight: 800; }

/* --- Numbered or ticked lists, used across the strand pages ------------- */
.points { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.points b { display: block; margin-bottom: 0.15rem; font-size: 0.98rem; }
.points span { color: var(--muted); font-size: 0.9rem; }
.points i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(124, 92, 230, 0.2);
  color: var(--nova);
  font-style: normal;
  font-weight: 800;
  font-size: 0.85rem;
}

/* --- A spec table, for the formats ------------------------------------- */
.spec { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec th, .spec td { padding: 0.55rem 0.2rem; text-align: left; border-bottom: 1px solid var(--hairline); }
.spec th { width: 42%; color: var(--muted); font-weight: 600; }
.spec td { color: var(--ink); font-weight: 700; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* A quiet note for things that are coming but are not here yet. Saying so is
   better than implying a thing exists, and far better than silence. */
.soon {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--edge);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
