/* ==========================================================================
   OCTÓGONO EMPRESARIAL — RAIO-X ESTRATÉGICO DE CRESCIMENTO
   Landing page mobile-first para captação de leads (Expo Empreendedor 2026)
   ========================================================================== */

:root {
  /* Paleta oficial da marca */
  --black:        #0A0A0B;
  --black-soft:   #131316;
  --black-card:   #1B1B1F;
  --orange:       #FF6B1A;
  --orange-deep:  #E8590C;
  --orange-glow:  rgba(255, 107, 26, 0.18);
  --white:        #FFFFFF;
  --gray-100:     #F4F4F5;
  --gray-300:     #B8B8C0;
  --gray-500:     #6E6E78;
  --gray-700:     #2A2A30;
  --success:      #2BB673;
  --warn:         #E8590C;

  /* Tipografia */
  --font-display: 'Sora', 'Manrope', sans-serif;
  --font-body:    'Manrope', sans-serif;

  /* Layout */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 480px;
  --topbar-h: 60px;
  --progress-h: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button, input { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Garantia global: qualquer elemento com o atributo [hidden] deve ficar
   oculto, mesmo que outra regra defina display:flex/grid/block nele. */
[hidden] {
  display: none !important;
}

/* ============ BARRA DE PROGRESSO ============ */
.progress-shell {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--progress-h);
  background: var(--gray-700);
  z-index: 100;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  transition: width 0.5s var(--ease);
}

/* ============ HEADER ============ */
.topbar {
  position: fixed;
  top: var(--progress-h); left: 0; right: 0;
  height: var(--topbar-h);
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-700);
  z-index: 90;
  display: flex;
  align-items: center;
}
.topbar-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.topbar-logo {
  height: 26px;
  object-fit: contain;
}
.topbar-logo-fallback {
  display: none;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--white);
}

/* ============ MAIN / SCREENS ============ */
main {
  padding-top: calc(var(--topbar-h) + var(--progress-h));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: screenIn 0.45s var(--ease);
}

.screen[hidden] {
  display: none !important;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============ HERO ============ */
.hero-screen {
  position: relative;
  min-height: calc(100vh - var(--topbar-h) - var(--progress-h));
  justify-content: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 8%, var(--orange-glow), transparent 45%),
    linear-gradient(var(--gray-700) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-700) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 75%);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.3);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 18px;
}
.hero-title .accent { color: var(--orange); }

.hero-subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray-300);
  margin-bottom: 28px;
  max-width: 380px;
}

.hero-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--black-card);
  border: 1px solid var(--gray-700);
  padding: 10px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  white-space: nowrap;
}
.hero-timer-icon {
  color: var(--orange);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-stat strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}
.trust-stat span {
  font-size: 12px;
  color: var(--gray-500);
}
.trust-divider {
  width: 1px;
  height: 30px;
  background: var(--gray-700);
}

