/* ConcentusRH: site de venda. Tokens copiados de docs/marca/tokens.css. */

:root {
  --crh-navy: #1f3f8f;
  --crh-gold: #f2b33d;
  --crh-ink: #0e1a3a;

  --crh-bg: #f4f6fb;
  --crh-surface: #ffffff;
  --crh-border: #d9dfec;
  --crh-text: #0e1a3a;
  --crh-text-muted: #4a5368;

  --crh-primary: #1f3f8f;
  --crh-primary-hover: #17306e;
  --crh-on-primary: #ffffff;
  --crh-link: #1f3f8f;
  --crh-accent: #f2b33d;
  --crh-on-accent: #0e1a3a;
  --crh-accent-text: #8c6400;
  --crh-focus-ring: #1f3f8f;

  --crh-tag-bg: #e3e9f8;
  --crh-tag-text: #1f3f8f;

  --crh-ok-bg: #ddf3ea;
  --crh-ok-text: #0a5f49;
  --crh-error-bg: #fbe0dc;
  --crh-error-text: #9a2a1b;

  /* Faixas de cor fixa (iguais nos dois temas, com texto claro) */
  --faixa-escura: #0e1a3a;
  --faixa-marca: #1f3f8f;
  --faixa-texto: #e8ecf8;
  --faixa-texto-suave: #c9d2ea;

  --tela-vazia: #e3e9f8;
  --sombra: 0 24px 48px -24px rgb(14 26 58 / 35%), 0 2px 6px rgb(14 26 58 / 8%);

  --fonte-titulo: 'Space Grotesk', system-ui, sans-serif;
  --fonte-texto: 'Inter', system-ui, sans-serif;
  --raio-controle: 12px;
  --raio-cartao: 16px;

  --gutter: 16px;
  --altura-topo: 68px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --crh-bg: #0a1228;
    --crh-surface: #111c3d;
    --crh-border: #26335c;
    --crh-text: #e8ecf8;
    --crh-text-muted: #a3aecb;
    --crh-primary: #3d62c9;
    --crh-primary-hover: #4d72d9;
    --crh-link: #a9beff;
    --crh-accent-text: #f2b33d;
    --crh-focus-ring: #a9beff;
    --crh-tag-bg: #1c2a57;
    --crh-tag-text: #c5d2ff;
    --crh-ok-bg: #1c3324;
    --crh-ok-text: #9be7b4;
    --crh-error-bg: #3a1f1b;
    --crh-error-text: #ffb4a8;

    --faixa-escura: #070d1f;
    --faixa-marca: #1c2a57;
    --tela-vazia: #1c2a57;
    --sombra: 0 24px 48px -24px rgb(0 0 0 / 60%), 0 2px 6px rgb(0 0 0 / 30%);

    color-scheme: dark;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* Base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--altura-topo) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--crh-bg);
  color: var(--crh-text);
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--fonte-titulo);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

a {
  color: var(--crh-link);
}

:focus-visible {
  outline: 3px solid var(--crh-focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.estreito {
  max-width: 860px;
}

.pular {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--crh-primary);
  color: var(--crh-on-primary);
  border-radius: var(--raio-controle);
  font-weight: 600;
}

.pular:focus {
  top: 12px;
}

/* Botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--raio-controle);
  font: 600 1rem/1.2 var(--fonte-texto);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.btn .ico {
  width: 22px;
  height: 22px;
}

.btn-primario {
  background: var(--crh-primary);
  color: var(--crh-on-primary);
}

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

.btn-secundario {
  background: transparent;
  border-color: var(--crh-border);
  color: var(--crh-link);
}

.btn-secundario:hover {
  border-color: var(--crh-link);
}

.btn-destaque {
  background: var(--crh-accent);
  color: var(--crh-on-accent);
}

.btn-destaque:hover {
  background: #f5c463;
}

.btn-claro {
  background: transparent;
  border-color: rgb(255 255 255 / 55%);
  color: #ffffff;
}

.btn-claro:hover {
  border-color: #ffffff;
  background: rgb(255 255 255 / 8%);
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.acoes-centro {
  justify-content: center;
}

/* Cabeçalho */

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--crh-surface) 92%, transparent);
  border-bottom: 1px solid var(--crh-border);
  backdrop-filter: saturate(1.4) blur(10px);
}

