:root {
  color-scheme: light;
  --cream:#f8f6ed; --paper:#fffdf6; --wheat:#efe4cf; --green:#173b2c;
  --leaf:#315c45; --ink:#182d23; --mute:#4c6054; --line:#d5d8c9;
  --lime:#dce8aa; --white:#fffdf2; --radius:18px;
  --body: system-ui, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
* {box-sizing:border-box}
[hidden] {display:none !important}
html {scroll-padding-top:24px}
body {margin:0;background:var(--cream);color:var(--ink);font:400 1rem/1.6 var(--body)}
main:focus {outline:none}
a {color:inherit}
img {display:block;max-width:100%;height:auto}
h1,h2,h3,p,figure {margin:0}
h1,h2 {font:400 clamp(2.5rem,5.2vw,5.1rem)/.98 var(--display);letter-spacing:-.055em}
h1 {font-size:clamp(4.1rem,8.1vw,8rem);line-height:.88}
h1 em {font-weight:400;color:#3a5f3e}
h3 {font-size:1.16rem;line-height:1.25}
button,input,select {font:inherit}
button,.button {display:inline-flex;align-items:center;justify-content:center;gap:.6em;min-height:46px;padding:.62em 1.05em;border:1px solid transparent;border-radius:100px;background:var(--green);color:var(--white);font-weight:700;text-decoration:none;cursor:pointer}
button:hover,.button:hover {background:#28503a}
button:disabled {background:#ebece3;color:#435248;cursor:default}
.outline {background:transparent;color:var(--green);border-color:#8c9d8c}
.outline:hover:not(:disabled) {color:var(--white)}
:focus-visible {outline:3px solid #6a752a;outline-offset:4px}
.dark :focus-visible,footer :focus-visible {outline-color:var(--lime)}
.skip {position:absolute;z-index:5;left:1rem;top:1rem;transform:translateY(-200%);background:white;padding:.5rem 1rem}
.skip:focus {transform:none}
.wrap {width:min(1280px,calc(100% - 2 * clamp(1rem,5vw,5rem)));margin-inline:auto}
.notice {background:var(--green);color:var(--white);text-align:center;font-size:.77rem;font-weight:650;padding:.5rem 1rem}
.mast {border-bottom:1px solid var(--line)}
.mast-inner {min-height:77px;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand {display:inline-flex;align-items:center;gap:.45rem;white-space:nowrap;font-weight:800;font-size:1.3rem;letter-spacing:-.07em;text-decoration:none}
.brand span {margin-left:-.4rem;color:#687d30}
.mast nav {display:flex;align-items:center;gap:clamp(.8rem,2vw,2rem);font-size:.89rem;font-weight:650}
.mast nav a,footer nav a {display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.mast nav a:hover,footer nav a:hover {text-decoration:underline;text-underline-offset:.25em}
.mast-cta {font-size:.86rem;white-space:nowrap}
.hero {display:grid;grid-template-columns:1fr 1.14fr;gap:clamp(1.25rem,4vw,4.5rem);align-items:center;padding-block:clamp(2.1rem,5vw,4.7rem)}
.hero-copy {display:grid;gap:clamp(1.1rem,2.3vw,2.15rem)}
.eyebrow,.cap {font:750 .72rem/1.4 var(--body);letter-spacing:.14em;text-transform:uppercase}
.eyebrow {color:var(--leaf);display:flex;align-items:center;gap:.55em}
.dot {width:.55em;height:.55em;border-radius:50%;background:#667f39}
.lead {max-width:37ch;font-size:clamp(1rem,1.5vw,1.22rem);color:var(--mute)}
.hero-actions,.campaign-links {display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.35rem}
.text-link {display:inline-flex;gap:.4em;align-items:center;min-height:44px;font-weight:700;text-underline-offset:.25em}
.hero-photo {position:relative;overflow:hidden;background:#244332;border-radius:var(--radius)}
.hero-photo img {width:100%;aspect-ratio:1.18;object-fit:cover}
.hero-photo figcaption {position:absolute;bottom:1rem;right:1rem;background:var(--green);color:var(--white);border-radius:100px;padding:.3em .75em;font-size:.72rem}
.journeys {border-block:1px solid var(--line);background:var(--wheat);padding-block:1.5rem}
.journeys h2 {font:750 .76rem/1.5 var(--body);letter-spacing:.13em;text-transform:uppercase;margin-bottom:.65rem}
.journey-grid {display:grid;grid-template-columns:repeat(3,1fr)}
.journey-grid a {position:relative;display:grid;gap:.25rem;padding:.55rem 2rem .55rem 0;text-decoration:none}
.journey-grid a + a {border-left:1px solid #c1b69e;padding-left:1.35rem}
.journey-grid a:hover strong {text-decoration:underline;text-underline-offset:.25em}
.journey-grid strong {font-size:1.05rem}
.journey-grid span,.small {font-size:.85rem;color:var(--mute)}
.journey-grid b {position:absolute;right:1rem;top:.55rem;color:var(--leaf)}
.section {padding-block:clamp(2.7rem,6vw,6rem)}
.section-head {display:flex;justify-content:space-between;gap:1rem;align-items:end;margin-bottom:1.6rem}
.section-head > div {display:grid;gap:.7rem}
.section-head p:not(.eyebrow) {color:var(--mute);max-width:58ch}
.filters {display:flex;align-items:end;gap:.85rem;margin-bottom:.6rem}
label {display:grid;gap:.32rem;color:var(--green);font-size:.87rem;font-weight:700}
.filters label:first-child {width:min(100%,24rem)}
input,select {width:100%;min-height:46px;padding:.5rem .75rem;color:var(--ink);background:var(--paper);border:1px solid #8c9d8c;border-radius:10px}
.market-grid,.solid-grid {display:grid;gap:1rem;margin-top:.8rem}
.market-grid {grid-template-columns:minmax(0,1fr)}
.solid-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.product {background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:grid;grid-template-columns:.8fr 1.2fr}
.product img,.campaign > img {width:100%;height:100%;min-height:100%;object-fit:cover}
.product img {max-height:430px;aspect-ratio:1.25}
.product-body,.campaign-copy {display:grid;align-content:center;justify-items:start;gap:.7rem;padding:clamp(1rem,3.5vw,2.6rem)}
.product h3,.campaign h3 {font:400 clamp(1.65rem,3vw,2.55rem)/1.1 var(--display);letter-spacing:-.035em}
.pill {display:inline-block;background:var(--lime);border-radius:100px;color:var(--green);font-size:.76rem;font-weight:700;padding:.2em .65em}
.meta {display:flex;flex-wrap:wrap;gap:.25rem 1.1rem;padding:0;margin:0;color:var(--mute);list-style:none;font-size:.88rem}
.price {display:flex;flex-wrap:wrap;align-items:center;gap:.55em}
.price strong {font-size:1.4rem}.price s {color:var(--mute)}
.feedback {margin-top:.6rem;color:var(--leaf);font-weight:650}
.feedback:empty {margin:0}
.soft {background:#eaeddf}
.solid-grid .product {display:flex;flex-direction:column}
.solid-grid .product img {height:clamp(145px,19vw,260px);min-height:0}
.solid-grid .product-body {height:100%;align-content:start}
.steps {display:flex;flex-wrap:wrap;gap:.3rem .8rem;margin:0;padding:0;list-style:none;font-size:.8rem;color:var(--mute)}
.steps [aria-current] {font-weight:800;color:var(--green);text-decoration:underline;text-underline-offset:.23em}
.campaign {display:grid;grid-template-columns:.9fr 1.1fr;background:var(--wheat);border-radius:var(--radius);overflow:hidden}
.campaign-copy > * {width:100%}
progress {appearance:none;display:block;width:100%;height:10px;border:0;border-radius:100px;background:#d7ddc9;overflow:hidden;accent-color:var(--leaf)}
progress::-webkit-progress-bar {background:#d7ddc9}
progress::-webkit-progress-value {background:var(--leaf)}
progress::-moz-progress-bar {background:var(--leaf)}
.sponsor {display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding-top:.65rem;border-top:1px solid #c9c0ab}
.sponsor strong {display:block}
.dark,footer {background:var(--green);color:var(--white)}
.dark .eyebrow,.dark .small,.dark .section-head p:not(.eyebrow),footer p {color:#cfdbb9}
.metrics {display:grid;grid-template-columns:repeat(4,1fr);border-block:1px solid #819277;margin-bottom:1.5rem}
.metric {padding:1.05rem .85rem 1.05rem 0;display:flex;flex-direction:column-reverse;gap:.25rem}
.metric + .metric {border-left:1px solid #819277;padding-left:1rem}
.metric strong {font:400 clamp(1.55rem,3.35vw,3rem)/1 var(--display);color:var(--lime)}
.metric span {font-size:.84rem}
.impact-grid,.league {display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.map-panel,.ledger,.league-board,.goal {border:1px solid #819277;border-radius:var(--radius);padding:clamp(1rem,3vw,2rem)}
.ledger ol {padding-left:1.25rem}.ledger li + li {margin-top:.4rem}
.zones {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:". norte leste" ". centro leste" "sul sul sudeste";gap:.32rem;max-width:410px;margin:1rem 0}
.zones button {min-height:50px;border-radius:8px;padding:.25rem .3rem;background:#2d5540;border-color:#8a9d80;font-size:.78rem}
.zones button[aria-pressed=true] {color:var(--green);background:var(--lime);border-color:var(--lime)}
.zones button:nth-child(1) {grid-area:norte}.zones button:nth-child(2) {grid-area:leste}
.zones button:nth-child(3) {grid-area:centro}.zones button:nth-child(4) {grid-area:sul}.zones button:nth-child(5) {grid-area:sudeste}
.league-board,.goal {display:grid;align-content:start;gap:.75rem;background:var(--paper);border-color:var(--line)}
.league-board select {max-width:18rem}
#ranking {padding-left:1.45rem;margin:0}#ranking li {border-top:1px solid var(--line);padding:.65rem 0}#ranking small {display:block;color:var(--mute)}
.goal {background:var(--lime)}
footer {padding-block:2.2rem}
.footer-grid {display:grid;grid-template-columns:1.1fr .6fr 1fr;gap:1rem 2.5rem}
footer nav {display:grid;align-content:start}
footer .outline {color:var(--white);margin-top:.5rem}
@media (max-width:880px) {
  .mast-cta {display:none}
  .mast-inner {min-height:65px}
}
@media (max-width:670px) {
  .mast-inner {flex-wrap:wrap;padding-block:.65rem}
  .mast nav {width:100%;flex-wrap:wrap;gap:0 1.05rem}
  .hero,.product,.campaign,.impact-grid,.league,.footer-grid,.solid-grid {grid-template-columns:1fr}
  .hero-photo img {aspect-ratio:1.25}
  .journey-grid {grid-template-columns:1fr}
  .journey-grid a + a {border-left:0;border-top:1px solid #c1b69e;padding-left:0}
  .section-head {display:grid}
  .product img,.campaign > img {aspect-ratio:1.8;max-height:260px}
  .product img,.campaign > img,.solid-grid .product img {height:auto;min-height:0}
  .metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
  .metric:nth-child(3) {border-left:0;padding-left:0}
  .metric:nth-child(n+3) {border-top:1px solid #819277}
  .filters {display:grid}
  .filters label:first-child {width:100%}
}
.arrow {display:inline-block;width:.52em;height:.52em;border-top:2px solid currentColor;border-right:2px solid currentColor;position:relative;flex:none}
.arrow::before {content:"";position:absolute;right:-1px;top:-1px;width:.65em;border-top:2px solid currentColor;transform:rotate(-45deg);transform-origin:right}
#ranking details {font-size:.87rem;color:var(--mute)}
#ranking summary {min-height:44px;align-content:center;width:fit-content;cursor:pointer;text-decoration:underline;text-underline-offset:.2em}

/* Interactive states use the same tokens in both environments. */
.api-toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:.85rem;margin-bottom:1rem}
.api-toolbar .unavailable {background:#ffebda;color:#692c16}
.api-form {display:grid;gap:.8rem;max-width:29rem}
.api-form button {justify-self:start}
.api-form textarea {min-height:90px;resize:vertical;border:1px solid #8c9d8c;border-radius:10px;padding:.55rem;color:var(--ink);background:var(--paper);font:inherit;width:100%}
.api-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem;margin-top:1.2rem}
.api-panel {display:grid;gap:.7rem;align-content:start;border:1px solid var(--line);background:var(--paper);padding:1.25rem;border-radius:var(--radius);min-width:0;overflow-wrap:anywhere}
.api-panel button {justify-self:start}
.api-panel summary {cursor:pointer;font-weight:700;min-height:44px;align-content:center}
.api-panel img {border-radius:12px;max-height:300px;object-fit:contain}
.api-message {color:#692c16;font-weight:700}
.api-message:not(:empty),#message:not(:empty) {position:fixed;z-index:4;bottom:1rem;right:1rem;max-width:min(35rem,calc(100% - 2rem));padding:.75rem 1rem;background:var(--paper);border:2px solid currentColor;border-radius:12px;pointer-events:none}
#rankingApi meter,.donation-chart meter {display:block;width:100%;height:1.1rem;accent-color:var(--lime)}
.donation-chart {margin-bottom:1.5rem;max-width:490px}
.donation-chart p {margin-top:.35rem}
@media (prefers-reduced-motion:no-preference) {
  .hero-copy {animation:arrive .5s ease-out both}
  button,.button,input,select,.journey-grid a {transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
  button:not(:disabled):active,.button:active {transform:scale(.97)}
  .api-message:not(:empty),#message:not(:empty),.feedback:not(:empty) {animation:arrive .24s ease-out both}
  @keyframes arrive {from {opacity:0;transform:translateY(8px)}to {opacity:1;transform:none}}
}
.api-enter {justify-self:start}
#rankingApi meter::-webkit-meter-bar,.donation-chart meter::-webkit-meter-bar {background:#314f40;border:0;border-radius:100px}
#rankingApi meter::-webkit-meter-optimum-value,.donation-chart meter::-webkit-meter-optimum-value {background:var(--lime);border-radius:100px}
#rankingApi meter::-moz-meter-bar,.donation-chart meter::-moz-meter-bar {background:var(--lime);border-radius:100px}
#monthsApi meter {display:block;width:100%;height:1rem;margin-block:.2rem .65rem}
#monthsApi meter::-webkit-meter-bar {background:#314f40;border:0;border-radius:100px}
#monthsApi meter::-webkit-meter-optimum-value {background:var(--lime);border-radius:100px}
#monthsApi meter::-moz-meter-bar {background:var(--lime);border-radius:100px}
#rankingApi .small {color:var(--mute)}
#administracao .api-grid {margin-block:.75rem 2rem}
#privateOps {margin-top:2rem}
