:root {
  --brand-dark: #8a1113;      /* vermelho escuro */
  --brand: #d11e20;           /* vermelho livro */
  --brand-ink: #111318;       /* títulos escuros */
  --accent: #d11e20;          /* acento = vermelho */
  --accent-ink: #7a0f12;      /* texto sobre fundo claro/acento suave */
  --bg: #ffffff;              /* fundo geral claro */
  --surface: #ffffff;         /* cartões/superfícies */
  --text: #1b1e23;            /* texto padrão escuro */
  --muted: #646a76;           /* texto secundário */
  --success: #1e8e3e;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1160px;
  --logo-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, .btn:focus-visible { outline: 3px solid rgba(209,30,32,.45); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  color: #fff;
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
/* Reduz custo de composição durante rolagem */
html.is-scrolling .header { -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.header-inner > * { min-width: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--logo-height); width: auto;
  background: transparent; border-radius: 0; overflow: visible;
  box-shadow: none; color: inherit;
}
.brand-mark img { height: var(--logo-height); width: auto; object-fit: contain; display: block; }
.brand-text {
  display: flex; flex-direction: column;
}
.brand-title { font-weight: 700; letter-spacing: .2px; color: var(--brand-ink); }
.brand-sub { font-size: 12px; color: var(--muted); }
.header .brand-title { color: #fff; }
.header .brand-sub { color: #c9d4e7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; font-weight: 600;
  padding: 12px 18px; border-radius: 999px; border: 0;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff3035);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(209, 30, 32, .28);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline {
  background: transparent; color: var(--brand);
  border: 1px solid rgba(209, 30, 32, .45);
}
.btn-sm { padding: 8px 12px; font-size: 14px; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 90% -80%, rgba(209, 30, 32, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fafbfc 60%, #ffffff 100%);
  padding: 32px 0 20px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 28px; }
.hero .copy { max-width: 640px; }
.eyebrow {
  color: var(--brand); font-weight: 500; letter-spacing: .2px; font-size: 12px;
  display: inline-block; position: relative; padding-bottom: 6px;
}
.eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 42px; height: 2px; background: var(--brand); border-radius: 999px;
}
.h1 { font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; font-weight: 800; line-height: 1.12; font-size: clamp(30px, 5.2vw, 50px); color: var(--brand-ink); margin: 8px 0 10px; text-wrap: balance; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); margin: 8px 0 20px; max-width: 58ch; }
.event-meta { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--brand); background: rgba(209,30,32,.10); padding: 8px 12px; border-radius: 999px; margin: 10px 0 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.price-chip { background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 999px; font-weight: 600; }
.hero-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0; margin: 10px 0 22px; list-style: none; }
.hero-badges li { background: rgba(209,30,32,.10); color: var(--brand); font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.hero-badges address { font-style: normal; }
.cta-note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  min-height: 360px; background: #ebeff5; width: 100%;
  aspect-ratio: 16 / 10;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: none;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; color: #334; padding: 16px; text-align: center;
}
.hero-pill {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .72); color: var(--brand-ink);
  padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
html.is-scrolling .hero-pill { -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-pill time, .hero-pill address { font-style: normal; opacity: .95; }

/* Generic section */
section { padding: 56px 0; }
.section-title { font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; font-weight: 800; font-size: clamp(22px, 3.8vw, 34px); margin: 0 0 10px; color: var(--brand-ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.section-sub { color: var(--muted); margin: 0 0 24px; }

/* About book */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.card { background: var(--surface); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-media { aspect-ratio: 4/5; background: #f3f5f9; display: grid; place-items: center; color: #1b1e23; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.note { background: var(--brand); color: #fff; padding: 12px 14px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.note .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.note .btn-outline:hover { background: rgba(255,255,255,.12); }

/* Dark theme just for the book section */
#sobre-o-livro { background: #000; color: #fff; }
#sobre-o-livro .section-title,
#sobre-o-livro .section-sub,
#sobre-o-livro h3,
#sobre-o-livro .list li { color: #fff; }

/* Speaker grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* Força os palestrantes a caberem em uma única linha no desktop */
#convidados .grid-3 { grid-template-columns: repeat(4, 1fr); }
/* Carousel (ativado dinamicamente via .is-carousel somente em telas touch) */
#convidados .grid-3.is-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none; /* Firefox */
  scroll-padding-left: 20px; /* alinha com padding do container */
  overscroll-behavior-x: contain;
}
#convidados .grid-3.is-carousel::-webkit-scrollbar { display: none; }
#convidados .grid-3.is-carousel .person {
  flex: 0 0 clamp(240px, 78vw, 340px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Removido fallback de carrossel no mobile por decisão de UX */
.person { background: var(--surface); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.person-media { aspect-ratio: 4/3; background: #f3f5f9; }
.person-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Ajuste fino para enquadrar melhor a foto da Luciana */
.person-luciana .person-media img { object-position: center 20%; }
.person-body { padding: 16px; }
.person h4 { margin: 0 0 6px; font-size: 18px; color: var(--brand-ink); }
.person p { margin: 0; color: var(--muted); font-size: 14px; }

/* Dark theme for Convidados do Talk */
#convidados { background: #000; color: #fff; }
#convidados .section-title { color: #fff; }

/* Agenda */
.agenda { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agenda-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow);
  border-left: 3px solid rgba(209,30,32,.18);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.agenda-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  border-color: rgba(209,30,32,.32);
  background: linear-gradient(0deg, rgba(209,30,32,.02), rgba(209,30,32,.02)), var(--surface);
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(209,30,32,.12);
  color: var(--brand);
}
.icon svg { width: 24px; height: 24px; }
.agenda-item h5 { margin: 0 0 4px; font-size: 17px; color: var(--brand-ink); }
.agenda-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* Venue */
.venue-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: center; }
.media-rounded { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #f3f5f9; min-height: 280px; }
.media-rounded img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-rounded iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Define altura responsiva apenas para o mapa para evitar área cinza */
#mapa .media-rounded { aspect-ratio: 16 / 9; min-height: 0; }

/* Endereço abaixo do mapa (esconde no desktop por padrão) */
.map-address {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-top: 10px;
  box-shadow: var(--shadow);
}
.map-address-text { font-weight: 600; color: var(--brand-ink); }
.map-address .btn svg { margin-right: 4px; }

/* Promo countdown */
.promo-countdown { background: #000; color: #fff; padding: 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.08); position: relative; z-index: 1; }
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; min-height: 34px; }
.promo-inner { flex-wrap: wrap; }
.promo-inner > * { min-width: 0; }
.promo-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.promo-left .badge { display: inline-block; font-weight: 700; letter-spacing: .2px; font-size: 11px; color: #fff; background: rgba(255,255,255,.14); padding: 4px 8px; border-radius: 999px; }
.promo-text { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.countdown { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; max-width: 100%; }
.countdown .unit { display: grid; justify-items: center; gap: 4px; min-width: 56px; }
.countdown .num { font-weight: 900; font-size: clamp(18px, 3.8vw, 22px); line-height: 1; background: rgba(255,255,255,.10); border-radius: 10px; padding: 4px 8px; color: #fff; }
.countdown .lbl { font-size: 11px; color: #fff; text-transform: uppercase; letter-spacing: .4px; }

/* CTA */
.cta {
  background: linear-gradient(135deg, #b21217, #e31c24);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(0,0,0,.10);
  position: relative; z-index: 1;
  padding: 24px 0;
}
.cta-inner { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 20px; align-items: flex-start; }
.cta h3 {
  color: #fff;
  margin: 0 0 6px;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.2;
  font-size: clamp(20px, 3.2vw, 28px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.cta p { margin: 0 0 16px; color: #e7edf6; }
.cta-badge { display: inline-block; font-weight: 600; letter-spacing: .2px; font-size: 11px; color: #fff; background: rgba(255,255,255,.12); padding: 4px 8px; border-radius: 999px; margin-bottom: 8px; }
.price-wrap { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; flex-wrap: wrap; }
.price-prefix { font-weight: 700; font-size: 12px; color: #fff; opacity: .85; }
.price { display: inline-flex; align-items: baseline; gap: 4px; color: #fff; line-height: 1; }
.price .currency { font-weight: 700; opacity: .92; }
.price .amount { font-weight: 900; font-size: clamp(28px, 5vw, 34px); line-height: 1; }
.cta-actions { display: grid; grid-template-columns: 1fr; grid-template-areas: "pix" "price" "btn"; row-gap: 10px; align-items: start; justify-items: end; }
.cta-actions .price-wrap { grid-area: price; }
.cta-actions .btn-primary { grid-area: btn; justify-self: end; }
.cta-actions .pix-row { grid-area: pix; justify-self: end; justify-content: flex-end; margin: 0 0 4px 0; }
.cta .pix-row { margin-top: 0; }
.cta-actions .btn-block-320 { width: auto; max-width: none; }
.price .cents { font-weight: 700; opacity: .92; }
.cta-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 0; margin: 8px 0 14px; list-style: none; }
.cta-features li { display: flex; align-items: center; gap: 8px; color: #e7edf6; }
.cta-features .tick { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; flex: 0 0 18px; }
.cta-features .tick svg { width: 10px; height: 10px; }
.pix-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.pix-key { background: rgba(255,255,255,.12); color: #fff; padding: 8px 10px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; }
.cta .btn-primary { background: #ffffff; color: var(--brand-ink); box-shadow: 0 8px 18px rgba(255,255,255,.18); }
.cta .btn-primary:hover { filter: brightness(0.98); }
.cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.cta .btn-outline:hover { background: rgba(255,255,255,.12); }
.cta .chip { border-color: rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.08); font-size: 10px; padding: 2px 6px; }

/* Desktop: Chave Pix acoplada ao botão Copiar */
@media (min-width: 861px) {
  .cta .pix-row { gap: 0; flex-wrap: nowrap; justify-content: flex-start; }
  .cta .pix-key {
    background: transparent;
    border: 1px solid rgba(255,255,255,.65);
    padding: 12px 12px;
    border-top-right-radius: 0; border-bottom-right-radius: 0;
  }
  .cta .pix-row .btn {
    border-top-left-radius: 0; border-bottom-left-radius: 0;
    height: auto;
  }
}

/* Form */
.form-wrap { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; align-items: stretch; }
.form-wrap > * { min-width: 0; }
.form-card, .aside { height: 100%; }
.form-card { background: var(--surface); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.form-card h3 {
  margin: 0 0 10px;
  /* Use fonte de texto para melhor legibilidade no h3 do form */
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--brand-ink);
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 600; color: var(--brand-ink); font-size: 14px; }
input { height: 44px; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); padding: 0 12px; font-size: 15px; }
input:focus { outline: 3px solid rgba(18,58,111,.15); border-color: var(--brand); }
.form-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 8px; }
.helper { color: var(--muted); font-size: 13px; }

/* Aside info */
.aside { background: var(--surface); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: 0 0 10px; }

/* Footer */
footer { background: #000; color: #fff; padding: 28px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: center; }
.social { display: flex; gap: 12px; }
.social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.10); color: #fff; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 1100;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #0b1f14; font-weight: 700; padding: 12px 16px;
  border-radius: 999px; box-shadow: var(--shadow);
}
.whatsapp-float:hover { filter: brightness(1.05); }
.whatsapp-float.avoid-footer { bottom: calc(120px + env(safe-area-inset-bottom)); }

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-6 { margin-bottom: 6px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.center { text-align: center; }
.chip { display: inline-block; border: 1px solid rgba(0,0,0,.12); padding: 6px 10px; border-radius: 999px; font-size: 13px; color: var(--muted); }
/* Skip link helper */
.sr-only-focusable {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.sr-only-focusable:focus {
  position: static; width: auto; height: auto; padding: 8px 12px; background: #000; color: #fff; border-radius: 8px; z-index: 2000;
}
footer .brand-invert,
.brand-invert { color: #fff; }
footer .brand-invert .brand-title,
.brand-invert .brand-title { color: #fff; }
footer .brand-invert .brand-sub,
.brand-invert .brand-sub { color: #c9d4e7; }
footer .brand-invert .brand-mark,
.brand-invert .brand-mark { background: transparent; color: #fff; box-shadow: none; }
.footer-note a { color: #fff; }
.footer-note a.whats-green { color: #25d366; font-weight: 700; }
.btn-block-320 { width: 100%; max-width: 320px; }

.align-end { justify-self: end; }
.footer-note { margin-top: 10px; color: #c9d4e7; font-size: 14px; }
.footer-note a { color: #fff; }

/* Responsive */
@media (max-width: 1140px) {
  .hero-grid, .about-grid, .venue-grid, .cta-inner, .form-wrap { grid-template-columns: 1fr; }
  .promo-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .countdown { justify-content: space-between; width: 100%; }
}
@media (max-width: 860px) {
  .grid-3, .agenda, .form-grid { grid-template-columns: 1fr; }
  footer { padding-bottom: 80px; }
  /* No mobile, não elevar o botão flutuante ao encontrar o footer */
  .whatsapp-float.avoid-footer { bottom: calc(18px + env(safe-area-inset-bottom)); }
  /* Distância do retângulo do livro no about em telas pequenas/tablet */
  /* Espaçamento do bloco do livro: controla pelo elemento acima para evitar colapso */
  #sobre-o-livro .note { margin-top: 0; }
  #sobre-o-livro .list { margin-bottom: 36px; }
}
@media (max-width: 560px) {
  /* Mantém o padding horizontal do .container no header no mobile */
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  /* Evita que o botão do header force largura total */
  header .btn { width: auto; }
  /* Mantém botões em seções com largura total quando necessário */
  .btn { width: 100%; }
  /* Tag de livro autografado: texto em cima, botão embaixo */
  .note { flex-direction: column; align-items: center; text-align: center; }
  .note { margin-top: 22px; }
  /* Espaçamento do bloco do livro: controla pelo elemento acima para evitar colapso */
  #sobre-o-livro .note { margin-top: 0; }
  #sobre-o-livro .list { margin-bottom: 40px; }
  .note .btn { width: 100%; }
  .form-actions .btn { width: auto; }
  .hero-media { aspect-ratio: 4 / 3; min-height: 280px; }
  .hero { padding-top: 20px; padding-bottom: 16px; }
  .hero-pill { right: 10px; bottom: 10px; }
  .icon { width: 40px; height: 40px; }
  .icon svg { width: 22px; height: 22px; }
  .agenda-item { padding: 16px; gap: 12px; }
  .promo-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0; }
  /* Contador em 4 colunas fixas no mobile */
  .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
  .countdown .unit { min-width: 0; }
  .countdown .num { font-size: 17px; padding: 6px 6px; }
  .countdown .lbl { font-size: 10px; }
  /* Centraliza o título do contador */
  .promo-left { justify-content: center; }
  .promo-text { text-align: center; width: 100%; }
  .cta-features { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { grid-template-columns: 1fr; grid-template-areas: "price" "btn" "pix"; justify-items: stretch; }
  .cta-actions .btn-primary { justify-self: stretch; }
  .cta-actions .pix-row { justify-self: center; justify-content: center; margin-top: 10px; text-align: center; }
  /* Centraliza e destaca o preço no mobile */
  .cta-actions .price-wrap { justify-self: center; justify-content: center; text-align: center; }
  .price .currency, .price .cents { font-weight: 800; }
  .price .amount { font-size: clamp(34px, 10vw, 46px); }
  footer { padding-top: 20px; padding-bottom: 72px; }
  .footer-grid { grid-template-columns: auto 1fr; gap: 10px; }
  .align-end { justify-self: end; }
  .footer-note { text-align: right; }
  /* Footer em 3 linhas: Contato, e-mail, WhatsApp */
  .footer-note .footer-label,
  .footer-note a { display: block; margin: 2px 0; }
  /* Mostrar endereço do mapa somente no mobile e manter botão compacto */
  .map-address { display: flex; }
  .map-address .btn { width: auto; }
  /* Reduz ainda mais o padding do "Como chegar" no mobile */
  #mapa { padding-top: 16px; padding-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-force) { scroll-behavior: auto; }
  html:not(.motion-force) * { animation: none !important; transition: none !important; }
}



/* Motion system: tokens, micro-interactions e reveals */
:root {
  --ease-standard: cubic-bezier(.2,.8,.2,1);
  --ease-emphasized: cubic-bezier(.2,.8,0,1);
  --duration-xs: 120ms;
  --duration-sm: 180ms;
  --duration-md: 240ms;
  --duration-lg: 360ms;
  --duration-xl: 600ms;
  --stagger-step: 60ms;
  --reveal-distance: 16px;
}

/* Microinterações unificadas */
.btn {
  transition: transform var(--duration-xs) var(--ease-standard),
              box-shadow var(--duration-sm) var(--ease-standard),
              background var(--duration-sm) var(--ease-standard),
              color var(--duration-sm) var(--ease-standard);
}
.btn:hover { transform: translateY(-1px); }
.card, .person, .agenda-item, .media-rounded {
  transition: transform var(--duration-sm) var(--ease-standard),
              box-shadow var(--duration-md) var(--ease-standard),
              border-color var(--duration-sm) var(--ease-standard),
              background var(--duration-sm) var(--ease-standard);
}
.card:hover, .person:hover, .media-rounded:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

/* Contador: realce no “tic” */
@keyframes tick-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.countdown .num.is-ticking { animation: tick-pop 320ms var(--ease-emphasized); will-change: transform; }

/* WhatsApp flutuante: atenção única */
@keyframes nudge {
  0% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
.whatsapp-float.attn-once { animation: nudge 420ms var(--ease-standard) 1; }

/* Sistema de reveal (habilitado apenas quando JS está ativo) */
.js .reveal {
  opacity: 0;
  --tx: 0; --ty: var(--reveal-distance); --scale: 1;
  transform: translate3d(var(--tx), var(--ty), 0) scale(var(--scale));
  transition:
    opacity var(--reveal-duration, var(--duration-md)) var(--reveal-ease, var(--ease-standard)),
    transform var(--reveal-duration, var(--duration-md)) var(--reveal-ease, var(--ease-standard));
  contain: paint;
}
.js .reveal.is-visible {
  opacity: 1;
  --tx: 0; --ty: 0; --scale: 1; --blur: 0;
  transition-delay: var(--delay, 0ms);
  /* Refuerzo cross-browser: define o estado final explicitamente */
  transform: translate3d(0, 0, 0) scale(1);
}
.js .reveal-up { --ty: var(--reveal-distance); }
.js .reveal-down { --ty: calc(-1 * var(--reveal-distance)); }
.js .reveal-left { --tx: var(--reveal-distance); --ty: 0; }
.js .reveal-right { --tx: calc(-1 * var(--reveal-distance)); --ty: 0; }
.js .reveal-zoom { --scale: .98; }
/* Blur opcional: ativa apenas quando necessário */
.js .reveal-blur {
  filter: blur(6px);
  transition:
    opacity var(--reveal-duration, var(--duration-md)) var(--reveal-ease, var(--ease-standard)),
    transform var(--reveal-duration, var(--duration-md)) var(--reveal-ease, var(--ease-standard)),
    filter var(--reveal-duration, var(--duration-md)) var(--reveal-ease, var(--ease-standard));
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none !important; filter: none !important; }
}

@supports (content-visibility: auto) {
  section,
  .agenda-item,
  .media-rounded,
  .form-card,
  .aside {
    content-visibility: auto;
  }
}

