/* Estilos do funil de avaliação — identidade olive/gold/cream */

.quiz-shell {
  min-height: min(100dvh, 100vh);
}

.quiz-progress-track {
  height: 0.4rem;
  background: #e8ebe0;
  border-radius: 9999px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6f7d55, #b8954a);
  border-radius: inherit;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 52px;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1.5px solid #d1d7c2;
  color: #2c3028;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 500;
  touch-action: manipulation;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: #b8954a;
  background: #f6f7f2;
  outline: none;
  box-shadow: 0 6px 18px rgba(49, 54, 40, 0.08);
}

.quiz-option:active {
  transform: scale(0.985);
}

.quiz-option.is-selected {
  border-color: #566342;
  background: linear-gradient(135deg, #f6f7f2, #e8ebe0);
  box-shadow: 0 0 0 1px #566342 inset;
}

.quiz-option-multi {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.quiz-check {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border-radius: 0.35rem;
  border: 1.5px solid #b3bd9a;
  background: #fff;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.quiz-option-multi.is-selected .quiz-check {
  background: #566342;
  border-color: #566342;
}

.quiz-option-multi.is-selected .quiz-check::after {
  content: '';
  position: absolute;
  left: 0.32rem;
  top: 0.1rem;
  width: 0.35rem;
  height: 0.65rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.quiz-option-label {
  flex: 1;
}

.quiz-panel {
  animation: quizIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-panel.is-leaving {
  animation: quizOut 0.22s ease forwards;
}

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

@keyframes quizOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.recommend-card {
  display: grid;
  gap: 0;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(49, 54, 40, 0.1);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #c9a86c, #6f7d55) border-box;
  border: 1.5px solid transparent;
}

@media (min-width: 768px) {
  .recommend-card {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.recommend-card-media {
  min-height: 220px;
  background: #e8ebe0;
}

.recommend-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .recommend-card-body {
    padding: 1.75rem;
  }
}

.lead-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #d1d7c2;
  box-shadow: 0 8px 28px rgba(49, 54, 40, 0.07);
}

.field-input {
  width: 100%;
  min-height: 48px;
  border-radius: 0.85rem;
  border: 1.5px solid #d1d7c2;
  background: #faf9f6;
  padding: 0.75rem 0.95rem;
  color: #2c3028;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: #6f7d55;
  box-shadow: 0 0 0 3px rgba(111, 125, 85, 0.15);
  background: #fff;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #d1d7c2;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #566342;
}

/* Landing da avaliação — layout distinto da página de vendas */
.lp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1rem;
}

@media (min-width: 640px) {
  .lp-topbar {
    padding: 1rem 2rem;
  }
}

.lp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, rgba(201, 168, 108, 0.22), transparent 55%),
    linear-gradient(165deg, #313628 0%, #444e35 42%, #566342 100%);
  color: #faf9f6;
}

.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 249, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 249, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.lp-hero-inner {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  text-align: center;
}

@media (min-width: 640px) {
  .lp-hero-inner {
    padding: 3.75rem 2rem 4.25rem;
  }
}

.lp-brand {
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.65rem;
}

.lp-brand span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72em;
  font-weight: 600;
  color: #c9a86c;
}

.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(201, 168, 108, 0.45);
  background: rgba(250, 249, 246, 0.06);
  color: #e8ebe0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-headline {
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.3;
  font-weight: 600;
  color: #f6f7f2;
  max-width: 34rem;
  margin: 0 auto 0.9rem;
}

.lp-support {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(250, 249, 246, 0.78);
  max-width: 32rem;
  margin: 0 auto 1.6rem;
}

@media (min-width: 640px) {
  .lp-support {
    font-size: 1.05rem;
  }
}

.lp-cta {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #c9a86c 0%, #b8954a 100%) !important;
  color: #1f221c !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .lp-cta:hover {
    background: linear-gradient(135deg, #d4b67a 0%, #c9a86c 100%) !important;
    transform: translateY(-1px);
  }
}

