@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --hero-peach: #f8a488;
  --blush-peach: #fbcdb4;
  --frog-green: #a8d5a2;
  --bandana-purple: #9b8ec7;
  --cream: #fff9f0;
  --cocoa: #6b3e2e;
  --terracotta: #e07a5f;

  --text-muted: #7f665c;
  --button: #e9825f;
  --button-hover: #e07a5f;
  --field-border: #f8d9c8;
  --field-bg: #fffdfa;
  --blob: #fdeadc;
  --error: #b9472b;

  --font-heading: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

figure {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ---------- Backdrop ---------- */

.backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(115deg, #fff7ee 0%, #fffaf3 45%, #fff6ed 100%);
}

.blob {
  position: absolute;
  fill: var(--blob);
  opacity: 0.75;
}

.blob-top {
  top: 0;
  right: 0;
  width: 24vw;
  height: 13vh;
}

.blob-bottom {
  bottom: 0;
  left: 0;
  width: 20vw;
  height: 17vh;
}

.glow {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 130vw;
  height: 130vw;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(251 205 180 / 0.28), rgb(251 205 180 / 0));
}

/* ---------- Hero (phones and tablets first) ---------- */

.hero {
  position: relative;
  flex: 1;
  width: 100%;
  padding: 1rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  --logo-h: clamp(28px, 8vw, 40px);
  display: flex;
  align-items: center;
  gap: 0.22em;
  height: var(--logo-h);
  font-size: var(--logo-h);
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 100%;
}

.logo-frog {
  transform-origin: 50% 90%;
  animation: bob 5s ease-in-out 2s infinite;
}

.hero h1 {
  margin: 0.85rem 0 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--cocoa);
  text-wrap: balance;
}

.sub {
  max-width: 34ch;
  margin: 0.7rem 0 0;
  font-size: clamp(0.9375rem, 4vw, 1.0625rem);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.signup {
  width: 100%;
  max-width: 26rem;
  margin-top: 1.1rem;
}

/* ---------- Waitlist form ---------- */

.field {
  display: block;
}

/* 16px minimum stops iOS Safari zooming in when the field is focused */
.field input {
  display: block;
  width: 100%;
  height: 3.25rem;
  padding: 0 1.4rem;
  border: 2px solid var(--field-border);
  border-radius: 999px;
  outline: 0;
  background: var(--field-bg);
  box-shadow: 0 0.4rem 1.4rem rgb(248 164 136 / 0.12);
  color: var(--cocoa);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: #9a857b;
  opacity: 1;
}

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--cocoa);
  box-shadow: 0 0 0 100px var(--field-bg) inset;
}

.field input:focus {
  border-color: var(--hero-peach);
  box-shadow: 0 0 0 4px rgb(248 164 136 / 0.22);
}

.waitlist.has-error .field input {
  border-color: var(--terracotta);
}

.field button {
  position: relative;
  display: block;
  width: 100%;
  height: 3.25rem;
  margin-top: 0.6rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1875rem;
  cursor: pointer;
  box-shadow: 0 0.35rem 0.9rem rgb(224 122 95 / 0.22);
  transition: background-color 0.2s ease, translate 0.15s ease, box-shadow 0.2s ease, scale 0.15s ease;
}

.field button:hover {
  background: var(--button-hover);
  translate: 0 -2px;
  box-shadow: 0 0.6rem 1.2rem rgb(224 122 95 / 0.32);
}

.field button:active {
  translate: 0 1px;
  scale: 0.98;
  box-shadow: 0 0.2rem 0.5rem rgb(224 122 95 / 0.25);
}

.field button:focus-visible {
  outline: 3px solid var(--cocoa);
  outline-offset: 3px;
}

.button-dots {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
}

.button-dots i {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: #fff;
  animation: dot 0.9s ease-in-out infinite;
}

.button-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.button-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.waitlist.is-loading button {
  cursor: progress;
}

.waitlist.is-loading .button-label {
  visibility: hidden;
}

