/* GoGreen landing — brand tokens */
:root {
  --green-950: #0b2416;
  --green-900: #123524;
  --green-800: #1a4d32;
  --green-600: #2f7a4d;
  --green-500: #3d9a5f;
  --green-300: #8fd4a8;
  --green-200: #b8e6c8;
  --gold-400: #f0b44a;
  --gold-300: #f6c96e;
  --sky-500: #3a8fd4;
  --sky-200: #c5e4f7;
  --charcoal-900: #1a1c1e;
  --charcoal-700: #3a3f44;
  --smoke-400: #8a9096;
  --cream-50: #f7faf7;
  --white: #ffffff;
  --danger: #c23b3b;

  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --radius: 0.5rem;
  --radius-lg: 0.85rem;
  --shadow-soft: 0 18px 40px rgba(11, 36, 22, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--green-950);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(58, 143, 212, 0.08), transparent 50%),
    linear-gradient(180deg, #eef6f1 0%, var(--cream-50) 40%, #e8f2ec 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--green-800);
}

#logo {
  width: 285px;
  margin: -10px 0 15px 0;
  filter: drop-shadow(2px 2px 0px black);
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--green-900);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Frosted glass */
.glass {
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.glass--hero {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--green-950);
}

.glass--new {
  background: rgba(236, 248, 240, 0.58);
  border-color: rgba(255, 255, 255, 0.55);
}

.glass--old {
  background: rgba(18, 20, 22, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass--hero {
    background: rgba(255, 255, 255, 0.94);
  }

  .glass--new {
    background: rgba(232, 246, 236, 0.94);
  }

  .glass--old {
    background: rgba(22, 24, 26, 0.9);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, box-shadow 0.35s var(--ease-out), border-color 0.25s ease;
}

.btn--primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(47, 122, 77, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(18, 53, 36, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-600);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--green-200);
}

.btn--wide {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* ========== Hero (mobile-first) ========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__img--desktop {
  display: none;
}

.hero__img--mobile {
  display: block;
  /* Anchor grass to the bottom where the form sits; turbines stay in the mid gap */
  object-position: center bottom;
}

.hero__veil {
  position: absolute;
  inset: 0;
  /* Clear mid band for turbines; darker top for copy + bottom for form/grass */
  background:
    linear-gradient(180deg, rgba(11, 36, 22, 0.5) 0%, rgba(11, 36, 22, 0.18) 16%, rgba(11, 36, 22, 0.04) 38%, rgba(11, 36, 22, 0.2) 58%, rgba(11, 36, 22, 0.72) 78%, rgba(11, 36, 22, 0.92) 100%);
  pointer-events: none;
}

.hero__layout {
  position: relative;
  z-index: 1;
  width: min(100% - 1.25rem, var(--max));
  margin: 0 auto;
  padding: max(1.1rem, env(safe-area-inset-top)) 0 max(1.25rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: flex-start;
  /* Taller than one screen so the form sits on the grass band */
  min-height: 118svh;
}

.hero__copy {
  max-width: 36rem;
}

.hero__logo {
  display: block;
  width: min(13.5rem, 68vw);
  height: auto;
  margin: 0 0 var(--space-3);
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 11vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 var(--space-3);
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-size: clamp(1.55rem, 6.5vw, 2.4rem);
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__sub {
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 500;
  color: var(--green-200);
  margin-bottom: var(--space-3);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero__pitch {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36ch;
  margin-bottom: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero__pitch strong {
  color: var(--gold-300);
  font-weight: 700;
}

.hero__form-wrap {
  width: 100%;
  max-width: 26rem;
  /* Sit on the grass / lower third of the mobile hero */
  margin-top: auto;
}

.glass--hero {
  padding: 0.9rem 0.9rem 1rem;
}

.hero-form__head {
  margin-bottom: 0.65rem;
}

.hero-form__eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin: 0 0 0.3rem;
}

.hero-form__title {
  font-size: 1.12rem;
  margin: 0;
  color: var(--green-950);
}

.hero-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hero-form .field {
  margin-bottom: 0.45rem;
}

.hero-form .field label {
  font-size: 0.75rem;
  margin-bottom: 0.18rem;
}

.hero-form .field input {
  padding: 0.62rem 0.7rem;
  font-size: 16px;
  /* prevents iOS zoom on focus */
}

.hero-form .btn {
  padding: 0.85rem 1.25rem;
  margin-top: 0.15rem;
}

.hero-form__note {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--smoke-400);
  text-align: center;
}

/* Hero entrance motion */
.hero__copy .hero__logo,
.hero__copy .brand,
.hero__copy h1,
.hero__copy .hero__sub,
.hero__copy .hero__pitch,
.hero__form-wrap {
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise-in 0.85s var(--ease-out) forwards;
}

.hero__copy h1 {
  animation-delay: 0.08s;
}

.hero__copy .hero__sub {
  animation-delay: 0.16s;
}

.hero__copy .hero__pitch {
  animation-delay: 0.24s;
}

.hero__form-wrap {
  animation-delay: 0.32s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form fields */
.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--green-900);
}

.optional {
  font-weight: 400;
  color: var(--smoke-400);
}

.field input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid rgba(26, 77, 50, 0.25);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--green-950);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: #a8b0a9;
}

.field input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(61, 154, 95, 0.22);
}

