@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --poppy: #ff5a36;
  --butter: #ffe95c;
  --lilac: #c8b6ff;
  --blue: #2d37e6;
  --mint: #9df0cc;
  --cream: #fff6e8;
  --ink: #1b1033;
  --focus: var(--ink);
  --display: "Unbounded", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1.2);
  --smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pad: clamp(1.25rem, 5vw, 4rem);
  --shadow: 4px 4px 0 var(--ink);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  z-index: 20;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--pad), 72rem);
  margin-inline: auto;
}
.wrap.narrow {
  width: min(100% - 2 * var(--pad), 40rem);
  text-align: center;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Shared bits */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.pill-ink {
  background: var(--ink);
  color: var(--cream);
}
.pill-butter {
  background: var(--butter);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 1.05rem 1.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 7px 7px 0 var(--ink);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn-ink {
  background: var(--ink);
  color: var(--butter);
  box-shadow: 4px 4px 0 var(--cream);
}
.btn-ink:hover {
  box-shadow: 7px 7px 0 var(--cream);
}
.btn-ink:active {
  box-shadow: 1px 1px 0 var(--cream);
}
.btn-butter {
  background: var(--butter);
  color: var(--ink);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.spark {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}
.spark.inline {
  width: 0.9rem;
  height: 0.9rem;
}

/* Ticker */
.ticker {
  background: var(--butter);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.ticker ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: none;
}
.ticker li {
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
}
.ticker li::after {
  content: "✦";
  margin-inline: 1.75rem;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 2.6rem);
  min-height: calc(100svh - 2.6rem);
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem) var(--pad) clamp(2.5rem, 7vh, 5rem);
  background: var(--poppy);
  overflow: hidden;
  isolation: isolate;
}

.decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border: 2px solid var(--ink);
  animation: morph 14s ease-in-out infinite alternate;
}
.blob-a {
  width: clamp(14rem, 34vw, 30rem);
  aspect-ratio: 1;
  background: var(--lilac);
  left: -8%;
  bottom: -10%;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}
.blob-b {
  width: clamp(9rem, 20vw, 17rem);
  aspect-ratio: 1;
  background: var(--butter);
  right: -7%;
  top: 4%;
  border-radius: 41% 59% 36% 64% / 60% 40% 60% 40%;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}
@keyframes morph {
  50% {
    border-radius: 42% 58% 60% 40% / 45% 62% 38% 55%;
    transform: rotate(8deg) scale(1.04);
  }
  100% {
    border-radius: 58% 42% 40% 60% / 60% 38% 62% 40%;
    transform: rotate(-6deg) scale(0.98);
  }
}

.decor .spark {
  position: absolute;
  width: clamp(1.4rem, 3vw, 2.5rem);
  height: clamp(1.4rem, 3vw, 2.5rem);
  animation: twinkle 3.4s ease-in-out infinite;
}
.s1 {
  left: 8%;
  top: 24%;
  color: var(--butter);
}
.s2 {
  right: 12%;
  bottom: 18%;
  color: var(--cream);
  animation-delay: -1.2s;
}
.s3 {
  left: 46%;
  top: 8%;
  color: var(--ink);
  width: 1.1rem;
  height: 1.1rem;
  animation-delay: -2.2s;
}
.s4 {
  right: 34%;
  bottom: 8%;
  color: var(--butter);
  animation-delay: -0.6s;
}
@keyframes twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
  50% {
    transform: scale(0.55) rotate(45deg);
    opacity: 0.6;
  }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
}

.hero-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 3rem 1rem;
}

.hero-body .pill {
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

h1 {
  font-size: clamp(2rem, 6.4vw, 5.25rem);
  line-height: 1.06;
  max-width: 17ch;
  text-wrap: balance;
}
.hl {
  display: inline-block;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 0.3em;
  padding: 0 0.22em;
  margin-top: 0.12em;
  rotate: -2deg;
  box-shadow: var(--shadow);
}

.lede {
  margin: clamp(1.25rem, 3.5vh, 2rem) 0 0;
  max-width: 30rem;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 500;
}

.hero-body .btn {
  margin-top: clamp(1.75rem, 5vh, 2.75rem);
}

.badge {
  position: absolute;
  right: clamp(-1rem, 2vw, 3rem);
  bottom: clamp(-3rem, -2vh, 0rem);
  width: clamp(6.5rem, 14vw, 10.5rem);
  height: auto;
  animation: spin 22s linear infinite;
}
.badge-bg {
  fill: var(--butter);
  stroke: var(--ink);
  stroke-width: 2;
}
.badge-text {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  fill: var(--ink);
}
.badge-spark {
  fill: var(--poppy);
  stroke: var(--ink);
  stroke-width: 0.8;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Load-in motion */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: pop 0.9s var(--ease) forwards;
}
.d1 {
  animation-delay: 0.1s;
}
.d2 {
  animation-delay: 0.22s;
}
.d3 {
  animation-delay: 0.38s;
}
.d4 {
  animation-delay: 0.52s;
}
@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal (only when JS is available) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--smooth),
    transform 0.8s var(--ease);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
