/* =====================================================================
   BWD Web Studio — styles.css
   Um único arquivo, escrito à mão, comentado por seção.
   Para mudar uma cor da marca: altere a variável em "1. CORES E MEDIDAS".
   ===================================================================== */

/* ---------- 1. CORES E MEDIDAS ---------- */
:root {
  /* marca */
  --azul-900: #1e3a8a;
  --azul-800: #1e40af;
  --azul-700: #1d4ed8;
  --azul-600: #2563eb;
  --azul-100: #dbeafe;
  --amarelo: #facc15;        /* SOMENTE fundo de botão ou detalhe gráfico */
  --amarelo-claro: #fde047;

  /* neutros */
  --cinza-900: #111827;
  --cinza-600: #4b5563;
  --cinza-200: #e5e7eb;
  --cinza-100: #f3f4f6;
  --branco: #ffffff;
  --erro: #b91c1c;

  /* forma e espaçamento */
  --raio: 12px;
  --sombra: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .06);
  --sombra-forte: 0 2px 6px rgba(0, 0, 0, .10), 0 10px 24px rgba(0, 0, 0, .10);
  --secao: 56px;             /* vira 80px no desktop */
  --largura: 1200px;
  --altura-barra: 60px;      /* barra fixa de ligar (celular) */
}

/* ---------- 2. FONTES (auto-hospedadas) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-800.woff2") format("woff2"); }

/* ---------- 3. RESET E BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cinza-600);
  background: var(--branco);
}
body.has-bar { padding-bottom: calc(var(--altura-barra) + env(safe-area-inset-bottom)); }
img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--cinza-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--azul-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--azul-900); }
strong { color: var(--cinza-900); }
:focus-visible { outline: 2px solid var(--azul-600); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--amarelo); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--branco); color: var(--azul-900); font-weight: 700; padding: 10px 16px; border-radius: 8px; box-shadow: var(--sombra-forte); }
.skip-link:focus { top: 8px; }

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: calc(var(--largura) + 40px); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--secao) 0; }
.section-alt { background: var(--cinza-100); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head p { font-size: 1.1rem; }
.eyebrow { display: block; margin: 0 0 .6em; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--azul-700); }
.grid { display: grid; gap: 24px; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.muted { font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 5. BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--raio); cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra-forte); }
.btn-yellow { background: var(--amarelo); color: var(--azul-900); }
.btn-yellow:hover { background: var(--amarelo-claro); color: var(--azul-900); }
.btn-blue { background: var(--azul-600); color: var(--branco); }
.btn-blue:hover { background: var(--azul-700); color: var(--branco); }
.btn-outline-light { background: transparent; color: var(--branco); border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: var(--branco); }
.btn-outline { background: var(--branco); color: var(--azul-900); border-color: var(--azul-100); }
.btn-outline:hover { background: var(--azul-100); color: var(--azul-900); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.reassure { margin: 14px 0 0; font-size: .9rem; }

/* ---------- 6. CABEÇALHO E MENU ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--branco); box-shadow: 0 1px 0 var(--cinza-200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--azul-900); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--amarelo); }
.logo:hover { color: var(--azul-900); }
.nav-toggle { display: inline-flex; padding: 10px; background: none; border: 0; color: var(--cinza-900); cursor: pointer; border-radius: 8px; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--branco); border-top: 1px solid var(--cinza-200); box-shadow: var(--sombra-forte); padding: 8px 20px 20px; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: block; padding: 14px 4px; font-weight: 600; color: var(--cinza-900); text-decoration: none; border-bottom: 1px solid var(--cinza-100); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--azul-700); }
.site-nav li:last-child { margin-top: 16px; }
.site-nav .btn { width: 100%; }

/* ---------- 7. HERO ---------- */
.hero { background: linear-gradient(135deg, var(--azul-900), var(--azul-800)); color: var(--azul-100); padding: 40px 0 56px; }
.hero h1 { color: var(--branco); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero .kicker { display: block; margin-bottom: .8em; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amarelo); }
.hero .lead { font-size: 1.2rem; margin-bottom: 1em; }
.slogan { margin: 0 0 1.2em; font-size: clamp(1.15rem, 3.4vw, 1.6rem); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amarelo); line-height: 1.3; }
.hero .trust { margin: 18px 0 0; font-size: .9rem; color: var(--azul-100); }
.hero-img { border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra-forte); border: 1px solid rgba(255, 255, 255, .15); }
.hero-img img { width: 100%; }

