/* ============================================================
   LIVON — design system do site institucional
   Ver sites/livon/DESIGN.md antes de mexer.
   ============================================================ */

:root {
  --navy: #14225D;
  --navy-deep: #0C1638;
  --azul: #015AD9;
  --azul-vivo: #2E7CF6;
  --lime: #BDFF1B;
  --ceu: #EAF1FD;
  --paper: #F7F8FE;
  --tinta: #1A2138;
  --cinza: #5A6478;
  --branco: #FFFFFF;
  --ok: #1FBF71;
  --alerta: #F5B921;
  --risco: #E5484D;

  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Figtree', sans-serif;
  --mono: 'Spline Sans Mono', monospace;

  --r-card: 24px;
  --r-hero: 88px; /* canto gigante, eco do login do produto */
  --sombra-1: 0 6px 24px -12px rgba(20, 34, 93, 0.16);
  --sombra-2: 0 24px 60px -28px rgba(20, 34, 93, 0.28);
  --grad-faixa: linear-gradient(90deg, #015AD9, #35b5c9, #7bdcb5, #BDFF1B);
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--tinta);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--lime); color: var(--navy); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.wrap > * { min-width: 0; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.06; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(42px, 5.6vw, 72px); font-weight: 800; }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.sobre-escuro h1, .sobre-escuro h2, .sobre-escuro h3 { color: #fff; }

/* eyebrow mono */
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--azul); display: inline-flex; align-items: center; gap: 10px; font-weight: 600;
}
.eyebrow::before { content: ''; width: 26px; height: 8px; border-radius: 99px 2px 99px 2px; background: var(--lime); }
.sobre-escuro .eyebrow { color: #9db9ff; }

/* keyword com marker lime */
.marca-lime { position: relative; white-space: nowrap; z-index: 1; }
.marca-lime::after {
  content: ''; position: absolute; z-index: -1; left: -0.08em; right: -0.08em; bottom: 0.02em; height: 0.42em;
  background: var(--lime); border-radius: 6px 2px 8px 2px; transform: scaleX(0); transform-origin: left center;
}
html.reduced .marca-lime::after, .marca-lime.on::after { transform: scaleX(1); transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.sobre-escuro .marca-lime { color: #fff; }

.sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--cinza); max-width: 640px; }
.sobre-escuro .sub, .sobre-escuro p { color: #bdc9e8; }

/* ============ botões ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 99px; font-weight: 700; font-size: 15.5px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn svg { flex: none; }
.btn-azul { background: var(--azul); color: #fff; box-shadow: 0 14px 30px -14px rgba(1, 90, 217, 0.55); }
.btn-azul:hover { background: #0147AC; transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(1, 90, 217, 0.6); }
.btn-lime { background: var(--lime); color: var(--navy); box-shadow: 0 14px 30px -16px rgba(120, 160, 0, 0.5); }
.btn-lime:hover { background: #ccff4d; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid rgba(20, 34, 93, 0.25); }
.btn-ghost:hover { border-color: var(--azul); color: var(--azul); transform: translateY(-2px); }
.sobre-escuro .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.sobre-escuro .btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ============ header ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.rolou { background: rgba(247, 248, 254, 0.88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(20, 34, 93, 0.08); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header .logo img { width: 132px; height: auto; }
.nav-desk { display: flex; align-items: center; gap: 4px; }
.nav-desk > li { list-style: none; position: relative; }
.nav-desk a.nav-link, .nav-desk button.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px;
  font-weight: 600; font-size: 15px; color: var(--tinta); background: none; border: 0; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-desk a.nav-link:hover, .nav-desk button.nav-link:hover, .nav-desk li.aberto > .nav-link { background: var(--ceu); color: var(--azul); }
.nav-link .seta { transition: transform 0.25s ease; }
li.aberto .seta { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: 20px 20px 20px 56px; box-shadow: var(--sombra-2);
  padding: 14px; min-width: 320px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  border: 1px solid rgba(20, 34, 93, 0.06);
}
li.aberto .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  color: var(--tinta); transition: background 0.18s ease;
}
.dropdown a:hover { background: var(--ceu); }
.dropdown a:hover strong { color: var(--azul); }
.dropdown .dd-ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px 4px 12px 12px; display: grid; place-items: center;
  background: var(--ceu); color: var(--azul);
}
.dropdown strong { display: block; font-size: 15px; font-weight: 700; color: var(--navy); }
.dropdown span { font-size: 13px; color: var(--cinza); line-height: 1.4; display: block; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 12px 22px; font-size: 14.5px; }

/* mobile */
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 4px; margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.drawer {
  position: fixed; inset: 0; z-index: 89; background: var(--paper); padding: 96px 28px 40px;
  transform: translateY(-102%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); overflow-y: auto;
}
body.menu-aberto .drawer { transform: translateY(0); }
body.menu-aberto { overflow: hidden; }
body.menu-aberto .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-aberto .burger span:nth-child(2) { opacity: 0; }
body.menu-aberto .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.drawer .grupo { border-bottom: 1px solid rgba(20, 34, 93, 0.1); padding: 14px 0; }
.drawer .grupo > span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--cinza); }
.drawer a { display: block; padding: 10px 0; font-weight: 700; font-size: 19px; color: var(--navy); }
.drawer .btn { margin-top: 22px; width: 100%; }

