/* ============================================================
   Totusia — totusia.com.br
   TOTVS × Inteligência Artificial
   @author Rogério Sá
   ============================================================ */

:root {
  /* Marca — azul-marinho + ciano elétrico (decisão 30/07/2026) */
  --brand-50:  #eef4ff;
  --brand-100: #dbe7fe;
  --brand-200: #bfd4fd;
  --brand-300: #93b4fa;
  --brand-400: #5b8cff;
  --brand-500: #2f6bff;
  --brand-600: #2456d6;
  --brand-700: #1e3c9c;
  --brand-900: #101f52;
  --lime:      #22d3ee; /* acento de destaque nas seções escuras */
  --cyan:      #38bdf8;

  /* triplas RGB para rgba(var(--tint), a) */
  --tint:  47,107,255;
  --tint2: 34,211,238;
  --tint3: 56,189,248;

  --ink:   #060b1a;
  --ink-2: #0a1226;

  --bg:      #ffffff;
  --soft:    #f5f7fc;
  --fg:      #101828;
  --muted:   #556077;
  --border:  #e3e8f2;

  --grad-brand: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  --grad-text:  linear-gradient(92deg, var(--brand-600), var(--cyan) 55%, var(--brand-500));
  --grad-dark:  linear-gradient(165deg, var(--ink-2), var(--ink));
  --grad-line:  linear-gradient(90deg, var(--brand-700), var(--brand-500), var(--lime));

  --sh-sm: 0 1px 2px rgba(6,17,13,.05), 0 4px 14px -6px rgba(6,17,13,.08);
  --sh-md: 0 6px 22px -8px rgba(6,17,13,.16);
  --sh-lg: 0 18px 50px -18px rgba(6,17,13,.28);
  --sh-brand: 0 10px 30px -10px rgba(var(--tint),.45);

  --r-sm: 13px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --ease: cubic-bezier(.22,1,.36,1);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { margin-inline: auto; width: 100%; max-width: 1200px; padding-inline: 20px; }
section { padding-bottom: clamp(72px, 10vw, 128px); }

/* ---------- utilitários ---------- */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--brand-700);
}
.sec-head { margin-inline: auto; max-width: 700px; text-align: center; }
.sec-head h2 { margin-top: 14px; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.sec-head p { margin-top: 18px; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.6; }
.tnum { font-variant-numeric: tabular-nums; }

/* motivo diagonal 45° (assinatura visual) */
.motif-45 {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(45deg, rgba(var(--tint),.07) 0 2px, transparent 2px 18px);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 14px; font-weight: 700; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
  position: relative; overflow: hidden;
}
/* brilho varrendo o botão primário no hover */
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .55s var(--ease); pointer-events: none;
}
.btn-primary:hover::before { left: 130%; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-md { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-outline { background: var(--bg); border-color: var(--border); color: var(--fg); box-shadow: var(--sh-sm); }
.btn-outline:hover { transform: translateY(-2px); border-color: var(--brand-200); box-shadow: var(--sh-md); }
.btn-white { background: #fff; color: var(--brand-700); box-shadow: var(--sh-md); }
.btn-white:hover { transform: translateY(-2px); }
.btn-ghost-dark { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(8px); }
.btn-ghost-dark:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); }

/* ---------- announce bar ---------- */
.announce {
  background: var(--grad-brand); color: #fff; text-align: center;
  font-size: 13.5px; font-weight: 600; padding: 9px 16px;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 72px;
  display: flex; align-items: center;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px) saturate(150%);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { font-size: 14.5px; font-weight: 600; padding: 8px 14px; border-radius: 10px; color: var(--fg); }
.nav-links a:hover { background: rgba(16,32,26,.06); }
.nav-cta { display: none; }
.nav-burger {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 12px 10px;
  background: none; border: 0;
}
.nav-burger span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: .25s; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* drawer mobile */
.drawer {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden;
}
.drawer-overlay {
  position: absolute; inset: 0; background: rgba(6,17,13,.4);
  opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px);
}
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(330px, 86%);
  background: var(--bg); box-shadow: var(--sh-lg);
  transform: translateX(100%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column; padding: 22px;
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-overlay { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel a { padding: 13px 10px; font-weight: 600; font-size: 16px; border-radius: 10px; }
.drawer-panel a:hover { background: var(--soft); }
.drawer-panel .btn { margin-top: auto; }
.drawer-close { align-self: flex-end; background: none; border: 0; font-size: 26px; line-height: 1; padding: 6px 10px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 7vw, 92px); }
.hero-bg { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 480px at 75% -10%, rgba(var(--tint),.14), transparent 60%),
    radial-gradient(700px 420px at 8% 30%, rgba(var(--tint3),.12), transparent 60%),
    linear-gradient(180deg, var(--soft), #ffffff 70%);
}
.hero-grid-lines { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(var(--tint),.05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--tint),.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, black, transparent);
  mask-image: radial-gradient(70% 60% at 50% 30%, black, transparent);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; }