.waitlist.is-loading .button-dots {
  display: flex;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile.is-visible {
  margin-top: 0.9rem;
}

.form-message {
  margin: 0;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-message:not(:empty) {
  margin-top: 0.8rem;
}

.fineprint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-wrap: balance;
}

.waitlist.is-leaving {
  animation: form-out 0.25s ease forwards;
}

/* ---------- Success state ---------- */

.success {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem 0.9rem 1.1rem;
  border: 2px solid #cfe8ca;
  border-radius: 2rem;
  background: linear-gradient(100deg, #f4fbf1, #fffdfa 70%);
  box-shadow: 0 0.4rem 1.4rem rgb(168 213 162 / 0.22);
  outline: 0;
  text-align: left;
  animation: success-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success-frog {
  position: relative;
  flex: none;
  width: 4.75rem;
}

.success-frog img {
  width: 100%;
  transform-origin: 50% 90%;
  animation: frog-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.success-copy h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--cocoa);
  animation: rise 0.5s ease 0.3s both;
}

.success-copy p {
  margin: 0.3em 0 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-muted);
  animation: rise 0.5s ease 0.42s both;
}

.confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--size);
  height: calc(var(--size) * var(--ratio));
  border-radius: var(--radius);
  background: var(--color);
  opacity: 0;
  animation: confetti 1.5s cubic-bezier(0.16, 0.8, 0.3, 1) var(--delay) forwards;
}

/* ---------- Phones: swipeable carousel on small screens ---------- */

.phones {
  width: calc(100% + 3rem);
  margin: 1.75rem -1.5rem 0;
}

.phones-track {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.5rem;
  scrollbar-width: none;
  padding: 0.75rem 0 1.5rem;
}

.phones-track::-webkit-scrollbar {
  display: none;
}

.slides {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0 1.5rem;
  animation: nudge 0.9s ease-in-out 1.5s 1;
}

.phones.touched .slides {
  animation: none;
}

.phone-slot {
  flex: 0 0 auto;
  width: min(75vw, 300px);
  scroll-snap-align: start;
  animation: phone-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone-slot:nth-child(2) {
  animation-delay: 0.15s;
}

.phone-slot:nth-child(3) {
  animation-delay: 0.3s;
}

/* The iPhone-style frame: dark bezel, rounded screen, dynamic island */
.phone {
  padding: 3%;
  border-radius: 14% / 6.5%;
  background: #1b1a18;
  box-shadow:
    inset 0 0 0 1.5px #4a4642,
    0 24px 40px -12px rgb(107 62 46 / 0.35),
    0 3px 8px rgb(0 0 0 / 0.12);
  animation: float 6s ease-in-out 0.9s infinite;
}

.phone-slot:nth-child(2) .phone {
  animation-duration: 6.8s;
  animation-delay: 1.05s;
}

.phone-slot:nth-child(3) .phone {
  animation-duration: 7.6s;
  animation-delay: 1.2s;
}

.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1184 / 2560;
  border-radius: 11.5% / 5.3%;
  background: #fff7ee;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen::after {
  content: "";
  position: absolute;
  top: 1.5%;
  left: 50%;
  width: 33%;
  height: 4.4%;
  translate: -50% 0;
  border-radius: 999px;
  background: #0a0a0a;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: -0.5rem;
}

.dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--blush-peach);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.dots button[aria-selected="true"] {
  width: 1.25rem;
  background: var(--terracotta);
}

/* ---------- "Sound familiar?" (small screens only) ---------- */

.familiar {
  position: relative;
  width: 100%;
  max-width: 29rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.familiar h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.625rem;
  line-height: 1.1;
  color: var(--cocoa);
}

