/*
 * ADV Space — site público (homepage e blog) no padrão novo de produto.
 * Tokens e escala tipográfica do dossiê Produto Foco ICP ("Design system" e
 * "Movimento e marca"), os mesmos do Protocolo Novidade Zero que já está no ar:
 * um acento só (Royal), Marinho como profundidade, Tinta em quatro forças,
 * Poppins nos títulos e números grandes, Inter em todo o resto.
 * Hierarquia por peso, tom e espaço; caixa alta em lugar nenhum da página.
 * Movimento: só transform e opacity, no máximo 480 ms, uma entrada por tela.
 */

:root {
  --royal: #255ee4;
  --royal-hover: #1f52cc;
  --logo: #003399;
  --navy: #05133a;
  --ink: #071123;
  --canvas: #f5f6f8;
  --surface: #ffffff;
  --material: rgba(248, 249, 252, 0.78);
  --fill-1: rgba(7, 17, 35, 0.1);
  --fill-2: rgba(7, 17, 35, 0.07);
  --fill-3: rgba(7, 17, 35, 0.045);
  --fill-4: rgba(7, 17, 35, 0.025);
  --fill-accent: rgba(37, 94, 228, 0.1);
  --fill-accent-strong: rgba(37, 94, 228, 0.18);
  --fill-success: rgba(24, 142, 95, 0.12);
  --fill-warn: rgba(201, 122, 6, 0.13);
  --text-1: #0b1220;
  --text-2: #394356;
  --text-3: #667085;
  --text-accent: #1f52cc;
  --text-success: #137a51;
  --text-warn: #9a5b00;
  --success: #188e5f;
  --hairline: rgba(7, 17, 35, 0.08);
  --hairline-strong: rgba(7, 17, 35, 0.14);
  --shadow-1: 0 1px 2px rgba(7, 17, 35, 0.06), 0 0 0 1px var(--hairline);
  --shadow-2: 0 6px 18px rgba(7, 17, 35, 0.08), 0 0 0 1px var(--hairline);
  --shadow-3: 0 18px 48px rgba(7, 17, 35, 0.14), 0 0 0 1px var(--hairline-strong);
  --shadow-4: 0 32px 90px rgba(7, 17, 35, 0.22), 0 0 0 1px var(--hairline-strong);
  --font-display: "Poppins", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-ui: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-5: 20px;
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 480ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.16, 0.64, 1);
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--text-1);
  font: 400 15px/1.55 var(--font-ui);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 720px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: var(--r-3);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ===== Navegação ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--material);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand img {
  width: auto;
  height: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 8px;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--fill-3);
  color: var(--text-1);
}

