/* =========================================
   DESIGN SYSTEM — Summit Vision Group
   Página de Captura: Sessão Raio-X
   ========================================= */

:root {
  /* Cores primárias */
  --color-primary:        #5B7FA6;
  --color-primary-dark:   #3D5873;
  --color-primary-light:  #7BA3C8;
  --color-primary-xlight: #A8C4DC;
  --color-whatsapp:       #25D366;
  --color-whatsapp-dark:  #1DA851;

  /* Backgrounds */
  --bg-deep:    #0A0A0F;
  --bg-dark:    #0D1117;
  --bg-mid:     #111827;
  --bg-surface: #1A2235;

  /* Textos */
  --text-primary:   #F4F1F4;
  --text-secondary: #A8B8CC;
  --text-muted:     #6B7A99;

  /* Bordas */
  --border-subtle:  rgba(91, 127, 166, 0.12);
  --border-default: rgba(91, 127, 166, 0.28);
  --border-strong:  rgba(91, 127, 166, 0.55);

  /* Gradientes */
  --gradient-hero:    linear-gradient(135deg, #0A0A0F 0%, #111E36 50%, #0A0A0F 100%);
  --gradient-card:    linear-gradient(145deg, rgba(26,34,53,0.7) 0%, rgba(13,17,23,0.85) 100%);
  --gradient-divider: linear-gradient(90deg, transparent, rgba(91,127,166,0.5), transparent);
  --gradient-primary: linear-gradient(135deg, #3D5873, #5B7FA6);

  /* Sombras e glow */
  --shadow-card:        0 4px 24px rgba(0,0,0,0.45);
  --shadow-card-hover:  0 8px 40px rgba(0,0,0,0.65);
  --glow-sm:  0 0 12px rgba(91,127,166,0.25);
  --glow-md:  0 0 28px rgba(91,127,166,0.4);
  --glow-lg:  0 0 48px rgba(91,127,166,0.5);
  --glow-btn: 0 0 32px rgba(91,127,166,0.55), 0 4px 20px rgba(0,0,0,0.5);
  --glow-wa:  0 0 32px rgba(37,211,102,0.45), 0 4px 20px rgba(0,0,0,0.4);

  /* Tipografia */
  --font: 'Poppins', sans-serif;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    900;

  /* Escala de tamanhos */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Espaçamento */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s7:  1.75rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;
  --s32: 8rem;

  /* Bordas arredondadas */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Transições */
  --t-fast: all 0.15s ease-out;
  --t-base: all 0.3s ease-out;
  --t-slow: all 0.5s ease-out;

  --container: 1160px;
}

/* =========================================
   RESET
   ========================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

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

/* =========================================
   LAYOUT
   ========================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s6);
}

@media (min-width: 768px)  { .container { padding-inline: var(--s10); } }
@media (min-width: 1024px) { .container { padding-inline: var(--s12); } }

section { padding-block: var(--s16); }
@media (min-width: 768px) { section { padding-block: var(--s24); } }

.divider {
  height: 1px;
  background: var(--gradient-divider);
  margin-block: var(--s2);
}

/* =========================================
   ANIMAÇÕES DE ENTRADA (scroll)
   ========================================= */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* =========================================
   LOGO (topo)
   ========================================= */

.page-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0 var(--s2);
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font);
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}

.logo-bold   { font-weight: var(--fw-black); color: var(--text-primary); }
.logo-light  { font-weight: var(--fw-regular); color: var(--color-primary-light); font-size: var(--text-lg); }

/* =========================================
   S1 — HERO
   ========================================= */

#hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gradient-hero);
  padding-block: var(--s10) var(--s16);
  position: relative;
  overflow: hidden;
}

/* Grid de pontos */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91,127,166,0.14) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Orbe de luz ambiente */
#hero::after {
  content: '';
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,127,166,0.1) 0%, transparent 70%);
  top: 50%;
  right: -15%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

#hero .container { position: relative; z-index: 1; text-align: center; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--s6);
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-primary-light);
}

