:root {
  --lilac: #EEE7FF;
  --lilac-deep: #DCCFFF;
  --plum: #2A1745;
  --plum-soft: #5B4780;
  --bubble: #FFE066;
  --blush: #FF7EB3;
  --stage: #1E1233;
  --white: #FFFFFF;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --measure: 34rem;
  font-size: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lilac);
  color: var(--plum);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}
.wordmark {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.wordmark svg { width: 30px; height: 30px; }
.header-link {
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--plum);
}
.header-link:hover { background: var(--plum); color: var(--lilac); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 2.5rem 4.5rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 1.25rem;
  max-width: 11ch;
}
.lede {
  font-size: 1.2rem;
  color: var(--plum-soft);
  max-width: var(--measure);
  margin: 0 0 2rem;
}

/* waitlist form */
.waitlist { max-width: 30rem; }
.waitlist label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.field-row {
  display: flex;
  gap: 0.5rem;
  background: var(--white);
  border: 2px solid var(--plum);
  border-radius: 999px;
  padding: 0.35rem;
}
.field-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
  color: var(--plum);
}
.field-row input:focus { outline: none; }
.field-row:focus-within { outline: 3px solid var(--blush); outline-offset: 2px; }
.btn {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  background: var(--plum);
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: #3d2463; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.form-note {
  font-size: 0.88rem;
  color: var(--plum-soft);
  margin: 0.65rem 0 0 1rem;
}
.form-status {
  margin: 0.75rem 0 0 1rem;
  font-weight: 600;
  min-height: 1.5em;
}
.form-status.is-error { color: #B0124F; }

/* ---------- stage (the live demo) ---------- */
.stage {
  position: relative;
  background: var(--stage);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1rem;
  color: var(--white);
  box-shadow: 0 18px 0 -6px var(--lilac-deep), 0 18px 0 -4px var(--plum);
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #CFC2EE;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}
.live-dot::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #6E5E91;
}
.stage.is-talking .live-dot::before { background: var(--blush); }

.avatar-box {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0.5rem auto 0;
}
.avatar {
  position: absolute;
  inset: 0;
  transition: transform 90ms ease-out;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}
.avatar img.on { opacity: 1; }
.stage.is-talking .avatar { transform: translateY(-10px); }

.bubble {
  position: absolute;
  top: 8%;
  right: 2%;
  background: var(--bubble);
  color: var(--plum);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.45rem 0.9rem;
  border-radius: 18px 18px 18px 4px;
  transform: scale(0);
  transform-origin: bottom left;
  transition: transform 140ms ease-out;
}
.stage.is-talking .bubble { transform: scale(1); }

.stage-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}
.ctrl {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  border: 2px solid #5E4C86;
  background: transparent;
  color: var(--white);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.ctrl:hover { border-color: var(--bubble); }
.ctrl[aria-pressed="true"] { background: var(--bubble); color: var(--plum); border-color: var(--bubble); }
.meter {
  height: 6px;
  border-radius: 99px;
  background: #3A2A5A;
  margin: 0.85rem auto 0.2rem;
  max-width: 260px;
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--blush);
  transition: width 60ms linear;
}
.stage-hint {
  text-align: center;
  font-size: 0.82rem;
  color: #A897CC;
  margin: 0.35rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .avatar, .bubble { transition: none; }
  .stage.is-talking .avatar { transform: none; }
}

/* ---------- sections ---------- */
section { padding-block: 4rem; }
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1rem;
  max-width: 20ch;
}
.section-intro {
  color: var(--plum-soft);
  max-width: var(--measure);
  font-size: 1.1rem;
  margin: 0 0 2.5rem;
}

/* steps: a real sequence, so numbered */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--plum);
  padding-top: 1rem;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--bubble);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.steps h3 { margin: 0 0 0.35rem; font-size: 1.25rem; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--plum-soft); }

/* frames strip */
.frames-band { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; }
.frames {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 1rem;
  align-items: end;
}
.frames figure { margin: 0; }
.frames img {
  background:
    conic-gradient(#F2EEFA 25%, #FFFFFF 0 50%, #F2EEFA 0 75%, #FFFFFF 0) 0 0 / 18px 18px;
  border-radius: var(--radius-sm);
}
.frames .source img { background: none; }
.frames figcaption { font-size: 0.92rem; margin-top: 0.5rem; }
.frames figcaption b { display: block; font-weight: 700; }
.frames figcaption span { color: var(--plum-soft); }

/* rules */
.rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  max-width: 54rem;
}
.rules h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.rules p { margin: 0; color: var(--plum-soft); }

/* faq */
.faq { max-width: 46rem; }
.faq details {
  border-bottom: 2px solid var(--lilac-deep);
  padding-block: 1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.12rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.6rem 0 0; color: var(--plum-soft); max-width: var(--measure); }

/* closing cta */
.closing {
  background: var(--plum);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.closing .section-title { color: var(--white); margin: 0; }
.closing .waitlist label { color: var(--white); }
.closing .form-note, .closing .form-status { color: #CFC2EE; }
.closing .form-status.is-error { color: #FFB3CF; }
.closing .btn { background: var(--bubble); color: var(--plum); }
.closing .btn:hover { background: #FFD633; }

/* footer */
.site-footer {
  padding-block: 2.5rem 3rem;
  font-size: 0.92rem;
  color: var(--plum-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- legal pages ---------- */
.legal { max-width: 44rem; padding-block: 2rem 4rem; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.5rem; }
.legal .updated { color: var(--plum-soft); margin: 0 0 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: #3A2A55; }
.legal ul { padding-left: 1.2rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1rem; }
  .hero h1 { max-width: 14ch; }
  .steps { grid-template-columns: 1fr; }
  .frames { grid-template-columns: repeat(2, 1fr); }
  .frames .source { grid-column: 1 / -1; max-width: 220px; }
  .rules { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; padding: 2rem; }
  .frames-band { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .field-row { flex-direction: column; border-radius: 20px; }
  .btn { width: 100%; }
}

/* honeypot field for bots, hidden from people and screen readers */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

[hidden] { display: none !important; }
