/* ============================================================
   REAL CREDI — Layout das 10 seções (seção 5 do debriefing)
   Mobile-first: base = 360px+, breakpoints 720px e 1024px.
   ============================================================ */

/* =========================
   S1 — HERO
   ========================= */
.hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: var(--section-pad);
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(169, 217, 201, .35) 0%, transparent 70%),
    radial-gradient(45% 40% at 5% 85%, rgba(234, 246, 241, .9) 0%, transparent 70%),
    var(--white);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__content { text-align: center; }

.hero__badge { margin-bottom: 22px; }

.hero h1 { margin-bottom: 18px; }

.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: word-in .6s var(--ease-brand) forwards;
}

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 520px;
  margin: 0 auto 30px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 40px;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-500);
}

.hero__trust svg { width: 17px; height: 17px; color: var(--green-500); flex-shrink: 0; }

/* Visual do hero */
.hero__visual {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}

/* [FOTO_HERO]: substituir a arte SVG por foto real (pessoa sorrindo com
   celular/conta de luz) mantendo .hero__photo como wrapper. */
.hero__photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--grad-brand);
  aspect-ratio: 4 / 4.6;
  position: relative;
}

.hero__photo svg,
.hero__photo img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Card flutuante "Pix recebido" */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lift);
  animation: float-loop 4s ease-in-out infinite;
}

.float-card--pix {
  bottom: 34px;
  left: -12px;
}

.float-card--approved {
  top: 30px;
  right: -10px;
  animation-delay: 2s;
}

.float-card .icon-circle { width: 42px; height: 42px; }

.float-card__label { font-size: .75rem; color: var(--ink-500); line-height: 1.3; }

.float-card__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--green-700);
  line-height: 1.3;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero__content { text-align: left; }
  .hero__sub { margin-inline: 0; }
  .hero__ctas { flex-direction: row; justify-content: flex-start; }
  .hero__trust { justify-content: flex-start; }
}

/* =========================
   S2 — BARRA DE CONFIANÇA
   ========================= */
.trustbar {
  background: var(--mint-050);
  padding-block: clamp(40px, 6vw, 64px);
}

.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
  text-align: center;
}

.trustbar__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: var(--green-700);
}

.trustbar__label {
  font-size: .88rem;
  color: var(--ink-500);
  margin-top: 4px;
}

@media (min-width: 720px) {
  .trustbar__grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================
   S3 — COMO FUNCIONA
   ========================= */
.steps {
  position: relative;
}

.steps__grid {
  display: grid;
  gap: 20px;
  position: relative;
}

/* Linha SVG conectora animada */
.steps__line {
  display: none;
  position: absolute;
  top: 56px;
  left: 8%;
  width: 84%;
  height: 4px;
  z-index: 0;
  pointer-events: none;
}

.steps__line path {
  stroke: url(#lineGrad);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill: none;
}

.step-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--mint-200);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--dur-micro) var(--ease-brand), box-shadow var(--dur-micro) var(--ease-brand);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.step-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}

.step-card .icon-circle { margin: 0 auto 16px; }

.step-card h3 { margin-bottom: 8px; }

.step-card p { font-size: .92rem; }

@media (min-width: 900px) {
  .steps__grid { grid-template-columns: repeat(4, 1fr); }
  .steps__line { display: block; }
}

/* Parágrafo-resposta GEO */
.geo-answer {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 22px 28px;
  background: var(--mint-050);
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-size: .98rem;
  color: var(--ink-900);
}

/* =========================
   S4 — SIMULADOR
   ========================= */
.simulator-section {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(169, 217, 201, .25) 0%, transparent 70%),
    var(--white);
}

.simulator {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
}

.simulator__field { margin-bottom: 28px; }

.simulator__field > label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: .95rem;
  color: var(--green-900);
  margin-bottom: 14px;
}

.simulator__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--green-700);
}

.simulator__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--ink-500);
  margin-top: 8px;
}

.simulator__row {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .simulator__row { grid-template-columns: 1fr 1fr; }
}

.simulator__result {
  background: var(--mint-050);
  border-radius: 18px;
  padding: 24px 28px;
  text-align: center;
  margin-bottom: 24px;
}

.simulator__result-label { font-size: .88rem; color: var(--ink-500); }