.hero-headline {
  font-size: var(--text-4xl);
  font-weight: var(--fw-black);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--s6);
}

.hero-headline em {
  font-style: normal;
  color: var(--color-primary-light);
}

@media (min-width: 768px)  { .hero-headline { font-size: var(--text-5xl); } }
@media (min-width: 1024px) { .hero-headline { font-size: var(--text-6xl); } }

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--s10);
}

@media (min-width: 768px) { .hero-sub { font-size: var(--text-xl); } }

/* =========================================
   BOTÕES
   ========================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: #ffffff;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: var(--s4) var(--s8);
  border-radius: var(--radius-full);
  transition: var(--t-base);
  white-space: nowrap;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  box-shadow: var(--glow-btn);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: #ffffff;
  background: var(--gradient-primary);
  border: 2px solid transparent;
  padding: var(--s5) var(--s10);
  border-radius: var(--radius-full);
  transition: var(--t-base);
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(91,127,166,0.3);
}

.btn-whatsapp:hover, .btn-whatsapp:focus {
  background: linear-gradient(135deg, #5B7FA6, #7BA3C8);
  box-shadow: var(--glow-btn);
  transform: translateY(-2px);
}

.btn-whatsapp svg { flex-shrink: 0; }

/* =========================================
   S2 — SINTOMAS
   ========================================= */

#sintomas {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: var(--s12);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--s4);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--text-primary);
  max-width: 640px;
  margin-inline: auto;
}

@media (min-width: 768px) { .section-title { font-size: var(--text-3xl); } }

.sintomas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}

@media (min-width: 640px)  { .sintomas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sintomas-grid { gap: var(--s6); } }

.sintoma-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--s8);
  backdrop-filter: blur(8px);
  transition: var(--t-base);
}

.sintoma-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-sm), var(--shadow-card-hover);
  transform: translateY(-3px);
}

.sintoma-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91,127,166,0.12);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: var(--s5);
  color: var(--color-primary-light);
}

.sintoma-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--s3);
}

.sintoma-desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-secondary);
}

/* =========================================
   S3 — QUALIFICAÇÃO SCHWARTZ
   ========================================= */

#qualificacao {
  background: var(--bg-deep);
  position: relative;
}

#qualificacao::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91,127,166,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

#qualificacao .container { position: relative; z-index: 1; }

.qualificacao-header {
  text-align: center;
  margin-bottom: var(--s10);
}

.qualificacao-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-top: var(--s3);
}

.schwartz-cards {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  max-width: 760px;
  margin-inline: auto;
}

.schwartz-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--s6) var(--s8);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: var(--t-base);
  text-decoration: none;
  color: inherit;
}

.schwartz-card:hover, .schwartz-card:focus {
  border-color: var(--color-primary);
  box-shadow: var(--glow-md), var(--shadow-card-hover);
  transform: translateX(6px);
  background: linear-gradient(145deg, rgba(91,127,166,0.12) 0%, rgba(13,17,23,0.9) 100%);
}

.schwartz-card-body {
  display: flex;
  align-items: center;
  gap: var(--s5);
  flex: 1;
}

.schwartz-level {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91,127,166,0.15);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--fw-black);
  color: var(--color-primary-light);
  letter-spacing: 0.05em;
}

.schwartz-text {
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--text-secondary);
  transition: var(--t-fast);
}

.schwartz-card:hover .schwartz-text { color: var(--text-primary); }

.schwartz-arrow {
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.5;
  transition: var(--t-base);
}

.schwartz-card:hover .schwartz-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* =========================================
   S4 — O QUE É O RAIO-X
   ========================================= */

#raiox {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.raiox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  margin-top: var(--s12);
}

@media (min-width: 768px) { .raiox-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s8); } }

.raiox-block {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s8);
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.raiox-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.raiox-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91,127,166,0.12);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--color-primary-light);
}

.raiox-block-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.3;
}

.raiox-block-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}

/* =========================================
   S5 — SOBRE GUSTAVO
   ========================================= */

#sobre {
  background: var(--bg-deep);
  text-align: center;
}

