/* ===========================
   HOUDINI — LED BUTTON PROP
=========================== */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ===========================
   BASE
=========================== */

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

:root {
  --bg: #000000;
  --surface: #0f0f0f;
  --surface-hi: #131313;
  --border: #1c1c1c;
  --border-hi: #2c2c2c;
  --text: #ffffff;
  --text-soft: #b8b8b8;
  --text-muted: #606060;
  --text-faint: #222222;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===========================
   PRELOADER
=========================== */

body.loading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  height: 360px;
  max-width: 88vw;
}

/* anel de LED girando ao redor do logo */
.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  background: conic-gradient(
    from var(--angle),
    transparent 55%,
    rgba(255,255,255,0.95) 80%,
    rgba(255,255,255,0.3) 90%,
    transparent 96%
  );
  -webkit-mask: radial-gradient(closest-side, transparent 85%, #000 86%);
          mask: radial-gradient(closest-side, transparent 85%, #000 86%);
  animation: led-spin 1.3s linear infinite, preloader-ring-in 0.6s ease 0.25s forwards;
}

/* logo dragão+K (arquivo já recortado e centralizado) */
.preloader-img {
  height: 250px;
  width: auto;
  display: block;
  animation: preloader-logo-in 0.9s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes preloader-logo-in {
  0%   { opacity: 0; transform: scale(0.8); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes preloader-ring-in {
  to { opacity: 1; }
}

/* ===========================
   NAV
=========================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Crop the logo to show only the K+dragon, hiding the Ksync text below */
.logo-crop {
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  object-position: top center;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.7;
}

/* ===========================
   LED BUTTON
=========================== */

.btn-led {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 16px 38px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s;

  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(
      from var(--angle),
      transparent 62%,
      rgba(255,255,255,0.95) 76%,
      rgba(255,255,255,0.35) 84%,
      transparent 90%
    ) border-box;
  border: 1.5px solid transparent;
  animation: led-spin 3s linear infinite;
}

.btn-led:hover { opacity: 0.85; }

@keyframes led-spin {
  to { --angle: 360deg; }
}

/* ===========================
   OUTLINE BUTTON
=========================== */

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 7px;
  border: 1px solid var(--border-hi);
  background: transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  color: var(--text);
  border-color: #3a3a3a;
}

/* ===========================
   HERO
=========================== */

.hero {
  padding: 160px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-logo-wrap {
  margin-bottom: 28px;
}

.hero-logo {
  height: 280px;
  width: auto;
  object-fit: contain;
}

.hero-title {
  font-size: clamp(52px, 9vw, 90px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 52px;
}

/* ===========================
   SECTIONS
=========================== */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 52px;
}

/* ===========================
   SERVICES
=========================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  position: relative;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}

/* glow que aparece no hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,0.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover::after { opacity: 1; }

.service-num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ===========================
   SHOWCASE (BROWSER MOCKUP)
=========================== */

.browser-mockup {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--surface);
}

.browser-bar {
  background: var(--surface-hi);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hi);
}

.browser-url {
  flex: 1;
  background: var(--border);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}

.browser-screen {
  padding: 28px;
  min-height: 280px;
  background: #080808;
}

/* Site de exemplo embutido no navegador */
.demo-site {
  display: flex;
  flex-direction: column;
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.demo-logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.demo-logo span { color: var(--text-muted); }

.demo-nav-links { display: flex; gap: 16px; }

.demo-nav-links span {
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: var(--border-hi);
}

.demo-nav-btn {
  font-size: 11px;
  font-weight: 600;
  color: #000;
  background: #fff;
  padding: 6px 14px;
  border-radius: 6px;
}

.demo-hero {
  text-align: center;
  margin-bottom: 26px;
}

.demo-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.demo-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}

.demo-sub {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.demo-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.demo-btn-primary {
  font-size: 11px;
  font-weight: 600;
  color: #000;
  background: #fff;
  padding: 9px 18px;
  border-radius: 7px;
}

.demo-btn-ghost {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 9px 18px;
  border-radius: 7px;
  border: 1px solid var(--border-hi);
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.demo-card-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2px;
}

.demo-card-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.showcase-caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===========================
   HOW IT WORKS
=========================== */

.steps {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.step-card {
  flex: 1;
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;

  /* borda de LED viajando ao redor do card */
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(
      from var(--angle),
      transparent 58%,
      rgba(255,255,255,0.9) 74%,
      rgba(255,255,255,0.3) 83%,
      transparent 90%
    ) border-box;
  border: 1.5px solid transparent;
  animation: led-spin 4.5s linear infinite;
}

/* delays negativos: a luz aparece no card 1, depois 2, depois 3 */
.step-card:nth-child(1) { animation-delay: 0s; }
.step-card:nth-child(2) { animation-delay: -1.5s; }
.step-card:nth-child(3) { animation-delay: -3s; }

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}

.step-num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-arrow {
  color: var(--text-faint);
  font-size: 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 4px;
}

/* ===========================
   PRICING
=========================== */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  border-color: var(--border-hi);
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}

.card-featured {
  border-color: #2e2e2e;
  background: var(--surface-hi);
}

/* halo suave atrás do card recomendado */
.card-featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: radial-gradient(130% 130% at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.card-featured:hover {
  border-color: #3e3e3e;
  box-shadow: 0 28px 56px -20px rgba(0, 0, 0, 0.9);
}

/* faixa de garantia abaixo dos pacotes */
.pricing-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 28px;
  margin: 28px 0 14px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.pricing-trust span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 9px;
}

.pricing-trust span::before {
  content: '✓';
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.badge {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: #fff;
  color: #000;
  padding: 4px 10px;
  border-radius: 4px;
}

.pack-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  min-height: 69px;
}

.price-block {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-bottom: 22px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.price-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.price-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.includes {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.includes li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.includes li::before {
  content: '—';
  color: var(--text-faint);
  flex-shrink: 0;
}

/* CTA dentro do card de pacote */
.card .includes { margin-bottom: 26px; }

.card-cta {
  width: 100%;
  margin-top: auto;
}

/* Payment */

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.payment-card .btn-outline {
  margin-top: auto;
  align-self: flex-start;
}

.payment-card:hover { border-color: var(--border-hi); }

.payment-type {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.payment-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ===========================
   FAQ
=========================== */

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.005em;
}

.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  line-height: 1;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a { max-height: 300px; }

.faq-a p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-bottom: 28px;
}

/* ===========================
   FINAL CTA
=========================== */

.cta-final {
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.03) 0%, transparent 65%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* ===========================
   FOOTER
=========================== */

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===========================
   ANIMATIONS
=========================== */

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 768px) {
  .hero { padding: 140px 0 80px; }
  .hero-logo { height: 200px; }
  .hero-title { font-size: 48px; }

  .services-grid,
  .pricing-grid,
  .payment-grid { grid-template-columns: 1fr; }

  .steps { flex-direction: column; gap: 12px; }
  .step-arrow { display: none; }

  .mock-cards { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .preloader-stage { width: 260px; height: 260px; }
  .preloader-img { height: 180px; }
  .hero-title { font-size: 38px; }
  .section { padding: 72px 0; }
  .card, .service-card { padding: 24px; }
  .step-card { padding: 22px; }
  .payment-card { padding: 22px 24px; }
  .btn-led { padding: 15px 28px; font-size: 12px; }
}

/* ===========================
   FORMULÁRIO (QUIZ)
=========================== */

body.quiz-locked { overflow: hidden; }

.quiz {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
}

.quiz.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* glow de topo, igual ao hero */
.quiz::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 420px;
  max-width: 100%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* Barra de progresso */
.quiz-top {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 26px 0 0;
  background: linear-gradient(var(--bg) 70%, transparent);
}

.quiz-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.quiz-step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.quiz-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.quiz-bar {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.quiz-bar-fill {
  height: 100%;
  width: 17%;
  background: #fff;
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  transition: width 0.45s cubic-bezier(.2,.7,.2,1);
}

.quiz-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.quiz-close:hover { color: var(--text); border-color: #3a3a3a; }

/* Corpo / passos */
.quiz-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
}

.quiz-stage { position: relative; }

.quiz-step { display: none; }
.quiz-step.active {
  display: block;
  animation: quiz-in 0.45s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes quiz-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 99px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.quiz-q {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.quiz-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.quiz-input {
  width: 100%;
  background: #050505;
  border: 1.5px solid var(--border-hi);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quiz-input::placeholder { color: var(--text-muted); }
.quiz-input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

/* Opções (radio / multi) */
.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.quiz-opt:hover { border-color: var(--border-hi); transform: translateY(-2px); }

.quiz-opt.selected {
  border-color: #fff;
  background: var(--surface-hi);
}

.quiz-opt-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-hi);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.quiz-opt.selected .quiz-opt-num { color: var(--text); border-color: #fff; }

.quiz-opt-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.quiz-opt-text strong { font-size: 16px; font-weight: 700; color: var(--text); }
.quiz-opt-text small  { font-size: 13px; color: var(--text-muted); }

.quiz-opt-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hi);
  position: relative;
  transition: border-color 0.2s;
}
.quiz-opt.selected .quiz-opt-mark { border-color: #fff; }
.quiz-opt.selected .quiz-opt-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

/* Campos de contato */
.quiz-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quiz-field { display: flex; flex-direction: column; gap: 8px; }
.quiz-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}
.quiz-field em { color: var(--text-muted); font-style: normal; font-weight: 400; }

/* Erro */
.quiz-error {
  display: none;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 14px;
}
.quiz-step.invalid .quiz-error { display: block; }
.quiz-step.invalid .quiz-input { border-color: #555; }

.quiz-step.shake { animation: quiz-shake 0.4s ease; }
@keyframes quiz-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

/* Navegação */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 99px;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: #3a3a3a; }

.quiz .btn-led { border-radius: 99px; }

@media (max-width: 480px) {
  .quiz-q { font-size: 26px; }
  .quiz-opt { padding: 15px 16px; gap: 14px; }
  .quiz-opt-num { width: 32px; height: 32px; }
  .quiz-nav { flex-direction: row; }
  .btn-ghost { padding: 12px 18px; font-size: 13px; }
  .quiz .btn-led { padding: 14px 22px; }
}
