/* ==========================================================================
   Opex - Soluções em Automação
   Ordem: tokens → base → layout → componentes → seções → utilitários.
   Cada bloco traz seus próprios media queries, logo abaixo das regras base.
   Breakpoints: 1024px (tablet), 860px (menu mobile), 480px (celular).
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */
:root {
  /* Marca (extraída do logo) */
  /* Paleta tirada do logo (brand/logo2.jpeg e logo3.jpeg) */
  --navy: #262163;          /* índigo do texto "opex" */
  --navy-deep: #17143f;     /* variação mais escura, para o rodapé */
  --blue: #08639d;          /* azul petróleo do símbolo; AA com texto branco (6.4:1) */
  --purple: #573a92;        /* roxo do símbolo; AA com texto branco (8.7:1) */
  --cyan: #00adef;          /* ciano do "e"; destaques sobre fundo escuro (5.6:1 no --navy) */
  --lilac: #968ac2;         /* lilás do símbolo; só decorativo */

  /* Texto e superfícies */
  --ink: #1d1a45;
  --muted: #5a5878;
  --bg: #f5f5fb;
  --surface: #fff;
  --tint: #e7f0f7;
  --line: #e1e0ee;

  /* Sobre fundo escuro */
  --on-dark: #fff;
  --on-dark-muted: #c9c6e6;
  --line-dark: rgba(255, 255, 255, .12);

  /* Sombras com tom da marca, não preto puro */
  --shadow-sm: 0 4px 20px rgba(23, 20, 63, .18);
  --shadow-md: 0 18px 40px rgba(38, 33, 99, .14);
  --shadow-lg: 0 30px 60px rgba(23, 20, 63, .45);

  --wa: #25d366;

  --header-h: 76px;
  --radius: 12px;
  --font: Manrope, system-ui, sans-serif;
}

@media (max-width: 480px) {
  :root { --header-h: 64px; }
}

/* Base (o reset genérico fica em reset.css) ------------------------------- */

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, strong, b { font-weight: 700; }