/* ============ hero interno padrão ============ */
.hero-interno { padding: 168px 0 84px; position: relative; overflow: hidden; }
.hero-interno .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-interno .grid > * { min-width: 0; }
.hero-interno .acoes { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-interno .sub { margin-top: 20px; }

/* pílulas decorativas (motivo do logomark) */
.pilulas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pilulas i { position: absolute; border-radius: 999px; opacity: 0.55; }
.pil-a { width: 220px; height: 110px; border-radius: 110px 110px 12px 110px; background: var(--ceu); }
.pil-b { width: 130px; height: 130px; border-radius: 65px 65px 65px 12px; background: rgba(189, 255, 27, 0.28); }
.pil-c { width: 90px; height: 180px; border-radius: 45px 12px 45px 45px; background: rgba(1, 90, 217, 0.1); }

/* breadcrumbs */
.migalha { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--cinza); margin-bottom: 18px; flex-wrap: wrap; }
.migalha a { color: var(--cinza); }
.migalha a:hover { color: var(--azul); }
.migalha .sep { opacity: 0.5; }

/* ============ seções ============ */
.secao { padding: 96px 0; position: relative; }
.secao-escura { background: var(--navy); }
.secao-escura-deep { background: var(--navy-deep); }
.secao-ceu { background: var(--ceu); }
.faixa-gradiente { height: 6px; background: var(--grad-faixa); border: 0; }
.cabecalho-secao { max-width: 720px; margin-bottom: 52px; }
.cabecalho-secao h2 { margin-top: 14px; }
.cabecalho-secao .sub { margin-top: 14px; }
.cabecalho-secao.centro { margin-left: auto; margin-right: auto; text-align: center; }
.cabecalho-secao.centro .eyebrow { justify-content: center; }
.cabecalho-secao.centro .sub { margin-left: auto; margin-right: auto; }

