:root {
  /* Neutrals (warm, green-tinted) */
  --bg: #f6f6f0;
  --surface: #fff;
  --text: #13241a;
  --muted: #667262;
  --line: #e4e7dc;
  --ink: #13241a;

  /* Brand: deep forest + HomeLoop green + lime accent */
  --brand: #12301f;
  --footer-dark: #12301f;
  --green: #1e8a50;
  --green-soft: #e1f3e7;
  --stay-green: #d6f19a;
  --label-green: #4d6b22;

  /* Supporting tints, all in the same green family */
  --teal: #1f7a6d;
  --teal-soft: #dff1ec;
  --olive: #6a8a14;
  --olive-soft: #f0f8d2;
  --moss: #2f5d3f;
  --moss-soft: #e4eee4;
  --mint-soft: #e2f1e7;

  /* Unused in the current layout, recolored to match */
  --yellow: #d6f19a;
  --navy: #12301f;
  --dark-green: #1b5a38;
  --deep-green: #1e8a50;
  --soft-green: #b7e4c6;

  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* NAVIGATION */

header {
  background: var(--bg);
}

nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.8px;
  color: var(--ink);
}

.logo-icon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: block;
}

.logo-loop {
  color: var(--green);
}

.footer-brand .logo {
  color: #fff;
  font-size: 27px;
}

/* The green is too dim on the dark footer, so the lime accent is used there. */
.footer-brand .logo-loop {
  color: var(--stay-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: #55614f;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-button {
  border: 0;
  background: var(--footer-dark);
  color: #fff;
  padding: 12px 19px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

/* HERO */

.hl-hero {
  padding: 42px 0 65px;
  overflow: hidden;
}

.hl-hero-inner {
  min-height: 420px;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  position: relative;
}

.hl-hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: 40px;
}

.hl-hero-content h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -2.7px;
  color: var(--ink);
  max-width: 540px;
  margin-bottom: 22px;
  font-weight: 800;
}

.hl-hero-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 440px;
}

.hl-hero-art {
  position: relative;
  height: 430px;
  margin-left: -35px;
  min-width: 0;
}

/*
  The image wrapper is the positioning parent for both pairs
  of circles. Their positions therefore follow the image.
*/

.hl-hero-image-wrap {
  position: absolute;
  right: -30px;
  top: 5px;
  width: 600px;
  height: 385px;
}

.hl-hero-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 150px 35px 150px 35px;
  box-shadow: 0 25px 50px rgba(18, 48, 31, .16);
}

.hl-hero-circle {
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--footer-dark);
  left: -8px;
  top: -5px;
  z-index: 2;
  pointer-events: none;
}

.hl-hero-circle-small {
  position: absolute;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--stay-green);
  left: 43px;
  top: 38px;
  z-index: 3;
  pointer-events: none;
}

.hl-hero-circle-bottom {
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--footer-dark);
  right: -8px;
  bottom: -5px;
  z-index: 2;
  pointer-events: none;
}

.hl-hero-circle-bottom-small {
  position: absolute;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--stay-green);
  right: 43px;
  bottom: 38px;
  z-index: 3;
  pointer-events: none;
}

/* TRUST STRIP */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: #fff;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5b6857;
  font-size: 13px;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 18px;
  height: 18px;
}

.trust-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.trust-icon.blue {
  background: var(--teal-soft);
  color: var(--teal);
}

.trust-icon.orange {
  background: var(--olive-soft);
  color: var(--olive);
}

.trust-icon.purple {
  background: var(--moss-soft);
  color: var(--moss);
}

/* STANDARD SECTIONS */

section.standard-section {
  padding: 100px 0;
}

section.standard-section#how {
  padding: 30px 0;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 42px;
}

