/* =====================================================
   Comércio Cred — Landing page
   Paleta extraída da logo
   ===================================================== */
:root {
  --cream: #F3EBDF;
  --cream-2: #EAE0D1;
  --white: #FFFCF7;
  --green: #1E4D3A;
  --green-deep: #153A2B;
  --green-soft: #DCE8E0;
  --orange: #E5713A;
  --orange-dark: #C95C27;
  --orange-soft: #FBE3D6;
  --ink: #1B2A23;
  --muted: #5C6B63;
  --line: rgba(30, 77, 58, 0.14);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(27, 42, 35, 0.08);
  --shadow-lg: 0 24px 60px rgba(27, 42, 35, 0.16);
  --container: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}
.container--narrow { --container: 820px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; color: var(--green); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: #F4B08A; }

.hl { color: var(--orange); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(229, 113, 58, 0.3);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(229, 113, 58, 0.38); }
.btn--ghost { border-color: var(--line); color: var(--green); background: transparent; }
.btn--ghost:hover { border-color: var(--green); background: rgba(30, 77, 58, 0.05); }
.btn--light { background: var(--cream); color: var(--green); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 235, 223, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(27, 42, 35, 0.05); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand__logo { height: 56px; width: auto; }
.nav { display: flex; gap: 1.8rem; font-weight: 600; font-size: 0.95rem; color: var(--green); }
.nav a { position: relative; padding: 0.25rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.2s;
}
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.5rem, 7vw, 7rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at center, rgba(229, 113, 58, 0.14), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.2rem);
  margin-bottom: 1.25rem;
}
.hero__lead {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-weight: 600; font-size: 0.92rem; color: var(--green); }
.hero__trust li { display: flex; align-items: center; gap: 0.45rem; }
.ico--check {
  width: 1.3rem; height: 1.3rem; padding: 0.22rem;
  border-radius: 50%; background: var(--green-soft); color: var(--green);
}

/* Cartões do hero */
.hero__visual { position: relative; }
.card-stack { position: relative; max-width: 440px; margin-left: auto; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(30, 77, 58, 0.06);
}
.card--main { padding: 1.6rem; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.card__label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.chip {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 0.3rem 0.7rem;
}
.card__amount small { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.card__amount strong { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--green); line-height: 1.1; }
.card__rows { margin: 1.4rem 0; display: grid; gap: 0.55rem; }
.card__row {
  display: flex; justify-content: space-between; font-size: 0.9rem;
  padding-bottom: 0.55rem; border-bottom: 1px dashed var(--line);
}
.card__row span { color: var(--muted); }
.card__row b { color: var(--ink); font-weight: 700; }
.card__bars { display: flex; align-items: flex-end; gap: 0.45rem; height: 70px; }
.card__bars i {
  flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px;
  background: var(--green-soft);
  animation: grow 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.card__bars i:nth-child(2){animation-delay:.05s}.card__bars i:nth-child(3){animation-delay:.1s}
.card__bars i:nth-child(4){animation-delay:.15s}.card__bars i:nth-child(5){animation-delay:.2s}
.card__bars i:nth-child(6){animation-delay:.25s}.card__bars i:nth-child(7){animation-delay:.3s}
.card__bars i.is-accent { background: var(--orange); }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.card--float {
  position: absolute;
  left: -3.5rem; bottom: -2.6rem;
  width: min(300px, 90%);
  padding: 1rem 1.1rem;
  display: flex; gap: 0.75rem; align-items: flex-start;
  animation: float 5s ease-in-out infinite;
}
.card--wa b { display: block; font-size: 0.85rem; color: var(--green); margin-bottom: 0.2rem; }
.card--wa p { font-size: 0.84rem; color: var(--muted); line-height: 1.45; }
.card--wa__dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 0.35rem;
  background: #25D366; box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Seções ---------- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--soft { background: var(--cream-2); }
.section--dark { background: var(--green); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head p { color: var(--muted); margin-top: 0.9rem; font-size: 1.05rem; }
.section__head--light p { color: rgba(243, 235, 223, 0.78); }
.section__cta { margin-top: 3rem; }

.grid { display: grid; gap: 1.25rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Para quem */
.tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid rgba(30, 77, 58, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange); margin-bottom: 1.1rem;
}
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { margin-bottom: 0.45rem; }
.tile p { color: var(--muted); font-size: 0.95rem; }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.step__num {
  display: inline-block;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--orange); margin-bottom: 1.2rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--orange);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: rgba(243, 235, 223, 0.78); font-size: 0.95rem; }

/* Vantagens */
.benefit {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(30, 77, 58, 0.07);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.benefit__ico {
  flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: var(--green); color: #fff;
}
.benefit h3 { margin-bottom: 0.35rem; }
.benefit p { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq__item {
  background: var(--white);
  border: 1px solid rgba(30, 77, 58, 0.08);
  border-radius: var(--radius-sm);
  padding: 0 1.3rem;
}
.faq__item summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--green);
  padding: 1.1rem 2.2rem 1.1rem 0; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange); font-weight: 800; transition: transform 0.2s;
}
.faq__item[open] summary::after { content: "–"; transform: translateY(-50%) rotate(0); }
.faq__item p { color: var(--muted); padding-bottom: 1.2rem; font-size: 0.97rem; }

/* CTA final */
.cta-final { padding-top: 0; }
.cta-final__box {
  background: var(--green);
  color: var(--cream);
  border-radius: 26px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.cta-final__box::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(229, 113, 58, 0.25); filter: blur(10px);
}
.cta-final__box h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin-bottom: 0.5rem; max-width: 20ch; }
.cta-final__box p { color: rgba(243, 235, 223, 0.8); }
.cta-final__box .btn { position: relative; z-index: 1; }

/* Footer */
.footer { background: var(--green-deep); color: rgba(243, 235, 223, 0.8); padding: 3.5rem 0 1.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__logo { height: 64px; width: auto; border-radius: 12px; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.93rem; max-width: 34ch; }
.footer__col { display: grid; gap: 0.5rem; align-content: start; font-size: 0.95rem; }
.footer__col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.footer__col a:hover { color: var(--orange); }
.footer__hours { font-size: 0.85rem; opacity: 0.7; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.5rem; font-size: 0.82rem; opacity: 0.7; }

/* Botão flutuante */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card--float, .card__bars i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 2rem; }
  .card-stack { margin: 0 auto; }
  .card--float { left: 0; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .header__inner { height: 68px; }
  .brand__logo { height: 48px; }
  .steps, .grid--2 { grid-template-columns: 1fr; }
  .cta-final__box { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__actions .btn { width: 100%; }
  .card--float { position: static; width: 100%; margin-top: 1rem; animation: none; }
}
@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .btn--sm { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
  .btn--sm .ico { display: none; }
  .wa-float { width: 54px; height: 54px; right: 1rem; bottom: 1rem; }
}