.js .card:nth-child(2) {
  transition-delay: 0.12s;
}
.js .card:nth-child(3) {
  transition-delay: 0.24s;
}

/* Philosophy */
.philosophy {
  padding-block: clamp(4rem, 12vh, 7.5rem);
  background: var(--lilac);
  border-block: 2px solid var(--ink);
}
.section-label {
  margin-bottom: clamp(2rem, 6vh, 3.25rem);
}
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(3, 1fr);
}
.card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 2px solid var(--ink);
  border-radius: 1.75rem;
  box-shadow: 6px 6px 0 var(--ink);
  transition:
    rotate 0.35s var(--ease),
    opacity 0.7s var(--smooth),
    transform 0.8s var(--ease);
}
.card-butter {
  background: var(--butter);
  rotate: -1.5deg;
}
.card-mint {
  background: var(--mint);
  rotate: 1deg;
}
.card-cream {
  background: var(--cream);
  rotate: -0.8deg;
}
.card:hover {
  rotate: 0deg;
}
.card .num {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
}
.card h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.card p {
  margin: 0;
  font-weight: 450;
}

/* Waitlist */
.waitlist {
  --focus: var(--butter);
  position: relative;
  padding-block: clamp(5rem, 16vh, 9rem);
  background: var(--blue);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.waitlist:focus {
  outline: none;
}
.waitlist .spark {
  position: absolute;
  color: var(--butter);
  animation: twinkle 3.4s ease-in-out infinite;
}
.w1 {
  left: 8%;
  top: 18%;
  width: 2.25rem;
  height: 2.25rem;
}
.w2 {
  right: 10%;
  top: 34%;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--mint);
  animation-delay: -1.4s;
}
.w3 {
  right: 22%;
  bottom: 12%;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--lilac);
  animation-delay: -0.7s;
}
.waitlist h2 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  line-height: 1.06;
}
.sub {
  margin: 1.25rem 0 2.5rem;
  font-size: 1.1875rem;
}

form {
  text-align: left;
}
.field label {
  display: block;
  margin: 0 0 0.6rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.row {
  display: flex;
  gap: 0.9rem;
}
input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
}
input[type="email"]::placeholder {
  color: #6b6490;
}
input[type="email"]:focus-visible {
  outline-offset: 2px;
}
input[aria-invalid="true"] {
  background: #ffe1d6;
}

.consent {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 1.5rem 0 0 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
}
.consent input {
  flex: none;
  margin: 0.15rem 0 0;
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--butter);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  min-height: 1.6em;
  margin: 1.25rem 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}
.status:focus {
  outline: none;
}
.status.error {
  color: var(--butter);
  font-weight: 600;
}
.waitlist.done .field,
.waitlist.done .consent,
.waitlist.done .sub {
  display: none;
}
.waitlist.done .status {
  margin: 1.75rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--butter);
  text-align: center;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 2rem;
  font-size: 0.9375rem;
}
.footer a {
  text-decoration-color: var(--butter);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}
.footer p {
  margin: 0;
}
.footer nav {
  display: flex;
  gap: 1.75rem;
}
.footer :focus-visible {
  outline-color: var(--butter);
}

/* Legal + 404 pages */
.legal-page .topbar {
  padding: clamp(1.25rem, 3vw, 2rem) var(--pad);
  background: var(--poppy);
  border-bottom: 2px solid var(--ink);
}
.legal {
  width: min(100% - 2 * var(--pad), 42rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(4rem, 10vh, 7rem);
}
.legal h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 1.25rem 0 1.5rem;
}
.legal p {
  margin: 0 0 1rem;
}
.legal .back {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
}

@media (max-width: 52rem) {
  .principles {
    grid-template-columns: 1fr;
  }
  .badge {
    right: -0.5rem;
    bottom: -2.5rem;
    width: 6rem;
  }
}
@media (max-width: 34rem) {
  .row {
    flex-direction: column;
  }
  .row .btn {
    width: 100%;
  }
  .footer-row {
    flex-direction: column;
  }
  .s3 {
    left: 70%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .ticker {
    display: flex;
    justify-content: center;
  }
  .ticker ul + ul {
    display: none;
  }
  .ticker-track {
    width: auto;
  }
}