.section-label {
  color: var(--label-green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

h2 {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.section-description {
  margin-top: 15px;
  color: var(--muted);
  max-width: 530px;
}

/* BENEFITS */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px;
  min-height: 225px;
}

.icon-box {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  margin-bottom: 35px;
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.benefit:nth-child(1) .icon-box {
  background: var(--green-soft);
  color: var(--green);
}

.benefit:nth-child(2) .icon-box {
  background: var(--teal-soft);
  color: var(--teal);
}

.benefit:nth-child(3) .icon-box {
  background: var(--olive-soft);
  color: var(--olive);
}

.benefit:nth-child(4) .icon-box {
  background: var(--moss-soft);
  color: var(--moss);
}

.benefit h3 {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 7px;
}

.benefit p {
  color: var(--muted);
  font-size: 13px;
}

/* GETTING STARTED CARDS */

.how-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.how-card {
  min-height: 280px;
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(18, 48, 31, .08);
  transition: transform .2s ease;
}

.how-card:hover {
  transform: translateY(-4px);
}

.how-card-blue {
  background: var(--mint-soft);
}

.how-card-yellow {
  background: var(--olive-soft);
}

.how-card-green {
  background: var(--teal-soft);
}

.how-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}

.how-step {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--label-green);
}

.how-symbol {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}

/* The icons are now external SVG files loaded with <img>, so they are sized here. */
.how-symbol img {
  width: 23px;
  height: 23px;
  display: block;
}

.how-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  letter-spacing: -.5px;
  margin-bottom: 9px;
  color: var(--ink);
}

.how-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #52604d;
  max-width: 300px;
}

.how-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 25px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.how-card-bottom span {
  font-size: 19px;
}

/* STAYS */

.stay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.stay-image {
  height: 275px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.stay-1 {
  background-image: url("../assets/images/hero-800.webp");
}

.stay-2 {
  background-image: url("../assets/images/stay-2.webp");
}

.stay-3 {
  background-image: url("../assets/images/stay-3.webp");
}

.stay-info {
  padding: 18px;
}

.stay-location {
  color: #6f7b6a;
  font-size: 12px;
  margin-bottom: 5px;
}

.stay-title {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  margin-bottom: 9px;
}

.stay-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.stay-price strong {
  font-size: 15px;
}

.save {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
}

.save svg {
  width: 17px;
}

/* SPLIT SECTION */

.split {
  background: var(--brand);
  color: #fff;
  border-radius: 24px;
  padding: 22px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
  min-height: 166px;
}

.split h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: -1px;
  max-width: 480px;
}

.split p {
  font-size: 13px;
  color: rgba(255, 255, 255, .68);
  margin-top: 18px;
  max-width: 470px;
}

.split-list {
  display: grid;
  gap: 17px;
}

.split-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.split-item-number {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}

.split-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.split-item span {
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
}

/* OUR MISSION */

.hl-mission {
  margin: 8px auto 42px;
  background: var(--mint-soft);
  border-radius: 24px;
  height: 360px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 54% 46%;
  align-items: stretch;
  width: min(1180px, calc(100% - 48px));
}

.hl-mission-content {
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hl-mission-eyebrow {
  font-size: 9px;
  color: var(--label-green);
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.hl-mission h2 {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 14px;
  max-width: 450px;
}

.hl-mission p {
  font-size: 14px;
  color: #5b6857;
  max-width: 460px;
  line-height: 1.7;
}

.hl-mission-image {
  height: 360px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.hl-mission-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 150px 0 0 150px;
  display: block;
}

/* EARLY ACCESS */

.access {
  background: #edf3e2;
  padding: 85px 0;
  scroll-margin-top: 24px;
}

.access-card {
  background: #fff;
  border-radius: 32px;
  padding: 55px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.access-copy h2 {
  max-width: 450px;
  color: var(--text);
}

.access-copy p {
  color: var(--muted);
  margin-top: 17px;
  max-width: 440px;
}

.access-points {
  margin-top: 25px;
  display: grid;
  gap: 11px;
  font-size: 13px;
  color: #52604d;
}

.access-point {
  display: flex;
  align-items: center;
  gap: 9px;
}

.check {
  width: 20px;
  height: 20px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.check svg {
  width: 11px;
}

.signup-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 25px;
}

.signup-title {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  margin-bottom: 5px;
}

.signup-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 22px;
}

.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: #eef1e8;
  border-radius: 12px;
  margin-bottom: 17px;
}

.role-btn {
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #667262;
}

.role-btn.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 5px rgba(18, 48, 31, .08);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  margin-bottom: 11px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafaf6;
  border-radius: 11px;
  padding: 12px;
  outline: none;
  font-size: 13px;
}

