:root {
  --ink-green: #0d2b1d;
  --mid-green: #1d5c3a;
  --leaf: #4caf72;
  --fire: #e8590c;
  --fire-soft: #f4a261;
  --cream: #faf6ef;
  --cream-2: #f2ebdd;
  --line: #e5decf;
  --text: #2a2a24;
  --muted: #6b6b5f;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink-green); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .5rem; }
section { padding: 4.5rem 1.5rem; max-width: 1080px; margin: 0 auto; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0 auto 2.2rem; }
section h2, .section-sub { text-align: center; }
.section-sub { display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.5rem; background: rgba(250, 246, 239, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink-green); text-decoration: none; }
.brand .tld { color: var(--fire); }
.nav nav { display: flex; gap: 1.4rem; }
.nav nav a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav nav a:hover { color: var(--fire); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-switch a { text-decoration: none; color: var(--muted); font-size: .85rem; padding: 0 .2rem; }
.lang-switch a.on { color: var(--ink-green); font-weight: 700; }
@media (max-width: 760px) { .nav nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .65rem 1.3rem; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-fire { background: linear-gradient(135deg, var(--fire), #d9480f); color: #fff; box-shadow: 0 6px 18px rgba(232, 89, 12, .35); }
.btn-green { background: var(--mid-green); color: #fff; }
.btn-green:hover { background: var(--ink-green); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost-dark { background: transparent; color: var(--ink-green); border: 1px solid var(--ink-green); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: none; margin: 0; padding: 0;
  background:
    radial-gradient(1000px 420px at 78% 118%, rgba(232, 89, 12, .55), transparent 60%),
    radial-gradient(700px 300px at 15% 110%, rgba(244, 162, 97, .25), transparent 60%),
    linear-gradient(180deg, #0a1f15 0%, #0d2b1d 55%, #123524 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero-inner { max-width: 880px; margin: 0 auto; padding: 6.5rem 1.5rem 9rem; text-align: center; }
.kicker {
  display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--fire-soft); border: 1px solid rgba(244, 162, 97, .45); padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.6rem;
}
.hero h1 { color: var(--cream); font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 600; margin-bottom: 1.2rem; }
.hero h1 em { color: var(--fire-soft); font-style: italic; }
.hero-sub { max-width: 620px; margin: 0 auto 2.2rem; color: rgba(250, 246, 239, .85); font-size: 1.1rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-trees { position: absolute; bottom: -2px; left: 0; width: 100%; height: 120px; }
.hero-trees path { fill: var(--cream); }

/* ---------- Counter band ---------- */
.counter-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem;
  max-width: 900px; margin: -1rem auto 0; padding: 1.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(13, 43, 29, .08); position: relative; z-index: 2;
}
.counter-item { text-align: center; }
.counter-item strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--mid-green); }
.counter-item span { color: var(--muted); font-size: .9rem; }
.counter-bar-wrap { flex: 1; min-width: 220px; }
.counter-bar { height: 12px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.counter-fill { height: 100%; background: linear-gradient(90deg, var(--leaf), var(--mid-green)); border-radius: 999px; }
.goal { font-size: .85rem; color: var(--muted); }

/* ---------- Crisis cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 43, 29, .1); }
.card-emoji { font-size: 2rem; margin-bottom: .8rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Calculator ---------- */
.calc-section { padding-top: 2rem; }
.calc-card {
  max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 2.5rem; box-shadow: 0 20px 50px rgba(13, 43, 29, .12); text-align: center;
}
.price-tag { margin: 1.2rem 0 1.8rem; }
.price-tag .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--fire); }
.price-tag .per { color: var(--muted); margin-left: .4rem; }
.qty-label { display: block; font-weight: 600; margin-bottom: .8rem; }
.qty-row { display: flex; justify-content: center; align-items: stretch; gap: .6rem; margin-bottom: 1rem; }
.qty-btn {
  width: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream);
  font-size: 1.4rem; cursor: pointer; color: var(--ink-green);
}
.qty-btn:hover { background: var(--cream-2); }
#trees-input {
  width: 120px; text-align: center; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  border: 2px solid var(--mid-green); border-radius: 12px; color: var(--ink-green); padding: .4rem;
}
#trees-input:focus { outline: 3px solid rgba(76, 175, 114, .35); }
.quick { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.quick button {
  padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 600; color: var(--muted);
}
.quick button.sel { background: var(--mid-green); border-color: var(--mid-green); color: #fff; }
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px dashed var(--line); padding-top: 1.2rem; margin-bottom: 1.4rem;
}
.total-row span { color: var(--muted); font-weight: 600; }
.total-row strong { font-family: var(--font-display); font-size: 2rem; color: var(--ink-green); }
.secure { margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.pay-error { margin-top: .8rem; color: #c0392b; font-size: .9rem; }

/* ---------- How ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.step { text-align: center; padding: 1.5rem; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--mid-green); color: #fff; font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; margin-bottom: .9rem;
}
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Transparency ---------- */
.trans { background: var(--cream-2); max-width: none; }
.trans > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.trans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.trans-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.trans-box h3 { margin-bottom: .5rem; }
.trans-box p { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-form { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: .95rem; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--leaf); }
.contact-ok { color: var(--mid-green); font-weight: 600; text-align: center; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  background: var(--ink-green); color: rgba(250, 246, 239, .8); padding: 1.6rem 2rem; font-size: .9rem;
}
.footer nav { display: flex; gap: 1.4rem; }
.footer a { color: rgba(250, 246, 239, .8); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(680px, calc(100% - 2rem)); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: 0 18px 40px rgba(0,0,0,.18);
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie-banner p { flex: 1; min-width: 240px; font-size: .85rem; color: var(--muted); }
.cookie-banner a { color: var(--mid-green); }
.cookie-actions { display: flex; gap: .6rem; }

/* ---------- Legal & status pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.legal-content h1 { margin-bottom: 1.5rem; }
.legal-content h2 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; text-align: left; }
.legal-content p, .legal-content li { color: var(--text); font-size: .96rem; margin-bottom: .7rem; }
.legal-content ul { padding-left: 1.4rem; }
.status-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; }
.status-card {
  text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 3.5rem 2.5rem; max-width: 520px; box-shadow: 0 20px 50px rgba(13, 43, 29, .12);
}
.status-emoji { font-size: 3.5rem; margin-bottom: 1rem; }
.status-card h1 { font-size: 1.8rem; margin-bottom: .8rem; }
.status-card p { color: var(--muted); margin-bottom: 1.8rem; }
