﻿
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --deep: #1E1456;
  --purple: #2D1B69;
  --gold: #F0B429;
  --gold-light: #FFF3C4;
  --white: #FFFFFF;
  --off: #F7F8FA;
  --gray: #E8EAF0;
  --text: #1A1A2E;
  --muted: #6B7280;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(45, 27, 105, 0.12);
  --shadow-lg: 0 12px 48px rgba(45, 27, 105, 0.18);
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray);
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--purple);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo:hover {
  color: var(--deep);
}

.logo span {
  color: var(--gold);
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

nav a:hover {
  color: var(--purple);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.btn-nav {
  background: var(--purple);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-nav:hover {
  background: var(--deep) !important;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  background: linear-gradient(135deg, #F7F5FF 0%, #FEFEFE 60%, #FFF9E6 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: #92600A;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-label::before {
  content: '✦';
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--deep);
  margin-bottom: 20px;
}

h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(45, 27, 105, 0.3);
  transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 27, 105, 0.4);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.trust-item {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item::before {
  content: '✓';
  color: #22C55E;
  font-weight: 700;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ticket-stack {
  position: relative;
  width: 340px;
  height: 220px;
}

.ticket-card {
  position: absolute;
  width: 320px;
  height: 180px;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ticket-card.t1 {
  background: var(--purple);
  color: white;
  top: 0;
  left: 0;
  transform: rotate(-4deg);
  box-shadow: var(--shadow-lg);
}

.ticket-card.t2 {
  background: linear-gradient(135deg, #F0B429, #F97316);
  color: white;
  top: 10px;
  left: 16px;
  transform: rotate(1.5deg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.ticket-card.t3 {
  background: white;
  color: var(--purple);
  top: 24px;
  left: 8px;
  transform: rotate(-1deg);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  border: 2px solid var(--gray);
}

.ticket-title-t {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.ticket-name {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
}

.ticket-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.ticket-num {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.ticket-date-t {
  font-size: 0.65rem;
  opacity: 0.7;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--deep);
  line-height: 1.15;
}

.problema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--off);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #EF4444;
}

.pain-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.pain-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.pain-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.solution-box {
  background: linear-gradient(135deg, var(--purple) 0%, #1E1456 100%);
  border-radius: 20px;
  padding: 40px;
  color: white;
  text-align: center;
}

.solution-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.solution-box p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.7;
}

.solution-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.ad-banner {
  background: var(--gray);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 2px dashed #D1D5DB;
  margin: 0 40px;
}

.ad-banner:has(+ .cta-section) {
  margin-bottom: 48px;
}

.ad-placeholder {
  height: 90px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ferramenta-bg {
  background: var(--off);
}

.steps-intro {
  text-align: center;
  margin-bottom: 48px;
}

.steps-intro p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

#como-usar .section {
  max-width: 1280px;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  z-index: 0;
  pointer-events: none;
}

.how-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 0 18px 22px;
  box-shadow: var(--shadow);
}

.how-step .step-badge {
  align-self: center;
  width: 40px;
  height: 40px;
  margin: -20px auto 18px;
  font-size: 1rem;
  box-shadow: 0 0 0 4px var(--off);
  flex-shrink: 0;
}

.how-step .step-content h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.how-step .step-content p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.how-step .step-content ul {
  margin-top: 12px;
  gap: 6px;
}

.how-step .step-content li {
  font-size: 0.8rem;
}

.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--gray);
}

.step-row:last-child {
  border-bottom: none;
}

.step-row.reverse {
  direction: rtl;
}

.step-row.reverse>* {
  direction: ltr;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 12px;
}

.step-content p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.925rem;
}

.step-content ul {
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-content li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-content li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
}

.preview-box {
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
  position: relative;
}

.preview-box::before {
  content: 'Preview';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.capa-mock {
  background: linear-gradient(135deg, var(--purple), #5B21B6);
  border-radius: 12px;
  padding: 32px 24px;
  color: white;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.capa-mock .org {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.capa-mock .ctitle {
  font-size: 1.4rem;
  font-weight: 800;
}

.capa-mock .csub {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 6px;
}

.capa-mock .img-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bilhete-mock {
  border: 2px solid var(--purple);
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  min-height: 120px;
}

.bilhete-stub {
  background: var(--purple);
  color: white;
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  gap: 4px;
}

.bilhete-stub .bnum {
  font-size: 1.6rem;
  font-weight: 800;
}

.bilhete-stub .blabel {
  font-size: 0.55rem;
  text-transform: uppercase;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

.bilhete-body {
  padding: 14px 18px;
  flex: 1;
}

.bilhete-body .btitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--deep);
}

.bilhete-body .bdata {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}

.bilhete-body .bval {
  display: inline-block;
  background: var(--gold-light);
  color: #92600A;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

.bilhete-prize {
  width: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.config-mock {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.config-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.config-row label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-input-m {
  background: var(--off);
  border: 2px solid var(--gray);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  width: 100%;
}

.config-summary {
  background: var(--gold-light);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #92600A;
  font-weight: 500;
  text-align: center;
}

.gerar-mock {
  text-align: center;
}

.progress-bar-m {
  background: var(--gray);
  border-radius: 100px;
  height: 8px;
  margin: 16px 0;
  overflow: hidden;
}

.progress-fill-m {
  background: linear-gradient(90deg, var(--purple), var(--gold));
  height: 100%;
  width: 70%;
  border-radius: 100px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .7
  }
}

.gerar-stat {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

.btn-download-m {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: #22C55E;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.cta-section {
  background: linear-gradient(135deg, var(--purple) 0%, var(--deep) 100%);
  padding: 100px 40px;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  font-size: 1rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--deep);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(240, 180, 41, 0.4);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(240, 180, 41, 0.5);
}

.free-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.5);
  padding: 40px;
  text-align: center;
  font-size: 0.8rem;
}

footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

.faq-section {
  background: var(--off);
}

.faq-example {
  margin: 40px auto 48px;
  max-width: 600px;
  text-align: center;
}

.faq-example img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.faq-example figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--deep);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.tool-section {
  background: white;
}

.tool-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 40px;
}

.tool-header {
  text-align: center;
  margin-bottom: 60px;
}

.step-panel-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(520px, 680px);
  gap: 48px;
  align-items: start;
}

.step-panel-form .form-grid {
  margin-bottom: 0;
}

.step-panel-form .form-grid.template-field-group {
  margin-bottom: 24px;
}

.step-panel-preview {
  position: sticky;
  top: 96px;
}

.pdf-viewer {
  background: white;
  border: 1px solid var(--gray);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pdf-viewer-toolbar {
  padding: 10px 14px;
  background: var(--off);
  border-bottom: 1px solid var(--gray);
}

.pdf-viewer-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.pdf-viewer-body {
  position: relative;
  min-height: 280px;
  background: #4a4a4a;
  overflow: hidden;
}

.pdf-viewer-canvas {
  padding: 20px;
  box-sizing: border-box;
}

.pdf-viewer-frame-wrap {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  line-height: 0;
  width: 100%;
  aspect-ratio: 210 / 297;
}

.pdf-viewer-frame {
  display: block;
  border: none;
  width: 100%;
  height: 100%;
}

.pdf-viewer-empty,
.pdf-viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: var(--off);
}

.pdf-viewer-empty.hidden,
.pdf-viewer-loading.hidden {
  display: none;
}

.pdf-viewer-empty .pv-icon {
  font-size: 2.4rem;
  opacity: 0.5;
}

.pdf-viewer-empty p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 220px;
}

.pdf-viewer-loading p {
  font-size: 0.82rem;
  color: var(--muted);
}

.pdf-viewer-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: pdfSpin .7s linear infinite;
}

@keyframes pdfSpin {
  to {
    transform: rotate(360deg);
  }
}

.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 56px;
}

.wstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.wstep-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--gray);
  color: var(--muted);
  transition: all .3s;
  background: white;
}

.wstep-num.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.wstep-num.done {
  background: #22C55E;
  border-color: #22C55E;
  color: white;
}

.wstep-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  max-width: 80px;
}

.wstep-label.active {
  color: var(--purple);
}

.wline {
  flex: 1;
  height: 2px;
  background: var(--gray);
  margin: 0 8px;
  margin-bottom: 24px;
  max-width: 60px;
  transition: background .3s;
}

.wline.done {
  background: #22C55E;
}

.step-panel {
  display: none;
  animation: fadeIn .4s ease;
}

.step-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1/-1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--off);
  border: 2px solid var(--gray);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.45;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  background: white;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
  background: #fff8f8;
}

.form-group.has-error label {
  color: #c0392b;
}

.form-group .field-hint {
  font-size: 0.72rem;
  color: var(--muted);
  min-height: 1em;
}

.form-group .field-hint.error {
  color: #c0392b;
}

.form-group input[type=color] {
  height: 48px;
  padding: 4px 8px;
  cursor: pointer;
}

.upload-area {
  border: 2px dashed var(--gray);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--off);
}

.upload-area:hover {
  border-color: var(--purple);
  background: #F7F5FF;
}

