/* =========================================================
   Climate Action Challenge — stylesheet
   Brand colours live here. Edit :root to re-theme the site.
   ========================================================= */

:root {
  /* Core palette */
  --eco-pink: #E6A8C4;
  --climate-lime: #C6E93F;
  --ethical-orange: #F28C28;
  --innovative-magenta: #93004D;
  --nature-yellow: #F4C62D;

  /* Neutrals */
  --ink: #141414;          /* body text */
  --paper: #FFFFFF;
  --paper-soft: #FAF7F2;   /* warm off-white section background */

  --radius: 40px;          /* signature rounded corner */
  --radius-sm: 20px;
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  border: 2.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--innovative-magenta);
  color: #fff;
}
.btn--primary:hover { box-shadow: 0 8px 22px rgba(147, 0, 77, .3); }
.btn--lg { padding: 16px 36px; font-size: 1.06rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand em { font-style: normal; color: var(--innovative-magenta); }
.brand-mark { flex-shrink: 0; width: 38px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .96rem;
}
.nav-links a:not(.btn):hover { color: var(--innovative-magenta); }
.nav-links-cta { display: none; }   /* CTA lives in .nav-right on desktop */

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
  background: var(--paper);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 900;
}
.hl { border-radius: 14px; padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl--lime { background: var(--climate-lime); color: #111; }
.hl--pink { background: var(--eco-pink); color: #111; }
.hl--yellow { background: var(--nature-yellow); color: #111; }
.hl--orange { background: var(--ethical-orange); color: #111; }

.hero-sub {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--innovative-magenta);
  margin: 18px 0 10px;
}
.lead { font-size: 1.12rem; max-width: 34em; color: #333; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* App screenshot — transparent PNG with its own brand shapes baked in */
.hero-shot { position: relative; display: flex; justify-content: center; }
.hero-shot img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border: 3px solid var(--innovative-magenta);
  border-radius: var(--radius);
}

/* ---------- Social proof ---------- */
.proof { padding: 60px 0 30px; background: var(--paper-soft); }
.proof-title {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  color: #666;
}
/* Every logo file is normalised to the same 480x160 transparent canvas, so
   a plain full-width image keeps them optically aligned with no per-logo tweaks. */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.logo-strip img {
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: 0 auto;
}
.logo-strip + .proof-title { margin-top: 56px; }

/* ---------- Photo wall ---------- */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 980px;
  margin: 30px auto 0;
}
.polaroid {
  margin: 0;
  background: #fff;
  padding: 14px 14px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(20, 20, 20, .12);
  transform: rotate(var(--tilt, 0deg));
}
.polaroid--1 { --tilt: -4deg; }
.polaroid--2 { --tilt: 3deg; }
.polaroid--3 { --tilt: -2deg; }
.polaroid--4 { --tilt: 4deg; }
.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.polaroid figcaption { margin-top: 12px; text-align: center; }
.polaroid figcaption strong { display: block; font-weight: 800; font-size: .92rem; }
.polaroid figcaption span {
  display: block;
  font-size: .76rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}
.polaroid figcaption em {
  display: block;
  font-style: italic;
  font-size: .82rem;
  color: #444;
  line-height: 1.4;
  margin-top: 8px;
}

/* ---------- Testimonial carousel ---------- */
.testi-carousel {
  position: relative;
  max-width: 780px;
  margin: 56px auto 0;
  text-align: center;
  padding: 0 20px;
}
.testi-viewport { overflow: hidden; border-radius: var(--radius); }
.testi-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform .5s ease;
}
.testi-slide { flex: 0 0 100%; padding: 40px 44px; box-sizing: border-box; color: #111; }
.testi-slide--pink { background: var(--eco-pink); }
.testi-slide--yellow { background: var(--nature-yellow); }
.testi-slide--lime { background: var(--climate-lime); }
.testi-slide blockquote {
  margin: 0 0 20px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
}
.testi-name { margin: 0; font-weight: 800; }
.testi-name span { color: rgba(0, 0, 0, .6); font-weight: 600; display: block; }

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}
.testi-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.testi-arrow:hover { background: var(--ink); color: #fff; }
.testi-dots { display: flex; gap: 8px; }
.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(20, 20, 20, .22);
  cursor: pointer;
}
.testi-dot.is-active { background: var(--innovative-magenta); }

/* ---------- CTA band between sections ---------- */
.cta-band { text-align: center; padding: 44px 24px; }
.cta-band--soft { background: var(--paper-soft); }

/* ---------- Section titles ---------- */
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 900;
  max-width: 18em;
  margin-bottom: 48px;
}

/* ---------- Benefits ---------- */
.benefits { padding: 70px 0 40px; background: var(--paper); border-radius: var(--radius) var(--radius) 0 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.benefits-intro { position: sticky; top: 110px; }
.benefits-intro .hl--pink { padding: .08em .32em; }

.benefits-photo { max-width: 400px; margin-top: 12px; }
.benefits-photo img { width: 100%; height: auto; display: block; margin: 0 auto; }

.benefits-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.titem {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 40px;
}
.titem:last-child { margin-bottom: 0; }
.titem-dot { position: relative; width: 56px; height: 56px; border-radius: 50%; z-index: 1; }
.titem-dot--lime { background: var(--climate-lime); }
.titem-dot--pink { background: var(--eco-pink); }
.titem-dot--orange { background: var(--ethical-orange); }
.titem-copy h3 { font-size: 1.2rem; font-weight: 800; margin: 6px 0 6px; }
.titem-copy p { margin: 0; color: #444; font-size: .98rem; max-width: 32em; }

/* ---------- Features ---------- */
.features { padding: 70px 0 30px; background: var(--paper-soft); }
.features-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
}
.feat-cards { display: grid; gap: 22px; }
.feat-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.feat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  color: #111;
  text-align: center;
}
.feat-pill--lime { background: var(--climate-lime); }
.feat-pill--pink { background: var(--eco-pink); }
.feat-pill--yellow { background: var(--nature-yellow); }
.feat-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; flex: 1; }
.feat-card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 2px; }
.feat-card p { margin: 0; color: #555; font-size: .92rem; font-style: italic; }

.features-shot { display: flex; justify-content: center; }
.features-shot img { width: 100%; max-width: 340px; height: auto; }

/* ---------- How it works ---------- */
.how { padding: 70px 0 40px; background: var(--paper); }
.how .section-title { text-align: center; margin-left: auto; margin-right: auto; }
.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.hbox {
  border-radius: var(--radius);
  padding: 30px 26px;
  color: #111;
}
.hbox--lime { background: var(--climate-lime); }
.hbox--pink { background: var(--eco-pink); }
.hbox--yellow { background: var(--nature-yellow); }
.hbox--orange { background: var(--ethical-orange); }
.hnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.hbox h3 { font-size: 1.18rem; font-weight: 800; }
.hbox p { margin: 0; font-size: .94rem; font-weight: 500; }

/* ---------- Contact ---------- */
.contact {
  background: var(--paper-soft);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 80px 0;
  margin-top: 30px;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; }
.contact-copy p { font-size: 1.08rem; color: #444; max-width: 30em; }
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px;
  border: 2px solid #EDE7DD;
  min-height: 320px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  color: #eee;
  padding: 56px 0 28px;
  margin-top: -1px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand { display: grid; gap: 8px; justify-items: start; font-weight: 800; }
.footer-brand img { width: 36px; height: auto; }
.footer-brand em { font-style: normal; color: var(--climate-lime); }
.footer-brand p { color: #aaa; font-weight: 400; margin: 4px 0 0; }
.footer-links, .footer-social { display: grid; gap: 10px; justify-items: start; }
.footer-links a, .footer-social a { color: #ddd; text-decoration: none; font-weight: 600; }
.footer-links a:hover, .footer-social a:hover { color: var(--climate-lime); }
.footer-legal { margin-top: 40px; border-top: 1px solid #2c2c2c; padding-top: 22px; }
.footer-legal p { color: #888; font-size: .88rem; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .photo-wall { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 36px; }
  .benefits-intro { position: static; }
  .benefits-photo { margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .features-shot { order: -1; }
  .features-shot img { max-width: 260px; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-links-cta { display: block; margin-top: 10px; }
  .how-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 50px; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .photo-wall { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .feat-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
  .testi-slide { padding: 30px 26px; }
}
