:root {
  /* Paleta Oficial Kariri da Sorte + Diretrizes de Design */
  --kariri-gold: #F8A420;
  --kariri-gold-hover: #e59516;
  --kariri-gold-soft: rgba(248, 164, 32, 0.14);
  --forest-dark: #082f24;
  --forest-mid: #0d4431;
  --forest-surface: #143e30;
  --forest-border: rgba(255, 255, 255, 0.14);
  --forest-text-muted: #c3d6c9;
  
  --live-green: #16a34a;
  --live-dot: #4bc56e;
  
  --surface-cream: #fbfaf6;
  --surface-card: #ffffff;
  --surface-soft: #f2f6ee;
  --border-light: #dfe6db;
  --text-dark: #102d24;
  --text-muted: #536b5c;

  /* Motion physics */
  --transition-fluid: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  --transition-fast: all 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--surface-cream);
  color: var(--text-dark);
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, a {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--kariri-gold);
  outline-offset: 3px;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* SKIP LINK */
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: #ffffff;
  color: var(--forest-dark);
  padding: 12px 16px;
  font-weight: 700;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip:focus {
  top: 16px;
}

/* HEADER */
.header {
  background: var(--forest-dark);
  color: #ffffff;
  border-bottom: 1px solid var(--forest-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  display: block;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-text small {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--kariri-gold);
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  color: #e3ede6;
  transition: var(--transition-fast);
}

.nav a:hover {
  color: var(--kariri-gold);
}

.nav-contact {
  background: var(--kariri-gold);
  color: var(--forest-dark) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.nav-contact:hover {
  background: var(--kariri-gold-hover);
  transform: translateY(-1px);
}

/* HERO */
.hero {
  background: var(--forest-dark);
  color: #ffffff;
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--kariri-gold);
  margin-bottom: 16px;
}

.eyebrow-line {
  width: 24px;
  height: 2px;
  background: var(--kariri-gold);
  border-radius: 1px;
}

h1, h2, h3 {
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--forest-text-muted);
  margin: 0 0 32px;
  text-wrap: pretty;
}

.purchase-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.arrow-icon {
  font-size: 16px;
  line-height: 1;
}

.button-gold {
  background: var(--kariri-gold);
  color: #082f24;
}

.button-gold:hover {
  background: var(--kariri-gold-hover);
  color: #041a14;
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #ffffff;
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.button-outline-dark {
  border-color: var(--forest-dark);
  background: transparent;
  color: var(--forest-dark);
}

.button-outline-dark:hover {
  background: var(--forest-dark);
  color: #ffffff;
}

.button-gold-outline {
  border-color: var(--kariri-gold);
  background: transparent;
  color: var(--kariri-gold);
}

.button-gold-outline:hover {
  background: var(--kariri-gold);
  color: var(--forest-dark);
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 18px;
  color: #9eb8a7;
  margin-top: 24px;
}

.security-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: rgba(75, 197, 110, 0.15);
  border: 1px solid rgba(75, 197, 110, 0.5);
  border-radius: 50%;
  color: var(--live-dot);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* HERO VISUAL - QUADRO DE VÍDEO 16:9 E CARD DE EDIÇÃO */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Container de Vídeo formatado para 16:9 nativo */
.video-container {
  width: 100%;
  max-width: 480px;
  background: #061e17;
  border: 4px solid var(--forest-surface);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.video-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(8, 47, 36, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d1e2d7;
}

.video-tag {
  margin-left: auto;
  font-size: 10px;
  background: var(--kariri-gold-soft);
  color: var(--kariri-gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
}

/* Nested radius: outer 16px, border 4px, frame gap 4px -> inner radius = 10px */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030d0a;
  overflow: hidden;
  cursor: pointer;
}

.promo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #030d0a;
}

/* Botão flutuante de controle de áudio */
.video-sound-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(8, 47, 36, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #ffffff;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.video-sound-btn:hover {
  background: var(--kariri-gold);
  color: var(--forest-dark);
  border-color: var(--kariri-gold);
}

.is-unmuted .video-sound-btn {
  background: rgba(248, 164, 32, 0.92);
  color: #082f24;
  border-color: var(--kariri-gold);
}

.video-caption {
  padding: 8px 14px;
  background: rgba(8, 47, 36, 0.9);
  color: #b0c9b9;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

/* CARD DE EDIÇÃO */
.edition-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface-card);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.edition-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-dot);
  box-shadow: 0 0 0 3px rgba(75, 197, 110, 0.35);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.edition-chip {
  margin-left: auto;
  font-size: 10px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--live-green);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
}

.edition-price-wrap {
  margin: 12px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #ced8cc;
}

.edition-price-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.edition-price-val {
  display: block;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--forest-dark);
  margin-top: 2px;
}

.edition-details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  line-height: 18px;
}

.detail-row dt {
  color: var(--text-muted);
}

