@font-face {
  font-family: "Caslon Doric";
  src: url("assets/fonts/CaslonDoric-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caslon Doric";
  src: url("assets/fonts/CaslonDoric-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caslon Doric";
  src: url("assets/fonts/CaslonDoric-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caslon Doric";
  src: url("assets/fonts/CaslonDoric-Extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-dark: #5d5525;
  --green-light: #a9a765;
  --brown: #382e1e;
  --blue: #c9e0eb;
  --font: "Caslon Doric", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--green-light);
}

.page {
  position: relative;
  min-height: 100vh;
  background-color: var(--green-light);
  background-image: url("assets/BG.PC.GreenDesign.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Layout units are vw-based, measured from a 2000px-wide design */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.navbar__logo {
  position: absolute;
  top: 5.75vw;
  left: 5.5vw;
  width: 4.4vw;
  height: auto;
  display: block;
}

.navbar__join {
  position: absolute;
  top: 5.635vw;
  right: 5.95vw;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.1vw;
  line-height: 1.07;
  letter-spacing: 0.01em;
  text-align: right;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

/* Waitlist form */
.waitlist {
  --cream: #e8e2d1;
  position: absolute;
  top: 18.9vw;
  left: 49.55vw;
  width: 41.55vw;
  font-family: var(--font);
  color: #fff;
}

.waitlist__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 3.4vw;
}

.waitlist__label {
  font-weight: 700;
  font-size: 1.4vw;
  line-height: 1.4vw;
}

.waitlist__input {
  height: 2.95vw;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0;
  outline: none;
  color: #fff;
  font: inherit;
  font-size: 1.4vw;
}

.waitlist__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: -0.3vw;
}

.waitlist__check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45vw;
  height: 1.3vw;
  cursor: pointer;
}

.waitlist__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.waitlist__box {
  position: relative;
  flex: none;
  width: 1.3vw;
  height: 1.3vw;
  background: var(--cream);
}

.waitlist__check input:checked + .waitlist__box::after {
  content: "";
  position: absolute;
  left: 0.42vw;
  top: 0.15vw;
  width: 0.3vw;
  height: 0.65vw;
  border: solid var(--green-dark);
  border-width: 0 0.12vw 0.12vw 0;
  transform: rotate(45deg);
}

.waitlist__check input:focus-visible + .waitlist__box {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.waitlist__check-text {
  font-weight: 300;
  font-size: 1.25vw;
  line-height: 1.3vw;
}

.waitlist__read {
  margin-top: 0.75vw;
  padding-left: 1.75vw;
  font-weight: 300;
  font-size: 0.95vw;
  line-height: 1vw;
}

.waitlist__read a {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.waitlist__submit {
  width: 19.1vw;
  height: 3vw;
  border: 0;
  border-radius: 1.5vw;
  background: var(--blue);
  color: var(--green-dark);
  font-family: inherit;
  font-weight: 800;
  font-size: 1.3vw;
  text-transform: uppercase;
  cursor: pointer;
}

/* Hero (left column) */
.hero {
  position: absolute;
  top: 18.3vw;
  left: 22.8vw;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font);
  color: #fff;
  white-space: nowrap;
}

.hero__soon {
  font-weight: 700;
  font-size: 2.2vw;
  line-height: 2.2vw;
}

.hero__logo {
  display: block;
  width: 28.4vw;
  height: auto;
  margin: 2.9vw auto 0;
}

.hero__access {
  margin-top: 3.5vw;
  font-weight: 800;
  font-size: 1.4vw;
  line-height: 1.4vw;
  text-transform: uppercase;
}

.hero__tagline {
  margin-top: 0.75vw;
  font-weight: 300;
  font-size: 1.35vw;
  line-height: 1.4vw;
}

/* Instagram (bottom left) */
.instagram {
  position: absolute;
  left: 5.6vw;
  bottom: 5.45vw;
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.95vw;
  line-height: 1vw;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

/* Location (bottom right) */
.location {
  position: absolute;
  right: 5.95vw;
  bottom: 5.45vw;
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.95vw;
  line-height: 1vw;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

/* Language switcher */
.lang {
  position: absolute;
  top: 6.6vw;
  left: 49.8vw;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.25vw;
  font-family: var(--font);
  font-size: 1.6vw;
  line-height: 1.6vw;
  color: #fff;
}

.lang__btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 300;
  cursor: pointer;
}

.lang__btn[aria-pressed="true"] {
  font-weight: 800;
}

/* Spanish headline is sentence case, not uppercase */
html[lang="es"] .hero__access {
  text-transform: none;
}

/* Stage: transparent on desktop; on mobile a fixed-ratio box centred vertically */
.stage {
  display: contents;
}

/* Terms & Conditions modal */
.terms {
  margin: auto;
  padding: 0;
  max-width: none;
  max-height: none;
  border: 0;
  overflow: visible;
  background: transparent;
  color: #fff;
  font-family: var(--font);
}

.terms::backdrop {
  background: rgba(56, 46, 30, 0.6);
  backdrop-filter: blur(6px);
}

.terms[open] {
  animation: terms-in 0.25s ease-out;
}

.terms[open]::backdrop {
  animation: terms-fade 0.25s ease-out;
}

@keyframes terms-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes terms-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.terms__card {
  position: relative;
  width: min(32rem, calc(100vw - 2.5rem));
  max-height: calc(100svh - 3rem);
  overflow-y: auto;
  padding: 2.5rem 2.25rem 2.25rem;
  background: var(--green-light);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}

.terms__logo {
  display: block;
  width: 3rem;
  height: auto;
  margin-bottom: 1.25rem;
}

.terms__title {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
}

.terms__body h3 {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.terms__body p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.terms__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.terms__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.terms__ok {
  display: block;
  width: 100%;
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--green-dark);
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  cursor: pointer;
}

.terms__close:focus-visible,
.terms__ok:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Validation */
.waitlist__field.is-invalid .waitlist__input {
  border-bottom: 2px solid var(--brown);
}

.waitlist__check.is-invalid .waitlist__box {
  outline: 2px solid var(--brown);
  outline-offset: 1px;
}

.waitlist__submit:disabled {
  opacity: 0.7;
  cursor: default;
}

/* Success screen – vw units measured from a 860px-wide design */
.success {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  background-color: var(--brown);
  background-image: url("assets/BG.PC.BlackDesign.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fefcf7;
  font-family: var(--font);
  animation: terms-fade 0.4s ease-out;
}

.success[hidden] {
  display: none;
}

.success__stage {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 56.4vw;
  transform: translateY(-50%);
}

.success__stage > * {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.success__title {
  top: 13.95vw;
  font-size: 2.8vw;
  line-height: 2.8vw;
  font-weight: 800;
  text-transform: uppercase;
}

.success__text {
  font-size: 1.45vw;
  line-height: 1.6vw;
  font-weight: 300;
}

.success__text--1 { top: 20vw; }
.success__text--2 { top: 24.78vw; }

.success__ig {
  top: 29.5vw;
  display: block;
  width: 2.56vw;
  height: 2.56vw;
}

.success__ig img {
  display: block;
  width: 100%;
  height: 100%;
}

.success__see {
  top: 35.1vw;
  line-height: 1.63vw;
}

.success__see strong {
  font-weight: 700;
}

.success__logo {
  top: 47.86vw;
  width: 3.85vw;
  height: auto;
}

/* Mobile – fluid layout sized for real phone screens */
@media (max-width: 768px) {
  .page {
    min-height: 100dvh;
    background-image: url("assets/BG.phone.GreenDesign.svg");
  }

  .stage {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100dvh;
    padding: 9vw 8vw 20vw;
  }

  /* Navbar */
  .navbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .navbar__logo,
  .lang,
  .navbar__join {
    position: static;
    transform: none;
  }

  .navbar__logo {
    width: 12vw;
  }

  .lang {
    gap: 1vw;
    font-size: 3.6vw;
    line-height: 3.6vw;
  }

  .navbar__join {
    justify-self: end;
    font-size: 2.9vw;
  }

  /* Hero + form share the free space */
  .hero {
    position: static;
    transform: none;
    margin-top: auto;
    white-space: normal;
  }

  .hero__soon {
    font-size: 5.8vw;
    line-height: 5.8vw;
  }

  .hero__logo {
    width: 65vw;
    margin: 5vw auto 0;
  }

  .hero__access {
    margin-top: 5vw;
    font-size: 3.7vw;
    line-height: 3.7vw;
  }

  .hero__tagline {
    margin-top: 1.8vw;
    font-size: 3.5vw;
    line-height: 4.2vw;
  }

  .waitlist {
    position: static;
    width: 100%;
    margin: 10vw 0 auto;
  }

  .waitlist__field {
    margin-bottom: 5vw;
  }

  .waitlist__label {
    font-size: 3.6vw;
    line-height: 3.6vw;
  }

  .waitlist__input {
    height: 7.5vw;
    font-size: 3.6vw;
  }

  .waitlist__row {
    margin-top: 0;
    gap: 3vw;
  }

  .waitlist__terms {
    min-width: 0;
  }

  .waitlist__check {
    gap: 1.4vw;
    height: auto;
    min-height: 3.4vw;
    align-items: flex-start;
  }

  .waitlist__box {
    width: 3.4vw;
    height: 3.4vw;
  }

  .waitlist__check input:checked + .waitlist__box::after {
    left: 1.1vw;
    top: 0.3vw;
    width: 0.75vw;
    height: 1.6vw;
    border-width: 0 0.3vw 0.3vw 0;
  }

  .waitlist__check-text {
    font-size: 2.9vw;
    line-height: 3.4vw;
  }

  /* Spanish text is longer: smaller size + no wrapping keeps it on one line at every width */
  .waitlist__check-text {
    white-space: nowrap;
  }

  html[lang="es"] .waitlist__check-text {
    font-size: 2.6vw;
  }

  .waitlist__read {
    margin-top: 1.5vw;
    padding-left: 4.8vw;
    font-size: 2.4vw;
    line-height: 2.6vw;
  }

  .waitlist__submit {
    flex: none;
    width: 33vw;
    height: 8vw;
    border-radius: 4.2vw;
    font-size: 2.5vw;
    white-space: nowrap;
  }

  /* Footer */
  .instagram,
  .location {
    bottom: 8vw;
    font-size: 2.6vw;
    line-height: 2.8vw;
  }

  .instagram {
    left: 8vw;
  }

  .location {
    right: 8vw;
  }

  /* Success screen */
  .success {
    background-image: url("assets/BG.phone.BlackDesign.svg");
  }

  .success__stage {
    top: 0;
    height: 100%;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 5vw 12vw;
  }

  .success__stage > * {
    position: static;
    transform: none;
    white-space: nowrap;
  }

  .success__title {
    font-size: 7.6vw;
    line-height: 8vw;
  }

  .success__text {
    margin-top: 7vw;
    font-size: 3.5vw; /* longest line (ES) must fit on one line */
    line-height: 4.6vw;
  }

  .success__ig {
    margin-top: 8vw;
    width: 8vw;
    height: 8vw;
  }

  .success__see {
    margin-top: 8vw;
    line-height: 4.6vw;
  }

  .success__logo {
    position: absolute;
    top: auto;
    left: 50%;
    bottom: 12vw;
    transform: translateX(-50%);
    width: 12vw;
  }
}

/* Honeypot + submit error */
.waitlist__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.waitlist__error {
  margin-top: 1.2vw;
  font-size: 1.1vw;
  font-weight: 700;
  color: var(--brown);
}

.waitlist__error[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .waitlist__error {
    margin-top: 4vw;
    font-size: 3vw;
  }
}

/* Intro: the fish enters big, then shrinks into the navbar logo (driven by script.js).
   Its width is animated (not scaled), so the vector is redrawn sharp at every size. */
html.fish-intro .navbar__logo {
  visibility: hidden;
}

.fish-overlay {
  position: fixed;
  left: 0;
  top: 0;
  height: auto;
  z-index: 40;
  pointer-events: none;
}

/* Links inside the terms text */
.terms__body a,
.terms__link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Lists inside the legal popups */
.terms__body ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.terms__body li {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.terms__body strong {
  font-weight: 700;
}

/* Desktop: very wide, short windows (e.g. 1600x670) used to push the bottom texts up over the content.
   A minimum page height keeps the footer below it; the page scrolls a little instead. */
@media (min-width: 769px) {
  .page {
    min-height: max(100vh, 48vw);
  }
}