.field input.is-invalid {
  border-color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 var(--space-3);
}

.claim-success {
  text-align: center;
  padding: var(--space-5) var(--space-2);
  animation: rise-in 0.7s var(--ease-out);
}

.claim-success h3 {
  font-size: 1.65rem;
  color: var(--green-800);
}

.claim-success p {
  color: var(--charcoal-700);
  margin-bottom: var(--space-5);
}

/* Offer strip */
.offer {
  background:
    linear-gradient(135deg, var(--green-900), var(--green-800) 55%, #1e5a3a);
  color: var(--white);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.offer__inner {
  width: min(100%, 40rem);
  margin: 0 auto;
}

.offer h2 {
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  margin-bottom: var(--space-3);
}

.offer p {
  margin: 0;
  color: var(--green-200);
  font-size: 1.05rem;
}

/* Comparison — mobile: clean photo + compact table below */
.compare {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--cream-50);
}

.compare__media {
  position: relative;
  min-height: 0;
}

.compare__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 28%;
}

/* Desktop glass panels hidden on mobile */
.compare__overlay {
  display: none;
}

.compare__side {
  padding: var(--space-5);
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  text-align: left;
  text-shadow: none;
}

.compare.is-visible .compare__side {
  opacity: 1;
  transform: translateY(0);
}

.compare.is-visible .compare__side--old {
  transition-delay: 0.12s;
}

.compare__side--new {
  color: var(--green-950);
}

.compare__side h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.compare__side--old h3 {
  color: var(--white);
}

.compare__side--new h3 {
  color: var(--green-900);
}

.compare__icons {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  padding: 0;
  margin: 0 0 var(--space-4);
  justify-content: flex-start;
}

.compare__icons li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare__icons svg {
  width: 2rem;
  height: 2rem;
}

.compare__side--old .compare__icons {
  color: rgba(255, 255, 255, 0.92);
}

.compare__side--new .compare__icons {
  color: var(--green-800);
}

.compare__traits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.compare__traits span {
  display: inline-block;
  width: 1.25rem;
  margin-right: 0.35rem;
}

.compare__traits--bad {
  color: #f2f2f2;
}

.compare__traits--good {
  color: var(--green-800);
}

.compare__side--old .compare__traits li {
  display: flex;
  justify-content: flex-start;
}

/* Compact mobile comparison table — fully below the photo */
.compare-table-wrap {
  display: block;
  padding: var(--space-4) var(--space-4) var(--space-5);
  margin-top: 0;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #eef6f1 0%, var(--cream-50) 40%);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(47, 122, 77, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(26, 77, 50, 0.1);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 0.95rem;
  padding-bottom: 0.85rem;
}

.compare-table__new {
  color: var(--green-900);
  background: rgba(232, 246, 236, 0.95);
  width: 50%;
}

.compare-table__old {
  color: #f2f2f2;
  background: rgba(26, 28, 30, 0.92);
  width: 50%;
}

.compare-table tbody td:first-child {
  color: var(--green-900);
  font-weight: 600;
  background: rgba(247, 250, 247, 0.9);
}

.compare-table tbody td:last-child {
  color: var(--charcoal-700);
  font-weight: 600;
  background: rgba(245, 245, 245, 0.92);
}

.mark {
  display: inline-block;
  width: 1.1rem;
  font-weight: 800;
}