.hero-blob.b1 { width: 400px; height: 400px; background: rgba(var(--tint),.22); top: -80px; right: -60px; animation: drift 18s ease-in-out infinite alternate; }
.hero-blob.b2 { width: 360px; height: 360px; background: rgba(var(--tint2),.16); bottom: -120px; left: -80px; animation: drift 22s ease-in-out infinite alternate-reverse; }

.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.hero-copy { text-align: center; }
@media (min-width: 980px) { .hero-copy { text-align: left; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border); background: rgba(255,255,255,.72); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px rgba(var(--tint),.18); animation: pulse-dot 2.2s infinite; }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -.04em;
}
.hero-sub {
  margin-top: 20px; margin-inline: auto;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 560px;
}
@media (min-width: 980px) { .hero-sub { margin-inline: 0; } }
.hero-sub strong { color: var(--fg); }

.hero-ctas { margin-top: 32px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
@media (min-width: 980px) { .hero-ctas { justify-content: flex-start; } }
@media (max-width: 460px) { .hero-ctas { flex-direction: column; } .hero-ctas .btn { width: 100%; } }

.hero-stats { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
@media (min-width: 980px) { .hero-stats { justify-content: flex-start; } }
.hero-stats .hs { display: flex; align-items: baseline; gap: 7px; }
.hero-stats .hs b { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats .hs span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

/* mockup de chat com o ERP */
.hero-visual { position: relative; }
.hero-pedestal { position: absolute; left: 10%; right: 10%; bottom: -30px; height: 90px; background: radial-gradient(ellipse, rgba(var(--tint),.35), transparent 70%); filter: blur(46px); z-index: -1; }
.app-frame {
  position: relative; border-radius: var(--r-xl); padding: 14px;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, rgba(var(--tint),.55), rgba(var(--tint2),.4), rgba(var(--tint3),.5)) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--sh-lg);
  animation: float 7s ease-in-out infinite;
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; }
.app-bar i:nth-child(1){ background: #ff5f57; } .app-bar i:nth-child(2){ background: #febc2e; } .app-bar i:nth-child(3){ background: #28c840; }
.app-bar .url { margin-left: 8px; font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); background: var(--soft); border: 1px solid var(--border); border-radius: 8px; padding: 3px 10px; }
.app-screen { border-radius: 18px; border: 1px solid var(--border); background: var(--soft); padding: 18px; }
.chat { display: flex; flex-direction: column; gap: 12px; }
/* a conversa "acontece": mensagens entram em sequência (só com JS ativo) */
html.anim .chat .msg { opacity: 0; animation: chat-in .55s var(--ease) forwards; }
html.anim .chat .msg:nth-child(1) { animation-delay: .5s; }
html.anim .chat .msg:nth-child(2) { animation-delay: 1.4s; }
html.anim .chat .msg:nth-child(3) { animation-delay: 2.7s; }
html.anim .chat .msg:nth-child(4) { animation-delay: 3.6s; }
html.anim .chat .bars i { transform-origin: bottom; animation: bar-grow .6s var(--ease) backwards; }
html.anim .chat .bars i:nth-child(1) { animation-delay: 2.0s; }
html.anim .chat .bars i:nth-child(2) { animation-delay: 2.08s; }
html.anim .chat .bars i:nth-child(3) { animation-delay: 2.16s; }
html.anim .chat .bars i:nth-child(4) { animation-delay: 2.24s; }
html.anim .chat .bars i:nth-child(5) { animation-delay: 2.32s; }
html.anim .chat .bars i:nth-child(6) { animation-delay: 2.4s; }
.chat .msg { max-width: 88%; border-radius: 14px; padding: 11px 14px; font-size: 13.5px; line-height: 1.45; box-shadow: var(--sh-sm); }
.chat .user { align-self: flex-end; background: var(--grad-brand); color: #fff; border-bottom-right-radius: 4px; }
.chat .bot  { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat .bot .kpi { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--brand-700); margin: 6px 0 2px; }
.chat .bot small { color: var(--muted); }
.chat .bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 10px; }
.chat .bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--brand-200); }
.chat .bars i.hi { background: var(--brand-500); }
.chat .chip { display: inline-flex; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 8px; padding: 4px 10px; }
.float-card {
  position: absolute; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--sh-md);
  padding: 11px 15px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 9px;
}
.float-card .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; }
.float-card.fc1 { left: -38px; top: -18px; animation: float 6s ease-in-out infinite; }
.float-card.fc1 .ic { background: var(--brand-100); }
.float-card.fc2 { right: -30px; bottom: -20px; animation: float 7.5s .6s ease-in-out infinite; }
.float-card.fc2 .ic { background: #fdf3d8; }
.float-card small { display: block; font-weight: 500; color: var(--muted); }
@media (max-width: 560px) { .float-card { display: none; } }

/* ---------- trust bar ---------- */
.trust { border-block: 1px solid var(--border); background: var(--soft); padding: 22px 0 !important; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 34px; }
.trust-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.trust-item { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; color: var(--fg); opacity: .82; }
.trust-item i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; font-style: normal; }

