:root {
  color-scheme: light;

  /* PALETA BEIGE CÁLIDA Y TERRACOTA */
  --paper: #f4ebe1;
  --card: #ffffff;
  --terracotta: #b87d63;
  --terracotta-dark: #9c624a;
  --text-dark: #2d383c;
  --text-muted: #6e6b67;
  --line: #e3dad0;
  --error: #a12e2b;
  --radius: 20px;

  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  line-height: 1.5;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 12px 20px;
  background: var(--card);
  z-index: 5;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

/* HEADER INSTITUCIONAL */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; gap: 14px; align-items: center; }
.brand-mark {
  display: grid;
  place-items: center;
  height: 46px;
  width: 46px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  color: var(--terracotta);
  font: italic 28px Georgia, serif;
}

.brand small { display: block; font-size: 9px; letter-spacing: 0.24em; }
.brand strong { display: block; font: 21px Georgia, serif; color: var(--text-dark); }

.main-nav { display: flex; gap: 28px; font-size: 13px; font-weight: 500; color: var(--text-dark); }
.main-nav a:hover { color: var(--terracotta); }

.header-btn {
  padding: 12px 24px;
  background: var(--terracotta);
  color: white;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}
.header-btn:hover { background: var(--terracotta-dark); }

/* HERO E FORMULÁRIO */
.intro { padding: 60px 0 44px; text-align: center; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.18;
}

h1 em { color: var(--terracotta); font-family: Georgia, serif; font-style: italic; }
.intro > p { font-size: 15px; color: var(--text-muted); margin-top: 18px; max-width: 680px; margin-inline: auto; }

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 40px;
  align-items: stretch;
  padding-bottom: 40px;
}

.portrait-panel { display: flex; flex-direction: column; height: 100%; }

.portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0,0,0,0.06);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 20, 22, 0.85) 0%,
    rgba(15, 20, 22, 0.4) 45%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 1;
}

.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-label {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
  border-radius: 30px;
  font-size: 10px;
  color: white;
  letter-spacing: 0.12em;
  z-index: 2;
}

.portrait-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  color: #ffffff;
  z-index: 2;
}

.portrait-caption span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.portrait-caption strong {
  font: 32px/1.16 Georgia, serif;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.portrait-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  margin: 18px 0 0;
}

.form-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: 0 12px 45px rgba(0,0,0,0.04);
}

.card-heading { display: flex; justify-content: space-between; align-items: baseline; }
.step-label { color: var(--text-muted); font-size: 11px; }
h2 { margin: 0; font-size: 30px; color: var(--text-dark); font-weight: 600; }

.section-description { color: var(--text-muted); margin: 12px 0 24px; font-size: 13px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.full-width { grid-column: 1 / -1; }

.field > label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.field > label > span { color: var(--terracotta); }
.field > label > small { float: right; font-weight: 400; color: var(--text-muted); font-size: 10px; }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fdfbf9;
  color: var(--text-dark);
  font-size: 13px;
}

input:focus,
select:focus {
  border-color: var(--terracotta);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(184, 125, 99, 0.15);
  background: white;
}

select {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--terracotta) 50%),
    linear-gradient(135deg, var(--terracotta) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 21px,
    calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field-error { display: block; font-size: 11px; color: var(--error); margin-top: 4px; }

.group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  font-size: 9px;
  font-weight: 700;
  color: var(--terracotta-dark);
  letter-spacing: 0.12em;
}
.line { flex: 1; height: 1px; background: var(--line); }

.permissions { margin: 22px 0; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; cursor: pointer; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--terracotta); }

/* SEGUNDA ETAPA DO FORMULÁRIO */
#profile-step {
  animation: form-step-in 0.35s ease both;
}

@keyframes form-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.form-group legend {
  width: 100%;
  margin-bottom: 4px;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
}

.form-group legend span { color: var(--terracotta); }

