/* =========================================================
   CAPITALIZA BRASIL — Landing Page
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
  background: #F4F8F6;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #0E2A47;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Tokens ---------------------------------------------- */
:root {
  --green:        #15805E;
  --green-light:  #4FCB98;
  --green-pale:   #EAF7F1;
  --navy:         #0E2A47;
  --navy-dark:    #0A1F35;
  --sky:          #3C5878;
  --muted:        #4A5D70;
  --muted-light:  #8496A6;
  --border:       #D7E7E0;
  --bg:           #F4F8F6;
  --white:        #fff;
  --radius-lg:    20px;
  --radius-md:    16px;
  --shadow-sm:    0 8px 30px rgba(14, 42, 71, .06);
  --shadow-lg:    0 30px 70px rgba(14, 42, 71, .16);
}

/* --- Layout helpers -------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { scroll-margin-top: 80px; }

.section-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* Card base */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
}

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-block;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 28px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--green); color: var(--white); }
.btn--outline  { background: var(--white); border: 1px solid var(--border); color: var(--navy); padding: 15px 24px; font-weight: 600; }
.btn--white    { background: var(--white); color: var(--green); }
.btn--ghost    { border: 1.5px solid rgba(255,255,255,.5); color: var(--white); padding: 14.5px 26px; font-weight: 600; }

/* --- Top bar --------------------------------------------- */
.top-bar {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  text-align: center;
  padding: 10px 20px;
  font-weight: 500;
}

.top-bar a {
  color: var(--green-light);
  font-weight: 700;
}

/* --- Header ---------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 248, 246, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 42, 71, .06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo__text { line-height: 1.05; }

.logo__name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
}

.logo__name span { color: var(--green); }

.logo__tagline {
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--muted-light);
  margin-top: 2px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sky);
}

.nav a { transition: color .15s; }
.nav a:hover { color: var(--navy); }

.nav__cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13.5px;
  transition: opacity .15s !important;
}
.nav__cta:hover { opacity: .9; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* --- Hero ------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  top: -140px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, #C9EBDC 0%, rgba(201, 235, 220, 0) 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 84px;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

.hero__heading {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1.04;
  margin-bottom: 22px;
  letter-spacing: -.025em;
}

.hero__heading span { color: var(--green); }

.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 470px;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero__email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}

.hero__email-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.hero__email a { transition: color .15s; }
.hero__email a:hover { color: var(--green); }

/* Recovery panel */
.recovery-panel {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.recovery-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.recovery-panel__label {
  font-size: 12px;
  color: var(--muted-light);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.recovery-panel__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin-top: 4px;
}

.recovery-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-pale);
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  padding: 7px 12px;
  border-radius: 100px;
}

