/* ============================================================
   Campanha Animalife — Esterilização
   Mobile-first. Branco predominante. Roxo/laranja com contenção.
   ============================================================ */

:root {
  /* Brand */
  --purple: #92278F;
  --purple-deep: #7a1f78;
  --orange: #F89521;
  --ink: #111111;
  --muted: #494949;
  --line: #e7e2da;
  --soft: #efeae2;
  --white: #ffffff;
  --bg: #f5f2ec;            /* warm neutral paper — page background */

  /* Color presence (driven by data-intensity) */
  --accent-block: transparent;     /* big colored blocks — off by default */
  --accent-tint: rgba(146,39,143,0.05);
  --hero-overlay: 0.42;

  /* Animation */
  --anim-mult: 1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --page-w: 460px;
  --pad: 24px;

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

/* The mobile campaign column, centered on any viewport */
.page {
  position: relative;
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  overflow: hidden;
}

/* ---------- Global sticky progress (very top edge) ---------- */
.gprogress {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-w);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.gprogress.show { opacity: 1; }
.gprogress__track { height: 4px; background: rgba(17,17,17,0.08); }
.gprogress__fill {
  height: 100%;
  width: 0;
  background: var(--purple);
  transition: width 1.2s var(--ease);
}
.gprogress__label {
  position: absolute;
  top: 4px; right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.92);
  padding: 3px 8px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-w);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(255,255,255,0);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 11px;
  padding-bottom: 11px;
}
.header__logo { height: 24px; width: auto; transition: filter .35s var(--ease); }
/* over the dark hero, lift the logo onto a subtle chip so it reads */
.header:not(.scrolled) .header__logo {
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.55));
}
.btn-donate-top {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--purple);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(146,39,143,0.28);
}
.btn-donate-top:hover { transform: translateY(-1px); background: var(--purple-deep); }
.btn-donate-top:active { transform: translateY(0) scale(0.98); }
.header:not(.scrolled) .btn-donate-top {
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ============================================================
   HERO — fundo roxo (gradiente + riscas) com o cartão de donativo por cima
   ============================================================ */
.hero-shell {
  position: relative;
  overflow: hidden;
  /* Fundo liso nos tons de roxo da marca Animalife (+ brilho laranja subtil). */
  background-color: #7a1f78;
  background-image:
    radial-gradient(1000px 560px at 80% 6%, rgba(248,149,33,0.13), transparent 55%),
    radial-gradient(900px 720px at 15% 98%, rgba(60,12,58,0.45), transparent 60%),
    linear-gradient(157deg, #962a92 0%, #7a1f78 50%, #561454 100%);
  padding: 40px 18px 30px;
}

/* ---------- Fotografia dos animais (cão + gato) ----------
   MOBILE: imagem em destaque no topo do hero (em fluxo, por baixo do logo),
   a desvanecer na base para os números ficarem por cima. */
.hero__pet {
  position: relative;
  z-index: 1;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  width: min(96%, 430px);
  height: auto;
  margin: 0 auto -42px;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, rgba(0,0,0,0) 97%);
  mask-image: linear-gradient(180deg, #000 58%, rgba(0,0,0,0) 97%);
}
.hero,
.hero-shell .donate { position: relative; z-index: 2; }
.hero {
  position: relative;
  padding: 10px 6px 0;
  color: #fff;
}
.hero__inner { color: #fff; }
.hero__logo { height: 41px; width: auto; display: block; margin-bottom: 22px; margin-left: -4px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin-bottom: 14px;
}
.hero__number {
  font-size: clamp(104px, 34vw, 166px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.28);
}
.hero__sub {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255,255,255,0.95);
  max-width: 16ch;
  margin-bottom: 26px;
}
.hero__sub b { font-weight: 700; color: var(--orange); }

/* ============================================================
   HERO PROGRESS — duas peças distintas
   Dinheiro = anel de percentagem · Animais = fração X/342 + barra
   ============================================================ */
.progress {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  max-width: 560px;
}
.hero__note {
  margin-top: 22px;
  max-width: 46ch;
  display: flex; /* visível também no mobile */
  flex-direction: column;
  gap: 11px;
}
.hero__note p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}
.hero__note b { color: #fff; font-weight: 700; }
.pcard {
  flex: 1 1 220px;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.pcard__label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: rgba(255,255,255,0.92);
}
.pcard__sub { font-size: 12px; color: rgba(255,255,255,0.62); font-weight: 600; margin-top: 2px; }

/* money — anel de percentagem + montante angariado + n.º de doações */
.pcard--money { display: flex; align-items: center; gap: 12px; }
.money__txt { min-width: 0; }
.money__big {
  font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; color: #fff; line-height: 1.15;
}
.money__meta {
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.6); line-height: 1.2; margin-top: 1px;
}
.money__don {
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.48); margin-top: 4px;
}
.ring { position: relative; flex: 0 0 auto; width: 56px; height: 56px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: rgba(255,255,255,0.16); stroke-width: 9; }
.ring__fg {
  fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 263.9; stroke-dashoffset: 263.9;
  transition: stroke-dashoffset calc(1.5s / var(--anim-mult)) var(--ease);
}
.ring__pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff; letter-spacing: -0.01em;
}