.field input:focus {
  border-color: var(--green);
  background: #fff;
}

.signup-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--footer-dark);
  color: #fff;
  padding: 13px;
  font-weight: 700;
  margin-top: 5px;
}

.form-note {
  text-align: center;
  color: #8a9486;
  font-size: 10px;
  margin-top: 11px;
}

.success {
  display: none;
  text-align: center;
  padding: 35px 10px;
}

.success-icon {
  width: 50px;
  height: 50px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
}

.success-icon svg {
  width: 23px;
}

.success h3 {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 7px;
}

.success p {
  color: var(--muted);
  font-size: 13px;
}

/* NEWSLETTER */

.hl-newsletter {
  padding: 35px 0 100px;
}

.hl-newsletter-inner {
  max-width: 1400px;
  margin: auto;
  background: var(--stay-green);
  border-radius: 30px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hl-newsletter h2 {
  font-family: "Manrope", sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--ink);
}

.hl-newsletter p {
  color: #46573a;
  margin-top: 12px;
  max-width: 450px;
}

/* Wraps the form and its status message so the message sits under the form, not beside it. */
.hl-newsletter-form-wrap {
  max-width: 100%;
}

.hl-newsletter-form {
  display: flex;
  background: #fff;
  padding: 6px;
  border-radius: 15px;
  width: 420px;
  max-width: 100%;
}

.hl-newsletter-form input {
  border: 1px solid transparent;
  outline: none;
  flex: 1;
  padding: 12px 14px;
  min-width: 0;
  border-radius: 10px;
}

.hl-newsletter-form input:focus {
  border-color: var(--green);
}