.detail-row dd {
  margin: 0;
  font-weight: 700;
  color: var(--text-dark);
}

.edition-status {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.retry-button {
  background: none;
  border: 0;
  color: var(--forest-mid);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 0 0;
}

/* PROOF BAND */
.proof-band {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

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

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 3px solid var(--kariri-gold);
  padding-left: 16px;
}

.proof-dot {
  display: none;
}

.proof-item strong {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  color: var(--forest-dark);
}

.proof-item span {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* TAGLINE SECTION (BALANCEADA E SEM QUEBRAS DESORDENADAS) */
.tagline {
  padding: 80px 0 72px;
  text-align: center;
}

.tagline-container {
  max-width: 820px;
  margin-inline: auto;
}

.tagline-lead {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #728c7b;
}

.tagline-phrase {
  display: block;
  text-wrap: balance;
}

.tagline-phrase + .tagline-phrase {
  margin-top: 8px;
}

.tagline-word {
  display: inline-block;
  opacity: 0.35;
  transform: translateY(6px);
  transition: opacity 0.7s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.7s cubic-bezier(0.32, 0.72, 0, 1),
              color 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

.tagline-word.is-visible {
  opacity: 1;
  color: var(--forest-dark);
  transform: translateY(0);
}

/* STEPS SECTION */
.steps-section {
  padding: 80px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  border-top: 1px solid var(--border-light);
}

.section-header {
  max-width: 400px;
}

.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--kariri-gold);
  margin-bottom: 12px;
}

.kicker-light {
  color: var(--kariri-gold);
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--forest-dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-muted);
  margin: 0;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.step-index {
  font-size: 18px;
  font-weight: 800;
  color: var(--kariri-gold);
  line-height: 1;
  padding-top: 2px;
}

.step-body h3 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
  color: var(--forest-dark);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-muted);
  margin: 0;
}

/* SUPPORT SECTION (JÁ COMPROU) */
.support-section {
  background: var(--forest-mid);
  color: #ffffff;
  padding: 64px 0;
}

.support-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.support-text {
  max-width: 620px;
}

.support-text h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0 14px;
}

.support-text p {
  font-size: 16px;
  line-height: 26px;
  color: var(--forest-text-muted);
  margin: 0;
}

.support-cta {
  flex-shrink: 0;
}

/* FAQ SECTION */
.faq-section {
  padding: 88px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}

.faq-accordion {
  border-top: 1px solid var(--border-light);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
}

.faq-question {
  position: relative;
  padding-right: 32px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--forest-dark);
  transition: var(--transition-fast);
}

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

.faq-question:hover {
  color: var(--kariri-gold);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--kariri-gold);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding-top: 12px;
}

.faq-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-muted);
}

.faq-answer a {
  color: var(--forest-mid);
  font-weight: 700;
  text-decoration: underline;
}

/* CLOSING BANNER */
.closing-section {
  background: var(--surface-soft);
  border-top: 1px solid var(--border-light);
  padding: 80px 0;
  text-align: center;
}

.closing-box {
  max-width: 680px;
  margin-inline: auto;
}

.closing-box h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--forest-dark);
  margin: 12px 0 16px;
}

.closing-box p {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* FOOTER */
.footer {
  background: #051a14;
  color: #9cb3a4;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.footer-brand small {
  display: block;
  font-size: 11px;
  color: #8da696;
}

.footer-copy {
  margin: 0;
  max-width: 480px;
  font-size: 12px;
  line-height: 18px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--kariri-gold);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  text-decoration: underline;
}

/* MOBILE CONVERSION BAR */
.mobile-cta-bar {
  display: none;
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .steps-section,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-header {
    max-width: 100%;
  }

  .support-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .support-cta {
    width: 100%;
  }

  .support-cta .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 72px;
  }

  .nav a:not(.nav-contact) {
    display: none;
  }

  .nav-contact {
    font-size: 13px;
    padding: 7px 12px;
  }

  .purchase-actions {
    flex-direction: column;
    width: 100%;
  }

  .purchase-actions .button {
    width: 100%;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-container {
    max-width: 100%;
    border-width: 3px;
    border-radius: 14px;
  }

  .video-sound-btn {
    bottom: 8px;
    right: 8px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .proof-item {
    padding-left: 12px;
  }

  .tagline {
    padding: 56px 0 48px;
  }

  .steps-section,
  .faq-section,
  .closing-section {
    padding: 56px 0;
  }

  .closing-actions {
    flex-direction: column;
    width: 100%;
  }

  .closing-actions .button {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* BARRA FIXA MOBILE */
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 8px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--forest-dark);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--forest-border);
    z-index: 50;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  }

  .mobile-cta-bar .button {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13px;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button, .tagline-word {
    transition: none !important;
    transform: none !important;
  }
  .live-dot {
    animation: none;
  }
}
