@font-face {
  font-family: "Oven Bake";
  src: url("./assets/fonts/OvenBake.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fafaf7;
  --cream: #f4f1ea;
  --ink: #1a1f1b;
  --sage: #5c6b5e;
  --leaf: #2e7d32;
  --leaf-soft: #e8f2e5;
  --tomato: #c9523e;
  --amber: #e8a53a;
  --white: #ffffff;
  --line: rgba(26, 31, 27, 0.11);
  --shadow: 0 24px 70px rgba(26, 31, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 46%),
    linear-gradient(90deg, rgba(46, 125, 50, 0.08), transparent 38%),
    linear-gradient(180deg, var(--paper), var(--cream));
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(26, 31, 27, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 31, 27, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.72) 36%, transparent 86%);
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.72) 36%, transparent 86%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  background-image:
    radial-gradient(rgba(26, 31, 27, 0.08) 0.7px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.95) 0.8px, transparent 0.8px);
  background-position: 0 0, 13px 19px;
  background-size: 28px 28px, 34px 34px;
  pointer-events: none;
}

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

a {
  color: inherit;
}

h1,
p {
  margin: 0;
}

.wait-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 5vw, 56px);
  background: rgba(250, 250, 247, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.header-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  gap: 10px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 14px rgba(26, 31, 27, 0.12);
}

.brand span {
  font-family: "Oven Bake", "Inter", sans-serif;
  font-size: 24px;
}

.header-link {
  min-height: 40px;
  padding: 0 16px;
  color: var(--leaf);
  background: var(--leaf-soft);
  border: 1px solid rgba(46, 125, 50, 0.13);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
  padding: 58px 0 34px;
}

.hero-mark {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.hero-mark::before {
  content: "";
  position: absolute;
  width: min(78%, 360px);
  height: min(78%, 470px);
  background: radial-gradient(circle, rgba(46, 125, 50, 0.16), transparent 68%);
  border-radius: 999px;
  filter: blur(10px);
  transform: translateY(18px);
}

.hero-mark::after {
  content: "";
  position: absolute;
  width: min(74%, 344px);
  height: 16px;
  bottom: 28px;
  background: radial-gradient(ellipse, rgba(26, 31, 27, 0.20), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.phone-showcase {
  position: relative;
  z-index: 1;
  width: min(78vw, 304px);
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  background: var(--ink);
  border: 8px solid #121713;
  border-radius: 42px;
  box-shadow:
    0 30px 70px rgba(26, 31, 27, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-1.6deg);
}

.phone-showcase::before {
  content: "";
  position: absolute;
  z-index: 10;
  top: 10px;
  left: 50%;
  width: 96px;
  height: 28px;
  transform: translateX(-50%);
  background: #111712;
  border-radius: 999px;
}

.phone-showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.012);
  animation: screenCycle 35s infinite;
}

.phone-showcase img:nth-child(1) { animation-delay: 0s; }
.phone-showcase img:nth-child(2) { animation-delay: 5s; }
.phone-showcase img:nth-child(3) { animation-delay: 10s; }
.phone-showcase img:nth-child(4) { animation-delay: 15s; }
.phone-showcase img:nth-child(5) { animation-delay: 20s; }
.phone-showcase img:nth-child(6) { animation-delay: 25s; }
.phone-showcase img:nth-child(7) { animation-delay: 30s; }

@keyframes screenCycle {
  0% {
    opacity: 0;
    transform: scale(1.012);
  }
  5%,
  13% {
    opacity: 1;
    transform: scale(1);
  }
  18%,
  100% {
    opacity: 0;
    transform: scale(0.994);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: var(--tomato);
  background: #faece7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.cycle-heart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  width: fit-content;
  margin-top: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(26, 31, 27, 0.06);
}

.cycle-heart span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  color: var(--sage);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  animation: heartPulse 7.5s infinite;
}

.cycle-heart span:nth-child(1) { animation-delay: 0s; }
.cycle-heart span:nth-child(2) { animation-delay: 1.5s; }
.cycle-heart span:nth-child(3) { animation-delay: 3s; }
.cycle-heart span:nth-child(4) { animation-delay: 4.5s; }
.cycle-heart span:nth-child(5) { animation-delay: 6s; }

@keyframes heartPulse {
  0%,
  18%,
  100% {
    color: var(--sage);
    background: transparent;
  }
  6%,
  12% {
    color: var(--white);
    background: var(--leaf);
  }
}

h1 {
  max-width: 790px;
  margin-top: 22px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.96;
  font-weight: 800;
}

.lead {
  max-width: 670px;
  margin-top: 24px;
  color: var(--sage);
  font-size: 20px;
  line-height: 1.55;
}

.waitlist-card {
  width: min(100%, 620px);
  margin-top: 34px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(26, 31, 27, 0.08);
}

.waitlist-card label {
  display: block;
  padding: 8px 8px 0;
  font-size: 14px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
}

input,
button {
  min-height: 58px;
  border-radius: 16px;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 16px;
}

input:focus {
  outline: 2px solid rgba(46, 125, 50, 0.22);
  border-color: var(--leaf);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

button {
  padding: 0 24px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.72;
}

.form-note {
  padding: 10px 8px 4px;
  color: var(--sage);
  font-size: 13px;
}

.form-note.success {
  color: var(--leaf);
  font-weight: 800;
}

.form-note.error {
  color: var(--tomato);
  font-weight: 800;
}

.ios-note {
  max-width: 570px;
  margin-top: 18px;
  color: var(--sage);
  font-size: 14px;
  line-height: 1.55;
}

.ingredient-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 34px);
  margin-bottom: 56px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(26, 31, 27, 0.06);
}

.ingredient-row img {
  width: clamp(54px, 9vw, 82px);
  height: clamp(54px, 9vw, 82px);
  object-fit: contain;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-mark {
    min-height: 500px;
    order: -1;
  }

  .phone-showcase {
    width: min(66vw, 250px);
    border-width: 8px;
    border-radius: 34px;
  }

}

@media (max-width: 560px) {
  .wait-header {
    padding-inline: 16px;
  }

  .brand span {
    font-size: 22px;
  }

  .header-link {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 13px;
  }

  main {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-mark {
    min-height: 430px;
  }

  .hero-mark::before {
    width: min(78%, 270px);
    height: min(72%, 320px);
  }

  .phone-showcase {
    width: min(70vw, 218px);
    border-radius: 32px;
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 17px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .ingredient-row {
    border-radius: 28px;
    flex-wrap: wrap;
  }
}