.simulator__result-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--green-700);
  line-height: 1.2;
}

.simulator__result-sub { font-size: .82rem; color: var(--ink-500); }

.simulator__disclaimer {
  font-size: .78rem;
  color: var(--ink-500);
  text-align: center;
  margin-top: 18px;
}

.simulator__cta-wrap { text-align: center; }

.simulator__cta-wrap .btn { width: 100%; }

@media (min-width: 720px) {
  .simulator__cta-wrap .btn { width: auto; }
}

/* =========================
   S5 — BENEFÍCIOS
   ========================= */
.benefits__grid {
  display: grid;
  gap: 20px;
}

.benefit-card {
  background: var(--mint-050);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  border: 2px solid transparent;
  transition: box-shadow var(--dur-micro) var(--ease-brand), border-color var(--dur-micro) var(--ease-brand);
  transform-style: preserve-3d;
  will-change: transform;
}

.benefit-card:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--green-300);
  background: var(--white);
}

.benefit-card .icon-circle {
  background: var(--white);
  margin-bottom: 18px;
  transition: transform var(--dur-micro) var(--ease-brand);
}

.benefit-card:hover .icon-circle { animation: icon-bounce .5s var(--ease-brand); }

.benefit-card h3 { margin-bottom: 8px; }

.benefit-card p { font-size: .92rem; }

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

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

.benefits__cta {
  text-align: center;
  margin-top: 48px;
}

/* =========================
   S6 — QUEM SOMOS
   ========================= */
.about {
  background: var(--mint-050);
}

.about__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about__photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 3 / 4;
  background: var(--grad-brand);
  clip-path: inset(0 round var(--radius-card));
}

.about__photo svg { width: 100%; height: 100%; }

.slideshow { position: relative; width: 100%; height: 100%; }

.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s var(--ease-brand);
}

.slideshow__slide.active { opacity: 1; }

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  gap: 8px;
}

.slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  padding: 0;
  transition: background var(--dur-micro) var(--ease-brand), transform var(--dur-micro) var(--ease-brand);
}

.slideshow__dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.about__content h2 { margin-bottom: 16px; }

.about__content p { margin-bottom: 14px; }

.about__quote {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--green-900);
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 28px 22px 56px;
  margin: 24px 0;
  box-shadow: var(--shadow-soft);
}

.about__quote::before {
  content: '\201C';
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--red-600);
  line-height: 1;
}

.about__quote cite {
  display: block;
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 500;
  font-size: .85rem;
  color: var(--ink-500);
  margin-top: 10px;
}

.about__seals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.about__seals .badge-glass {
  background: var(--white);
  border-color: var(--mint-200);
}

@media (min-width: 720px) {
  .about__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
}

/* =========================
   S7 — DEPOIMENTOS (MARQUEE)
   ========================= */
.testimonials { overflow: hidden; }

.marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-block: 10px;
  animation: marquee-left 46s linear infinite;
}

.marquee--reverse { animation: marquee-right 52s linear infinite; }

.marquee-wrap:hover .marquee,
.marquee-wrap:focus-within .marquee { animation-play-state: paused; }

.marquee-wrap {
  position: relative;
  margin-bottom: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Mobile: swipe nativo em vez de marquee */
@media (max-width: 719px) {
  .marquee-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee, .marquee--reverse { animation: none; }
  .marquee > * { scroll-snap-align: center; }
  /* Esconde apenas os cards clonados (filhos diretos), não elementos
     decorativos internos que também usam aria-hidden */
  .marquee > [aria-hidden="true"] { display: none; }
}

.t-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--mint-200);
  border-radius: var(--radius-card);
  padding: 24px;
}

.t-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* [FOTO_DEPOIMENTO]: substituir iniciais por fotos reais */
.t-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}

.t-card__name { font-weight: 600; color: var(--green-900); font-size: .95rem; }

.t-card__city { font-size: .8rem; color: var(--ink-500); }

.t-card__stars { display: flex; gap: 2px; margin-bottom: 10px; }

.t-card__stars svg { width: 15px; height: 15px; color: #F5A623; fill: #F5A623; }

.t-card__text { font-size: .9rem; margin-bottom: 12px; }

.t-card__amount {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  color: var(--green-700);
  background: var(--mint-050);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}

/* =========================
   S8 — REQUISITOS E COBERTURA
   ========================= */
.requirements__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .requirements__grid { grid-template-columns: 1fr 1fr; }
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--mint-200);
}

