
/* ============================================================
   Sofia Smart v4.1 — Production Ready
   ============================================================ */
.integration-flow{
  position:relative;
  display:grid;
  grid-template-columns:repeat(5,minmax(120px,1fr));
  align-items:start;
  gap:18px;
  margin:0 auto;
  padding:30px 22px 24px;
  border:1px solid rgba(72,132,225,.22);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(6,17,38,.88),rgba(3,10,23,.94));
  overflow:hidden;
}
.integration-flow::before{
  content:"";
  position:absolute;
  left:7%;
  right:7%;
  top:73px;
  height:2px;
  background:linear-gradient(90deg,#31e2a3,#4aaeff,#dc58f1,#4aaeff,#ca4cf0);
  box-shadow:0 0 12px rgba(64,161,255,.8);
}
.integration-node{
  position:relative;
  z-index:2;
  text-align:center;
  padding:0 9px;
}
.integration-node:not(:last-child)::after{
  content:"›";
  position:absolute;
  right:-18px;
  top:35px;
  color:#38e8ff;
  font-size:34px;
  line-height:1;
  text-shadow:0 0 10px #25caff;
}
.integration-icon{
  width:76px;
  height:76px;
  margin:0 auto 13px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid rgba(81,151,255,.62);
  background:#07142d;
  box-shadow:0 0 20px rgba(50,130,255,.22);
}
.integration-icon img{width:42px;height:42px;object-fit:contain}
.integration-node:nth-child(1) .integration-icon{border-color:#31e2a3}
.integration-node:nth-child(3) .integration-icon{border-color:#ed4f96}
.integration-node:nth-child(5) .integration-icon{border-color:#ca4cf0}
.integration-node strong{display:block;font-size:14px;margin-bottom:7px}
.integration-node p{margin:0;color:#9daac0;font-size:11px;line-height:1.5}
.sofia-symbol{
  font-size:31px;
  font-weight:900;
  color:#6fc7ff;
  text-shadow:0 0 10px #258dff;
}
.insights-symbol{
  display:flex;align-items:end;gap:4px;height:40px;
}
.insights-symbol i{display:block;width:7px;border-radius:2px;background:#bb53ed;box-shadow:0 0 8px rgba(202,76,240,.65)}
.insights-symbol i:nth-child(1){height:15px}.insights-symbol i:nth-child(2){height:26px}.insights-symbol i:nth-child(3){height:38px}

.tech-panel-v41{
  display:grid;
  grid-template-columns:minmax(230px,.85fr) 2.6fr;
  align-items:center;
  gap:26px;
  padding:26px 28px;
  border:1px solid rgba(67,130,227,.34);
  border-radius:15px;
  background:#050c1c;
}
.tech-panel-v41 h2{font-size:25px;line-height:1.08;margin:0 0 9px}
.tech-panel-v41 h2 span{color:#346cff}
.tech-panel-v41 p{margin:0;color:#a6b1c3;font-size:12px;line-height:1.5}
.brand-grid{display:grid;grid-template-columns:repeat(8,minmax(76px,1fr));gap:10px}
.brand-item{text-align:center}
.brand-logo{
  min-height:76px;
  display:grid;
  place-items:center;
  border:1px solid rgba(65,123,211,.28);
  border-radius:12px;
  background:linear-gradient(180deg,#0a1731,#071126);
}
.brand-logo img{width:42px;height:42px;object-fit:contain}
.brand-item strong{display:block;margin-top:9px;font-size:11px;white-space:nowrap}
.trademark-note{
  margin:11px 4px 0;
  color:#65748b;
  font-size:10px;
  line-height:1.5;
}
.legal-links{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px}
.legal-links a{font-size:11px;color:#8796ac}
.legal-links a:hover{color:#fff}

.cookie-banner{
  position:fixed;
  z-index:999;
  left:18px;right:18px;bottom:18px;
  max-width:960px;
  margin:auto;
  display:none;
  grid-template-columns:1fr auto;
  gap:20px;
  align-items:center;
  padding:18px 20px;
  border:1px solid rgba(74,139,236,.35);
  border-radius:14px;
  background:rgba(4,12,27,.98);
  box-shadow:0 22px 70px rgba(0,0,0,.55);
  backdrop-filter:blur(16px);
}
.cookie-banner.visible{display:grid}
.cookie-banner p{margin:0;color:#a9b5c8;font-size:12px;line-height:1.55}
.cookie-banner p strong{display:block;color:#fff;margin-bottom:3px}
.cookie-actions{display:flex;gap:8px;flex-wrap:wrap}
.cookie-actions button{white-space:nowrap}

.legal-page{padding:82px 0}
.legal-document{max-width:880px}
.legal-document h1{font-size:clamp(42px,6vw,70px);margin-bottom:14px}
.legal-document h2{font-size:24px;margin:42px 0 12px}
.legal-document p,.legal-document li{color:#aab6c8;line-height:1.75}
.legal-document ul{padding-left:21px}
.legal-meta{color:#6f7f98;font-size:12px;margin-bottom:28px}

@media(max-width:1080px){
  .brand-grid{grid-template-columns:repeat(4,1fr)}
  .tech-panel-v41{grid-template-columns:1fr}
}
@media(max-width:760px){
  .integration-flow{grid-template-columns:1fr;padding:22px}
  .integration-flow::before,.integration-node:not(:last-child)::after{display:none}
  .integration-node{padding:12px;border-bottom:1px solid rgba(70,130,220,.14)}
  .integration-node:last-child{border-bottom:0}
  .brand-grid{grid-template-columns:repeat(2,1fr)}
  .cookie-banner{grid-template-columns:1fr}
}

/* Local brand tiles extracted from the approved visual reference */
.brand-logo img{
  width:64px;
  height:64px;
  border-radius:10px;
}
.integration-icon img{
  width:54px;
  height:54px;
  border-radius:10px;
}


/* ============================================================
   v4.2 — Linha de integração alinhada e completa
   ============================================================ */
.integration-flow-v42{
  grid-template-columns:repeat(6,minmax(118px,1fr));
  margin-top:34px;
  padding:34px 20px 28px;
  overflow:visible;
}
.integration-flow-v42::before{
  left:7%;
  right:7%;
  top:72px;
}
.integration-flow-v42 .integration-node{
  min-width:0;
}
.integration-flow-v42 .integration-node:not(:last-child)::after{
  right:-18px;
  top:34px;
}
.integration-flow-v42 .integration-icon{
  background:#07142d;
}
.sofia-brain{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:2px solid #63c8ff;
  border-radius:13px;
  font-size:28px;
  font-weight:900;
  color:#79d8ff;
  text-shadow:0 0 12px #1f94ff;
  box-shadow:inset 0 0 14px rgba(46,151,255,.18);
}
.data-symbol{
  position:relative;
  display:grid;
  gap:3px;
  width:42px;
}
.data-symbol i{
  display:block;
  height:8px;
  border-radius:50%;
  border:2px solid #8fcfff;
  background:#12345f;
  box-shadow:0 0 8px rgba(86,177,255,.45);
}
.integration-flow-v42 .integration-node:nth-child(4) .integration-icon{
  border-color:#56a8ff;
}
.integration-flow-v42 .integration-node:nth-child(5) .integration-icon{
  border-color:#86c7ff;
}
.integration-flow-v42 .integration-node:nth-child(6) .integration-icon{
  border-color:#cf55ef;
}
@media(max-width:1180px){
  .integration-flow-v42{
    grid-template-columns:repeat(3,1fr);
    row-gap:34px;
  }
  .integration-flow-v42::before,
  .integration-flow-v42 .integration-node:not(:last-child)::after{
    display:none;
  }
}
@media(max-width:720px){
  .integration-flow-v42{
    grid-template-columns:1fr;
    padding:20px;
  }
}


/* ============================================================
   v4.3 — Linha aprovada, realmente aplicada
   ============================================================ */

/* Neutraliza completamente a linha compacta antiga. */
.process{
  display:none !important;
}

.approved-process{
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:0;
  margin-top:42px;
  padding:26px 20px 30px;
  border:1px solid rgba(71,132,226,.34);
  border-radius:20px;
  background:
    linear-gradient(180deg,rgba(7,18,40,.97),rgba(3,10,24,.99));
  box-shadow:
    0 24px 70px rgba(0,0,0,.36),
    inset 0 1px rgba(255,255,255,.025);
  overflow:hidden;
}

.approved-process::before{
  content:"";
  position:absolute;
  left:6%;
  right:6%;
  top:65px;
  height:2px;
  z-index:0;
  background:linear-gradient(
    90deg,
    #2ee8a4 0%,
    #4cbfff 24%,
    #ef4f9a 46%,
    #4fa9ff 67%,
    #75c8ff 82%,
    #cb4df2 100%
  );
  box-shadow:0 0 12px rgba(57,184,255,.7);
}

.approved-step{
  position:relative;
  z-index:1;
  min-width:0;
  padding:0 13px;
  text-align:center;
}

.approved-step:not(:last-child)::after{
  content:"›";
  position:absolute;
  z-index:3;
  top:25px;
  right:-10px;
  color:#38e8ff;
  font-size:35px;
  line-height:1;
  font-weight:800;
  text-shadow:0 0 12px rgba(35,216,255,.85);
}

.approved-icon{
  width:78px;
  height:78px;
  margin:0 auto 13px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#07142d;
  border:2px solid #54b5ff;
  box-shadow:
    0 0 0 7px rgba(30,102,212,.08),
    0 0 24px rgba(53,153,255,.33);
}

.approved-icon img{
  width:52px;
  height:52px;
  object-fit:cover;
  border-radius:12px;
}

.step-whatsapp .approved-icon{
  border-color:#35e59e;
  box-shadow:0 0 0 7px rgba(53,229,158,.07),0 0 25px rgba(53,229,158,.35);
}

.step-automation .approved-icon{
  border-color:#ef579d;
  box-shadow:0 0 0 7px rgba(239,87,157,.07),0 0 25px rgba(239,87,157,.28);
}

.step-insights .approved-icon{
  border-color:#ce54ef;
  box-shadow:0 0 0 7px rgba(206,84,239,.07),0 0 25px rgba(206,84,239,.30);
}

.approved-step strong{
  display:block;
  margin-bottom:8px;
  color:#f5f8ff;
  font-size:14px;
  line-height:1.25;
}

.approved-step p{
  max-width:175px;
  margin:0 auto;
  color:#a4b0c4;
  font-size:11px;
  line-height:1.48;
}

.brain-icon{
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  border:2px solid #73d7ff;
  border-radius:14px;
  color:#81dcff;
  font-size:29px;
  font-weight:900;
  text-shadow:0 0 12px #238fff;
  box-shadow:inset 0 0 13px rgba(51,160,255,.18);
}

.database-icon{
  display:grid;
  gap:2px;
  width:45px;
}

.database-icon i{
  display:block;
  width:45px;
  height:12px;
  border:2px solid #8ed0ff;
  border-radius:50%;
  background:linear-gradient(180deg,#194878,#0b274d);
  box-shadow:0 0 8px rgba(96,189,255,.32);
}

.chart-icon{
  height:45px;
  display:flex;
  align-items:flex-end;
  gap:5px;
}

.chart-icon i{
  display:block;
  width:9px;
  border-radius:3px 3px 1px 1px;
  background:linear-gradient(180deg,#d767f3,#8734d8);
  box-shadow:0 0 8px rgba(202,76,240,.55);
}

.chart-icon i:nth-child(1){height:18px}
.chart-icon i:nth-child(2){height:30px}
.chart-icon i:nth-child(3){height:43px}

@media(max-width:1180px){
  .approved-process{
    grid-template-columns:repeat(3,1fr);
    gap:28px 0;
  }

  .approved-process::before,
  .approved-step:not(:last-child)::after{
    display:none;
  }
}

@media(max-width:720px){
  .approved-process{
    grid-template-columns:1fr;
    margin-top:26px;
    padding:20px;
  }

  .approved-step{
    padding:14px 4px 20px;
    border-bottom:1px solid rgba(74,132,216,.14);
  }

  .approved-step:last-child{
    border-bottom:0;
  }

  .approved-step p{
    max-width:280px;
  }
}


/* ============================================================
   v4.4 FINAL — ícones aprovados e layout congelado
   ============================================================ */
.approved-icon{
  position:relative;
  overflow:hidden;
  place-items:center;
}

.approved-icon img{
  display:block;
  width:56px;
  height:56px;
  margin:auto;
  object-fit:contain;
  object-position:50% 50%;
  border-radius:0;
  transform:none;
}

.step-whatsapp .approved-icon img{
  width:58px;
  height:58px;
  margin-left:auto;
  margin-right:auto;
}

.step-calendar .approved-icon img{
  width:58px;
  height:58px;
  margin-left:auto;
  margin-right:auto;
}

/* Impede qualquer regra antiga de deslocar os ícones. */
.step-whatsapp .approved-icon,
.step-calendar .approved-icon{
  display:grid;
  place-items:center;
}

.step-whatsapp .approved-icon > img,
.step-calendar .approved-icon > img{
  position:static;
  inset:auto;
}


/* ============================================================
   v4.5 — Cards e setas do mapa principal clicáveis
   ============================================================ */
.hero-solutions-map{
  position:relative;
}

.hero-solution-hotspot{
  position:absolute;
  z-index:10;
  display:block;
  border-radius:16px;
  cursor:pointer;
  text-decoration:none;
  outline:none;
  background:transparent;
}

.hero-solution-hotspot span{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Áreas correspondentes aos quatro cards da imagem aprovada */
.hero-hotspot-odonto{
  left:2.8%;
  top:7.8%;
  width:34.2%;
  height:36.8%;
}

.hero-hotspot-clinic{
  right:2.8%;
  top:7.8%;
  width:34.2%;
  height:36.8%;
}

.hero-hotspot-food{
  left:2.8%;
  bottom:7.8%;
  width:34.2%;
  height:36.8%;
}

.hero-hotspot-stock{
  right:2.8%;
  bottom:7.8%;
  width:34.2%;
  height:36.8%;
}

.hero-solution-hotspot::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:16px;
  border:2px solid transparent;
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    transform .22s ease;
}

.hero-hotspot-odonto:hover::after,
.hero-hotspot-odonto:focus-visible::after{
  border-color:rgba(65,153,255,.88);
  background:rgba(38,108,255,.035);
  box-shadow:0 0 24px rgba(44,123,255,.30);
  transform:translateY(-2px);
}

.hero-hotspot-clinic:hover::after,
.hero-hotspot-clinic:focus-visible::after{
  border-color:rgba(46,221,214,.88);
  background:rgba(23,193,188,.035);
  box-shadow:0 0 24px rgba(32,213,207,.27);
  transform:translateY(-2px);
}

.hero-hotspot-food:hover::after,
.hero-hotspot-food:focus-visible::after{
  border-color:rgba(255,166,24,.90);
  background:rgba(255,157,0,.035);
  box-shadow:0 0 24px rgba(255,157,0,.25);
  transform:translateY(-2px);
}

.hero-hotspot-stock:hover::after,
.hero-hotspot-stock:focus-visible::after{
  border-color:rgba(204,84,247,.90);
  background:rgba(186,63,240,.035);
  box-shadow:0 0 24px rgba(190,64,245,.28);
  transform:translateY(-2px);
}

/* Mantém os hotspots proporcionais quando a arte reduz */
@media(max-width:720px){
  .hero-solution-hotspot::after{
    border-width:1px;
    border-radius:10px;
  }
}


/* ============================================================
   v4.6 — Alinhamento pixel-perfect do menu superior
   ============================================================ */
.header .nav{
  display:flex;
  align-items:center;
}

.header .nav > a,
.header .nav .solutions-menu{
  display:flex;
  align-items:center;
  height:100%;
}

.header .nav > a{
  line-height:1;
  padding-top:0;
  padding-bottom:0;
}

.header .nav .solutions-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:auto;
  min-height:0;
  padding:0;
  margin:0;
  line-height:1;
  vertical-align:middle;
}

.header .nav .solutions-trigger > span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:12px;
  height:12px;
  margin:0;
  line-height:1;
  transform-origin:center;
  position:relative;
  top:0;
}

.header .nav .solutions-menu{
  position:relative;
  top:0;
}

.header .nav .solutions-trigger,
.header .nav > a{
  font-size:14px;
}

@media(max-width:1100px){
  .header .nav,
  .header .nav > a,
  .header .nav .solutions-menu{
    align-items:stretch;
    height:auto;
  }

  .header .nav .solutions-trigger{
    justify-content:space-between;
    width:100%;
    min-height:44px;
  }
}