.sobre-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s10);
  max-width: 720px;
  margin-inline: auto;
}

.sobre-photo {
  width: 200px;
  height: 250px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-default);
  margin-inline: auto;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--glow-sm), var(--shadow-card);
  position: relative;
}

.sobre-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.sobre-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--s4);
}

.sobre-title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--s6);
  line-height: 1.25;
}

@media (min-width: 768px) { .sobre-title { font-size: var(--text-3xl); } }

.sobre-text {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-secondary);
}

.sobre-text + .sobre-text { margin-top: var(--s5); }

/* =========================================
   S6 — GARANTIA
   ========================================= */

#garantia {
  background: var(--bg-mid);
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--s12);
}

.garantia-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--s6);
  max-width: 720px;
  margin-inline: auto;
  padding: var(--s8) var(--s10);
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.garantia-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91,127,166,0.12);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--color-primary-light);
  margin-top: 2px;
}

.garantia-text {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
}

.garantia-text strong {
  color: var(--text-primary);
  font-style: normal;
  font-weight: var(--fw-semibold);
}

/* =========================================
   S7 — CTA FINAL
   ========================================= */

#cta-final {
  background: var(--gradient-hero);
  text-align: center;
  padding-block: var(--s20) var(--s16);
  position: relative;
  overflow: hidden;
}

#cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91,127,166,0.1) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

#cta-final .container { position: relative; z-index: 1; }

.cta-final-inner {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s6);
}

.cta-final-headline {
  font-size: var(--text-4xl);
  font-weight: var(--fw-black);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) { .cta-final-headline { font-size: var(--text-5xl); } }

.cta-final-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

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

footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--s8);
  text-align: center;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* =========================================
   HOME — HERO SPLIT (foto + texto)
   ========================================= */

.hero-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s10);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-home-grid {
    grid-template-columns: 1fr 300px;
    gap: var(--s16);
  }
}

@media (min-width: 768px) {
  #hero.hero-home .container { text-align: left; }
  #hero.hero-home .hero-headline,
  #hero.hero-home .hero-sub { margin-left: 0; margin-right: 0; }
}

.hero-photo-frame {
  width: 240px;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-default);
  overflow: hidden;
  box-shadow: var(--glow-md), var(--shadow-card);
}

.hero-photo-frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (min-width: 768px) {
  .hero-photo-frame { width: 300px; margin-inline: 0 0 0 auto; }
  .hero-photo-frame img { height: 380px; }
}

.hero-intro {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-top: var(--s5);
}

/* =========================================
   HOME — EPIFANIA
   ========================================= */

#epifania {
  background: var(--bg-mid);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.epifania-inner { max-width: 760px; margin-inline: auto; }

.epifania-content {
  margin-top: var(--s10);
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

.epifania-text {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
}

/* =========================================
   HOME — OPERAÇÃO (2×2 grid)
   ========================================= */

#operacao {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.operacao-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-top: var(--s12);
}

@media (min-width: 640px) {
  .operacao-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
}

/* =========================================
   HOME — PLANOS (pricing cards)
   ========================================= */

#planos {
  background: var(--bg-deep);
  position: relative;
}

#planos::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91,127,166,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

#planos .container { position: relative; z-index: 1; }

.planos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  margin-top: var(--s12);
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 768px) { .planos-grid { grid-template-columns: repeat(2, 1fr); } }

.plano-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--s8);
  position: relative;
  overflow: hidden;
  transition: var(--t-base);
  display: flex;
  flex-direction: column;
}

.plano-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.plano-card--destaque {
  border-color: var(--border-strong);
  box-shadow: var(--glow-sm), var(--shadow-card);
}

.plano-card--destaque::before { opacity: 1; }

.plano-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--glow-md), var(--shadow-card-hover);
  transform: translateY(-3px);
}

.plano-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: rgba(91,127,166,0.1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  margin-bottom: var(--s5);
}

.plano-name {
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
}

.plano-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--s6);
}

.plano-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: var(--s6);
}

.plano-price-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

