/* ============================================================
   LAB019 — landing page
   Paleta 60/30/10:
     • Neutros (~60%) dominam o layout — fundos, bordas e texto.
     • Azul (~30%) carrega a identidade — navegação, links e marca.
     • Verde entra como apoio — seções secundárias e estados de sucesso.
     • Laranja (~10%) fica reservado para ação — CTAs, badges e destaques.
   Laranja é complementar do azul, então "salta" nos pontos de conversão.
   Tema claro por padrão, dark opcional.
   ============================================================ */

:root {
  /* Azul — identidade da marca (nav, links, elementos de marca) ~30% */
  --brand: #1971c2;
  --brand-strong: #1864ab;
  --brand-ink: #1864ab;       /* texto azul sobre fundo claro */
  --brand-soft: #e7f1fb;

  /* Verde — apoio e estados de sucesso */
  --support: #12b886;
  --support-strong: #0ca678;
  --support-ink: #087f5b;
  --support-soft: #e6fcf5;

  /* Laranja — accent / ação (CTA, badges, destaques) ~10% */
  --accent: #e8590c;
  --accent-strong: #d9480f;
  --accent-ink: #d9480f;
  --accent-soft: #fff0e6;
  --accent-contrast: #2b1206;  /* texto escuro sobre o laranja (contraste AA) */

  /* Neutros — leve tom azulado para acompanhar a identidade */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-sunken: #eef2f7;
  --surface: #ffffff;
  --border: #e4e9f0;
  --ink: #0f1720;
  --ink-2: #3d4a59;
  --ink-3: #6b7889;
  --ink-inv: #ffffff;

  /* Escala tipográfica */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 32, 0.06), 0 1px 3px rgba(15, 23, 32, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(24, 100, 171, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1016;
    --bg-soft: #0f151d;
    --bg-sunken: #121a24;
    --surface: #10161f;
    --border: #1e2836;
    --ink: #eef2f7;
    --ink-2: #b9c3d0;
    --ink-3: #86929f;
    /* tons mais claros no escuro para manter contraste AA em textos pequenos */
    --brand-ink: #74c0fc;
    --support-ink: #38d9a9;
    --accent-ink: #ffa94d;
    --brand-soft: #12233a;
    --support-soft: #0f2b22;
    --accent-soft: #2a1a0f;
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--ink-2); margin: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
/* CTA principal = laranja (ponto de conversão) */
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 8px 20px rgba(232, 89, 12, 0.28);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-lg { font-size: 17px; padding: 15px 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
/* Avatar/logo em quadradinho — usado na marca (nav/footer) e no mock de chat.
   Laranja (accent) para destacar a marca. */
.dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  /* em telas estreitas mantém só o CTA principal para não estourar a largura */
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { padding: 11px 16px; font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(25, 113, 194, 0.16), transparent 60%),
    radial-gradient(680px 360px at 92% 6%, rgba(18, 184, 134, 0.10), transparent 60%),
    radial-gradient(520px 320px at 62% 0%, rgba(232, 89, 12, 0.08), transparent 62%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  margin: 18px 0 20px;
}
.hero h1 .hl { color: var(--brand-ink); }
.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Chat mock ---------- */
.chat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
/* status "online" = verde (estado de sucesso) */
.chat-head .status { margin-left: auto; font-size: 12px; color: var(--support-ink); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--support); box-shadow: 0 0 0 0 rgba(18,184,134,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18,184,134,.5); }
  70% { box-shadow: 0 0 0 10px rgba(18,184,134,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,184,134,0); }
}
.chat-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; padding: 12px 15px; border-radius: 14px; font-size: 14.5px; }
/* bolha do usuário = azul (identidade do produto) */
.msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: var(--bg-sunken); color: var(--ink); border-bottom-left-radius: 5px; border: 1px solid var(--border); }
.msg .badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--brand-soft); color: var(--brand-ink);
  padding: 2px 7px; border-radius: 999px; margin-bottom: 6px;
}
.chat-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg-soft);
  color: var(--ink-3); font-size: 14px;
}
.chat-foot .mic {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
}

