/* ============================================================
   CRD SEGUROS — Premium Landing Page
   ============================================================ */

/* --- RESET & BASE ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-deep:    #071B3A;
  --blue-main:    #0B2F66;
  --blue-mid:     #1257A8;
  --cyan:         #35B7FF;
  --white-soft:   #F7F9FC;
  --gray-text:    #5D6675;
  --gold:         #C9A24D;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Montserrat', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: auto; /* Lenis handles this */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--blue-deep);
  color: var(--white-soft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- LOADER ----------------------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--blue-deep);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 120px;
  object-fit: contain;
  margin-bottom: 2rem;
  opacity: 0.92;
}

.loader-brand {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: rgba(247, 249, 252, 0.5);
}

.loader-progress {
  width: 180px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-mid), var(--cyan));
  transition: width 0.2s ease;
}

#loader-percent {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(247, 249, 252, 0.35);
}

/* --- HEADER ----------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5vw;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

.site-header.scrolled {
  background: rgba(7, 27, 58, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.header-nav {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 2rem;
}

.header-logo-link {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: 1.2rem;
}

.header-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.header-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(247, 249, 252, 0.65);
  text-decoration: none;
  transition: color 0.25s;
  text-transform: uppercase;
}

.header-links a:hover,
.header-links a:focus-visible { color: var(--white-soft); }

.btn-header-cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-soft);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-header-cta:hover,
.btn-header-cta:focus-visible {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white-soft);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1.5rem 0;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(247,249,252,0.75);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}

.mobile-menu a.mobile-cta {
  color: var(--cyan);
  border-bottom: none;
  margin-top: 0.5rem;
}

/* --- BUTTONS ---------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-soft);
  text-decoration: none;
  background: var(--blue-mid);
  border: 1px solid var(--blue-mid);
  padding: 1rem 2.2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #1666be;
  box-shadow: 0 8px 32px rgba(18, 87, 168, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(53, 183, 255, 0.3);
  transition: border-color 0.25s, color 0.25s;
  margin-top: 1.5rem;
}

.btn-secondary::after {
  content: '→';
  margin-left: 0.6rem;
  transition: transform 0.25s;
}

.btn-secondary:hover { border-color: var(--cyan); }
.btn-secondary:hover::after { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(247,249,252,0.7);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: border-color 0.25s, color 0.25s;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255,255,255,0.4);
  color: var(--white-soft);
}

/* --- HERO -------------------------------------------------- */
.hero-standalone {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  background: var(--blue-deep);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

.hero-partner-logo {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(200px, 28vw, 420px);
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
}

.hero-standalone::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(18,87,168,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 30%, rgba(53,183,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 5vw;
  max-width: 52vw;
  padding-top: 88px;
}

.hero-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 1.75rem;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.hero-label { color: rgba(53,183,255,0.75); }

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--white-soft);
  margin-bottom: 2rem;
  max-width: 44ch;
}

/* Word split spans injected by JS */
.hero-heading .word {
  display: inline-block;
  overflow: hidden;
}

.hero-heading .word-inner {
  display: inline-block;
}

.hero-tagline {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(247,249,252,0.55);
  max-width: 50ch;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-microcopy {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(247,249,252,0.4);
  letter-spacing: 0.02em;
  max-width: 36ch;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,249,252,0.3);
}

.scroll-arrow {
  animation: scrollBounce 2.2s ease-in-out infinite;
}

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

.hero-line-decor {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(18,87,168,0.3) 30%, rgba(53,183,255,0.2) 60%, transparent);
  pointer-events: none;
}

/* --- CANVAS ----------------------------------------------- */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#canvas2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}

#canvas3 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}

/* --- CANVAS FALLBACK -------------------------------------- */
.canvas-fallback {
  position: absolute;
  inset: 0;
  background: var(--blue-deep);
  overflow: hidden;
}

.fallback-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 50vw; height: 50vw;
  top: -15%; right: -10%;
  background: radial-gradient(circle, rgba(18,87,168,0.18) 0%, transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  width: 35vw; height: 35vw;
  bottom: 10%; left: 20%;
  background: radial-gradient(circle, rgba(53,183,255,0.08) 0%, transparent 70%);
  animation-delay: -3s;
}

.orb-3 {
  width: 28vw; height: 28vw;
  top: 30%; left: -5%;
  background: radial-gradient(circle, rgba(11,47,102,0.3) 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, 3%) scale(1.04); }
  66% { transform: translate(-1%, -2%) scale(0.97); }
}

.fallback-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.fline {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 8s ease-in-out infinite;
}

.fl-1 { animation-delay: 0s; }
.fl-2 { animation-delay: 1.5s; }
.fl-3 { animation-delay: 3s; }

