/* =========================================================================
   SEMEANDO PATAS — Design System
   CSS puro, mobile-first, zero dependencias de runtime.
   Sumario: 1.Reset  2.Tokens  3.Base  4.Layout  5.Componentes  6.Utilitarios
   ========================================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }  /* trava anti-distorcao: width/height nos atributos so reservam espaco */
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, h4, li { overflow-wrap: break-word; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
:target { scroll-margin-top: 6rem; }

/* ---------- 2. Tokens ---------- */
:root {
  /* Marca */
  --brand-green-primary: #1B8A5A;
  --brand-orange-cta: #FF7A3D;
  --brand-blue-trust: #1E3A8A;
  --neutral-bg: #F9FAFB;
  --neutral-text: #111827;

  /* Escalas derivadas */
  --green-900: #0B3F2A;
  --green-800: #10593B;
  --green-700: #14704A;
  --green-600: var(--brand-green-primary);
  --green-300: #7FD3AE;
  --green-100: #DCF5E9;
  --green-50:  #EEFBF5;

  --orange-800: #8F3A13;
  --orange-700: #B4491A;   /* branco sobre este tom = 5.37:1 (AA) */
  --orange-600: #E85F26;
  --orange-500: var(--brand-orange-cta);
  --orange-100: #FFE1D0;
  --orange-50:  #FFF4EE;

  --blue-900: #16205C;
  --blue-700: var(--brand-blue-trust);
  --blue-100: #DDE4FB;
  --blue-50:  #EEF2FF;

  /* Camada quente da identidade (leve, acolhedora, inspirada em marketplaces
     de adocao): pessego para decoracao e azul-marinho para blocos de confianca.
     O laranja forte da marca segue como cor de acao, por contraste. */
  --peach-600: #E98B45;
  --peach-500: #F9A870;
  --peach-300: #FCC9A3;
  --peach-100: #FDE7D3;
  --peach-50:  #FFF6EE;
  --navy-900: #0B2557;
  --navy-700: #0F347A;
  --navy-500: #2B54A8;
  --lilac:    #C0B4CC;
  --sky:      #97A5B7;
  --cream:    #FBFBF9;

  --ink-900: var(--neutral-text);
  --ink-700: #374151;
  --ink-600: #4B5563;
  --ink-500: #61697A;
  --ink-300: #D1D5DB;
  --ink-200: #E5E7EB;
  --ink-100: #F3F4F6;
  --surface: #FFFFFF;
  --bg: #FBFBF9;            /* creme quente; --neutral-bg segue disponivel para blocos frios */

  /* Tipografia — Mulish, humanista e arredondada, em todos os pesos */
  --font-head: "Mulish", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
  --fs-3xl: clamp(1.85rem, 1.4rem + 2vw, 2.75rem);
  --fs-4xl: clamp(2.2rem, 1.5rem + 3.2vw, 3.75rem);

  /* Espacamento / forma */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --r-sm: .4rem; --r-md: .625rem; --r-lg: .875rem; --r-xl: 1rem; --r-2xl: 1.25rem; --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(24,20,16,.05), 0 2px 6px -3px rgba(24,20,16,.06);
  --shadow-md: 0 6px 14px -6px rgba(24,20,16,.10), 0 2px 6px -3px rgba(24,20,16,.06);
  --shadow-lg: 0 20px 44px -18px rgba(24,20,16,.22), 0 8px 18px -12px rgba(24,20,16,.12);
  --shadow-glow: 0 12px 28px -12px rgba(232,95,38,.45);

  --ring: 0 0 0 3px rgba(30,58,138,.35);
  --t-fast: 140ms cubic-bezier(.4,0,.2,1);
  --t: 240ms cubic-bezier(.4,0,.2,1);
  --t-slow: 520ms cubic-bezier(.22,1,.36,1);
  --container: 1180px;
  --header-h: 4.25rem;
}

/* ---------- 3. Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-weight: 700; }
p { text-wrap: pretty; }
strong { color: var(--ink-900); font-weight: 650; }
a { text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--brand-blue-trust); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--green-100); color: var(--green-900); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 999;
  background: var(--brand-blue-trust); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r-md); font-weight: 700; transition: top var(--t);
}
.skip-link:focus { top: var(--sp-4); }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
@media (min-width: 48rem) { .container { padding-inline: var(--sp-6); } }
.section { padding-block: var(--sp-7); }
@media (min-width: 48rem) { .section { padding-block: var(--sp-8); } }
.section--tight { padding-block: var(--sp-6); }
.section--alt { background: var(--surface); }
.section--warm { background: var(--peach-50); }
.section--ink {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: #D3DEF5; position: relative; overflow: hidden;
}
.section--ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38rem 26rem at 88% 0%, rgba(249,168,112,.22), transparent 62%);
}
.section--ink > * { position: relative; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
/* itens de grid tem min-width:auto por padrao e sao esticados por conteudo largo
   (tabelas, blocos de codigo). Isso zera o estouro horizontal da pagina. */
.grid > * { min-width: 0; }
.table-wrap { max-width: 100%; }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--sidebar { grid-template-columns: minmax(0,1fr) 21rem; align-items: start; }
  .grid--split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: var(--sp-7); }
}
@media (min-width: 40rem) and (max-width: 63.99rem) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }

