/* Melodash marketing pages: /welcome, /teachers, /parents.
   Plain CSS, no build step. The game itself never loads this file. */

@font-face {
  font-family: 'Fraunces';
  src: url('/site/fonts/fraunces-latin-full-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/site/fonts/fraunces-latin-full-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/site/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/site/fonts/atkinson-hyperlegible-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/site/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0e1333;
  --night-2: #161c48;
  --night-3: #1f2660;
  --paper: #eef1fa;
  --dim: #aeb6d4;
  --ash: #9aa0ae;
  --resonance: #49e3a6;
  --lantern: #f4c35a;
  --lantern-hi: #ffe7a3;
  --violet: #8a7bff;
  --cyan: #5ad1e6;
  --rose: #ff8fb1;
  --line: rgba(238, 241, 250, 0.14);
  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --measure: 34em;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--lantern);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--lantern);
  color: var(--night);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 8.4vw, 104px); line-height: 0.98; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 120; }
h3 { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; font-weight: 600; }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--dim); max-width: var(--measure); text-wrap: pretty; }
.small { font-size: 15px; color: var(--dim); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.band + .band { border-top: 1px solid var(--line); }
.band-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 64px); }
.band-head h2 { margin-bottom: 18px; }

/* ---------- header ---------- */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: 18px 0;
}
.top .wrap { display: flex; align-items: center; gap: 20px; }
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 72;
  font-weight: 650;
  font-size: 27px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark svg { width: 30px; height: 30px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--paper);
}
.top nav a:hover { background: rgba(238, 241, 250, 0.1); }
.top nav a[aria-current='page'] { background: rgba(238, 241, 250, 0.14); }
.top nav .nav-cta { background: var(--lantern); color: var(--night); margin-left: 4px; }
.top nav .nav-cta:hover { background: var(--lantern-hi); }
@media (max-width: 620px) {
  .top nav a:not(.nav-cta) { padding: 9px 9px; font-size: 15px; }
  .wordmark span { display: none; }
}
@media (max-width: 360px) {
  .top nav .nav-cta { display: none; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font: 700 18px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lantern); color: var(--night); box-shadow: 0 10px 34px rgba(244, 195, 90, 0.35); }
.btn-primary:hover { background: var(--lantern-hi); }
.btn-quiet { background: rgba(14, 19, 51, 0.55); color: var(--paper); box-shadow: inset 0 0 0 2px rgba(238, 241, 250, 0.55); backdrop-filter: blur(6px); }
.btn-quiet:hover { background: rgba(14, 19, 51, 0.8); box-shadow: inset 0 0 0 2px var(--paper); }
.btn svg { width: 20px; height: 20px; flex: none; }
.linkish {
  background: none;
  border: 0;
  padding: 6px 2px;
  font: 700 16px/1.3 var(--body);
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(238, 241, 250, 0.4);
  cursor: pointer;
}
.linkish:hover { text-decoration-color: var(--lantern); }

/* =========================================================
   HERO: the Hush and the bloom (welcome page)
   ========================================================= */