@keyframes drawLine {
  0% { stroke-dashoffset: 2000; opacity: 0; }
  10% { opacity: 1; }
  60% { stroke-dashoffset: 0; opacity: 0.7; }
  80% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 2000; opacity: 0; }
}

.fcircle {
  stroke-dasharray: 1760;
  stroke-dashoffset: 1760;
  animation: drawCircle 10s ease-in-out infinite;
}

.fcircle2 {
  stroke-dasharray: 2390;
  stroke-dashoffset: 2390;
  animation: drawCircle 12s ease-in-out infinite 2s;
}

@keyframes drawCircle {
  0% { stroke-dashoffset: 1760; opacity: 0; }
  10% { opacity: 0.5; }
  55% { stroke-dashoffset: 0; opacity: 0.4; }
  80% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1760; opacity: 0; }
}

.fallback-shield {
  position: absolute;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: min(28vw, 320px);
  opacity: 0.15;
  animation: shieldPulse 6s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%, 100% { opacity: 0.12; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.2; transform: translateY(-50%) scale(1.02); }
}

/* --- DARK OVERLAY ----------------------------------------- */
#dark-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 27, 58, 0.92);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* --- MARQUEE ---------------------------------------------- */
.marquee-wrap {
  position: fixed;
  bottom: 8vh;
  left: 0;
  right: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.marquee-text {
  font-family: var(--font-body);
  font-size: clamp(6rem, 12vw, 13rem);
  font-weight: 800;
  white-space: nowrap;
  color: rgba(247, 249, 252, 0.035);
  letter-spacing: 0.05em;
  line-height: 1;
  will-change: transform;
}

/* --- SCROLL CONTAINER ------------------------------------- */
#scroll-container {
  position: relative;
  height: 1800vh;
  z-index: 5;
}

/* --- SCROLL SECTIONS -------------------------------------- */
.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
}

.scroll-section.is-visible {
  pointer-events: auto;
}

/* Side-aligned text zones */
.align-left  { padding-left: 5vw;  padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw;  }

.align-left .section-inner,
.align-right .section-inner { max-width: 42vw; }

.section-compact.align-right { padding-left: 62vw; padding-right: 3vw; }
.section-compact.align-right .section-inner { max-width: 34vw; font-size: 0.9em; }

.section-inner {
  position: relative;
}


.section-produto .section-inner {
  position: relative;
  z-index: 1;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white-soft);
  margin-bottom: 1.25rem;
}

.section-subheading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white-soft);
  margin-bottom: 1rem;
}

.section-body {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(247,249,252,0.62);
  margin-bottom: 1rem;
}

.section-body-sm {
  font-size: 0.85rem;
  color: rgba(247,249,252,0.45);
}

.section-microcopy {
  display: block;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(247,249,252,0.35);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

.section-area-num {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 800;
  color: rgba(53,183,255,0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

.section-produto-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(201,162,77,0.3);
  padding-bottom: 0.4rem;
}

.section-label-light {
  color: rgba(247,249,252,0.4);
}

/* --- STATS SECTION ---------------------------------------- */
.section-stats {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5vw;
  z-index: 6;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.section-heading-light {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white-soft);
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 2.5rem;
}

.stat {
  padding: 2rem;
  border-left: 1px solid rgba(255,255,255,0.07);
}

.stat:first-child { border-left: none; }

.stat-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-family: var(--font-body);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 800;
  color: var(--white-soft);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-suffix {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 300;
  color: rgba(247,249,252,0.45);
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,249,252,0.35);
}

.stats-note {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(247,249,252,0.4);
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.75;
}

/* --- HOW-TO STEPS ----------------------------------------- */
.howto-steps {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.howto-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
}

.step-num {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(53,183,255,0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 3rem;
  letter-spacing: -0.04em;
}

.step-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white-soft);
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.87rem;
  font-weight: 300;
  color: rgba(247,249,252,0.5);
  line-height: 1.7;
}

.step-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0;
}

/* --- FORM SECTION ----------------------------------------- */
.page-section {
  position: relative;
  z-index: 10;
  background: var(--white-soft);
}

.section-form-wrap {
  padding: 8rem 5vw;
}

.form-container {
  max-width: 600px;
}

.section-form-wrap .section-label {
  color: var(--blue-mid);
}

.form-heading {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-deep);
  margin-bottom: 1rem;
}

.form-subtext {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-main);
}

.form-group input,
.form-group select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid rgba(11,47,102,0.15);
  border-radius: 2px;
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230B2F66' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(18,87,168,0.08);
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: #c0392b;
}

.field-error {
  font-size: 0.75rem;
  color: #c0392b;
  font-weight: 400;
  min-height: 1em;
}

.btn-form-submit {
  width: 100%;
  margin-top: 0.5rem;
  position: relative;
}