/* animals — big fraction + slim bar */
.pcard--frac { display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.frac { font-weight: 800; line-height: 1; color: #fff; }
.frac__n { font-size: 24px; letter-spacing: -0.02em; color: var(--orange); }
.frac__d { font-size: 24px; color: rgba(255,255,255,0.55); margin-left: 3px; }
.pbar { width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.16); overflow: hidden; }
.pbar__fill {
  height: 100%; width: 0; border-radius: 999px; background: #fff;
  transition: width calc(1.5s / var(--anim-mult)) var(--ease);
}

/* Donation card floating over the purple hero */
.hero-shell .donate {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(40,10,40,0.32);
  padding: 26px 22px;
  margin-top: 28px;
  scroll-margin-top: 80px;
}

/* Header sits over the purple hero — keep it solid + readable at the top */
.header:not(.scrolled) {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header:not(.scrolled) .header__logo { filter: none; }
.header:not(.scrolled) .btn-donate-top {
  background: var(--purple); color: #fff; box-shadow: 0 4px 14px rgba(146,39,143,0.28);
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: 38px var(--pad); }
.section--soft { background: var(--bg); }
.section__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.section__title {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 10px;
}
.section__head { margin-bottom: 32px; }
.section__lede {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 34ch;
}

/* ============================================================
   DONATION FORM
   ============================================================ */
.donate { scroll-margin-top: 80px; }
.amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.amount {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: border-color .2s, box-shadow .2s, transform .15s var(--ease), background .2s;
}
.amount:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.07); }
.amount:active { transform: translateY(0) scale(0.99); }
.amount__val { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.amount__desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.amount__check {
  position: absolute; top: 12px; right: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.amount__check::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple); transform: scale(0); transition: transform .2s var(--ease);
}
.amount.selected { border-color: var(--purple); background: var(--accent-tint); }
.amount.selected .amount__check { border-color: var(--purple); }
.amount.selected .amount__check::after { transform: scale(1); }

/* card layout: list */
.page[data-cards="list"] .amounts { grid-template-columns: 1fr; }
.page[data-cards="list"] .amount {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
}
.page[data-cards="list"] .amount__val { font-size: 22px; min-width: 64px; }
.page[data-cards="list"] .amount__desc { margin-top: 0; }
.page[data-cards="list"] .amount__check { position: static; margin-left: auto; }