/* ============ BOTÕES ============ */
.btn-primary {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 17px 28px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
  box-shadow: 0 8px 24px -8px rgba(255, 107, 26, 0.5);
  text-decoration: none;
}
.btn-primary:hover { background: var(--orange-deep); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary svg { flex-shrink: 0; }

.btn-hero { width: 100%; max-width: 320px; }
.btn-full { width: 100%; }

.btn-whatsapp {
  background: var(--success);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(43, 182, 115, 0.45);
}
.btn-whatsapp:hover { background: #239b62; }

.btn-secondary {
  appearance: none;
  border: 1px solid var(--gray-700);
  background: transparent;
  color: var(--gray-300);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ============ FORM (IDENTIFICAÇÃO) ============ */
.step-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 12px;
}

.screen-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.screen-subtitle {
  font-size: 14.5px;
  color: var(--gray-500);
  margin-bottom: 28px;
  line-height: 1.5;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.field input {
  background: var(--black-card);
  border: 1.5px solid var(--gray-700);
  color: var(--white);
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  width: 100%;
}
.field select {
  background: var(--black-card);
  border: 1.5px solid var(--gray-700);
  color: var(--white);
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23FF6B1A' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l6.5 6 6.5-6' stroke='%23FF6B1A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 46px;
}

.field select:focus {
  border-color: var(--orange);
  background-color: var(--black-soft);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,107,26,.18);
}
.field input::placeholder { color: var(--gray-500); }
.field input:focus { border-color: var(--orange); background: var(--black-soft); outline: none; }
.field input.invalid { border-color: var(--warn); }

.field-error {
  font-size: 12.5px;
  color: var(--orange);
  min-height: 0;
  display: none;
}
.field-error.show { display: block; }

.stack-form .btn-primary { margin-top: 12px; }

/* ============ QUIZ ============ */
.quiz-screen { display: flex; flex-direction: column; }

.quiz-card {
  background: var(--black-card);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  animation: cardIn 0.35s var(--ease);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  background: rgba(255, 107, 26, 0.1);
  padding: 5px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.quiz-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  appearance: none;
  width: 100%;
  text-align: left;
  background: var(--black-soft);
  border: 1.5px solid var(--gray-700);
  color: var(--white);
  font-size: 15.5px;
  font-weight: 600;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.1s var(--ease);
}
.quiz-option:active { transform: scale(0.98); }
.quiz-option:hover { border-color: var(--gray-500); }
.quiz-option .opt-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-500);
  flex-shrink: 0;
  position: relative;
}
.quiz-option.selected {
  border-color: var(--orange);
  background: rgba(255, 107, 26, 0.08);
}
.quiz-option.selected .opt-check {
  border-color: var(--orange);
  background: var(--orange);
}
.quiz-option.selected .opt-check::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.quiz-nav {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}
.quiz-back {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}
.quiz-back:hover { color: var(--gray-300); }

/* ============ RESULTADO ============ */
.result-screen { display: flex; flex-direction: column; }

.result-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--gray-300);
  font-size: 14.5px;
  min-height: 50vh;
}

.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--gray-700);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.score-ring-wrap {
  position: relative;
  width: 140px; height: 140px;
  margin: 8px 0 20px;
}
.score-ring { width: 140px; height: 140px; transform: rotate(-90deg); }
.score-ring-track {
  fill: none;
  stroke: var(--gray-700);
  stroke-width: 10;
}
.score-ring-fill {
  fill: none;
  stroke: var(--orange);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.score-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-direction: column;
}
.score-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--white);
  line-height: 1;
}
.score-max {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
}

.result-classification {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  color: var(--orange);
  margin-bottom: 12px;
  line-height: 1.25;
}

.result-description {
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 400px;
}

.result-block {
  width: 100%;
  background: var(--black-card);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
  text-align: left;
}
.result-block-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-list li {
  font-size: 14.5px;
  color: var(--gray-300);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.result-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.result-block-highlight {
  border-color: rgba(255, 107, 26, 0.35);
  background: linear-gradient(160deg, rgba(255, 107, 26, 0.08), var(--black-card));
}
.result-block-highlight p {
  font-size: 14.5px;
  color: var(--gray-100);
  line-height: 1.6;
}

/* ============ CTA FINAL ============ */
.cta-screen { display: flex; flex-direction: column; justify-content: center; }
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: calc(100vh - var(--topbar-h) - var(--progress-h));
}

.cta-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.3);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-text {
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 360px;
}

.cta-footnote {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 18px;
}

/* ============ FOOTER ============ */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 11.5px;
  color: var(--gray-700);
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--black-card);
  border: 1px solid var(--gray-700);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 100px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.toast-error { border-color: var(--orange); }

/* ============ DESKTOP / TABLET (a página é mobile-first, mas mantém-se legível) ============ */
@media (min-width: 560px) {
  .hero-title { font-size: 46px; }
  .quiz-card { padding: 36px 32px; }
}
