/* =========================================================
   NotAlone Aid — Checkout v2
   Tokens ========================================================= */
:root {
  --ink: #17130f;
  --ink-soft: #4a433c;
  --paper: #faf6f0;
  --sand: #efe8dd;
  --line: #e2d8c8;
  --ember: #b23a17;
  --ember-dark: #8c2c10;
  --ember-tint: #fbe9e0;
  --focus: #1f6fb2;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", Times, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

svg {
  display: block;
}

/* Foco sempre visível */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
label:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: block;
  line-height: 0;
}

.wordmark img {
  display: block;
  height: 40px;
  width: auto;
}

@media (min-width: 480px) {
  .wordmark img {
    height: 46px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, transform 0.05s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ember);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ember-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  background: #cba393;
  cursor: not-allowed;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
  border-radius: 10px;
}

.btn-lg {
  width: 100%;
  padding: 17px 20px;
  font-size: 1.08rem;
  border-radius: 12px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1c1611;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  margin: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 9, 7, 0.25) 0%,
    rgba(12, 9, 7, 0.45) 40%,
    rgba(10, 7, 6, 0.94) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 44px;
  width: 100%;
  color: var(--paper);
}

.hero .eyebrow {
  color: #f0d9c8;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.75rem, 11vw, 3.5rem);
  max-width: 14ch;
  margin-bottom: 0.35em;
}

.hero p {
  color: #ede3d6;
  max-width: 54ch;
  font-size: 1.05rem;
}

.hero-cta-row {
  margin-top: 24px;
}

.hero-cta-row .btn {
  padding: 18px 28px;
  font-size: 1.1rem;
  border-radius: 14px;
}

.hero-microcopy {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #d9c9b8;
  letter-spacing: 0.02em;
}

/* =========================================================
   Faixa de fatos
   ========================================================= */
.facts-strip {
  background: var(--ink);
  color: var(--paper);
}

.facts-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 28px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.facts-grid .stat strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  color: #f3c6ac;
  line-height: 1;
  margin-bottom: 6px;
}

.facts-grid .stat span {
  display: block;
  font-size: 0.78rem;
  color: #cabfb2;
  line-height: 1.35;
}

.facts-source {
  grid-column: 1;
  margin: 18px 0 0;
  font-size: 0.76rem;
  color: #9c9184;
}

.facts-source a {
  color: #d9c9b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   Layout (coluna principal + card de doação)
   ========================================================= */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.layout > * {
  grid-column: 1;
}

.section-heading {
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  margin-bottom: 0.4em;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Card de doação */
.donate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  margin-top: -56px;
  position: relative;
  z-index: 5;
  box-shadow: 0 24px 48px -26px rgba(23, 19, 15, 0.45);
  scroll-margin-top: 84px;
}

.donate-card h2 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.donate-card .hint {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.amount-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

.amount-fieldset legend {
  padding: 0;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.amount-option input,
.custom-amount-row > input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.custom-amount-row {
  position: relative;
}

.custom-amount-row > label {
  position: relative;
  padding-left: 26px;
}

.custom-amount-row > label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
}

.custom-amount-row > input[type="radio"]:checked + label::before {
  border-color: var(--ember);
  box-shadow: inset 0 0 0 4px var(--ember);
}

.custom-amount-row > input[type="radio"]:focus-visible + label::before {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.amount-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  cursor: pointer;
  background: var(--paper);
  font-weight: 700;
  font-size: 1.02rem;
  transition: border-color 0.12s ease, background 0.12s ease;
  min-height: 56px;
}

.amount-option input:checked + label {
  border-color: var(--ember);
  background: var(--ember-tint);
  color: var(--ember-dark);
}

.amount-option .tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember);
}

.custom-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.custom-amount-row label {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.custom-amount-wrap {
  position: relative;
  flex: 1;
}

.custom-amount-wrap span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-weight: 600;
}

#customAmount {
  width: 100%;
  min-height: 48px;
  padding: 12px 12px 12px 34px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

#customAmount:disabled {
  background: var(--sand);
  color: var(--ink-soft);
}

.field-error {
  color: var(--ember-dark);
  font-size: 0.85rem;
  margin: 8px 0 0;
  min-height: 1.2em;
}

.trust-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.trust-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.trust-points svg {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: var(--ember);
}