.hush {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  isolation: isolate;
}
.hush .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 100%;
  z-index: -3;
}
.hush .scene-ash { filter: grayscale(1) brightness(0.62) contrast(1.05); }
.hush .scene-color {
  -webkit-mask-image: radial-gradient(circle at 74% 78%, #000 0, #000 0.8%, transparent 2.6%);
  mask-image: radial-gradient(circle at 74% 78%, #000 0, #000 0.8%, transparent 2.6%);
}
.hush.is-bloomed .scene-color { -webkit-mask-image: none; mask-image: none; }
/* darken behind the words so they read on every phone */
.hush::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(14, 19, 51, 0.88) 0%, rgba(14, 19, 51, 0.55) 34%, rgba(14, 19, 51, 0) 58%);
}
@media (min-width: 900px) {
  .hush::before { background: linear-gradient(100deg, rgba(14, 19, 51, 0.9) 0%, rgba(14, 19, 51, 0.6) 34%, rgba(14, 19, 51, 0) 60%); }
}
.hush::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 19, 51, 0), var(--night));
}
.hush-copy {
  padding-top: clamp(104px, 15vh, 170px);
  padding-bottom: 60px;
  max-width: 820px;
}
.hush-copy h1 { margin-bottom: 22px; }
.hush-copy .lede { color: #d5dbef; margin-bottom: 30px; }
.hush-note { margin-top: 18px; font-size: 15px; color: #c3cae3; max-width: 30em; }

.kindler {
  position: absolute;
  z-index: -1;
  right: max(4vw, 10px);
  bottom: 4.5%;
  width: clamp(150px, 19vw, 270px);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}
@media (max-width: 640px) {
  .kindler { width: 138px; right: 6px; bottom: 3%; }
}

/* the live readout while listening */
.readout {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(14, 19, 51, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
  max-width: 440px;
}
.hush.is-listening .readout, .hush.is-demo .readout { display: flex; }
.readout .note {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 96;
  font-weight: 650;
  font-size: 44px;
  line-height: 1;
  min-width: 2.2ch;
  text-align: center;
  color: var(--ash);
  transition: color 0.15s;
}
.readout.in-tune .note { color: var(--resonance); }
.readout .meter { flex: 1; }
.readout .needle-track { position: relative; height: 8px; border-radius: 99px; background: rgba(238, 241, 250, 0.14); }
.readout .needle-track::before { content: ''; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: rgba(238, 241, 250, 0.5); }
.readout .needle {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--ash);
  transition: left 0.08s linear, background-color 0.15s;
}
.readout.in-tune .needle { background: var(--resonance); box-shadow: 0 0 14px var(--resonance); }
.readout .status { font-size: 15px; color: var(--dim); margin-top: 8px; }
.readout .stop { margin-left: 4px; }
.bloom-meter { height: 4px; border-radius: 99px; background: rgba(238, 241, 250, 0.12); margin-top: 10px; overflow: hidden; }
.bloom-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--resonance), var(--cyan), var(--violet), var(--lantern)); transition: width 0.2s; }

.bloomed-msg { display: none; margin-top: 22px; max-width: 30em; }
.hush.is-bloomed .bloomed-msg { display: block; }
.bloomed-msg p { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-style: italic; font-size: 23px; line-height: 1.35; }

/* =========================================================
   Compact hero for /teachers and /parents
   ========================================================= */
.page-hero {
  position: relative;
  padding: clamp(118px, 15vw, 170px) 0 clamp(150px, 24vw, 330px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .horizon {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(150px, 26vw, 330px);
  z-index: -2;
  background: url('/site/art/cantara.svg') 60% 100% / cover no-repeat;
  opacity: 0.9;
}
.page-hero .horizon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--night) 0%, rgba(14, 19, 51, 0.35) 55%, var(--night) 100%);
}
.page-hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .page-hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.page-hero h1 { font-size: clamp(42px, 6.6vw, 84px); margin-bottom: 22px; }
.page-hero .lede { margin-bottom: 30px; color: #d5dbef; }

/* =========================================================
   The ensemble: one musician per class, on a stage
   ========================================================= */
.ensemble { position: relative; }
.stage-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 14px);
  align-items: end;
  padding: 0 clamp(0px, 2vw, 24px);
  position: relative;
}
.stage-row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 195, 90, 0.35), rgba(244, 195, 90, 0));
  z-index: -1;
}
.player { margin: 0; text-align: center; }
.player img { width: 100%; height: auto; aspect-ratio: 400 / 530; }
.player figcaption { margin-top: 16px; }
.player .cls { display: block; font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 600; font-size: clamp(16px, 1.7vw, 22px); }
.player .ins { display: block; font-size: 14px; color: var(--dim); line-height: 1.4; margin-top: 4px; }
@media (max-width: 760px) {
  .stage-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .stage-row::after { display: none; }
}

/* =========================================================
   The climb: Apprentice to Maestro (a real sequence)
   ========================================================= */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 48px); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 18px;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 650;
  font-size: 23px;
  color: var(--night);
  background: var(--resonance);
}
.steps li:nth-child(2)::before { background: var(--cyan); }
.steps li:nth-child(3)::before { background: var(--lantern); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--dim); max-width: 26em; }

