/* SM Optimizing — folha de estilo única */
:root {
  --ink: #0e1525;
  --ink-2: #1b2438;
  --bg: #f6f4ef;
  --card: #ffffff;
  --text: #1a2030;
  --muted: #5b6474;
  --line: #e3dfd6;
  --accent: #1fb57a;
  --accent-strong: #138a5b;
  --accent-soft: #e2f6ec;
  --amber: #f2b441;
  --on-dark: #e8ecf3;
  --on-dark-muted: #9aa6bb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 21, 37, .06), 0 8px 24px rgba(14, 21, 37, .06);
  --max: 1160px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 21, 37, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--on-dark); text-decoration: none; font-size: .96rem; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: #fff; }
.nav .btn { opacity: 1; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: .4rem; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: .5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav .btn { margin-top: 1rem; text-align: center; border-bottom: 0; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #062a1b; }
.btn-primary:hover { background: #33c98c; color: #062a1b; }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(4rem, 9vw, 6.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 380px at 85% 10%, rgba(31, 181, 122, .22), transparent 70%),
    radial-gradient(500px 300px at 10% 110%, rgba(242, 180, 65, .10), transparent 70%);
  pointer-events: none;
}
.hero .grid-lines {
  position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.2rem; color: var(--on-dark); opacity: .9; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 1rem;
}
.hero .eyebrow { color: var(--accent); }

.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 1.4rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.hero-panel .row { display: flex; align-items: center; gap: .9rem; padding: .85rem .4rem; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.hero-panel .row:last-child { border-bottom: 0; }
.hero-panel .dot { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(31, 181, 122, .15); color: var(--accent); }
.hero-panel .dot svg { width: 20px; height: 20px; }
.hero-panel strong { color: #fff; display: block; font-size: .98rem; }
.hero-panel span { color: var(--on-dark-muted); font-size: .88rem; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* ---------- Seções ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p, .section-dark p { color: var(--on-dark-muted); }
.section-dark .eyebrow { color: var(--accent); }
.section-white { background: #fff; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 1.1rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.card ul li { margin: .2rem 0; }

/* ---------- Produtos ---------- */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.product.reverse .product-visual { order: -1; }
.product .tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 1rem;
}
.product .tag.amber { background: #fdf1d8; color: #8a5a00; }
.product p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.checks li { position: relative; padding-left: 1.8rem; margin: .55rem 0; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062a1b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.product-visual {
  border-radius: 16px; background: var(--ink); min-height: 320px; padding: 1.4rem; color: var(--on-dark);
  display: flex; flex-direction: column; gap: .7rem; justify-content: center;
}
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product.reverse .product-visual { order: 0; }
}

/* Simulação de conversa (OptimizingSell) */
.chat { display: flex; flex-direction: column; gap: .55rem; font-size: .93rem; }
.bubble { max-width: 82%; padding: .6rem .85rem; border-radius: 14px; line-height: 1.4; }
.bubble.in { background: #1f2a40; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: #135e43; align-self: flex-end; border-bottom-right-radius: 4px; color: #eafff4; }
.bubble small { display: block; opacity: .6; font-size: .72rem; margin-top: .2rem; text-align: right; }
.cart-line { display: flex; justify-content: space-between; border-top: 1px dashed rgba(255,255,255,.2); padding-top: .4rem; margin-top: .4rem; }

/* Mini painel (Eventos) */
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.mini-stats div { background: rgba(255,255,255,.06); border-radius: 12px; padding: .9rem; }
.mini-stats b { display: block; font-size: 1.5rem; color: #fff; }
.mini-stats span { font-size: .8rem; color: var(--on-dark-muted); }
.ticket { display: flex; gap: 1rem; align-items: center; background: #fff; color: var(--ink); border-radius: 12px; padding: 1rem; }
.ticket .qr { width: 64px; height: 64px; flex: none; }
.ticket strong { display: block; }
.ticket span { font-size: .85rem; color: var(--muted); }

/* Apps de igreja */
.app-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.app-strip a { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; color: var(--on-dark); font-size: .85rem; background: rgba(255,255,255,.05); border-radius: 12px; padding: .9rem .5rem; }
.app-strip a:hover { background: rgba(255,255,255,.1); color: #fff; }
.app-strip img { width: 52px; height: 52px; border-radius: 12px; }

/* ---------- Casos ---------- */
.case { display: flex; flex-direction: column; }
.case .kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-strong); margin-bottom: .5rem; }
.case .stack { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { font-size: .76rem; padding: .2rem .55rem; border-radius: 6px; background: #f0ede6; color: #4a5263; }
.section-dark .chip { background: rgba(255,255,255,.08); color: var(--on-dark); }

/* ---------- Princípios ---------- */
.principles { counter-reset: p; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
.principles > div { position: relative; padding-left: 3.4rem; }
.principles > div::before {
  counter-increment: p; content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: -.1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent);
}
.principles h3 { margin-bottom: .3rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.step .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: .8rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Tecnologias ---------- */
.tech { display: flex; flex-wrap: wrap; gap: .5rem; }
.tech span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .9rem; font-size: .92rem; color: var(--ink); }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; gap: .8rem; align-items: center; margin: .9rem 0; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
form.card { padding: 1.8rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fcfbf8; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute !important; left: -9999px !important; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; display: none; font-size: .95rem; }
.form-status.ok { display: block; background: var(--accent-soft); color: var(--accent-strong); }
.form-status.err { display: block; background: #fde8e6; color: #9b1c12; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ---------- Página de igrejas ---------- */
.page-hero { background: var(--ink); color: var(--on-dark); padding: clamp(3.5rem, 8vw, 5.5rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--on-dark); opacity: .88; font-size: 1.15rem; max-width: 44rem; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 380px at 85% 0%, rgba(31,181,122,.2), transparent 70%); }
.page-hero .container { position: relative; }

.app-card { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.app-card:last-child { border-bottom: 0; }
.app-card:nth-child(even) .shot { order: -1; }
.app-card header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-card header img { width: 64px; height: 64px; border-radius: 14px; box-shadow: var(--shadow); }
.app-card header h2 { margin: 0; font-size: 1.8rem; }
.app-card header small { display: block; color: var(--muted); font-size: .95rem; }
.app-card p { color: var(--muted); }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(14,21,37,.12); background: #fff; }
.verse { font-style: italic; color: var(--muted); font-size: .92rem; border-left: 3px solid var(--amber); padding-left: .8rem; }
@media (max-width: 860px) { .app-card { grid-template-columns: 1fr; } .app-card:nth-child(even) .shot { order: 0; } }

.callout { background: var(--accent-soft); border: 1px solid #bfe9d3; border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.callout h3 { margin-bottom: .4rem; }
.callout p { margin: 0; color: #2f4a3e; }

/* ---------- Texto longo (privacidade) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose p, .prose li { color: #374055; }

/* ---------- Rodapé ---------- */
.site-footer { background: #0a101c; color: var(--on-dark-muted); padding: 3rem 0 2rem; font-size: .93rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4rem 0; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
[data-wa][hidden] { display: none !important; }

/* Animação de entrada (respeita quem prefere menos movimento) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .wa-float { transition: none; }
}

/* Cartões sobre fundo escuro */
.section-dark .card { background: #152037; border-color: #22304d; box-shadow: none; }
.section-dark .card p { color: var(--on-dark-muted); }
.section-dark .card .kicker { color: var(--accent); }

/* Formulário de contato: cartão claro mesmo dentro da seção escura */
.section-dark form.card { background: #fff; border-color: var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.section-dark form.card p,
.section-dark form.card .form-note { color: var(--muted); }
.section-dark form.card label { color: var(--ink); }
.section-dark form.card a { color: var(--accent-strong); }
