/*
Theme Name: Gráfica Brás — Comunicação Visual
Theme URI: https://graficabras.com.br
Author: Gráfica Brás
Author URI: https://graficabras.com.br
Description: Tema claro, rápido e otimizado para SEO local da Gráfica Brás (comunicação visual em São Paulo). Todo o conteúdo editável pelo Personalizador do WordPress: dados da empresa, hero, estatísticas, FAQ, WhatsApp, redes sociais e SEO padrão. Sem page builders, sem CDN externo obrigatório (somente Google Fonts), com Schema JSON-LD, Open Graph, canonical, breadcrumbs e performance máxima.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: graficabras
*/

/* ============================================================
   Gráfica Brás — Design System (tema claro & clean)
   ============================================================ */
:root {
  --paper: #ffffff;
  --soft: #f5f6f8;
  --soft-2: #eceef2;
  --ink: #14161a;
  --ink-soft: #2a2e35;
  --muted: #5b6470;
  --brand: #ff5722;
  --brand-dark: #e64a19;
  --brand-text: #cf3f12;
  --brand-soft: #fff0e8;
  --brand-soft-2: #ffd9c7;
  --line: #e6e8ec;
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(20, 22, 26, .06);
  --shadow-md: 0 12px 34px rgba(20, 22, 26, .10);
  --shadow-lg: 0 24px 60px rgba(20, 22, 26, .16);
  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

.grad {
  background: linear-gradient(120deg, var(--brand) 0%, #ff9800 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.overline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-text); background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.overline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { flex: 0 0 auto; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(255, 87, 34, .35); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 87, 34, .42); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #06351c; box-shadow: 0 10px 26px rgba(37, 211, 102, .4); }
.btn-wa:hover { background: #1fb855; transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 74px; }
.header-logo img, .custom-logo { max-height: 52px; width: auto; }
.site-title-link { font-weight: 900; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.site-title-link span { color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .93rem;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--brand-text); border-bottom-color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.header-phone small { font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.header-phone strong { font-size: .95rem; color: var(--ink); font-weight: 800; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { stroke: var(--ink); }

.mobile-nav { display: none; background: var(--paper); border-top: 1px solid var(--line); padding: 16px 20px 22px; }
.mobile-nav a { display: block; padding: 12px 10px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 10px; }
.mobile-nav a:hover { background: var(--soft); color: var(--brand-text); }
.site-header.nav-open .mobile-nav { display: block; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 56px 0 84px; background:
  radial-gradient(1000px 500px at 110% -10%, rgba(255, 87, 34, .12), transparent 60%),
  radial-gradient(800px 500px at -10% 110%, rgba(255, 152, 0, .12), transparent 60%),
  var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.35rem); line-height: 1.08; letter-spacing: -0.03em;
  font-weight: 900; margin: 0 0 20px; color: var(--ink);
}
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 34rem; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.trust-row { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.trust-row .stars { color: #f5a623; letter-spacing: 2px; font-size: .95rem; }

.hero-visual { position: relative; }
.hero-card {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.6; background: var(--soft);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.float-badge {
  position: absolute; left: -18px; bottom: 34px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.float-badge .badge-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.float-badge strong { display: block; font-size: .82rem; line-height: 1.3; }
.float-badge small { color: var(--muted); font-size: .72rem; }
.float-chip {
  position: absolute; top: 22px; right: -14px; background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 9px 14px; border-radius: 999px;
  box-shadow: var(--shadow-md); letter-spacing: .02em;
}

/* ---------- Faixa de setores ---------- */
.sectors { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.sectors-inner { display: flex; gap: 28px; align-items: center; padding: 14px 20px; overflow-x: auto; white-space: nowrap; }
.sectors-inner span { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sectors-inner b { color: var(--ink-soft); font-weight: 700; font-size: .9rem; }
.sectors-inner i { color: var(--brand); font-style: normal; }

/* ============================================================
   Seções comuns
   ============================================================ */
.section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2, .section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0; }
.section-sub { color: var(--muted); margin: 10px 0 0; max-width: 40rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--brand-text); text-decoration: none; font-size: .92rem; white-space: nowrap; }
.link-arrow:hover { color: var(--brand-dark); gap: 12px; }
.link-arrow { transition: gap .2s ease, color .2s ease; }

/* ============================================================
   Serviços
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 18px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-soft-2); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.service-icon svg { stroke: var(--brand-dark); }
.service-card h3 { font-size: 1.02rem; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
.service-card p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; flex: 1; }
.service-more { font-size: .8rem; font-weight: 800; color: var(--brand-text); display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   Estatísticas (faixa escura)
   ============================================================ */
.stats-band { background: var(--ink); color: #fff; padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; color: var(--brand); letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-size: .78rem; color: #b9bec7; font-weight: 600; margin-top: 8px; letter-spacing: .02em; }

/* ============================================================
   Trabalhos / Galeria
   ============================================================ */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--soft-2); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-body { padding: 14px 16px 16px; }
.work-body h3 { font-size: .98rem; margin: 0 0 4px; font-weight: 800; }
.work-body p { margin: 0; font-size: .82rem; color: var(--muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-contact { margin-top: 22px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; }
.faq-contact strong { display: block; margin-bottom: 6px; }
.faq-contact p { margin: 0 0 12px; color: #c6cbd4; font-size: .87rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 17px 18px; font-weight: 700; font-size: .97rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; transition: transform .25s ease; font-weight: 800; }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-item .faq-answer { padding: 0 18px 16px; color: var(--muted); font-size: .92rem; border-top: 1px dashed var(--line); padding-top: 12px; margin: 0 18px 14px; padding-left: 0; padding-right: 0; }

/* ============================================================
   Blog
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--soft-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { font-size: .73rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.post-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; }
.post-card p { margin: 0; color: var(--muted); font-size: .86rem; }

/* ============================================================
   Contato / Orçamento
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.contact-list small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span.v { color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem; }
.contact-list a:hover { color: var(--brand-text); }
.maps-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .85rem; font-weight: 700; color: var(--brand-text); text-decoration: none; }

.quote-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 20px; padding: 26px; }
.quote-card h3 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.quote-card > p { margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-field { display: flex; flex-direction: column; gap: 6px; }
.q-field.full { grid-column: 1 / -1; }
.q-field label { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.q-field input, .q-field select, .q-field textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px;
  font: 500 .95rem var(--font); background: var(--soft); transition: border-color .15s ease, background .15s ease;
}
.q-field input:focus, .q-field select:focus, .q-field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.quote-note { text-align: center; font-size: .74rem; color: var(--muted); margin: 12px 0 0; }

/* ============================================================
   Páginas internas
   ============================================================ */
.breadcrumb { font-size: .8rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--brand-text); text-decoration: none; font-weight: 600; }
.entry { padding: 18px 0 60px; }
.entry-header { max-width: 820px; margin-bottom: 24px; }
.entry-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 12px; font-weight: 900; }
.entry-content { max-width: 820px; font-size: 1.02rem; }
.entry-content h2 { letter-spacing: -0.02em; line-height: 1.2; margin-top: 1.6em; }
.entry-content h3 { letter-spacing: -0.01em; }
.entry-content img { border-radius: var(--radius-sm); }
.featured-image { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; box-shadow: var(--shadow-md); }
.featured-image img { display: block; width: 100%; max-height: 480px; object-fit: cover; }

.cta-band { margin: 34px 0; background: var(--ink); border-radius: var(--radius); padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #fff; }
.cta-band h2,.cta-band .cta-title { margin: 0 0 4px; font-size: 1.1rem; }
.cta-band p { margin: 0; color: #c6cbd4; font-size: .88rem; }

.related-services { margin: 36px 0 0; }
.related-services h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.related-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.related-chips a { border: 1px solid var(--line); background: var(--soft); padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: .85rem; font-weight: 700; transition: all .15s ease; }
.related-chips a:hover { border-color: var(--brand); color: var(--brand-text); background: var(--brand-soft); }

.post-share { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 28px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.post-share a { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-text); font-weight: 800; text-decoration: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #c6cbd4; padding: 56px 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 40px; padding-bottom: 36px; }
.footer-logo { font-weight: 900; color: #fff; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
.footer-logo span { color: var(--brand); }
.footer-grid h2,.footer-grid .footer-h { color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; column-count: 1; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #c6cbd4; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: 0 0 16px; margin-top: 3px; stroke: var(--brand); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #353a43; display: grid; place-items: center; transition: border-color .15s, transform .15s; }
.social-row a:hover { border-color: var(--brand); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid #262a31; padding: 16px 0 18px; display: flex; justify-content: space-between; gap: 16px; font-size: .78rem; flex-wrap: wrap; }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 950; width: 58px; height: 58px;
  border-radius: 50%; background: var(--wa); display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(37, 211, 102, .45); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

.pagination { display: flex; gap: 10px; justify-content: center; padding: 30px 0 0; }
.pagination a, .pagination span { padding: 9px 15px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .87rem; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.wp-block-image img, .alignwide img { border-radius: var(--radius-sm); }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .site-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { padding: 11px 18px; font-size: .85rem; }
}
@media (max-width: 880px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .float-badge { left: -6px; }
  .float-chip { right: -6px; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .contact-wrap { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .q-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .works-grid, .blog-grid { grid-template-columns: 1fr; }
  .header-cta .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   Modal de captura de lead
   ============================================================ */
.lead-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lead-modal[hidden] { display: none; }
.lead-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 18, 24, .62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: leadFadeIn .25s ease;
}
.lead-dialog {
  position: relative; width: min(520px, 100%); max-height: min(92vh, 760px); overflow-y: auto;
  background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 26px 26px 20px; animation: leadPop .3s cubic-bezier(.2, 1.2, .35, 1);
}
.lead-close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--soft); color: var(--muted); font-size: 1.35rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.lead-close:hover { background: var(--soft-2); color: var(--ink); }
.lead-dialog h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 6px; }
.lead-intro { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }
.lead-submit { margin-top: 12px; }
.lead-error {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 8px;
  background: #fdecec; border: 1px solid #f5b6b6; color: #b3261e;
  font-size: .85rem; font-weight: 600;
}
.lead-legal { font-size: .72rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.lead-legal a { color: var(--brand-text); font-weight: 700; }

@keyframes leadFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes leadPop { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .lead-backdrop, .lead-dialog { animation: none; }
}