.nav-links a[aria-current="page"] {
  color: var(--text-accent);
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-login {
  padding: 8px 12px;
  border-radius: var(--r-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.nav-login:hover {
  background: var(--fill-3);
  color: var(--text-1);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
}

@media (max-width: 1020px) {
  .nav-inner {
    gap: 8px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-side {
    margin-left: auto;
  }

  .nav-login {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 18px 30px rgba(7, 17, 35, 0.08);
  }

  .nav[data-open="true"] .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 4px;
    font-size: 16px;
    border-radius: 0;
  }

  .nav-links li + li a {
    border-top: 1px solid var(--hairline);
  }
}

.nav-mobile-only {
  display: none;
}

@media (max-width: 1020px) {
  .nav-mobile-only {
    display: block;
  }
}

/* ===== Botões ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  font: 600 16px/1.25 var(--font-ui);
  text-align: center;
  cursor: pointer;
  transition:
    transform var(--dur-1) var(--ease-out),
    opacity var(--dur-1) var(--ease-out);
}

.btn:active {
  transform: scale(0.985);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--r-3);
  font-size: 14px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--royal);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(5, 19, 58, 0.16);
}

.btn-primary:hover {
  background: var(--royal-hover);
}

.btn-primary:active {
  background: var(--logo);
}

.btn-tint {
  background: var(--fill-accent);
  color: var(--text-accent);
}

.btn-tint:hover {
  background: var(--fill-accent-strong);
}

.btn-plain {
  background: transparent;
  color: var(--text-accent);
  padding-left: 14px;
  padding-right: 14px;
}

.btn-plain:hover {
  background: var(--fill-accent);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: #e9eefb;
}

.btn-block {
  width: 100%;
}

/* ===== Tipografia de seção ===== */

.section {
  padding: 56px 0;
}

@media (min-width: 860px) {
  .section {
    padding: 88px 0;
  }
}

.section-alt {
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 var(--hairline),
    inset 0 -1px 0 var(--hairline);
}

.eyebrow {
  margin: 0;
  color: var(--text-accent);
  font: 600 12.5px/1.2 var(--font-ui);
}

.h1 {
  margin: 16px 0 0;
  color: var(--text-1);
  font: 600 clamp(34px, 5vw, 56px) / 1.06 var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  margin: 12px 0 0;
  color: var(--text-1);
  font: 600 clamp(26px, 3.2vw, 36px) / 1.12 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h3 {
  margin: 0;
  color: var(--text-1);
  font: 600 17px/1.35 var(--font-display);
  letter-spacing: -0.015em;
}

.lead {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.5;
  text-wrap: pretty;
}

.body {
  margin: 14px 0 0;
  color: var(--text-2);
  text-wrap: pretty;
}

.body strong,
.lead strong {
  color: var(--text-1);
  font-weight: 600;
}

.note {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 13px;
}

.mark {
  font-style: normal;
  color: var(--text-accent);
  background: linear-gradient(transparent 62%, var(--fill-accent-strong) 62%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 2px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.split {
  display: grid;
  gap: 20px 56px;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}

/* ===== Superfícies ===== */

.card {
  border-radius: var(--r-4);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-3);
  background: var(--fill-accent);
  color: var(--royal);
}

/* Captura do produto com chamadas */

.shot {
  position: relative;
  margin: 0;
}

.shot img {
  width: 100%;
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  background: var(--surface);
}

.pin {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(-9px, -50%);
  pointer-events: none;
}

.pin[data-side="left"] {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 9px), -50%);
}

.pin[data-side="down"] {
  flex-direction: column;
  align-items: flex-start;
  transform: translate(-9px, -9px);
}

.pin[data-side="up"] {
  flex-direction: column-reverse;
  align-items: flex-end;
  transform: translate(calc(-100% + 9px), calc(-100% + 9px));
}

.pin-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--royal);
  border: 3px solid #fff;
  box-shadow: 0 0 0 5px var(--fill-accent-strong), 0 2px 6px rgba(5, 19, 58, 0.3);
}

.pin-label {
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--navy);
  color: #fff;
  font: 600 13px/1.2 var(--font-ui);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(5, 19, 58, 0.22);
}

.pin-list {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pin-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--fill-accent);
  color: var(--text-accent);
  font: 600 13px/1.2 var(--font-ui);
}

.pin-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--royal);
}

@media (max-width: 859px) {
  .pin {
    display: none;
  }

  .pin-list {
    display: flex;
  }

  .shot img {
    border-radius: var(--r-3);
    box-shadow: var(--shadow-2);
  }
}

/* ===== Fechamento ===== */

.closing {
  background: radial-gradient(120% 90% at 20% 10%, #2c66ee 0%, var(--logo) 45%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.78);
}

.closing .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.closing .h2 {
  color: #fff;
  font-size: clamp(23px, 2.9vw, 34px);
  line-height: 1.22;
}

.closing-strong {
  margin: 14px 0 0;
  color: #fff;
  font: 600 clamp(34px, 5vw, 56px) / 1.06 var(--font-display);
  letter-spacing: -0.03em;
}

.closing .body {
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
}

.closing-cta {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 28px;
}

.closing-cta p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.closing-cta p b {
  color: #fff;
  font-weight: 600;
}

/* ===== Rodapé ===== */

.footer {
  padding: 28px 0 96px;
  color: var(--text-3);
  font-size: 13.5px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.footer img {
  width: auto;
  height: 22px;
}

.footer-copy {
  margin: 0 auto 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-links a:hover {
  color: var(--text-1);
}

.footer-social {
  display: flex;
  gap: 4px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-3);
  color: var(--text-2);
}

.footer-social a:hover {
  background: var(--fill-3);
  color: var(--text-1);
}

/* ===== Raíssa (widget) ===== */

.raissa-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border: 0;
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-1);
  font: 600 14px/1.2 var(--font-ui);
  text-align: left;
  box-shadow: 0 10px 30px rgba(5, 19, 58, 0.18), 0 0 0 1px var(--hairline);
  cursor: pointer;
}