.plano-price-entrada {
  font-size: var(--text-4xl);
  font-weight: var(--fw-black);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plano-price-currency {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  vertical-align: super;
  line-height: 1;
}

.plano-price-mensalidade {
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-top: var(--s3);
  margin-bottom: var(--s2);
}

.plano-price-obs {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--s6);
}

.plano-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-bottom: var(--s8);
  flex: 1;
}

.plano-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.plano-feature-icon {
  flex-shrink: 0;
  color: var(--color-primary-light);
  margin-top: 2px;
}

.plano-card .btn-whatsapp {
  width: 100%;
  justify-content: center;
  font-size: var(--text-base);
  padding: var(--s4) var(--s6);
  margin-top: auto;
}

/* =========================================
   MODAL DE QUALIFICAÇÃO
   ========================================= */

@keyframes overlayIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp    { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cardSlide  { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ── Mobile: bottom sheet ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,8,18,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
  animation: overlayIn 0.2s ease-out;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(170deg, #141e30 0%, #0c1120 100%);
  border: 1px solid rgba(91,127,166,0.3);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 24px);
  box-shadow: 0 -8px 48px rgba(0,0,0,0.65), 0 0 0 1px rgba(91,127,166,0.06);
  animation: sheetUp 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(91,127,166,0.2) transparent;
}

/* ── Desktop: painel centralizado ── */
@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: var(--s6);
  }
  .modal-card {
    width: 360px;
    max-height: 85vh;
    border: 1px solid rgba(91,127,166,0.35);
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(91,127,166,0.06), 0 16px 48px rgba(0,0,0,0.7), 0 0 40px rgba(91,127,166,0.07);
    animation: cardSlide 0.28s cubic-bezier(0.34,1.1,0.64,1);
    padding-bottom: var(--s5);
  }

  /* Comprime todos os espaçamentos internos no desktop */
  .modal-header       { padding: var(--s4) var(--s5) var(--s3); gap: var(--s3); }
  .modal-icon         { width: 30px; height: 30px; border-radius: 8px; }
  .modal-icon svg     { width: 16px; height: 16px; }
  .modal-title        { font-size: var(--text-sm); margin-bottom: 1px; }
  .modal-subtitle     { font-size: 11px; }
  .modal-divider      { margin: 0 var(--s5) var(--s4); }
  #lead-form          { padding: 0 var(--s5); }
  .form-row           { gap: var(--s2); margin-bottom: var(--s2); }
  .form-label         { font-size: 9px; }
  .form-input         { padding: 0.4rem var(--s3); font-size: var(--text-xs); border-radius: 8px; }
  .form-group--nivel  { margin-bottom: var(--s4); }
  .radio-group        { gap: var(--s1); margin-top: var(--s1); }
  .radio-box          { padding: 0.35rem var(--s3); gap: var(--s2); border-radius: 8px; }
  .radio-level        { width: 22px; height: 22px; font-size: 8px; }
  .radio-text         { font-size: 11px; line-height: 1.35; }
  .radio-check        { width: 14px; height: 14px; }
  .radio-check svg    { width: 10px; height: 10px; }
  .btn-form-submit    { padding: var(--s3) var(--s6); font-size: var(--text-xs); }
  .modal-close        { top: var(--s3); right: var(--s3); width: 26px; height: 26px; }
}

/* Handle bar — mobile only */
.modal-card::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  margin: var(--s3) auto var(--s1);
}

@media (min-width: 640px) { .modal-card::before { display: none; } }

/* Linha de acento */
.modal-accent-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #5B7FA6 35%, #7BA3C8 65%, transparent 100%);
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .modal-accent-bar { border-radius: 18px 18px 0 0; }
}

/* Botão fechar */
.modal-close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  transition: var(--t-fast);
  z-index: 2;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
  border-color: var(--border-default);
}

/* Header */
.modal-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s5) var(--s6) var(--s4);
}

.modal-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91,127,166,0.12);
  border: 1px solid rgba(91,127,166,0.28);
  border-radius: var(--radius-md);
  color: var(--color-primary-light);
}