/* ---------- segmentos ---------- */
.segments { padding-top: clamp(64px, 8vw, 100px); }
.seg-grid { margin-top: 50px; display: grid; gap: 20px; }
@media (min-width: 860px) { .seg-grid { grid-template-columns: 1fr 1fr; } }
.seg-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.seg-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--brand-200); }
.seg-card.dark { background: var(--grad-dark); color: #fff; border-color: rgba(255,255,255,.08); }
.seg-card.light { background: linear-gradient(170deg, var(--brand-50), #fff); }
.seg-card .seg-tag { display: inline-flex; align-self: flex-start; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; border-radius: 999px; padding: 6px 14px; }
.seg-card.dark .seg-tag { background: rgba(var(--tint2),.15); color: var(--lime); border: 1px solid rgba(var(--tint2),.3); }
.seg-card.light .seg-tag { background: var(--brand-100); color: var(--brand-700); }
.seg-card h3 { margin-top: 18px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.seg-card p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; }
.seg-card.dark p { color: rgba(255,255,255,.75); }
.seg-card.light p { color: var(--muted); }
.seg-card ul { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; font-weight: 600; }
.seg-card li { display: flex; gap: 10px; align-items: flex-start; }
.seg-card li::before { content: "✓"; flex: none; width: 21px; height: 21px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.seg-card.dark li::before { background: rgba(var(--tint2),.16); color: var(--lime); }
.seg-card.light li::before { background: var(--brand-100); color: var(--brand-700); }
.seg-card .seg-cta { margin-top: 26px; }
.seg-card .motif-45 { opacity: .35; }
.seg-card.dark .motif-45 { background: repeating-linear-gradient(45deg, rgba(var(--tint2),.06) 0 2px, transparent 2px 18px); }

/* ---------- stats ---------- */
.stats-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--grad-dark); color: #fff;
  padding: clamp(34px, 5vw, 54px);
  box-shadow: var(--sh-lg);
}
.stats-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 260px at 15% 0%, rgba(var(--tint),.25), transparent 60%),
              radial-gradient(420px 240px at 90% 100%, rgba(var(--tint2),.12), transparent 60%);
  animation: glow-breathe 12s ease-in-out infinite alternate;
}
.stats-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; }
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.04em;
  color: #fff;
}
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.7); max-width: 210px; line-height: 1.5; }
.stat span strong { color: #fff; }

/* ---------- problema (antes/depois) ---------- */
.vs-grid { margin-top: 50px; display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 860px) { .vs-grid { grid-template-columns: 1fr auto 1fr; } }
.vs-col { border-radius: var(--r-lg); padding: 30px; }
.vs-col h3 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.vs-col ul { margin-top: 20px; display: flex; flex-direction: column; gap: 13px; font-size: 14.5px; }
.vs-col li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.5; }
.vs-col li i { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; margin-top: 1px; }
.vs-bad { border: 1px solid var(--border); background: var(--soft); }
.vs-bad li i { background: #fde8e8; color: #c0392b; }
.vs-bad li { color: var(--muted); }
.vs-good { border: 1px solid var(--brand-200); background: linear-gradient(170deg, var(--brand-50), #fff); box-shadow: var(--sh-md); }
.vs-good li i { background: var(--brand-100); color: var(--brand-700); }
.vs-badge {
  align-self: center; justify-self: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; box-shadow: var(--sh-md);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--brand-700);
}
@media (max-width: 859px) { .vs-badge { transform: rotate(90deg); } }

/* ---------- bento de produtos ---------- */
.bento { margin-top: 50px; display: grid; gap: 18px; }
@media (min-width: 560px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.bento-card {
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--bg);
  padding: 26px; box-shadow: var(--sh-sm); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--sh-lg); }
.bento-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; transition: transform .3s var(--ease); }
.bento-card:hover .bento-ic { transform: scale(1.12) rotate(-4deg); }
.ic-a { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.ic-b { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.ic-c { background: linear-gradient(135deg, #fef9c3, #fde68a); }
.ic-d { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.ic-e { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.ic-f { background: linear-gradient(135deg, #ecfccb, #d9f99d); }
.bento-card h3 { margin-top: 16px; font-size: 17.5px; font-weight: 700; }
.bento-card p { margin-top: 9px; font-size: 14px; line-height: 1.55; color: var(--muted); flex: 1; }
.bento-card .tag { margin-top: 14px; align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 8px; padding: 4px 10px; }

/* ---------- como funciona (steps) ---------- */
.steps { margin-top: 50px; display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg); padding: 24px; box-shadow: var(--sh-sm); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.step em { display: block; margin-top: 12px; font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); }

/* ---------- calculadora ---------- */
.calc-card {
  margin-top: 50px; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--sh-lg);
  display: grid;
}
@media (min-width: 860px) { .calc-card { grid-template-columns: 1fr 1fr; } }
.calc-in { padding: clamp(28px, 4vw, 44px); background: var(--bg); }
.calc-in h3 { font-size: 19px; font-weight: 800; }
.calc-field { margin-top: 26px; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; }
.calc-field label output { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--brand-700); }
.calc-field input[type=range] { width: 100%; margin-top: 12px; appearance: none; height: 8px; border-radius: 99px; background: var(--brand-100); outline: none; }
.calc-field input[type=range]::-webkit-slider-thumb {
  appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-500); box-shadow: var(--sh-sm);
  transition: transform .15s; cursor: grab;
}
.calc-field input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-500); cursor: grab; }
.calc-out {
  position: relative; padding: clamp(28px, 4vw, 44px);
  background: var(--grad-dark); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.calc-out .glow { position: absolute; inset: 0; background: radial-gradient(420px 260px at 80% 10%, rgba(var(--tint),.28), transparent 60%); pointer-events: none; }
.calc-out .label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.calc-out .big {
  margin-top: 8px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  color: var(--lime);
}
.calc-out .note {
  margin-top: 22px; border: 1px dashed rgba(255,255,255,.28); background: rgba(255,255,255,.05);
  border-radius: var(--r-md); padding: 16px 18px; font-size: 13.5px; color: rgba(255,255,255,.78); line-height: 1.55;
}
.calc-out .note b { color: #fff; }
.calc-out .badge-est { display: inline-block; margin-bottom: 8px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: rgba(var(--tint2),.15); color: var(--lime); border-radius: 6px; padding: 3px 9px; }

/* ---------- cases ---------- */
.cases { background: var(--soft); border-top: 1px solid var(--border); padding-top: clamp(64px, 8vw, 100px); }
.cases-grid { margin-top: 50px; display: grid; gap: 18px; }
@media (min-width: 900px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } .case-hero { grid-row: span 2; } }
.case-hero {
  border-radius: var(--r-lg); padding: 32px; color: #fff;
  background: linear-gradient(170deg, var(--brand-900), var(--ink-2));
  display: flex; flex-direction: column; box-shadow: var(--sh-lg);
  position: relative; overflow: hidden;
}
.case-hero .stars { color: #fbbf24; letter-spacing: 2px; font-size: 15px; }
.case-hero blockquote { margin: 18px 0 0; font-size: 17.5px; line-height: 1.6; font-weight: 500; }
.case-hero .result { margin-top: 22px; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--lime); }
.case-hero .who { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 12px; }
.case-hero .pills { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.case-hero .pills span { font-size: 11.5px; font-weight: 700; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); border-radius: 999px; padding: 5px 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; flex: none; }
.av-1 { background: linear-gradient(135deg, var(--brand-500), var(--cyan)); }
.av-2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-3 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.av-4 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.av-5 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.who div b { display: block; font-size: 14.5px; }
.who div span { font-size: 12.5px; opacity: .7; }
.case-card {
  border-radius: var(--r-lg); border: 1px solid var(--border); background: #fff;
  padding: 24px; box-shadow: var(--sh-sm); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.case-card .sector { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-700); }
.case-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--fg); flex: 1; }
.case-card .result { margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--brand-700); }
.case-card .who { margin-top: 16px; display: flex; align-items: center; gap: 11px; }
.case-card .who div span { color: var(--muted); }
.cases-note { margin-top: 26px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- monte o seu projeto (calculadora de investimento) ---------- */
.mp { margin-top: 44px; }
.mp-step { font-size: 13px; font-weight: 800; color: var(--fg); margin: 0 0 11px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mp-step em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12.5px; }

.mp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 26px; }
.mp-opt {
  text-align: left; border: 1.5px solid var(--border); border-radius: 14px; padding: 13px 14px;
  background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.mp-opt:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.mp-opt.on { border-color: var(--brand-500); background: var(--brand-50); }
.mp-opt b { display: block; font-family: var(--font-display); font-size: 15px; }
.mp-opt i { font-style: normal; display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.mp-opt u { text-decoration: none; display: block; font-size: 11px; font-weight: 800; color: var(--brand-700); margin-top: 7px; }

.mp-grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 1000px) { .mp-grid { grid-template-columns: 1fr 344px; } }

.mp-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 16px; }
.mp-tab {
  border: 2px solid var(--border); background: var(--bg); border-radius: 13px; padding: 12px 10px; cursor: pointer;
  transition: all .2s var(--ease); display: flex; flex-direction: column; align-items: center; gap: 5px; line-height: 1.2;
}
.mp-tab:hover { border-color: var(--brand-400); transform: translateY(-2px); }
.mp-tab em { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--fg); text-align: center; }
.mp-tab span { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 2px 9px; transition: all .2s; }
.mp-tab.on { border-color: var(--brand-500); background: var(--brand-50); }
.mp-tab.on em { color: var(--brand-700); }
.mp-tab.on span { background: var(--brand-600); color: #fff; }

.mp-svcs { display: grid; gap: 8px; }
@media (min-width: 640px) { .mp-svcs { grid-template-columns: 1fr 1fr; } }
.mp-grp {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700);
  grid-column: 1 / -1; margin: 14px 0 -2px; display: flex; align-items: center; gap: 9px;
}
.mp-grp:first-child { margin-top: 0; }
.mp-grp::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.mp-svc {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 12px; background: var(--bg); cursor: pointer;
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; transition: border-color .2s, background .2s;
}
.mp-svc:hover { border-color: var(--brand-300); }
.mp-svc.on { border-color: var(--brand-500); background: var(--brand-50); }
.mp-svc input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand-600); cursor: pointer; }
.mp-svc b { font-size: 13.5px; font-weight: 800; line-height: 1.3; display: block; }
.mp-svc i { font-style: normal; font-size: 11.5px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.4; }
.mp-meta { font-size: 11px; color: var(--muted); margin-top: 6px; font-weight: 700; }
.mp-meta b { display: inline; font-size: 11px; color: var(--brand-700); }
.mp-hrs { grid-column: 2; display: none; align-items: center; gap: 7px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.mp-svc.on .mp-hrs { display: flex; }
.mp-hrs button { width: 24px; height: 26px; border: 1px solid var(--border); background: var(--bg); border-radius: 7px; cursor: pointer; font-weight: 800; color: var(--brand-700); font-size: 14px; line-height: 1; }
.mp-hrs button:hover { background: var(--brand-50); }
.mp-hrs span { font-size: 12px; font-weight: 800; min-width: 34px; text-align: center; }
.mp-hrs em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: auto; font-weight: 800; }