.topo-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--altura-topo);
}

.marca {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
}

.marca img {
  width: 168px;
  height: auto;
}

.menu-botao {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1px solid var(--crh-border);
  border-radius: var(--raio-controle);
  background: var(--crh-surface);
  color: var(--crh-text);
  font: 600 0.95rem var(--fonte-texto);
  cursor: pointer;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu ul {
  display: flex;
  gap: 4px;
}

.menu ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--raio-controle);
  color: var(--crh-text);
  font-weight: 500;
  text-decoration: none;
}

.menu ul a:hover {
  background: var(--crh-tag-bg);
  color: var(--crh-tag-text);
}

.menu-cta {
  min-height: 44px;
  padding-block: 8px;
}

@media (max-width: 919px) {
  .menu-botao {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 20px;
    background: var(--crh-surface);
    border-bottom: 1px solid var(--crh-border);
    box-shadow: var(--sombra);
  }

  .topo.aberto .menu {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    gap: 0;
  }

  .menu ul a {
    display: flex;
    min-height: 48px;
    padding-inline: 8px;
    border-bottom: 1px solid var(--crh-border);
    border-radius: 0;
  }
}

/* Hero */

.hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 5vw, 72px);
  background:
    radial-gradient(60% 70% at 85% 30%, var(--crh-tag-bg) 0%, transparent 70%), var(--crh-bg);
  overflow: hidden;
}

.hero-grade {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grade {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
  }
}

.hero-texto {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-lide {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--crh-text-muted);
  max-width: 60ch;
}

.hero-pontos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--crh-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-pontos li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-pontos .ico {
  width: 20px;
  height: 20px;
  color: var(--crh-link);
}

.sobretitulo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--crh-link);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sobretitulo::before {
  content: '';
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--crh-accent);
}

/* Molduras de navegador e celular */

.moldura {
  border: 1px solid var(--crh-border);
  border-radius: 14px;
  background: var(--crh-surface);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.moldura-barra {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--crh-border);
}

.moldura-barra i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crh-border);
}

.tela {
  aspect-ratio: 1440 / 900;
  /* Fundo neutro enquanto a captura não carrega (ou se ela faltar) */
  background: linear-gradient(90deg, var(--tela-vazia) 0 16%, var(--crh-bg) 16%);
  overflow: hidden;
}

.tela img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  color: var(--crh-text-muted);
  font-size: 0.8rem;
}

.celular {
  padding: 8px;
  border-radius: 34px;
  background: var(--crh-ink);
  box-shadow: var(--sombra);
}

.tela-celular {
  aspect-ratio: 390 / 844;
  border-radius: 26px;
  background: var(--crh-bg);
}

.composicao {
  position: relative;
}

.composicao > .moldura:first-child {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-visual > .moldura:first-child,
  .composicao-celular > .moldura:first-child {
    width: 86%;
  }

  .composicao .celular {
    position: absolute;
    right: 0;
    bottom: -32px;
    width: 24%;
    min-width: 120px;
  }

  .composicao-dupla > .moldura:first-child {
    width: 88%;
  }

  .composicao-dupla {
    padding-bottom: 28%;
  }

  .composicao-dupla .moldura-secundaria {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 62%;
  }
}

@media (max-width: 639px) {
  .composicao .celular {
    width: 46%;
    margin: -64px 0 0 auto;
    position: relative;
  }

  .composicao-dupla .moldura-secundaria {
    width: 88%;
    margin: -32px 0 0 auto;
    position: relative;
  }
}

/* Seções */

.secao {
  padding-block: clamp(64px, 8vw, 112px);
}

