/* ==========================================================================
   Vaquinha — folha de estilo da página pública
   Paleta: verde-mata (confiança), girassol (ação de doar), papel-sálvia (fundo)
   ========================================================================== */

:root {
  --c-paper: #F2F5F0;
  --c-white: #FFFFFF;
  --c-ink: #16241F;
  --c-ink-soft: #4A5A53;
  --c-forest: #1E4A3B;
  --c-forest-deep: #133328;
  --c-forest-soft: #3C7360;
  --c-sun: #F4B740;
  --c-sun-deep: #E39E1B;
  --c-sun-pale: #FCEBC4;
  --c-sage: #DCE7DE;
  --c-sage-strong: #A9C3AF;
  --c-clay: #E3CDB2;
  --c-line: rgba(22, 36, 31, .12);
  --c-danger: #B3261E;

  --f-ui: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Literata", Georgia, "Times New Roman", serif;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.3125rem;
  --step-3: 1.75rem;
  --step-4: clamp(1.9rem, 1.4rem + 1.8vw, 2.4rem);
  --step-5: clamp(2.3rem, 1.6rem + 2.8vw, 3.3rem);
  --step-6: clamp(2.6rem, 1.5rem + 4.2vw, 4.4rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --shadow-lift: 0 1px 2px rgba(19, 51, 40, .06), 0 12px 32px -8px rgba(19, 51, 40, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-ui);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--c-forest); text-underline-offset: .18em; }
a:hover { color: var(--c-forest-soft); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--c-sun-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--c-ink-soft); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }

.sample-banner {
  background: var(--c-sun-pale);
  color: #5B4310;
  font-size: var(--step--1);
  text-align: center;
  padding: 8px var(--gutter);
  border-bottom: 1px solid rgba(91, 67, 16, .15);
}

