:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #5d6b62;
  --line: #dce5de;
  --soft: #f5f8f1;
  --paper: #fffdf7;
  --leaf: #146c43;
  --leaf-2: #0f5132;
  --gold: #c98716;
  --rose: #b94c50;
  --blue: #2f69a1;
  --aqua: #0f766e;
  --shadow: 0 18px 50px rgba(23, 35, 29, 0.11);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 8px;
  background: var(--leaf);
  color: white;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a,
.nav-toggle,
.btn,
.chip,
.tab {
  min-height: 2.6rem;
  border-radius: 8px;
}

.site-nav a {
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--soft);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

main {
  min-height: 70vh;
}

.env-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: #eef7f0;
  color: var(--leaf-2);
  font-size: 0.9rem;
}

.env-banner strong,
.env-banner span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
}

.env-banner strong {
  border-radius: 8px;
  background: var(--leaf);
  color: white;
  padding: 0.2rem 0.5rem;
}

.section {
  padding: clamp(2.2rem, 5vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.section.alt {
  background: var(--soft);
}

.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.96), rgba(255, 253, 247, 0.72)),
    url("data:image/svg+xml,%3Csvg width='1200' height='760' viewBox='0 0 1200 760' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='760' fill='%23f5f8f1'/%3E%3Cg opacity='.95'%3E%3Crect x='720' y='120' width='250' height='370' rx='8' fill='%23146c43'/%3E%3Crect x='755' y='168' width='180' height='36' rx='5' fill='%23fffdf7'/%3E%3Crect x='755' y='228' width='136' height='24' rx='5' fill='%23d7c082'/%3E%3Crect x='755' y='285' width='170' height='120' rx='8' fill='%23fffdf7'/%3E%3Ccircle cx='570' cy='300' r='90' fill='%23c98716'/%3E%3Crect x='470' y='390' width='220' height='130' rx='8' fill='%23ffffff'/%3E%3Cpath d='M470 434h220' stroke='%2317231d' stroke-width='10' opacity='.12'/%3E%3Cpath d='M470 478h180' stroke='%2317231d' stroke-width='10' opacity='.12'/%3E%3Crect x='820' y='510' width='190' height='74' rx='8' fill='%23b94c50'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  max-width: 760px;
}

.home-hero {
  position: relative;
  min-height: calc(100svh - 10.5rem);
  grid-template-columns: minmax(0, 0.98fr) minmax(22rem, 0.82fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255, 253, 247, 0.98) 0 46%, rgba(245, 248, 241, 0.94) 46% 100%),
    repeating-linear-gradient(135deg, rgba(20, 108, 67, 0.08) 0 1px, transparent 1px 26px);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0.55rem;
  background: linear-gradient(90deg, var(--leaf), var(--gold), var(--blue), var(--aqua));
}

