/* Design tokens */
:root {
  --cream: #FFF3D6;
  --violet: #7C3AED;
  --pink: #FF5C8A;
  --yellow: #FFC700;
  --lime: #BFE33A;
  --ink: #141414;
  --white: #FFFFFF;

  --border: 2px solid var(--ink);
  --shadow: 0 4px 0 0 var(--ink);
  --radius: 20px;

  --font-head: "Bungee", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 56px 0; }

::selection { background: var(--yellow); color: var(--ink); }

/* Type */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0;
  line-height: 1.1;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); margin-bottom: 16px; }
h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 24px; }
h3 { font-size: 1.25rem; margin: 12px 0 6px; }

p { margin: 0; }

.mono { font-family: var(--font-mono); font-weight: 700; }

/* Hero */
.hero { padding-top: 32px; text-align: center; }

.wordmark {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--violet);
  text-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-3deg);
  margin-bottom: 20px;
}

.mascot {
  display: block;
  width: clamp(150px, 40vw, 200px);
  height: auto;
  margin: 0 auto 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--yellow);
  border: var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.subhead {
  font-size: 1.1rem;
  max-width: 34ch;
  margin: 0 auto 32px;
}

/* Cards */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* Form */
.waitlist {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.waitlist > label,
.waitlist legend {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.optional { font-weight: 400; text-transform: none; }

.waitlist input[type="email"],
.waitlist input[type="text"] {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: var(--border);
  border-radius: 14px;
  height: 52px;
  padding: 0 16px;
  margin-bottom: 16px;
  width: 100%;
}

.waitlist input::placeholder { color: #6B5E45; opacity: 1; }

.waitlist input[aria-invalid="true"] {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px var(--pink);
}

.field-error {
  font-size: 0.9rem;
  font-weight: 700;
  margin: -8px 0 16px;
}
.field-error:empty { display: none; }

/* Netlify honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; }

.waitlist input:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { padding: 0; }

.choices { display: flex; gap: 10px; }

.choice {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  border: var(--border);
  border-radius: 999px;
  height: 48px;
  padding: 0 16px;
  margin: 0;
  cursor: pointer;
}
.choice:has(input:checked) { background: var(--lime); }
.choice:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.choice input { accent-color: var(--violet); width: 18px; height: 18px; margin: 0; }

/* Button */
.btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  height: 52px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 0 24px;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 0 var(--ink); }
}
.btn:active { transform: translateY(4px); box-shadow: none; }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 80ms ease-out, box-shadow 80ms ease-out; }
}
.btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* How it works */
.how h2 { text-align: center; }
.how .cards { display: grid; gap: 16px; }
.feature-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feature-head h3 { margin: 0; }

@media (min-width: 860px) {
  .how { margin-inline: calc(50% - min(470px, 50vw - 20px)); }
  .how .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  border: var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}
.tag-yellow { background: var(--yellow); }
.tag-pink   { background: var(--pink); }
.tag-lime   { background: var(--lime); }
.tag-violet { background: var(--violet); color: var(--white); }

/* Rewards */
.rewards-line {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 6vw, 1.8rem);
  line-height: 1.2;
  text-align: center;
  background: var(--pink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  transform: rotate(-1.5deg);
}

/* Bottom CTA */
.bottom { text-align: center; }
.perk { max-width: 38ch; margin: 0 auto 24px; font-size: 1.05rem; }
.perk .mono {
  background: var(--yellow);
  border: var(--border);
  border-radius: 999px;
  padding: 0 8px;
}

/* Footer */
.footer {
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  padding: 40px 20px 48px;
  margin-top: 24px;
}
.footer-name {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--yellow);
  margin-bottom: 6px;
}
.footer-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Thank-you page */
.thanks {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}
.thanks .subhead { margin-bottom: 28px; }
.btn-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