/* ---------- 8. CARTÕES E PASSOS ---------- */
.card { background: var(--branco); border: 1px solid var(--cinza-200); border-radius: var(--raio); padding: 28px; box-shadow: var(--sombra); transition: transform .15s ease, box-shadow .15s ease; }
a.card, a.card:hover { text-decoration: none; color: var(--cinza-600); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--sombra-forte); }
.card h3 { margin-bottom: .3em; }
.card .price { display: block; font-size: 1.6rem; font-weight: 800; color: var(--azul-900); margin: 0 0 .4em; }
.card p:last-child { margin-bottom: 0; }
.steps { counter-reset: passo; list-style: none; padding: 0; }
.step { display: flex; flex-direction: column; gap: 6px; }
.step .icon-wrap { width: 52px; height: 52px; border-radius: 50%; background: var(--azul-100); color: var(--azul-900); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.step .icon-wrap .icon { width: 26px; height: 26px; }
.step h3::before { counter-increment: passo; content: counter(passo) ". "; color: var(--azul-700); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--azul-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.promise { margin: 0; padding: 22px 26px; background: var(--branco); border-left: 5px solid var(--amarelo); border-radius: 0 var(--raio) var(--raio) 0; box-shadow: var(--sombra); font-size: 1.1rem; color: var(--cinza-900); }
.promise strong { color: var(--azul-900); }
.split { display: grid; gap: 32px; align-items: center; }
.figure-shadow { border-radius: var(--raio); box-shadow: var(--sombra-forte); overflow: hidden; }

/* ---------- 9. PREÇOS ---------- */
.plans { display: grid; gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--branco); border: 1px solid var(--cinza-200); border-radius: var(--raio); padding: 30px 26px; box-shadow: var(--sombra); }
.plan.featured { border: 2px solid var(--azul-900); box-shadow: var(--sombra-forte); }
.plan .badge { position: absolute; top: -14px; left: 26px; background: var(--amarelo); color: var(--azul-900); font-size: .8rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; margin-bottom: .1em; }
.plan .for { font-size: .95rem; min-height: 3em; }
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--azul-900); line-height: 1.1; margin: .2em 0 .1em; }
.plan .founder { font-size: .9rem; margin-bottom: 1em; }
.plan .founder strong { color: var(--azul-900); }
.plan ul { flex: 1; }
.plan .when { font-weight: 600; color: var(--cinza-900); font-size: .95rem; }
.band { display: grid; gap: 16px; align-items: center; background: var(--azul-100); border-radius: var(--raio); padding: 26px; }
.band h3 { margin-bottom: .2em; }
.band p { margin: 0; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--branco); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--cinza-200); vertical-align: top; }
th { color: var(--cinza-900); font-weight: 700; background: var(--cinza-100); }

/* ---------- 10. CLIENTES FUNDADORES ---------- */
.founding { background: var(--azul-900); color: var(--azul-100); }
.founding h2 { color: var(--branco); }
.founding .eyebrow { color: var(--amarelo); }
.founding-grid { display: grid; gap: 24px; align-items: center; }
.founding .countdown { margin: 16px 0 0; font-size: 1.05rem; color: var(--branco); }
.founding .countdown strong { color: var(--amarelo); font-size: 1.25em; }
.founding.urgente .countdown { padding: 12px 16px; border: 2px solid var(--amarelo); border-radius: var(--raio); }
.founding-prices { display: grid; gap: 12px; }
.founding-prices div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--raio); padding: 14px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.founding-prices span { color: var(--azul-100); }
.founding-prices strong { color: var(--amarelo); font-size: 1.5rem; }
.founding-prices s { color: var(--azul-100); opacity: .8; margin-right: 8px; font-size: .95rem; }

/* ---------- 11. FAQ ---------- */
.faq details { background: var(--branco); border: 1px solid var(--cinza-200); border-radius: var(--raio); padding: 0 22px; margin-bottom: 12px; box-shadow: var(--sombra); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.05rem; color: var(--cinza-900); display: flex; justify-content: space-between; gap: 16px; }
.faq summary h3 { margin: 0; font-size: inherit; font-weight: 700; letter-spacing: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--azul-700); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 6px; }

