@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/PlusJakartaSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/PlusJakartaSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f5fa;
  --surface: #fff;
  --paper-inset: #eceef6;
  --ink: #131522;
  --ink-muted: #4e5266;
  --line: #e1e4f0;
  --iris: #4b36c8;
  --iris-hover: #35229f;
  --iris-paper: #ece9fe;
  --iris-light: #a59bff;
  --night: #090a0f;
  --night-panel: #141519;
  --night-ink: #f4f5f8;
  --night-muted: #b9bdca;
  --live: #38bdf8;
  --success: #146b35;
  --mint-paper: #dcfce7;
  --error: #a4191d;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --edge: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 "Plus Jakarta Sans", system-ui, sans-serif;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { color: inherit; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -0.05em; }
h3 { font-size: 18px; letter-spacing: -0.025em; line-height: 1.35; }
img { display: block; max-inline-size: 100%; }
a { color: var(--iris); text-underline-offset: 0.2em; }
button, input { font: inherit; }
:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 4px;
}
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 2 * var(--edge)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: var(--edge);
  padding: 8px 16px;
  background: var(--surface);
}

.topbar {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.top-nav a:hover { color: var(--iris); background: var(--paper); }
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-height: 44px;
  padding: 9px 16px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--iris);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--iris-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 230ms var(--ease-out);
}
.button-arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) {
  .button:hover:not(:disabled)::before { transform: scaleX(1); }
  .button:hover:not(:disabled) .button-arrow { transform: translateX(3px); }
}
.button:focus-visible::before { transform: scaleX(1); transition: none; }
.button:active:not(:disabled) { transform: scale(0.985); }
.button:disabled { opacity: 0.7; cursor: wait; }
.button-nav { justify-self: end; }