.recovery-panel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.recovery-panel__gauge-row {
  background: var(--bg);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.recovery-panel__donut {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 74%, #DCE7E2 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.recovery-panel__donut-inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.recovery-panel__donut-pct {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
}

.recovery-panel__donut-sub {
  font-size: 8.5px;
  color: var(--muted-light);
  letter-spacing: .08em;
}

.recovery-panel__amount { flex: 1; }

.recovery-panel__amount-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.recovery-panel__amount-value {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 24px;
}

.recovery-panel__amount-total {
  font-size: 12px;
  color: var(--muted-light);
  margin-top: 2px;
}

.recovery-panel__steps {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.recovery-panel__step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.recovery-panel__step--pending { color: var(--muted-light); }

.recovery-panel__step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: none;
}

.recovery-panel__step-icon--pending {
  background: #EEF2F5;
  color: var(--muted-light);
  font-size: 11px;
}

/* --- Stats ----------------------------------------------- */
.stats {
  padding: 0 0 8px;
}

.stats__grid {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.stats__item { text-align: center; }

.stats__number {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
}

.stats__number--green { color: var(--green); }

.stats__number span { font-size: 18px; }

.stats__label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* --- Services -------------------------------------------- */
.services {
  padding: 80px 0 30px;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.services__card { padding: 32px; }

.services__card--dark {
  background: var(--navy);
  color: var(--white);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__icon--dark {
  background: rgba(79, 203, 152, .2);
}

.icon-circle-outline {
  width: 20px;
  height: 20px;
  border: 3px solid var(--green);
  border-radius: 50%;
}

.icon-square {
  width: 20px;
  height: 20px;
  background: var(--green);
  border-radius: 5px;
}

.icon-donut {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(var(--green-light) 70%, rgba(255,255,255,.25) 0);
}

.card__title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.card__text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.card__text--muted { color: #A9BFD6; }

.card__features {
  font-size: 13px;
  color: var(--sky);
  line-height: 1.9;
}

.card__features--muted { color: #8FB0CF; }

/* --- Steps ----------------------------------------------- */
.steps { padding: 70px 0; }

.steps .section-intro {
  max-width: 600px;
}

.steps .section-title { font-size: 34px; }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps__card { padding: 28px; border-radius: 18px; }

.steps__num {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  background: var(--green);
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.steps__title {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.steps__text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Advantages ------------------------------------------ */
.advantages { padding: 60px 0; }

.advantages__heading {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.advantages__card { padding: 26px; border-radius: var(--radius-md); }

.advantages__bar {
  width: 32px;
  height: 2px;
  background: var(--green);
  margin-bottom: 14px;
}

.advantages__title {
  font-family: 'Sora', sans-serif;
  font-size: 15.5px;
  margin-bottom: 8px;
  font-weight: 700;
}

.advantages__text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Testimonials ---------------------------------------- */
.testimonials { padding: 20px 0 70px; }

.testimonials__box {
  background: var(--navy);
  border-radius: 24px;
  padding: 52px 44px;
  color: var(--white);
}

.testimonials__heading {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 30px;
  text-align: center;
  margin-bottom: 40px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonials__card {
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius-md);
  padding: 26px;
}

.testimonials__quote {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #E6EEF6;
}

.testimonials__author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.testimonials__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.testimonials__avatar--green { background: var(--green-light); color: var(--navy); }
.testimonials__avatar--white { background: var(--white); color: var(--navy); }
.testimonials__avatar--navy  { background: var(--sky); color: var(--white); }

.testimonials__name {
  font-weight: 700;
  font-size: 13.5px;
}

.testimonials__role {
  font-size: 12px;
  color: #A9BFD6;
}

/* --- FAQ ------------------------------------------------- */
.faq { padding: 0 0 70px; }

.faq__container {
  max-width: 820px;
}

.faq__heading {
  font-size: 30px;
  text-align: center;
  margin-bottom: 32px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--white);
  border-radius: 14px;
  padding: 20px 24px;
}

.faq__question {
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  font-family: 'Sora', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted-light);
  transition: transform .2s;
  flex: none;
}

details[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}

/* --- CTA ------------------------------------------------- */
.cta { padding: 0 0 64px; }

.cta__box {
  background: linear-gradient(135deg, #15805E, #0E6B4E);
  border-radius: 24px;
  padding: 60px 44px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta__bg-logo {
  position: absolute;
  right: -40px;
  bottom: -80px;
  opacity: .1;
  pointer-events: none;
}

.cta__content { position: relative; }

.cta__heading {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.cta__sub {
  font-size: 16px;
  color: #D6F0E5;
  max-width: 500px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer ---------------------------------------------- */
.footer {
  background: var(--navy-dark);
  color: #A9BFD6;
  padding: 56px 32px 36px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__logo span {
  font-family: 'Sora', sans-serif;
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
}

.footer__desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 300px;
}

.footer__email {
  color: var(--green-light);
  font-size: 13.5px;
  font-weight: 600;
  transition: opacity .15s;
}
.footer__email:hover { opacity: .8; }

.footer__col-title {
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
}

.footer__address {
  font-size: 13px;
  line-height: 1.7;
  font-style: normal;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 12px;
  color: #6B85A0;
}

.footer__bottom a {
  color: inherit;
  transition: color .15s;
}
.footer__bottom a:hover { color: #A9BFD6; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 56px;
    gap: 40px;
  }

  .hero__heading { font-size: 44px; }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .services__grid { grid-template-columns: 1fr; }

  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid { grid-template-columns: 1fr; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .header__inner { padding: 14px 20px; }

  .nav { display: none; }
  .nav.nav--open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    inset: 0;
    background: var(--bg);
    padding: 100px 32px 32px;
    gap: 20px;
    z-index: 40;
    font-size: 18px;
  }
  .nav--open .nav__cta {
    margin-top: 8px;
    font-size: 15px;
    padding: 13px 26px;
  }

  .nav-toggle { display: flex; }

  .nav-toggle.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.nav-toggle--open span:nth-child(2) { opacity: 0; }
  .nav-toggle.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__heading { font-size: 36px; }
  .hero__sub { font-size: 16px; }

  .stats__grid { grid-template-columns: 1fr 1fr; padding: 28px 20px; }
  .stats__number { font-size: 28px; }

  .section-title { font-size: 28px; }
  .services { padding: 60px 0 20px; }

  .steps__grid { grid-template-columns: 1fr; }

  .advantages__grid { grid-template-columns: 1fr; }

  .testimonials__box { padding: 36px 24px; }
  .testimonials__heading { font-size: 24px; }

  .cta__box { padding: 44px 24px; }
  .cta__heading { font-size: 26px; }

  .footer { padding: 48px 20px 28px; }
  .footer__grid { grid-template-columns: 1fr; }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}