/* card layout: chips (compact one-line) */
.page[data-cards="chips"] .amounts { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.page[data-cards="chips"] .amount { padding: 14px 14px; }
.page[data-cards="chips"] .amount__desc { display: none; }
.page[data-cards="chips"] .amount__val { font-size: 22px; }
.page[data-cards="chips"] .amount__check { top: 50%; transform: translateY(-50%); }

/* Botão 90€ — opção em destaque (esterilização completa), ocupa 2 linhas */
.page[data-cards="chips"] .amount--full {
  grid-row: span 2;
  display: flex; flex-direction: column; justify-content: center;
  border: 2px solid var(--purple);
  background: #fff;
  box-shadow: 0 8px 22px rgba(146,39,143,0.10);
}
.page[data-cards="chips"] .amount--full:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(146,39,143,0.16); }
/* "90€" = 1px maior que os restantes valores (22px -> 23px) */
.page[data-cards="chips"] .amount--full .amount__val { font-size: 23px; font-weight: 800; color: var(--purple); letter-spacing: -0.02em; line-height: 1; }
.amount--full .amount__flabel { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.page[data-cards="chips"] .amount--full .amount__desc { display: block; font-size: 11px; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.page[data-cards="chips"] .amount--full.selected { background: var(--accent-tint); box-shadow: 0 0 0 3px rgba(146,39,143,0.18); }
/* bolinha de selecionado no canto inferior direito (em vez de centrada à direita) */
.page[data-cards="chips"] .amount--full .amount__check { top: auto; bottom: 12px; transform: none; }

.field { margin-bottom: 12px; }
.field__label {
  display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  margin-bottom: 6px; letter-spacing: 0.01em;
}
.input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #b6b6b6; }
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(146,39,143,0.10); }
.input--prefix-wrap { position: relative; }
.input--prefix-wrap .prefix {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-size: 16px; font-weight: 700; color: var(--muted); pointer-events: none;
}
.input--prefix { padding-left: 32px; font-weight: 600; }

.btn-submit {
  width: 100%;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--purple);
  border: none;
  border-radius: 14px;
  padding: 17px;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(146,39,143,0.28);
  transition: transform .18s var(--ease), background .2s, box-shadow .2s;
}
.btn-submit:hover { transform: translateY(-2px); background: var(--purple-deep); box-shadow: 0 14px 32px rgba(146,39,143,0.34); }
.btn-submit:active { transform: translateY(0) scale(0.99); }
.secure {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; font-size: 12px; color: var(--muted); font-weight: 500;
}
.secure svg { width: 13px; height: 13px; opacity: 0.7; }

/* Metodos de pagamento aceites, por baixo do botao (SVGs ja recortados ao conteudo) */
.paymethods {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin-top: 12px;
}
.paymethods img { height: 22px; width: auto; display: block; }

/* donate layout wrappers (mobile: stacked) */
.donate-grid { display: block; }
.donate-left { margin-bottom: 0; }

/* Seta discreta "Voltar" do formulário por etapas */
.form-back {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--muted); padding: 2px 2px; margin: -2px 0 10px -2px;
  border-radius: 8px;
  transition: color .2s;
}
.form-back[hidden] { display: none; }
.form-back:hover { color: var(--purple); }
.form-back:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.form-back svg { width: 15px; height: 15px; }

/* required marker + field errors */
.req { color: var(--orange); font-weight: 800; }
.field__err {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #c0392b;
}
.field.invalid .input { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.10); }
.field.invalid .field__err { display: block; }
#amounts.invalid { outline: 2px solid rgba(192,57,43,0.55); outline-offset: 4px; border-radius: 16px; }

/* "other amount" card */
.amount--other .amount__val { color: var(--purple); }
.page[data-cards="chips"] .amount--other .amount__desc { display: none; }

/* success note */
.form-done {
  display: flex; align-items: center; gap: 9px;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--accent-tint);
  border: 1.5px solid var(--purple);
  color: var(--purple-deep);
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
}
.form-done svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--purple); }
.form-done[hidden] { display: none; }

/* about: plain (non-link) note */
.about__note { font-size: 14px; color: var(--muted); font-weight: 500; }
.about__note b { color: var(--purple); font-weight: 700; }
.about__note a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.about__note a:hover { color: var(--orange); }

/* ============================================================
   IMPACT NUMBERS
   ============================================================ */
