:root {
  --bg-pure: #050507;
  --bg-body: #050507;
  --bg-card: #0e0e12;
  --bg-card-hover: #15151c;
  --bg-input: #09090c;
  --border-subtle: #22222c;
  --border-hover: #3a3a4a;
  --lava-primary: #ff4d00;
  --lava-bright: #ff6a00;
  --lava-glow: rgba(255, 77, 0, 0.18);
  --lava-soft: rgba(255, 77, 0, 0.10);
  --text-white: #ffffff;
  --text-muted: #a1a1b0;
  --text-dim: #6e6e80;
  --success: #10b981;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-pure);
  color: var(--text-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

body {
  background: radial-gradient(circle at 50% 0%, #0d0d12 0%, var(--bg-pure) 55%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* TOP HEADER WITH OFFICIAL LOGO */
.top-header {
  background-color: transparent;
  padding: 28px 20px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

@font-face {
  font-family: "Montserrat";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2");
}

.logo-wrapper {
  max-width: 440px;
  margin: 0 auto;
  container-type: inline-size;
}

/* The PNG has wide transparent margins: trim them from the layout and hide
   the low-res tagline baked into the image (re-set below as real text) */
.logo-mark {
  position: relative;
  margin: -11% 0 -16%;
}

.logo-mark img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  clip-path: inset(0 0 30% 0);
}

.logo-tagline {
  margin: 0;
  padding-left: 0.12em; /* balances the trailing letter-spacing */
  font: 600 max(10px, 2.5cqi)/1.6 "Montserrat", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #e9e9ee;
}

/* Keep each term whole when the tagline wraps on narrow screens */
.logo-tagline span {
  white-space: nowrap;
}

/* Lava spark canvas, positioned and drawn by logo-spark.js */
.logo-spark {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 0 1.5px rgba(255, 90, 0, 0.9)) drop-shadow(0 0 4px rgba(255, 60, 0, 0.5));
}

/* Intro on page load (html.logo-anim is set in <head>), same sequence as the
   Instagram video: 0.3–3.3s spark "<" → "/" → ">", 3.3–6.5s mirror shine,
   6.6–8.2s shine over the tagline */
.logo-anim .logo-mark img {
  animation: logo-light 3.2s ease-in-out 3.3s both;
}

.logo-anim .logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: inset(0 0 30% 0);
  background: linear-gradient(
    105deg,
    transparent 34%,
    rgba(255, 255, 255, 0.35) 42%,
    rgba(255, 255, 255, 1) 48%,
    rgba(255, 255, 255, 1) 52%,
    rgba(255, 255, 255, 0.35) 58%,
    transparent 66%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: logo-shine 3.2s ease-in-out 3.3s both;
}

.logo-anim .logo-tagline {
  background-image: linear-gradient(100deg, #e9e9ee 0%, #e9e9ee 42%, #fff 50%, #6f6f7a 58%, #6f6f7a 100%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-shine 1.6s ease-in-out 6.6s both;
}

@keyframes logo-shine {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

@keyframes logo-light {
  from { filter: brightness(0.55); }
  75% { filter: brightness(0.65); }
  to { filter: brightness(1); }
}

.nav-bar {
  max-width: 1120px;
  margin: 14px auto 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.nav-bar a:hover {
  color: var(--lava-primary);
}

/* HERO SECTION */
.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 20px 48px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lava-soft);
  border: 1px solid rgba(255, 77, 0, 0.35);
  color: var(--lava-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--lava-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--lava-primary);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.65;
  }
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-white);
}

.hero h1 span.highlight {
  color: var(--lava-primary);
}

.hero p {
  max-width: 740px;
  margin: 0 auto 34px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lava-primary) 0%, var(--lava-bright) 100%);
  color: var(--text-white);
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(255, 77, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 77, 0, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  padding: 15px 26px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--lava-primary);
  background: var(--bg-card-hover);
}

/* PILLARS BAR */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.pillar-pill {
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--lava-soft);
  border: 1px solid rgba(255, 77, 0, 0.25);
  color: var(--lava-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.pillar-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-white);
}

.pillar-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* STEP-BY-STEP ROADMAP SECTION */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-eyebrow {
  color: var(--lava-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step-card:hover {
  border-color: var(--lava-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-white);
  background: var(--lava-primary);
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.step-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 999px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.step-deliverable {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.8rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-deliverable span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lava-primary);
  display: inline-block;
}

/* INTERACTIVE QUIZ SECTION */
.quiz-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px 90px;
}

.quiz-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow: hidden;
}

