/* ==========================================================================
   SB2 Turbo App — Landing institucional
   Paleta: vermelho SB2 (#e80e0e) + branco + dark warm
   Tipografia: Inter (display + body)
   ========================================================================== */

:root {
  /* Cores */
  --color-bg:           #ffffff;
  --color-surface:      #fafaf7;
  --color-surface-2:    #f3f1eb;
  --color-text:         #111111;
  --color-text-muted:   #5b5b5b;
  --color-text-soft:    #888888;
  --color-red:          #e80e0e;
  --color-red-dark:     #b50808;
  --color-red-deep:     #7a0303;
  --color-amber:        #f59e0b;
  --color-amber-dark:   #d97706;
  --color-line:         rgba(0, 0, 0, 0.08);
  --color-line-soft:    rgba(0, 0, 0, 0.04);
  --color-whatsapp:     #25d366;
  --color-whatsapp-dk:  #1eb654;

  /* Tipografia */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 800px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* Sombras */
  --shadow-soft: 0 4px 24px rgba(15, 0, 0, .08);
  --shadow-card: 0 8px 28px rgba(15, 0, 0, .06);
  --shadow-red:  0 12px 32px rgba(232, 14, 14, .25);

  /* Animações */
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }

a {
  color: var(--color-red);
  text-decoration: none;
  transition: color .25s var(--ease);
}
a:hover { color: var(--color-red-dark); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.container-narrow { max-width: var(--container-narrow); }
@media (max-width: 480px) { .container { padding: 0 18px; } }

/* ============== Tipografia ============== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--color-text);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

h1 em, h2 em {
  font-style: normal;
  color: var(--color-red);
}

p { margin: 0 0 1em; color: var(--color-text-muted); }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: .8em;
}

.subtitle {
  max-width: 700px;
  margin: 0.6rem auto 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ============== Botões ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  transition: all .22s var(--ease);
  text-decoration: none;
  white-space: normal;
  line-height: 1.2;
}
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: white;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(232, 14, 14, .35);
  color: white;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-line);
}
.btn-ghost:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: white;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-dk);
  color: white;
  transform: translateY(-1px);
}

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand:hover { color: var(--color-text); }
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  color: var(--color-text);
  font-weight: 500;
  font-size: .95rem;
}
.nav-desktop a:hover { color: var(--color-red); }
.nav-desktop a.btn { padding: 9px 18px; }
.nav-desktop a.btn:hover { color: white; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: white;
  border-top: 1px solid var(--color-line);
}
.nav-mobile a {
  padding: 16px 24px;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-line-soft);
}
.nav-mobile a:hover { background: var(--color-surface); color: var(--color-red); }

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile[hidden] { display: none; }
  .nav-mobile { display: flex; }
}

/* ============== Hero ============== */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--color-surface) 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-inner > * { min-width: 0; }