.upload-area.invalid {
  border-color: #e74c3c;
  background: #fff8f8;
}

.upload-area.invalid:hover {
  border-color: #e74c3c;
  background: #fff8f8;
}

.upload-area .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.upload-area p {
  font-size: 0.85rem;
  color: var(--muted);
}

.upload-area input[type=file] {
  display: none;
}

.config-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.config-card {
  background: var(--off);
  border: 2px solid var(--gray);
  border-radius: 12px;
  padding: 20px;
}

.config-card label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 12px;
}

.number-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.num-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--gray);
  background: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-weight: 700;
}

.num-btn:hover {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}

.num-display {
  flex: 1;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep);
}

.total-box {
  background: var(--gold-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.total-box .total-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--deep);
}

.total-box p {
  font-size: 0.8rem;
  color: #92600A;
  margin-top: 4px;
}

.gerar-ready {
  text-align: center;
  padding: 40px 0;
}

.gerar-ready .ready-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.gerar-ready h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 8px;
}

.gerar-ready p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.sum-card {
  background: var(--off);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.sum-card .val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple);
}

.sum-card .lab {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.btn-gerar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45, 27, 105, 0.3);
  transition: transform .2s, box-shadow .2s;
}

.btn-gerar:hover {
  transform: translateY(-2px);
}

.btn-gerar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.generating {
  display: none;
  padding: 40px 0;
  text-align: center;
}

.generating.show {
  display: block;
}

.gen-bar {
  background: var(--gray);
  border-radius: 100px;
  height: 10px;
  margin: 20px 0 8px;
  overflow: hidden;
}

.gen-fill {
  background: linear-gradient(90deg, var(--purple), var(--gold));
  height: 100%;
  width: 0%;
  border-radius: 100px;
  transition: width .3s ease;
}

.gen-fill.indeterminate {
  width: 40% !important;
  animation: gen-indeterminate 1.4s ease-in-out infinite;
}

@keyframes gen-indeterminate {
  0% {
    margin-left: 0;
  }

  50% {
    margin-left: 60%;
  }

  100% {
    margin-left: 0;
  }
}

.gen-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.download-ready {
  display: none;
  text-align: center;
  padding: 32px 0;
}

.download-ready.show {
  display: block;
  animation: fadeIn .5s ease;
}

.download-ready .dl-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #22C55E;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
  transition: transform .2s;
  text-decoration: none;
}

.btn-dl:hover {
  transform: translateY(-2px);
}

.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
}

.btn-back {
  background: none;
  border: 2px solid var(--gray);
  border-radius: 10px;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.btn-back:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.btn-next {
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-next:hover {
  background: var(--deep);
}

.btn-next:disabled {
  background: var(--gray);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}

.btn-next:disabled:hover {
  background: var(--gray);
}

@media (max-width: 1100px) and (min-width: 769px) {
  .steps-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 0 4px 12px;
    -webkit-overflow-scrolling: touch;
  }

  .steps-container::before {
    display: none;
  }

  .how-step {
    flex: 0 0 min(280px, 72vw);
    scroll-snap-align: start;
  }

  .how-step .step-badge {
    margin-top: 0;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  nav a:not(.btn-nav) {
    display: none;
  }

  .nav-links .btn-nav {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .ticket-stack {
    width: 280px;
    height: 180px;
  }

  .ticket-card {
    width: 260px;
    height: 150px;
  }

  .section {
    padding: 60px 20px;
  }

  .problema-grid {
    grid-template-columns: 1fr;
  }

  .step-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step-row.reverse {
    direction: ltr;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps-container::before {
    display: none;
  }

  .how-step .step-badge {
    margin-top: 0;
    box-shadow: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .step-panel-layout {
    grid-template-columns: 1fr;
  }

  .step-panel-preview {
    position: static;
  }

  .config-cards {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .ad-banner {
    margin: 0 20px;
  }

  .ad-banner:has(+ .cta-section) {
    margin-bottom: 32px;
  }

  .tool-wrapper {
    padding: 60px 20px;
  }

  .wline {
    max-width: 30px;
  }
}
  