/* LUB AI · lubai.com.br
   Layout: faixas largas alternando papel claro e painéis em tinta; o ponto do "lub." é o motivo gráfico (cor de destaque).
   Tipografia: Poppins em todos os papéis, com hierarquia por peso e tamanho. */

:root {
  --paper: #f5f6f8;
  --surface: #ffffff;
  --ink: #0a0c10;
  --ink-2: #1b1f27;
  --muted: #596170;
  --line: #e2e5eb;
  --accent: #3552f2;
  --accent-ink: #ffffff;
  --accent-soft: #e9edff;
  --signal: #13b26f;
  --panel: #0a0c10;
  --panel-fg: #f2f4f8;
  --panel-muted: #9aa3b2;
  --panel-line: #232834;
  --logo-filter: none;
  --shadow: 0 1px 2px rgba(10, 12, 16, .04), 0 12px 32px -12px rgba(10, 12, 16, .14);

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-md: 1rem;
  --fs-lg: 1.2rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  --fs-2xl: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  --fs-3xl: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0d12; --surface: #12151c; --ink: #f2f4f8; --ink-2: #d9dde5; --muted: #9aa3b2;
    --line: #232834; --accent: #7d92ff; --accent-ink: #0b0d12; --accent-soft: #1a2042; --signal: #2fd28c;
    --panel: #161a23; --panel-fg: #f2f4f8; --panel-muted: #9aa3b2; --panel-line: #2a3040;
    --logo-filter: invert(1); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0d12; --surface: #12151c; --ink: #f2f4f8; --ink-2: #d9dde5; --muted: #9aa3b2;
  --line: #232834; --accent: #7d92ff; --accent-ink: #0b0d12; --accent-soft: #1a2042; --signal: #2fd28c;
  --panel: #161a23; --panel-fg: #f2f4f8; --panel-muted: #9aa3b2; --panel-line: #2a3040;
  --logo-filter: invert(1); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.dot { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 38rem; line-height: 1.6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; filter: var(--logo-filter); }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--muted);
  padding: .5rem .75rem; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: "."; color: var(--accent); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; cursor: pointer;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--signal); color: #04140c; }
.btn-sm { padding: .55rem 1rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: var(--fs-md); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 6vw, 6rem) clamp(3rem, 6vw, 5.5rem); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 80% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--fs-3xl); font-weight: 600; margin-top: 1.1rem; }
.hero h1 em { font-style: normal; font-weight: 300; }
.hero .lead { margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.25rem; font-size: var(--fs-sm); color: var(--muted); }
.hero-facts span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts svg { width: 16px; height: 16px; color: var(--accent); }

/* Chat demo */
.chat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden; max-width: 440px; width: 100%; justify-self: end;
}
.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-weight: 700; font-size: .72rem; letter-spacing: -.02em; white-space: nowrap;
}
.chat-avatar b { color: var(--accent); }
.chat-title { font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.chat-status { font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.chat-tag { margin-left: auto; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .25rem .6rem; border-radius: 999px; }
.chat-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; font-size: var(--fs-sm); background: var(--paper); }
.msg { max-width: 82%; padding: .6rem .9rem; border-radius: 16px; line-height: 1.5; animation: msg-in .5s cubic-bezier(.2,.7,.2,1) both; }
.msg small { display: block; font-size: .68rem; color: var(--muted); margin-top: .2rem; text-align: right; }
.msg-in { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-out { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-out small { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.msg-sys { align-self: center; font-size: var(--fs-xs); color: var(--muted); background: var(--surface); border: 1px dashed var(--line); padding: .35rem .8rem; border-radius: 999px; max-width: 100%; text-align: center; }
.msg-sys b { color: var(--accent); font-weight: 600; }
.chat-body .msg:nth-child(2) { animation-delay: .35s; }
.chat-body .msg:nth-child(3) { animation-delay: .9s; }
.chat-body .msg:nth-child(4) { animation-delay: 1.4s; }
.chat-body .msg:nth-child(5) { animation-delay: 1.9s; }
.chat-body .msg:nth-child(6) { animation-delay: 2.3s; }
@keyframes msg-in { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); }
.section-head.split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }

/* Linhas de negócio */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.line-card {
  border-radius: 22px; padding: clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; gap: 1.1rem;
  min-width: 0; position: relative; overflow: hidden;
}
.line-card.dark { background: var(--panel); color: var(--panel-fg); }
.line-card.light { background: var(--surface); border: 1px solid var(--line); }
.line-card .line-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.line-card.light .line-icon { background: var(--accent-soft); color: var(--accent); }
.line-card .line-icon svg { width: 26px; height: 26px; }
.line-card h3 { font-size: var(--fs-xl); }
.line-card h3 span { font-weight: 300; }
.line-card p { color: var(--muted); }
.line-card.dark p, .line-card.dark li { color: var(--panel-muted); }
.line-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: var(--fs-sm); }
.line-card li { display: flex; gap: .6rem; align-items: baseline; }
.line-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.line-card .line-foot { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-sm); }
.line-card.dark .line-foot { border-color: var(--panel-line); }
.line-card .line-foot a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.line-card .line-foot a svg { width: 16px; height: 16px; transition: transform .2s; }
.line-card .line-foot a:hover svg { transform: translateX(3px); }
.line-card .model { color: var(--muted); }
.line-card.dark .model { color: var(--panel-muted); }