.mark--good {
  color: var(--green-600);
}

.mark--bad {
  color: #a33a3a;
}

/* Closing */
.closing {
  padding: var(--space-7) var(--space-4);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 40%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(143, 212, 168, 0.3), transparent 70%);
}

.closing__inner {
  width: min(100%, 32rem);
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  color: var(--green-950);
}

.closing p {
  color: var(--charcoal-700);
  margin-bottom: var(--space-5);
}

/* Footer */
.site-footer {
  padding: var(--space-5) var(--space-4) var(--space-7);
  text-align: center;
  color: var(--charcoal-700);
  font-size: 0.95rem;
}

.brand-inline {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--green-800);
}

.site-footer__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--smoke-400);
}

/* ========== Tablet+ ========== */
@media (min-width: 640px) {
  .hero__layout {
    width: min(100% - 2rem, var(--max));
    padding: var(--space-7) 0;
  }

  .glass--hero {
    padding: 1.35rem 1.4rem 1.5rem;
  }

  .hero-form__title {
    font-size: 1.5rem;
  }
}

/* ========== Desktop ========== */
@media (min-width: 900px) {
  .hero {
    align-items: center;
  }

  .hero__img--desktop {
    display: block;
    object-position: 50% 40%;
  }

  .hero__img--mobile {
    display: none;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(11, 36, 22, 0.2) 0%, rgba(11, 36, 22, 0.08) 40%, rgba(11, 36, 22, 0.45) 100%),
      linear-gradient(90deg, rgba(11, 36, 22, 0.55) 0%, rgba(11, 36, 22, 0.2) 45%, rgba(11, 36, 22, 0.35) 100%);
  }

  .hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 22rem);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    min-height: 100svh;
    padding: var(--space-8) 0;
    justify-content: space-between;
  }

  .hero {
    min-height: 100svh;
  }

  .brand {
    font-size: clamp(3rem, 5.5vw, 4.5rem);
  }

  .hero h1 {
    font-size: clamp(2.1rem, 3.4vw, 3.15rem);
    max-width: 14ch;
  }

  .hero__pitch {
    font-size: 1.08rem;
    max-width: 38ch;
    margin-bottom: 0;
  }

  .hero__logo {
    width: min(16rem, 28vw);
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.95));
  }

  .hero__form-wrap {
    justify-self: end;
    align-self: center;
    max-width: 22rem;
    margin-top: 0;
  }

  .glass--hero {
    padding: 1.5rem 1.45rem 1.55rem;
  }

  /* Comparison: even left-aligned glass panels over the photo */
  .compare {
    min-height: clamp(30rem, 68vw, 42rem);
  }

  .compare__media {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .compare__media img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 100%;
    object-position: center 35%;
  }

  .compare__overlay {
    display: grid;
    grid-template-columns: minmax(18rem, 21rem) minmax(18rem, 21rem);
    justify-content: space-between;
    gap: min(22vw, 10rem);
    align-items: start;
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    min-height: inherit;
    padding: var(--space-7) 0;
  }

  .compare-table-wrap {
    display: none;
  }

  .compare__side {
    width: 100%;
    max-width: 21rem;
    padding: 1.35rem 1.4rem;
    text-align: left;
  }

  .compare__side--new {
    justify-self: start;
  }

  .compare__side--old {
    justify-self: end;
    text-align: left;
  }

  .compare__side--old .compare__icons,
  .compare__side--old .compare__traits li {
    justify-content: flex-start;
  }

  .compare__side h3 {
    /* Forced two lines via <br>; keep font small enough that line 2 never wraps again */
    font-size: 1.2rem;
    max-width: none;
    white-space: normal;
  }

  .compare__icons li {
    align-items: flex-start;
  }
}

@media (min-width: 1100px) {
  .compare__overlay {
    grid-template-columns: minmax(19rem, 22rem) minmax(19rem, 22rem);
  }

  .compare__side {
    max-width: 22rem;
  }

  .compare__side h3 {
    font-size: 1.25rem;
  }
}

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

  .hero__copy .hero__logo,
  .hero__copy .brand,
  .hero__copy h1,
  .hero__copy .hero__sub,
  .hero__copy .hero__pitch,
  .hero__form-wrap,
  .compare__side,
  .claim-success {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn--primary:hover,
  .btn--primary:focus-visible {
    transform: none;
  }
}