.ranks {
  list-style: none;
  margin: clamp(48px, 7vw, 84px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
}

.ranks li {
  position: relative;
  padding: 14px 10px 12px;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, rgba(138, 123, 255, 0.28), rgba(138, 123, 255, 0.08));
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 600;
  font-size: clamp(14px, 1.8vw, 21px);
  text-align: center;
}
.ranks li:nth-child(1) { height: 64px; }
.ranks li:nth-child(2) { height: 96px; }
.ranks li:nth-child(3) { height: 128px; }
.ranks li:nth-child(4) { height: 160px; }
.ranks li:nth-child(5) { height: 196px; background: linear-gradient(180deg, rgba(244, 195, 90, 0.5), rgba(244, 195, 90, 0.1)); }
.ranks-caption { margin-top: 14px; }
/* On a phone the ladder climbs sideways: five bars, each longer than the last. */
@media (max-width: 560px) {
  .ranks { grid-template-columns: 1fr; gap: 6px; }
  .ranks li,
  .ranks li:nth-child(n) { height: auto; padding: 11px 16px; border-radius: 4px 14px 14px 4px; text-align: left; font-size: 18px; background: linear-gradient(90deg, rgba(138, 123, 255, 0.3), rgba(138, 123, 255, 0.08)); }
  .ranks li:nth-child(1) { width: 56%; }
  .ranks li:nth-child(2) { width: 67%; }
  .ranks li:nth-child(3) { width: 78%; }
  .ranks li:nth-child(4) { width: 89%; }
  .ranks li:nth-child(5) { width: 100%; background: linear-gradient(90deg, rgba(244, 195, 90, 0.5), rgba(244, 195, 90, 0.1)); }
}

/* =========================================================
   Cantara: the story and the realms
   ========================================================= */
.cantara-grid { display: grid; gap: clamp(40px, 6vw, 88px); }
@media (min-width: 980px) { .cantara-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.story h2, .together h2 { margin-bottom: 22px; }
.story p { max-width: 31em; }
.story .quote {
  margin: 34px 0 0;
  padding: 0 0 0 22px;
  border-left: 3px solid var(--resonance);
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
}
.story .quote footer { margin-top: 10px; font-family: var(--body); font-style: normal; font-size: 15px; color: var(--dim); }

.realms { list-style: none; margin: 0; padding: 0; position: relative; }
.realms::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--resonance), var(--cyan), var(--violet), var(--lantern));
  opacity: 0.7;
}
.realms li { position: relative; padding: 0 0 26px 48px; }
.realms li:last-child { padding-bottom: 0; }
.realms li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: inset 0 0 0 3px var(--dot, var(--resonance));
}
.realms .name { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 600; font-size: 22px; line-height: 1.25; display: block; }
.realms .skill { color: var(--dim); font-size: 16px; }

/* =========================================================
   The program: challenges, set like a concert program
   ========================================================= */