/* Tabela de serviços */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.svc-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.svc-table th, .svc-table td { text-align: left; padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.svc-table th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; background: var(--paper); }
.svc-table tr:last-child td { border-bottom: 0; }
.svc-table td:first-child { font-weight: 500; }
.svc-table td:first-child a { text-decoration: none; display: inline-flex; align-items: center; gap: .75rem; }
.svc-table td:first-child a:hover { color: var(--accent); }
.svc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.svc-ico svg { width: 18px; height: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); font-weight: 500;
  padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.pill.recurring { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); }

/* Produtos */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem; min-width: 0; transition: border-color .2s, transform .2s;
}
.product:hover { border-color: var(--ink); transform: translateY(-3px); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.product-ico svg { width: 22px; height: 22px; }
.badge { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.product h3 { font-size: 1.35rem; }
.product h3 span { font-weight: 300; }
.product > p { color: var(--muted); font-size: var(--fs-sm); }
.product ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: var(--fs-sm); }
.product li { display: flex; gap: .55rem; align-items: flex-start; }
.product li svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: .25rem; }
.price { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .1rem; }
.price .from { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.price .value { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.price .value small { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price .range { font-size: var(--fs-xs); color: var(--muted); }
.note { font-size: var(--fs-xs); color: var(--muted); margin-top: 1.25rem; }

/* Planos (página produtos) */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; background: var(--paper); display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.plan.featured { background: var(--panel); color: var(--panel-fg); border-color: var(--panel); }
.plan.featured .plan-desc, .plan.featured li { color: var(--panel-muted); }
.plan-name { font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.plan-price { font-size: 1.7rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.plan-price small { font-size: var(--fs-sm); font-weight: 400; opacity: .7; letter-spacing: 0; }
.plan-desc { font-size: var(--fs-sm); color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: var(--fs-sm); }
.plan li { display: flex; gap: .5rem; align-items: flex-start; }
.plan li svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: .3rem; }
.plan .btn { margin-top: auto; }
.product-block { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.product-block:first-of-type { border-top: 0; padding-top: 0; }
.product-block > * { min-width: 0; }
.product-block h2 { font-size: var(--fs-2xl); margin-top: .75rem; }
.product-block h2 span { font-weight: 300; }
.product-block .lead { margin-top: 1rem; font-size: var(--fs-md); }
.product-block .for { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; }

/* Processo */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { padding: 1.5rem; border-top: 2px solid var(--ink); display: grid; gap: .6rem; align-content: start; min-width: 0; }
.step .num { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); letter-spacing: .12em; }
.step h3 { font-size: 1.1rem; }
.step p { font-size: var(--fs-sm); color: var(--muted); }

/* Faixa de chamada */
.cta-band { background: var(--panel); color: var(--panel-fg); border-radius: 28px; padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: var(--fs-2xl); }
.cta-band p { color: var(--panel-muted); margin-top: .8rem; max-width: 36rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn-ghost { background: transparent; color: var(--panel-fg); border-color: var(--panel-line); }
.cta-band .btn-ghost:hover { border-color: var(--panel-fg); }
.cta-band .btn-primary { background: var(--panel-fg); color: var(--panel); }
.cta-band .btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.cta-band::after {
  content: "."; position: absolute; right: -1.5rem; bottom: -9rem; font-size: 24rem; line-height: 1; font-weight: 700;
  color: var(--accent); opacity: .18; pointer-events: none;
}

/* Page hero (páginas internas) */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: var(--fs-3xl); margin-top: 1rem; max-width: 18ch; }
.page-hero .lead { margin-top: 1.25rem; }

/* Soluções */
.solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.solution { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.2rem); display: grid; gap: 1rem; align-content: start; min-width: 0; scroll-margin-top: 96px; }
.solution-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.solution h3 { font-size: 1.35rem; display: flex; align-items: center; gap: .8rem; }
.solution p { color: var(--muted); }
.solution ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: var(--fs-sm); }
.solution li { display: flex; gap: .55rem; align-items: flex-start; }
.solution li svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: .25rem; }

/* Sobre */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-grid > * { min-width: 0; }
.prose { display: grid; gap: 1.1rem; color: var(--ink-2); font-size: 1.05rem; max-width: 36rem; }
.mvv { display: grid; gap: 1rem; }
.mvv-item { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 1.5rem; display: grid; gap: .5rem; }
.mvv-item h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.mvv-item p { color: var(--muted); font-size: var(--fs-sm); }
.diffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.diff { display: grid; gap: .6rem; align-content: start; padding: 1.5rem 0; border-top: 1px solid var(--line); min-width: 0; }
.diff .svc-ico { margin-bottom: .3rem; }
.diff h3 { font-size: 1.1rem; }
.diff p { color: var(--muted); font-size: var(--fs-sm); }

/* Formulários */
.form-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.form-layout > * { min-width: 0; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-sm); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #d64545; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: var(--fs-sm); cursor: pointer; background: var(--paper); transition: all .15s; user-select: none;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-foot p { font-size: var(--fs-xs); color: var(--muted); max-width: 26rem; }
.form-success { display: grid; gap: 1rem; justify-items: start; }
.form-success .check { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.form-success .check svg { width: 26px; height: 26px; }
.form-success h3 { font-size: var(--fs-xl); }
.form-success p { color: var(--muted); }

.side { display: grid; gap: 1rem; }
.side-card { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 1.5rem; display: grid; gap: .6rem; }
.side-card.dark { background: var(--panel); color: var(--panel-fg); border-color: var(--panel); }
.side-card.dark p { color: var(--panel-muted); }
.side-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.side-card h3 svg { width: 20px; height: 20px; color: var(--accent); }
.side-card p { font-size: var(--fs-sm); color: var(--muted); }
.side-card .big { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; word-break: break-word; }
.side-card ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: var(--fs-sm); color: var(--muted); }
.side-card.dark ol { color: var(--panel-muted); }
.placeholder-flag { display: inline-block; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #a15c00; background: #fff1db; border-radius: 6px; padding: .1rem .4rem; vertical-align: middle; }

/* Área do cliente */
.login-wrap { min-height: calc(100vh - 72px - 220px); display: grid; place-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.login { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--shadow); display: grid; gap: 1.25rem; }
.login img { height: 34px; width: auto; filter: var(--logo-filter); }
.login h1 { font-size: 1.6rem; }
.login > p { color: var(--muted); font-size: var(--fs-sm); }
.login form { display: grid; gap: 1rem; }
.login .row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--muted); gap: 1rem; flex-wrap: wrap; }
.login .row label { display: inline-flex; gap: .4rem; align-items: center; }
.login .row a { color: var(--accent); text-decoration: none; font-weight: 500; }
.notice { font-size: var(--fs-sm); border-radius: 12px; padding: .9rem 1rem; background: var(--accent-soft); color: var(--ink); }
.notice a { color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); color: var(--panel-fg); padding-block: 4rem 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid > * { min-width: 0; }
.footer-brand img { height: 30px; width: auto; filter: invert(1); }
:root[data-theme="dark"] .footer-brand img { filter: invert(1); }
.footer-brand p { color: var(--panel-muted); font-size: var(--fs-sm); margin-top: 1rem; max-width: 22rem; }
.footer-tag { margin-top: 1rem; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--panel-muted); }
.site-footer h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--panel-muted); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: var(--fs-sm); }
.site-footer a { text-decoration: none; color: var(--panel-fg); opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--accent); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--panel-line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--panel-muted); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; background: var(--signal); color: #04140c;
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(19, 178, 111, .6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: .25rem;
    position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem max(20px, env(safe-area-inset-right, 0px)) 1.5rem max(20px, env(safe-area-inset-left, 0px));
  }
  .nav.open a { padding: .8rem 1rem; font-size: var(--fs-md); }
  .hero-grid, .about-grid, .form-layout, .product-block { grid-template-columns: 1fr; }
  .chat { justify-self: start; }
  .products, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .diffs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .lines, .solutions, .form-grid, .diffs { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; }
  .header-actions .btn-quote { display: none; }
}
@media (max-width: 480px) {
  .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