.modal-title {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) { .modal-title { font-size: var(--text-lg); } }

.modal-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,127,166,0.18) 20%, rgba(91,127,166,0.18) 80%, transparent);
  margin: 0 var(--s6) var(--s5);
}

/* Form */
#lead-form { padding: 0 var(--s6); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.form-group--nivel { margin-bottom: var(--s5); }

.form-label {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(91,127,166,0.18);
  border-radius: var(--radius-md);
  padding: 0.55rem var(--s4);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  appearance: none;
  width: 100%;
}

.form-input::placeholder { color: rgba(107,122,153,0.6); }
.form-input:hover:not(:focus) { border-color: rgba(91,127,166,0.3); }
.form-input:focus {
  border-color: var(--color-primary);
  background: rgba(91,127,166,0.06);
  box-shadow: 0 0 0 3px rgba(91,127,166,0.15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%236B7A99' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: var(--s8);
  cursor: pointer;
}

.form-select option { background: #141e30; color: var(--text-primary); }

/* Radio options */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s2);
}

.radio-option { cursor: pointer; display: block; }
.radio-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.radio-box {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(91,127,166,0.12);
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.radio-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #5B7FA6, #7BA3C8);
  opacity: 0;
  transition: opacity 0.2s;
}

.radio-option:hover .radio-box {
  border-color: rgba(91,127,166,0.3);
  background: rgba(91,127,166,0.05);
}

.radio-option.selected .radio-box {
  border-color: rgba(91,127,166,0.5);
  background: rgba(91,127,166,0.1);
  box-shadow: 0 0 0 1px rgba(91,127,166,0.2), 0 0 20px rgba(91,127,166,0.08);
}

.radio-option.selected .radio-box::before { opacity: 1; }

.radio-level {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91,127,166,0.1);
  border: 1px solid rgba(91,127,166,0.25);
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: var(--fw-black);
  color: var(--color-primary-light);
  letter-spacing: 0.03em;
  transition: all 0.18s ease;
}

.radio-option.selected .radio-level {
  background: rgba(91,127,166,0.22);
  border-color: var(--color-primary);
  color: #fff;
}

.radio-text {
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--text-muted);
  flex: 1;
  transition: color 0.18s;
}

.radio-option.selected .radio-text { color: var(--text-primary); }

.radio-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.34,1.4,0.64,1);
}

.radio-option.selected .radio-check {
  opacity: 1;
  transform: scale(1);
}

/* Submit button */
.btn-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  width: 100%;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  padding: var(--s4) var(--s8);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(91,127,166,0.3);
  letter-spacing: 0.01em;
}

.btn-form-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #5B7FA6 0%, #7BA3C8 100%);
  box-shadow: var(--glow-btn);
  transform: translateY(-2px);
}

.btn-form-submit:active:not(:disabled) { transform: translateY(0); }

.btn-form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-form-submit svg { flex-shrink: 0; }

/* Estados de erro */
.form-input--error {
  border-color: #e05252 !important;
  background: rgba(224,82,82,0.05) !important;
  box-shadow: 0 0 0 3px rgba(224,82,82,0.12) !important;
}

.form-error {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: #e07070;
  margin-bottom: var(--s2);
}

/* =========================================
   TELA DE CONFIRMAÇÃO (pós-submit)
   ========================================= */

.confirm-header {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5) var(--s6) var(--s4);
}

.confirm-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(91,127,166,0.15);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary-light);
}

.confirm-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.confirm-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.confirm-steps {
  padding: 0 var(--s6) var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.confirm-step {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  padding: var(--s4);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(26,34,53,0.4);
}

.confirm-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.confirm-step--done .confirm-step-num {
  background: rgba(91,127,166,0.2);
  border-color: var(--color-primary-light);
}

.confirm-step-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--s1);
}

.confirm-step-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.6;
}

.btn-confirm-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: #25D366;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  padding: var(--s2) var(--s4);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-confirm-whatsapp:hover {
  background: #1DA851;
  transform: translateY(-1px);
}
