/* ==========================================================================
   MFlux — site institucional (v2)
   Mesma identidade da plataforma: azul #34528C, navy da sidebar, claro/escuro.
   Tema controlado por [data-theme] no <html> (ver includes/header.php).
   ========================================================================== */

:root {
  --brand:       #34528C;
  --brand-600:   #2a4373;
  --brand-500:   #3a5d9f;
  --brand-400:   #5074b3;
  --brand-300:   #8aa3cd;
  --brand-soft:  #eaf0f9;
  --accent:      #22c55e;          /* verde "conectado" do WhatsApp, usado com moderação */

  --navy-1:      #162542;
  --navy-2:      #0e1830;
  --navy-3:      #0a1226;

  --bg:          #ffffff;
  --bg-alt:      #f4f6fb;
  --surface:     #ffffff;
  --surface-2:   #f7f9fc;
  --border:      #e4e9f2;
  --text:        #0f1b30;
  --text-2:      #4a5970;
  --text-3:      #8292ab;

  --header-bg:   rgba(255, 255, 255, .82);
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow:      0 6px 24px rgba(15, 23, 42, .08);
  --shadow-lg:   0 24px 60px rgba(10, 18, 38, .28);

  --wrap:        1180px;
  --radius:      16px;
  --radius-lg:   24px;
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --font:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light;
}

[data-theme="dark"] {
  --brand-soft:  #1a2a4a;
  --bg:          #0a1120;
  --bg-alt:      #0d1628;
  --surface:     #111c33;
  --surface-2:   #16233e;
  --border:      #243454;
  --text:        #e8eef9;
  --text-2:      #a3b3cf;
  --text-3:      #6b7c9c;
  --header-bg:   rgba(10, 17, 32, .8);
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .3);
  --shadow:      0 6px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* --------------------------------- reset -------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.025em; font-weight: 750; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
img, svg { max-width: 100%; }

a { color: var(--brand-500); text-decoration: none; }
a:hover { text-decoration: underline; }
[data-theme="dark"] a { color: var(--brand-300); }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .75rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -------------------------------- layout -------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 780px; }