/* Títulos com linhas equilibradas; parágrafos sem palavra sozinha na última linha */
h1, h2, h3 { letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--purple); color: var(--on-dark); }

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Layout ------------------------------------------------------------------ */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.section { padding: 96px 0; scroll-margin-top: calc(var(--header-h) - 16px); }
.section--alt { background: var(--surface); }
.section--flush-top { padding-top: 0; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__head p { color: var(--muted); }

@media (max-width: 860px) {
  .section { padding: 70px 0; }
  .section__head { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section--flush-top { padding-top: 0; }
}

/* Componentes ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}

.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--light { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--tint); }
.btn--light svg { fill: var(--wa); }
.btn--ghost { border: 2px solid rgba(255, 255, 255, .4); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--primary { background: var(--blue); color: var(--on-dark); }
.btn--primary:hover { background: #064f7e; }

.icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--blue);
}
.icon svg { width: 24px; height: 24px; }
.icon--sm { width: 46px; height: 46px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--on-dark);
}
.brand img { width: 44px; height: 44px; }
.brand__e { color: var(--cyan); }
.brand small {
  display: block;
  margin-top: -6px;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .8;
}

@media (max-width: 480px) {
  .brand { font-size: 1.4rem; }
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* Header ------------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  /* "translate" (e não "transform"): o GSAP anima o transform na intro e os dois não podem brigar */
  transition: background .3s, box-shadow .3s, translate .35s ease;
}
.header.is-hidden { translate: 0 -100%; }
.header.is-solid {
  background: rgba(23, 20, 63, .92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  color: var(--on-dark);
}
.nav__links { display: flex; gap: 30px; font-weight: 500; }
.nav__links a { opacity: .85; }
.nav__links a:hover,
.nav__links a[aria-current] { opacity: 1; }
.nav__links a[aria-current] { color: var(--cyan); }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--on-dark);
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav__links { gap: 22px; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--navy);
    box-shadow: var(--shadow-sm);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    display: block;
    padding: 16px 20px;
    border-top: 1px solid var(--line-dark);
  }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  overflow: hidden;
  padding: 170px 0 120px;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse at 85% 30%, rgba(87, 58, 146, .45), transparent 60%),
    var(--navy);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
}
.hero h1 span { color: var(--cyan); }
.hero p { max-width: 520px; margin-bottom: 34px; font-size: 1.1rem; opacity: .85; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .hero__proof {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: .9rem;
  color: var(--on-dark-muted);
}
.hero__proof strong { color: var(--on-dark); }
.hero__visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__logo {
  width: min(420px, 100%);
  margin: auto;
  filter: drop-shadow(var(--shadow-lg));
}
/* Interação (o JS adiciona .is-interactive): arrastar gira, clique gira um lóbulo */
.hero__visual.is-interactive .hero__logo { cursor: grab; }
.hero__visual.is-interactive .hero__logo:active { cursor: grabbing; }
.hero__logo:focus-visible { outline-offset: -20px; border-radius: 50%; }


@media (max-width: 860px) {
  .hero { padding: 120px 0 72px; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero p { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { grid-row: 1; }
  .hero__logo { width: 160px; }
  .hero .hero__proof { display: inline-block; }
}
@media (max-width: 600px) {
  /* no celular o título e os botões têm prioridade; o logo já está no header */
  .hero__visual { display: none; }
}
@media (max-width: 480px) {
  .hero { padding: 96px 0 56px; }
  .hero p { font-size: 1rem; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { justify-content: center; width: 100%; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 96px 0 48px; }
  .hero__visual { display: none; }
}

/* Cupom (seção imersiva) -------------------------------------------------
   Uma impressora de cupom "imprime" os serviços da Opex conforme a rolagem.
   Sem JS / com "reduzir movimento": o cupom aparece inteiro, sem animação.
   Com animação, o JS adiciona .is-animated: a seção fica presa na tela e o
   cupom sobe de dentro da impressora (.printer-paper corta o que ainda não saiu). */
.receipt-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(ellipse at 75% 60%, rgba(87, 58, 146, .45), transparent 60%),
    var(--navy);
  color: var(--on-dark);
}
.receipt-section__stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.receipt-section__text h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 16px; }
.receipt-section__text p { max-width: 460px; margin-bottom: 28px; color: var(--on-dark-muted); }

.printer-wrap { display: flex; flex-direction: column; align-items: center; }
.printer-paper { display: flex; align-items: flex-end; overflow: hidden; padding: 0 24px; }

/* Papel térmico, com borda serrilhada no topo */
.receipt {
  position: relative; /* referência do offsetTop das linhas, usado no JS */
  width: 300px;
  padding: 26px 22px 18px;
  background: #fbfbf7;
  color: #2b2b33;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .78rem;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --tooth: 8px;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) var(--tooth) repeat-x,
    linear-gradient(#000, #000) 0 var(--tooth) / 100% calc(100% - var(--tooth)) no-repeat;
}
.receipt__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.receipt__head strong { font-size: 1.4rem; letter-spacing: .3em; margin-bottom: 2px; }
.receipt__date { margin-top: 4px; }
.receipt__date:empty { display: none; }
.receipt__title,
.receipt__total,
.receipt__items { padding: 10px 0; border-bottom: 1px dashed #b9b9c4; }
.receipt__head { padding-bottom: 10px; border-bottom: 1px dashed #b9b9c4; }
.receipt__title { text-align: center; font-weight: 600; }
.receipt__items li { display: flex; align-items: baseline; gap: 6px; }
.receipt__items i { flex: 1; border-bottom: 1px dotted #9a9aa8; }
.receipt__items b { color: var(--blue); }
.receipt__total { display: flex; justify-content: space-between; font-weight: 600; }
.receipt__stamp {
  width: fit-content;
  margin: 16px auto;
  padding: 6px 14px;
  border: 2px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-8deg);
}
.receipt__thanks { text-align: center; }
.receipt__barcode {
  height: 36px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg, #2b2b33 0 2px, transparent 2px 4px, #2b2b33 4px 5px, transparent 5px 8px, #2b2b33 8px 11px, transparent 11px 13px);
}

/* Impressora: corpo índigo, fenda por onde o papel sai e a marca da Opex */
.printer {
  position: relative;
  width: 360px;
  height: 84px;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(#3a347f, #1d1a4a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 20px 40px rgba(0, 0, 0, .35);
}
.printer__slot {
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 8px;
  border-radius: 0 0 6px 6px;
  background: #0d0b26;
}
.printer__brand {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.printer__brand span { color: var(--cyan); }
.printer__led {
  position: absolute;
  right: 24px;
  bottom: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
/* Luz pisca enquanto imprime (classe controlada pela rolagem no JS) */
.printer.is-printing .printer__led { animation: led .25s steps(2) infinite; }

@keyframes led {
  50% { opacity: .2; box-shadow: none; }
}

/* Modo animado */
.receipt-section.is-animated {
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding: calc(var(--header-h) + 16px) 0 24px;
}
.receipt-section.is-animated .receipt-section__stage { width: 100%; }

.receipt-section__hint,
.receipt-section__skip { position: absolute; display: none; color: var(--on-dark-muted); }
.receipt-section.is-animated .receipt-section__hint,
.receipt-section.is-animated .receipt-section__skip { display: flex; }
.receipt-section__hint {
  bottom: 24px;
  left: 50%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.receipt-section__hint span {
  width: 2px;
  height: 32px;
  border-radius: 2px;
  background: linear-gradient(var(--cyan), transparent);
  animation: hint 1.6s ease-in-out infinite;
  transform-origin: top;
}
.receipt-section__skip {
  top: calc(var(--header-h) + 12px);
  right: 20px;
  gap: 4px;
  font-size: .85rem;
  font-weight: 600;
  transition: color .2s;
}
.receipt-section__skip:hover { color: var(--on-dark); }

@keyframes hint {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 860px) {
  .receipt-section__stage { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .receipt-section__text p { margin-inline: auto; }
  /* Na tela presa: título e botão no mesmo lugar; o botão troca com o título
     quando o carimbo entra (JS). O parágrafo some para o cupom caber. */
  .receipt-section.is-animated .receipt-section__text { display: grid; justify-items: center; align-items: center; }
  .receipt-section.is-animated .receipt-section__text > * { grid-area: 1 / 1; margin: 0; }
  .receipt-section.is-animated .receipt-section__text p { display: none; }
  /* o título transparente (opacity < 1) seria desenhado por cima e roubaria o clique */
  .receipt-section.is-animated .receipt-section__text .btn { position: relative; z-index: 1; }
}

/* Telas baixas (iPhone SE, notebooks pequenos): reduz impressora + cupom para caber */
@media (max-height: 760px) {
  .printer-wrap { zoom: .85; }
}
@media (max-height: 660px) {
  .printer-wrap { zoom: .75; }
  .receipt-section__text h2 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .receipt { width: 260px; padding: 22px 16px 14px; font-size: .68rem; }
  .receipt__head strong { font-size: 1.15rem; }
  .receipt__barcode { height: 28px; }
  .printer { width: 300px; height: 70px; }
  .printer__brand { font-size: 1.1rem; bottom: 14px; }
  .printer__led { bottom: 20px; }
  .receipt-section__hint { display: none !important; }
}

/* Sobre ------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about p { margin-bottom: 14px; color: var(--muted); }

.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.facts dd { color: var(--muted); }

@media (max-width: 1024px) {
  .about { gap: 40px; }
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* Serviços ----------------------------------------------------------------
   Mosaico (bento): 3 colunas no desktop, cards --wide ocupam 2. O --dark é o destaque.
*/
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: box-shadow .25s, border-color .25s;
}
.card:hover { border-color: rgba(8, 99, 157, .35); box-shadow: var(--shadow-sm); }
.card--wide { grid-column: span 2; }

.card__head { margin-bottom: 20px; }
.card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.card p { font-size: .95rem; color: var(--muted); }

.card__features {
  display: grid;
  gap: 8px 20px;
  margin: 20px 0 24px;
  font-size: .92rem;
}
.card--wide .card__features { grid-template-columns: repeat(2, 1fr); }
.card__features li { display: flex; align-items: center; gap: 10px; }
.card__features li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308639d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto; /* alinha o link no rodapé de cards com alturas diferentes */
  font-weight: 600;
  color: var(--blue);
}
.card__link::after { content: "→"; transition: transform .25s; }
.card__link:hover::after { transform: translateX(4px); }

/* Card de destaque (escuro) */
.card--dark {
  border-color: transparent;
  background: var(--navy);
  color: var(--on-dark);
}
.card--dark:hover { border-color: rgba(0, 173, 239, .4); }
.card--dark p { color: var(--on-dark-muted); }
.card--dark .icon { background: rgba(255, 255, 255, .1); color: var(--cyan); }
.card--dark .card__features li::before { background-color: rgba(0, 173, 239, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300adef' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
.card--dark .card__link { color: var(--cyan); }

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .services { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card--wide .card__features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .card { padding: 26px 20px; }
}

/* Como funciona -----------------------------------------------------------
   Linha do tempo: cada etapa (menos a última) desenha o trecho de linha até a
   próxima (::before = trilho cinza, ::after = preenchimento). O preenchimento usa
   --fill (0 a 1), atualizado pela rolagem em animations.js; sem JS fica cheio.
   Desktop: horizontal, 4 colunas. Celular: vertical, linha à esquerda. */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); }
.timeline__step {
  --fill: 1;
  position: relative;
  padding: 0 14px;
  text-align: center;
}
.timeline__step:not(:last-child)::before,
.timeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 50%;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.timeline__step:not(:last-child)::after {
  background: var(--blue);
  transform: scaleX(var(--fill));
  transform-origin: left;
}
.timeline__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--on-dark);
  box-shadow: 0 0 0 8px var(--bg); /* anel da cor do fundo "corta" a linha */
  transition: background .4s, color .4s, box-shadow .4s;
}
.timeline__node svg { width: 26px; height: 26px; }
.timeline__body { transition: opacity .4s; }
.timeline__num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.timeline__body h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.timeline__body p { max-width: 240px; margin-inline: auto; font-size: .94rem; color: var(--muted); }
.timeline__cta { margin-top: 48px; text-align: center; }

/* Com animação: etapa apagada até a linha chegar nela */
.timeline.is-animated .timeline__step:not(.is-active) .timeline__node {
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 0 0 8px var(--bg), inset 0 0 0 2px var(--line);
}
.timeline.is-animated .timeline__step:not(.is-active) .timeline__body { opacity: .45; }


@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline__step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 0 0 32px;
    text-align: left;
  }
  .timeline__step:not(:last-child)::before,
  .timeline__step:not(:last-child)::after { top: 28px; left: 27px; width: 3px; height: 100%; }
  .timeline__step:not(:last-child)::after { transform: scaleY(var(--fill)); transform-origin: top; }
  .timeline__node { width: 56px; height: 56px; margin: 0; }
  .timeline__body { padding-top: 2px; }
  .timeline__body p { max-width: none; margin: 0; }
  .timeline__cta { margin-top: 16px; }
}
@media (max-width: 480px) {
  .timeline__cta .btn { justify-content: center; width: 100%; }
}

/* Marcas ------------------------------------------------------------------ */
.brands {
  padding: 40px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.brands__title {
  margin-bottom: 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.brands__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 64px;
}
/* Logos em cinza para não competir com a marca da Opex; cor original no hover */
.brands__list img {
  width: auto;
  height: 36px;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .3s, opacity .3s;
}
.brands__list li:hover img { filter: none; opacity: 1; }
/* Logos de traço fino parecem menores na mesma altura; compensa visualmente */
.brands__list .brands__logo--tall { height: 50px; }

@media (max-width: 480px) {
  .brands__list { gap: 20px 36px; }
  .brands__list img { height: 28px; }
  .brands__list .brands__logo--tall { height: 40px; }
}

/* Diferenciais ------------------------------------------------------------
   .why: introdução à esquerda (fixa durante a rolagem no desktop) + diferenciais.
   .compare: dois cartões "Do jeito comum" (✕, apagado) e "Com a Opex" (✓, destaque). */
.why {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.why__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.why__intro p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow .25s;
}
.feature .icon { margin-bottom: 16px; }
.feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { font-size: .94rem; color: var(--muted); }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 64px;
}
.compare__col { padding: 32px 30px; border-radius: var(--radius); }
.compare__col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.2rem; }
.compare__col li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.compare__col li::before {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
}
.compare__col--before { border: 1px dashed var(--line); color: var(--muted); }
.compare__col--before li::before { content: "✕"; background: var(--line); color: var(--muted); }
.compare__col--after {
  border: 2px solid var(--blue);
  background: var(--surface);
}
.compare__col--after li::before { content: "✓"; background: var(--blue); color: var(--on-dark); }

@media (max-width: 1024px) {
  .why { grid-template-columns: 1fr; gap: 32px; }
  .why__intro { position: static; text-align: center; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .features,
  .compare { grid-template-columns: 1fr; }
  .compare { margin-top: 40px; }
}
@media (max-width: 480px) {
  .compare__col { padding: 26px 20px; }
}

/* CTA --------------------------------------------------------------------- */
.cta {
  padding: 60px 40px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--on-dark);
  text-align: center;
}
.cta p { max-width: 560px; margin: 0 auto 28px; opacity: .9; }

@media (max-width: 860px) {
  .cta { padding: 44px 22px; }
}
@media (max-width: 480px) {
  .cta .btn { justify-content: center; width: 100%; }
}

/* FAQ ---------------------------------------------------------------------
   <details> nativo (funciona sem JS). A abertura animada usa ::details-content
   onde o navegador suporta; nos demais abre na hora, sem quebrar nada. */
:root { interpolate-size: allow-keywords; } /* permite animar até height: auto */

.faq__list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover,
.faq__item[open] summary { color: var(--blue); }

/* Ícone "+" desenhado com duas barras; aberto, a barra vertical encolhe e vira "−" */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--blue);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    var(--tint);
  transition: background-size .25s, background-color .25s, color .25s;
}
.faq__item[open] summary::after {
  color: var(--on-dark);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 0 no-repeat,
    var(--blue);
}

.faq__item p { max-width: 640px; padding: 0 4px 22px; color: var(--muted); }

.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size .3s ease, opacity .3s ease, content-visibility .3s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; opacity: 1; }