.hl-newsletter-form button {
  border: 0;
  background: var(--footer-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.newsletter-message {
  font-size: 13px;
  color: #33472b;
  margin-top: 12px;
  min-height: 20px;
}

/* FOOTER */

footer {
  background: var(--footer-dark);
  color: #fff;
  padding: 70px 0 35px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 50px;
  padding-bottom: 60px;
}

.footer-brand p {
  color: #a9b8a8;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 15px;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.footer-column strong {
  color: var(--stay-green);
  display: block;
  font-size: 13px;
  margin-bottom: 18px;
}

.footer-column a {
  display: block;
  color: #a9b8a8;
  font-size: 13px;
  margin-bottom: 12px;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #2a4636;
  padding-top: 25px;
  color: #86998a;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

/* TABLETS AND MEDIUM SCREENS */

@media (max-width: 950px) {
  .access-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 35px;
  }

  .hl-hero-inner {
    grid-template-columns: 1fr;
  }

  .hl-hero-content {
    padding-bottom: 20px;
  }

  .hl-hero-art {
    height: 390px;
    margin-left: 0;
  }

  .hl-hero-image-wrap {
    right: 0;
    top: 5px;
    width: 100%;
    height: 360px;
  }

  .hl-hero-main-image {
    border-radius: 100px 25px 100px 25px;
  }

  .hl-hero-circle {
    left: -5px;
    top: -5px;
    width: 52px;
    height: 52px;
  }

  .hl-hero-circle-small {
    left: 36px;
    top: 30px;
    width: 24px;
    height: 24px;
  }

  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stay-grid,
  .how-cards {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px;
    min-height: 0;
  }

  .hl-newsletter-inner {
    padding: 45px;
    display: block;
  }

  .hl-newsletter-form-wrap {
    margin-top: 28px;
  }

  .trust-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .access {
    padding: 65px 0;
  }

  .access-card {
    padding: 25px;
    border-radius: 25px;
  }

  .container {
    width: min(calc(100% - 30px), 1160px);
  }

  nav {
    height: 70px;
    gap: 10px;
  }

  .logo {
    font-size: 21px;
    gap: 7px;
  }

  .logo-icon {
    width: 57px;
    height: 57px;
  }

  .nav-links {
    display: none;
  }

  .nav-button {
    padding: 10px 14px;
    font-size: 12px;
  }

  .hl-hero {
    padding-top: 25px;
  }

  .hl-hero-content h1 {
    font-size: 42px;
    letter-spacing: -1.8px;
  }

  .hl-hero-content p {
    font-size: 14px;
  }

  .hl-hero-art {
    height: 360px;
  }

  .hl-hero-image-wrap {
    top: 35px;
    right: 0;
    width: 100%;
    height: 270px;
  }

  .hl-hero-main-image {
    border-radius: 80px 20px 80px 20px;
  }

  .hl-hero-circle {
    left: 8px;
    top: -5px;
    width: 52px;
    height: 52px;
  }

  .hl-hero-circle-small {
    left: 43px;
    top: 33px;
    width: 29px;
    height: 29px;
  }

  .hl-hero-circle-bottom {
    right: 8px;
    bottom: -5px;
    width: 52px;
    height: 52px;
  }

  .hl-hero-circle-bottom-small {
    right: 43px;
    bottom: 33px;
    width: 24px;
    height: 24px;
  }

  .trust-inner {
    gap: 14px;
  }

  .trust-item {
    font-size: 12px;
  }

  .trust-icon {
    width: 32px;
    height: 32px;
  }

  section.standard-section {
    padding: 75px 0;
  }

  .benefit-grid,
  .stay-grid,
  .how-cards {
    grid-template-columns: 1fr;
  }

  .benefit {
    min-height: auto;
  }

  .icon-box {
    margin-bottom: 25px;
  }

  .split {
    padding: 25px;
    border-radius: 25px;
  }

  .hl-mission {
    grid-template-columns: 1fr;
    height: auto;
    width: min(calc(100% - 30px), 1180px);
    margin-top: 0;
  }

  .hl-mission-image {
    height: 220px;
    min-height: 220px;
    order: -1;
  }

  .hl-mission-image img {
    min-height: 220px;
    border-radius: 0;
  }

  .hl-mission-content {
    padding: 25px;
  }

  .hl-mission h2 {
    font-size: 28px;
  }

  .hl-newsletter {
    padding: 20px 0 70px;
  }

  .hl-newsletter-inner {
    padding: 38px 25px;
    border-radius: 25px;
  }

  .hl-newsletter h2 {
    font-size: 35px;
  }

  .hl-newsletter-form {
    width: 100%;
    gap: 4px;
  }

  .hl-newsletter-form input {
    width: 60%;
    padding: 11px 8px;
    font-size: 13px;
  }

  .hl-newsletter-form button {
    padding: 11px 12px;
    font-size: 13px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}

@media (max-width: 430px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hl-hero-content h1 {
    font-size: 37px;
  }

  .hl-hero-art {
    height: 345px;
  }

  .hl-hero-image-wrap {
    height: 270px;
  }

  .hl-newsletter-form {
    flex-direction: column;
    background: transparent;
    padding: 0;
  }

  .hl-newsletter-form input,
  .hl-newsletter-form button {
    width: 100%;
    background: #fff;
  }

  .hl-newsletter-form button {
    background: var(--footer-dark);
  }
}

/* ==========================================================
   ANIMATIONS
   Added on top of the base styles above. Everything here is
   motion only: no layout, size or color decisions.
   ========================================================== */

/* ---------- Keyframes ---------- */

@keyframes navIn {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

@keyframes heroImageIn {
  from { opacity: 0; transform: translateX(60px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes floatYAlt {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

@keyframes revealRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: none; }
}

@keyframes revealScale {
  from { opacity: 0; transform: scale(.94) translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes successIn {
  from { opacity: 0; transform: scale(.9) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

@keyframes messagePop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Page load: navigation and hero ---------- */

nav {
  animation: navIn .7s cubic-bezier(.2, .7, .2, 1) both;
}

.hl-hero-content h1 {
  animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) .15s both;
}

.hl-hero-content p {
  animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) .35s both;
}

.hl-hero-main-image {
  animation: heroImageIn 1.1s cubic-bezier(.2, .7, .2, 1) .2s both;
}

/* The circles pop in after the image lands, then float gently forever. */

.hl-hero-circle {
  animation:
    popIn .7s cubic-bezier(.34, 1.56, .64, 1) .8s both,
    floatY 6s ease-in-out 1.6s infinite;
}

.hl-hero-circle-small {
  animation:
    popIn .7s cubic-bezier(.34, 1.56, .64, 1) .95s both,
    floatYAlt 5s ease-in-out 1.7s infinite;
}

.hl-hero-circle-bottom {
  animation:
    popIn .7s cubic-bezier(.34, 1.56, .64, 1) 1.1s both,
    floatYAlt 6.5s ease-in-out 1.8s infinite;
}

.hl-hero-circle-bottom-small {
  animation:
    popIn .7s cubic-bezier(.34, 1.56, .64, 1) 1.25s both,
    floatY 5.5s ease-in-out 1.9s infinite;
}

/* Gentle scroll parallax. The value is set from main.js. */

.hl-hero-image-wrap {
  translate: 0 var(--py, 0px);
}

/* ---------- Scroll progress bar (created in main.js) ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--stay-green));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  z-index: 100;
  pointer-events: none;
}

/* ---------- Scroll reveals (classes are added in main.js) ---------- */

.reveal {
  opacity: 0;
}

.reveal.in-view {
  opacity: 1;
  animation: revealUp .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) backwards;
}

.reveal-right.in-view {
  animation-name: revealRight;
}

.reveal-scale.in-view {
  animation-name: revealScale;
}

/* ---------- Hover and interaction ---------- */

.logo-icon {
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.logo:hover .logo-icon {
  transform: rotate(-12deg) scale(1.08);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-button,
.signup-submit,
.hl-newsletter-form button {
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
}

.nav-button:hover,
.signup-submit:hover,
.hl-newsletter-form button:hover {
  transform: translateY(-2px);
  background: var(--green);
  box-shadow: 0 10px 22px rgba(18, 48, 31, .22);
}

.nav-button:active,
.signup-submit:active,
.hl-newsletter-form button:active {
  transform: translateY(0);
  box-shadow: none;
}

.trust-icon {
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.trust-item:hover .trust-icon {
  transform: scale(1.14) rotate(-6deg);
}

.benefit {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.benefit:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(18, 48, 31, .1);
  border-color: transparent;
}

.icon-box {
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.benefit:hover .icon-box {
  transform: rotate(-8deg) scale(1.1);
}

.how-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.how-card:hover {
  box-shadow: 0 18px 36px rgba(18, 48, 31, .1);
}

.how-symbol {
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}

.how-card:hover .how-symbol {
  transform: rotate(12deg) scale(1.1);
  background: #fff;
}

.how-card-bottom span {
  transition: transform .25s ease;
}

.how-card:hover .how-card-bottom span {
  transform: translate(4px, -4px);
}

.stay-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.stay-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(18, 48, 31, .1);
}

.role-btn {
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.field input {
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.field input:focus {
  box-shadow: 0 0 0 4px rgba(30, 138, 80, .12);
}

.hl-newsletter-form input {
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hl-newsletter-form input:focus {
  box-shadow: 0 0 0 3px rgba(30, 138, 80, .15);
}

.footer-column a {
  transition: color .2s ease, transform .2s ease;
}

.footer-column a:hover {
  transform: translateX(4px);
}

/* ---------- Form feedback ---------- */

.success {
  animation: successIn .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

.success-icon {
  animation: popIn .6s cubic-bezier(.34, 1.56, .64, 1) .15s both;
}

.success-icon svg path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck .5s ease .5s forwards;
}

.newsletter-message.pop {
  animation: messagePop .5s ease both;
}

/* ---------- Respect "reduce motion" settings ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
  }

  .hl-hero-image-wrap {
    translate: none;
  }
}