.quiz-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lava-primary), var(--lava-bright), transparent);
}

.quiz-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quiz-progress-header strong {
  color: var(--lava-primary);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #1a1a22;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lava-primary), var(--lava-bright));
  width: 16.66%;
  transition: width 0.35s ease;
  border-radius: 999px;
}

.quiz-step {
  display: none;
  animation: fadeIn 0.28s ease;
}

.quiz-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-question-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.step-question-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.options-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.options-list.two-col {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.option-card {
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  user-select: none;
}

.option-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.option-card.selected {
  border-color: var(--lava-primary);
  background: var(--lava-soft);
  box-shadow: 0 0 0 1px var(--lava-primary);
}

.option-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
}

.option-card.checkbox .option-indicator {
  border-radius: 6px;
}

.option-card.selected .option-indicator {
  border-color: var(--lava-primary);
  background: var(--lava-primary);
}

.option-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-white);
  opacity: 0;
  transition: var(--transition);
}

.option-card.checkbox .option-indicator::after {
  content: "✓";
  width: auto;
  height: auto;
  background: transparent;
  color: var(--text-white);
  font-size: 0.78rem;
  font-weight: 900;
}

.option-card.selected .option-indicator::after {
  opacity: 1;
}

.option-content strong {
  display: block;
  font-size: 1rem;
  color: var(--text-white);
  margin-bottom: 3px;
}

.option-content span {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: block;
}

/* FORM INPUTS IN STEP 6 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
}

.form-group label span.req {
  color: var(--lava-primary);
}

.form-input,
.form-textarea {
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text-white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--lava-primary);
  box-shadow: 0 0 0 3px var(--lava-glow);
}

.form-textarea {
  min-height: 92px;
  resize: vertical;
}

.form-group label.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--lava-primary);
  cursor: pointer;
}

/* Campo anti-spam: invisível para pessoas, preenchido só por bots */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.error-msg {
  color: #ff5c5c;
  font-size: 0.84rem;
  margin-bottom: 14px;
  display: none;
  font-weight: 600;
}

/* QUIZ FOOTER NAV */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 22px;
  gap: 12px;
}

.btn-back {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-back:hover {
  color: var(--text-white);
  border-color: var(--border-hover);
}

.btn-next {
  background: var(--lava-primary);
  border: none;
  color: var(--text-white);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
}

.btn-next:hover {
  background: var(--lava-bright);
  transform: translateY(-1px);
}

/* RESULT SCORECARD VIEW */
.result-view {
  display: none;
  animation: fadeIn 0.4s ease;
}

.result-view.active {
  display: block;
}

.result-header {
  text-align: center;
  margin-bottom: 28px;
}

.result-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.score-banner {
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.16) 0%, rgba(20, 20, 28, 0.95) 100%);
  border: 1px solid rgba(255, 77, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.score-left h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lava-bright);
  margin-bottom: 4px;
}

.score-left h3 {
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 6px;
}

.score-left p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.score-circle {
  background: var(--bg-pure);
  border: 2px solid var(--lava-primary);
  border-radius: 14px;
  padding: 14px 20px;
  text-align: center;
  min-width: 130px;
}

.score-circle strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--lava-primary);
  line-height: 1.1;
}

.score-circle span {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.rec-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.rec-card h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lava-primary);
  margin-bottom: 8px;
}

.rec-card h4 {
  font-size: 1rem;
  color: var(--text-white);
  margin-bottom: 6px;
}

.rec-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.summary-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 26px;
  font-size: 0.88rem;
}

.summary-box h5 {
  color: var(--text-white);
  font-size: 0.92rem;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  gap: 12px;
  flex-wrap: wrap;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span.label {
  color: var(--text-muted);
}

.summary-row span.val {
  color: var(--text-white);
  font-weight: 600;
  text-align: right;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.toast-copied {
  display: none;
  text-align: center;
  margin-top: 12px;
  color: #34d399;
  font-size: 0.86rem;
  font-weight: 600;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  padding: 32px 20px;
  color: var(--text-dim);
  font-size: 0.84rem;
  background: var(--bg-pure);
}

@media (max-width: 640px) {
  .quiz-shell {
    padding: 24px 18px;
  }

  .score-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-row span.val {
    text-align: left;
  }
}