/* ---------- 12. PORTFÓLIO ---------- */
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project .shot { position: relative; background: var(--cinza-100); }
.project .shot img { width: 100%; aspect-ratio: 500 / 350; object-fit: cover; }
.tag-demo { position: absolute; top: 12px; left: 12px; background: var(--azul-900); color: var(--branco); font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.project .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project .kind { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-700); margin-bottom: .3em; }
.project .body ul { margin-bottom: 1.2em; }
.project .body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 13. FORMULÁRIOS ---------- */
.form-card { background: var(--branco); border: 1px solid var(--cinza-200); border-radius: var(--raio); padding: 26px; box-shadow: var(--sombra-forte); }
.form-card h2, .form-card h3 { margin-bottom: .3em; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--cinza-900); font-size: .95rem; }
.field .hint { display: block; font-weight: 400; color: var(--cinza-600); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--cinza-900); background: var(--branco);
  border: 1.5px solid #6b7280; border-radius: 10px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--azul-600); outline-offset: 1px; border-color: var(--azul-600); }
.field [aria-invalid="true"] { border-color: var(--erro); }
.field-error { margin: 6px 0 0; color: var(--erro); font-size: .9rem; font-weight: 600; }
.form-message { margin-bottom: 18px; padding: 12px 16px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: var(--erro); font-weight: 600; }
.form-note { margin: 12px 0 0; font-size: .85rem; }

/* ---------- 14. RODAPÉ ---------- */
.site-footer { background: var(--azul-900); color: var(--azul-100); padding: 48px 0 28px; }
.site-footer a { color: var(--branco); }
.site-footer h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--branco); margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand .logo { color: var(--branco); }
.footer-brand .logo:hover { color: var(--branco); }
.footer-brand p { margin: .6em 0 0; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- 15. BARRA FIXA DE LIGAR (só celular) ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; background: var(--branco); box-shadow: 0 -2px 10px rgba(0, 0, 0, .12); padding-bottom: env(safe-area-inset-bottom); }
.mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--altura-barra); font-weight: 700; text-decoration: none; }
.mbar .call { color: var(--azul-900); background: var(--branco); }
.mbar .go { background: var(--amarelo); color: var(--azul-900); }

/* ---------- 16. CHAT DE IA (abre só com clique) ---------- */
.chat-btn { position: fixed; right: 16px; bottom: calc(var(--altura-barra) + 16px + env(safe-area-inset-bottom)); z-index: 45; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--azul-600); color: var(--branco); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--sombra-forte); }
.chat-btn:hover { background: var(--azul-700); }
.chat-btn .icon { width: 28px; height: 28px; }
.chat-panel { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(var(--altura-barra) + env(safe-area-inset-bottom)); height: min(75vh, 560px); background: var(--branco); display: none; flex-direction: column; border-radius: 16px 16px 0 0; box-shadow: var(--sombra-forte); overflow: hidden; }
.chat-panel.open { display: flex; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--azul-900); color: var(--azul-100); flex: none; }
.chat-head strong { display: block; color: var(--branco); }
.chat-head small { font-size: .8rem; }
.chat-close { background: none; border: 0; color: var(--branco); padding: 6px; cursor: pointer; border-radius: 8px; }
.chat-frame { flex: 1; width: 100%; border: 0; background: var(--cinza-100); }
.chat-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--cinza-200); flex: none; }
.chat-foot a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--azul-900); }
.chat-foot a + a { border-left: 1px solid var(--cinza-200); }

/* ---------- 17. TEXTO LEGAL / PÁGINAS SIMPLES ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.crumbs { font-size: .9rem; padding-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.page-hero { padding: 32px 0 8px; }
.page-hero p.lead { font-size: 1.15rem; max-width: 760px; }

/* ---------- 18. TELAS MAIORES ---------- */
@media (min-width: 768px) {
  :root { --secao: 80px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a:not(.btn) { padding: 8px 12px; border: 0; border-radius: 8px; font-size: .95rem; }
  .site-nav a:not(.btn):hover { color: var(--azul-700); background: var(--cinza-100); }
  .site-nav li:last-child { margin: 0 0 0 10px; }
  .site-nav .btn { width: auto; }
  .hero { padding: 72px 0 84px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.wide-left { grid-template-columns: 1.1fr .9fr; }
  .founding-grid { grid-template-columns: 1.2fr .8fr; gap: 48px; }
  .band { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
  .mbar { display: none; }
  body.has-bar { padding-bottom: 0; }
  .chat-btn { bottom: 24px; right: 24px; }
  .chat-panel { left: auto; right: 24px; bottom: 92px; width: 400px; height: 580px; border-radius: 16px; }
  .form-card { padding: 34px; }
}
@media (min-width: 1024px) {
  .site-nav ul { gap: 8px; }
  .site-nav a:not(.btn) { padding: 8px 14px; }
}

/* ---------- 19. MOVIMENTO REDUZIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .card-hover:hover { transform: none; }
}