.lp-meta {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: rgba(250, 249, 246, 0.62);
}

.lp-preview-wrap {
  position: relative;
  max-width: 28rem;
  margin: 1.1rem auto 0;
  transform: translateY(0);
  animation: lpFloat 5.5s ease-in-out infinite;
}

@keyframes lpFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.lp-preview {
  text-align: left;
  background: rgba(250, 249, 246, 0.96);
  color: #2c3028;
  border-radius: 1.15rem;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 18px 40px rgba(31, 34, 28, 0.28);
  border: 1px solid rgba(201, 168, 108, 0.35);
}

.lp-preview-bar {
  height: 0.35rem;
  border-radius: 9999px;
  background: #e8ebe0;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.lp-preview-bar > span {
  display: block;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, #6f7d55, #b8954a);
  animation: lpBar 2.8s ease-in-out infinite;
}

@keyframes lpBar {
  0%,
  100% {
    width: 22%;
  }
  50% {
    width: 48%;
  }
}

.lp-preview-q {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.7rem;
  color: #1f221c;
}

.lp-preview-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: 1.5px solid #d1d7c2;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.82rem;
  color: #3a3f36;
  margin-bottom: 0.45rem;
}

.lp-preview-opt.is-on {
  border-color: #566342;
  background: #f6f7f2;
}

.lp-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

.lp-signature img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(201, 168, 108, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.lp-signature-text {
  text-align: left;
}

.lp-signature-text strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}

.lp-signature-text span {
  font-size: 0.75rem;
  color: rgba(250, 249, 246, 0.7);
}

.lp-path {
  background: #faf9f6;
  border-bottom: 1px solid #e8ebe0;
}

.lp-path-list {
  display: grid;
  gap: 0;
  max-width: 40rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .lp-path-list {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    max-width: 56rem;
  }
}

.lp-path-item {
  position: relative;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8ebe0;
}

@media (min-width: 768px) {
  .lp-path-item {
    flex: 1;
    padding: 0 1.25rem;
    border-bottom: 0;
    border-right: 1px solid #e8ebe0;
  }
  .lp-path-item:last-child {
    border-right: 0;
  }
}

.lp-path-item:last-child {
  border-bottom: 0;
}

.lp-path-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8954a;
  margin-bottom: 0.4rem;
}

.lp-authority {
  background:
    linear-gradient(90deg, #f6f7f2 0%, #faf9f6 45%, #f6f7f2 100%);
  border-bottom: 1px solid #e8ebe0;
}

.lp-authority-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .lp-authority-row {
    grid-template-columns: 140px 1fr;
    gap: 2rem;
  }
}

.lp-authority-photo {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto;
  border-radius: 9999px;
  overflow: hidden;
  border: 3px solid #c9a86c;
  box-shadow: 0 10px 24px rgba(49, 54, 40, 0.12);
}

@media (min-width: 768px) {
  .lp-authority-photo {
    width: 8.5rem;
    height: 8.5rem;
    margin: 0;
  }
}

.lp-authority-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (min-width: 768px) {
  .lp-authority-copy {
    text-align: left;
  }
}

.view-hidden {
  display: none !important;
}

.analyzing-dots span {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0 0.15rem;
  border-radius: 9999px;
  background: #6f7d55;
  animation: dotPulse 1s ease-in-out infinite;
}

.analyzing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.analyzing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotPulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.edu-section + .edu-section {
  border-top: 1px solid #e8ebe0;
}

.edu-hero {
  background:
    linear-gradient(160deg, rgba(31, 34, 28, 0.72), rgba(49, 54, 40, 0.55)),
    var(--edu-hero-image) center/cover no-repeat;
}

.disclaimer-box {
  background: #f6f7f2;
  border: 1px solid #d1d7c2;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #3a3f36;
}

body.quiz-active {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

body.quiz-active .wa-float,
body.quiz-active .social-toast {
  opacity: 0;
  pointer-events: none;
}