.hero-copy,
.relief-board {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.home-hero h1 {
  max-width: 10.8ch;
  color: #10251a;
  font-size: clamp(3.2rem, 8.6vw, 6.7rem);
}

.home-hero .lead {
  max-width: 56ch;
  color: #46564c;
}

.hero-reassurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero-reassurance span {
  min-height: 4.4rem;
  border: 1px solid rgba(20, 108, 67, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.85rem;
  color: var(--leaf-2);
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(23, 35, 29, 0.07);
}

.relief-board {
  display: grid;
  gap: 0.9rem;
  align-self: center;
}

.relief-card,
.ecosystem-card,
.support-map,
.review-flow {
  border: 1px solid rgba(20, 108, 67, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.relief-card {
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.primary-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(238, 247, 240, 0.96)),
    repeating-linear-gradient(90deg, rgba(20, 108, 67, 0.08) 0 1px, transparent 1px 22px);
}

.mini-label {
  display: inline-flex;
  border-radius: 999px;
  background: #fff8e8;
  padding: 0.35rem 0.55rem;
  color: #60430d;
  font-size: 0.78rem;
  font-weight: 800;
}

.relief-card strong,
.ecosystem-card strong {
  display: block;
  margin-top: 0.8rem;
  color: #10251a;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.case-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.case-strip span,
.support-map span,
.review-flow div {
  border-radius: 8px;
  background: white;
  padding: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.support-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.7rem;
}

.support-map span:nth-child(1),
.support-map span:nth-child(4) {
  background: #eef7f0;
  color: var(--leaf-2);
}

.support-map span:nth-child(2) {
  background: #f4f7fb;
  color: var(--blue);
}

.support-map span:nth-child(3),
.support-map span:nth-child(5) {
  background: #fff8e8;
  color: #60430d;
}

.review-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.7rem;
}

.review-flow div {
  display: grid;
  gap: 0.35rem;
  min-height: 5.2rem;
  align-content: center;
}

.review-flow span {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
}

.review-flow strong {
  color: var(--ink);
}

.ecosystem-card {
  padding: 1rem;
  background: #10251a;
  color: white;
}

.ecosystem-card strong {
  margin: 0;
  color: white;
  font-size: 1rem;
}

.home-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.premium-panel {
  min-height: 12rem;
  background:
    linear-gradient(180deg, #ffffff, #fbfcf8),
    repeating-linear-gradient(135deg, rgba(20, 108, 67, 0.05) 0 1px, transparent 1px 18px);
}

.premium-panel h3::before,
.journey-step h3::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 0.28rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: var(--leaf);
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  max-width: 780px;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.category-showcase .panel {
  min-height: 12rem;
  box-shadow: 0 14px 34px rgba(23, 35, 29, 0.08);
}

.category-showcase .panel:nth-child(2) {
  border-top-color: var(--blue);
}

.category-showcase .panel:nth-child(3) {
  border-top-color: var(--gold);
}

.category-showcase .panel:nth-child(4) {
  border-top-color: var(--aqua);
}

.category-showcase .panel:nth-child(5) {
  border-top-color: var(--rose);
}

.journey-list {
  display: grid;
  gap: 0.75rem;
}

.journey-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 1rem 1rem 1rem 1.25rem;
  box-shadow: 0 12px 28px rgba(23, 35, 29, 0.07);
}

.journey-step + .journey-step::before {
  content: "";
  position: absolute;
  top: -0.78rem;
  left: 2rem;
  width: 1px;
  height: 0.78rem;
  background: var(--line);
}

.page-title {
  padding-bottom: 1rem;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 0.72fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255, 253, 247, 0.98) 0 52%, rgba(238, 247, 240, 0.92) 52% 100%),
    repeating-linear-gradient(135deg, rgba(20, 108, 67, 0.07) 0 1px, transparent 1px 24px);
}

.public-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7.5vw, 6.1rem);
  color: #10251a;
}

.public-hero-card {
  border: 1px solid rgba(20, 108, 67, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 252, 248, 0.96)),
    repeating-linear-gradient(90deg, rgba(20, 108, 67, 0.06) 0 1px, transparent 1px 22px);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: var(--shadow);
}