/* ---------- Logos / models strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.strip-inner { padding: 26px 0; text-align: center; }
.strip p { margin: 0 0 16px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.model-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.model-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.model-chip .flag { font-size: 15px; }
/* destaque do modelo brasileiro = verde (apoio) */
.model-chip.br { border-color: var(--support); color: var(--support-ink); background: color-mix(in srgb, var(--support) 8%, var(--surface)); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
/* ícone padrão = azul; .b = verde (apoio); .o = laranja (accent) */
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature .ico.b { background: color-mix(in srgb, var(--support) 13%, transparent); color: var(--support-ink); }
.feature .ico.o { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent-ink); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
/* numeração uniforme em azul: evita três cores saturadas lado a lado */
.step .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .pricing-wrap { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: 22px;
  padding: 34px 32px;
  box-shadow: var(--shadow-lg);
}
/* selo "mais popular" = laranja (destaque de ação) */
.plan .tag {
  position: absolute; top: 20px; right: 24px;
  background: var(--accent-strong); color: #fff; font-weight: 700; font-size: 12px;
  padding: 5px 12px; border-radius: 999px;
}
.plan h3 { font-size: 22px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 6px; }
.plan .price .amount { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; }
.plan .price .per { color: var(--ink-3); font-size: 16px; }
/* callout de créditos = verde (valor entregue / sucesso) */
.plan .credit-line {
  background: color-mix(in srgb, var(--support) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--support) 35%, var(--border));
  color: var(--support-ink);
  border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px;
  margin: 8px 0 22px;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.plan li .ck { color: var(--support); flex: none; margin-top: 2px; }
.plan .btn { width: 100%; }

.credits-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 32px;
  display: flex; flex-direction: column;
}
.credits-card h3 { font-size: 20px; margin-bottom: 10px; }
.credits-card p { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; }
.credits-card .how { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.credits-row { display: flex; gap: 12px; align-items: flex-start; }
.credits-row .b { width: 30px; height: 30px; flex: none; border-radius: 9px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.credits-row .b.c2 { background: var(--support-soft); color: var(--support-ink); }
.credits-row .b.c3 { background: var(--accent-soft); color: var(--accent-ink); }
.credits-row strong { display: block; font-size: 15px; color: var(--ink); }
.credits-row span { font-size: 14px; color: var(--ink-3); }

/* ---------- Access (web + API) ---------- */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 880px) { .access { grid-template-columns: 1fr; } }
.access-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.access-card .top { flex: none; }
.web-demo, .api-demo { flex: 1 1 auto; display: flex; flex-direction: column; }
.access-card .top { padding: 26px 26px 18px; }
.access-card h3 { font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.access-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Mock de chat "Pela web" ---------- */
.web-demo { border-top: 1px solid var(--border); background: var(--bg-sunken); }
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft);
}
.browser-bar .dots { display: inline-flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.browser-bar .dots i:nth-child(1) { background: #ff6b6b; }
.browser-bar .dots i:nth-child(2) { background: #ffd43b; }
.browser-bar .dots i:nth-child(3) { background: #51cf66; }
.browser-bar .url {
  flex: 1; text-align: center; font-size: 12.5px; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px; font-family: ui-monospace, Menlo, Consolas, monospace;
}
/* ---------- Mock de terminal "Pela API" ---------- */
.api-demo { border-top: 1px solid var(--border); }
.term-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #0a1210; border-bottom: 1px solid #1b2a26;
}
.term-bar .dots { display: inline-flex; gap: 6px; }
.term-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.term-bar .dots i:nth-child(1) { background: #ff6b6b; }
.term-bar .dots i:nth-child(2) { background: #ffd43b; }
.term-bar .dots i:nth-child(3) { background: #51cf66; }
.term-bar .term-title { flex: 1; text-align: center; font-size: 12.5px; color: #6b7772; font-family: ui-monospace, Menlo, Consolas, monospace; }
.term-body {
  background: #0c1512; color: #d6e4df;
  font-family: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.7; padding: 16px 18px; overflow-x: auto;
}
.term-body code { white-space: pre; display: block; }
.term-body .k { color: #63e6be; }
.term-body .s { color: #ffd43b; }
.term-body .p { color: #a5d8ff; }
.term-body .c { color: #5c6b66; }
.term-body .g { color: #74c0fc; }
.term-body .cur { color: var(--brand); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.web-chat { flex: 1; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.web-chat .msg { max-width: 88%; font-size: 14px; }
.web-composer {
  display: flex; align-items: center; gap: 10px; margin-top: auto;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-3); font-size: 13.5px;
}
.web-composer .mic {
  margin-left: auto; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 20px; background: var(--surface);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }

/* ---------- CTA band ---------- */
/* faixa de conversão: área azul (identidade) + botão laranja (ação) que "salta" */
.cta-band {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  border-radius: 26px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); color: #fff; margin-bottom: 12px; }
.cta-band p { font-size: 18px; margin: 0 auto 26px; max-width: 540px; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.cta-band .btn-primary:hover { background: var(--accent-strong); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 40px; background: var(--bg-soft); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 12px; }
.footer p { color: var(--ink-3); font-size: 14px; max-width: 320px; margin: 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14.5px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--brand-ink); }
.footer-legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.footer-legal strong { color: var(--ink-2); font-weight: 600; }
.footer-legal a { color: var(--brand-ink); }
.footer-legal a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 13.5px; }

/* ---------- util ---------- */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
/* Reveal é aprimoramento progressivo: só esconde quando o JS está ativo
   (classe .js no <html>). Sem JS, o conteúdo aparece normalmente. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
