/* ==========================================================================
   Modelo padrão das páginas de serviço (/servicos/<servico>/)
   Usa as variáveis, botões, cartões e números do style.css
   ========================================================================== */

.lp main {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(64px, 9vw, 112px);
}

.lp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: clamp(8px, 2vw, 16px);
  font-size: 0.8rem;
  color: var(--muted);
}

.lp-crumbs a { text-decoration: none; }
.lp-crumbs a:hover { color: var(--red); }
.lp-crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* 1. Abertura ------------------------------------------------------------- */

.lp-hero {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 48px);
}

.lp-hero__text { display: grid; gap: clamp(14px, 2vw, 22px); justify-items: start; }

.lp-hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.lp-hero__lead { max-width: 34rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.lp-checks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.lp-checks li { display: inline-flex; align-items: center; gap: 6px; }
.lp-checks .icon { color: var(--red); }

/* Moldura dos prints (clara por padrão, escura para Grafana) */
.lp-shot {
  margin: 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 48px -28px rgba(22, 24, 27, 0.3);
}

.lp-shot img { width: 100%; border-radius: var(--radius-sm); }
.lp-shot--dark { background: #0F1217; border-color: #1E232B; }

.lp-shot figcaption {
  padding: 10px 6px 2px;
  font-size: 0.85rem;
  color: var(--muted);
}

.lp-shot--dark figcaption { color: #9AA1AB; }

/* Carrossel de imagens da abertura: troca com fade a cada 5 s */
.lp-fade { position: relative; }

.lp-fade__track {
  position: relative;
  aspect-ratio: 20 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.lp-fade__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  opacity: 0;
  transition: opacity .8s ease;
}

.lp-fade__img.is-active { opacity: 1; }

.lp-fade__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
}

.lp-fade__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #3A414B;
  cursor: pointer;
  transition: width .3s, background-color .3s;
}

.lp-fade__dot.is-active { width: 24px; background: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .lp-fade__img, .lp-fade__dot { transition: none; }
}

/* Abertura centralizada + palco grande com o carrossel (estilo vitrine) */
.lp-hero--stage { display: block; padding-bottom: 0; }

.lp-hero--stage .lp-hero__text {
  justify-items: center;
  text-align: center;
  max-width: 54rem;
  margin-inline: auto;
}

.lp-hero--stage .lp-hero__title { font-size: clamp(2.5rem, 5.6vw, 4.5rem); text-wrap: balance; }
.lp-hero--stage .lp-hero__lead { max-width: 46rem; }
.lp-hero--stage .slide__actions, .lp-hero--stage .lp-checks { justify-content: center; }

.lp-stage {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
}

/* Sem moldura: só a tela com cantos arredondados, borda fina e sombra suave */
.lp-stage__screen {
  overflow: hidden;
  border-radius: clamp(12px, 1.6vw, 20px);
  background: #0D0F13;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -34px rgba(22, 24, 27, .45);
}

/* Para prints de painel claro: fundo da tela claro, sem faixas pretas */
.lp-stage--light .lp-stage__screen { background: #F6F6F4; }

.lp-stage .lp-fade__track { aspect-ratio: 2000 / 860; border-radius: 0; }
.lp-stage .lp-fade__img { object-fit: contain; object-position: center; }

.lp-stage__nav {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(13, 15, 19, .75);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.lp-stage__nav:hover { background: var(--red); border-color: var(--red); }
.lp-stage__nav--prev { left: clamp(10px, 1.6vw, 20px); }
.lp-stage__nav--next { right: clamp(10px, 1.6vw, 20px); }

.lp-stage__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 4px 0;
}

.lp-stage__caption { color: var(--ink); font-size: 0.9rem; font-weight: 500; }
.lp-stage .lp-fade__dots { padding: 0; }
.lp-stage .lp-fade__dot { background: #CFCFC9; }
.lp-stage .lp-fade__dot.is-active { background: var(--red); }

@media (max-width: 600px) {
  .lp-stage__nav { display: none; }
  .lp-stage__foot { flex-direction: column; gap: 10px; }
}

/* Frase de apoio logo abaixo do título (opcional) */
.lp-hero__sub {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  color: var(--red);
  text-wrap: balance;   /* quebra a linha em partes iguais, sem palavra sozinha */
}

/* Bloco de módulos em bento (reaproveita .bento e .card do style.css) */
.lp-intro { max-width: 40rem; margin: -16px 0 clamp(24px, 3vw, 36px); color: var(--muted); font-size: 1.05rem; }
.lp-modules .card--feature { justify-content: flex-start; }
/* No destaque a ilustração já faz o papel do ícone; o texto desce para a base do cartão */
.lp-modules .card--feature > .card__icon { display: none; }
.lp-modules .card--feature > .lp-flow { margin-block: auto 28px; }

/* Ilustração do cartão Firewall */
.lp-flow { width: 100%; max-width: 520px; height: auto; margin: 4px 0 18px; overflow: visible; }
.lp-flow path, .lp-flow circle, .lp-flow rect { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-flow__ok { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 6; animation: lp-flow 1.2s linear infinite; }
.lp-flow__no { stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 6; opacity: .7; }
.lp-flow__x circle { fill: var(--red); stroke: none; }
.lp-flow__x path { stroke: #fff; stroke-width: 2.2; }
.lp-flow__node > circle { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.lp-flow__node g * { stroke: var(--ink); stroke-width: 1.75; }
.lp-flow__fw rect { fill: var(--red); stroke: none; }
.lp-flow__fw g * { stroke: #fff; stroke-width: 1.9; }
.lp-flow text { font: 500 13px var(--font-body); fill: var(--muted); stroke: none; }
.lp-flow__lbl { font-size: 12px !important; letter-spacing: .06em; text-transform: uppercase; }
.lp-flow__lbl--no { fill: var(--red) !important; }
@keyframes lp-flow { to { stroke-dashoffset: -12; } }
@media (prefers-reduced-motion: reduce) { .lp-flow__ok { animation: none; } }
.lp-modules .card--feature .card__title { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.lp-modules .card--feature .card__text { font-size: 1.05rem; }

.lp-chips { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-chips li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.lp-chips .icon { color: var(--red); }

/* Duas camadas lado a lado (backup + antivírus) */
.lp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.lp-duo__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}

.lp-duo__card .card__title { font-size: clamp(1.8rem, 2.8vw, 2.3rem); }
.lp-duo__card .card__text { font-size: 1.05rem; }
.lp-duo__card:first-child { background: linear-gradient(135deg, var(--surface) 45%, #FBF1EE); border-color: #EFDAD4; }

/* Resposta a ameaças em 4 tempos, ligados por uma linha */
.lp-response {
  margin-top: 16px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px dashed #CFCFC9;
  border-radius: calc(var(--radius) + 4px);
}

.lp-response__title { margin-bottom: 20px; font-family: var(--font-title); font-weight: 600; font-size: 1.4rem; }

.lp-response__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.lp-response__item { display: grid; gap: 12px; align-content: start; position: relative; }
.lp-response__item .card__title { font-size: 1.35rem; margin-bottom: 4px; }

@media (min-width: 901px) {
  .lp-response__list::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 44px;
    right: 22px;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 12px);
    opacity: .5;
  }
  .lp-response__item .lp-ic { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
}

@media (max-width: 900px) {
  .lp-duo { grid-template-columns: 1fr; }
  .lp-response__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .lp-response__list { grid-template-columns: 1fr; }
}

/* Cobertura planejada: texto + planta ilustrada */
.lp-cover {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}

.lp-cover .lp-title { margin-bottom: 20px; }
.lp-cover .lp-chips { gap: 14px; }
.lp-cover .lp-chips li { align-items: flex-start; font-weight: 500; }
.lp-cover .lp-chips .icon { margin-top: 4px; }

.lp-floor { width: 100%; height: auto; }
.lp-floor__wall { fill: var(--bg); stroke: var(--ink); stroke-width: 2.5; }
.lp-floor__room { fill: none; stroke: #A3A7AD; stroke-width: 2; }
.lp-floor__ap circle { fill: var(--red); }
.lp-floor__ap .lp-floor__ring { fill: none; stroke: var(--red); stroke-width: 1.5; opacity: .5; transform-box: fill-box; transform-origin: center; animation: lp-ring 2.6s ease-out infinite; }
.lp-floor text { font: 500 13px var(--font-body); fill: var(--muted); }
@keyframes lp-ring { from { transform: scale(.5); opacity: .7; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lp-floor__ring { animation: none; } }

@media (max-width: 900px) {
  .lp-cover { grid-template-columns: 1fr; }
}

/* Regras de um backup que funciona (3 cartões, o do meio com os números 3-2-1) */
.lp-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.lp-rule {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}

.lp-rule .card__title { font-size: 1.55rem; }
.lp-rule .card__text strong { color: var(--ink); font-weight: 600; }
.lp-rule__note { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; font-size: .9rem; font-weight: 500; color: var(--red); }

.lp-rule--321 { background: linear-gradient(135deg, var(--surface) 45%, #FBF1EE); border-color: #EFDAD4; }
.lp-321 { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.lp-321 li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.lp-321 b { font-family: var(--font-title); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--red); text-align: center; }
.lp-321 span { color: var(--muted); font-size: .95rem; line-height: 1.45; }

@media (max-width: 1000px) { .lp-rules { grid-template-columns: 1fr; } }

/* Suporte 360: círculo central + itens inclusos em volta */
.lp-ring {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}

.lp-ring__core { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.lp-ring__core svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-ring__track { fill: #FBF1EE; stroke: var(--line); stroke-width: 2; }
.lp-ring__spin { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 70 483; transform-origin: center; animation: lp-spin 6s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lp-ring__spin { animation: none; } }
.lp-ring__core > div { position: relative; text-align: center; display: grid; gap: 4px; }
.lp-ring__core b { font-family: var(--font-title); font-weight: 600; font-size: 4.5rem; line-height: 1; color: var(--red); }
.lp-ring__core span { font-size: .95rem; color: var(--muted); font-weight: 500; }

.lp-ring__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.lp-ring__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.lp-ring__item h3 { margin: 0 0 2px; font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; line-height: 1.15; }
.lp-ring__item p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.lp-ring__link { display: inline-block; margin-top: 4px; font-size: .85rem; font-weight: 500; color: var(--red); text-decoration: none; }
.lp-ring__link:hover { text-decoration: underline; }

@media (max-width: 900px) { .lp-ring { grid-template-columns: 1fr; } .lp-ring__core { max-width: 220px; } }
@media (max-width: 600px) { .lp-ring__list { grid-template-columns: 1fr; } }

/* Lista com X (lado "comum" das comparações) */
.lp-chips--muted li { color: var(--muted); }
.lp-chips--muted .icon { color: #A3A7AD; }
.lp-vs .lp-duo__card:first-child { background: transparent; border-style: dashed; border-color: #CFCFC9; }
.lp-vs .lp-duo__card:last-child { background: linear-gradient(135deg, var(--surface) 45%, #FBF1EE); border-color: #EFDAD4; }

/* Seções ------------------------------------------------------------------ */

.lp-section { padding-top: clamp(64px, 9vw, 112px); }
.lp-section > .eyebrow, .lp-faq .eyebrow { margin-bottom: 12px; }

.lp-title {
  margin: 0 0 clamp(24px, 3.5vw, 40px);
  max-width: 22em;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lp-grid { display: grid; gap: 16px; }
.lp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid--4 { grid-template-columns: repeat(4, 1fr); }

.lp-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius);
  background: #FBEFEC;
  color: var(--red);
  font-size: 1.2rem;
}

/* 2. Dores */
.lp-pain {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  font-size: 1.02rem;
  line-height: 1.5;
}

.lp-bridge {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 44rem;
  padding: 14px 18px;
  border-left: 2px solid var(--red);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* 3. Antes x depois */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.lp-compare__col {
  padding: clamp(24px, 3vw, 36px);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.lp-compare__col--before { background: transparent; border-style: dashed; }

.lp-compare__col--after {
  background: linear-gradient(135deg, var(--surface) 45%, #FBF1EE);
  border-color: #EFDAD4;
}

.lp-compare__label {
  margin-bottom: 18px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.5rem;
}

.lp-compare__col--before .lp-compare__label { color: var(--muted); }

.lp-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.lp-compare li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.lp-compare li .icon { margin-top: 4px; }
.lp-compare__col--before li { color: var(--muted); }
.lp-compare__col--before .icon { color: #A3A7AD; }
.lp-compare__col--after .icon { color: var(--red); }

/* 5. Na prática: print principal + espaços para foto */
.lp-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Print principal em largura total; as duas fotos lado a lado embaixo */
.lp-gallery__main { grid-column: 1 / -1; }

.lp-slot { margin: 0; aspect-ratio: 16 / 9; }

.lp-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) + 4px);
}

/* Marcador visível enquanto a foto não chega (trocar por <img>) */
.lp-slot__ph {
  height: 100%;
  min-height: 160px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 16px;
  text-align: center;
  border: 1.5px dashed #CFCFC9;
  border-radius: calc(var(--radius) + 4px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.lp-slot__ph .icon { font-size: 1.6rem; margin-bottom: 4px; }
.lp-slot__ph small { font-weight: 400; font-size: 0.8rem; }

/* 6. Como funciona */
.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.lp-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}

.lp-step__n {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--red);
}

/* Linha ligando os passos no desktop */
@media (min-width: 901px) {
  .lp-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 46px;
    right: -17px;
    width: 18px;
    height: 1px;
    background: var(--line);
  }
}

/* 7. Por que a FabraWeb */
.lp-stats { margin-top: 16px; }

/* 8. Perguntas frequentes */
.lp-faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.lp-faq__aside { color: var(--muted); max-width: 22rem; }

.lp-faq__list { border-top: 1px solid var(--line); }

.lp-q { border-bottom: 1px solid var(--line); }

.lp-q summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary:hover { color: var(--red); }
.lp-q summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* Sinal de + que vira − */
.lp-q__icon { position: relative; width: 14px; height: 14px; flex: none; }
.lp-q__icon::before, .lp-q__icon::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s;
}
.lp-q__icon::after { transform: rotate(90deg); }
.lp-q[open] .lp-q__icon::after { transform: rotate(0deg); }

.lp-q p { padding: 0 4px 22px; max-width: 40rem; color: var(--muted); }

/* 9. Chamada final */
.lp-cta { gap: 0; }
.lp-cta .eyebrow { margin-bottom: 12px; }
.lp-cta .about-block__title { margin-bottom: 14px; max-width: 18em; }
.lp-cta__lead { max-width: 34rem; margin-bottom: 24px; color: var(--muted); }

/* Responsivo -------------------------------------------------------------- */

@media (max-width: 1000px) {
  .lp-grid--4, .lp-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .lp-hero, .lp-faq, .lp-compare { grid-template-columns: 1fr; }
  .lp-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .lp-grid--3, .lp-grid--4, .lp-steps { grid-template-columns: 1fr; }
  .lp-gallery { grid-template-columns: 1fr; }
  /* Dores em linha no celular: ícone ao lado do texto, cartão mais baixo */
  .lp-pain { grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 16px 18px; }
  .lp-hero .slide__actions { width: 100%; }
  .lp-hero .slide__actions .btn { flex: 1 1 auto; justify-content: center; }
}
