@font-face {
  font-family: "Tilt Warp";
  src: url("/fonts/tiltwarp-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo2-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --ink: #2A2A3E;
  --sky-top: #D6F3FA;
  --sky-bottom: #9FDCF0;
  --water: #3FA8D5;
  --water-deep: #2C88B8;
  --lily: #58B24C;
  --gold: #FFC53D;
  --gold-deep: #F5A800;
  --white: #FFFFFF;
  --error: #D6455D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; overflow-x: clip; }

body {
  display: flex;
  flex-direction: column;
  font-family: "Baloo 2", "Avenir Next", system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 70%, var(--water) 100%);
  min-height: 100dvh;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content {
  padding: clamp(2.5rem, 8vh, 5rem) 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.logo {
  font-family: "Tilt Warp", "Baloo 2", sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 5rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.55);
}

.tagline {
  margin-top: 0.75rem;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 800;
}

.sub {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 3vw, 1.15rem);
  max-width: 34rem;
  opacity: 0.85;
}

.signup { margin-top: 1.75rem; width: 100%; max-width: 30rem; }

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 520px) {
  .waitlist { flex-direction: row; justify-content: center; }
  .waitlist input[type="email"] { flex: 1 1 14rem; }
}

.waitlist input[type="email"] {
  min-width: 0;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.85rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  box-shadow: 0 4px 0 rgba(42, 42, 62, 0.18);
}

.waitlist input[type="email"]:focus {
  border-color: var(--water-deep);
  box-shadow: 0 4px 0 rgba(44, 136, 184, 0.35);
}

.waitlist input[type="email"]::placeholder { color: #9A9AAE; }

.waitlist button {
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.85rem 1.6rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(42, 42, 62, 0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}

.waitlist button:hover:not(:disabled) { filter: brightness(1.06); }

.waitlist button:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(42, 42, 62, 0.35);
}

.waitlist button:disabled { opacity: 0.7; cursor: default; }

.nofill {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.status { margin-top: 0.9rem; min-height: 1.4em; font-weight: 800; }
.status.error { color: var(--error); }
.status.success { font-size: 1.15rem; }

.microcopy { margin-top: 0.35rem; font-size: 0.9rem; opacity: 0.7; }

/* ---- Scene ---- */

.scene {
  position: relative;
  flex: 1;
  min-height: clamp(21rem, 46vh, 27rem);
  margin-top: 1rem;
}

.water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(90px, 16vh, 160px);
  display: block;
}

.frog-stage {
  position: absolute;
  bottom: calc(clamp(90px, 16vh, 160px) - 3.2rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bob 3.2s ease-in-out infinite;
}

.frog {
  width: clamp(120px, 22vw, 180px);
  height: auto;
  position: relative;
  z-index: 1;
}

.pad {
  width: clamp(160px, 30vw, 240px);
  margin-top: -1.4rem;
}

.bubble {
  font-weight: 800;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.5rem;
  position: relative;
  transform: rotate(-4deg) translateX(-2.6rem);
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -0.65rem;
  right: 1.1rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--white);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: skewX(20deg) rotate(45deg);
}

.cloud {
  position: absolute;
  background: var(--white);
  border-radius: 999px;
  opacity: 0.9;
}

.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-a {
  width: 120px; height: 34px;
  top: 8%; left: 12%;
  animation: drift 46s linear infinite;
}
.cloud-a::before { width: 46px; height: 46px; top: -22px; left: 22px; }
.cloud-a::after { width: 32px; height: 32px; top: -14px; left: 62px; }

.cloud-b {
  width: 90px; height: 26px;
  top: 24%; right: 10%;
  animation: drift 62s linear infinite reverse;
}
.cloud-b::before { width: 34px; height: 34px; top: -16px; left: 16px; }
.cloud-b::after { width: 24px; height: 24px; top: -10px; left: 46px; }

footer {
  background: var(--water-deep);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 0.8rem 1rem 1rem;
  font-size: 0.85rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

@keyframes drift {
  from { translate: 0 0; }
  50% { translate: 40px 0; }
  to { translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .frog-stage, .cloud { animation: none; }
}