.raissa-fab img,
.raissa-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.raissa-fab small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .raissa-fab small {
    display: none;
  }
}

.raissa-fab[aria-expanded="true"] {
  display: none;
}

.raissa-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 41;
  display: none;
  flex-direction: column;
  width: min(372px, calc(100vw - 32px));
  max-height: min(600px, calc(100dvh - 32px));
  overflow: hidden;
  border-radius: var(--r-5);
  background: var(--canvas);
  box-shadow: var(--shadow-3);
}

.raissa-panel[data-open="true"] {
  display: flex;
  animation: rise var(--dur-3) var(--ease-out) both;
}

.raissa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.raissa-head strong {
  display: block;
  font: 600 15px/1.2 var(--font-display);
}

.raissa-head span {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.3;
}

.raissa-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  border-radius: var(--r-3);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}

.raissa-close:hover {
  background: var(--fill-3);
  color: var(--text-1);
}

.raissa-body {
  display: grid;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
}

.bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 16px 16px 16px 6px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--text-1);
  font-size: 14.5px;
  line-height: 1.45;
  animation: rise var(--dur-2) var(--ease-out) both;
}

.bubble-me {
  justify-self: end;
  border-radius: 16px 16px 6px 16px;
  background: var(--royal);
  box-shadow: none;
  color: #fff;
}

.raissa-options {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.raissa-options button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--r-3);
  background: var(--fill-accent);
  color: var(--text-accent);
  font: 600 14px/1.25 var(--font-ui);
  text-align: left;
  cursor: pointer;
}

.raissa-options button:hover {
  background: var(--fill-accent-strong);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ===== Controles do produto: pílula de filtro, segmentado e chip ===== */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 99px;
  background: var(--fill-3);
  color: var(--text-2);
  font: 500 13.5px/1 var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out);
}

.pill:hover {
  background: var(--fill-2);
}

.pill:active {
  transform: scale(0.985);
}

.pill[aria-pressed="true"] {
  background: var(--text-1);
  color: var(--surface);
}

.pill span {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.pill[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.7);
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--r-3);
  background: var(--fill-3);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font: 500 13.5px/1 var(--font-ui);
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text-1);
  box-shadow: var(--shadow-1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 99px;
  background: var(--fill-2);
  color: var(--text-2);
  font: 600 11.5px/1 var(--font-ui);
  white-space: nowrap;
}

.chip[data-tone="accent"] {
  background: var(--fill-accent);
  color: var(--text-accent);
}

.chip[data-tone="success"] {
  background: var(--fill-success);
  color: var(--text-success);
}

.chip[data-tone="warn"] {
  background: var(--fill-warn);
  color: var(--text-warn);
}

.tnum {
  font-variant-numeric: tabular-nums;
}

/* ===== Entrada: uma por tela, 480 ms; chamadas em sequência de 28 ms ===== */

.enter {
  animation: rise var(--dur-4) var(--ease-out) both;
}

.shot .pin {
  animation: fade var(--dur-2) var(--ease-out) both;
  animation-delay: calc(var(--dur-4) + var(--i, 0) * 28ms);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .enter,
  .shot .pin,
  .bubble,
  .raissa-panel[data-open="true"] {
    animation: none;
  }

  .btn,
  .pill {
    transition: none;
  }
}

/* ===== Trilha de navegação e vídeo ===== */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 13px;
}

.crumbs a {
  color: var(--text-2);
  font-weight: 500;
}

.crumbs a:hover {
  color: var(--text-accent);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-3);
}

.video {
  margin: 28px 0;
}

.video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--r-3);
  background: var(--fill-2);
}

a.pill[aria-current="page"] {
  background: var(--text-1);
  color: var(--surface);
}

/* ===== Protocolo no fim das listagens do blog =====
   A partir de 1100 px o card lateral acompanha a rolagem; o de baixo repetiria a
   mesma chamada na mesma tela. Ele fica só onde o lateral não existe. Vale para o
   índice e as páginas por assunto; dentro do artigo o banner de baixo continua. */

@media (min-width: 1100px) {
  .pnz-bottom {
    padding: 0;
    height: 72px;
  }

  .pnz-bottom .wrap {
    display: none;
  }
}
