/* ==========================================================
   pompas — waitlist page
   ========================================================== */

@font-face {
  font-family: "Gupter";
  src: url("assets/fonts/Gupter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Gupter";
  src: url("assets/fonts/Gupter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* main */
  --brown-dark: #531818;
  --beige:      #FFF5EB;
  /* accents */
  --orange:      #FB7400;
  --yellow:      #FFF19E;
  --pink:        #FFBBD5;
  --red:         #DB0A2A;
  --green-light: #E5F868;
  --green:       #61AD45;
  --blue:        #D2E9FF;
  --brown:       #943400;

  --font: "Gupter", Georgia, "Times New Roman", serif;
  --tight: -0.045em;
  --checker: clamp(10.5px, 1.425vw, 28.5px);   /* size of one checker square */
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--brown-dark);
  color: var(--beige);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- checkerboard strip ---------- */
.checker {
  height: calc(var(--checker) * 2);
  background:
    repeating-conic-gradient(var(--beige) 0 25%, transparent 0 50%)
    0 0 / calc(var(--checker) * 2) calc(var(--checker) * 2);
}

/* ---------- hero ----------
   sizes use min(vw, vh) so wide-but-short laptop screens still show the
   badges and the top of the bottles above the fold */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, min(10vw, 7vh), 200px) 16px 0;
}

.logo { margin: 0; line-height: 0; }
.logo img {
  width: clamp(190px, min(21.5vw, 24vh), 420px);
  height: auto;
}

.tagline {
  margin: clamp(4px, 0.6vw, 12px) 0 0;
  font-size: clamp(34px, min(4.1vw, 4.6vh), 80px);
  line-height: 1.1;
  letter-spacing: var(--tight);
}

/* ---------- waitlist form ---------- */
.waitlist {
  display: flex;
  width: min(100%, 62vw, 75vh, 1215px);
  min-width: min(100%, 560px);
  margin-top: clamp(48px, min(11vw, 7vh), 210px);
  border-radius: 999px;
  overflow: hidden;
  background: var(--beige);
}

.waitlist__input,
.waitlist__button {
  font: inherit;
  font-size: clamp(22px, min(3.3vw, 3.6vh), 64px);
  letter-spacing: var(--tight);
  border: 0;
  margin: 0;
  height: clamp(58px, min(5.4vw, 6vh), 106px);
}

.waitlist__input {
  flex: 1 1 60%;
  min-width: 0;
  padding: 0 0 0 clamp(22px, min(4.2vw, 4.6vh), 84px);
  background: transparent;
  color: var(--brown-dark);
}
.waitlist__input::placeholder { color: var(--brown-dark); opacity: 1; }
.waitlist__input:focus { outline: none; }
.waitlist:focus-within { box-shadow: 0 0 0 4px var(--green-light); }

.waitlist__button {
  flex: 0 0 40%;
  padding: 0 clamp(16px, 2vw, 40px);
  background: var(--green);
  color: var(--beige);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.waitlist__button:hover  { background: #57a03c; }
.waitlist__button:active { transform: translateY(1px); }
.waitlist__button:focus-visible { outline: 3px solid var(--brown-dark); outline-offset: -6px; }
.waitlist__button:disabled { opacity: .7; cursor: progress; }

.waitlist__status {
  min-height: 1.3em;
  margin: 14px 0 0;
  font-size: clamp(17px, min(1.6vw, 1.8vh), 30px);
  letter-spacing: -0.02em;
  color: var(--green-light);
}

.legal {
  margin: clamp(6px, 1vw, 18px) 0 0;
  font-size: clamp(15px, min(1.95vw, 2.2vh), 38px);
  letter-spacing: -0.03em;
}
.legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.22em;
}
.legal a:hover { color: var(--yellow); }

/* ---------- bottle lineup ---------- */
.lineup {
  margin-top: auto;
  padding-top: clamp(64px, min(12vw, 8vh), 230px);
  width: 100%;
  max-width: 2400px;
  align-self: center;
}

/* badges sit on the same 4 columns as the bottles in the image */
.badges {
  list-style: none;
  margin: 0 0 clamp(28px, min(5.2vw, 5vh), 100px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 21.54%);
  justify-content: space-between;
}

.badge {
  justify-self: center;
  width: 87%;
  aspect-ratio: 370 / 162;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-bottom: 0.08em;
  font-size: clamp(14px, 3.7vw, 76px);
  line-height: 1;
  letter-spacing: var(--tight);
  white-space: nowrap;
}
.badge--orange { background: var(--orange);      color: var(--yellow); }
.badge--pink   { background: var(--pink);        color: var(--red); }
.badge--green  { background: var(--green-light); color: var(--green); }
.badge--blue   { background: var(--blue);        color: var(--brown); }

.bottles {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .waitlist {
    flex-direction: column;
    border-radius: 32px;
    min-width: 0;
    width: 100%;
    max-width: 440px;
  }
  .waitlist__input  { padding: 0 24px; text-align: center; flex-basis: auto; }
  .waitlist__button { flex-basis: auto; }

  .legal { max-width: 22em; }

  /* badges become a 2×2 grid of chips above the bottles */
  .badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 32px;
  }
  .badge {
    width: 100%;
    max-width: 170px;
    font-size: 24px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ==========================================================
   legal pages (terms.html, privacy.html)
   ========================================================== */
.page-legal { background: var(--beige); color: var(--brown-dark); }

.legal-header {
  background: var(--brown-dark);
  text-align: center;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.legal-header .home {
  display: inline-block;
  margin-top: clamp(36px, 5vw, 72px);
  line-height: 0;
  border-radius: 8px;
}
.legal-header .home:focus-visible { outline: 3px solid var(--green-light); outline-offset: 6px; }
.legal-header img { width: clamp(150px, 15vw, 240px); height: auto; }
.legal-header h1 {
  margin: clamp(16px, 2vw, 28px) 0 0;
  color: var(--beige);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 1.05;
  letter-spacing: var(--tight);
}
.legal-header .effective {
  margin: 10px 0 0;
  color: var(--yellow);
  font-size: clamp(16px, 1.3vw, 20px);
}

.legal-body {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) 16px clamp(64px, 8vw, 120px);
  font-size: 19px;
  line-height: 1.6;
}
.legal-body h2 {
  margin: 2.2em 0 0.4em;
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.legal-body h3 { margin: 1.6em 0 0.3em; font-weight: 500; font-size: 21px; }
.legal-body p, .legal-body ul { margin: 0 0 1em; }
.legal-body ul { padding-left: 1.3em; }
.legal-body li { margin-bottom: 0.4em; }
.legal-body a { color: var(--brown); text-underline-offset: 0.18em; }
.legal-body a:hover { color: var(--red); }
.legal-body strong { font-weight: 500; }

.tldr {
  margin: 0 0 2em;
  padding: 24px 28px;
  border-radius: 28px;
  background: var(--blue);
}
.tldr h2 { margin-top: 0; }
.tldr ul { margin-bottom: 0; }

.legal-footer {
  margin-top: auto;
  background: var(--brown-dark);
  color: var(--beige);
  text-align: center;
  padding: 32px 16px;
  font-size: 17px;
}
.legal-footer a { color: var(--beige); text-underline-offset: 0.2em; }
.legal-footer a:hover { color: var(--yellow); }
.legal-footer nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
