/* === Animations === */

/* Fade up on scroll */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes drawLine {
  from { width: 0; }
  to   { width: 24px; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero-text-anim .eyebrow {
  animation: slideRight 0.7s ease both;
  animation-delay: 0.1s;
}
.hero-text-anim h1 {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.25s;
}
.hero-text-anim .hero-sub {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.4s;
}
.hero-text-anim .hero-actions {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.55s;
}
.hero-text-anim .hero-meta {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.7s;
}
.hero-visual {
  animation: fadeIn 1.2s ease both;
  animation-delay: 0.4s;
}
.hero-drawing {
  animation: floatY 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Eyebrow line draw */
.eyebrow::before {
  animation: drawLine 0.5s ease both;
}

/* Card hover lift */
.problema-card, .incluso-item, .projeto-card, .depo, .price-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s ease,
              background 0.2s ease;
}
.problema-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(46, 57, 75, 0.12);
}
.incluso-item:hover {
  transform: translateY(-3px);
}
.depo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(46, 57, 75, 0.1);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(46, 57, 75, 0.14);
}

/* Stat number pop */
.karin-stats.in .stat .num {
  animation: countUp 0.6s ease both;
}
.karin-stats.in .stat:nth-child(1) .num { animation-delay: 0.1s; }
.karin-stats.in .stat:nth-child(2) .num { animation-delay: 0.25s; }
.karin-stats.in .stat:nth-child(3) .num { animation-delay: 0.4s; }

/* Nav brand pulse on load */
.brand {
  animation: fadeIn 0.6s ease both;
}

/* FAQ open/close smooth */
.faq-a {
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s ease;
}

/* CTA button pulse */
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--fire-deep) inset, 0 12px 30px -12px rgba(162, 91, 60, 0.4); }
  50%       { box-shadow: 0 0 0 1px var(--fire-deep) inset, 0 12px 30px -4px rgba(162, 91, 60, 0.7); }
}
.cta-final .btn-primary {
  animation: btnPulse 2.5s ease-in-out infinite;
  animation-delay: 1s;
}

/* Hero dot pulse */
.hero-meta .dot {
  animation: pulse-dot 2s ease-in-out infinite;
}


/* === Hover micro-interactions === */

/* Steps — highlight on hover */
.step {
  transition: background 0.25s ease, border-color 0.25s ease;
  cursor: default;
}
.step:hover {
  background: var(--bg);
}
.step .num {
  transition: color 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}
.step:hover .num {
  color: var(--fire);
  transform: scale(1.08) translateY(-2px);
}
.step h4 {
  transition: color 0.2s ease;
}
.step:hover h4 { color: var(--fire); }

/* Incluso items — icon lift */
.incluso-item .icon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.2s ease, color 0.2s ease;
}
.incluso-item:hover .icon {
  transform: translateY(-4px);
  border-color: var(--fire);
  color: var(--fire);
}

/* Trust badges — subtle lift */
.trust-badge {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.trust-badge:hover {
  transform: translateY(-2px);
}

/* Eyebrow — underline on section hover */
.sec-head .eyebrow::before {
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sec-head:hover .eyebrow::before {
  width: 40px;
}

/* Karin stats — scale on hover */
.karin-stats .stat {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}
.karin-stats .stat:hover { transform: translateY(-3px); }
.karin-stats .stat .num {
  transition: color 0.2s ease;
}
.karin-stats .stat:hover .num { color: var(--fire); }

/* FAQ — question hover */
.faq-q {
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.faq-q:hover { padding-left: 8px; }

/* Bonus items — left border accent */
.bonus-item {
  position: relative;
  transition: background 0.2s ease;
}
.bonus-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--fire);
  transition: width 0.25s ease;
}
.bonus-item:hover::before { width: 3px; }
.bonus-item:hover { background: var(--bg); }

/* Compare rows */
.compare-row {
  transition: background 0.2s ease;
}
.compare-row:hover { background: var(--bg); }

/* Nav links */
.nav-links a {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fire);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Projeto card buy button */
.projeto-card .buy {
  background: var(--bg-2);
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.projeto-card:hover .buy {
  background: var(--fire);
  color: #fff;
}


/* Para quem — hover border */
.para-quem-col {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.para-quem-col.yes:hover {
  border-color: #4a9a6a;
  box-shadow: 0 4px 24px -8px rgba(74, 154, 106, 0.18);
}
.para-quem-col.no:hover {
  border-color: #c0443a;
  box-shadow: 0 4px 24px -8px rgba(192, 68, 58, 0.18);
}

/* === Touch device: active states (substitute hover) === */
@media (hover: none) {
  .btn-primary:active { transform: translateY(1px); background: var(--fire-soft); }
  .btn-ghost:active { border-color: var(--gold); color: var(--gold); }
  .projeto-card:active { transform: translateY(-2px); border-color: var(--gold-deep); }
  .projeto-card:active .buy { background: var(--fire); color: #fff; }
  .price-card:active { transform: translateY(-2px); }
  .faq-q:active { color: var(--gold); }
  .vote-option:active:not(:disabled) { background: var(--bg-3); border-color: var(--fire); }
  .nav-links a:active { color: var(--gold); }
}

/* Tap delay reduction on touch */
.btn, .buy, .faq-q, .vote-option, .nav-links a, button, a {
  touch-action: manipulation;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-drawing { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cta-final .btn-primary { animation: none !important; }
}