.stats { display: flex; flex-direction: column; gap: 36px; text-align: center; }
.stat__num {
  font-size: clamp(64px, 22vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.stat__num .u { color: var(--purple); }
.stat--word .stat__num { font-size: clamp(46px, 16vw, 60px); }
.stat__line {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  font-weight: 500;
  max-width: 26ch;
  margin-left: auto; margin-right: auto;
  text-wrap: balance;
}
.stat__rule { width: 28px; height: 3px; background: var(--orange); margin: 18px auto 0; border-radius: 2px; }

/* ============================================================
   O PROBLEMA — argumento editorial + dossier de factos
   (substitui o antigo trio de números centrados)
   ============================================================ */
.problem__grid { display: flex; flex-direction: column; gap: 32px; }

.problem__title {
  font-size: clamp(29px, 8.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin-top: 6px;
  text-wrap: balance;
}
.problem__title em {
  font-style: italic;
  font-weight: 800;
  color: var(--purple);
}
.problem__prose { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; }
.problem__prose p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  font-weight: 500;
  max-width: 42ch;
}
.problem__prose p b { font-weight: 700; }
.problem__aside {
  color: var(--muted) !important;
  font-size: 14.5px !important;
  margin-top: 5px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

/* dossier — caixa de factos, estilo ficha de reportagem */
.problem__dossier {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 24px 22px;
}
.dossier__cap {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.dossier__row {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.dossier__row:first-of-type { margin-top: 6px; }
.dossier__fig {
  display: block;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 9px;
}
.dossier__say {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
  max-width: 34ch;
}
.dossier__foot {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}
.dossier__foot-k { color: var(--purple); font-weight: 800; }

/* dossier em modo "Forte" (fundo roxo) */
.page[data-intensity="bold"] .problem__title em { color: var(--orange); }
.page[data-intensity="bold"] .problem__prose p { color: rgba(255,255,255,0.92); }
.page[data-intensity="bold"] .problem__aside {
  color: rgba(255,255,255,0.72) !important;
  border-top-color: rgba(255,255,255,0.18);
}
.page[data-intensity="bold"] .problem__dossier {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}
.page[data-intensity="bold"] .dossier__cap { color: rgba(255,255,255,0.65); }
.page[data-intensity="bold"] .dossier__row { border-top-color: rgba(255,255,255,0.16); }
.page[data-intensity="bold"] .dossier__fig { color: #fff; }
.page[data-intensity="bold"] .dossier__say { color: rgba(255,255,255,0.72); }
.page[data-intensity="bold"] .dossier__foot {
  background: rgba(0,0,0,0.16);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.82);
}
.page[data-intensity="bold"] .dossier__foot-k { color: var(--orange); }

/* ============================================================
   GALLERY — animal wall (3 rows, horizontal scroll)
   ============================================================ */
.gallery { padding: 38px 0 38px; }
.gallery__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad); margin-bottom: 22px;
}
.gallery__head .section__head { padding: 0; margin-bottom: 0; max-width: 56ch; }
.gallery__lede { margin-top: 12px; }
.gallery__lede b { color: var(--ink); font-weight: 700; }
.wall__nav { display: flex; gap: 8px; flex: 0 0 auto; margin-top: 4px; align-items: center; }
.wall__hint { display: none; }   /* so' no mobile (ver media query) */
.wall__arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.wall__arrow svg { width: 20px; height: 20px; }
.wall__arrow:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.wall__arrow:disabled { opacity: 0.32; cursor: default; }
.wall__arrow:disabled:hover { background: #fff; color: var(--ink); border-color: var(--line); }
.wall {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, 112px);
  grid-auto-columns: 112px;
  gap: 8px;
  overflow-x: auto;
  padding: 4px var(--pad) 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;   /* só horizontal aqui — evita scroll diagonal */
}
.wall::-webkit-scrollbar { display: none; }
.wtile {
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
}
.wtile__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__cap {
  padding: 14px var(--pad) 0;
  font-size: 13px; color: var(--muted); font-weight: 500; max-width: 42ch;
}

/* ============================================================
   HOW IT WORKS — lista editorial numerada (cabeçalho + passos)
   ============================================================ */
.how-head { margin-bottom: 30px; }
.how-title { font-size: 31px; line-height: 1.12; }
.how-title__accent {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.42em;
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--purple);
  margin-top: 4px;
}
.how-title__accent em {
  font-style: normal;
  text-decoration: none;
  padding-bottom: 9px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 12" preserveAspectRatio="none"><path d="M3 9 C 30 3, 62 2.2, 88 4.6 C 99 5.6, 109 7, 117 8.4" fill="none" stroke="%2392278F" stroke-width="3.4" stroke-linecap="round"/></svg>') no-repeat bottom center / 100% 11px;
}
.how-head__lede {
  font-size: 15px; color: var(--muted); font-weight: 500;
  line-height: 1.55; max-width: 34ch; margin-top: 20px;
}
/* ----- linha vertical simples a ligar os nós numerados ----- */
.how-steps {
  --rail-node: 50px;   /* diâmetro do círculo numerado */
  --rail-pad: 22px;    /* padding vertical de cada passo */
  position: relative;
}
.how__list {
  list-style: none; margin: 0; padding: 0;
  position: relative;
}
.how__step {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail-node) 1fr;
  gap: 20px;
  align-items: start;
  padding: var(--rail-pad) 0;
}
/* troço de linha entre este círculo e o seguinte */
.how__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--rail-node) / 2 - 1px);
  width: 2px;
  top: calc(var(--rail-pad) + var(--rail-node));
  bottom: calc(-1 * var(--rail-pad));
  background: color-mix(in srgb, var(--purple) 25%, #fff);
  border-radius: 999px;
}
.how__num {
  position: relative;
  z-index: 0;
  width: var(--rail-node);
  height: var(--rail-node);
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.how__body { padding-top: 6px; }
.how__t { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.how__d { font-size: 14.5px; color: var(--muted); line-height: 1.55; font-weight: 500; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__media {
  height: 220px; border-radius: 16px; overflow: hidden; margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}
.about__media image-slot { width: 100%; height: 100%; }
/* Placeholder até existir uma fotografia real da equipa (basta trocar por <img>). */
.about__media .about__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.5;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__p { font-size: 15.5px; color: var(--muted); line-height: 1.62; margin-bottom: 14px; }
.about__p b { color: var(--ink); font-weight: 700; }
.about__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--purple); text-decoration: none;
}
.about__link svg { width: 14px; height: 14px; }
.about__link:hover { color: var(--purple-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer__logo-real { height: 37px; width: auto; margin-left: -5px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links a { font-size: 12.5px; color: var(--muted); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--purple); }
.footer__fine { font-size: 12px; color: #9a9a9a; font-weight: 500; }

/* ============================================================
   COLOR INTENSITY: "bold" — more brand presence
   ============================================================ */
.page[data-intensity="bold"] {
  --accent-tint: rgba(146,39,143,0.08);
}
.page[data-intensity="bold"] .section--soft { background: var(--purple); color: #fff; }
.page[data-intensity="bold"] .section--soft .section__kicker { color: var(--orange); }
.page[data-intensity="bold"] .section--soft .stat__num { color: #fff; }
.page[data-intensity="bold"] .section--soft .stat__num .u { color: var(--orange); }
.page[data-intensity="bold"] .section--soft .stat__line { color: rgba(255,255,255,0.82); }
.page[data-intensity="bold"] .section--soft .stat__rule { background: var(--orange); }
.page[data-intensity="bold"] .step__icon { background: var(--purple); color: #fff; }
.page[data-intensity="bold"] .gprogress__fill { background: var(--purple); }
.page[data-intensity="bold"] .hero__eyebrow::before { background: var(--orange); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Scroll-reveal desativado a pedido: conteúdo sempre visível, sem fade/slide.
   (Os contadores numéricos continuam animados — ver campaign.js.) */
.reveal,
.reveal.in { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scrollhint { animation: none; }
  html { scroll-behavior: auto; }
}

/* Larger viewports: keep the focused mobile column on a clean white surround */
@media (min-width: 520px) {
  body::before {
    content: "";
    position: fixed; inset: 0; z-index: -1;
    background: #ffffff;
  }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  transform: translateY(12px);
  width: calc(100% - 32px);
  max-width: 280px;
  z-index: 80;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.13);
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.show { opacity: 1; transform: translateY(0); }
.cookie__txt { margin: 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.cookie__txt a { color: var(--purple); font-weight: 600; text-decoration: none; }
.cookie__txt a:hover { text-decoration: underline; }
.cookie__actions { display: flex; gap: 7px; }
.cookie__btn {
  flex: 1;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.cookie__btn--ok { color: #fff; background: var(--purple); box-shadow: 0 6px 16px rgba(146,39,143,0.24); }
.cookie__btn--ok:hover { background: var(--purple-deep); transform: translateY(-1px); }
.cookie__btn--ghost { color: var(--ink); background: var(--white); border-color: var(--line); }
.cookie__btn--ghost:hover { border-color: var(--purple); color: var(--purple); }

@media (prefers-reduced-motion: reduce) {
  .cookie { transition: opacity .2s linear; transform: translateY(0); }
}

/* ============================================================
   HEADER MOBILE (logo + menu hamburguer)
   Transparente sobre o hero roxo; branco ao fazer scroll.
   No desktop é escondido (ver desktop.css).
   ============================================================ */
.header,
.header:not(.scrolled) {
  display: flex;
  position: absolute; /* acompanha o hero; nao segue o scroll */
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.header__brand { display: inline-flex; align-items: center; line-height: 0; }
.header__logo { height: 27px; width: auto; filter: drop-shadow(0 1px 8px rgba(0,0,0,0.55)); }

/* no mobile, o logótipo vive no header — esconde o do hero para nao duplicar,
   e abre espaco no topo do hero para o header fixo */
.hero__logo { display: none; }
.hero-shell { padding-top: 10px; }

/* === TESTE (so' mobile): animais pequenos a' direita, por cima do cartao e por baixo da progress bar === */
@media (max-width: 767px) {
  .hero-shell { padding-top: 56px; }  /* limpa o header/logo (a foto deixou de ocupar o topo) */
  .hero__pet {
    position: absolute;
    right: 26px;                /* afastada da borda: a imagem fica toda dentro do ecra (sem corte) */
    top: 460px;                 /* sobe: mostra mais do animal acima da borda do card */
    width: 125px;               /* a' direita; texto/barra ficam por cima (legiveis), base escondida pelo card */
    height: auto;
    margin: 0;
    z-index: 0;                 /* atras do cartao e da progress bar (a foto passa por tras) */
    -webkit-mask-image: none; mask-image: none;
    filter: drop-shadow(0 12px 26px rgba(0,0,0,0.4));
  }
  .hero { position: relative; z-index: 3; }
  .hero-shell .donate { position: relative; z-index: 1; }
  .progress { max-width: 70%; }   /* encurtar a barra para dar espaco a' direita */
  /* tirar o "balao" translucido da progress: deixar so' a linha + textos */
  .pcard--frac {
    background: transparent; border: 0; padding: 0; border-radius: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .pcard--frac .pbar { width: 80%; }   /* linha -1/5 */

  /* Galeria "Quem vamos ajudar": titulo/texto ao comprido (largura total);
     setas por baixo do texto, a' direita (um pouco mais abaixo). */
  .gallery__head { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 12px; }
  .gallery__head .section__head { max-width: none; }
  .gallery__head .gallery__lede { max-width: none; }   /* texto ate' a' margem direita */
  .gallery__head .wall__nav { align-self: stretch; margin-top: 12px; }
  .wall__arrow { display: none; }                       /* mobile: so' a dica "Deslize" */
  .wall__hint {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--muted);
  }
  .wall__hint svg { width: 22px; height: 22px; opacity: 0.7; }
  .wall { padding-top: 0; }                             /* aproxima as fotos da dica */
}

/* ---------- Progresso do dinheiro dentro do cartão de donativo ---------- */
.donate-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  text-align: left;
}
.donate-progress .ring { flex: 0 0 auto; }
.donate-progress .ring__bg { stroke: rgba(146,39,143,0.14); }
.donate-progress .ring__pct { color: var(--ink); }
.donate-progress .money__big { color: var(--ink); }
.donate-progress .money__meta { color: var(--muted); }
.donate-progress .money__don { color: #9a9a9a; }

/* Modal de pagamento (widget EasyPay embebido numa janela) */
.ep-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.ep-modal[hidden] { display: none; }
.ep-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20,14,34,0.6);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: epFade .2s var(--ease);
}
.ep-modal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px; max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.34);
  animation: epRise .25s var(--ease);
}
.ep-modal__close {
  position: absolute; top: 8px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border: 0; background: transparent;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted);
  border-radius: 8px;
}
.ep-modal__close:hover { background: var(--soft); color: var(--ink); }
@keyframes epFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes epRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ep-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 300px;
  color: var(--muted); font-size: 14px; font-weight: 600; text-align: center;
}
.ep-loading[hidden] { display: none; }
.ep-spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--purple);
  animation: epSpin .8s linear infinite;
}
@keyframes epSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ep-spinner { animation-duration: 1.6s; } }

/* Campos do dador: aparecem so apos clicar em "Ajudar a esterilizar" */
.donor-fields { animation: fieldsIn .28s var(--ease); }
@keyframes fieldsIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .donor-fields { animation: none; }
}

/* País + NIF na mesma linha (país como prefixo) */
.nif-row { display: flex; gap: 8px; align-items: stretch; }
.nif-row__country { flex: 0 0 auto; width: auto; max-width: 46%; }
.nif-row__nif { flex: 1 1 auto; min-width: 0; }

/* Seletor de país: na LISTA mostra o nome completo; FECHADO mostra só a sigla
   (PT, ES…). O <select> nativo usa o mesmo texto aberto/fechado, por isso uma
   sobreposição opaca cobre o nome no estado fechado e mostra a sigla por cima. */
.sigla-select { position: relative; display: inline-flex; width: 84px; }
.sigla-select > select {
  width: 100%;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  color: transparent;            /* esconde o nome no estado fechado (sem letras a sobrar) */
  padding-right: 30px;
}
.sigla-select > select option { color: var(--ink); }  /* mas a lista fica legível */
.sigla-select::after {           /* seta própria: posição controlada por nós */
  content: ""; position: absolute; right: 14px; top: 50%; margin-top: -3px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}
.sigla-select__tag {
  position: absolute; top: 1.5px; bottom: 1.5px; left: 1.5px; right: 26px;
  display: flex; align-items: center; padding-left: 13.5px;
  background: #fff; border-radius: 11px 0 0 11px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  pointer-events: none;
}

/* Escolha do método de pagamento (etapa 3, na nossa página) */
.method__lead { font-size: 14px; font-weight: 600; color: var(--muted); margin: 2px 0 12px; }
.method__opts { display: flex; flex-direction: column; gap: 10px; }
.method__btn {
  width: 100%; text-align: left; font-family: var(--font); cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  padding: 14px 16px; display: flex; flex-direction: row; align-items: center; gap: 12px;
  transition: border-color .2s, box-shadow .2s, transform .15s var(--ease);
}
.method__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.07); border-color: var(--purple); }
.method__btn:active { transform: translateY(0) scale(0.99); }
.method__text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.method__name { font-size: 17px; font-weight: 800; color: var(--ink); }
.method__sub { font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.35; }
/* Logo do método (à direita). Slot pronto: colocar os ficheiros em assets/Payments/
   (multibanco.svg, mbway.svg, cartao.svg). Enquanto não existirem, o onerror remove a imagem. */