.hero-text { max-width: 580px; }
.hero h1 { margin-bottom: 20px; }
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 16px;
}
.hero-note {
  font-size: .92rem;
  color: var(--color-text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img {
  max-width: 460px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

@media (max-width: 880px) {
  .hero { padding: 56px 0 40px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual { order: -1; }
  .hero-img { max-width: 280px; }
}

/* ============== Stats Bar ============== */
.stats-bar {
  background: var(--color-text);
  color: white;
  padding: 32px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-inner > * { min-width: 0; }
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat strong {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 4px;
}
.stat span {
  font-size: .85rem;
  opacity: .75;
  letter-spacing: .03em;
}
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
}

/* ============== Sections genérico ============== */
.section { padding: 80px 0; }
.section.how { background: var(--color-bg); }
.section.features { background: var(--color-surface); }
.section.ia { background: var(--color-bg); }
.section.linha { background: var(--color-surface); }
.section.mockups { background: var(--color-bg); }
.section.faq { background: var(--color-surface); }
@media (max-width: 600px) { .section { padding: 56px 0; } }

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.section-header .eyebrow { display: inline-block; }

/* ============== Como funciona ============== */
.how-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.how-grid > * { min-width: 0; }
.how-grid li {
  background: white;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-red);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.how-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.how-grid p { font-size: .92rem; margin: 0; }
@media (max-width: 880px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ============== Funcionalidades ============== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features-grid > * { min-width: 0; }
.feature {
  background: white;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(232, 14, 14, .2);
}
.feature-icon {
  display: inline-flex;
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { font-size: .9rem; margin: 0; line-height: 1.55; }
.feature em { color: var(--color-text); font-style: italic; font-weight: 500; }

@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ============== IA: free vs premium ============== */
.ia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.ia-grid > * { min-width: 0; }
.ia-card {
  background: white;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.ia-card h3 {
  font-size: 1.5rem;
  margin: 4px 0 20px;
}
.ia-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.ia-card li {
  padding: 8px 0;
  font-size: .96rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line-soft);
}
.ia-card li:last-child { border-bottom: none; }
.ia-card li strong { color: var(--color-text); }

.ia-free .btn { align-self: flex-start; }
.ia-premium {
  background: linear-gradient(135deg, #fff 0%, #fffaf3 100%);
  border: 2px solid var(--color-amber);
  position: relative;
  box-shadow: 0 16px 48px rgba(245, 158, 11, .12);
}
.ia-premium-eyebrow {
  color: var(--color-amber-dark) !important;
}
.ia-premium .btn { align-self: flex-start; }
.ia-premium-note {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

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

/* ============== Linha SB2 ============== */
.linha-completa {
  margin: 0 0 48px;
  text-align: center;
}
.linha-completa img {
  max-width: 720px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .12));
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.products-grid > * { min-width: 0; }
.product {
  background: white;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(232, 14, 14, .2);
}
.product img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 14px;
}
.product h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 2.4em;
}
.product p {
  font-size: .82rem;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 14px;
  line-height: 1.45;
}
.product-link {
  display: inline-block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-red);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 14, 14, .08);
  align-self: center;
}
.product-link:hover {
  background: var(--color-red);
  color: white;
}

@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .products-grid { grid-template-columns: 1fr; } }

/* ============== Mockups (placeholder) ============== */
.mockup-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mockup-row > * { min-width: 0; }
.mockup-card {
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mockup-card img {
  width: 100%;
  max-width: 180px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 10px;
}
.mockup-card figcaption {
  font-size: .85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.placeholder-note {
  text-align: center;
  margin-top: 32px;
  padding: 14px 18px;
  background: rgba(245, 158, 11, .08);
  border: 1px dashed var(--color-amber);
  border-radius: var(--radius-md);
  font-size: .88rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.placeholder-note strong { color: var(--color-amber-dark); }

@media (max-width: 880px) { .mockup-row { grid-template-columns: repeat(2, 1fr); } }

/* ============== FAQ ============== */
.faq details {
  background: white;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--color-red); }
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-red);
  font-weight: 300;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: .94rem;
  line-height: 1.6;
}

/* ============== CTA Final ============== */
.cta-final { background: var(--color-text); color: white; padding: 80px 0; }
.cta-box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-final h2 { color: white; margin-bottom: 8px; }
.cta-final p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; margin-bottom: 28px; }
.cta-final .hero-ctas { justify-content: center; }

/* ============== Footer ============== */
.site-footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, .75);
  padding: 56px 0 24px;
  font-size: .9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-inner > * { min-width: 0; }
.footer-col h4 {
  color: white;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 8px;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--color-red); }
.footer-col img { border-radius: 8px; margin-bottom: 12px; }
.footer-col p { margin: 0; color: rgba(255, 255, 255, .55); font-size: .85rem; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .55); }
.disclaimer { max-width: 540px; font-size: .78rem; line-height: 1.5; }

@media (max-width: 880px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