/* ============ cards ============ */
.card-livon {
  background: var(--branco); border-radius: var(--r-card); border-top-left-radius: 64px;
  padding: 30px; box-shadow: var(--sombra-1); border: 1px solid rgba(20, 34, 93, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative; overflow: hidden;
}
.card-livon:hover { transform: translateY(-6px); box-shadow: var(--sombra-2); border-color: rgba(1, 90, 217, 0.25); }
.card-livon .ico {
  width: 52px; height: 52px; border-radius: 18px 6px 18px 18px; display: grid; place-items: center;
  background: var(--ceu); color: var(--azul); margin-bottom: 18px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.card-livon:hover .ico { background: var(--lime); color: var(--navy); transform: rotate(-6deg) scale(1.05); }
.card-livon h3 { margin-bottom: 10px; }
.card-livon p { font-size: 15.5px; color: var(--cinza); }
.card-livon .link-mais { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; margin-top: 16px; }
.card-livon .link-mais svg { transition: transform 0.22s ease; }
.card-livon:hover .link-mais svg { transform: translateX(5px); }

/* KPI */
.kpi .num { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.6vw, 64px); color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.kpi .num em { font-style: normal; color: var(--azul); }
.kpi .rotulo { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cinza); margin-top: 10px; display: block; }
.sobre-escuro .kpi .num { color: #fff; }
.sobre-escuro .kpi .num em { color: var(--lime); }
.sobre-escuro .kpi .rotulo { color: #93a2cc; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid rgba(20, 34, 93, 0.12); font-size: 13.5px; font-weight: 600; color: var(--navy); }
.chip .ponto { width: 8px; height: 8px; border-radius: 99px; background: var(--ok); }

/* foto pílula (motivo do logomark) */
.foto-pilula { border-radius: 160px 160px 28px 160px; overflow: hidden; position: relative; }
.foto-pilula.v2 { border-radius: 28px 160px 160px 160px; }
.foto-pilula img { width: 100%; height: 100%; object-fit: cover; }

/* chip KPI flutuante sobre fotos */
.chip-float {
  position: absolute; background: #fff; border-radius: 16px 16px 16px 4px; box-shadow: var(--sombra-2);
  padding: 12px 16px; display: flex; gap: 10px; align-items: center; z-index: 2;
}
.chip-float .mini-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip-float strong { display: block; font-size: 14px; color: var(--navy); line-height: 1.15; }
.chip-float span { font-size: 11.5px; color: var(--cinza); font-family: var(--mono); }

/* moldura browser p/ screenshots do produto */
.browser { background: #fff; border-radius: 18px; box-shadow: var(--sombra-2); overflow: hidden; border: 1px solid rgba(20, 34, 93, 0.08); }
.browser .barra { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #F0F3FB; border-bottom: 1px solid rgba(20, 34, 93, 0.07); }
.browser .barra i { width: 10px; height: 10px; border-radius: 99px; background: #d8ddeb; }
.browser .barra .url { flex: 1; margin-left: 10px; background: #fff; border-radius: 8px; font-family: var(--mono); font-size: 11px; color: var(--cinza); padding: 5px 12px; }
.browser img { width: 100%; display: block; }

/* ============ faixa CTA final ============ */
.faixa-cta { position: relative; overflow: hidden; }
.faixa-cta .miolo { position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto; }
.faixa-cta h2 { color: #fff; }
.faixa-cta p { color: #bdc9e8; margin-top: 16px; }
.faixa-cta .acoes { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ============ formulário diagnóstico ============ */
.form-diagnostico { background: #fff; border-radius: 28px; border-top-right-radius: 88px; box-shadow: var(--sombra-2); padding: clamp(26px, 4vw, 46px); }
.form-diagnostico .linha { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-diagnostico .linha > * { min-width: 0; }
.campo { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.campo label { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.campo input, .campo select, .campo textarea {
  font-family: var(--body); font-size: 15px; color: var(--tinta);
  border: 1.5px solid rgba(20, 34, 93, 0.16); border-radius: 12px; padding: 13px 16px; background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease; width: 100%;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(1, 90, 217, 0.12); }
.lgpd { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--cinza); margin: 6px 0 18px; }
.lgpd input { margin-top: 3px; accent-color: var(--azul); width: 16px; height: 16px; flex: none; }
.form-diagnostico .btn { width: 100%; }
.form-nota { font-size: 12.5px; color: var(--cinza); text-align: center; margin-top: 12px; font-family: var(--mono); }

/* ============ FAQ ============ */
.faq-lista { max-width: 840px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid rgba(20, 34, 93, 0.08); border-radius: 18px; margin-bottom: 12px; overflow: hidden; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.faq-item.aberto { border-color: rgba(1, 90, 217, 0.35); box-shadow: var(--sombra-1); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 700; font-size: 16.5px; color: var(--navy); font-family: var(--body); }
.faq-q .fx { flex: none; width: 30px; height: 30px; border-radius: 10px 4px 10px 10px; background: var(--ceu); color: var(--azul); display: grid; place-items: center; font-size: 18px; transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; }
.faq-item.aberto .fx { transform: rotate(45deg); background: var(--lime); color: var(--navy); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p { padding: 0 24px; font-size: 15.5px; color: var(--cinza); }
.faq-a > div::after { content: ''; display: block; height: 22px; }
.faq-item.aberto .faq-a { grid-template-rows: 1fr; }

/* ============ marquee logos ============ */
.marquee { overflow: hidden; position: relative; }
.marquee .trilho { display: flex; gap: 64px; width: max-content; align-items: center; }
.marquee img { height: 34px; width: auto; opacity: 0.6; filter: grayscale(1); transition: opacity 0.25s ease, filter 0.25s ease; }
.marquee img:hover { opacity: 1; filter: none; }

/* ============ footer ============ */
.footer { background: var(--navy-deep); color: #bdc9e8; }
.footer .topo { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 48px; }
.footer .topo > * { min-width: 0; }
.footer .logo-f img { width: 128px; }
.footer .desc { font-size: 14px; margin-top: 16px; max-width: 260px; color: #93a2cc; }
.footer h4 { color: #fff; font-size: 14px; font-family: var(--mono); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer ul a { display: block; padding: 6px 0; color: #bdc9e8; font-size: 14.5px; transition: color 0.2s ease, transform 0.2s ease; }
.footer ul a:hover { color: var(--lime); }
.footer .base { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7f8fbd; }
.footer .sociais { display: flex; gap: 10px; }
.footer .sociais a { width: 38px; height: 38px; border-radius: 12px 4px 12px 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); color: #fff; transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease; }
.footer .sociais a:hover { background: var(--lime); color: var(--navy); transform: translateY(-3px); }

/* ============ reveals ============ */
/* estado inicial oculto; .rv-on (via IntersectionObserver) SEMPRE devolve a visibilidade,
   com ou sem GSAP. Nunca usar transform aqui: o GSAP cuida do movimento. */
.rv, .rv-grupo > * { opacity: 0; }
.rv.rv-on, .rv-grupo > .rv-on { opacity: 1; transition: opacity 0.5s ease; }
html.reduced .rv, html.reduced .rv-grupo > * { opacity: 1; }

/* ============ responsivo ============ */
@media (max-width: 1024px) {
  .nav-desk { display: none; }
  .burger { display: block; }
  .hero-interno .grid { grid-template-columns: 1fr; }
  .footer .topo { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .secao { padding: 68px 0; }
  .hero-interno { padding: 132px 0 60px; }
  .form-diagnostico .linha { grid-template-columns: 1fr; }
  .footer .topo { grid-template-columns: 1fr; gap: 28px; }
  .header .logo img { width: 108px; }
  .header-cta .btn-azul { display: none; }
  .foto-pilula { border-radius: 90px 90px 20px 90px; }
  :root { --r-hero: 48px; }
}
