/* ==========================================================================
   Campanha de Natal 2026 · Devocionário Tarde com Maria 2027
   Direção: devoto, acolhedor, sereno. Linho, papel de missal, ouro velho
   e terracota. A riqueza fica no devocionário; o resto da página fica calmo.
   ========================================================================== */

/* Fontes hospedadas aqui (subconjunto latin, cobre todo o português).
   Sem conexão extra com o Google Fonts, e pré-carregadas no <head>. */
@font-face {
  font-family: "Cantata One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cantata-one-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
}

:root {
  /* Neutros quentes (rampa de linho) */
  --paper:      #faf6f0;   /* fundo da página */
  --surface:    #ffffff;   /* cartões e formulário */
  --linen:      #efe6d8;   /* palco do devocionário */
  --linen-2:    #e6d9c6;
  --ink:        #2b1d17;   /* texto principal */
  --ink-2:      #5b4a40;   /* texto secundário */
  --ink-3:      #76655a;   /* texto discreto (≥ 4.5:1 sobre --paper) */
  --line:       rgba(43, 29, 23, 0.1);
  --line-2:     rgba(43, 29, 23, 0.18);

  /* Marca */
  --accent:       #a3472a;  /* terracota: ação principal e seleção */
  --accent-press: #8a3a20;
  --accent-tint:  #fbefe8;
  --gold:         #c5a571;  /* ouro velho do logo: só detalhes (contas) */
  --night:        #2b1d17;  /* faixa escura */
  --night-2:      #3a2920;

  /* Tipografia */
  --font-display: "Cantata One", "Iowan Old Style", Georgia, serif;
  --font-text:    "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Raios */
  --r-control: 10px;
  --r-card:    16px;
  --r-panel:   24px;

  /* Movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 520ms;

  --shell: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Sem palavra solta na última linha */
p, li, summary, figcaption { text-wrap: pretty; }
h1, h2, h3, .hero__lead, .purpose__call, .thanks__text, .share__title { text-wrap: balance; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 50;
  padding: 8px 16px;
  border-radius: var(--r-control);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tipografia ------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.375rem);
  line-height: 1.14;
  letter-spacing: 0;
  color: var(--ink);
  text-wrap: balance;
}
.display--md {
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  line-height: 1.18;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
}

