/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --navy-900: #0f2544;
  --navy-800: #16315c;
  --gold-500: #b99a5b;
  --gold-600: #a8843f;
  --ivory-100: #f8f4ec;
  --ivory-50:  #fdfcf9;
  --ink-900:   #262319;
  --ink-600:   #524d3f;
  --white:     #ffffff;
  --line:      rgba(15, 37, 68, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1120px;
  --max-width-narrow: 720px;
  --radius: 14px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--ivory-50);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--navy-900); }
p { margin: 0 0 1em; }
a { color: inherit; }
ol, ul { padding: 0; margin: 0; list-style: none; }
fieldset { border: none; padding: 0; margin: 0; }
legend { padding: 0; }

:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.section { padding: 64px 20px; }
.section--tint { background: var(--ivory-100); }
.section__inner { max-width: var(--max-width); margin: 0 auto; }
.section__inner--narrow { max-width: var(--max-width-narrow); }
.section__title { font-size: 1.7rem; max-width: 18ch; }
.section__lead { font-size: 1.1rem; max-width: 60ch; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  min-height: 52px;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--navy-900); color: var(--white); }
.btn--primary:hover { background: var(--navy-800); }
.btn--on-dark { background: var(--gold-500); color: var(--navy-900); }
.btn--on-dark:hover { background: var(--gold-600); }
.btn--ghost { background: transparent; color: var(--navy-900); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--navy-900); }

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  background: var(--ivory-50);
}
.topbar__logo { height: 34px; width: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--navy-900);
  padding: 48px 20px 40px;
}
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.hero__text { color: var(--white); text-align: center; max-width: 32ch; }
.hero__headline {
  color: var(--white);
  font-size: 2.1rem;
  margin-bottom: 20px;
}
.hero__sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  margin-bottom: 28px;
}
.hero__figure {
  width: 100%;
  max-width: 320px;
}
.hero__photo {
  border-radius: var(--radius);
  border: 1px solid rgba(185,154,91,0.5);
  width: 100%;
}

@media (min-width: 860px) {
  .hero { padding: 80px 40px; }
  .hero__inner { flex-direction: row; text-align: left; gap: 56px; }
  .hero__text { text-align: left; max-width: 40ch; }
  .hero__headline { font-size: 2.75rem; }
  .hero__figure { max-width: 360px; flex-shrink: 0; }
}

/* ==========================================================================
   Benefits (transformação)
   ========================================================================== */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 40px 0 40px;
}
.benefits__item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.benefits__item p { color: var(--ink-600); margin-bottom: 0; }
.benefits__icon { width: 40px; height: 40px; color: var(--gold-600); margin-bottom: 12px; }

@media (min-width: 700px) {
  .benefits { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}

/* ==========================================================================
   Video placeholder
   ========================================================================== */
.video-placeholder {
  background: var(--ivory-100);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-600);
  margin: 28px 0;
}
.video-placeholder svg { margin: 0 auto 12px; color: var(--navy-900); }

/* ==========================================================================
   About (Sobre o Dr. Nelyo)
   ========================================================================== */
.about__card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.about__photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-500);
}
.about__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0; color: var(--navy-900); }
.about__role, .about__cro { margin: 0; color: var(--ink-600); }

/* ==========================================================================
   Testimonial
   ========================================================================== */
.testimonial { margin: 32px 0; }
.testimonial__stars { color: var(--gold-600); letter-spacing: 2px; font-size: 1.2rem; margin-bottom: 12px; }
.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--navy-900);
  line-height: 1.4;
}
.testimonial__author { color: var(--ink-600); font-weight: 500; }

/* ==========================================================================
   Steps (como funciona o atendimento)
   ========================================================================== */
.steps { display: flex; flex-direction: column; gap: 24px; margin: 32px 0; }
.steps__item { display: flex; gap: 16px; align-items: flex-start; }
.steps__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps__item h3 { font-size: 1.05rem; margin-bottom: 2px; }
.steps__item p { color: var(--ink-600); margin-bottom: 0; }

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  align-items: center;
  font-weight: 600;
  color: var(--navy-900);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 32px;
}
.flow__arrow { color: var(--gold-600); }

/* ==========================================================================
   Form section
   ========================================================================== */
.form-section { background: var(--navy-900); }
.form-section .section__title { color: var(--white); }
.form-section p { color: rgba(255,255,255,0.8); }

.lead-form {
  background: var(--ivory-50);
  border-radius: var(--radius);
  padding: 28px 22px 32px;
  margin-top: 24px;
}
/* Especificidade maior que ".form-section p" para não herdar o texto branco da seção escura */
.form-section .lead-form p { color: var(--ink-900); }
.lead-form__progress {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.lead-form__progress-bar {
  display: block;
  height: 100%;
  width: 33.33%;
  background: var(--gold-500);
  transition: width 0.25s ease;
}
.lead-form__step-label { color: var(--ink-600); font-size: 0.9rem; margin-bottom: 20px; }

.lead-form__step { display: none; }
.lead-form__step.is-active { display: block; }
.lead-form__step legend {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 18px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--gold-500); }
.option input { width: 20px; height: 20px; accent-color: var(--navy-900); flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--navy-900); background: var(--ivory-100); }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 500; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.field input:focus { border-color: var(--navy-900); }

.lead-form__micro { font-size: 0.85rem; color: var(--ink-600); margin: 4px 0 20px; }
.lead-form__nav { display: flex; gap: 12px; margin-top: 8px; }
.lead-form__nav .btn { flex: 1; }
.lead-form__next { width: 100%; margin-top: 8px; }
.lead-form__status { margin-top: 16px; font-weight: 500; color: var(--navy-900); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
  color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.4rem;
  color: var(--gold-600);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--ink-600); }

/* ==========================================================================
   Chamada final
   ========================================================================== */
.cta-final {
  background: var(--navy-900);
  padding: 64px 20px;
  text-align: center;
}
.cta-final__title { color: var(--white); font-size: 1.7rem; max-width: 20ch; margin: 0 auto 16px; }
.cta-final p { color: rgba(255,255,255,0.8); max-width: 48ch; margin: 0 auto 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ivory-100); padding: 48px 20px 28px; font-size: 0.95rem; color: var(--ink-600); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.footer__name { font-family: var(--font-display); font-weight: 600; color: var(--navy-900); font-size: 1.1rem; margin-bottom: 2px; }
.footer__link { text-decoration: underline; text-decoration-color: var(--gold-500); }
.footer__legal { font-size: 0.82rem; }

@media (min-width: 700px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