.mp-sum { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--sh-md); overflow: hidden; }
@media (min-width: 1000px) { .mp-sum { position: sticky; top: 96px; } }
.mp-out { background: var(--grad-dark); color: #fff; padding: 22px 20px 20px; text-align: center; }
.mp-out .eyebrow { color: rgba(255,255,255,.6); font-size: 11px; }
.mp-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 44px); line-height: 1; margin: 6px 0 3px; color: #fff; letter-spacing: -.03em; }
.mp-big small { font-size: 16px; font-weight: 600; opacity: .6; margin-left: 2px; }
.mp-out .mp-subline { font-size: 12px; color: rgba(255,255,255,.7); margin: 0; }
.mp-pill { display: inline-flex; gap: 6px; margin-top: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); font-size: 12px; }

.mp-prazo { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.13); text-align: left; }
.mp-prazo-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.mp-prazo-top span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 800; }
.mp-prazo-top b { font-family: var(--font-display); font-size: 22px; color: #fff; line-height: 1; }
.mp-bars { display: flex; gap: 3px; height: 10px; }
.mp-bar { border-radius: 4px; min-width: 5px; transition: flex-grow .3s var(--ease); }
.mp-fases { list-style: none; padding: 0; margin: 11px 0 0; display: grid; gap: 5px; }
.mp-fases li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(255,255,255,.8); }
.mp-fases i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mp-fases b { margin-left: auto; font-weight: 800; color: #fff; }
.mp-cap { font-size: 10.5px; color: rgba(255,255,255,.45); margin: 10px 0 0; }

.mp-list { padding: 14px 18px; max-height: 34vh; overflow: auto; }
.mp-li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.mp-li:last-child { border-bottom: 0; }
.mp-li i { font-style: normal; color: var(--muted); font-size: 10.5px; display: block; }
.mp-li b { white-space: nowrap; }
.mp-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 0; line-height: 1.5; }