.pix-state {
  text-align: center;
}

.pix-amount {
  font-size: 1rem;
  margin-bottom: 14px;
}

.pix-amount strong {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--ember-dark);
}

.pix-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.pix-qr-wrap img {
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.pix-steps {
  text-align: left;
  list-style: none;
  counter-reset: pix-step;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pix-steps li {
  counter-increment: pix-step;
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.pix-steps li::before {
  content: counter(pix-step);
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn {
  background: var(--ember);
}

.copy-btn.copied {
  background: #1f7a3d;
}

.pix-countdown {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
  min-height: 1.2em;
  margin: 12px 0 0;
}

.pix-waiting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 8px 0 0;
}

.pix-waiting::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.back-link-btn {
  display: inline-block;
  margin-top: 18px;
  background: none;
  border: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

/* =========================================================
   Vídeo
   ========================================================= */
.video-section {
  text-align: center;
}

.video-frame {
  max-width: 340px;
  margin: 20px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 40px -24px rgba(23, 19, 15, 0.4);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   Galeria
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.gallery-grid figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* =========================================================
   Para onde vai / texto honesto
   ========================================================= */
.honest-block {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.honest-block p:last-child {
  margin-bottom: 0;
  font-weight: 600;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  color: var(--ember);
  line-height: 1;
  transition: transform 0.15s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.faq-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   CTA final
   ========================================================= */
.cta-final {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 56px 20px;
  margin-top: 64px;
}

.cta-final h2 {
  color: #fff;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  max-width: 16ch;
  margin: 0 auto 0.6em;
}

.cta-final .btn {
  padding: 18px 30px;
  font-size: 1.08rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #100d0a;
  color: #b9ad9d;
  padding: 40px 20px calc(120px + env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 0.85rem;
}

.footer-links a {
  color: #d9c9b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copy {
  font-size: 0.78rem;
  color: #7a7063;
}

/* =========================================================
   Barra fixa mobile
   ========================================================= */
.mobile-donate-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.2s ease;
}

.mobile-donate-bar[hidden] {
  display: block;
  transform: translateY(100%);
  pointer-events: none;
}

.mobile-donate-bar .btn {
  height: 48px;
  width: 100%;
}

/* =========================================================
   Página Obrigado
   ========================================================= */
.thanks-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 20px 64px;
  text-align: center;
}

.thanks-wrap .check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ember-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 1.8rem;
}

.thanks-wrap h1 {
  font-size: clamp(1.9rem, 6vw, 2.4rem);
}

.thanks-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 15px 26px;
  border-radius: 12px;
}

.share-btn:hover {
  background: #1ebe5b;
}

.back-link {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   Página de privacidade
   ========================================================= */
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 64px;
}

.legal-wrap h1 {
  font-size: clamp(1.9rem, 6vw, 2.4rem);
}

.legal-wrap h2 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--ink-soft);
}

.legal-wrap .updated {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2em;
}

/* =========================================================
   Desktop: layout de duas colunas a partir de 860px
   ========================================================= */
@media (min-width: 860px) {
  .hero {
    min-height: 68vh;
  }

  .layout {
    grid-template-columns: 1.55fr 1fr;
    gap: 0 48px;
    padding-top: 0;
  }

  .layout > * {
    grid-column: 1;
  }

  .facts-strip {
    grid-column: 1;
  }

  .donate-card {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    position: sticky;
    top: 88px;
    margin-top: -46vh; /* sobe o card para dentro do hero: doação visível na 1ª dobra */
    z-index: 5;
  }

  .facts-strip-inner {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 0 48px;
  }

  .facts-grid {
    grid-column: 1;
    max-width: 480px;
  }

  .video-frame {
    max-width: 380px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-donate-bar {
    display: none;
  }
}

@media (min-width: 1180px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

/* =========================================================
   Seções — respiro vertical (mobile 56px, desktop 72–96px)
   ========================================================= */
.facts-strip-inner,
.video-section,
.gallery-section,
.honest-section,
.faq-section {
  padding-top: 56px;
}

.donate-card {
  scroll-margin-top: 84px;
}

@media (min-width: 860px) {
  .facts-strip-inner,
  .video-section,
  .gallery-section,
  .honest-section,
  .faq-section {
    padding-top: 88px;
  }
}

/* =========================================================
   Movimento reduzido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