.hero { padding-block: clamp(44px, 7.5vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.live-dot {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0369a1;
}
.hero h1 {
  margin-block: 16px 20px;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.99;
  letter-spacing: -0.06em;
  font-weight: 700;
}
.hero h1 em { color: var(--iris); font-style: normal; }
.hero-lead { max-width: 38ch; color: var(--ink-muted); font-size: clamp(16px, 2vw, 20px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  min-height: 44px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.waitlist-card {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(19 21 34 / 5%);
}
.waitlist-card h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.05em; }
.form-intro { color: var(--ink-muted); margin-top: 8px; font-size: 14px; }
#waitlist-form { display: grid; gap: 16px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field > span, .role-field legend { font-weight: 700; font-size: 13px; }
.field small { margin-left: 3px; color: var(--ink-muted); font: inherit; font-weight: 400; }
.field input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #c9cee0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}
.field input::placeholder { color: #60667b; opacity: 1; }
.field input:focus { border-color: var(--iris); }
.role-field { padding: 0; margin: 0; border: 0; min-width: 0; }
.role-field legend { padding: 0; margin-bottom: 6px; }
.role-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.role-options label { position: relative; }
.role-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.role-options span {
  min-height: 44px;
  padding: 8px 3px;
  display: grid;
  place-items: center;
  border: 1px solid #c9cee0;
  border-radius: 8px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.role-options input:checked + span { border-color: var(--iris); background: var(--iris-paper); color: var(--iris); }
.role-options input:focus-visible + span { outline: 2px solid var(--iris); outline-offset: 2px; }
.consent-row {
  display: grid;
  align-items: start;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.55;
}
.consent-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--iris); }
.button-submit { width: 100%; justify-content: space-between; }
.form-feedback { color: var(--ink-muted); font-size: 13px; }
.form-feedback:empty { margin-top: -16px; }
.form-feedback.is-error { color: var(--error); }
.form-feedback.is-success { color: var(--success); }

.classroom-band { padding-block: clamp(48px, 8vw, 96px); background: var(--night); color: var(--night-ink); }
.classroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.classroom-copy .eyebrow { color: var(--iris-light); }
.classroom-copy h2 { margin-block: 12px 16px; }
.classroom-copy > p:not(.eyebrow) { max-width: 39ch; color: var(--night-muted); }
.room-capacity {
  display: grid;
  gap: 2px;
  width: fit-content;
  margin-top: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--live);
  font-size: 14px;
}
.room-capacity strong { color: var(--night-ink); }
.room-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #353744;
  border-radius: 16px;
  background: var(--night-panel);
}
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid #31333f;
  color: var(--night-muted);
  font-size: 13px;
}
.preview-top > span:first-child { display: flex; align-items: center; gap: 8px; }
.preview-top .live-dot { background: var(--live); }
.preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 170px;
}
.bitmap-wrap {
  min-width: 0;
  min-height: 148px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-right: 1px solid #31333f;
  background-color: #10111a;
  background-image: radial-gradient(circle at 1px 1px, #292938 1px, transparent 1.2px);
  background-size: 12px 12px;
}
#room-bitmap { display: block; width: 100%; height: 106px; }
.room-example { display: grid; align-content: center; gap: 5px; padding: 16px; }
.room-example span { color: var(--live); font-size: 12px; font-weight: 700; }
.room-example strong { line-height: 1.3; font-size: clamp(17px, 2vw, 23px); letter-spacing: -0.03em; }
.room-example p { font-size: 13px; color: var(--night-muted); }
.preview-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #31333f; }
.preview-tabs button {
  min-height: 48px;
  padding: 8px 6px;
  border: 0;
  background: transparent;
  color: var(--night-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}
.preview-tabs button + button { border-left: 1px solid #31333f; }
.preview-tabs button[aria-pressed="true"] { color: var(--night-ink); background: #26224b; }
.preview-tabs button:hover { color: var(--night-ink); }
.preview-tabs button:focus-visible { outline-color: var(--iris-light); outline-offset: -3px; }

.content-section { padding-block: clamp(48px, 7vw, 96px); }
.section-heading { margin-bottom: 28px; }
.section-heading p { margin-top: 8px; color: var(--ink-muted); }
.subject-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.subject-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.subject-art {
  min-height: 150px;
  display: grid;
  justify-content: center;
  align-content: center;
  gap: 4px;
  padding: 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.art-math {
  background-color: var(--iris-paper);
  background-image: linear-gradient(rgb(75 54 200 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(75 54 200 / 8%) 1px, transparent 1px);
  background-size: 16px 16px;
}
.math-line { font: 500 clamp(15px, 2.1vw, 25px)/1.45 ui-monospace, Consolas, monospace; }
.math-result { width: fit-content; border-bottom: 2px solid var(--iris); color: var(--iris); }
.art-code { background: var(--night-panel); color: var(--night-ink); }
.art-code code { font: 400 clamp(13px, 1.5vw, 16px)/1.7 ui-monospace, Consolas, monospace; }
.art-code span { color: var(--iris-light); }
.art-science { gap: 8px; background: var(--paper-inset); }
.chemical-equation { font: 400 13px/1.4 ui-monospace, Consolas, monospace; }
.circuit { position: relative; width: 106px; height: 52px; border: 2px solid #344160; border-radius: 4px; }
.circuit-source {
  position: absolute;
  top: 50%;
  left: -7px;
  width: 12px;
  height: 24px;
  border-inline: 3px solid #344160;
  background: var(--paper-inset);
  transform: translateY(-50%);
}
.circuit-lamp {
  position: absolute;
  top: 50%;
  right: -13px;
  width: 24px;
  height: 24px;
  border: 2px solid #344160;
  border-radius: 50%;
  background: var(--paper-inset);
  transform: translateY(-50%);
}
.circuit-lamp::before, .circuit-lamp::after {
  content: "";
  position: absolute;
  inset: 9px 2px auto;
  height: 2px;
  background: #344160;
  transform: rotate(45deg);
}
.circuit-lamp::after { transform: rotate(-45deg); }
.art-study { background: var(--mint-paper); }
.study-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; }
.study-list li::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 1px solid var(--success); border-radius: 2px; }
.study-list li:first-child::before { background: var(--success); }
.subject-copy { padding: 16px; }
.subject-copy p, .routine-grid p { margin-top: 6px; color: var(--ink-muted); font-size: 14px; }

.routine-band { border-block: 1px solid var(--line); background: var(--surface); }
.routine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.routine-grid article { padding-top: 14px; border-top: 2px solid var(--iris); }
.community-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(28px, 6vw, 80px); }
.community-photo { overflow: hidden; border-radius: 16px; }
.community-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.audience-list { display: grid; gap: 12px; margin-top: 20px; }
.audience-list div { padding-top: 10px; border-top: 1px solid #d7daea; }
.audience-list dt { font-size: 15px; font-weight: 700; }
.audience-list dd { font-size: 14px; color: var(--ink-muted); }

.invite-band { border-block: 1px solid #dad4f7; padding-block: 32px; background: var(--iris-paper); }
.invite-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.invite-inner h2 { font-size: clamp(24px, 3.5vw, 36px); }
.invite-inner p { margin-top: 6px; color: var(--ink-muted); }
.invite-inner .invite-countdown { color: var(--iris); font: 700 clamp(22px, 4vw, 38px)/1.4 ui-monospace, Consolas, monospace; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; }
.faq-list { border-top: 1px solid #d7daea; }
.faq-list details { border-bottom: 1px solid #d7daea; }
.faq-list summary { padding: 12px 4px; min-height: 48px; cursor: pointer; font-weight: 700; }
.faq-list details p { padding: 0 4px 14px; max-width: 62ch; color: var(--ink-muted); font-size: 14px; }
.site-footer { background: var(--night); color: var(--night-ink); padding-block: 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner p { margin-top: 8px; color: var(--night-muted); font-size: 13px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-inner nav a { color: var(--night-ink); font-size: 13px; }
.footer-inner a:focus-visible { outline-color: var(--iris-light); }

@media (max-width: 960px) {
  .hero-grid { gap: 32px; }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 108px; }
  .topbar-inner { min-height: 0; grid-template-columns: 1fr auto; row-gap: 0; padding-top: 8px; }
  .topbar .brand { align-self: center; }
  .top-nav { grid-row: 2; grid-column: 1 / -1; margin-top: 4px; justify-content: center; }
  .top-nav a { min-height: 44px; }
  .button-nav { grid-row: 1; grid-column: 2; }
  .hero-grid, .classroom-grid, .community-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { margin-block: 12px 16px; }
  .routine-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .invite-inner, .footer-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 420px) {
  .subject-grid { gap: 8px; }
  .subject-art { min-height: 112px; padding: 8px; }
  .subject-copy { padding: 10px; }
  .subject-copy h3 { font-size: 16px; }
  .subject-copy p { font-size: 13px; }
  .art-study li { font-size: 11px; }
  .preview-body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .room-example { padding: 12px; }
}
@media (max-width: 360px) {
  .subject-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .button:active:not(:disabled),
  .button:hover:not(:disabled) .button-arrow { transform: none; }
}