.btn-form-submit .btn-loading {
  display: none;
  position: absolute;
}

.btn-form-submit.loading .btn-text { opacity: 0; }
.btn-form-submit.loading .btn-loading { display: flex; }

.spin {
  animation: spinAnim 0.8s linear infinite;
}

@keyframes spinAnim {
  to { transform: rotate(360deg); }
}

/* =========================================================
   QUIZ INTERATIVO
   ========================================================= */
#quiz-root {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-progress-bar-wrap {
  height: 3px;
  background: rgba(11,47,102,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.quiz-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-stage {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quiz-stage.quiz-visible {
  opacity: 1;
  transform: translateY(0);
}

.quiz-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 1.5rem;
}

.quiz-label--cond {
  color: var(--cyan);
}

.quiz-question {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
}

.quiz-sub {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 2rem;
  max-width: 50ch;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(11,47,102,0.12);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--blue-deep);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.quiz-option:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 2px 12px rgba(18,87,168,0.08);
}

.quiz-option.selected {
  border-color: var(--cyan);
  background: rgba(53,183,255,0.05);
  box-shadow: 0 2px 16px rgba(53,183,255,0.12);
}

.quiz-opt-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(11,47,102,0.2);
  transition: border-color 0.2s, background 0.2s;
}

.quiz-option.selected .quiz-opt-dot {
  border-color: var(--cyan);
  background: var(--cyan);
}

.quiz-opt-text { flex: 1; }

.quiz-btn-start {
  margin-top: 1rem;
  width: 100%;
}

.qfield-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.qfield-full {
  grid-column: 1 / -1;
}

/* --- Result ------------------------------------------ */
.quiz-result-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(53,183,255,0.08);
  border: 1px solid rgba(53,183,255,0.2);
  border-radius: 2px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
}

.quiz-result-heading {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-deep);
  margin-bottom: 1rem;
}

.quiz-result-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray-text);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.quiz-result-slabel {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(11,47,102,0.4);
  margin-bottom: 0.75rem;
}

.quiz-result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.quiz-result-list li {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--blue-deep);
  padding-left: 1.2rem;
  position: relative;
}

.quiz-result-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--cyan);
}

.quiz-result-list--sec li {
  color: var(--gray-text);
  font-size: 0.95rem;
}

.quiz-result-list--sec li::before {
  background: rgba(11,47,102,0.25);
  width: 4px;
}

.quiz-result-crossnote {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-text);
  background: rgba(11,47,102,0.03);
  border-left: 2px solid rgba(53,183,255,0.3);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  border-radius: 0 2px 2px 0;
}

.quiz-result-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .qfield-grid { grid-template-columns: 1fr; }
  .quiz-result-ctas { flex-direction: column; }
}

/* --- RESULTADO -------------------------------------------- */
.section-resultado {
  display: none;
  padding: 7rem 5vw;
  background: var(--blue-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.section-resultado.visible { display: block; }

.resultado-container { max-width: 900px; }

.resultado-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.resultado-icon { width: 48px; }

.resultado-heading {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white-soft);
}

.resultado-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(247,249,252,0.6);
  max-width: 65ch;
}

.resultado-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.resultado-subtitle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,249,252,0.35);
  margin-bottom: 1.5rem;
}

.resultado-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resultado-list li {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(247,249,252,0.75);
  padding-left: 1.2rem;
  position: relative;
}

.resultado-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1px;
  background: var(--gray-text);
}

.resultado-list-primary li {
  color: var(--white-soft);
}

.resultado-list-primary li::before {
  background: var(--cyan);
  width: 8px;
}

.resultado-final {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(247,249,252,0.5);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 55ch;
}

.resultado-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- CTA FINAL -------------------------------------------- */
.section-cta-final {
  position: relative;
  z-index: 10;
  background: var(--blue-deep);
  padding: 10rem 5vw 8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.section-cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(18,87,168,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(53,183,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-final-inner {
  max-width: 55vw;
}

.cta-final-heading {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 2.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white-soft);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.cta-final-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(247,249,252,0.55);
  margin-bottom: 3rem;
  max-width: 55ch;
}

.btn-cta-final {
  font-size: 0.9rem;
  padding: 1.1rem 2.8rem;
}

/* --- COMO FUNCIONA (seção normal fora do canvas) ----------- */
.section-howto-page {
  background: var(--white-soft);
  padding: 8rem 5vw;
  position: relative;
  overflow: hidden;
}

.howto-page-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: start;
  max-width: 1100px;
}

.howto-page-heading {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--blue-deep);
  margin-bottom: 1.2rem;
}

.howto-page-body {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray-text);
  margin-bottom: 2rem;
  max-width: 55ch;
}

.howto-label { color: var(--blue-mid); }