.secao-superficie {
  background: var(--crh-surface);
  border-block: 1px solid var(--crh-border);
}

.cabecalho-secao {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.cabecalho-secao > p:not(.sobretitulo) {
  color: var(--crh-text-muted);
  font-size: 1.08rem;
}

/* Problema e solução */

.pares {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .pares {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pares {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.par {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--crh-border);
  border-radius: var(--raio-cartao);
  background: var(--crh-surface);
  overflow: hidden;
}

.par p {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
}

.par .ico {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  stroke-width: 2.4;
}

.par-hoje {
  color: var(--crh-text-muted);
  border-bottom: 1px dashed var(--crh-border);
}

.par-hoje b {
  color: var(--crh-text);
  font-weight: 600;
}

.par-hoje .ico {
  background: var(--crh-error-bg);
  color: var(--crh-error-text);
}

.par-com {
  flex: 1;
  font-weight: 500;
}

.par-com .ico {
  background: var(--crh-ok-bg);
  color: var(--crh-ok-text);
}

/* Módulos */

.modulos {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .modulos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .modulos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.modulo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--crh-border);
  border-radius: var(--raio-cartao);
  background: var(--crh-bg);
}

.modulo-icone {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--crh-tag-bg);
  color: var(--crh-tag-text);
}

.lista-check {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lista-check li {
  position: relative;
  padding-left: 26px;
  color: var(--crh-text-muted);
}

.lista-check li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--crh-link);
  border-bottom: 2px solid var(--crh-link);
  transform: rotate(-45deg);
}

.lista-check b {
  color: var(--crh-text);
  font-weight: 600;
}

/* Por dentro */

.destaque {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: clamp(32px, 4vw, 56px);
}

.destaque + .destaque {
  border-top: 1px solid var(--crh-border);
}

@media (min-width: 900px) {
  .destaque {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }

  .destaque-invertido {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .destaque-invertido .destaque-texto {
    order: 2;
  }
}

.destaque-texto {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.destaque-texto h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
}

.destaque-texto > p:not(.etiqueta) {
  color: var(--crh-text-muted);
}

.etiqueta {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--crh-tag-bg);
  color: var(--crh-tag-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.destaque-visual {
  min-width: 0;
}

/* Protheus */

.faixa-escura {
  --crh-focus-ring: var(--crh-gold);
  background:
    radial-gradient(50% 60% at 0% 0%, rgb(61 98 201 / 28%) 0%, transparent 70%), var(--faixa-escura);
  color: var(--faixa-texto);
}

.faixa-escura .sobretitulo {
  color: #c5d2ff;
}

.faixa-escura .cabecalho-secao > p:not(.sobretitulo) {
  color: var(--faixa-texto-suave);
}

.faixa-escura .cabecalho-secao .nota {
  padding: 14px 16px;
  border-left: 4px solid var(--crh-gold);
  border-radius: 0 12px 12px 0;
  background: rgb(255 255 255 / 6%);
  color: var(--faixa-texto);
  font-size: 1rem;
}

.protheus-grade {
  display: grid;
  gap: 8px;
}

@media (min-width: 1024px) {
  .protheus-grade {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }

  .protheus-grade .cabecalho-secao {
    position: sticky;
    top: calc(var(--altura-topo) + 32px);
    margin-bottom: 0;
  }
}

.integracoes {
  display: grid;
  gap: 12px;
}

.integracoes li {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgb(201 210 234 / 18%);
  border-radius: var(--raio-cartao);
  background: rgb(255 255 255 / 4%);
}

.integracoes h3 {
  margin-bottom: 6px;
  color: #ffffff;
}

.integracoes p {
  color: var(--faixa-texto-suave);
}

.integracao-icone {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(242 179 61 / 14%);
  color: var(--crh-gold);
}

/* Segurança */

.cartoes {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .cartoes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .cartoes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cartao {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--crh-border);
  border-radius: var(--raio-cartao);
  background: var(--crh-surface);
}

.cartao p {
  color: var(--crh-text-muted);
  font-size: 0.95rem;
}

.cartao-icone {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  color: var(--crh-link);
}

/* Contratação */

.contratacao-grade {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contratacao-grade {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}

.modelo {
  gap: 12px;
}

.modelo li {
  font-size: 1.05rem;
}

.passos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: passo;
}

.passos li {
  position: relative;
  padding: 22px 24px 22px 84px;
  border: 1px solid var(--crh-border);
  border-radius: var(--raio-cartao);
  background: var(--crh-bg);
  counter-increment: passo;
}

.passos li::before {
  content: counter(passo);
  position: absolute;
  left: 22px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--crh-primary);
  color: var(--crh-on-primary);
  font: 700 1.2rem var(--fonte-titulo);
}

.passos li:first-child::before {
  background: var(--crh-accent);
  color: var(--crh-on-accent);
}

.passos h3 {
  margin-bottom: 4px;
}

.passos p {
  color: var(--crh-text-muted);
}

/* Perguntas */

.perguntas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perguntas details {
  border: 1px solid var(--crh-border);
  border-radius: var(--raio-cartao);
  background: var(--crh-surface);
}

.perguntas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font: 500 1.08rem/1.35 var(--fonte-titulo);
  cursor: pointer;
  list-style: none;
}