/* Assinatura: a conta dourada do terço do logo */
.bead {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* Botões ----------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    opacity var(--t-fast) var(--ease);
}
.button:active { transform: scale(0.98); }
.button--primary { background: var(--accent); color: #fff; }
.button--primary:hover { background: var(--accent-press); }
.button--primary[aria-disabled="true"] {
  background: var(--linen-2);
  color: var(--ink-3);
  cursor: not-allowed;
}
.button--primary[aria-disabled="true"]:active { transform: none; }
.button--light { background: var(--paper); color: var(--ink); }
.button--light:hover { background: #fff; }
.button--sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.button .icon { transition: transform var(--t-fast) var(--ease); }
.button:hover .icon { transform: translateX(2px); }
.button.is-loading { opacity: 0.8; pointer-events: none; }

/* Topo ------------------------------------------------------------------- */
.topbar {
  position: relative;
  z-index: 10;
  background: transparent;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}
.topbar__logo { display: block; border-radius: 6px; }
.topbar__logo img { width: 132px; height: auto; }
.topbar__tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(43, 29, 23, 0.08);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* Fundo em degradê pastel: o topo da página começa por baixo do cabeçalho */
.aura {
  position: relative;
  isolation: isolate;
  margin-top: -80px;
  padding-top: 80px;
  background:
    radial-gradient(42% 46% at 78% 44%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(50% 58% at 2% 0%, #f5ecdc 0%, rgba(245, 236, 220, 0) 72%),
    radial-gradient(46% 56% at 100% 100%, #f3eadd 0%, rgba(243, 234, 221, 0) 72%),
    radial-gradient(42% 50% at 0% 100%, #e7edf2 0%, rgba(231, 237, 242, 0) 74%),
    radial-gradient(38% 44% at 100% 0%, #f7efe3 0%, rgba(247, 239, 227, 0) 70%),
    linear-gradient(180deg, #fefcf8 0%, #faf6ee 100%);
}
/* a base do degradê se dissolve no branco da próxima seção */
.aura::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(72px, 10vw, 140px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
  z-index: -1;
  pointer-events: none;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  /* 80px do cabeçalho + respiro */
  padding-block: calc(80px + clamp(24px, 4vw, 56px)) clamp(72px, 9vw, 128px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "stage"
    "form";
  gap: 24px;
}
.hero__intro { grid-area: intro; }
.hero__lead {
  max-width: 34rem;
  margin-top: 20px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--ink-2);
}
.hero__lead strong { font-weight: 600; color: var(--ink); }
/* com espaço, a frase em negrito fica inteira na mesma linha */
@media (min-width: 520px) { .hero__lead strong { display: inline-block; } }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { width: 18px; height: 18px; color: var(--accent); }

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    grid-template-areas:
      "intro stage"
      "form  stage";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: 32px;
  }
}

/* Devocionário solto sobre o degradê (o momento da página) --------------- */
.stage {
  grid-area: stage;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 24px 0 8px;
}
@media (min-width: 960px) {
  .stage {
    position: sticky;
    top: 40px;
    align-self: start;
    min-height: min(680px, calc(100vh - 80px));
    padding-bottom: 0;
  }
}

.stage__books {
  position: relative;
  width: clamp(176px, 40vw, 250px);
  aspect-ratio: 311 / 541;
}
@media (min-width: 960px) {
  .stage__books { width: clamp(250px, 25vw, 330px); }
}
/* sombra suave no chão, sem desenhar nenhuma caixa */
.stage__books::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -14%; right: -14%;
  bottom: -5%;
  height: 8%;
  background: radial-gradient(ellipse at center, rgba(110, 62, 44, 0.3) 0%, rgba(110, 62, 44, 0) 68%);
  filter: blur(5px);
  pointer-events: none;
}

.stage__book {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 18px 20px rgba(110, 62, 44, 0.2)) drop-shadow(0 2px 4px rgba(110, 62, 44, 0.16));
  transition:
    transform var(--t-slow) var(--ease),
    opacity var(--t-base) var(--ease);
}
.stage__book--1 { z-index: 3; }
.stage__book--2 { z-index: 2; opacity: 0; }
.stage__book--3 { z-index: 1; opacity: 0; }

.stage[data-qty="2"] .stage__book--1,
.stage[data-qty="3"] .stage__book--1,
.stage[data-qty="many"] .stage__book--1 { transform: translateX(10%) rotate(2deg); }

.stage[data-qty="2"] .stage__book--2,
.stage[data-qty="3"] .stage__book--2,
.stage[data-qty="many"] .stage__book--2 { opacity: 1; transform: translateX(-26%) translateY(-2%) rotate(-5deg); }

.stage[data-qty="3"] .stage__book--1,
.stage[data-qty="many"] .stage__book--1 { transform: translateX(26%) rotate(5deg); }
.stage[data-qty="3"] .stage__book--2,
.stage[data-qty="many"] .stage__book--2 { transform: translateX(0) translateY(-3%) rotate(0deg); }
.stage[data-qty="3"] .stage__book--3,
.stage[data-qty="many"] .stage__book--3 { opacity: 1; transform: translateX(-26%) translateY(-1%) rotate(-5deg); }

.stage__more {
  position: absolute;
  z-index: 4;
  right: -16%;
  top: 4%;
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 16px rgba(110, 62, 44, 0.16);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.stage[data-qty="many"] .stage__more { opacity: 1; transform: none; }

/* Selo: "Frete" e "grátis" empilhados, "para todo o Brasil" embaixo */
.seal {
  position: absolute;
  z-index: 5;
  left: -24%;
  bottom: 9%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(104px, 9vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 10px 24px rgba(163, 71, 42, 0.32), 0 2px 4px rgba(110, 62, 44, 0.18);
}
.seal__ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px dotted rgba(255, 255, 255, 0.6);
}
.seal__line--top,
.seal__line--mid {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 0.9rem + 0.7vw, 1.5rem);
  line-height: 1.02;
}
.seal__line--bottom {
  margin-top: 6px;
  max-width: 80%;
  font-size: clamp(0.5625rem, 0.5rem + 0.2vw, 0.6875rem);
  font-weight: 500;
  line-height: 1.25;
}

.stage__caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(43, 29, 23, 0.08);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: nowrap;
}
.stage__dash { width: 12px; height: 1.5px; background: currentColor; }

/* Formulário ------------------------------------------------------------- */
.donate {
  grid-area: form;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-panel);
  background: #fff;
  border: 1px solid rgba(43, 29, 23, 0.1);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 3px solid var(--linen);
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.steps__item.is-current {
  border-top-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.steps__num {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--linen);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps__item.is-current .steps__num { background: var(--accent); color: #fff; }

.donate__title {
  margin-bottom: 16px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.amounts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.amount {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
  padding: 16px;
  border-radius: var(--r-card);
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.amount:hover { border-color: rgba(163, 71, 42, 0.5); }
.amount:active { transform: scale(0.99); }
.amount input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.amount:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.amount:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.amount__value {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.amount__desc {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.amount__badge {
  position: absolute;
  top: -11px;
  right: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.02em;
}

/* Outro valor */
.custom { margin-top: 16px; }
.custom[hidden] { display: none; }
.custom__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}
.custom__field {
  display: grid;
  grid-template-columns: 48px auto 1fr 48px;
  align-items: center;
  height: 56px;
  border-radius: var(--r-control);
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  transition: border-color var(--t-fast) var(--ease);
}
.custom__field:focus-within { border-color: var(--accent); }
.custom.is-invalid .custom__field { border-color: #b4321f; }
.custom__prefix {
  padding-left: 4px;
  font-weight: 500;
  color: var(--ink-3);
}
.custom__input {
  width: 100%;
  height: 100%;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.custom__step {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-inline: 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.custom__step:hover { background: var(--paper); color: var(--ink); }
.custom__step:disabled { opacity: 0.35; cursor: not-allowed; background: transparent; }
.custom__step svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round;
}
.custom__help {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.custom.is-invalid .custom__help { color: #b4321f; }

.note {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--r-control);
  background: var(--paper);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-2);
}
.note__dot {
  width: 6px; height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.abroad {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--r-control);
  border: 1px dashed var(--line-2);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.abroad .icon { margin-top: 2px; color: var(--accent); }
.abroad strong { color: var(--ink); font-weight: 600; }

.donate__submit { width: 100%; margin-top: 24px; }

.donate__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 16px;
}
.secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ink-3);
}
.secure .icon { width: 16px; height: 16px; }
.pay { display: flex; gap: 6px; }
.pay li {
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* Conteúdo do devocionário ----------------------------------------------- */
.contents {
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.contents__grid {
  display: grid;
  gap: 48px;
}
.contents__lead {
  max-width: 30rem;
  margin-top: 20px;
  font-size: 1.0625rem;
  color: var(--ink-2);
}
@media (min-width: 960px) {
  .contents__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 7vw, 112px);
  }
  .contents__head { position: sticky; top: 48px; align-self: start; }
}

.chapters { display: grid; }
.chapter {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.chapter:last-child { border-bottom: 1px solid var(--line); }
.chapter__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.chapter__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.15;
}
.prayers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.prayers li {
  display: inline-flex;
  align-items: center;
}
/* entre as orações, uma conta dourada, como num terço */
.prayers li:not(:last-child)::after {
  content: "";
  width: 5px; height: 5px;
  margin-inline: 12px;
  border-radius: 50%;
  background: var(--gold);
}

/* Propósito + chamada final ---------------------------------------------- */
.purpose {
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--night);
  color: #f3ebe0;
  overflow: hidden;
}
.purpose .display { color: #fbf6ef; }
.purpose__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "text"
    "works"
    "cta";
  gap: 32px;
}
.purpose__text { grid-area: text; }
.purpose__text p {
  max-width: 34rem;
  margin-top: 20px;
  font-size: 1.0625rem;
  color: rgba(243, 235, 224, 0.8);
}
.purpose__cta {
  grid-area: cta;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(243, 235, 224, 0.14);
}
.purpose__call {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  color: #fbf6ef;
  max-width: 22rem;
}
.purpose__deadline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(243, 235, 224, 0.7);
}
.purpose__deadline::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
@media (min-width: 960px) {
  .purpose__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "text works"
      "cta  works";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 88px);
    row-gap: 40px;
    align-items: start;
  }
  .purpose__cta { align-self: end; }
}

/* Carrossel das obras: faixa contínua em loop ------------------------------ */
.works { grid-area: works; min-width: 0; }

/* Sem JS ou com movimento reduzido: faixa rolável, com snap */
.works__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-card);
}
.works__viewport::-webkit-scrollbar { display: none; }
.works__track {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 0;
}
.works__slide {
  flex: 0 0 auto;
  width: clamp(220px, 62vw, 288px);
  aspect-ratio: 308 / 359;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--night-2);
  scroll-snap-align: start;
}
.works__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Modo contínuo (ativado pelo JS): o loop anda só com transform */
.works.is-marquee .works__viewport {
  overflow: hidden;
  scroll-snap-type: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.works.is-marquee .works__slide { scroll-snap-align: none; }
.works.is-marquee .works__track {
  animation: works-loop var(--works-dur, 32s) linear infinite;
  will-change: transform;
}
.works.is-marquee.is-paused .works__track { animation-play-state: paused; }
@media (hover: hover) {
  .works.is-marquee .works__viewport:hover .works__track { animation-play-state: paused; }
}
.works.is-marquee:focus-within .works__track { animation-play-state: paused; }

@keyframes works-loop {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(var(--works-loop, 0px) * -1), 0, 0); }
}

