:root {
  --green-900: #0b3d2e;
  --green-700: #0f766e;
  --green-600: #11876f;
  --green-500: #16a37b;
  --green-50: #ecfdf5;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --ink: #14201c;
  --slate: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7faf9;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 6px 20px rgba(15, 118, 110, 0.10);
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  display: grid; place-items: center; color: #fff; font-weight: 900;
  box-shadow: var(--shadow-sm);
}
.brand .dot { color: var(--amber-500); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green-700); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; padding: 11px 20px; border-radius: 999px;
  border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--green-600), var(--green-500)); color: #fff; box-shadow: var(--shadow-md); }
.btn-amber { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); color: #fff; box-shadow: 0 6px 18px rgba(217,119,6,.22); }
.btn-ghost { background: #fff; color: var(--green-700); border: 1.5px solid var(--line); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(22,163,123,.12), transparent),
    linear-gradient(180deg, #fff, var(--bg));
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--green-50); color: var(--green-700); font-weight: 700; font-size: .82rem; padding: 6px 13px; border-radius: 999px; letter-spacing: .02em; }
.hero h1 { margin-top: 18px; }
.hero p.lead { font-size: 1.18rem; color: var(--slate); max-width: 46ch; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.check { color: var(--green-500); font-weight: 900; }

/* ---------- Signup card ---------- */
.signup-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 30px; box-shadow: 0 20px 50px rgba(15,118,110,.12);
}
.signup-card h2 { font-size: 1.4rem; }
.signup-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--ink); }
.field input[type="text"], .field input[type="email"] {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 1rem; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(22,163,123,.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green-600); flex: 0 0 auto; }
.consent label { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.form-error { color: #b91c1c; font-size: .82rem; margin: -6px 0 12px; display: none; }
.form-note { font-size: .76rem; color: var(--muted); text-align: center; margin-top: 12px; }

.form-success {
  display: none; text-align: center; padding: 16px 6px;
}
.form-success .ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 16px;
  background: var(--green-50); color: var(--green-600); display: grid; place-items: center;
  font-size: 32px; border: 2px solid #c7f0e1;
}
.form-success h3 { font-size: 1.3rem; }
.form-success p { color: var(--slate); }
.is-done .signup-form { display: none; }
.is-done .form-success { display: block; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Topic chips ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.topic-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-weight: 600; font-size: .9rem; color: var(--slate);
  box-shadow: var(--shadow-sm);
}

/* ---------- Article cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.article-card .thumb { height: 150px; display: grid; place-items: center; color: #fff; font-size: 2.4rem; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--green-700); background: var(--green-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.article-card h3 { font-size: 1.12rem; color: var(--ink); }
.article-card p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.article-card .read { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--green-700); }

/* ---------- Partner network ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.partner-card .vertical { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.partner-card .logo-wrap { height: 60px; display: grid; place-items: center; width: 100%; }
.partner-card .logo-wrap img { max-height: 52px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.partner-card p { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.partner-card .btn { margin-top: 4px; }

/* ---------- CTA banner ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff; border-radius: 22px; padding: 48px 40px; text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 24px; font-size: 1.08rem; }

/* ---------- Article page ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px 20px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.article-hero-tag { margin-bottom: 14px; }
.article-meta { color: var(--muted); font-size: .9rem; margin: 6px 0 26px; }
.article-body { font-size: 1.08rem; color: #283330; }
.article-body h2 { margin-top: 1.6em; font-size: 1.5rem; }
.article-body h3 { margin-top: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  border-left: 4px solid var(--green-500); margin: 1.4em 0; padding: 6px 18px;
  background: var(--green-50); border-radius: 0 10px 10px 0; color: var(--green-900);
}
.inline-cta {
  margin: 34px 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.inline-cta .txt { flex: 1; min-width: 220px; }
.inline-cta h3 { margin-bottom: 4px; }
.inline-cta p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Newsletter strip ---------- */
.mini-signup {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin: 40px 0; box-shadow: var(--shadow-sm);
}
.mini-signup form { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-signup input { flex: 1; min-width: 160px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 1rem; font-family: inherit; }
.mini-signup input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(22,163,123,.15); }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 48px 20px; }
.legal h2 { margin-top: 1.6em; font-size: 1.4rem; }
.legal p, .legal li { color: #283330; }
.legal ul { padding-left: 1.3em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfe7df; padding: 54px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #cfe7df; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand .mark { width: 34px; height: 34px; }
.footer-brand p { color: #9fcabb; font-size: .9rem; margin-top: 12px; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #9fcabb; }
.footer-bottom a { color: #9fcabb; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-grid, .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 16px;
  }
  .nav-toggle { display: block; }
  .card-grid, .partner-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .cta-band { padding: 36px 22px; }
}