.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-500);
}
[data-theme="dark"] .eyebrow { color: var(--brand-300); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .split-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.section-head p, .split-head p { color: var(--text-2); font-size: 1.06rem; margin: 0; }

/* -------------------------------- botões -------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { padding: 10px 16px; font-size: .9rem; border-radius: 10px; }

.btn-primary, [data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff; box-shadow: 0 8px 22px rgba(52, 82, 140, .35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(52, 82, 140, .45); }

.btn-ghost, [data-theme="dark"] .btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand-300); }

.btn-glass, [data-theme="dark"] .btn-glass {
  background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .14); }

.btn-white, [data-theme="dark"] .btn-white { background: #fff; color: var(--brand-600); box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--brand-300); }
.icon-btn svg { width: 19px; height: 19px; }

/* -------------------------------- cabeçalho ----------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: #fff;
  box-shadow: 0 6px 16px rgba(52, 82, 140, .35);
}
.brand-mark svg { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.brand-mark svg g[fill="none"] { stroke: currentColor; }
.brand-name { font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; }

.site-nav { display: flex; gap: 4px; margin-right: auto; }
.site-nav a {
  padding: 8px 13px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: .95rem;
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.nav-burger { display: none; }

/* --------------------------------- hero --------------------------------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--navy-1), var(--navy-2) 60%, var(--navy-3));
  color: #e6edf9;
  padding: 96px 0 120px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 380px at 82% 18%, rgba(80, 116, 179, .45), transparent 70%),
    radial-gradient(520px 340px at 8% 90%, rgba(34, 197, 94, .12), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
          mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .85rem; font-weight: 500; color: #c9d6ee;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -.04em; color: #fff; margin-bottom: 22px; }
.grad {
  background: linear-gradient(90deg, #8aa9e0, #c7d6f5 60%, #8fe3b0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.13rem; color: #a9b8d4; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 34px 0 0; font-size: .9rem; color: #94a6c6; }
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: rgba(34, 197, 94, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ilustração do painel */
.hero-visual { position: relative; }
.app-window {
  border-radius: 18px; overflow: hidden;
  background: #fff; color: #0f1b30;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, .04);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  font-size: 12.5px; line-height: 1.4;
}
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f4f6fb; border-bottom: 1px solid #e4e9f2; }
.app-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #d7dde8; }
.app-bar .dot:nth-child(1) { background: #f87171; } .app-bar .dot:nth-child(2) { background: #fbbf24; } .app-bar .dot:nth-child(3) { background: #34d399; }
.app-url { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: #fff; border: 1px solid #e4e9f2; color: #8292ab; font-size: 11px; }
.app-body { display: grid; grid-template-columns: 42% 58%; height: 380px; }

.app-list { border-right: 1px solid #e4e9f2; padding: 12px 10px; background: #fbfcfe; overflow: hidden; }
.app-search { padding: 7px 10px; border-radius: 8px; background: #f1f4f9; color: #9aa8bf; margin-bottom: 10px; }
.app-tabs { display: flex; gap: 6px; margin-bottom: 8px; font-weight: 600; color: #7a8aa3; font-size: 11.5px; }
.app-tabs span { padding: 4px 9px; border-radius: 7px; }
.app-tabs .on { background: #eaf0f9; color: var(--brand); }
.app-tabs b { font-weight: 700; margin-left: 2px; }
.conv { display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: 10px; }
.conv.on { background: #eaf0f9; box-shadow: inset 3px 0 0 var(--brand); }
.conv-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.conv-txt b { font-weight: 600; font-size: 12.5px; }
.conv-txt i { font-style: normal; color: #7a8aa3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.conv-meta em { font-style: normal; font-size: 10.5px; color: #9aa8bf; }
.badge { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; }

.av {
  display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: 11px; font-style: normal;
}
.av-1 { background: linear-gradient(135deg, #5074b3, #8b5cf6); }
.av-2 { background: linear-gradient(135deg, #0891b2, #22c55e); }
.av-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-4 { background: linear-gradient(135deg, #34528C, #0ea5e9); }

.app-chat { display: flex; flex-direction: column; background: #f4f6fb; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e4e9f2; }
.chat-who { flex: 1; display: flex; flex-direction: column; }
.chat-who b { font-weight: 650; } .chat-who i { font-style: normal; color: #8292ab; font-size: 11px; }
.chat-msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow: hidden; }
.msg { margin: 0; max-width: 82%; padding: 8px 11px; border-radius: 12px; box-shadow: 0 1px 1px rgba(15, 23, 42, .06); }
.msg.in { background: #fff; border-top-left-radius: 4px; align-self: flex-start; }
.msg.out { background: #dbe6fa; border-top-right-radius: 4px; align-self: flex-end; }
.msg.out span { display: block; text-align: right; font-size: 10px; color: #5074b3; margin-top: 2px; }
.msg.typing { display: flex; gap: 4px; padding: 11px 13px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: #a9b6cc; animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.chat-input { margin: 0 12px 12px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid #e4e9f2; color: #9aa8bf; }

.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-blue  { background: #eaf0f9; color: var(--brand); }
.tag-amber { background: #fef3c7; color: #b45309; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  padding: 11px 15px 11px 11px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); color: #0f1b30; box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  font-size: 12.5px; line-height: 1.3; animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 650; }
.float-card i { font-style: normal; color: #8292ab; font-size: 11.5px; }
.fc-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #dcfce7; color: #16a34a; }
.fc-icon--alt { background: #eaf0f9; color: var(--brand); }
.fc-icon svg { width: 18px; height: 18px; }
.fc-1 { left: -34px; bottom: 54px; }
.fc-2 { right: -18px; top: -22px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ----------------------------- faixa confiança -------------------------- */

.trust { position: relative; z-index: 2; margin-top: -52px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 8px;
}
.trust-item { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; font-size: .92rem; color: var(--text-2); line-height: 1.45; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-500); margin-top: 1px; }
[data-theme="dark"] .trust-item svg { color: var(--brand-300); }

/* ------------------------------- plataforma ----------------------------- */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile, .card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-300); }
.tile h3, .card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tile p, .card p { color: var(--text-2); margin: 0; font-size: .97rem; }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }

.tile-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 20px;
  background: var(--brand-soft); color: var(--brand-500);
}
[data-theme="dark"] .tile-icon { color: var(--brand-300); }
.tile-icon svg { width: 22px; height: 22px; }

.tile-art { border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); padding: 16px; }
.art-queue { display: flex; flex-direction: column; gap: 10px; }
.q-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); font-size: .88rem;
}
.q-row b { flex: 1; font-weight: 600; }
.q-row .av { width: 28px; height: 28px; font-size: 10px; }
[data-theme="dark"] .tag-green { background: #13351f; color: #4ade80; }
[data-theme="dark"] .tag-blue  { background: #1a2a4a; color: #8aa9e0; }
[data-theme="dark"] .tag-amber { background: #3a2a0d; color: #fbbf24; }
.app-window .tag-green { background: #dcfce7; color: #15803d; }

.art-chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 20px 18px 16px; }
.art-chart span {
  flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  opacity: .85;
}
.art-chart span:last-child, .art-chart span:nth-last-child(2) { opacity: 1; background: linear-gradient(180deg, #4ade80, #16a34a); }

/* ------------------------------ como funciona --------------------------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 30px; right: 30px; top: 31px; height: 2px;
  background: linear-gradient(90deg, var(--brand-300), transparent);
  opacity: .5;
}
.step { position: relative; padding: 0 6px; }
.step-num {
  position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 22px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 1.1rem; color: var(--brand-500); letter-spacing: -.02em;
}
[data-theme="dark"] .step-num { color: var(--brand-300); }
.step:first-child .step-num { background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: #fff; border-color: transparent; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--text-2); font-size: .96rem; margin: 0; }

/* ------------------------------- uso de dados --------------------------- */

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.split-head { position: sticky; top: 110px; }
.split-head p { margin-bottom: 28px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.principle {
  padding: 28px; border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--border);
}
.principle h3 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.principle h3 span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-500); font-size: .85rem; font-weight: 800;
}
[data-theme="dark"] .principle h3 span { color: var(--brand-300); }
.principle p { color: var(--text-2); margin: 0; font-size: .96rem; }

/* -------------------------------- segurança ----------------------------- */

.section-dark {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--navy-1), var(--navy-2)); color: #e6edf9;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 360px at 50% 0%, rgba(80, 116, 179, .35), transparent 70%);
}
.section-dark .eyebrow { color: #8aa9e0; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: #a9b8d4; }
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.section-dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: #a9b8d4; }
.section-dark .tile-icon { background: rgba(138, 169, 224, .14); color: #8aa9e0; }

/* ---------------------------------- FAQ --------------------------------- */

.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--brand-300); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235074b3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--text-2); }

/* --------------------------------- contato ------------------------------ */

.cta-wrap { padding: 0 0 104px; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 56px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600) 55%, var(--navy-1));
  box-shadow: 0 24px 60px rgba(52, 82, 140, .35);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(420px 260px at 90% 10%, rgba(255, 255, 255, .18), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 36px 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
          mask-image: linear-gradient(90deg, transparent, #000);
}
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: #fff; }
.cta p { color: #d4def2; margin: 0; max-width: 520px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.section-dark + .section { border-top: 0; }

/* --------------------------------- rodapé ------------------------------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { color: var(--text-2); max-width: 320px; margin: 16px 0 0; }
.brand--footer .brand-mark { width: 34px; height: 34px; }
.brand--footer .brand-mark svg { width: 20px; height: 20px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 6px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .86rem;
}
.footer-legal p { margin: 0; }

/* ------------------------------ página legal ---------------------------- */

.legal-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--navy-1), var(--navy-2)); color: #e6edf9; padding: 80px 0 72px;
}
.legal-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 300px at 85% 0%, rgba(80, 116, 179, .4), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
          mask-image: linear-gradient(180deg, #000, transparent);
}
.legal-hero .eyebrow { color: #8aa9e0; }
.legal-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); color: #fff; }
.legal-meta { color: #a9b8d4; margin: 0; }

.page-legal .section { padding: 72px 0 96px; }
.legal { font-size: 1.02rem; }
.legal-intro {
  font-size: 1.1rem; color: var(--text); padding: 22px 24px; margin-bottom: 40px;
  background: var(--bg-alt); border: 1px solid var(--border); border-left: 4px solid var(--brand-400); border-radius: 12px;
}
.legal h2 { font-size: 1.35rem; margin: 44px 0 14px; padding-top: 4px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--brand-400); }
.legal-contact { list-style: none; padding: 0 !important; }
.legal-copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3) !important; font-size: .9rem; }
.legal-back { margin-top: 24px; }

/* --------------------------------- reveal ------------------------------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .app-window { transform: none; }
}

/* ------------------------------- responsivo ----------------------------- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 640px; margin-inline: auto; width: 100%; }
  .app-window { transform: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps::before { display: none; }
  .split, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .split-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute; top: 70px; left: 0; right: 0; margin: 0;
    display: none; flex-direction: column; gap: 2px; padding: 12px 16px 18px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-burger { display: inline-grid; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .cards-3 { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .section { padding: 72px 0; }
  .header-cta { display: none; }
  .hero { padding: 64px 0 100px; }
  .hero-visual { display: none; }
  .trust { margin-top: -44px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--border); }
  .bento, .principles { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; grid-template-columns: 1fr; }
  .tile, .card, .principle { padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 32px 22px; border-radius: 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .btn-white { word-break: break-all; }
}