.method__logo { flex: 0 0 auto; height: 26px; width: auto; max-width: 72px; object-fit: contain; }
/* Número do MB Way (recolhido na nossa página quando se escolhe MB Way) */
.mbw-phone { margin-top: 12px; }

/* Termos + marketing: discretos, sem atrito */
.consent { margin: 2px 0 4px; }
.consent__terms { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: var(--ink-soft, #6b6b72); }
.consent__terms a { color: inherit; text-decoration: underline; }
.consent__check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; line-height: 1.4; color: var(--ink-soft, #6b6b72); cursor: pointer;
}
.consent__check input { margin-top: 1px; flex: 0 0 auto; accent-color: var(--purple, #92278F); }

/* Painel de resultado dentro do modal (agradecimento consciente do método) */
.ep-result {
  text-align: center;
  padding: 8px 4px 4px;
  animation: epRise .28s var(--ease);
}
.ep-result[hidden] { display: none; }
.ep-result__mark {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; margin: 6px auto 18px;
  background: var(--purple); color: #fff;
}
.ep-result__mark--wait { background: var(--orange); }
.ep-result__mark--neutral { background: var(--purple); }
.ep-result__mark svg { width: 34px; height: 34px; }
.ep-result__title {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 8px;
}
.ep-result__lead {
  color: var(--muted); font-size: .98rem; line-height: 1.55;
  max-width: 36ch; margin: 0 auto 6px;
}
.ep-result__lead b { color: var(--ink); }
.ep-result__btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 18px; padding: 13px 26px;
  background: var(--purple); color: #fff; border: 0; border-radius: 12px;
  font-family: var(--font); font-weight: 700; font-size: .95rem; cursor: pointer;
  box-shadow: 0 8px 22px rgba(146,39,143,0.26);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.ep-result__btn:hover { background: var(--purple-deep); transform: translateY(-2px); }
.ep-result__btn:active { transform: translateY(0); }

/* Destaque da referência Multibanco */
.ep-mb {
  text-align: left; margin: 18px 0 4px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); overflow: hidden;
}
.ep-mb__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px;
}
.ep-mb__row + .ep-mb__row { border-top: 1px solid var(--line); }
.ep-mb__k {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); flex: 0 0 auto;
}
.ep-mb__v {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.18rem; font-weight: 800; color: var(--purple);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.ep-copy {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 8px; padding: 5px 9px; cursor: pointer;
  font-family: var(--font); font-size: .72rem; font-weight: 700;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.ep-copy:hover { border-color: var(--purple); color: var(--purple); }
.ep-copy svg { width: 14px; height: 14px; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .ep-result { animation: none; }
  .ep-result__btn:hover { transform: none; }
}