.works__pause {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(243, 235, 224, 0.75);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.works__pause[hidden] { display: none; }
.works__pause:hover { color: #fbf6ef; background: rgba(243, 235, 224, 0.08); }
.works__pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.works__pause .icon { width: 18px; height: 18px; }
.works__pause .icon[hidden] { display: none; }

/* FAQ -------------------------------------------------------------------- */
.faq { padding-block: clamp(72px, 9vw, 120px); }
.faq__grid { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 112px); }
}
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 16px;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__chev {
  position: relative;
  width: 16px; height: 16px;
  flex: none;
}
.faq__chev::before, .faq__chev::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-base) var(--ease);
}
.faq__chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__chev::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p {
  max-width: 40rem;
  padding-bottom: 24px;
  color: var(--ink-2);
}

/* Rodapé discreto -------------------------------------------------------- */
.footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-3);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Barra fixa no celular -------------------------------------------------- */
.dock {
  position: fixed;
  z-index: 40;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(43, 29, 23, 0.14);
  opacity: 0;
  transform: translateY(calc(100% + 16px));
  pointer-events: none;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.dock.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.dock__summary { display: flex; flex-direction: column; line-height: 1.25; }
.dock__value { font-weight: 600; font-variant-numeric: tabular-nums; }
.dock__qty { font-size: 0.75rem; color: var(--ink-3); }
@media (min-width: 960px) { .dock { display: none; } }

/* Página de obrigado ----------------------------------------------------- */
.thanks {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-block: clamp(48px, 8vw, 104px);
}
.thanks__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .thanks__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 88px; }
}
.thanks__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.thanks__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px dotted rgba(255, 255, 255, 0.55);
}
.thanks__mark .icon { width: 22px; height: 22px; stroke-width: 2; }
.thanks__text {
  max-width: 34rem;
  margin-top: 24px;
  font-size: 1.0625rem;
  color: var(--ink-2);
}
.share {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--r-panel);
  background: var(--surface);
  border: 1px solid var(--line);
  max-width: 38rem;
}
.share__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}
.share__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.button--ghost:hover { border-color: var(--ink-3); }
.thanks__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0 16px;
}
.thanks__visual::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%;
  bottom: 4%;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(110, 62, 44, 0.3) 0%, rgba(110, 62, 44, 0) 68%);
  filter: blur(5px);
}
.thanks__visual img {
  position: relative;
  z-index: 1;
  width: clamp(170px, 30vw, 270px);
  height: auto;
  filter: drop-shadow(0 18px 20px rgba(110, 62, 44, 0.2)) drop-shadow(0 2px 4px rgba(110, 62, 44, 0.16));
  transform: rotate(3deg);
}

/* Movimento -------------------------------------------------------------- */
.js .enter {
  opacity: 0;
  transform: translateY(12px);
  animation: enter var(--t-slow) var(--ease) forwards;
}
.js .enter:nth-child(2) { animation-delay: 80ms; }
.js .enter:nth-child(3) { animation-delay: 160ms; }
@keyframes enter { to { opacity: 1; transform: none; } }

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  .js .enter, .js .reveal { opacity: 1; transform: none; }
}

/* Celular ---------------------------------------------------------------- */
@media (max-width: 959px) {
  .seal { width: 100px; left: -20%; bottom: 8%; }
  .stage__more { right: -24%; }
  .stage__caption { margin-top: 32px; }
  body { padding-bottom: 88px; }
  .thanks-page { padding-bottom: 0; }
}

@media (max-width: 400px) {
  .amount { padding: 14px 12px; min-height: 96px; }
  .amount__value { font-size: 1.25rem; }
  .topbar__tag { font-size: 0.75rem; padding: 5px 12px; }
}