.program {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(22px, 5vw, 72px);
  border-radius: 28px;
  background: #f6efdd;
  color: #1c1a33;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  position: relative;
}
.program-title { text-align: center; margin-bottom: clamp(26px, 4vw, 42px); }
.program-title h2 { color: #1c1a33; }
.program-title p { color: #5a5470; margin: 12px auto 0; max-width: 30em; }
.program dl { margin: 0; }
.program .item { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 13px 0; border-top: 1px solid rgba(28, 26, 51, 0.12); }
.program .item:first-child { border-top: 0; }
.program dt { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-style: italic; font-weight: 600; font-size: clamp(19px, 2vw, 23px); }
.program dd { margin: 0; grid-column: 1 / -1; color: #4a4562; font-size: 16px; }
@media (min-width: 720px) {
  .program .item { grid-template-columns: 15em 1fr; align-items: baseline; }
  .program dd { grid-column: 2; }
}
.program .coda { margin: 28px 0 0; text-align: center; font-style: italic; color: #5a5470; font-size: 16px; }

/* =========================================================
   Play together, safely
   ========================================================= */
.together { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 980px) { .together { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }
.names { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.names li {
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 600;
  font-size: 19px;
  background: rgba(238, 241, 250, 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
}
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.facts li { padding-left: 34px; position: relative; max-width: 34em; }
.facts li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--resonance);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.facts strong { display: block; }
.facts span { color: var(--dim); }

/* =========================================================
   Board mock (product picture, clearly a sample)
   ========================================================= */
.screen {
  border-radius: 24px;
  background: linear-gradient(180deg, #19204f, #121840);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(238, 241, 250, 0.1);
  padding: clamp(16px, 2.4vw, 26px);
  font-size: 16px;
}
.screen-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.screen-top b { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 21px; font-weight: 600; }
.screen-top span { color: var(--dim); font-size: 14px; }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 26px 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.board li + li { border-top: 1px solid rgba(238, 241, 250, 0.07); }
.board .rk { font-weight: 700; color: var(--dim); text-align: center; }
.board li:nth-child(1) .rk { color: var(--lantern); }
.board .av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #262e6c; }
.board .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; transform: scale(1.9); transform-origin: 50% 8%; }
.board .nm { font-weight: 700; line-height: 1.25; }
.board .nm small { display: block; font-weight: 400; color: var(--dim); font-size: 13px; }
.board .sc { font-weight: 700; color: var(--resonance); }
.board li.you { background: rgba(73, 227, 166, 0.1); box-shadow: inset 0 0 0 1px rgba(73, 227, 166, 0.35); }
.sample-tag { margin-top: 12px; font-size: 13px; color: var(--dim); text-align: right; }

.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 11px 4px; }
.log li + li { border-top: 1px solid rgba(238, 241, 250, 0.07); }
.log .who { font-weight: 700; }
.log .min { font-weight: 700; text-align: right; }
.log .how { grid-column: 1 / -1; font-size: 14px; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pill-heard { background: rgba(73, 227, 166, 0.16); color: var(--resonance); }
.pill-timer { background: rgba(238, 241, 250, 0.1); color: var(--dim); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 6px 0 16px; }
.week span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(238, 241, 250, 0.07); color: var(--dim); }
.week span.on { background: var(--resonance); color: var(--night); }
.recap-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.recap-head .av { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; background: #262e6c; }
.recap-head .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; transform: scale(1.9); transform-origin: 50% 8%; }
.recap-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.recap-nums div { background: rgba(238, 241, 250, 0.06); border-radius: 14px; padding: 12px 10px; text-align: center; }
.recap-nums b { display: block; font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 30px; line-height: 1.1; }
.recap-nums small { color: var(--dim); font-size: 13px; }

/* =========================================================
   Feature groups (teachers / parents)
   ========================================================= */
.groups { display: grid; gap: clamp(40px, 5vw, 60px) clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .groups { grid-template-columns: 1fr 1fr; } }
.group h3 { margin-bottom: 12px; }
.group > p { color: var(--dim); }
.group ul { margin: 14px 0 0; padding: 0 0 0 1.1em; }
.group li { margin-bottom: 8px; }
.group li::marker { color: var(--resonance); }

.howto { list-style: none; margin: 0; padding: 0; counter-reset: how; display: grid; gap: 0; max-width: 820px; }
.howto li { counter-increment: how; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.howto li:first-child { border-top: 0; }
.howto li::before {
  content: counter(how);
  grid-row: span 2;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  color: var(--lantern);
}
.howto b { font-size: 20px; }
.howto span { color: var(--dim); }

.founder {
  max-width: 900px;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.3;
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
}
.founder-by { margin-top: 18px; color: var(--dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-weight: 700;
  font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2.5px solid var(--lantern);
  border-bottom: 2.5px solid var(--lantern);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { color: var(--dim); max-width: 38em; padding-bottom: 8px; }

/* ---------- who it's for ---------- */
.doors { display: grid; gap: 18px; }
@media (min-width: 820px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  min-height: 260px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.2s;
}
.door:hover { background: var(--night-3); }
.door h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.door p { color: var(--dim); margin: 0; max-width: 20em; }
.door .go { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--lantern); }
.door img { width: clamp(104px, 13vw, 150px); margin-bottom: -40px; align-self: end; }

/* ---------- closing ---------- */
.closing { text-align: center; padding: clamp(90px, 13vw, 170px) 0 clamp(130px, 18vw, 240px); position: relative; overflow: hidden; isolation: isolate; }
.closing .horizon {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(170px, 28vw, 360px);
  z-index: -1;
  background: url('/site/art/cantara.svg') 50% 100% / cover no-repeat;
}
.closing .horizon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(14, 19, 51, 0) 60%); }
.closing h2 { font-size: clamp(40px, 6.4vw, 80px); margin: 0 auto 18px; max-width: 12em; }
.closing .lede { margin: 0 auto 32px; }
.closing .actions { justify-content: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 15px; color: var(--dim); }
.foot .wrap { display: grid; gap: 22px; }
@media (min-width: 820px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; font-weight: 700; color: var(--paper); }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 0; max-width: 42em; }

/* Once the world has bloomed, the invitation replaces the first buttons. */
.hush.is-bloomed .hush-copy > .actions,
.hush.is-bloomed .hush-note { display: none; }