.public-hero-card strong {
  display: block;
  margin-top: 0.8rem;
  color: #10251a;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}

.trust-rail {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.trust-rail article,
.impact-stack span {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(20, 108, 67, 0.13);
  border-radius: 8px;
  background: white;
  padding: 0.75rem;
}

.trust-rail strong {
  margin: 0;
  font-size: 0.95rem;
}

.trust-rail span,
.impact-stack span {
  color: var(--muted);
  font-size: 0.88rem;
}

.compact-flow {
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-heading {
  margin-top: 2rem;
}

.sponsor-showcase {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.impact-stack {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.decision-strip,
.review-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.review-checklist span {
  border: 1px solid rgba(20, 108, 67, 0.15);
  border-radius: 8px;
  background: #fbfcf8;
  padding: 0.52rem 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.pill.warning {
  background: #fff8e8;
  color: #60430d;
}

.pill.danger {
  background: #fff1f1;
  color: #7a2228;
}

.pill.info {
  background: #f4f7fb;
  color: var(--blue);
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.45rem 0.7rem;
  color: var(--leaf-2);
  font-weight: 700;
  font-size: 0.86rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  margin-top: 1rem;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  line-height: 1.65;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: white;
  padding: 0.72rem 1rem;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  border-color: var(--leaf);
  background: var(--leaf);
  color: white;
}

.btn.gold {
  border-color: var(--gold);
  background: var(--gold);
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.panel,
.metric,
.form-shell,
.table-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.15rem;
}

.panel.accent {
  border-top: 5px solid var(--leaf);
}

.panel.warning {
  border-top: 5px solid var(--gold);
}

.panel.danger {
  border-top: 5px solid var(--rose);
}

.panel.info {
  border-top: 5px solid var(--blue);
}

.panel.success {
  border-top: 5px solid var(--leaf);
  background: #f7fcf8;
}

.compact-grid {
  margin-top: 1rem;
}

.kicker {
  color: var(--muted);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.form-shell {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.notice {
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  padding: 0.85rem 1rem;
  color: #60430d;
}

.success {
  border-left-color: var(--leaf);
  background: #edf8f0;
  color: var(--leaf-2);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.auth-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr);
  gap: 1rem;
  align-items: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff8e8;
}

.auth-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.chip {
  border: 1px solid var(--line);
  background: white;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  border-color: var(--leaf);
  background: var(--leaf);
  color: white;
}

.tab {
  border: 1px solid var(--line);
  background: white;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  cursor: pointer;
}

.tab[aria-selected="true"] {
  border-color: var(--leaf);
  background: var(--leaf);
  color: white;
}

.status-row,
.timeline {
  display: grid;
  gap: 0.75rem;
}

.status-row {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.metric {
  padding: 1rem;
}

.metric strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.8rem;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: var(--muted);
  font-size: 0.85rem;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  background: var(--soft);
  padding: 0.35rem 0.55rem;
  color: var(--leaf-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-layout {
  display: grid;
  grid-template-columns: 17rem 1fr;
  min-height: 100vh;
}

.admin-side {
  position: sticky;
  top: 4.5rem;
  height: calc(100vh - 4.5rem);
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #10251a;
  padding: 1rem;
  color: white;
}

.admin-side a {
  display: block;
  border-radius: 8px;
  padding: 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.admin-side a:hover,
.admin-side a:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  color: white;
}

.qr {
  display: grid;
  width: 8rem;
  aspect-ratio: 1;
  place-items: center;
  border: 8px solid white;
  background:
    linear-gradient(90deg, var(--ink) 22%, transparent 22% 78%, var(--ink) 78%),
    linear-gradient(var(--ink) 22%, transparent 22% 78%, var(--ink) 78%),
    repeating-linear-gradient(45deg, var(--ink) 0 8px, white 8px 16px);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: #10251a;
  color: white;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0 0.8rem;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 4.45rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .split,
  .admin-layout,
  .form-grid,
  .auth-strip {
    grid-template-columns: 1fr;
  }

  .auth-controls {
    justify-content: flex-start;
  }

  .admin-side {
    position: static;
    height: auto;
  }

  .site-footer {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .home-hero,
  .public-hero,
  .home-proof {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .public-hero {
    padding-top: 1.45rem;
  }

  .hero-reassurance,
  .proof-grid,
  .category-showcase {
    grid-template-columns: 1fr;
  }

  .review-flow,
  .case-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .relief-board {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

  .primary-card {
    grid-row: span 2;
  }

  .category-showcase,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .home-hero,
  .public-hero {
    padding-inline: 0.85rem;
  }

  .home-hero h1,
  .public-hero h1 {
    font-size: clamp(3rem, 14.5vw, 3.95rem);
    max-width: 9ch;
  }

  .home-hero .actions .btn,
  .public-hero .actions .btn {
    width: 100%;
  }

  .support-map,
  .review-flow,
  .case-strip {
    grid-template-columns: 1fr;
  }

  .relief-board {
    gap: 0.7rem;
  }
}