.perguntas summary::-webkit-details-marker {
  display: none;
}

.perguntas summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--crh-link);
  border-bottom: 2px solid var(--crh-link);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.15s;
}

.perguntas details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.perguntas summary:focus-visible {
  outline-offset: -3px;
  border-radius: var(--raio-cartao);
}

.perguntas details p {
  padding: 0 20px 20px;
  color: var(--crh-text-muted);
}

/* Contato */

.faixa-marca {
  --crh-focus-ring: var(--crh-gold);
  background:
    radial-gradient(60% 90% at 100% 100%, rgb(242 179 61 / 16%) 0%, transparent 60%),
    var(--faixa-marca);
  color: #ffffff;
}

.contato {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 820px;
  text-align: center;
}

.contato > p {
  color: var(--faixa-texto-suave);
  font-size: 1.1rem;
  max-width: 58ch;
}

.contato .acoes {
  margin-top: 8px;
}

.contato-email a {
  color: #ffffff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Rodapé */

.rodape {
  --crh-focus-ring: var(--crh-gold);
  padding-block: 40px;
  background: var(--faixa-escura);
  color: var(--faixa-texto-suave);
}

.rodape-grade {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.rodape img {
  width: 150px;
  height: auto;
}

.rodape ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}

.rodape ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--faixa-texto);
  text-decoration: none;
}

.rodape ul a:hover {
  text-decoration: underline;
}

.rodape-copia {
  flex-basis: 100%;
  padding-top: 20px;
  border-top: 1px solid rgb(201 210 234 / 18%);
  font-size: 0.9rem;
}

@media (max-width: 639px) {
  .acoes .btn {
    width: 100%;
  }

  .rodape ul a {
    padding-inline: 8px;
  }
}

/* Páginas de texto (privacidade) e de erro (404) */

.pagina-texto {
  max-width: 760px;
  padding-block: clamp(48px, 7vw, 88px);
}

.pagina-texto h2 {
  margin-top: 40px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.pagina-texto p {
  margin-top: 14px;
}

.pagina-texto a {
  overflow-wrap: anywhere;
}

.pagina-lide {
  color: var(--crh-text-muted);
  font-size: 1.1rem;
}

.pagina-data {
  padding-top: 24px;
  border-top: 1px solid var(--crh-border);
  color: var(--crh-text-muted);
  font-size: 0.9rem;
}

.pagina-texto .pagina-data {
  margin-top: 40px;
}

.corpo-erro {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.pagina-erro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 640px;
  padding-block: 64px;
  text-align: center;
}

.pagina-erro .acoes {
  margin-top: 12px;
}