/* ---------- Botões ---------- */
.btn {
  --bg: var(--c-forest); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.35em;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 var(--step-0)/1.1 var(--f-ui); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(19, 51, 40, .55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-sun { --bg: var(--c-sun); --fg: var(--c-forest-deep); }
.btn-sun:hover { --bg: #F7C35C; box-shadow: 0 12px 26px -10px rgba(227, 158, 27, .8); }
.btn-forest { --bg: var(--c-forest); --fg: #fff; }
.btn-forest:hover { --bg: var(--c-forest-soft); }
.btn-ghost { --bg: transparent; --fg: var(--c-forest); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { --bg: rgba(30, 74, 59, .06); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: var(--step--1); }
.btn-lg { min-height: 56px; padding: .9em 1.7em; font-size: var(--step-1); }
.btn-block { width: 100%; }
.btn .ico { stroke-width: 2; }
.btn-sun .ico { fill: currentColor; stroke: none; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242, 245, 240, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .25s var(--ease);
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--c-line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); font-weight: 750; letter-spacing: -.01em; min-width: 0; }
.brand:hover { color: var(--c-ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; background: var(--c-forest); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 18px; height: 18px; fill: var(--c-sun); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--c-ink-soft); text-decoration: none; font-weight: 550; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--c-sun); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--c-ink); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Apresentação ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(80px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-by { color: var(--c-ink-soft); font-size: .95rem; margin-bottom: 20px; }
.hero-by strong { color: var(--c-forest); font-weight: 650; }
.hero-title { font-size: var(--step-6); font-weight: 760; letter-spacing: -.035em; line-height: 1.02; font-variation-settings: "opsz" 96; max-width: 14ch; }
.hero-lede { font-family: var(--f-read); font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--c-ink-soft); margin-top: 22px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-media { position: relative; margin: 0; padding-bottom: 40px; }
.arch {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 30px 30px;
  overflow: hidden;
  background: var(--c-clay);
  box-shadow: 0 30px 60px -30px rgba(19, 51, 40, .45);
  max-height: 640px;
  margin-left: auto;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.progress-card {
  position: absolute; left: clamp(-56px, -4vw, -20px); bottom: 0;
  width: min(370px, 88%);
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-lift);
}
.pc-raised { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pc-raised strong { font-size: 2rem; font-weight: 780; letter-spacing: -.03em; color: var(--c-forest-deep); font-variant-numeric: tabular-nums; }
.pc-raised span { color: var(--c-ink-soft); }
.pc-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; margin: 14px 0 0; }
.pc-facts dt { font-size: .8rem; color: var(--c-ink-soft); }
.pc-facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--c-line); font-size: .85rem; color: var(--c-ink-soft); display: flex; align-items: center; gap: 6px; }
.pc-foot[data-has-text=""], .pc-offline[data-has-text=""], .ledger-offline[data-has-text=""] { display: none; }
.pc-offline { margin-top: 10px; font-size: .82rem; color: var(--c-ink-soft); }
.ledger-offline { margin-top: 22px; font-size: .9rem; color: #D5E3D9; max-width: 52ch; }

/* Medidor de progresso */
.meter { height: 12px; border-radius: 999px; background: var(--c-sage); overflow: hidden; margin-top: 12px; }
.meter > span {
  display: block; height: 100%; min-width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--c-sun-deep), var(--c-sun));
  transition: width 1.1s var(--ease);
}
.meter-sm { height: 8px; margin-top: 0; }
.meter-lg { height: 18px; }
.js-ready .meter.is-pre > span { width: 0 !important; }

/* ---------- Vídeo ---------- */
.video-section { background: var(--c-forest-deep); color: #EAF1EC; padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.video-grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.video-copy h2 { font-size: var(--step-5); color: #fff; letter-spacing: -.03em; }
.video-copy p { font-family: var(--f-read); font-size: var(--step-1); line-height: 1.65; margin-top: 18px; color: #C9D8CE; max-width: 40ch; }
.video-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #0C221B; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; display: block; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); }
.video-frame:hover img { transform: scale(1.03); filter: brightness(.92); }
.video-frame .play {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-radius: 50%; background: var(--c-sun); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(244, 183, 64, .55);
  transition: transform .25s var(--ease);
  animation: halo 2.6s var(--ease) infinite;
}
.video-frame .play svg { width: 34px; height: 34px; fill: var(--c-forest-deep); margin-left: 5px; }
.video-frame:hover .play { transform: scale(1.08); }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(244, 183, 64, .5); } 70%, 100% { box-shadow: 0 0 0 26px rgba(244, 183, 64, 0); } }
.video-frame-empty { cursor: default; }
.video-frame-empty p { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; background: linear-gradient(transparent, rgba(12, 34, 27, .85)); color: #fff; font-weight: 600; }
.video-grid.is-portrait { grid-template-columns: minmax(0, 520px) minmax(0, 360px); justify-content: space-evenly; }
.video-grid.is-portrait .video-copy p { max-width: 46ch; }
.video-player.is-portrait { aspect-ratio: 9 / 16; width: 100%; max-width: 360px; justify-self: center; max-height: 80vh; }
.video-player.is-portrait .play { top: 46%; }
.video-player iframe, .video-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ---------- História ---------- */
.story { padding: clamp(80px, 10vw, 140px) 0; }
.story-grid { display: grid; grid-template-columns: .85fr 1.3fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.story-head { position: sticky; top: 104px; }
.story-head h2 { font-size: var(--step-5); letter-spacing: -.03em; max-width: 12ch; }
.story-lead { font-family: var(--f-read); font-style: italic; font-size: var(--step-2); line-height: 1.55; color: var(--c-ink-soft); margin: 22px 0 30px; max-width: 34ch; }
.story-block { padding: 34px 0; border-top: 1px solid var(--c-line); }
.story-block:first-child { border-top: 0; padding-top: 0; }
.story-block h3 { font-size: var(--step-2); color: var(--c-forest); margin-bottom: 14px; letter-spacing: -.01em; }
.story-block p { font-family: var(--f-read); font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem); line-height: 1.75; max-width: 62ch; }
.story-block p + p { margin-top: 1em; }

/* ---------- Doação ---------- */
.donate { background: var(--c-sage); padding: clamp(80px, 9vw, 130px) 0; position: relative; }
.donate::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 60px;
  background: var(--c-paper); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.donate-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.donate-intro h2 { font-size: var(--step-5); letter-spacing: -.03em; max-width: 13ch; }
.donate-intro > p { font-family: var(--f-read); font-size: var(--step-1); line-height: 1.65; color: var(--c-ink-soft); margin-top: 18px; max-width: 42ch; }
.assurances { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.assurances li { display: flex; gap: 14px; align-items: flex-start; max-width: 46ch; }
.assurances .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--c-white); color: var(--c-forest); }
.assurances strong { display: block; }
.assurances span { color: var(--c-ink-soft); }
.assurances span strong { color: var(--c-ink); }
.donate-mini-progress { margin-top: 34px; max-width: 360px; }
.donate-mini-progress p { margin-top: 10px; color: var(--c-ink-soft); font-size: .95rem; }
.donate-mini-progress strong { color: var(--c-ink); }

.donate-card {
  background: var(--c-white);
  border-radius: 30px;
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: 0 40px 80px -48px rgba(19, 51, 40, .55);
}
.amounts { border: 0; margin: 0; padding: 0; min-width: 0; }
.amounts legend { font-weight: 700; font-size: var(--step-1); margin-bottom: 14px; padding: 0; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amount-chip { position: relative; display: block; cursor: pointer; }
.amount-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.amount-chip span {
  display: flex; align-items: center; justify-content: center; min-height: 62px; padding: 8px;
  border-radius: var(--r-md); border: 1.5px solid var(--c-line);
  font-weight: 750; font-size: var(--step-2); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.amount-chip:hover span { border-color: var(--c-forest-soft); }
.amount-chip input:checked + span { background: var(--c-forest); border-color: var(--c-forest); color: #fff; transform: scale(1.02); }
.amount-chip input:focus-visible + span { outline: 3px solid var(--c-sun-deep); outline-offset: 2px; }
.amount-chip-custom { grid-column: span 2; }
.amount-chip-custom span { font-size: var(--step-0); font-weight: 650; }

.custom-amount { margin-top: 14px; animation: drop .25s var(--ease); }
.custom-amount label { display: block; font-weight: 600; margin-bottom: 6px; }
.money-input { display: flex; align-items: center; border: 1.5px solid var(--c-line); border-radius: var(--r-md); padding: 0 16px; transition: border-color .18s; }
.money-input:focus-within { border-color: var(--c-forest); box-shadow: 0 0 0 4px rgba(30, 74, 59, .12); }
.money-input span { font-weight: 700; color: var(--c-ink-soft); }
.money-input input { flex: 1; border: 0; outline: 0; background: none; font: 750 var(--step-3)/1 var(--f-ui); padding: 14px 10px; min-width: 0; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.custom-amount small { color: var(--c-ink-soft); display: block; margin-top: 6px; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.donor-details { margin-top: 22px; border-top: 1px solid var(--c-line); padding-top: 16px; }
.donor-details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 8px; }
.donor-details summary::-webkit-details-marker { display: none; }
.donor-details summary::before { content: "+"; width: 24px; height: 24px; border-radius: 50%; background: var(--c-sage); display: grid; place-items: center; font-weight: 700; transition: transform .2s var(--ease); }
.donor-details[open] summary::before { content: "−"; }
.donor-details summary small { color: var(--c-ink-soft); font-weight: 500; font-size: inherit; white-space: nowrap; }
.field { margin-top: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field label .muted { font-weight: 450; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); padding: 12px 14px;
  font: inherit; color: inherit; background: #fff; transition: border-color .18s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--c-forest); box-shadow: 0 0 0 4px rgba(30, 74, 59, .12); }
.field input[aria-invalid="true"], .money-input.is-invalid { border-color: var(--c-danger); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-forest); flex: none; }

.donate-total { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 14px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.donate-total span { color: var(--c-ink-soft); }
.donate-total strong { font-size: var(--step-3); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.field-error, .form-error { color: var(--c-danger); font-size: .9rem; margin-top: 6px; min-height: 0; }
.field-error:empty, .form-error:empty { display: none; }
.legal-note { margin-top: 14px; font-size: .82rem; color: var(--c-ink-soft); text-align: center; }
.notice { padding: 12px 14px; border-radius: var(--r-sm); font-size: .92rem; margin-bottom: 18px; }
.notice-warn { background: var(--c-sun-pale); color: #5B4310; }

.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(19, 51, 40, .25); border-top-color: var(--c-forest-deep); animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: .65; }
button[disabled] { cursor: not-allowed; opacity: .7; transform: none !important; box-shadow: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dados do pagador (exigidos pelo intermediador) */
.payer-fields { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--c-line); }
.payer-note { margin-top: 12px; font-size: .85rem; color: var(--c-ink-soft); }

/* Chave PIX direta */
.pix-key-card { text-align: center; }
.pk-label { font-weight: 650; color: var(--c-ink-soft); }
.pk-key {
  margin: 10px 0 20px; padding: 18px 12px; border-radius: var(--r-md);
  background: var(--c-paper); border: 1.5px dashed var(--c-sage-strong);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 780; letter-spacing: .01em;
  color: var(--c-forest-deep); font-variant-numeric: tabular-nums; user-select: all; overflow-wrap: anywhere;
}
.pix-key-card [data-copy-key].is-done { --bg: var(--c-forest); --fg: #fff; }
.pk-steps { text-align: left; margin: 24px 0 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--c-ink-soft); }
.pk-steps strong { color: var(--c-ink); }
.pk-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-line); font-weight: 600; }

/* ---------- Transparência ---------- */
.transparency { padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); }
.section-head { display: grid; grid-template-columns: .85fr 1.3fr; gap: clamp(24px, 7vw, 110px); align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: var(--step-5); letter-spacing: -.03em; max-width: 13ch; }
.section-text p { font-family: var(--f-read); font-size: var(--step-1); line-height: 1.7; color: var(--c-ink-soft); max-width: 60ch; }
.section-text p + p { margin-top: .8em; }

.ledger { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--c-white); border-radius: 30px; overflow: hidden; }
.ledger.is-single { grid-template-columns: 1fr; }
.ledger-main { padding: clamp(26px, 4vw, 48px); background: var(--c-forest); color: #EAF1EC; }
.ledger-label { font-size: .9rem; color: #B9CDBF; }
.ledger-big { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem); font-weight: 780; letter-spacing: -.04em; line-height: 1; color: #fff; margin: 8px 0 22px; font-variant-numeric: tabular-nums; }
.ledger-main .meter { background: rgba(255, 255, 255, .14); }
.ledger-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.ledger-num { font-size: var(--step-3); font-weight: 750; color: #fff; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ledger-note { margin-top: 30px; font-size: .88rem; color: #B9CDBF; display: flex; gap: 8px; align-items: center; }
.ledger-note .ico { color: var(--c-sun); }
.ledger-alloc { padding: clamp(26px, 4vw, 48px); }
.ledger-alloc h3 { font-size: var(--step-2); margin-bottom: 20px; }
.alloc-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; gap: 3px; }
.alloc-bar span { display: block; flex-grow: 0; flex-shrink: 1; }
.alloc-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 4px; }
.alloc-list li { display: grid; grid-template-columns: 14px 1fr auto; column-gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.alloc-list li:last-child { border-bottom: 0; }
.alloc-list i { width: 14px; height: 14px; border-radius: 4px; }
.alloc-list strong { font-variant-numeric: tabular-nums; }
.alloc-list em { grid-column: 2 / 4; font-style: normal; font-size: .85rem; color: var(--c-ink-soft); }

/* ---------- Depoimentos e agradecimentos ---------- */
.voices { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 10vw, 140px); }
.voices-h { font-size: var(--step-4); letter-spacing: -.025em; margin-bottom: 34px; }
.testimonials { margin-bottom: clamp(70px, 9vw, 120px); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.testimonial { margin: 0; padding-top: 26px; border-top: 3px solid var(--c-sun); }
.testimonial blockquote { margin: 0; font-family: var(--f-read); font-size: var(--step-1); line-height: 1.65; }
.testimonial blockquote p + p { margin-top: .8em; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial small { display: block; color: var(--c-ink-soft); font-size: .88rem; }

.thanks { display: grid; grid-template-columns: .85fr 1.3fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.thanks.is-single { grid-template-columns: 1fr; }
.thanks.is-single .thanks-copy h2 { max-width: 20ch; }
.thanks.is-single .thanks-copy p { max-width: 62ch; }
.thanks-copy h2 { font-size: var(--step-5); letter-spacing: -.03em; max-width: 13ch; }
.thanks-copy p { font-family: var(--f-read); font-size: var(--step-1); line-height: 1.65; color: var(--c-ink-soft); margin: 18px 0 28px; max-width: 40ch; }
.supporters h3 { font-size: var(--step-1); margin-bottom: 10px; }
.supporter-list { list-style: none; margin: 0; padding: 0; }
.supporter { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.supporter.is-new { animation: arrive .9s var(--ease); }
@keyframes arrive { from { background: var(--c-sun-pale); } }
.supporter-empty { display: block; color: var(--c-ink-soft); font-family: var(--f-read); font-style: italic; border-bottom: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c-sage); color: var(--c-forest); display: grid; place-items: center; font-weight: 750; font-size: .95rem; flex: none; }
.avatar-anon { background: var(--c-sun-pale); color: var(--c-sun-deep); }
.supporter-body strong { display: block; font-weight: 650; }
.supporter-body q { display: block; color: var(--c-ink-soft); font-family: var(--f-read); font-size: .95rem; margin-top: 2px; }
.supporter time { font-size: .82rem; color: var(--c-ink-soft); white-space: nowrap; }

/* ---------- Rodapé ---------- */
.footer { background: var(--c-forest-deep); color: #C9D8CE; padding: clamp(60px, 8vw, 96px) 0 0; }
.footer a { color: #fff; }
.footer a:hover { color: var(--c-sun); }
.footer a.btn, .footer a.btn:hover { color: var(--fg); }
.footer-grid.no-contact { grid-template-columns: 1.3fr 1fr; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.footer-name { font-size: var(--step-3); font-weight: 760; color: #fff; letter-spacing: -.02em; margin-bottom: 12px; }
.footer-brand p:not(.footer-name) { max-width: 44ch; margin-bottom: 24px; }
.footer h2 { font-size: var(--step-0); color: #fff; margin-bottom: 14px; }
.footer-org p + p { margin-top: 8px; }
.footer-org .muted { color: #93AA9C; font-size: .9rem; }
.org-name { display: flex; gap: 8px; color: #fff; font-weight: 600; }
.footer-contact ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact .ico { color: var(--c-sun); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.footer-bottom nav { display: flex; gap: 22px; }

/* ---------- Botão fixo no celular ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px -12px rgba(19, 51, 40, .35);
  transform: translateY(0); transition: transform .3s var(--ease);
}
.mobile-cta.is-hidden { transform: translateY(110%); }
.mobile-cta-progress { flex: 1; min-width: 0; }
.mobile-cta-progress strong { display: block; font-size: .95rem; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.mobile-cta .btn { flex: none; }

/* ---------- Diálogo PIX ---------- */
.pix-dialog {
  width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  border: 0; border-radius: 28px; padding: 34px 30px 30px;
  background: var(--c-white); color: var(--c-ink);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
  overflow: auto;
}
.pix-dialog::backdrop { background: rgba(19, 51, 40, .55); backdrop-filter: blur(4px); }
.pix-dialog[open] { animation: rise .32s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c-paper); cursor: pointer; display: grid; place-items: center; color: var(--c-ink); }
.dialog-close:hover { background: var(--c-sage); }
.pix-state { text-align: center; }
.pix-state h2 { font-size: var(--step-3); letter-spacing: -.02em; }
.pix-state > p { margin-top: 10px; color: var(--c-ink-soft); }
.pix-amount { font-size: var(--step-4); font-weight: 780; color: var(--c-forest) !important; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pix-steps { text-align: left; margin: 16px auto 0; padding-left: 1.3em; color: var(--c-ink-soft); font-size: .94rem; display: grid; gap: 4px; max-width: 34ch; }
.qr-box { margin: 18px auto 0; width: 236px; height: 236px; padding: 8px; border-radius: 20px; border: 1.5px solid var(--c-line); background: #fff; }
.qr-box img { width: 100%; height: 100%; image-rendering: pixelated; }
.copy-code { margin-top: 18px; text-align: left; }
.copy-code label { font-weight: 600; font-size: .92rem; }
.copy-row { display: flex; gap: 8px; margin-top: 6px; }
.copy-row input { flex: 1; min-width: 0; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); padding: 10px 12px; font: .85rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--c-paper); color: var(--c-ink-soft); }
.copy-row .btn { min-height: 44px; padding: .5em 1em; font-size: .95rem; }
.copy-row .btn.is-done { --bg: var(--c-forest-soft); }
.pix-wait { margin-top: 18px !important; font-size: .92rem; color: var(--c-ink) !important; font-weight: 600; }
.pix-wait .pulse { display: inline-block; vertical-align: middle; margin-right: 8px; }
.pix-expires { font-size: .85rem; margin-top: 2px !important; font-variant-numeric: tabular-nums; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--c-sun-deep); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .5; } }
.big-spinner { width: 46px; height: 46px; margin: 18px auto 16px; border-radius: 50%; border: 4px solid var(--c-sage); border-top-color: var(--c-forest); animation: spin .8s linear infinite; }
.pix-success .success-mark { width: 84px; height: 84px; margin: 4px auto 18px; border-radius: 50%; background: var(--c-forest); display: grid; place-items: center; animation: pop .5s var(--ease); }
.pix-success .success-mark svg { width: 42px; height: 42px; fill: none; stroke: var(--c-sun); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pix-success h2 { line-height: 1.2; }
.thanks-note { margin-top: 14px !important; color: var(--c-ink) !important; font-weight: 550; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.pix-state .btn { margin-top: 20px; }
.share-row .btn { margin-top: 0; }

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--c-ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animação de entrada (um único momento orquestrado) ---------- */
.js-ready .hero-copy > * { animation: enter .7s var(--ease) both; }
.js-ready .hero-copy > :nth-child(2) { animation-delay: .06s; }
.js-ready .hero-copy > :nth-child(3) { animation-delay: .14s; }
.js-ready .hero-copy > :nth-child(4) { animation-delay: .22s; }
.js-ready .arch { animation: unveil 1s var(--ease) both; }
.js-ready .progress-card { animation: enter .8s .35s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round 999px 999px 30px 30px); } to { clip-path: inset(0 0 0 0 round 999px 999px 30px 30px); } }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero-grid, .video-grid, .story-grid, .donate-grid, .section-head, .thanks, .ledger { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; width: 100%; margin: 0 auto; }
  .arch { max-height: none; aspect-ratio: 5 / 5.4; }
  .progress-card { left: 50%; transform: translateX(-50%); width: min(400px, 92%); }
  .js-ready .progress-card { animation: none; }
  .story-head { position: static; }
  .video-grid.is-portrait { grid-template-columns: 1fr; }
  .video-player.is-portrait { justify-self: center; max-width: min(340px, 100%); }
  .story-head h2, .donate-intro h2, .section-head h2, .thanks-copy h2, .hero-title { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section-head { align-items: start; margin-bottom: 32px; }
}

@media (max-width: 860px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 84px; }
  .toast { bottom: 110px; }
}

@media (max-width: 600px) {
  .brand-name { font-size: .95rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .amount-chip span { min-height: 56px; }
  .ledger-row { grid-template-columns: 1fr 1fr; }
  .ledger-row > :last-child { grid-column: 1 / -1; }
  .footer-grid, .footer-grid.no-contact { grid-template-columns: 1fr; }
  .supporter { grid-template-columns: 40px 1fr; }
  .supporter time { grid-column: 2; }
  .pix-dialog { padding: 30px 20px 22px; margin-bottom: 12px; }
  .video-frame .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .video-frame .play svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
