/* =====================================================================
   Home pública — reskin (ADR-037). Hero + seções (benefícios, transportadoras,
   depoimentos, CTA) + calculadora do hero. Escopado sob .ds.
   A casca reutilizável (header/nav/footer/container) mora em reskin-shell.css.
   Usa os componentes/tokens do Design System (design-system*.css).
   ===================================================================== */

/* ---------- Hero ---------- */
.ds .hero { background: linear-gradient(180deg, var(--color-purple-50) 0%, var(--color-bg) 70%); padding: 64px 0 72px; overflow: hidden; }
.ds .hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ds .hero h1 { font-size: var(--fs-display); line-height: 1.08; letter-spacing: var(--tracking-display); margin: 16px 0; }
.ds .hero__lead { font-size: var(--fs-h3); color: var(--color-text-muted); line-height: 1.5; margin-bottom: 24px; max-width: 34ch; }
.ds .hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.ds .hero__kpis { display: flex; gap: 28px; flex-wrap: wrap; }
.ds .hero__kpis .kpi strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--color-purple-700); }
.ds .hero__kpis .kpi span { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---------- Calculadora (card do hero) ---------- */
.ds .calc { box-shadow: var(--shadow-lg); border: 1px solid #EEE5F5; }
.ds .calc__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ds .calc__live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--color-success); font-weight: 600; }
.ds .calc__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 0 rgba(24,165,88,.5); animation: ds-pulse 1.8s infinite; }
@keyframes ds-pulse { 0% { box-shadow: 0 0 0 0 rgba(24,165,88,.5); } 70% { box-shadow: 0 0 0 8px rgba(24,165,88,0); } 100% { box-shadow: 0 0 0 0 rgba(24,165,88,0); } }
.ds .calc__row { display: flex; gap: 10px; }
.ds .calc__row .field { flex: 1; }
.ds .calc__result { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-top: 10px; }
.ds .calc__result > span:first-child { display: flex; align-items: center; gap: 8px; } /* alinha logo + meta */
.ds .calc__meta { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.ds .calc__result .price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.ds .calc__result--best { border: 2px solid var(--color-accent); background: #FFFAF0; }

@media (prefers-reduced-motion: reduce) { .ds .calc__live::before { animation: none; } }

/* ---------- Seções (H-2) ---------- */
.ds .section { padding: 64px 0; }
.ds .section--soft { background: var(--color-bg-soft); }
.ds .section__head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.ds .section__head h2 { margin-bottom: 10px; }
.ds .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.ds .feature .mark, .ds .benefit .mark { margin-bottom: 14px; }
.ds .feature h3, .ds .benefit h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.ds .feature p, .ds .benefit p { color: var(--color-text-muted); margin: 0; }

/* Depoimentos */
.ds .testimonial .quote { font-size: var(--fs-body); }
.ds .testimonial .who { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.ds .testimonial .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-purple-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.ds .testimonial .who b { display: block; font-size: var(--fs-sm); }
.ds .testimonial .who span { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---------- Transportadoras / plataformas (logos) ---------- */
.ds .carriers { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
/* Cada logo num CARD uniforme (mesma altura visual, independentemente da dimensão do arquivo —
   os PNGs/JPGs vêm em tamanhos variados). Sem isto o logo renderizava no tamanho intrínseco. */
.ds .carriers .carrier { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 162px; height: 80px; padding: 12px 18px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; }
.ds .carriers .carrier img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 520px) { .ds .carriers .carrier { width: calc(50% - 7px); height: 72px; } }
/* Em breve: logo em grayscale + selo. O selo fica FORA do filtro (filtro só na img). */
.ds .carrier--soon img { filter: grayscale(1); opacity: .5; }
.ds .carrier__txt { display: none; font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-muted); }
.ds .carrier--noimg .carrier__txt { display: inline; }           /* fallback quando a imagem ainda não existe */
.ds .carrier--soon.carrier--noimg img { display: none; }
.ds .carrier__soon { position: absolute; top: -8px; right: -8px; background: var(--color-purple-700); color: #fff; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; }

/* CTA final */
.ds .cta-band { position: relative; overflow: hidden; background: var(--color-purple-700); border-radius: var(--radius-2xl); padding: 56px 32px; text-align: center; color: #fff; }
.ds .cta-band h2 { color: #fff; }
.ds .cta-band p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 24px; }
.ds .cta-band .hex-watermark { height: 320px; right: -60px; bottom: -120px; opacity: .12; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .ds .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .ds .grid-3 { grid-template-columns: 1fr; }
}