.familiar ul {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.familiar li {
  padding: 0.85rem 1.1rem;
  border-radius: 1.25rem;
  background: rgb(255 253 250 / 0.8);
  border: 2px solid #fbe6d8;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--cocoa);
  text-wrap: balance;
}

.familiar .signup {
  margin: 1.25rem auto 0;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  padding: 2rem 1.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer a {
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--cocoa);
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
  .blob-top {
    width: 15.5vw;
    height: 26vh;
  }

  .blob-bottom {
    width: 21.5vw;
    height: 30vh;
  }

  .glow {
    top: 50%;
    left: 73%;
    width: 50vw;
    height: 50vw;
  }

  .hero {
    max-width: 1760px;
    margin: 0 auto;
    padding: 2rem 6vw 1rem 7vw;
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 41fr);
    grid-template-rows: 1fr auto auto auto auto 1fr;
    column-gap: 4vw;
    align-items: start;
    justify-items: start;
    text-align: left;
  }

  .logo,
  .hero h1,
  .sub,
  .signup {
    grid-column: 1;
  }

  .logo {
    --logo-h: clamp(40px, 3.6vw, 56px);
    grid-row: 2;
  }

  .hero h1 {
    grid-row: 3;
    margin-top: clamp(1.5rem, 2.6vw, 2.5rem);
    font-size: clamp(2.75rem, 4.5vw, 4.25rem);
    line-height: 1.04;
  }

  .sub {
    grid-row: 4;
    max-width: 36rem;
    margin-top: clamp(1rem, 1.6vw, 1.5rem);
    font-size: clamp(1.125rem, 1.4vw, 1.375rem);
  }

  .signup {
    grid-row: 5;
    max-width: 36rem;
    margin-top: clamp(1.5rem, 2.2vw, 2.25rem);
  }

  .field {
    display: flex;
    align-items: center;
    height: clamp(3.75rem, 4.6vw, 4.5rem);
    padding: 0.3rem;
    border: 2px solid var(--field-border);
    border-radius: 999px;
    background: var(--field-bg);
    box-shadow: 0 0.4rem 1.4rem rgb(248 164 136 / 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .field:focus-within {
    border-color: var(--hero-peach);
    box-shadow: 0 0 0 4px rgb(248 164 136 / 0.22), 0 0.4rem 1.4rem rgb(248 164 136 / 0.12);
  }

  .waitlist.has-error .field {
    border-color: var(--terracotta);
  }

  .field input,
  .field input:focus {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 1rem 0 1.5rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
  }

  .field button {
    flex: none;
    width: auto;
    height: 100%;
    margin-top: 0;
    padding: 0 2.1rem;
    font-size: clamp(1.0625rem, 1.3vw, 1.3rem);
  }

  .field button:hover {
    translate: 0 -1px;
  }

  .form-message {
    font-size: 1rem;
  }

  .fineprint {
    margin-top: 1rem;
    font-size: 0.9375rem;
  }

  .success {
    gap: 1.4rem;
    padding: 1.1rem 2.2rem 1.1rem 1.5rem;
    border-radius: 2.75rem;
  }

  .success-frog {
    width: 6.5rem;
  }

  .success-copy h2 {
    font-size: 2rem;
  }

  .success-copy p {
    font-size: 1.125rem;
  }

  /* Three phones fanned out as a story */
  .phones {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: stretch;
    width: 100%;
    margin: 0;
  }

  .phones-track {
    overflow: visible;
    scroll-snap-type: none;
    padding: 2.5rem 0;
  }

  .slides {
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    padding: 0;
    animation: none;
  }

  .phone-slot {
    width: clamp(150px, 13vw, 200px);
    scroll-snap-align: none;
  }

  .phone-slot:nth-child(1) {
    margin: 4vw -2.4vw 0 0;
    rotate: -6deg;
  }

  .phone-slot:nth-child(2) {
    position: relative;
    z-index: 2;
    width: clamp(180px, 15.5vw, 240px);
  }

  .phone-slot:nth-child(3) {
    margin: 4vw 0 0 -2.4vw;
    rotate: 6deg;
  }

  .dots,
  .familiar {
    display: none;
  }

  .site-footer {
    justify-content: flex-start;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 6vw 1.5rem 7vw;
  }
}

/* ---------- Animation ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    translate: 0 20px;
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  25% {
    translate: 0 -6px;
  }
  75% {
    translate: 0 6px;
  }
}

@keyframes bob {
  0%,
  14%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  3% {
    translate: 0 -5px;
    rotate: -6deg;
  }
  7% {
    translate: 0 0;
    rotate: 5deg;
  }
  10% {
    translate: 0 -2px;
    rotate: -2deg;
  }
}

@keyframes nudge {
  0%,
  100% {
    translate: 0 0;
  }
  45% {
    translate: -30px 0;
  }
}

@keyframes form-out {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@keyframes success-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

@keyframes frog-pop {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-25deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.18) rotate(8deg);
  }
  75% {
    transform: scale(0.95) rotate(-4deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes confetti {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(0.4);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--spin)) scale(1);
  }
}

@keyframes dot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-0.2em);
  }
}

/* ---------- Text pages (privacy, 404) ---------- */

.page {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-logo {
  display: inline-block;
}

.page-logo img {
  width: 170px;
}

.page h1 {
  margin: 2.5rem 0 0.4rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1.05;
}

.page h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
}

.page p,
.page li {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #5c463d;
}

.page p {
  margin: 0 0 1rem;
}

.page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.page li {
  margin-bottom: 0.4rem;
}

.page strong {
  color: var(--cocoa);
}

.page a {
  color: #b6533a;
  text-underline-offset: 3px;
}

.page .effective {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.page .callout {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--field-border);
  border-radius: 1.5rem;
  background: var(--field-bg);
}

.page .callout p {
  margin: 0;
}

.page-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-center .frog {
  width: 150px;
}

.page-center h1 {
  margin-top: 1.5rem;
}

.button-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: var(--button);
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
}

.button-link:hover {
  background: var(--button-hover);
}

/* Pages other than the home page use a plain footer */
body:not(.home) .site-footer {
  justify-content: flex-start;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .slides,
  .phone,
  .logo-frog {
    animation: none !important;
  }

  .confetti {
    display: none;
  }
}
