:root {
  --cream: #f5fbef;
  --cream-2: #edf7e2;
  --white: #ffffff;
  --ink: #16301f;
  --muted: #53695b;
  --field: #2f8f46;
  --field-dark: #176233;
  --leaf: #8bc34a;
  --gold: #f1b85b;
  --line: rgba(22, 48, 31, 0.16);
  --shadow: 0 22px 60px rgba(32, 84, 49, 0.18);
  --radius: 8px;
  --hero-image: url("/assets/calvingwatch-hero-nz.png");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(245, 251, 239, 0.88);
  border-bottom: 1px solid rgba(255,255,255,0.42);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 32% 28%, #b5e26f 0 17%, #2f8f46 18% 58%, #176233 59% 100%);
  box-shadow: 0 8px 18px rgba(23,98,51,0.25);
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 15px;
  font-weight: 800;
  color: rgba(22,48,31,0.78);
}

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

.country-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.country-chip {
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(23,98,51,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: rgba(22,48,31,0.78);
  font-size: 12px;
  font-weight: 900;
}

.country-chip:hover,
.country-chip.active {
  color: #fff;
  background: var(--field-dark);
  border-color: var(--field-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(23, 98, 51, 0.2);
}

.button.primary {
  color: #fff;
  background: var(--field-dark);
}

.button.secondary {
  color: var(--field-dark);
  background: rgba(255,255,255,0.9);
  border-color: rgba(23,98,51,0.2);
}

.hero {
  min-height: 96vh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 118px clamp(18px, 4vw, 56px) 58px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(13,51,29,0.84) 0%, rgba(13,51,29,0.62) 31%, rgba(13,51,29,0.14) 63%, rgba(13,51,29,0) 100%),
    linear-gradient(0deg, rgba(13,51,29,0.55) 0%, rgba(13,51,29,0.02) 42%),
    var(--hero-image);
  background-size: cover;
  background-position: center right;
}

.hero-content {
  max-width: 780px;
  padding-bottom: clamp(22px, 5vh, 64px);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-lede {
  margin: 26px 0 0;
  max-width: 650px;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.35;
  font-weight: 800;
  color: rgba(255,255,255,0.93);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a7e957;
  box-shadow: 0 0 0 7px rgba(167,233,87,0.18);
  flex: 0 0 auto;
}

.hero-strip {
  position: absolute;
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  bottom: -52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.strip-item {
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.strip-item:last-child { border-right: 0; }

.strip-label {
  font-size: 13px;
  font-weight: 900;
  color: var(--field-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.strip-text {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

section { padding: clamp(74px, 10vw, 130px) clamp(18px, 4vw, 56px); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.after-hero { padding-top: 132px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(38px, 6vw, 88px);
  align-items: center;
}

.section-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-copy {
  margin: 22px 0 0;
  font-size: 19px;
  color: var(--muted);
  max-width: 680px;
}

.plain-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.plain-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  font-size: 18px;
  color: #263d2d;
  font-weight: 800;
}

.tick {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #daf2bd;
  color: var(--field-dark);
  font-weight: 900;
}

.visual-panel {
  position: relative;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(22,48,31,0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.camera-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(25, 64, 37, 0) 0%, rgba(25, 64, 37, 0.46) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center right;
  position: relative;
}

.camera-ui {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
}

.alert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.alert-row strong { display: block; font-size: 16px; line-height: 1.15; }
.alert-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 800; }

.confidence {
  min-width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--field-dark);
  font-weight: 900;
  font-size: 18px;
}

.how, .proof { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

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

.step, .proof-card, .privacy-point {
  border: 1px solid rgba(22,48,31,0.12);
  border-radius: var(--radius);
}

.step {
  padding: 32px;
  background: var(--cream);
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--field-dark);
  color: #fff;
  font-weight: 900;
}

.step h3 { margin: 24px 0 9px; font-size: 24px; line-height: 1.1; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--muted); font-size: 17px; }

.camera-check {
  background: var(--cream-2);
}

.check-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.check-card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.check-card p { margin: 0; color: var(--muted); font-weight: 700; }

.tester {
  background:
    linear-gradient(120deg, rgba(23,98,51,0.95), rgba(47,143,70,0.88)),
    radial-gradient(circle at 82% 24%, rgba(241,184,91,0.34), transparent 32%);
  color: #fff;
}

.tester-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.tester .section-copy { color: rgba(255,255,255,0.86); }

.offer-list { margin-top: 34px; display: grid; gap: 13px; }

.offer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-size: 18px;
  font-weight: 900;
}

.offer svg { margin-top: 2px; flex: 0 0 auto; }

.form-card {
  background: rgba(255,255,255,0.98);
  color: var(--ink);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0,0,0,0.22);
}

.form-card h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.03em; }
.form-card p { margin: 0 0 22px; color: var(--muted); font-weight: 800; }

.field { display: grid; gap: 8px; margin-bottom: 14px; }
label { font-size: 14px; font-weight: 900; color: #284934; }

input, select, textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(22,48,31,0.18);
  border-radius: var(--radius);
  background: #fbfff7;
  padding: 0 14px;
  font: 800 16px "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  outline: none;
}

textarea { min-height: 86px; padding-top: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--field); box-shadow: 0 0 0 4px rgba(47,143,70,0.14); }

.checkbox-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.checkbox-row input { width: 20px; min-height: 20px; margin-top: 1px; accent-color: var(--field-dark); }

.privacy { background: var(--cream-2); }

.privacy-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(34px, 6vw, 80px);
}