.group-help {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 11px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid-small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfbf9;
  color: var(--text-dark);
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.choice-card:hover {
  border-color: rgba(184, 125, 99, 0.7);
  transform: translateY(-1px);
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.choice-card span::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 1px solid #cdbfb4;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.choice-card input[type="radio"] + span::before {
  border-radius: 50%;
}

.choice-card input:checked + span::before {
  border-color: var(--terracotta);
  background: var(--terracotta);
}

.choice-card:has(input:checked) {
  border-color: var(--terracotta);
  background: rgba(184, 125, 99, 0.1);
  box-shadow: 0 5px 18px rgba(156, 98, 74, 0.1);
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid rgba(184, 125, 99, 0.22);
  outline-offset: 2px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 12px 28px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s, background 0.15s;
}

.button-primary { color: white; background: var(--terracotta); }
.button-primary:hover { background: var(--terracotta-dark); }
.button:disabled { cursor: wait; opacity: 0.68; transform: none; }
.button-text { margin-left: 6px; }

.button-arrow {
  margin-left: 16px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.form-footnote { margin-top: 12px; text-align: center; color: var(--text-muted); font-size: 11px; }

/* CARROSSEL DESLIZÁVEL COM ABERTURA POPUP */
.carousel-wrapper { position: relative; padding: 15px 0; }
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px 20px;
  scrollbar-width: thin;
  cursor: grab;
}

.carousel-track:active { cursor: grabbing; }

.video-card {
  flex: 0 0 290px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
}

.video-thumbnail video,
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.play-overlay span {
  padding: 10px 20px;
  background: var(--terracotta);
  color: white;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.video-card:hover .play-overlay { background: rgba(0,0,0,0.1); }

.video-card h4 { margin: 14px 0 6px; font-size: 15px; color: var(--text-dark); line-height: 1.3; }
.video-card p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: var(--terracotta);
  color: white;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }

/* SEÇÕES DE CONTEÚDO */
.section-block { padding: 72px 0; border-top: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-subtitle { max-width: 680px; margin: 10px auto 0; color: var(--text-muted); font-size: 14px; }

.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.step-num { font-size: 28px; font-weight: 700; color: var(--terracotta); display: block; margin-bottom: 10px; }
.info-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--text-dark); }
.info-card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.modules-block { margin-top: 44px; background: var(--card); padding: 40px; border-radius: var(--radius); border: 1px solid var(--line); }
.modules-block h3 { margin: 0 0 28px; text-align: center; font-size: 22px; color: var(--text-dark); }
.modules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.module-item { background: #fbf8f5; padding: 20px; border-radius: 14px; border: 1px solid var(--line); }
.module-item strong { display: block; color: var(--terracotta-dark); font-size: 14px; margin-bottom: 6px; }
.module-item p { margin: 0; font-size: 12px; color: var(--text-muted); }

/* SEÇÃO SOBRE LAURA GRAFFE */
.split-block { display: grid; grid-template-columns: 1fr 0.85fr; gap: 44px; align-items: center; }
.split-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 12px 35px rgba(0,0,0,0.05); }
.quote { font: italic 17px Georgia, serif; color: var(--terracotta); border-left: 3px solid var(--terracotta); padding-left: 18px; margin-top: 22px; }

/* CERTIFICAÇÕES */
.credentials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.credential-item {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
}
.cred-icon { font-size: 34px; display: block; margin-bottom: 12px; }
.credential-item strong { display: block; color: var(--text-dark); font-size: 15px; margin-bottom: 6px; }
.credential-item span { color: var(--text-muted); font-size: 12px; }

/* FOOTER INSTITUCIONAL */
.site-footer { padding: 44px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-muted); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 22px; }

/* MODAL / LIGHTBOX DE VÍDEO */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: grid;
  place-items: center;
  z-index: 150;
  backdrop-filter: blur(6px);
  padding: 20px;
}

.video-modal-content {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  width: min(420px, 100%);
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  text-align: center;
}

.close-video-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--text-dark);
  line-height: 1;
}

.video-modal-content h3 { margin: 0 0 16px; font-size: 18px; color: var(--text-dark); }
.player-container { width: 100%; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: #000; }
.player-container video { width: 100%; height: 100%; object-fit: cover; }

/* CONFIRMAÇÃO FINAL */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: grid;
  place-items: center;
  z-index: 100;
  backdrop-filter: blur(4px);
  padding: 24px;
  overflow-y: auto;
}

.checkout-content {
  background: var(--card);
  padding: 46px 52px 42px;
  border-radius: 28px;
  max-width: 650px;
  width: min(650px, 94%);
  text-align: center;
  position: relative;
  box-shadow: 0 28px 80px rgba(24, 31, 34, 0.28);
  border: 1px solid rgba(184, 125, 99, 0.2);
  animation: checkoutEntrance 0.45s ease-out both;
}

