/* Where the money goes: the public numbers page. Sans only, spacing instead of rules, one moment of motion (the grove). */

main.imp { max-width: none; padding: 0; }
.imp {
  --in: #0f3a6b;            /* sponsor money: the cyanotype blue */
  --cost: #b7bcc4;          /* running costs: a quiet grey */
  --plant: #2e9e5b;         /* trees: the leaf green */
  --wait: #9fd8b5;          /* promised, not yet planted */
  --tile: var(--surface);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .imp { --in: #8fb8de; --cost: #5b626c; --plant: #5fcf8a; --wait: #2d5a41; }
}
.imp-wrap { width: 100%; max-width: 920px; margin: 0 auto; padding-inline: 20px; }

.imp-example { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); padding: 12px 0; font-size: 0.95rem; }

/* hero */
.imp-hero { padding-block: clamp(40px, 8vw, 88px) clamp(8px, 2vw, 24px); }
.imp-hero h1 { font-size: clamp(2.5rem, 7.2vw, 4.8rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin: 0 0 20px; max-width: 12ch; }
.imp-lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 46ch; margin: 0; }
.imp-none { padding-block: 32px 64px; color: var(--muted); }

/* sections */
.imp-sec { padding-block: clamp(48px, 8vw, 96px); }
.imp-sec.tint { background: var(--bg-2); }
.imp-sec h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.035em; margin: 0 0 10px; }
.imp-sub { color: var(--muted); font-size: 1.1rem; line-height: 1.5; max-width: 50ch; margin: 0 0 clamp(28px, 4vw, 48px); }

/* the flow: sponsors, then costs and trees */
.flow { margin: 0; }
.flow-wide svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow-narrow { display: none; }
.t-name { fill: var(--muted); font-size: 17px; font-family: var(--sans); }
.t-val { fill: var(--ink); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--sans); }
.rib { opacity: 0.22; }
.rib.r-in { fill: var(--in); }
.f-in { fill: var(--in); }
.f-cost { fill: var(--cost); }
.f-plant { fill: var(--plant); }
.f-wait { fill: var(--wait); }
.rib.f-cost, .rib.f-plant, .rib.f-wait { opacity: 0.3; }

.nbar { display: flex; gap: 2px; height: 30px; border-radius: 15px; overflow: hidden; }
.nbar i { display: block; min-width: 4px; }
.nlegend { margin: 20px 0 0; display: grid; gap: 14px; }
.nlegend div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nlegend dt { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.nlegend dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.nlegend .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }

.imp-costs { margin: 28px 0 0; color: var(--muted); font-size: 1rem; max-width: 60ch; }
.imp-costs strong { color: var(--ink); font-weight: 600; }

/* figures */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px 40px; margin: 0 0 clamp(32px, 5vw, 56px); padding: 0; }
.figs div { margin: 0; }
.figs b { display: block; font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.02; font-weight: 700; font-variant-numeric: tabular-nums; }
.figs span { display: block; margin-top: 6px; color: var(--muted); }

/* the grove */
.grove { margin: 0 0 clamp(36px, 6vw, 64px); }
.grove svg { display: block; width: 100%; height: auto; }
.grove .g { fill: var(--plant); transform-box: fill-box; transform-origin: 50% 100%; }
.grove.pre .g { opacity: 0; }
.grove.in .g { animation: sprout 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 7ms); }
@keyframes sprout { from { opacity: 0; transform: scale(0.25); } to { opacity: 1; transform: scale(1); } }
.grove-note { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) {
  .grove.pre .g { opacity: 1; }
  .grove.in .g { animation: none; }
}

/* plantings */
.plants { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.plant { background: var(--tile); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.plant-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 0.95rem; min-height: 28px; }
.plant-top img { height: 24px; width: auto; max-width: 140px; object-fit: contain; }
.plant h3 { margin: 10px 0 0; font-size: clamp(2rem, 3.6vw, 2.7rem); letter-spacing: -0.04em; line-height: 1.05; font-weight: 700; }
.plant-where { margin: 0; font-size: 1.1rem; }
.plant-facts { margin: 4px 0 0; color: var(--muted); }
.proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.proof a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--bg-2); color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: background 0.15s; }
.proof a:hover { background: var(--fern-soft); }
.proof svg { width: 16px; height: 16px; flex: none; }
.plant-top .logo { display: inline-flex; align-items: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plant-top .logo { background: #fff; padding: 5px 10px; border-radius: 10px; } }
.imp-sec:not(.tint) .plant { background: var(--bg-2); box-shadow: none; }
.imp-sec:not(.tint) .proof a { background: var(--bg); }

/* usage */
.bars { margin: 0; }
.bars svg { display: block; width: 100%; height: auto; overflow: visible; }
.bars .bar { fill: var(--in); }
.bars .bar.last { fill: var(--plant); }
.bars text { font-family: var(--sans); fill: var(--muted); font-size: 13px; }
.bars text.v { fill: var(--ink); font-weight: 600; }
.bars-cap { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; }

/* how we count */
.imp-how { padding-block: clamp(40px, 7vw, 80px) clamp(48px, 8vw, 96px); }
.imp-how h2 { font-size: 1.5rem; letter-spacing: -0.03em; margin: 0 0 18px; }
.imp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 64ch; }
.imp-more { margin: 28px 0 0; }

@media (max-width: 720px) {
  .flow-wide { display: none; }
  .flow-narrow { display: block; }
  .plant { padding: 22px; border-radius: 20px; }
}
