/* Página de agradecimento — minimalista, animada com GSAP.
   Design system inspirado no template Rostra (Framer): Inter Display 600 com tracking fechado, tinta quase preta,
   fundo off-white, um único vermelho de destaque, botões em pílula, cartões com 12px de raio. */
.deck {
  --blue: #0377b9;           /* azul da bandeira de Alagoas */
  --blue-deep: #025a8c;
  --ink: #052b44;            /* tinta: azul-petróleo (nada de preto) */
  --paper: #eef6fb;          /* fundo claro azulado (nada de branco chapado) */
  --white: #ffffff;
  --grey-1: #5b7388;
  --grey-2: #34556b;
  --line: #cfe3f0;
  --accent: #d9261c;         /* vermelho da bandeira de Alagoas */
  --accent-lt: #ff8f86;      /* vermelho legível sobre o azul */
  --r-card: 12px;
  --r-pill: 50px;
  --font: "Inter Display", "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
}
html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
body.deck { background: var(--paper); color: var(--ink); font-family: var(--font); font-weight: 500; letter-spacing: -.02em; overflow-x: hidden; }
.deck h1, .deck h2, .deck h3 { font-weight: 600; letter-spacing: -.04em; }
.deck em { font-style: normal; color: var(--accent); }

.slide { position: relative; min-height: 100svh; display: grid; align-items: center; scroll-snap-align: start; overflow: hidden; padding: clamp(5rem, 11vh, 7rem) var(--pad) var(--pad); }
.slide__in { position: relative; z-index: 1; width: min(76rem, 100%); margin: 0 auto; }
.eyebrow { font-weight: 600; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-1); }

/* Com GSAP, os elementos nascem escondidos e o script os revela (sem JS tudo aparece normalmente). */
.gsap .gs, .gsap .intro { opacity: 0; }

/* ---------- topo ---------- */
.topo { position: fixed; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: center; padding: 1.1rem var(--pad); pointer-events: none; }
.topo > * { pointer-events: auto; }
.topo__logo { position: relative; display: block; height: 2.7rem; aspect-ratio: 566 / 284; }
.topo__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s; }
.topo__logo .l-branca { opacity: 0; }
.topo.on-dark .l-cor { opacity: 0; }
.topo.on-dark .l-branca { opacity: 1; }