.privacy-points { display: grid; gap: 14px; }
.privacy-point { padding: 22px 24px; background: #fff; }
.privacy-point h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.privacy-point p { margin: 0; color: var(--muted); font-size: 16px; }

.proof-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.proof-card { padding: 26px; background: var(--cream); }
.proof-card strong { display: block; font-size: 42px; line-height: 1; letter-spacing: -0.04em; color: var(--field-dark); }
.proof-card span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; font-weight: 900; }

.final-cta {
  padding-bottom: clamp(46px, 7vw, 86px);
  text-align: center;
}

.final-cta .section-title, .final-cta .section-copy { margin-left: auto; margin-right: auto; }
.final-actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.footer {
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.country-home {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 110px clamp(18px, 4vw, 56px) 56px;
  background:
    linear-gradient(90deg, rgba(245,251,239,0.95), rgba(245,251,239,0.74)),
    var(--hero-image);
  background-size: cover;
  background-position: center right;
}

.country-panel {
  max-width: 980px;
  padding: clamp(28px, 5vw, 56px);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.country-panel h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.country-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.country-card {
  display: block;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.country-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.info-page {
  padding-top: 70px;
}

.info-hero {
  padding-top: clamp(86px, 11vw, 150px);
}

.info-actions {
  justify-content: flex-start;
}

.privacy-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.success, .error {
  display: none;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 14px;
}

.success { color: #124c29; background: #dff6cb; }
.error { color: #7a1f1f; background: #ffe2df; }

@media (max-width: 920px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .brand { font-size: 18px; }
  .country-switcher { margin-left: auto; }
  .hero {
    min-height: 92vh;
    padding-top: 96px;
    padding-bottom: 42px;
    background-image:
      linear-gradient(90deg, rgba(13,51,29,0.78) 0%, rgba(13,51,29,0.58) 55%, rgba(13,51,29,0.28) 100%),
      linear-gradient(0deg, rgba(13,51,29,0.62) 0%, rgba(13,51,29,0.04) 50%),
      var(--hero-image);
    background-position: 58% center;
  }
  .hero-content { padding-bottom: 150px; }
  .hero-strip { grid-template-columns: 1fr; bottom: -150px; }
  .strip-item { padding: 17px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .strip-item:last-child { border-bottom: 0; }
  .after-hero { padding-top: 230px; }
  .split, .tester-grid, .privacy-grid { grid-template-columns: 1fr; }
  .steps, .proof-grid, .check-grid, .country-grid, .privacy-page-grid { grid-template-columns: 1fr; }
  .proof-card strong { font-size: 34px; }
}

@media (max-width: 520px) {
  .nav .button { display: none; }
  .brand span:last-child { display: none; }
  .country-chip {
    min-width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .hero h1 { font-size: clamp(40px, 14vw, 60px); }
  .hero-actions, .final-actions { flex-direction: column; }
  .button { width: 100%; }
  .step, .form-card, .proof-card, .check-card { padding: 22px; }
  section { padding-left: 16px; padding-right: 16px; }
}
