/* Sustainable Outcomes Registry - publish-ready stylesheet */

:root {
  --green-900: #0e3b2e;
  --green-800: #14463a;
  --green-700: #1c5a48;
  --green-600: #2e7d5b;
  --green-500: #3f9a72;
  --green-300: #8fd3b6;
  --green-100: #e4f1ea;
  --ink: #16241f;
  --muted: #51635c;
  --line: #dfe7e3;
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --bg-soft-2: #eef4f1;
  --gold: #c8a85a;
  --max: 1160px;
  --radius: 16px;
  --shadow: 0 18px 40px -24px rgba(14, 59, 46, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(14, 59, 46, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Skip link */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--green-800); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 84px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .logo { width: 188px; height: auto; }
.brand-tag {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-700); font-weight: 600; white-space: nowrap;
}
.header-spacer { flex: 1; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15.5px;
  padding: 10px 14px; border-radius: 10px; white-space: nowrap;
}
.main-nav a:hover { background: var(--green-100); color: var(--green-800); }
.main-nav a.active { color: var(--green-800); background: var(--green-100); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-600); }
.btn-outline:hover { background: var(--green-100); }
.btn-ghost { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--green-900), var(--green-700) 60%, var(--green-600));
}
.hero .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 104px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 0 0 20px;
  font-weight: 800; letter-spacing: -0.02em; max-width: 16ch;
}
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); max-width: 60ch; color: #e7f3ec; margin: 0 0 32px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero { padding-top: 72px; padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--green-300); margin-bottom: 16px;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-soft-2 { background: var(--bg-soft-2); }
.section-dark { background: var(--green-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #d7e8df; }

h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 18px; font-weight: 800; }
h3 { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
p { margin: 0 0 18px; color: var(--muted); }
.section-title-wide { max-width: 30ch; }

.lead-block p { font-size: 19px; color: var(--ink); }

/* Feature trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trio .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.trio .card p { margin: 0; color: var(--ink); font-weight: 500; }

/* Two-column outcome rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-media svg { display: block; width: 100%; height: auto; }
.feature-stack { display: grid; gap: 64px; }

/* Generic prose */
.prose p { color: var(--muted); }
.prose h2, .prose h3 { color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 22px; display: grid; gap: 14px; }
.prose ul li {
  position: relative; padding-left: 30px; color: var(--ink);
}
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--green-500);
}
.prose ul.neg li::before { background: #c0492f; }
.prose ol { padding-left: 22px; display: grid; gap: 12px; }
.prose ol li { color: var(--ink); }
.prose ol li::marker { color: var(--green-600); font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 32px; box-shadow: var(--shadow-sm);
}
.panel h3 { margin-top: 0; }

/* Class index cards */
.class-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; box-shadow: var(--shadow-sm); overflow: hidden;
  display: grid; grid-template-columns: 220px 1fr;
}
.class-card .class-art { background: var(--green-100); }
.class-card .class-art svg { width: 100%; height: 100%; display: block; }
.class-card .class-body { padding: 30px 32px; }
.class-card h2 { font-size: 26px; margin-bottom: 14px; }
.class-card .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Stat / alert list (My SODAs) */
.bare-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.bare-list li { padding-left: 0; color: var(--ink); }

.note { color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 18px; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--green-600); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 20px; margin: 0; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }

/* Worked example callout */
.example {
  border-left: 4px solid var(--green-500); background: var(--bg-soft);
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 0 0 18px;
}
.example strong { color: var(--green-800); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--green-800), var(--green-600)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e1f0e8; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfe3d8; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.site-footer .logo { width: 150px; margin-bottom: 16px; }
.site-footer a { color: #cfe3d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 14px; color: #9fbcae; }

/* ---------- Download lead-capture modal ---------- */
.dl-overlay {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(10, 30, 24, 0.55); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 20px;
}
.dl-overlay.open { display: flex; }
.dl-dialog {
  background: #fff; border-radius: var(--radius); max-width: 480px; width: 100%;
  padding: 30px 30px 32px; box-shadow: 0 30px 70px -20px rgba(8, 30, 22, 0.55);
  position: relative; max-height: 92vh; overflow: auto;
}
.dl-dialog h3 { margin-top: 0; }
.dl-dialog p.dl-intro { color: var(--muted); margin-bottom: 22px; }
.dl-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--muted);
}
.dl-close:hover { background: var(--green-100); color: var(--green-800); }
.dl-form { display: grid; gap: 14px; }
.dl-form .field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.dl-form .field .opt { color: var(--muted); font-weight: 400; }
.dl-form input {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
.dl-form input:focus { outline: 2px solid var(--green-300); border-color: var(--green-500); }
.dl-form button { margin-top: 6px; width: 100%; }
.dl-status { font-size: 14px; color: var(--muted); margin: 4px 0 0; min-height: 1px; }
.dl-status.err { color: #c0492f; }

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.maxw { max-width: 70ch; }
.maxw-center { max-width: 70ch; margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.subhead { color: var(--green-700); font-weight: 700; margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .trio, .card-grid, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-media { order: 0; }
  .feature-stack { gap: 40px; }
  .class-card { grid-template-columns: 1fr; }
  .class-card .class-art { min-height: 150px; }
  .main-nav {
    position: fixed; inset: 84px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 14px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 12px; font-size: 17px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-spacer { flex: 1; }
}

@media (max-width: 520px) {
  .brand-tag { display: none; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  section { padding: 52px 0; }
}