/* ---------- botões em pílula ---------- */
.pill { display: inline-flex; align-items: center; gap: .65rem; padding: 15px 24px; border-radius: var(--r-pill); font-weight: 600; font-size: 1rem; letter-spacing: -.02em; text-decoration: none; line-height: 1; transition: transform .2s, background .2s; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill:hover { transform: translateY(-2px); }
.pill--claro { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(5, 43, 68, .1); padding: 11px 18px; font-size: .875rem; }
.pill--escuro { background: var(--blue); color: var(--white); }
.pill--vermelho { background: #d9261c; color: var(--white); }

/* ---------- 1 · capa ---------- */
.slide--capa { background: linear-gradient(180deg, #f3f9fd 0%, #e1f0f8 100%); padding: 0; min-height: 100svh; }
.bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; display: block; border-radius: 50%; }   /* gradientes suaves e estáticos: bonito e leve */
.blob--verde { width: 60vmax; height: 60vmax; left: -22vmax; top: -24vmax; background: radial-gradient(circle, rgba(3, 119, 185, .22) 0%, rgba(3, 119, 185, 0) 66%); }
.blob--azul { width: 46vmax; height: 46vmax; right: -12vmax; top: -22vmax; background: radial-gradient(circle, rgba(3, 119, 185, .2) 0%, rgba(3, 119, 185, 0) 66%); }

/* Palavras gigantes: "Obrigada," em azul sólido (atrás dela) e "Alagoas." com a bandeira de Alagoas como textura (na frente) */
.big { position: absolute; left: 0; right: 0; text-align: center; white-space: nowrap; font-weight: 800; text-transform: uppercase; letter-spacing: -.06em; line-height: .8; pointer-events: none;
  font-size: min(15.4vw, 25svh); }
.big br.m { display: none; }
.big em { font-style: normal; color: transparent; -webkit-text-fill-color: transparent; }   /* o ponto também leva a textura */
.big--tras { z-index: 1; top: clamp(4.8rem, 12svh, 8rem); color: var(--blue); }   /* cor sólida: só "Alagoas." leva a bandeira */
.big--frente { z-index: 4; color: transparent; background: url("../img/brand/bandeira-alagoas.webp") center / cover no-repeat; -webkit-background-clip: text; background-clip: text;   /* bandeira SEM esticar (proporção original) */
  bottom: clamp(1rem, 4svh, 2.6rem); padding-bottom: .1em; filter: drop-shadow(0 0 1.5px rgba(5, 43, 68, .4)); }
.gsap .big { opacity: 0; }
/* sombra sóbria: cópia levemente desfocada e deslocada atrás do texto, com a mesma bandeira (cada trecho projeta a própria cor) */
.big--brilho { z-index: 3; bottom: calc(clamp(1rem, 4svh, 2.6rem) - .05em); padding-bottom: .1em; color: transparent; background: url("../img/brand/bandeira-alagoas.webp") center / cover no-repeat; -webkit-background-clip: text; background-clip: text; filter: blur(.03em) brightness(.8); opacity: .4; }


.capa__foto { position: absolute; z-index: 2; left: 50%; bottom: 0; margin: 0; transform: translateX(-50%); }
.capa__foto::before { content: ""; position: absolute; z-index: -1; left: -45%; right: -45%; top: 0; bottom: -10%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); }   /* luz atrás dela */
.capa__foto img { height: min(80svh, 54rem); width: auto; max-width: none; object-fit: contain; object-position: bottom; filter: drop-shadow(0 .6rem 1.1rem rgba(5, 43, 68, .32)) drop-shadow(0 0 2px rgba(5, 43, 68, .25));   /* sombra sóbria e curta */ }
.gsap .capa__foto img { opacity: 0; }

.capa { position: relative; z-index: 5; display: grid; align-items: center; justify-items: start; min-height: 100svh; width: min(86rem, calc(100% - 2 * var(--pad))); margin: 0 auto; pointer-events: none; }
.capa__topo { max-width: 24rem; display: grid; gap: 1.1rem; justify-items: start; pointer-events: auto; margin-top: 6svh; }
.capa__sub { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 600; line-height: 1.4; color: var(--ink); letter-spacing: -.03em; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border: 1px solid #fff; border-left: 4px solid var(--accent); padding: 1.15rem 1.4rem; border-radius: var(--r-card); box-shadow: 0 14px 40px rgba(3, 119, 185, .22), 0 2px 6px rgba(5, 43, 68, .08); }
.capa__topo .eyebrow { color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .1em; display: inline-flex; align-items: center; gap: .6rem; }
.capa__topo .eyebrow::before { content: ""; width: 1.6rem; height: 3px; border-radius: 2px; background: var(--accent); }

/* ---------- 2 · total ---------- */
.slide--total { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: var(--white); text-align: left; }
.slide--total .eyebrow { color: #bfe0f2; }
.rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rings i { grid-area: 1 / 1; display: block; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); width: 46vmin; aspect-ratio: 1; }
.rings i:nth-child(2) { width: 76vmin; border-color: rgba(255, 255, 255, .07); }
.rings i:nth-child(3) { width: 110vmin; border-color: rgba(255, 255, 255, .05); }
.total__n { margin: .6rem 0 0; font-weight: 600; font-size: clamp(4.6rem, 21vw, 17rem); line-height: .86; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.total__linha { display: block; width: min(10rem, 30vw); height: 3px; margin: 2rem 0 0; background: var(--accent-lt); transform-origin: left center; }
.total__t { margin: 1.4rem 0 0; max-width: 26rem; font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.35; letter-spacing: -.03em; color: #dcedf7; }

/* ---------- 3 · mapa 3D (dentro de um cartão) ---------- */
.slide--mapa { background: var(--paper); padding: clamp(4.4rem, 9vh, 5.4rem) var(--pad) var(--pad); }
.mapa__card { position: relative; width: 100%; height: calc(100svh - clamp(4.4rem, 9vh, 5.4rem) - var(--pad)); min-height: 34rem; margin: 0 auto; background: linear-gradient(180deg, #e7f2f9 0%, #d2e7f3 100%); border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(5, 43, 68, .06), 0 12px 40px rgba(3, 119, 185, .1); overflow: hidden; }
.mapa__cab { position: absolute; z-index: 2; left: clamp(1.2rem, 3vw, 2.4rem); top: clamp(1.2rem, 3vw, 2.2rem); pointer-events: none; }
.mapa__titulo { margin-top: .7rem; font-size: clamp(1.8rem, 4.2vw, 3.5rem); line-height: .98; letter-spacing: -.05em; color: var(--ink); }
.mapa__titulo span { color: var(--accent); }
.map3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.map3d:active { cursor: grabbing; }
.mapa__info { position: absolute; z-index: 2; left: clamp(1.2rem, 3vw, 2.4rem); bottom: clamp(1.2rem, 3vw, 2.2rem); display: grid; gap: .25rem; max-width: 24rem; padding: .9rem 1.2rem; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: var(--r-card); border-left: 4px solid var(--accent); box-shadow: 0 10px 30px rgba(3, 119, 185, .18); pointer-events: none; }
.mapa__info strong { font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: -.045em; color: var(--ink); line-height: 1; }
.mapa__info span { color: var(--grey-2); font-size: .95rem; line-height: 1.35; font-weight: 600; }
.mapa__legenda { position: absolute; z-index: 2; right: clamp(1.2rem, 3vw, 2.4rem); bottom: clamp(1.2rem, 3vw, 2.2rem); display: flex; align-items: center; gap: .6rem; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-1); }
.mapa__legenda i { display: block; width: clamp(6rem, 14vw, 10rem); height: 6px; border-radius: 99px; background: linear-gradient(90deg, #eef6fb, #0377b9); }

/* ---------- 4 · fim ---------- */
.slide--fim { background: var(--blue-deep); color: var(--white); align-items: end; padding-bottom: clamp(2rem, 7svh, 4.5rem); min-height: 100svh; }
/* foto dela ocupando a tela, escurecendo em azul (bandeira) de baixo para cima, onde ficam o texto e a logo */
.fim__foto { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(2, 90, 140, .04) 0%, rgba(2, 90, 140, .1) 50%, rgba(2, 74, 116, .9) 76%, #024c75 100%), url("../img/brand/julia-acenando.webp") center 18% / cover no-repeat; will-change: transform; }
.slide--fim em { color: var(--accent-lt); }
.fim { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.fim__titulo { font-size: clamp(2.2rem, 4.8vw, 4.4rem); white-space: nowrap; line-height: .95; letter-spacing: -.055em; text-shadow: 0 2px 24px rgba(2, 60, 100, .45); }
.fim__texto { margin-inline: auto; max-width: 30rem; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.4; letter-spacing: -.02em; color: #e6f3fa; }
.fim__titulo br { display: none; }
.fim__logo { height: clamp(3.2rem, 6vw, 4.6rem); width: auto; margin-top: .4rem; }

/* ---------- pontos de navegação ---------- */
.dots { position: fixed; right: clamp(.5rem, 1.4vw, 1rem); top: 50%; z-index: 10; display: flex; flex-direction: column; gap: .7rem; transform: translateY(-50%); }
.dots a { display: block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); background: rgba(255, 255, 255, .7); transition: transform .2s, background .2s; }
.dots a[aria-current="true"] { background: var(--accent); transform: scale(1.3); }

/* ---------- celular ---------- */
@media (max-width: 52rem) {
  html { scroll-snap-type: none; }
  .slide { min-height: auto; }
  .topo { padding: .8rem var(--pad); }
  .topo__logo { height: 2.3rem; }
  .dots { display: none; }

  /* capa: "OBRI/GADA," gigante em 2 linhas atrás dela; "ALAGOAS." grande na frente */
  .slide--capa { min-height: 100svh; min-height: 100dvh; }
  .big { font-size: min(16.2vw, 12svh); }
  .big br.m { display: inline; }
  .big--tras { top: clamp(4.2rem, 11svh, 6.5rem); font-size: min(33vw, 19svh); line-height: .8; letter-spacing: -.065em; }
  .big--frente, .big--brilho { bottom: clamp(.8rem, 3svh, 1.6rem); }
  .capa__foto img { height: min(70svh, 40rem); }

  /* total */
  .slide--total { min-height: 86svh; padding-block: 5.5rem 3.5rem; }
  .total__n { font-size: clamp(4.4rem, 25vw, 9rem); letter-spacing: -.06em; }
  .total__t { font-size: 1.15rem; max-width: 20rem; }

  /* mapa: cartão mais alto e mapa em pé (a pose "em pé" é calculada no JS) */
  .slide--mapa { padding: 4.2rem .8rem .8rem; }
  .mapa__card { height: 76svh; min-height: 30rem; }
  .mapa__cab { left: 1.1rem; top: 1.1rem; }
  .mapa__titulo { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .mapa__legenda { display: none; }
  .mapa__info { left: .8rem; right: .8rem; bottom: .8rem; max-width: none; }

  /* fim */
  .slide--fim { min-height: 100svh; min-height: 100dvh; padding: 6rem 1.2rem 2.4rem; }
  .fim__foto { background-position: 47% 14%; }
  .fim__titulo { white-space: normal; font-size: clamp(2.3rem, 11.5vw, 3.8rem); }
  .fim__titulo br { display: inline; }
  .fim__logo { height: 3.6rem; }
}
@media (max-width: 52rem) and (orientation: landscape) {
  .big { font-size: min(14vw, 24svh); }
  .big--tras { font-size: min(14vw, 24svh); }
  .big--tras br.m { display: none; }
}
