/* ==========================================================================
 * Página inicial: integrações, porquê a Smartize e como trabalhamos (11/11/2026)
 * Entrada com [data-reveal] (main.js acrescenta .is-visible); sem animação com movimento reduzido.
 * ======================================================================== */

.hs-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 600 .8rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.hs-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.hs-eyebrow--night { color: var(--blue-300); }

.js .hx [data-reveal], .js .hy [data-reveal], .js .hp__head[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .hx [data-reveal].is-visible, .js .hy [data-reveal].is-visible, .js .hp__head[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
 * Integrações (fundo escuro): copy à esquerda, painel de marcas com filtros à direita
 * ------------------------------------------------------------------------ */
.hx { --hx-line: rgba(148, 178, 230, .32); position: relative; overflow: hidden; background: var(--navy); color: var(--night-text); padding: clamp(64px, 8vw, 112px) 0; }
.hx__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hx__title { margin: 0 0 18px; font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -.035em; color: #fff; }
.hx__title span { display: block; }
.hx__title span + span { color: var(--blue-300); }
.hx__lead { margin: 0 0 26px; max-width: 52ch; font-size: var(--step-1); line-height: 1.6; color: rgba(226, 234, 248, .82); }
.hx__benefits { list-style: none; margin: 0 0 30px; padding: 0; display: grid; }
.hx__benefits li { display: grid; gap: 2px; padding: 12px 0 12px 18px; position: relative; border-top: 1px solid var(--navy-line); }
.hx__benefits li:last-child { border-bottom: 1px solid var(--navy-line); }
.hx__benefits li::before { content: ""; position: absolute; left: 0; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-300); }
.hx__benefits strong { font-family: var(--display); font-weight: 700; color: #fff; }
.hx__benefits span { color: rgba(226, 234, 248, .74); line-height: 1.5; }
.hx__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hx__help { margin: 0; font-size: .92rem; color: var(--night-muted); }
.hx__help a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--blue-300); }
.hx__help a:hover { color: var(--blue-300); }

.hx__panel { padding: clamp(18px, 2.4vw, 28px); border-radius: 24px; background: rgba(255, 255, 255, .035); border: 1px solid var(--navy-line); }
.hx__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hx__tab { appearance: none; min-height: 38px; padding: 7px 12px; border: 1px solid var(--navy-line-strong); border-radius: 999px; background: transparent; color: rgba(226, 234, 248, .86); font: 600 .84rem/1.2 var(--display); white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.hx__tab:hover { border-color: var(--blue-300); color: #fff; }
.hx__tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.hx__tab:focus-visible { outline: 3px solid rgba(111, 168, 255, .55); outline-offset: 2px; }

/* Smartize at the top, a short line down to a bus line, and one stub per logo of the first row. */
.hx__board { position: relative; padding-top: 22px; }
.hx__hub { position: relative; display: grid; place-items: center; width: 132px; height: 54px; margin: 0 auto; border-radius: 16px; background: var(--navy-700); border: 1px solid var(--navy-line-strong); color: #fff; }
.hx__hub .brand__mark { width: 96px; }
.hx__hub::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: var(--hx-line); }
.hx__logos { --cols: 3; list-style: none; position: relative; margin: 22px 0 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px; }
.hx__logos--n2 { --cols: 2; max-width: 66%; margin-inline: auto; }
.hx__logos::before { content: ""; position: absolute; top: 0; height: 1px; left: calc(50% / var(--cols)); right: calc(50% / var(--cols)); background: var(--hx-line); }
.hx__logo { position: relative; display: grid; grid-template-rows: 64px auto auto; justify-items: center; align-content: start; gap: 2px; padding: 12px 10px 12px; border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 14px 28px -20px rgba(0, 0, 0, .7); }
.hx__logo:nth-child(-n+3)::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 18px; background: var(--hx-line); }
.hx__logos--n2 .hx__logo:nth-child(-n+3)::before { height: 18px; }
.hx__logo-img { display: grid; place-items: center; width: 100%; height: 64px; }
.hx__logo-img img { display: block; width: var(--lw); max-width: 100%; height: auto; max-height: 56px; object-fit: contain; }
.hx__logo-name { margin-top: 4px; font: 700 .86rem/1.25 var(--display); color: var(--ink); }
.hx__logo-role { font-size: .74rem; line-height: 1.3; color: var(--slate-600); }
.hx__logos.is-entering .hx__logo { animation: hx-in .38s var(--ease) both; }
.hx__logos.is-entering .hx__logo:nth-child(2) { animation-delay: .04s; }
.hx__logos.is-entering .hx__logo:nth-child(3) { animation-delay: .08s; }
.hx__logos.is-entering .hx__logo:nth-child(4) { animation-delay: .12s; }
.hx__logos.is-entering .hx__logo:nth-child(5) { animation-delay: .16s; }
.hx__logos.is-entering .hx__logo:nth-child(6) { animation-delay: .2s; }
@keyframes hx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hx__note { margin: 18px 0 0; font-size: .82rem; line-height: 1.5; color: var(--night-muted); }

/* --------------------------------------------------------------------------
 * Porquê a Smartize (fundo branco, composição assimétrica)
 * ------------------------------------------------------------------------ */
.hy { background: #fff; color: var(--ink); padding: clamp(64px, 8vw, 112px) 0; }
.hy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "media head" "media body"; grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 88px); align-items: start; }
.hy__head { grid-area: head; }
.hy__media { grid-area: media; margin: 0; align-self: stretch; min-height: 100%; border-radius: 24px; overflow: hidden; background: var(--paper-2); }
.hy__media img { display: block; width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 50% 40%; }
.hy__body { grid-area: body; }
.hy__title { margin: 0 0 18px; font-family: var(--display); font-size: clamp(2rem, 1.3rem + 2vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.hy__lead { margin: 0; max-width: 46ch; font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.6; color: var(--slate-700); }
.hy__list { list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; }
.hy__item { padding: 20px 0; border-top: 1px solid var(--line); }
.hy__item:last-child { border-bottom: 1px solid var(--line); }
.hy__item-t { margin: 0 0 6px; font-family: var(--display); font-size: 1.15rem; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.hy__item p { margin: 0; max-width: 52ch; font-size: 1rem; line-height: 1.6; color: var(--slate-700); }
.hy__cta { margin: 28px 0 0; }
.js .hy__item[data-reveal] { transition-delay: calc(var(--i, 0) * 80ms); }

/* --------------------------------------------------------------------------
 * Como trabalhamos (fundo claro, percurso contínuo)
 * ------------------------------------------------------------------------ */
.hp { background: var(--paper-2); color: var(--ink); padding: var(--section) 0 calc(var(--section) * .8); }
.hp__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.hp__title { margin: 0 0 16px; font-family: var(--display); font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.3rem); line-height: 1.05; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.hp__lead { margin: 0; max-width: 56ch; font-size: var(--step-1); line-height: 1.6; color: var(--slate-600); }

.hp__steps { --line-x: 0; list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
/* Line through the markers: a quiet base and a blue line that grows in. */
.hp__steps::before, .hp__steps::after { content: ""; position: absolute; left: 6px; right: 0; top: 6px; height: 2px; border-radius: 2px; }
.hp__steps::before { background: var(--slate-200); }
.hp__steps::after { background: var(--blue); transform-origin: 0 50%; transform: scaleX(1); }
.hp__step { position: relative; padding-top: 34px; }
.hp__mark { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--blue); z-index: 1; }
.hp__n { display: block; margin-bottom: 14px; font-family: var(--display); font-size: clamp(2.6rem, 1.8rem + 2.2vw, 3.8rem); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.hp__step-t { margin: 0 0 10px; font-family: var(--display); font-size: 1.24rem; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.hp__step p { margin: 0; color: var(--slate-700); line-height: 1.6; max-width: 32ch; }
.hp__cta { margin: clamp(36px, 4vw, 52px) 0 0; }

.js .hp__steps[data-reveal]::after { transform: scaleX(0); transition: transform 1.4s var(--ease) .1s; }
.js .hp__steps[data-reveal].is-visible::after { transform: scaleX(1); }
.js .hp__steps[data-reveal] .hp__step { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.15s + var(--i) * .28s); }
.js .hp__steps[data-reveal].is-visible .hp__step { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
 * Responsivo
 * ------------------------------------------------------------------------ */
@media (max-width: 1180px) {
  .hy__grid { column-gap: clamp(32px, 4vw, 56px); }
}
@media (max-width: 960px) {
  .hx__grid { grid-template-columns: 1fr; }
  .hy__grid { grid-template-columns: 1fr; grid-template-areas: "head" "media" "body"; grid-template-rows: auto; }
  .hy__media { margin-top: 28px; min-height: 0; border-radius: 18px; }
  .hy__media img { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  .hy__list { margin-top: 20px; }
  .hx__panel { max-width: 640px; }
  /* Vertical path with the line on the left. */
  .hp__steps { grid-template-columns: 1fr; gap: 0; }
  .hp__steps::before, .hp__steps::after { left: 6px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .hp__steps::after { transform-origin: 50% 0; }
  .js .hp__steps[data-reveal]::after { transform: scaleY(0); }
  .js .hp__steps[data-reveal].is-visible::after { transform: scaleY(1); }
  .hp__step { padding: 0 0 30px 40px; }
  .hp__step:last-child { padding-bottom: 0; }
  .hp__n { font-size: 2.4rem; margin-bottom: 8px; }
  .hp__step p { max-width: 52ch; }
}
@media (max-width: 600px) {
  .hx .btn { width: 100%; }
  .hx__tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .hx__tab { padding: 8px 10px; font-size: .84rem; }
  .hx__panel { padding: 16px; border-radius: 20px; }
  .hy__item { padding: 16px 0; }
  .hy__media img { aspect-ratio: 4 / 3; }
  .hy .btn { width: 100%; }
}
@media (max-width: 480px) {
  .hx__logos { --cols: 2; gap: 10px; }
  .hx__logos--n2 { max-width: none; }
  .hx__logo:nth-child(3)::before { content: none; }
  .hx__logo { grid-template-rows: 52px auto auto; padding: 10px 8px; }
  .hx__logo-img { height: 52px; }
  .hx__logo-img img { max-height: 44px; }
  .hx__logo-name { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hx__logos.is-entering .hx__logo { animation: none; }
  .js .hx [data-reveal], .js .hy [data-reveal], .js .hp__head[data-reveal], .js .hp__steps[data-reveal] .hp__step { opacity: 1; transform: none; transition: none; }
  .js .hp__steps[data-reveal]::after { transform: none; transition: none; }
}
/* Porquê a Smartize: etiqueta sem o traço decorativo. */
.hy .hs-eyebrow::before { content: none; }
.hy .hs-eyebrow { padding-left: 0; }
