:root {
  /* Marca Hora do Bem — azul #06178D, dourado #F8BF0D, branco.
     Variacoes: azul vivo #0841E0, dourado claro #FAE758.
     REGRA: o dourado tem 1.69 de contraste sobre branco, entao ele e preenchimento
     sobre azul, nunca texto em fundo claro. Para texto dourado use --gold (mesma
     matiz a 55%, contraste 5.16). Neutros puxados para o azul e bem claros. */
  --ground: #FFFFFF; --surface: #FFFFFF; --surface-2: #F8FAFE; --surface-3: #F0F4FD;
  --line: #E4EAF6; --line-soft: #F0F3FB;
  --ink: #0B1430; --ink-2: #414E6B; --ink-muted: #6B7690;
  --brand: #0841E0; --brand-2: #06178D; --brand-wash: #EAF0FE;
  --gold: #886907; --gold-bright: #F8BF0D; --gold-light: #FAE758;
  --gold-wash: #FEF7DC; --badge: #06178D;
  --warn: #A96C0A; --warn-wash: #FBF3E4; --crit: #BE3F2A; --crit-wash: #FAEAE6;
  --display: "Nunito", "Varela Round", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", "Roboto Mono", Consolas, monospace;
  --r-sm: 5px; --r: 8px; --r-lg: 12px;
}

* { box-sizing: border-box; }
html { background: #FFFFFF; color-scheme: only light; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--brand); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* topo */
.top { background: var(--badge); padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; line-height: 0; text-decoration: none; }
.brand img { height: 48px; width: auto; display: block; }
@media (max-width: 480px) { .brand img { height: 38px; } }
.nav { display: flex; flex-wrap: wrap; gap: 3px; }
.nav a { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.72); text-decoration: none; padding: 6px 10px; border-radius: var(--r-sm); }
.nav a:hover { color: #FFF; background: rgba(255,255,255,.09); }
.nav a[aria-current="page"] { color: var(--badge); background: var(--gold-bright); }

.attrib { background: var(--brand-wash); color: var(--brand-2); font-size: 12.5px; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); }
.attrib[hidden] { display: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 26px 20px 60px; }
.wrap.narrow { max-width: 460px; }

.hero { padding: 8px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.hero .kicker { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero h1 { font-size: clamp(22px, 3vw, 29px); margin-top: 10px; }
.hero p { color: var(--ink-muted); font-size: 14.5px; margin-top: 9px; max-width: 56ch; }

/* grade de doações */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); text-decoration: none; color: inherit; }
.card .img { aspect-ratio: 4/3; background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .img .tag { position: absolute; top: 9px; left: 9px; }
.card .txt { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card b { font-size: 14px; font-weight: 600; line-height: 1.35; }
.card .val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--brand); }
.card .meta { font-size: 11.5px; color: var(--ink-muted); margin-top: auto; }
.card .btn { margin-top: 10px; }

.tag { display: inline-flex; padding: 2px 8px; border-radius: var(--r-sm); font-size: 11px; font-weight: 500; }
.tag.brand { background: var(--brand-wash); color: var(--brand-2); }
.tag.warn { background: var(--warn-wash); color: var(--warn); }
.tag.crit { background: var(--crit-wash); color: var(--crit); }
.tag.mute { background: var(--surface-2); color: var(--ink-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: var(--r); font-size: 14px; font-weight: 600; border: 1px solid var(--brand); background: var(--brand); color: #FFF; text-decoration: none; width: 100%; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.sec { background: var(--surface); color: var(--ink); border-color: var(--line); font-weight: 500; }
.btn.sec:hover { background: var(--surface-2); border-color: var(--ink-muted); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.auto { width: auto; }

/* ficha da doação */
.ficha { display: flex; flex-wrap: wrap; gap: 26px; }
.ficha .shot { flex: 1 1 300px; aspect-ratio: 4/3; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ficha .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ficha .info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 13px; align-items: flex-start; }
.ficha h1 { font-size: clamp(21px, 3vw, 27px); line-height: 1.2; }
.ficha .val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 23px; color: var(--brand); letter-spacing: -.03em; }
.ficha p { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.ficha .campaign-copy { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; border-top: 1px solid var(--line); padding-top: 13px; width: 100%; }
.ficha .campaign-copy p { margin: 0 0 10px; }
.ficha .facts { display: flex; flex-wrap: wrap; gap: 7px 22px; font-size: 12.5px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 13px; width: 100%; }
.ficha .facts b { color: var(--ink); font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }

.passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 30px; }
.passos > div { background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 7px; }
.passos .n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.passos b { font-family: var(--display); font-size: 14px; }
.passos p { font-size: 12.5px; color: var(--ink-muted); line-height: 1.55; }

/* anúncio */
.ad { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r); padding: 16px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-muted); line-height: 1.6; margin: 26px 0; }

/* formulário */
.prog { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-bottom: 20px; }
.prog .track { flex: 1; height: 3px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.prog .track i { display: block; height: 100%; background: var(--brand); transition: width .3s ease; }

.step { display: none; }
.step.on { display: block; }
.step h1 { font-size: 21px; }
.step .lead { color: var(--ink-muted); font-size: 13.5px; margin-top: 8px; line-height: 1.55; }
.step .lead b { color: var(--ink-2); font-weight: 600; }

.fields { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.field input { font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; width: 100%; }
.field input:focus { border-color: var(--brand); outline: none; }
.field input::placeholder { color: var(--ink-muted); opacity: .65; }
.field.bad input { border-color: var(--crit); }
.field .msg { font-size: 12.5px; color: var(--crit); }
.field .hint { font-size: 12px; color: var(--ink-muted); }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.consent input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }

.code { display: flex; gap: 8px; }
.code input { font-family: var(--mono); font-size: 21px; text-align: center; padding: 12px 0; letter-spacing: 0; }

.alert { border-radius: var(--r); padding: 13px 14px; font-size: 13px; line-height: 1.55; }
.alert.warn { border: 1px solid var(--warn); background: var(--warn-wash); color: var(--warn); }
.alert.crit { border: 1px solid var(--crit); background: var(--crit-wash); color: var(--crit); }
.alert.dev { border: 1px dashed var(--ink-muted); background: var(--surface-2); color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; }
.alert.dev b { color: var(--brand); font-size: 15px; }

.seal { width: 54px; height: 54px; border-radius: 50%; background: var(--gold-wash); border: 1px solid var(--gold-bright); color: var(--gold); display: grid; place-items: center; font-size: 23px; margin: 0 auto 18px; }
.done { text-align: center; }
.done .proto { font-family: var(--mono); font-size: 14px; background: var(--surface-2); border-radius: var(--r); padding: 12px; margin: 18px 0; letter-spacing: .02em; }

.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

.lista { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.item { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 5px; }
.item b { font-size: 14px; font-weight: 600; }
.item span { font-size: 12px; color: var(--ink-muted); }

.foot { border-top: 1px solid var(--line); padding: 22px 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.foot p, .foot a { font-size: 12px; color: var(--ink-muted); text-decoration: none; }
.foot .links { display: flex; gap: 16px; flex-wrap: wrap; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { text-align: left; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; padding: 0 10px 10px; white-space: nowrap; }
tbody td { padding: 11px 10px; border-top: 1px solid var(--line-soft); }
.t-wrap { overflow-x: auto; }