.section-howto-page .step-content h4 { color: var(--blue-deep); }
.section-howto-page .step-content p  { color: var(--gray-text); }
.section-howto-page .step-num        { color: rgba(18,87,168,0.25); }
.section-howto-page .step-divider    { background: rgba(11,47,102,0.1); }

/* --- LUIS VIDEO (seção como funciona) --------------------- */
.section-howto-with-luis {
  /* texto à esquerda, Luis à direita */
  padding-right: 5vw;
}

.section-howto-with-luis .section-inner {
  max-width: 40vw;
}

.luis-video-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  overflow: hidden;
}

.luis-video {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  /* Vinheta premium nas bordas */
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%),
              linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: destination-in;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Quando o vídeo carrega/existe, revelar */
.luis-video.loaded { opacity: 1; }

/* Placeholder quando não há vídeo */
.luis-video-wrap:not(:has(.luis-video.loaded))::before {
  content: '';
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: linear-gradient(160deg, rgba(18,87,168,0.15) 0%, rgba(7,27,58,0.8) 100%);
  border-radius: 4px;
  border: 1px solid rgba(53,183,255,0.1);
}

.luis-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(53,183,255,0.6);
}

/* --- STATS BACKGROUND VIDEO -------------------------------- */
.stats-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.35;
}

/* --- RESULTADO LAYOUT COM LUIS ----------------------------- */
.resultado-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1100px;
}

.resultado-luis-wrap {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.resultado-luis-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 4px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 90%, transparent 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.resultado-luis-video.loaded { opacity: 1; }

/* Placeholder quando não há vídeo */
.resultado-luis-wrap:not(:has(.resultado-luis-video.loaded)) .resultado-luis-video {
  display: none;
}

.resultado-luis-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(53,183,255,0.55);
}

/* --- FOOTER ----------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 10;
  background: #040e1e;
  padding: 5rem 5vw 3rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white-soft);
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(247,249,252,0.35);
  line-height: 1.7;
  max-width: 36ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(247,249,252,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white-soft); }

.footer-disclaimer {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(247,249,252,0.2);
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
}

/* --- DECORATIVE LINES ------------------------------------- */
.section-inner::after {
  content: '';
  position: absolute;
  left: -5vw;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(18,87,168,0.2) 30%, rgba(18,87,168,0.2) 70%, transparent);
  pointer-events: none;
}

.align-right .section-inner::after {
  left: auto;
  right: -5vw;
}

/* ============================================================
   MOBILE — < 768px
   ============================================================ */
@media (max-width: 768px) {

  .hero-partner-logo { display: none; }

  .header-links,
  .btn-header-cta { display: none; }

  .mobile-menu-toggle { display: flex; }

  .mobile-menu.open { display: flex; }

  .site-header.menu-open { background: rgba(7,27,58,0.98); }

  .hero-inner { max-width: 100%; padding-top: 80px; }

  .hero-heading { font-size: clamp(1.4rem, 5.5vw, 2rem); max-width: 100%; }
  .hero-inner { max-width: 100%; }

  .hero-tagline { font-size: 0.87rem; }

  .hero-cta-group { flex-direction: column; align-items: flex-start; }

  #scroll-container { height: 1100vh; }

  /* On mobile, collapse side alignment */
  .align-left,
  .align-right {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
  }

  .section-inner::after { display: none; }

  /* Sem glassmorphism — texto direto no fundo escuro (skill: no cards on canvas) */

  .section-heading { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .section-subheading { font-size: clamp(1.4rem, 5.5vw, 2rem); }

  .marquee-text { font-size: clamp(5rem, 18vw, 10rem); }

  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.07); }
  .stat:first-child { border-top: none; }

  .resultado-body { grid-template-columns: 1fr; gap: 2rem; }

  .cta-final-inner { max-width: 100%; }
  .cta-final-heading { font-size: clamp(2rem, 8vw, 3rem); }

  .section-form-wrap { padding: 5rem 5vw; }

  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .btn-form-submit { width: 100%; }
  .resultado-ctas { flex-direction: column; }

  .howto-steps { gap: 0; }

  /* Luis e vídeos em mobile */
  .luis-video-wrap { display: none; }
  .section-howto-with-luis { padding-right: 5vw; }
  .section-howto-with-luis .section-inner { max-width: 100%; }

  /* Como funciona mobile */
  .howto-page-inner { grid-template-columns: 1fr; }
  .howto-page-heading { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .resultado-layout { grid-template-columns: 1fr; gap: 0; }
  .resultado-luis-wrap { display: none; }

  .stats-bg-video { opacity: 0.18; }

  .footer-inner { flex-direction: column; gap: 2rem; }
}

/* --- UTILITY ---------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Smooth anchor scroll */
html { scroll-behavior: smooth; }