.mp-mix { padding: 13px 18px 15px; border-top: 1px solid var(--border); background: #fbfcfe; }
.mp-mix-t { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.mp-mix table { width: 100%; border-collapse: collapse; }
.mp-mix td { font-size: 12px; padding: 4px 0; vertical-align: baseline; }
.mp-mix td:first-child { font-weight: 700; color: var(--fg); }
.mp-mix td:nth-child(2) { color: var(--muted); text-align: right; padding-right: 9px; }
.mp-mix td:last-child { text-align: right; font-weight: 800; white-space: nowrap; }
.mp-media { font-size: 11px; color: var(--muted); margin: 9px 0 0; padding-top: 8px; border-top: 1px dashed var(--border); }
.mp-media b { color: var(--brand-700); }

.mp-foot { padding: 16px 18px 18px; background: var(--soft); border-top: 1px solid var(--border); }
.mp-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.mp-foot .btn { width: 100%; margin-top: 10px; }
.mp-disc { font-size: 11px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; text-align: center; }

/* ---------- FAQ ---------- */
.faq { background: var(--soft); border-top: 1px solid var(--border); padding-top: clamp(64px, 8vw, 100px); }
.faq-list { margin-top: 44px; margin-inline: auto; max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details { border-radius: 15px; border: 1px solid var(--border); background: #fff; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-list details[open] { border-color: var(--brand-200); box-shadow: var(--sh-md); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 19px 22px;
  font-size: 15.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus {
  flex: none; width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 16px; font-weight: 500; color: var(--muted);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq-list details[open] summary .plus { transform: rotate(45deg); background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.faq-list .faq-body { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ---------- CTA final ---------- */
.final { padding-top: clamp(40px, 6vw, 70px); }
.final-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--brand-700), var(--brand-600) 50%, var(--brand-900));
  color: #fff; text-align: center;
  padding: clamp(48px, 8vw, 92px) clamp(22px, 5vw, 60px);
  box-shadow: var(--sh-lg);
}
.final-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 300px at 20% 0%, rgba(var(--tint2),.2), transparent 60%),
              radial-gradient(420px 260px at 85% 100%, rgba(var(--tint3),.22), transparent 60%);
}
.final-grid-w { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, black, transparent);
  mask-image: radial-gradient(60% 70% at 50% 40%, black, transparent);
}
.final-card h2 { position: relative; font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.final-card p { position: relative; margin: 18px auto 0; max-width: 620px; font-size: clamp(1rem, 1.4vw, 1.18rem); color: rgba(255,255,255,.85); line-height: 1.6; }
.final-ctas { position: relative; margin-top: 34px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--soft); padding: 56px 0 30px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 760px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: var(--muted); max-width: 280px; line-height: 1.6; }
.footer h4 { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: var(--fg); opacity: .82; }
.footer-col a:hover { opacity: 1; color: var(--brand-700); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: #fff;
  display: grid; place-items: center; transition: transform .2s var(--ease), border-color .2s;
}
.footer-social a:hover { transform: translateY(-2px); border-color: var(--brand-200); }

/* ---------- sticky CTA mobile + whatsapp float ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  transform: translateY(100%); transition: transform .35s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta b { font-size: 14px; }
@media (min-width: 720px) { .sticky-cta { display: none; } }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(37,211,102,.6);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.45);
  animation: wa-ring 3s ease-out infinite; pointer-events: none;
}
@media (max-width: 719px) { .wa-float { bottom: 84px; } }

/* ---------- reveal ---------- */
html.anim .reveal { opacity: 0; transform: translateY(26px); }
html.anim .reveal.in { animation: reveal .7s var(--ease) forwards; }
.d1 { animation-delay: .08s !important; } .d2 { animation-delay: .16s !important; } .d3 { animation-delay: .24s !important; }

/* ---------- keyframes ---------- */
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { 0% { transform: translate(0,0); } 100% { transform: translate(40px, 30px); } }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 4px rgba(var(--tint),.18); } 50% { box-shadow: 0 0 0 8px rgba(var(--tint),.06); } }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes glow-breathe { 0% { transform: translate(0,0); opacity: .85; } 100% { transform: translate(26px,-14px); opacity: 1; } }
@keyframes badge-float { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,-5px); } }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
@keyframes num-pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.num-pop { animation: num-pop .35s var(--ease); display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.anim .reveal { opacity: 1; transform: none; }
  html.anim .chat .msg { opacity: 1; }
}