.section-head { max-width: 46rem; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-800);
  background: var(--green-50); border: 1px solid var(--green-100);
  padding: .3rem .7rem; border-radius: var(--r-full); margin-bottom: var(--sp-3);
}
.section--ink .eyebrow { color: var(--peach-300); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.lead { font-size: var(--fs-lg); color: var(--ink-600); }
.section--ink .lead, .section--ink p, .section--ink li { color: #C3D2EE; }
/* Superficies claras dentro de uma faixa escura nao podem herdar o texto claro
   da faixa: sem isto, tabelas e cartoes ficam quase invisiveis. */
.section--ink .card, .section--ink .table-wrap, .section--ink .callout, .section--ink .accordion,
.section--ink .filters, .section--ink .toast { color: var(--ink-700); }
.section--ink .card p, .section--ink .card li, .section--ink .table-wrap p,
.section--ink .table-wrap li, .section--ink .callout p, .section--ink .accordion p { color: var(--ink-600); }
.section--ink .card h2, .section--ink .card h3, .section--ink .card h4,
.section--ink .table-wrap th, .section--ink .table-wrap caption { color: var(--ink-900); }

/* ---------- 5. Componentes ---------- */

/* 5.1 Icones (sprite SVG) */
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--solid { fill: currentColor; stroke: none; }

/* 5.2 Botoes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-base);
  padding: .85rem 1.4rem; border-radius: var(--r-full);
  text-decoration: none; border: 2px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t), background-color var(--t), color var(--t), border-color var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange-700); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { background: var(--orange-800); }
.btn--green { background: var(--green-700); color: #fff; box-shadow: 0 10px 26px -14px rgba(27,138,90,.9); }
.btn--green:hover { background: var(--green-800); }
.btn--ghost { border-color: var(--ink-200); background: var(--surface); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-800); }
.btn--onDark { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--onDark:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* 5.3 Pilulas / tags */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: var(--fs-xs); font-weight: 700;
  padding: .25rem .6rem; border-radius: var(--r-full);
  background: var(--ink-100); color: var(--ink-600); border: 1px solid var(--ink-200);
}
.pill--urgent { background: var(--orange-50); color: var(--orange-700); border-color: var(--orange-100); }
.pill--care  { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }
.pill--ok    { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }

/* 5.4 Cartoes */
.card {
  background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
}
.card--hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--green-300); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__title { font-size: var(--fs-lg); }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--green-700); }
.card__media { position: relative; background: var(--ink-100); }
.card__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card__flag { position: absolute; top: var(--sp-3); left: var(--sp-3); background: rgba(255,255,255,.94); }
.card__foot { margin-top: auto; padding-top: var(--sp-3); border-top: 1px dashed var(--ink-200); }