.faq__more { margin-top: 32px; text-align: center; color: var(--muted); }
.faq__more a { font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Footer ------------------------------------------------------------------ */
.footer { padding: 72px 0 0; font-size: .93rem; color: var(--on-dark-muted); background: var(--navy-deep); }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--on-dark); }
.footer h4 {
  margin-bottom: 16px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.footer li + li { margin-top: 10px; }

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__about .brand { margin-bottom: 16px; }
.footer__about p { max-width: 320px; }

.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  color: var(--on-dark);
  fill: currentColor;
  transition: background .2s, border-color .2s;
}
.footer__social a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.footer__social svg { width: 18px; height: 18px; }

.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--cyan); fill: currentColor; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  font-size: .82rem;
}
.footer__bottom a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .footer__bottom { padding-bottom: 96px; } /* espaço para o botão flutuante do WhatsApp */
}
@media (max-width: 480px) {
  .footer { padding-top: 56px; }
  .footer__top { gap: 32px 20px; padding-bottom: 40px; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
}

/* 404 --------------------------------------------------------------------- */
.not-found { display: grid; min-height: 100vh; padding: 60px 0; place-items: center; text-align: center; }
.not-found .wrap { display: block; }
.not-found img { margin: 0 auto 24px; }
.not-found p { margin-inline: auto; }

/* WhatsApp flutuante ------------------------------------------------------ */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: var(--shadow-sm);
}
.wa-float svg { width: 30px; height: 30px; fill: var(--on-dark); }
@media (max-width: 480px) {
  .wa-float { width: 52px; height: 52px; }
}

/* Movimento ---------------------------------------------------------------
   Animações de rolagem/entrada ficam em assets/js/animations.js (GSAP).
   O elemento com .reveal aparece com fade + subida ao entrar na tela. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
