:root {
  --bg: #fbfbfd;
  --band: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #c98a12;      /* amarelo dos olhos do Kaneki */
  --accent-soft: #f1e3c4;
  --radius: 28px;
  --maxw: 1080px;
  --nav-h: 52px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.5; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; height: var(--nav-h);
  background: rgba(251,251,253,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: rgba(0,0,0,.1); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-brand { font-weight: 600; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; margin-right: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Botões ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: 0; border-radius: 980px;
  padding: 13px 26px; font-size: 17px; font-weight: 500; text-decoration: none;
  transition: transform .15s, background .2s, opacity .2s;
}
.pill:hover { background: #000; }
.pill:active { transform: scale(.97); }
.pill-sm { padding: 6px 15px; font-size: 13px; }

/* Botão de contribuir: brilho pulsante para chamar atenção */
.pill[data-pix] { position: relative; animation: glow 2.2s ease-in-out infinite; }
.hero .pill[data-pix], .close .pill[data-pix] { padding: 17px 34px; font-size: 19px; }
.pill[data-pix]:hover { animation-play-state: paused; box-shadow: 0 0 0 4px rgba(201,138,18,.35), 0 0 28px 6px rgba(201,138,18,.55); }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,138,18,.55), 0 0 14px 2px rgba(201,138,18,.35); }
  50%      { box-shadow: 0 0 0 9px rgba(201,138,18,0),  0 0 30px 8px rgba(201,138,18,.6); }
}
.pill-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill-ghost:hover { background: var(--ink); color: #fff; }
.pill-block { width: 100%; }
.link { font-size: 17px; color: var(--ink); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Tipografia ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent); text-transform: none; }
h1 { font-size: clamp(42px, 9vw, 84px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 5.5vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.lead { font-size: clamp(19px, 2.8vw, 24px); line-height: 1.35; color: var(--muted); max-width: 620px; margin: 22px auto 0; letter-spacing: -0.015em; }
.sub { color: var(--muted); font-size: 19px; line-height: 1.4; margin-top: 14px; }

/* ---------- Topo ---------- */
.hero { text-align: center; padding: 64px 24px 0; max-width: var(--maxw); margin: 0 auto; }
.hero .eyebrow { margin-bottom: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: center; margin-top: 30px; }
.hero-photo { margin: 56px auto 0; max-width: 560px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--band); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Faixas ---------- */
.band { background: var(--band); padding: 96px 0; }
.progress { padding: 72px 0 80px; text-align: center; }
.big-number { font-size: clamp(46px, 11vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 10px 0 28px; font-variant-numeric: tabular-nums; }
.big-number .of { font-size: .36em; font-weight: 500; color: var(--muted); letter-spacing: -0.02em; display: block; margin-top: 6px; }
.bar { height: 14px; border-radius: 99px; background: #e3e3e8; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width 1.6s cubic-bezier(.22,.8,.2,1); }
.bar-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Fatos ---------- */
.facts { padding: 96px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.facts-grid dt { font-size: clamp(38px, 6vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.facts-grid dd { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.35; max-width: 240px; margin-left: auto; margin-right: auto; }

/* ---------- História ---------- */
.story h2 { margin-bottom: 36px; }
.prose p { font-size: 19px; line-height: 1.6; margin-bottom: 22px; color: #2c2c2e; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }

/* ---------- Galeria ---------- */
.gallery { padding: 96px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--band); }
.gallery-grid img:nth-child(2) { object-position: 50% 45%; }

/* ---------- Valores ---------- */
.costs-list { list-style: none; padding: 0; margin-top: 44px; }
.costs-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.costs-list .row { display: flex; justify-content: space-between; gap: 16px; font-size: 19px; }
.costs-list b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.costs-list i { display: block; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--accent-soft); position: relative; overflow: hidden; }
.costs-list i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 4px; transition: width 1.2s cubic-bezier(.22,.8,.2,1) .2s; }
.costs-list li.in i::after { width: var(--w); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 24px; font-size: 21px; font-weight: 600; }
.total b { font-size: 34px; letter-spacing: -0.03em; }
.note { margin-top: 20px; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Documentos ---------- */
.docs { padding: 96px 0; }
.docs .sub { max-width: 640px; }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.doc { background: var(--band); border: 0; border-radius: 22px; padding: 18px 18px 16px; text-align: left; transition: transform .25s, box-shadow .25s; }
.doc:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.1); }
.doc img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 12px; background: #fff; }
.doc span { display: block; margin-top: 14px; font-weight: 600; font-size: 16px; }

/* ---------- Fechamento ---------- */
.close h2 { margin-bottom: 0; }
.center-actions { margin-top: 32px; }
.holder { margin-top: 36px; font-size: 14px; color: var(--muted); }

.footer { text-align: center; padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }

/* ---------- Diálogos ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.close-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.07); font-size: 22px; line-height: 1; }
.close-x:hover { background: rgba(0,0,0,.14); }

.sheet { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; background: #fff; border-radius: 28px; padding: 40px 28px 28px; margin: auto; position: fixed; }
.sheet[open] { animation: pop .35s cubic-bezier(.2,.9,.3,1); }
.sheet h2 { font-size: 28px; }
.sheet .sub { font-size: 16px; margin-top: 8px; }
.qr { width: 220px; height: 220px; margin: 24px auto 18px; padding: 12px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.qr svg, .qr img { width: 100%; height: 100%; }
.qr .qr-empty { font-size: 14px; color: var(--muted); text-align: center; padding: 8px; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.code { background: var(--band); border-radius: 14px; padding: 12px 14px; font: 12.5px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-break: break-all; max-height: 92px; overflow: auto; margin-bottom: 14px; user-select: all; }
.holder-sm { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.holder-sm b { color: var(--ink); font-weight: 600; }
.steps { margin: 18px 0 0; padding-left: 20px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.steps li { margin-bottom: 4px; }

.lightbox { background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; display: none; place-items: center; overflow: auto; }
.lightbox[open] { display: grid; }
.lightbox img { max-width: min(96vw, 900px); max-height: 94dvh; width: auto; height: auto; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .close-x { position: fixed; background: rgba(255,255,255,.9); }

@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Revelar ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 44px; }
  .hero-photo { margin-top: 40px; border-radius: 22px 22px 0 0; }
  .band, .facts, .gallery, .docs { padding: 72px 0; }
  .facts-grid { grid-template-columns: 1fr; gap: 44px; }
  .docs-grid { gap: 10px; }
  .doc { padding: 10px 10px 12px; border-radius: 16px; }
  .doc span { font-size: 13px; margin-top: 10px; }
  .gallery-grid { gap: 10px; }
  .gallery-grid img { border-radius: 18px; }
  .prose p { font-size: 17px; }
  .costs-list .row { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bar-fill, .costs-list i::after { transition: none; }
  .pill[data-pix] { animation: none; box-shadow: 0 0 0 4px rgba(201,138,18,.35), 0 0 22px 4px rgba(201,138,18,.45); }
}