.close-modal { position: absolute; top: 18px; right: 22px; border: 0; background: transparent; font-size: 26px; color: var(--text-muted); }
.complete-icon { display: grid; place-items: center; width: 66px; height: 66px; background: #eef5f2; color: #2e7d32; border-radius: 50%; margin: 0 auto 14px; font-size: 29px; box-shadow: 0 0 0 8px rgba(46, 125, 50, 0.06); }

.success-kicker {
  margin: 0 0 7px !important;
  color: var(--terracotta) !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.final-success h3 {
  margin: 0 0 16px;
  color: var(--text-dark);
  font-size: clamp(27px, 4vw, 34px);
  line-height: 1.15;
}

.final-success .success-final-step {
  margin: 0 auto 9px;
  max-width: 500px;
  color: var(--text-dark);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 750;
}

.final-success .success-description {
  margin: 0 auto 21px;
  max-width: 510px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.purchase-chat-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 24px;
}

.purchase-visual {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.purchase-visual svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purchase-ticket {
  background: #f8eee8;
  color: var(--terracotta-dark);
  animation: ticketFloat 2.4s ease-in-out infinite;
}

.purchase-chat {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 12px 25px rgba(184, 125, 99, 0.3);
  animation: chatPulse 2.4s ease-in-out infinite;
}

.purchase-route {
  display: flex;
  align-items: center;
  gap: 7px;
}

.purchase-route i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.25;
  animation: routeMove 1.35s ease-in-out infinite;
}

.purchase-route i:nth-child(2) { animation-delay: 0.18s; }
.purchase-route i:nth-child(3) { animation-delay: 0.36s; }

@keyframes checkoutEntrance {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ticketFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes chatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes routeMove {
  0%, 100% { opacity: 0.22; transform: translateX(-2px) scale(0.8); }
  50% { opacity: 1; transform: translateX(2px) scale(1.15); }
}

.final-success .button {
  justify-content: center;
  width: 100%;
  min-height: 64px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(156, 98, 74, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.final-success .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(156, 98, 74, 0.34);
}

/* RESPONSIVO */
@media (max-width: 850px) {
  .wrap { width: calc(100% - 32px); }
  .contact-layout, .grid-cards, .credentials-grid, .split-block, .modules-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .carousel-btn { display: none; }
  .form-card { padding: 28px 22px; }
}

@media (max-width: 620px) {
  .form-grid,
  .choice-grid,
  .choice-grid-small {
    grid-template-columns: 1fr;
  }

  .form-card { padding: 26px 18px; }
  .checkout-modal { padding: 14px; }
  .checkout-content { padding: 38px 22px 26px; width: 100%; border-radius: 24px; }
  .final-success h3 { font-size: 27px; }
  .final-success .success-final-step { font-size: 18px; }
  .final-success .success-description { font-size: 14px; }
  .purchase-visual { width: 62px; height: 62px; border-radius: 19px; }
  .purchase-visual svg { width: 33px; height: 33px; }
  .purchase-route { gap: 5px; }
  .purchase-route i { width: 7px; height: 7px; }
  .final-success .button { min-height: 60px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-content,
  .purchase-ticket,
  .purchase-chat,
  .purchase-route i {
    animation: none;
  }
}

#profile-form > .form-grid {
  margin-bottom: 22px;
}

/* Animação reforçada da etapa final: ingresso seguindo para o chat */
.purchase-visual {
  font-size: 38px;
  line-height: 1;
}

.purchase-ticket {
  animation: ticketTravel 1.8s ease-in-out infinite;
}

.purchase-chat {
  position: relative;
  animation: chatPulseStrong 1.8s ease-in-out infinite;
}

.purchase-route {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 34px;
  overflow: hidden;
}

.purchase-route::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  border-top: 2px dashed rgba(184, 125, 99, 0.38);
}

.purchase-route > span {
  position: relative;
  z-index: 1;
  padding: 0 5px;
  background: var(--card);
  color: var(--terracotta);
  font-size: 29px;
  font-weight: 900;
  animation: arrowTravel 1.15s ease-in-out infinite;
}

.chat-bubble {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 31px;
  border: 3px solid #fff;
  border-radius: 12px;
}

.chat-bubble::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -7px;
  width: 10px;
  height: 10px;
  border-left: 3px solid #fff;
  transform: skew(-28deg) rotate(-18deg);
}

.chat-bubble span {
  margin-top: -7px;
  color: #fff;
  font-size: 21px;
  letter-spacing: 2px;
}

@keyframes ticketTravel {
  0%, 100% { transform: translateX(0) rotate(-4deg); }
  50% { transform: translateX(12px) rotate(3deg) scale(1.05); }
}

@keyframes chatPulseStrong {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 25px rgba(184, 125, 99, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(184, 125, 99, 0.12), 0 16px 32px rgba(184, 125, 99, 0.38);
  }
}

@keyframes arrowTravel {
  0% { opacity: 0; transform: translateX(-20px); }
  35%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translateX(20px); }
}

@media (max-width: 620px) {
  .purchase-route { width: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-ticket { animation: ticketTravel 1.8s ease-in-out infinite; }
  .purchase-chat { animation: chatPulseStrong 1.8s ease-in-out infinite; }
  .purchase-route > span { animation: arrowTravel 1.15s ease-in-out infinite; }
}

/* Fluxo visual profissional: ingresso para compra pelo chat */
.checkout-flow {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) 70px minmax(145px, 1fr);
  align-items: center;
  width: min(100%, 480px);
  margin: 2px auto 25px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(184, 125, 99, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, #fffaf7 0%, #f7f2ef 100%);
}

.checkout-ticket,
.checkout-chat {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 11px 12px;
  border-radius: 15px;
}

.checkout-ticket {
  position: relative;
  z-index: 2;
  gap: 9px;
  background: #fff;
  border: 1px solid rgba(184, 125, 99, 0.22);
  box-shadow: 0 8px 20px rgba(64, 48, 42, 0.08);
  animation: checkoutTicketMove 2.2s ease-in-out infinite;
}

.checkout-chat {
  position: relative;
  z-index: 2;
  gap: 9px;
  color: #fff;
  background: linear-gradient(145deg, var(--terracotta), #9f5f48);
  box-shadow: 0 10px 24px rgba(159, 95, 72, 0.28);
  animation: checkoutChatPulse 2.2s ease-in-out infinite;
}

.checkout-ticket-icon,
.checkout-chat-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
}

.checkout-ticket-icon {
  color: var(--terracotta-dark);
  background: #f8ece6;
}

.checkout-chat-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.checkout-ticket-icon svg,
.checkout-chat-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-ticket-copy,
.checkout-chat-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.checkout-ticket-copy strong,
.checkout-chat-copy strong {
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.checkout-ticket-copy small,
.checkout-chat-copy small {
  font-size: 11px;
  line-height: 1.15;
}

.checkout-ticket-copy strong { color: var(--text-dark); }
.checkout-ticket-copy small { color: var(--text-muted); }
.checkout-chat-copy strong,
.checkout-chat-copy small { color: #fff; }

.checkout-path {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 38px;
}

.checkout-path::before {
  content: "";
  position: absolute;
  left: 0;
  right: 4px;
  top: 50%;
  border-top: 2px dashed rgba(184, 125, 99, 0.34);
}

.checkout-path span {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: checkoutDot 1.25s ease-in-out infinite;
}

.checkout-path span:nth-child(2) { animation-delay: 0.16s; }
.checkout-path span:nth-child(3) { animation-delay: 0.32s; }

.checkout-path b {
  position: absolute;
  z-index: 2;
  right: -1px;
  top: 50%;
  color: var(--terracotta-dark);
  font-size: 29px;
  line-height: 1;
  transform: translateY(-54%);
  animation: checkoutArrow 1.25s ease-in-out infinite;
}

@keyframes checkoutTicketMove {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(7px); }
}

@keyframes checkoutChatPulse {
  0%, 100% { transform: scale(1); }
  55% { transform: scale(1.045); box-shadow: 0 0 0 7px rgba(184, 125, 99, 0.1), 0 13px 28px rgba(159, 95, 72, 0.32); }
}

@keyframes checkoutDot {
  0%, 100% { opacity: 0.25; transform: translateX(-3px) scale(0.75); }
  50% { opacity: 1; transform: translateX(3px) scale(1.15); }
}

@keyframes checkoutArrow {
  0%, 100% { opacity: 0.45; transform: translate(-5px, -54%); }
  50% { opacity: 1; transform: translate(1px, -54%); }
}

@media (max-width: 620px) {
  .checkout-flow {
    grid-template-columns: minmax(118px, 1fr) 42px minmax(118px, 1fr);
    padding: 11px;
  }

  .checkout-ticket,
  .checkout-chat {
    min-height: 64px;
    padding: 9px;
    gap: 7px;
  }

  .checkout-ticket-icon,
  .checkout-chat-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .checkout-ticket-copy strong,
  .checkout-chat-copy strong { font-size: 9px; }
  .checkout-ticket-copy small,
  .checkout-chat-copy small { font-size: 10px; }
}

/* Ajustes finais: hierarquia do título, conclusão da compra e CTA */
.final-success #success-title {
  display: grid;
  gap: 3px;
  max-width: 540px;
  margin: 0 auto 17px;
}

.success-title-light {
  font-weight: 400;
  font-size: 0.88em;
}

.final-success #success-title strong {
  font-weight: 850;
}

.checkout-ticket {
  --ticket-shift: calc(100% + 92px);
  transform-origin: center;
  animation: ticketToPurchase 4.2s cubic-bezier(.55, 0, .2, 1) infinite;
}

.checkout-ticket-icon {
  position: relative;
  animation: ticketIconComplete 4.2s ease-in-out infinite;
}

.ticket-default-icon,
.ticket-complete-icon {
  position: absolute;
  inset: 7px;
  width: 26px !important;
  height: 26px !important;
}

.ticket-default-icon {
  animation: ticketDefaultHide 4.2s ease-in-out infinite;
}

.ticket-complete-icon {
  opacity: 0;
  stroke-width: 2.8 !important;
  animation: ticketCheckShow 4.2s ease-in-out infinite;
}

.checkout-ticket-copy {
  animation: ticketCopyHide 4.2s ease-in-out infinite;
}

.checkout-chat {
  animation: purchaseTargetPulse 4.2s ease-in-out infinite;
}

@keyframes ticketToPurchase {
  0%, 12% {
    z-index: 4;
    transform: translateX(0) scale(1);
  }
  55%, 72% {
    z-index: 4;
    transform: translateX(var(--ticket-shift)) scale(.72);
  }
  82% {
    z-index: 4;
    transform: translateX(var(--ticket-shift)) scale(.78);
  }
  100% {
    z-index: 4;
    transform: translateX(0) scale(1);
  }
}

@keyframes ticketIconComplete {
  0%, 49% { color: var(--terracotta-dark); background: #f8ece6; transform: scale(1); }
  58%, 82% { color: #fff; background: #2e8b57; transform: scale(1.16); box-shadow: 0 0 0 9px rgba(46, 139, 87, .14); }
  100% { color: var(--terracotta-dark); background: #f8ece6; transform: scale(1); }
}

@keyframes ticketDefaultHide {
  0%, 49% { opacity: 1; transform: scale(1) rotate(0); }
  56%, 88% { opacity: 0; transform: scale(.45) rotate(25deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes ticketCheckShow {
  0%, 51% { opacity: 0; transform: scale(.35); }
  59%, 86% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.35); }
}

@keyframes ticketCopyHide {
  0%, 45% { opacity: 1; transform: translateX(0); }
  54%, 88% { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes purchaseTargetPulse {
  0%, 45%, 100% { transform: scale(1); }
  58%, 78% { transform: scale(1.07); box-shadow: 0 0 0 10px rgba(184, 125, 99, .12), 0 15px 32px rgba(159, 95, 72, .35); }
}

.final-success #finish-confirmation {
  min-height: 78px;
  border-radius: 19px;
  font-size: clamp(18px, 2.4vw, 21px);
  letter-spacing: -0.01em;
  box-shadow: 0 17px 34px rgba(156, 98, 74, .34);
  animation: checkoutCtaAttention 2.7s ease-in-out infinite;
}

.final-success #finish-confirmation:hover {
  transform: translateY(-3px) scale(1.01);
}

@keyframes checkoutCtaAttention {
  0%, 100% { box-shadow: 0 17px 34px rgba(156, 98, 74, .30); }
  50% { box-shadow: 0 0 0 7px rgba(184, 125, 99, .10), 0 20px 40px rgba(156, 98, 74, .42); }
}

@media (max-width: 620px) {
  .checkout-ticket { --ticket-shift: calc(100% + 52px); }
  .final-success #finish-confirmation { min-height: 72px; font-size: 17px; }
}

.checkout-flow.js-flow-active .checkout-ticket,
.checkout-flow.js-flow-active .checkout-ticket-icon,
.checkout-flow.js-flow-active .ticket-default-icon,
.checkout-flow.js-flow-active .ticket-complete-icon,
.checkout-flow.js-flow-active .checkout-ticket-copy,
.checkout-flow.js-flow-active .checkout-chat {
  animation: none;
}

/* Versão final da animação: wiggle do ingresso + direção da seta */
.final-success #success-title strong,
.final-success #success-title strong span {
  display: block;
}

.checkout-ticket {
  animation: checkoutTicketWiggle 2.2s ease-in-out infinite;
}

.checkout-ticket-icon,
.ticket-default-icon,
.checkout-ticket-copy,
.checkout-chat {
  animation: none;
}

.checkout-path b {
  animation: checkoutArrowDirection 1.05s ease-in-out infinite;
}

.final-success #finish-confirmation {
  animation: none;
}

@keyframes checkoutTicketWiggle {
  0%, 84%, 100% { transform: rotate(0deg) translateY(0); }
  18% { transform: rotate(-1.8deg) translateY(-2px); }
  36% { transform: rotate(1.8deg) translateY(1px); }
  54% { transform: rotate(-1deg) translateY(-1px); }
  70% { transform: rotate(1deg) translateY(0); }
}

@keyframes checkoutArrowDirection {
  0%, 100% { opacity: .25; transform: translate(-8px, -54%); }
  50% { opacity: 1; transform: translate(2px, -54%); }
}

/* Certificações compactas, responsivas e ampliáveis */
.credentials-grid-verified {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin-inline: auto;
}
.credential-card {
  appearance: none;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(22, 45, 62, .045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.credential-card:hover,
.credential-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(184, 125, 99, .55);
  box-shadow: 0 13px 28px rgba(22, 45, 62, .11);
  outline: none;
}
.credential-thumb {
  position: relative;
  display: grid;
  width: 100%;
  height: 128px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #f7f1eb;
}
.credential-thumb::after {
  content: "Ampliar";
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(22, 45, 62, .82);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}
.credential-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}
.credential-card:hover .credential-thumb img { transform: scale(1.035); }
.credential-copy { display: grid; min-width: 0; gap: 4px; }
.credential-copy small {
  color: var(--terracotta-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.credential-copy strong {
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.3;
}
.credential-copy > span { color: var(--text-muted); font-size: 11px; line-height: 1.35; }
.credential-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--terracotta-dark);
  font-size: 11px;
  font-weight: 800;
}
.certificate-modal {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: grid;
  padding: clamp(14px, 3vw, 34px);
  place-items: center;
}
.certificate-modal[hidden] { display: none; }
.certificate-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 26, 36, .82); backdrop-filter: blur(5px); }
.certificate-modal-panel {
  position: relative;
  display: grid;
  width: min(1050px, 100%);
  max-height: calc(100dvh - 28px);
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  background: #fffaf5;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.certificate-modal-image-wrap {
  display: grid;
  min-height: 360px;
  max-height: calc(100dvh - 68px);
  place-items: center;
  overflow: auto;
  background: #ede9e4;
}
.certificate-modal-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 68px);
  object-fit: contain;
}
.certificate-modal-copy { display: flex; padding: 38px 28px 28px; flex-direction: column; justify-content: space-between; gap: 24px; }
.certificate-modal-copy h3 { margin: 4px 0 10px; color: var(--text-dark); font-size: clamp(20px, 2.5vw, 28px); }
.certificate-modal-copy p:not(.eyebrow) { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.certificate-modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text-dark);
  font-size: 25px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,.12);
}
.certificate-open-original {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--text-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
body.certificate-open { overflow: hidden; }
.method-disclaimer {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}
.cookie-preferences-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-banner {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf5;
  box-shadow: 0 18px 55px rgba(22, 45, 62, .22);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 6px; color: var(--text-dark); }
.cookie-banner p { margin: 0 0 6px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.cookie-banner a { color: var(--terracotta-dark); font-size: 13px; }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.cookie-actions .button { white-space: nowrap; }
.cookie-reject { border: 1px solid var(--line); background: transparent; color: var(--text-dark); }

@media (max-width: 760px) {
  .credentials-grid-verified { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .credential-thumb { height: 110px; }
  .credential-card { padding: 10px; }
  .certificate-modal { padding: 10px; }
  .certificate-modal-panel { max-height: calc(100dvh - 20px); grid-template-columns: 1fr; overflow-y: auto; }
  .certificate-modal-image-wrap { min-height: 0; height: min(58dvh, 520px); }
  .certificate-modal-image-wrap img { max-height: 58dvh; }
  .certificate-modal-copy { padding: 22px 18px 18px; }
  .certificate-modal-close { top: 8px; right: 8px; }
  .cookie-banner { align-items: stretch; flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-actions .button { flex: 1; padding-inline: 12px; }
}

@media (max-width: 410px) {
  .credentials-grid-verified { grid-template-columns: 1fr; max-width: 300px; }
  .credential-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; }
  .credential-thumb { width: 92px; height: 92px; grid-row: span 2; }
  .credential-action { grid-column: 2; }
}
