/* =========================================================
    VARIABLES
========================================================== */

:root {
  --cream: #faf9f2;
  --cream-light: #fffef9;

  --green: #4e734e;
  --green-dark: #365b3c;
  --green-light: #718b6d;

  --text: #171714;
  --text-soft: #3f403c;

  --border: rgba(78, 115, 78, 0.55);

  --heading-font: "Fraunces", Georgia, serif;
  --body-font: "Inter", Arial, sans-serif;
}

/* =========================================================
    RESET / GLOBAL
========================================================== */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* =========================================================
    MAIN PAGE

    100svh is used instead of a fixed pixel height.
    This makes the layout adapt to laptop/tablet/mobile
    viewport heights.
========================================================== */

.landing-page {
  min-height: 100svh;
  background-color: #faf9f2;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

/* =========================================================
    HEADER
========================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;

  z-index: 20;

  padding: clamp(18px, 2.7vw, 30px) clamp(20px, 4vw, 65px);
}

.brand {
  display: flex;
  align-items: center;

  width: fit-content;

  gap: clamp(9px, 0.8vw, 14px);

  color: #30322e;

  font-family: var(--heading-font);
  font-size: clamp(17px, 1.35vw, 23px);
  font-weight: 400;

  line-height: 1;
}

.brand-logo {
  width: clamp(42px, 3.4vw, 58px);
  height: auto;

  flex: 0 0 auto;
}

.brand-name-green {
  color: var(--green-dark);
}

/* =========================================================
    HERO
========================================================== */

.hero {
  position: relative;
  z-index: 1;

  min-height: 100svh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: clamp(105px, 12vh, 145px) clamp(20px, 4vw, 60px) clamp(45px, 6vh, 75px);
}

/*
* The content is one vertical group.
* Flexbox centers it according to the available viewport.
*/
.hero-content {
  position: relative;
  z-index: 5;

  width: 100%;
  max-width: 900px;

  margin: 0 auto;

  text-align: center;

  /*
    * Slight upward optical correction to match the mock-up.
    * This is responsive rather than a fixed pixel value.
    */
  transform: translateY(clamp(-28px, -2.3vh, -6px));
}

/* =========================================================
    EYEBROW
========================================================== */

.eyebrow {
  margin: 0 0 clamp(28px, 4.2vh, 50px);

  color: var(--green-dark);

  font-family: var(--body-font);
  font-size: clamp(9px, 0.68vw, 12px);
  font-weight: 500;

  letter-spacing: 0.3em;
  line-height: 1.5;

  text-transform: uppercase;
}

/* =========================================================
    HERO LOGO
========================================================== */

.hero-logo {
  display: block;

  width: clamp(74px, 7vw, 105px);
  height: auto;

  margin: 0 auto clamp(22px, 2.8vh, 38px);
}

/* =========================================================
    HERO HEADING
========================================================== */

.bootbox h3 {
  margin: 0;

  color: var(--green-dark);

  font-family: var(--heading-font);
  font-size: clamp(30px, 4.45vw, 45px);
  font-weight: 400;

  letter-spacing: -0.035em;
  line-height: 0.99;
}

.hero-title {
  margin: 0;

  color: #11110f;

  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(43px, 4.45vw, 70px);
  font-weight: 400;
  font-style: normal;

  letter-spacing: -0.035em;
  line-height: 0.99;
}

.hero-title em {
  display: block;

  margin-top: clamp(4px, 0.5vh, 8px);

  color: #365b3c;

  font-family: "Fraunces", Georgia, serif;
  font-size: 1em;
  font-weight: 400;
  font-style: italic;

  letter-spacing: -0.035em;
  line-height: 1;
}

/* =========================================================
    DESCRIPTION
========================================================== */

.hero-description {
  width: 100%;
  max-width: 610px;

  margin: clamp(22px, 3.1vh, 35px) auto 0;

  color: var(--text-soft);

  font-family: var(--body-font);
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 400;

  line-height: 1.55;
}

/* =========================================================
    SIGNUP BOX
========================================================== */

.signup-box {
  width: 100%;
  max-width: 750px;

  margin: clamp(34px, 5.5vh, 58px) auto 0;

  padding: clamp(18px, 1.8vw, 27px) clamp(18px, 1.55vw, 27px) clamp(18px, 1.6vw, 25px);

  border-radius: 9px;

  background: var(--green);

  box-shadow: 0 8px 30px rgba(54, 91, 60, 0.1);

  text-align: left;
}

.signup-row {
  display: flex;

  width: 100%;

  gap: 10px;
}

.signup-row .form-control {
  flex: 1;

  min-width: 0;
  height: 47px !important;
  min-height: 47px !important;

  padding: 0 15px;

  border: 0;
  border-radius: 5px;

  background: #fffdf8;

  color: #333;

  font-family: var(--body-font);
  font-size: 14px;

  box-shadow: none;
}

.signup-row .form-control::placeholder {
  color: #96938c;
  opacity: 1;
}

.signup-row .form-control:focus {
  border: 0;
  outline: none;

  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.signup-button {
  min-width: 208px;
  height: 47px;

  padding: 0 20px;

  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 5px;

  background: transparent;

  color: #fff;

  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;

  white-space: nowrap;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.signup-button:hover {
  background: #fff;
  color: var(--green-dark);

  transform: translateY(-1px);
}

.signup-button:active {
  transform: translateY(0);
}

.signup-note {
  margin-top: 12px;

  color: rgba(255, 255, 255, 0.9);

  font-family: var(--body-font);
  font-size: 11.5px;
  font-weight: 400;

  line-height: 1.5;
}

/* =========================================================
    SMALL ANIMATION
========================================================== */

.hero-content > * {
  opacity: 0;
  transform: translateY(12px);

  animation: fadeUp 0.7s ease forwards;
}

.hero-content .eyebrow {
  animation-delay: 0.05s;
}

.hero-content .hero-logo {
  animation-delay: 0.12s;
}

.hero-content .hero-title {
  animation-delay: 0.2s;
}

.hero-content .hero-description {
  animation-delay: 0.28s;
}

.hero-content .signup-box {
  animation-delay: 0.36s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
    TABLET
========================================================== */

@media (max-width: 991px) {
  .hero {
    padding-top: 115px;
  }

  .hero-content {
    max-width: 720px;
  }

  .signup-box {
    max-width: 680px;
  }
}

/* =========================================================
    MOBILE
========================================================== */

@media (max-width: 767px) {
  .site-header {
    padding: 17px 20px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .brand-logo {
    width: 43px;
  }

  /*
    * On mobile, the page is allowed to become taller than
    * the viewport if necessary. This avoids cramped content.
    */
  .hero {
    min-height: 100svh;

    align-items: center;

    padding: 112px 20px 42px;
  }

  .hero-content {
    max-width: 500px;

    transform: none;
  }

  .eyebrow {
    margin-bottom: 27px;

    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .hero-logo {
    width: 76px;

    margin-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(40px, 11vw, 52px);

    letter-spacing: -0.025em;
    line-height: 1.02;
  }

  .hero-description {
    max-width: 450px;

    margin-top: 23px;

    font-size: 14px;
    line-height: 1.55;
  }

  .signup-box {
    margin-top: 31px;

    padding: 18px;
  }

  .signup-row {
    flex-direction: column;

    gap: 10px;
  }

  .signup-row .form-control,
  .signup-button {
    width: 100%;
    min-width: 0;
  }

  .signup-note {
    text-align: center;
  }
}

/* =========================================================
    VERY SMALL MOBILE DEVICES
========================================================== */

@media (max-width: 380px) {
  .hero {
    padding-top: 105px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 35px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .hero-logo {
    width: 68px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-description {
    font-size: 13.5px;
  }

  .signup-box {
    margin-top: 27px;
    padding: 15px;
  }

  .signup-note {
    font-size: 10.5px;
  }
}

/* =========================================================
    SHORT LAPTOP / LANDSCAPE VIEWPORT

    Useful for laptops where the screen height is small.
    We reduce vertical gaps instead of changing the whole
    design.
========================================================== */

@media (min-width: 768px) and (max-height: 720px) {
  .hero {
    padding-top: 95px;
    padding-bottom: 30px;
  }

  .hero-content {
    transform: translateY(-2px);
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .hero-logo {
    width: 72px;
    margin-bottom: 18px;
  }

  .hero-description {
    margin-top: 18px;
  }

  .signup-box {
    margin-top: 25px;
  }
}

/* =========================================================
    VERY SHORT DESKTOP VIEW
========================================================== */

@media (min-width: 992px) and (max-height: 620px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 25px;
  }

  .eyebrow {
    margin-bottom: 15px;
  }

  .hero-logo {
    width: 62px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: 50px;
  }

  .hero-description {
    margin-top: 14px;
    font-size: 15px;
  }

  .signup-box {
    margin-top: 20px;
  }
}

/* =========================================================
    ACCESSIBILITY
========================================================== */

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

  .hero-content > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .signup-button {
    transition: none;
  }
}