/* 5.5 Barra de progresso gamificada */
.progress { display: block; }
.progress__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); margin-bottom: .4rem; font-size: var(--fs-sm); }
.progress__label { font-family: var(--font-head); font-weight: 800; color: var(--ink-900); }
.progress__value { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--green-700); }
.progress__track {
  position: relative; height: .7rem; border-radius: var(--r-full);
  background: var(--ink-100); border: 1px solid var(--ink-200); overflow: hidden;
}
.progress__fill {
  height: 100%; width: 0; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--green-700), var(--green-300));
  transition: width 900ms cubic-bezier(.22,1,.36,1);
  position: relative;
}
.progress__fill::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.28) 0 8px, transparent 8px 18px);
  animation: sp-stripes 1.4s linear infinite;
}
@keyframes sp-stripes { to { background-position: 36px 0; } }
.progress--orange .progress__fill { background: linear-gradient(90deg, var(--orange-600), #FFB27A); }
.progress--orange .progress__value { color: var(--orange-700); }
.progress--lg .progress__track { height: 1.1rem; }
.progress__foot { margin-top: .45rem; font-size: var(--fs-sm); color: var(--ink-500); }
.section--ink .progress__track { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.section--ink .progress__label { color: #fff; }
.section--ink .progress__value { color: var(--peach-300); }
.section--ink .progress__foot { color: #A6B8E0; }

/* 5.6 Numeros / KPIs */
.stat { text-align: center; padding: var(--sp-5) var(--sp-4); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-3xl); color: var(--green-700); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-sm); color: var(--ink-500); margin-top: .35rem; }
.section--ink .stat__num { color: #fff; }
.section--ink .stat__label { color: #A6B8E0; }

/* 5.7 Cabecalho */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; gap: var(--sp-4); position: relative; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-head); font-weight: 800; color: var(--ink-900); font-size: 1.05rem; line-height: 1.1; }
.brand__mark { width: 2.4rem; height: 2.4rem; border-radius: var(--r-md); background: linear-gradient(140deg, var(--green-600), var(--green-800)); display: grid; place-items: center; color: #fff; flex: none; box-shadow: var(--shadow-sm); }
.brand__mark .icon { width: 1.45rem; height: 1.45rem; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.nav { margin-left: auto; }
.nav__toggle { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border: 1px solid var(--ink-200); border-radius: var(--r-md); font-weight: 700; font-size: var(--fs-sm); background: var(--surface); }
.nav__list { display: flex; flex-direction: column; gap: .15rem; }
.nav__link {
  display: block; text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  color: var(--ink-700); padding: .6rem .75rem; border-radius: var(--r-md); transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover { background: var(--green-50); color: var(--green-800); }
.nav__link[aria-current="page"] { color: var(--green-800); background: var(--green-50); box-shadow: inset 0 -2px 0 var(--green-600); }
.header__actions { display: flex; align-items: center; gap: var(--sp-3); }
@media (max-width: 63.99rem) {
  .nav__panel {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
    border-bottom: 1px solid var(--ink-200); box-shadow: var(--shadow-lg);
    padding: var(--sp-4); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__panel.is-open { display: block; }
  .nav__panel .header__actions { margin-top: var(--sp-4); flex-direction: column; align-items: stretch; }
  .nav__panel .btn { width: 100%; }
  .nav__panel .nav__link { font-size: var(--fs-base); padding: .7rem .75rem; }
}
@media (min-width: 64rem) {
  .nav__toggle { display: none; }
  .nav__panel { display: flex !important; align-items: center; gap: var(--sp-5); }
  .nav__list { flex-direction: row; gap: .1rem; }
}

/* 5.8 Medalha de nivel do doador */
.level-chip {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  padding: .3rem .75rem .3rem .35rem; border-radius: var(--r-full);
  border: 1px solid var(--green-100); background: var(--green-50); color: var(--green-800);
  font-size: var(--fs-xs); font-weight: 800; font-family: var(--font-head); white-space: nowrap;
  transition: var(--t-fast);
}
.level-chip:hover { border-color: var(--green-600); }
.level-chip__ring { width: 1.9rem; height: 1.9rem; flex: none; }
.level-chip small { display: block; font-family: var(--font-body); font-weight: 600; color: var(--ink-500); font-size: .68rem; }

/* 5.9 Hero — claro e acolhedor, com manchas quentes de fundo */
.hero { position: relative; overflow: hidden; background: var(--peach-50); color: var(--ink-700); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(52rem 34rem at 8% -12%, rgba(249,168,112,.55), transparent 62%),
    radial-gradient(40rem 30rem at 96% 4%, rgba(220,245,233,.9), transparent 60%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: var(--sp-7); padding-block: var(--sp-7) var(--sp-8); }
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--sp-8); padding-block: var(--sp-8) var(--sp-9); }
}
.hero h1 { color: var(--ink-900); }
.hero h1 em { font-style: normal; color: var(--green-700); }
.hero__sub { font-size: var(--fs-lg); color: var(--ink-600); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__proof { display: flex; flex-wrap: wrap; gap: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(24,20,16,.10); }
.hero__proof .stat { text-align: left; padding: 0; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 2.5rem 2.5rem 2.5rem .75rem;   /* recorte assimetrico, mais informal */
  box-shadow: var(--shadow-lg);
}
.hero__media::after {           /* pastilha decorativa atras da foto */
  content: ""; position: absolute; inset: auto -1.5rem -1.5rem auto;
  width: 9rem; height: 9rem; border-radius: var(--r-full);
  background: var(--peach-300); opacity: .5; z-index: -1;
}
.hero__badge {
  position: relative; margin: -1.5rem auto 0; width: min(94%, 27rem);
  background: var(--surface); color: var(--ink-700); border-radius: var(--r-xl);
  padding: var(--sp-4); box-shadow: var(--shadow-lg); border: 1px solid var(--ink-200);
}
@media (min-width: 64rem) { .hero__badge { margin: -3rem 0 0 auto; width: 23rem; } }

/* 5.10 Trilha de niveis */
.levels { display: grid; gap: var(--sp-4); }
@media (min-width: 40rem) { .levels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .levels { grid-template-columns: repeat(5, 1fr); } }
.level-card { position: relative; text-align: center; padding: var(--sp-5) var(--sp-3); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--ink-200); box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.level-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.level-card[data-reached="true"] { border-color: var(--green-300); background: var(--green-50); }
.level-card__medal { width: 3.4rem; height: 3.4rem; margin: 0 auto var(--sp-3); }
.level-card__name { font-family: var(--font-head); font-weight: 800; color: var(--ink-900); font-size: var(--fs-base); }
.level-card__req { font-size: var(--fs-xs); color: var(--ink-500); }
.level-card__perk { font-size: var(--fs-xs); color: var(--ink-600); margin-top: .5rem; }

/* 5.11 Badges / mural de conquistas */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--sp-4); }
.badge {
  text-align: center; padding: var(--sp-4) var(--sp-3); border-radius: var(--r-xl);
  border: 1px dashed var(--ink-300); background: var(--surface); transition: var(--t);
}
.badge[data-unlocked="true"] { border-style: solid; border-color: var(--orange-500); background: var(--orange-50); box-shadow: var(--shadow-sm); }
.badge__art { width: 3.2rem; height: 3.2rem; margin: 0 auto .6rem; filter: grayscale(1); opacity: .4; transition: var(--t); }
.badge[data-unlocked="true"] .badge__art { filter: none; opacity: 1; }
.badge__name { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-sm); color: var(--ink-900); }
.badge__how { font-size: var(--fs-xs); color: var(--ink-500); margin-top: .2rem; }
.badge__share { margin-top: .6rem; }

/* 5.12 Passos */
.steps { display: grid; gap: var(--sp-5); counter-reset: step; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-left: 3.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: var(--r-full);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
  background: var(--green-700); color: #fff; box-shadow: 0 6px 16px -8px rgba(27,138,90,.9);
}

/* 5.13 Formularios */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: .35rem; }
.field > label { font-weight: 700; font-size: var(--fs-sm); color: var(--ink-900); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-500); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: var(--r-md);
  border: 1px solid var(--ink-300); background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-blue-trust); box-shadow: var(--ring); }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: #B91C1C; background: #FEF2F2; }
