:root {
  --forest: #253613;
  --cream: #f4eee1;
  --ink: #4a321f;
  --rust: #bd3d15;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, .06), transparent 38%),
    var(--forest);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  background: url("../images/coconut-banana-leaf-outline.svg") center bottom / max(1600px, 100vw) auto no-repeat;
  opacity: .46;
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.landing-poster {
  position: relative;
  z-index: 1;
  width: min(100%, 1024px);
  margin-inline: auto;
  overflow: hidden;
  background: var(--cream);
}

.landing-poster__art {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.launch-form {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.field,
.launch-button,
.contact-button {
  position: absolute;
  pointer-events: auto;
}

.field {
  top: 86.92%;
  height: 2.69%;
  border: 1px solid rgba(94, 76, 50, .31);
  border-radius: 999px;
  background: rgba(247, 242, 232, .96);
  box-shadow: inset 0 1px rgba(255, 255, 255, .75);
}

.field--name {
  left: 11.25%;
  width: 24.42%;
}

.field--phone {
  left: 36.72%;
  width: 27.44%;
}

.field--email {
  left: 64.35%;
  width: 24.42%;
}

.field svg {
  position: absolute;
  top: 50%;
  left: 5.8%;
  width: 8.2%;
  min-width: 12px;
  transform: translateY(-50%);
  fill: none;
  stroke: #4d4a3c;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field input {
  width: 100%;
  height: 100%;
  padding: 0 7% 0 20%;
  border: 0;
  outline: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(7px, 1.12vw, 12px);
}

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

.field:focus-within {
  border-color: var(--rust);
  box-shadow: 0 0 0 2px rgba(189, 61, 21, .13);
}

.field.is-invalid {
  border-color: #a92f1d;
  box-shadow: 0 0 0 2px rgba(169, 47, 29, .14);
}

.launch-button {
  top: 90.35%;
  left: 30.37%;
  width: 37.5%;
  height: 2.9%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.launch-button span,
.contact-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.launch-button:hover,
.launch-button:focus-visible {
  background: rgba(255, 255, 255, .1);
  outline: 2px solid rgba(255, 244, 216, .9);
  outline-offset: -4px;
}

.launch-button:active {
  transform: translateY(1px);
}

.contact-button {
  top: 94.15%;
  left: 38.57%;
  width: 21.2%;
  height: 2.65%;
  border-radius: 999px;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: rgba(189, 61, 21, .06);
  outline: 2px solid rgba(82, 57, 35, .65);
  outline-offset: -3px;
}

.form-message {
  position: absolute;
  z-index: 2;
  top: 83.55%;
  left: 50%;
  width: min(78%, 600px);
  margin: 0;
  padding: .55em 1em;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(248, 241, 227, .96);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(8px, 1.1vw, 12px);
  text-align: center;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.form-message.is-visible {
  opacity: 1;
}

.form-message.is-error {
  color: #8f2818;
}

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

.mobile-signup {
  display: none;
  position: relative;
  z-index: 1;
}

.floating-ctas {
  position: fixed;
  z-index: 50;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(16px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-cta {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(12, 25, 5, .34);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.floating-cta--whatsapp {
  background: #25d366;
}

.floating-cta--facebook {
  background: #1877f2;
}

.floating-cta--instagram {
  background: linear-gradient(135deg, #6f39bc 5%, #d62976 48%, #f77737 78%, #fcaf45 100%);
}

.floating-cta--youtube {
  background: #f00;
}

.floating-cta--instagram .instagram-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.floating-cta--instagram .instagram-dot {
  fill: currentColor;
}

.floating-cta--whatsapp .whatsapp-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.floating-cta--whatsapp .whatsapp-phone {
  fill: currentColor;
}

.floating-cta--call {
  background: var(--rust);
}

.floating-cta svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.floating-cta--call svg {
  width: 27px;
  height: 27px;
}

.floating-cta span {
  position: absolute;
  top: 50%;
  right: calc(100% + 11px);
  width: max-content;
  padding: 7px 11px;
  transform: translate(7px, -50%);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  background: rgba(27, 45, 15, .96);
  color: #fff;
  font: 700 12px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .03em;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}

.floating-cta:hover,
.floating-cta:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(12, 25, 5, .42);
  filter: saturate(1.08);
  outline: 3px solid rgba(255, 248, 225, .72);
  outline-offset: 3px;
}

.floating-cta:hover span,
.floating-cta:focus-visible span {
  transform: translate(0, -50%);
  opacity: 1;
  visibility: visible;
}

.floating-cta:active {
  transform: scale(.96);
}

.floating-cta--pending {
  cursor: default;
}

.floating-cta--pending::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d7a72e;
}

.thank-you-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
}

.thank-you-modal[hidden] {
  display: none;
}

.thank-you-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(15, 28, 8, .78);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.thank-you-card {
  position: relative;
  width: min(100%, 470px);
  padding: 38px 38px 34px;
  border: 2px solid rgba(114, 77, 41, .35);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(194, 133, 58, .14), transparent 40%),
    #f6efe1;
  box-shadow: 0 24px 70px rgba(7, 17, 3, .38);
  text-align: center;
  animation: thank-you-enter .32s ease-out both;
}

.thank-you-card__mark {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff8e8;
}

.thank-you-card__mark svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thank-you-card__eyebrow {
  margin: 0 0 7px;
  color: var(--rust);
  font: 700 12px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.thank-you-card h2 {
  margin: 0;
  color: var(--rust);
  font-size: clamp(2rem, 6vw, 3rem);
}

.thank-you-card p:not(.thank-you-card__eyebrow) {
  max-width: 340px;
  margin: 12px auto 24px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

.thank-you-card__close {
  min-width: 160px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--rust);
  color: #fff8e9;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.thank-you-card__close:hover,
.thank-you-card__close:focus-visible {
  background: #9e3212;
  outline: 3px solid rgba(189, 61, 21, .24);
  outline-offset: 3px;
}

@keyframes thank-you-enter {
  from {
    transform: translateY(16px) scale(.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .landing-poster {
    width: 100%;
  }

  .launch-form {
    display: none;
  }

  .mobile-signup {
    display: block;
    padding: 28px 22px 100px;
    background: var(--cream);
    text-align: center;
  }

  .mobile-signup h2 {
    margin: 0;
    color: var(--rust);
    font-size: 1.45rem;
    text-transform: uppercase;
  }

  .mobile-signup > p {
    margin: 10px auto 20px;
    max-width: 32rem;
    line-height: 1.5;
  }

  .mobile-launch-form {
    display: grid;
    width: min(100%, 420px);
    margin: 0 auto;
    gap: 11px;
  }

  .mobile-launch-form input {
    width: 100%;
    height: 46px;
    padding: 0 17px;
    border: 1px solid rgba(94, 76, 50, .32);
    border-radius: 999px;
    outline: 0;
    background: #fffaf0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
  }

  .mobile-launch-form input:focus {
    border-color: var(--rust);
    box-shadow: 0 0 0 3px rgba(189, 61, 21, .12);
  }

  .mobile-launch-form label.is-invalid input {
    border-color: #a92f1d;
    box-shadow: 0 0 0 3px rgba(169, 47, 29, .12);
  }

  .mobile-launch-form button {
    min-width: 220px;
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--rust);
    color: #fff8e9;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-launch-form button:disabled {
    opacity: .7;
    cursor: wait;
  }

  .mobile-form-message {
    display: none;
    margin: 2px 0 0;
    color: #8f2818;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .88rem;
    line-height: 1.4;
  }

  .mobile-form-message.is-visible {
    display: block;
  }

  .thank-you-card {
    padding: 30px 23px 27px;
  }

  .floating-ctas {
    right: auto;
    bottom: 10px;
    left: 50%;
    flex-direction: row;
    gap: 7px;
    transform: translateX(-50%);
  }

  .floating-cta {
    width: 46px;
    height: 46px;
  }

  .floating-cta svg {
    width: 23px;
    height: 23px;
  }

  .floating-cta span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