.req-list li:last-child { border-bottom: none; }

.req-check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.req-check circle {
  stroke: var(--green-300);
  stroke-width: 1.5;
  fill: var(--mint-050);
}

.req-check path {
  stroke: var(--green-700);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}

.in .req-check path {
  animation: check-draw .6s var(--ease-brand) forwards;
  animation-delay: calc(var(--i, 0) * 150ms + 300ms);
}

.req-list strong { color: var(--green-900); display: block; font-size: .98rem; }

.req-list span { font-size: .88rem; color: var(--ink-500); }

.coverage__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.coverage__note {
  font-size: .88rem;
  background: var(--red-050);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--ink-900);
}

.coverage__note a { font-weight: 600; color: var(--red-600); }

/* =========================
   S9 — FAQ
   ========================= */
.faq { background: var(--mint-050); }

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

/* =========================
   S10 — CTA FINAL + FOOTER
   ========================= */
.final-cta {
  position: relative;
  /* Variante escura do gradiente assinatura: garante AA do texto branco */
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-500) 100%);
  border-radius: var(--radius-card);
  padding: clamp(48px, 8vw, 88px) clamp(24px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}

.final-cta h2 {
  color: var(--white);
  max-width: 620px;
  margin: 0 auto 16px;
}

.final-cta p {
  color: rgba(255, 255, 255, .85);
  max-width: 480px;
  margin: 0 auto 32px;
}

.final-cta__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.final-cta__ctas .btn--primary {
  background: var(--white);
  color: var(--red-600);
  box-shadow: 0 12px 36px rgba(6, 71, 55, .3);
}

.final-cta__ctas .btn--primary:hover {
  background: var(--red-050);
  transform: translateY(-2px);
}

.final-cta .cta-note { color: rgba(255, 255, 255, .8); justify-content: center; }

.final-cta .cta-note svg { color: var(--white); }

@media (min-width: 720px) {
  .final-cta__ctas { flex-direction: row; justify-content: center; }
}

/* Footer */
.footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, .75);
  padding: clamp(56px, 8vw, 80px) 0 0;
  margin-top: var(--section-pad);
}

.footer a { color: rgba(255, 255, 255, .85); transition: color var(--dur-micro); }

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

.footer__grid {
  display: grid;
  gap: 36px;
  padding-bottom: 44px;
}

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}

/* [LOGO_BRANCA]: substituir pelo arquivo do logo em versão branca */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__logo svg { width: 42px; height: 42px; }

.footer__about { font-size: .88rem; max-width: 380px; }

.footer h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 16px;
}

.footer__links li { margin-bottom: 10px; font-size: .9rem; }

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .9rem;
}

.footer__contact svg { width: 17px; height: 17px; color: var(--green-300); flex-shrink: 0; margin-top: 4px; }

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: background var(--dur-micro) var(--ease-brand);
}

.footer__social a:hover { background: var(--green-500); }

.footer__social svg { width: 18px; height: 18px; }

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 26px 0 32px;
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
}

.footer__legal p.footer__credits {
  margin-top: 14px;
  font-size: .72rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .32);
}

.footer__credits a { color: rgba(255, 255, 255, .48); }

.footer__credits a:hover { color: rgba(255, 255, 255, .8); }

/* =========================
   PÁGINAS LEGAIS (Política de Privacidade / Termos de Uso)
   ========================= */
.legal-hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 24px;
  background: var(--mint-050);
  text-align: center;
}

.legal-hero .eyebrow { margin-bottom: 16px; }

.legal-hero p { max-width: 640px; margin: 14px auto 0; }

.legal-content {
  max-width: 760px;
  margin-inline: auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content p { margin-bottom: 16px; }

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-500);
}

.legal-content li { margin-bottom: 8px; }

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-content strong { color: var(--ink-900); }

.legal-content .legal-updated {
  display: inline-block;
  font-size: .85rem;
  color: var(--green-700);
  background: var(--white);
  border: 1px solid var(--mint-200);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-bottom: 36px;
}

.footer__legal p { color: inherit; margin-bottom: 10px; }