.field .error { font-size: var(--fs-xs); color: #B91C1C; font-weight: 600; }
.field .error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.field--check input { width: 1.1rem; height: 1.1rem; margin-top: .35rem; }
.field--check label { font-weight: 500; color: var(--ink-600); font-size: var(--fs-sm); }
.field--check .error { grid-column: 1 / -1; }
.form__row { display: grid; gap: var(--sp-4); }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 68px; display: grid; align-content: center; padding: .75rem; border: 1px dashed var(--ink-300); border-radius: var(--r-md); font-size: var(--fs-xs); color: var(--ink-500); background: var(--ink-100); }
.form__status { border-radius: var(--r-md); padding: .8rem 1rem; font-size: var(--fs-sm); font-weight: 600; }
.form__status:empty { display: none; }
.form__status[data-tone="ok"] { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.form__status[data-tone="err"] { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* 5.14 Filtros / chips */
.filters { display: grid; gap: var(--sp-4); padding: var(--sp-4); background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
@media (min-width: 48rem) { .filters { grid-template-columns: repeat(4, 1fr); align-items: end; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .4rem .85rem; border-radius: var(--r-full); border: 1px solid var(--ink-300); background: var(--surface); font-size: var(--fs-sm); font-weight: 700; color: var(--ink-600); transition: var(--t-fast); }
.chip:hover { border-color: var(--green-600); color: var(--green-800); }
.chip[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }

/* 5.15 Paginacao */
.pagination { display: flex; justify-content: center; align-items: center; gap: .35rem; flex-wrap: wrap; margin-top: var(--sp-6); }
.pagination button, .pagination a {
  min-width: 2.5rem; height: 2.5rem; padding-inline: .6rem; border-radius: var(--r-md);
  border: 1px solid var(--ink-200); background: var(--surface); font-weight: 700; color: var(--ink-600);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--t-fast);
}
.pagination button:hover:not([disabled]) { border-color: var(--green-600); color: var(--green-800); }
.pagination [aria-current="page"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.pagination [disabled] { opacity: .4; cursor: not-allowed; }

/* 5.16 Breadcrumb */
.breadcrumb { padding-block: var(--sp-4) 0; font-size: var(--fs-sm); color: var(--ink-500); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; list-style: none; padding: 0; }
.breadcrumb a { text-decoration: none; color: var(--green-800); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--ink-300); }

/* 5.17 Acordeao (FAQ) */
.accordion { border: 1px solid var(--ink-200); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion + .accordion { margin-top: var(--sp-3); }
.accordion summary {
  list-style: none; cursor: pointer; padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-head); font-weight: 800; color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform var(--t); color: var(--green-700); }
.accordion[open] summary .icon { transform: rotate(45deg); }
.accordion__body { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-600); }

/* 5.18 Tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--ink-200); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 38rem; }
caption { text-align: left; padding: var(--sp-4) var(--sp-5) 0; font-weight: 700; color: var(--ink-900); font-family: var(--font-head); }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--ink-200); }
thead th { background: var(--ink-100); font-weight: 800; color: var(--ink-900); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 5.19 Rodape */
.site-footer { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #BCCAE8; padding-block: var(--sp-7) var(--sp-5); }
.site-footer h2, .site-footer h3 { color: #fff; font-size: var(--fs-base); }
.site-footer a { color: #DCE5F8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* o seletor de link do rodape e mais especifico que .btn: devolve o branco ao CTA */
.site-footer a.btn--primary, .site-footer a.btn--green { color: #fff; }
.site-footer a.btn:hover { text-decoration: none; }
.footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer__links { display: grid; gap: .5rem; font-size: var(--fs-sm); }
.footer__bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; font-size: var(--fs-xs); color: #93A7D4; }
.social { display: flex; gap: .5rem; }
.social a { width: 2.4rem; height: 2.4rem; border-radius: var(--r-full); border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; transition: var(--t-fast); }
.social a:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* 5.20 Toast */
.toast-region { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: var(--sp-5); display: grid; gap: .5rem; width: min(94vw, 26rem); }
.toast {
  background: var(--ink-900); color: #fff; border-radius: var(--r-lg); padding: .8rem 1rem;
  box-shadow: var(--shadow-lg); font-size: var(--fs-sm); display: flex; gap: .6rem; align-items: flex-start;
  animation: sp-toast var(--t-slow) both;
}
.toast strong { color: #fff; display: block; }
.toast .icon { color: var(--green-300); margin-top: .15rem; }
@keyframes sp-toast { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* 5.21 Callouts */
.callout { border-radius: var(--r-xl); padding: var(--sp-5); border: 1px solid var(--blue-100); background: var(--blue-50); color: var(--blue-900); }
.callout--green { border-color: var(--green-100); background: var(--green-50); color: var(--green-900); }
.callout--orange { border-color: var(--orange-100); background: var(--orange-50); color: var(--orange-700); }
.callout h3, .callout h4 { color: inherit; }

/* 5.22 Revelacao ao rolar (sem CLS: so opacidade/translate) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* 5.23 Perfil do doador (widget) */
.donor-panel { display: grid; gap: var(--sp-4); }
.donor-panel__top { display: flex; align-items: center; gap: var(--sp-4); }
.donor-panel__ring { width: 4.5rem; height: 4.5rem; flex: none; }
.donor-panel__name { font-family: var(--font-head); font-weight: 800; color: var(--ink-900); font-size: var(--fs-lg); }
.donor-panel__seeds { font-size: var(--fs-sm); color: var(--ink-500); }

/* 5.24 Simulador / calculadora */
.calc { display: grid; gap: var(--sp-5); }
.calc__amounts { display: flex; flex-wrap: wrap; gap: .5rem; }
.calc__slider { width: 100%; accent-color: var(--brand-green-primary); }
.calc__out { display: grid; gap: var(--sp-3); }
.calc__line { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: var(--r-md); background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-900); font-weight: 600; font-size: var(--fs-sm); }
.calc__line .icon { color: var(--green-700); }
.calc__seeds { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-2xl); color: var(--orange-700); }

/* 5.25 CTA compacto do cabecalho (visivel so no mobile) */
.header__cta-mobile { display: inline-flex; }
@media (min-width: 64rem) { .header__cta-mobile { display: none; } }

/* 5.26 Retrato circular (depoimentos e equipe) */
.avatar {
  width: 3.5rem; height: 3.5rem; border-radius: var(--r-full); object-fit: cover;
  border: 3px solid var(--surface); box-shadow: var(--shadow-sm); flex: none;
}
.avatar--lg { width: 5.5rem; height: 5.5rem; }
.quote-head { display: flex; align-items: center; gap: var(--sp-3); }

/* 5.27 Cartao de adocao */
.adopt-card .card__media img { aspect-ratio: 1/1; }
.adopt-card .card__body { gap: var(--sp-2); }
.adopt-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.adopt-traits { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.adopt-traits .pill { background: var(--peach-50); border-color: var(--peach-100); color: var(--orange-700); }
.adopt-status { display: grid; gap: .4rem; font-size: var(--fs-xs); }
.adopt-status li { display: flex; align-items: center; gap: .4rem; color: var(--ink-600); }
.adopt-status .icon { width: 1rem; height: 1rem; color: var(--green-600); }
.adopt-status li[data-ok="false"] .icon { color: var(--ink-300); }

/* Tabela de convivencia da pagina do animal */
.convive { display: grid; gap: var(--sp-3); grid-template-columns: repeat(3, 1fr); }
.convive__item {
  text-align: center; padding: var(--sp-4) var(--sp-2); border-radius: var(--r-lg);
  border: 1px solid var(--ink-200); background: var(--surface);
}
.convive__item .icon { width: 1.9rem; height: 1.9rem; margin: 0 auto .4rem; color: var(--ink-500); }
.convive__item[data-v="sim"] { border-color: var(--green-100); background: var(--green-50); }
.convive__item[data-v="sim"] .icon { color: var(--green-600); }
.convive__item[data-v="avaliar"] { border-color: var(--peach-100); background: var(--peach-50); }
.convive__item[data-v="avaliar"] .icon { color: var(--peach-600); }
.convive__item[data-v="não"] { border-color: var(--ink-200); background: var(--ink-100); }
.convive__rot { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-900); }
.convive__val { font-size: var(--fs-xs); color: var(--ink-500); }

/* 5.28 Faixa de destaque com pastilha */
.spot {
  border-radius: var(--r-2xl); padding: var(--sp-6); background: var(--peach-50);
  border: 1px solid var(--peach-100); position: relative; overflow: hidden;
}
.spot::after {
  content: ""; position: absolute; right: -3rem; top: -3rem; width: 12rem; height: 12rem;
  border-radius: var(--r-full); background: var(--peach-300); opacity: .35;
}
.spot > * { position: relative; }

/* 5.29 Numero grande de etapa (padrao "entenda como funciona") */
.howto { display: grid; gap: var(--sp-5); }
@media (min-width: 40rem) { .howto { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .howto { grid-template-columns: repeat(4, 1fr); } }
.howto__item { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--r-2xl); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.howto__n {
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-full); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 900; font-size: 1.15rem;
  background: var(--peach-100); color: var(--orange-800); margin-bottom: var(--sp-3);
}
.howto__item h3 { font-size: var(--fs-base); margin-bottom: .35rem; }

/* ---------- 6. Utilitarios ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-500); }
.small { font-size: var(--fs-sm); }
.mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.flow-tight > * + * { margin-top: var(--sp-2); }
.tabular { font-variant-numeric: tabular-nums; }
.list-check { display: grid; gap: .6rem; }
.list-check li { display: flex; gap: .6rem; align-items: flex-start; }
.list-check .icon { color: var(--green-600); margin-top: .28rem; }
