:root {
  --verde-floresta: #0F3D34;
  --azul-clean: #2E7BFF;
  --off-white: #F7F7F3;
  --charcoal: #1F1F1F;
  --cinza-suave: #D9E1DC;
  --amarelo-solar: #FFD166;

  --bg: var(--off-white);
  --surface: #ffffff;
  --text: var(--charcoal);
  --text-muted: #51605a;
  --primary: var(--verde-floresta);
  --primary-dark: #0a2b25;
  --accent: var(--azul-clean);
  --border: var(--cinza-suave);
  --radius: 18px;
  --shadow: 0 14px 32px -18px rgba(15, 61, 52, 0.35);
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-script: 'Caveat', cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.18;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
p { margin: 0 0 16px; color: var(--text-muted); }
strong { color: var(--text); }

.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.center-col { max-width: 680px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.script-callout {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  margin: 12px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-icon { width: 18px; height: 18px; object-fit: contain; }
.icon-inline { width: 14px; height: 14px; object-fit: contain; vertical-align: -2px; margin-right: 2px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-dark); }
.btn-light {
  background: #fff;
  color: var(--primary-dark);
}
.btn-light:hover { transform: translateY(-2px); background: var(--amarelo-solar); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; padding: 14px 20px; }
.topbar-centered .topbar-inner { justify-content: center; }

.logo-link { display: inline-flex; line-height: 0; }
.logo-img { height: 36px; width: auto; display: block; }
.logo-img-footer { height: 52px; }

/* Hero */
.hero-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  padding: 64px 0 48px;
  color: #fff;
}
.hero-bg-character {
  position: absolute;
  right: -40px;
  bottom: -20px;
  height: 115%;
  max-width: 48%;
  object-fit: contain;
  opacity: 0.16;
  filter: grayscale(1) brightness(2);
  pointer-events: none;
}
.hero-center {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hero-dark h1, .hero-h1-white { color: #fff; }
.hero-subtitle { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 24px; }

.selector-label { font-family: var(--font-heading); font-weight: 700; margin: 0 0 10px; font-size: 0.95rem; }
.selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}
.selector-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  color: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.selector-option:has(input:checked) { border-color: var(--amarelo-solar); background: rgba(255,209,102,0.15); }
.selector-option input { accent-color: var(--amarelo-solar); width: 16px; height: 16px; flex-shrink: 0; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

/* VSL */
.vsl { padding: 56px 0; background: var(--surface); }
.vsl-player {
  position: relative;
  max-width: 720px;
  margin: 24px auto 0;
  aspect-ratio: 16 / 9;
  background: var(--primary-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.vsl-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.45;
}
.vsl-play {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vsl-play img { width: 32px; height: 32px; }
.vsl-play:hover { transform: scale(1.05); }
.vsl-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }

/* Showcase carousel */
.showcase { padding: 56px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.showcase h2 { margin-bottom: 0; }
.showcase-wrap {
  margin-top: 32px;
  width: 100%;
  padding: 0 20px;
}
.showcase-track {
  display: flex;
  gap: 18px;
  overflow: hidden;
  width: 100%;
}
.showcase-card {
  flex: 0 0 auto;
  width: calc((100% - 5 * 18px) / 6);
  min-width: 140px;
}
.showcase-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 170 / 220;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.showcase-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; padding-top: 16px; }
.showcase-caption { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.showcase-caption strong { font-size: 0.9rem; }
.showcase-tag { font-size: 0.78rem; color: var(--text-muted); }

.section { padding: 64px 0; }

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
.section-header-row h2 { margin: 0; max-width: 480px; }
.tag-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--primary);
}
.section-caption { font-size: 0.85rem; color: var(--text-muted); }

/* Accordion (Formatos) */
.formats { background: var(--bg); }
.accordion {
  margin-top: 24px;
  max-width: 760px;
  display: grid;
  gap: 4px;
}
.accordion-item {
  border-radius: var(--radius);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.accordion-item[open] {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 20px;
}
.accordion-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-index { color: var(--accent); font-weight: 800; min-width: 26px; }
.accordion-title { flex: 1; }
.chevron { color: var(--text-muted); transition: transform 0.2s ease; }
.accordion-item[open] .chevron { transform: rotate(180deg); color: var(--primary); }
.accordion-item p { margin: 0; padding: 0 0 18px 40px; }

.mid-cta { margin-top: 32px; }

/* Process cards */
.process { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.process-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
}
.process-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.process-card summary::-webkit-details-marker { display: none; }
.process-badge {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
}
.process-icon { width: 48px; height: 48px; margin: 6px 0; object-fit: cover; object-position: top; border-radius: 50%; }
.process-category { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.process-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--text); }
.expand-label {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}
.process-card[open] .expand-label::after { content: " −"; }
.process-card:not([open]) .expand-label::after { content: " +"; }
.process-card p { margin: 10px 0 0; font-size: 0.9rem; }

/* Dark CTA */
.dark-cta {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.dark-cta-character {
  position: absolute;
  left: -30px;
  bottom: -20px;
  height: 90%;
  opacity: 0.15;
  filter: grayscale(1) brightness(2);
  pointer-events: none;
}
.dark-cta h2 { color: #fff; position: relative; }
.dark-cta .script-callout { color: var(--amarelo-solar); position: relative; }
.dark-cta .btn { margin-top: 16px; position: relative; }

.footer { padding: 32px 0; border-top: 1px solid var(--border); background: var(--primary-dark); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Modal */
dialog.lead-modal {
  border: none;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 40px);
  background: var(--surface);
  box-shadow: var(--shadow);
  position: fixed;
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
}
dialog.lead-modal::backdrop { background: rgba(15, 61, 52, 0.55); backdrop-filter: blur(3px); }
dialog.lead-modal[open] { animation: modal-in 0.25s ease; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  cursor: pointer; color: var(--text-muted);
}
.modal-close:hover { color: var(--text); }
.modal-title { margin-bottom: 4px; }
.modal-subtitle { margin-bottom: 4px; }

.lead-form { display: grid; gap: 18px; margin-top: 8px; }
.form-row { display: grid; gap: 6px; }
label { font-size: 0.85rem; font-weight: 700; color: var(--text); font-family: var(--font-heading); }
input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-status { min-height: 20px; font-size: 0.9rem; margin: 0; }
.form-status.success { color: var(--primary); font-weight: 700; }
.form-status.error { color: #dc2626; font-weight: 700; }

.phone-group { display: flex; align-items: stretch; gap: 8px; }
.phone-prefix {
  display: flex; align-items: center; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  font-weight: 700; font-family: var(--font-heading); white-space: nowrap;
}
.phone-group input { flex: 1; }

@media (max-width: 880px) {
  .selector-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .hero-bg-character, .dark-cta-character { display: none; }
  .showcase-card { width: calc((100% - 2 * 18px) / 3); }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
  .showcase-card { width: calc((100% - 18px) / 2); }
}
