/* =================================================================
   CATON | rodada 2 (12/11/2026, pedido do Thalisson). Vem depois do caton.css.
   ================================================================= */

/* ---- logo com luz passando (header e card do comparativo). A luz corre só por
   transform e fica recortada pela silhueta da logo (mask), nunca como faixa retangular. */
.logo-luz {
  position: relative; display: inline-block; line-height: 0; overflow: hidden;
  -webkit-mask: url(../img/logo-caton.webp?v=1) center / 100% 100% no-repeat;
          mask: url(../img/logo-caton.webp?v=1) center / 100% 100% no-repeat;
}
.logo-luz img { display: block; width: 100% !important; height: auto; }
.logo-luz::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 80%, transparent 100%);
  transform: translateX(-120%);
  animation: logoLuz 4.8s ease-in-out 1s infinite;
  pointer-events: none;
}
@keyframes logoLuz { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(260%); } }
.logo-luz--header { width: clamp(150px, 14vw, 200px); transform-origin: left center; transition: transform 0.45s var(--ease); animation: logoEntra 0.9s var(--ease) 0.15s backwards; }
.site-header.is-solid .logo-luz--header { transform: scale(0.84); }
@media (max-width: 900px) { .logo-luz--header { width: clamp(122px, 34vw, 150px); } }
.logo-luz--card { width: min(170px, 55%); margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .logo-luz::after { animation: none; display: none; } }

/* ---- botão secundário branco: fundo branco, letra ink */
.btn--white { --btn-bg: #fff; --btn-fg: #151413; --btn-bd: #fff; font-weight: 700; }
.btn--white:hover { --btn-bg: #f2f1f0; --btn-bd: #f2f1f0; }

/* ---- HERO com a fachada inteira (estático) */
.hero--fachada .hero__sticky { position: relative; height: 100vh; height: 100svh; min-height: 640px; place-items: center start; }
.hero--fachada .hero__poster { position: absolute; inset: 0; z-index: 0; }
.hero--fachada .hero__poster img { width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.hero--fachada .hero__overlay {
  background:
    linear-gradient(90deg, rgba(21,20,19,0.6) 0%, rgba(21,20,19,0.35) 30%, rgba(21,20,19,0.08) 50%, rgba(21,20,19,0) 62%),
    linear-gradient(180deg, rgba(21,20,19,0.35) 0%, rgba(21,20,19,0) 18%, rgba(21,20,19,0) 80%, rgba(21,20,19,0.45) 100%);
}
.hero--fachada .hero__content { padding-top: calc(var(--header-h) + 24px); padding-bottom: 24px; max-width: 1200px; }
.hero--fachada .hero__headline { max-width: 17ch; font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.2rem); line-height: 1.1; }
.hero--fachada .hero__sub { max-width: 40ch; font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem); }
.tarja-ilustrativa {
  position: absolute; z-index: 3; right: 12px; bottom: 12px;
  padding: 4px 9px; background: rgba(21,20,19,0.72); color: rgba(255,255,255,0.85);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
}
.hero__tarja { right: 24px; top: calc(var(--header-h) + 16px); bottom: auto; }
@media (max-width: 767px) {
  /* celular: a fachada é faixa no TOPO, inteira, e dissolve no preto; o texto vem embaixo */
  .hero--fachada .hero__sticky { height: auto; min-height: 100svh; place-items: start; background: #151413; }
  .hero--fachada .hero__poster { inset: var(--header-h) 0 auto 0; height: auto; aspect-ratio: 800 / 477; }
  .hero--fachada .hero__poster img { object-position: center; -webkit-mask: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%); mask: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%); }
  .hero--fachada .hero__overlay { display: none; }
  .hero--fachada .hero__content { padding-top: calc(var(--header-h) + 56vw); }
  .hero__tarja { top: calc(var(--header-h) + 8px); bottom: auto; right: 10px; }
  .hero--fachada .hero__headline { font-size: clamp(1.55rem, 6.6vw, 2rem); }
}

/* ---- ZOOM NA FACHADA conforme rola: a dobra fica presa por um trecho (trilho) e a imagem
   aproxima centrada na casa. Só transform; o JS só roda com o hero na tela e a aba visível. */
.hero--fachada .hero__scroll-track { height: 170vh; position: relative; }
.hero--fachada .hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero--fachada .hero__poster { overflow: hidden; }
.hero--fachada .hero__poster img { transform-origin: 74% 66%; will-change: transform; }
@media (max-width: 767px) {
  .hero--fachada .hero__scroll-track { height: 150svh; }
  .hero--fachada .hero__sticky { position: sticky; height: 100svh; min-height: 0; }
  .hero--fachada .hero__poster img { transform-origin: 50% 62%; }
}
@media (prefers-reduced-motion: reduce) { .hero--fachada .hero__scroll-track { height: auto; } }

/* ---- MOLDURA ANIMADA (cards): luz azul que corre pelo contorno, girando só por transform.
   O fundo do card mora no ::after, a luz no ::before atrás dele. */
.moldura { position: relative; isolation: isolate; overflow: hidden; border: 0 !important; background: transparent !important; }
.moldura::before {
  content: ''; position: absolute; z-index: -2; left: 50%; top: 50%;
  width: 260%; height: auto; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, rgba(1,139,228,0.18) 0deg, rgba(1,139,228,0.18) 250deg, #0099fa 300deg, #ffffff 318deg, #0099fa 336deg, rgba(1,139,228,0.18) 360deg);
  animation: molduraGiro 6s linear infinite;
  animation-delay: calc(var(--i, 0) * -1.5s);
}
.moldura::after { content: ''; position: absolute; inset: 2px; z-index: -1; background: var(--moldura-fundo, #1e1d1b); }
@keyframes molduraGiro { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .moldura::before { animation: none; } }

/* ---- CENÁRIO E SOLUÇÃO: os dois cards com moldura azul, títulos fortes */
.combo-side { padding: 34px 32px; }
.combo-problem { --moldura-fundo: #1c1b1a; }
.combo-solution { --moldura-fundo: linear-gradient(160deg, #0d2a40 0%, #151413 70%); box-shadow: 0 24px 60px -24px rgba(1,139,228,0.45); }
.combo-titulo { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.75rem); font-weight: 800; color: #fff; margin: 0 0 22px; line-height: 1.15; letter-spacing: -0.01em; }
.combo-titulo .accent { color: #0099fa; }
.combo-problem .combo-titulo { color: rgba(255,255,255,0.88); }
.pair-list li { font-size: 1.02rem; }
.combo-problem .pair-list li { color: rgba(255,255,255,0.78); }

/* ---- COMO FUNCIONA: 4 cards pretos em 2x2 sobre a dobra clara */
.etapas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 2.2rem; }
.etapa { --moldura-fundo: #151413; padding: 30px 30px 32px; color: #fff; }
.etapa__num { display: inline-flex; align-items: center; gap: 10px; font-size: 2.1rem; font-weight: 800; color: #0099fa; line-height: 1; letter-spacing: -0.02em; }
.etapa__num::after { content: ''; width: 22px; height: 20px; background: #018be4; -webkit-mask: var(--mark-peak) center / contain no-repeat; mask: var(--mark-peak) center / contain no-repeat; }
.etapa h3 { color: #fff; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); margin: 16px 0 10px; line-height: 1.2; }
.etapa p { color: rgba(255,255,255,0.78); margin: 0; font-size: 0.97rem; line-height: 1.6; }
@media (max-width: 760px) { .etapas { grid-template-columns: 1fr; } }

/* ---- EXEMPLOS: cards claros sobre o preto */
.ex-card { background: #fff; border: 0; color: #151413; }
.ex-card:hover { border-color: transparent; box-shadow: 0 28px 60px rgba(0,0,0,0.5); }
.ex-img { position: relative; }
.ex-icons { border-bottom-color: rgba(21,20,19,0.1); }
.ex-icons span { background: #f2f1f0; border-color: rgba(21,20,19,0.1); color: #151413; }
.ex-icons svg { color: #027ac8; }
.ex-tier { color: #151413; font-size: 16px; }
.ex-stat-label { color: #4d4b48; }
.ex-parcela-box { background: #eef7f1; border-color: rgba(23,151,76,0.35); }
.ex-stat-value.parcela.pendente { color: #17974c; }
.ex-note { color: #6f6c68; }
.featured-card { box-shadow: 0 0 0 3px #018be4, 0 30px 70px -20px rgba(1,139,228,0.5); }

/* ---- CTA verde com a luz azul da marca correndo em volta (transform) */
.cta-luz { position: relative; display: inline-block; padding: 3px; overflow: hidden; isolation: isolate; }
.cta-luz::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, #027ac8 0deg, #027ac8 200deg, #0099fa 260deg, #ffffff 290deg, #0099fa 320deg, #027ac8 360deg);
  animation: molduraGiro 3.2s linear infinite;
}
.cta-luz .btn { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .cta-luz::before { animation: none; } }

/* ---- RODADA 3: cards de exemplo AZUIS (destacam do preto), botão branco no lugar do
   quadro de valor e parcela. Texto sobre o azul: branco só em título/selo grande, o
   corrido vai em ink (kit: branco no azul dá 3,61:1). */
.ex-card { background: linear-gradient(170deg, #0099fa 0%, #018be4 55%, #027ac8 100%); color: #151413; box-shadow: 0 24px 60px -24px rgba(1,139,228,0.55); }
.ex-card:hover { box-shadow: 0 30px 70px -20px rgba(1,139,228,0.7); }
.ex-icons { border-bottom-color: rgba(21,20,19,0.18); }
.ex-icons span { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); color: #151413; }
.ex-icons svg { color: #151413; }
.ex-tier { color: #151413; font-size: 17px; font-weight: 800; }
.ex-note { color: rgba(21,20,19,0.75); }
.ex-btn { margin-top: auto; padding: 15px 20px; }
.ex-btn::after { display: none; }
.featured-card::before { display: none; }

/* ---- RODADA 4 ------------------------------------------------------------- */

/* Régua de autoridade no pé da 1ª dobra: símbolo da logo em azul com degradê antes de cada número branco */
.hero--fachada .hero__content { padding-bottom: 150px; }
.regua { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: rgba(21,20,19,0.86); border-top: 1px solid rgba(1,139,228,0.45); }
.regua__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 22px; padding-bottom: 22px; }
.regua__titulo { margin: 0; max-width: 17ch; font-size: clamp(0.95rem, 0.8rem + 0.45vw, 1.15rem); font-weight: 700; line-height: 1.25; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; }
.regua__titulo span { color: #0099fa; }
.regua__lista { display: flex; gap: clamp(20px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.regua__lista li { display: flex; align-items: center; gap: 10px; }
.regua__simbolo { flex: none; width: 34px; aspect-ratio: 107 / 95; background: linear-gradient(135deg, #3fb4ff 0%, #018be4 50%, #02609e 100%); -webkit-mask: url(../img/logo/simbolo.webp?v=1) center / contain no-repeat; mask: url(../img/logo/simbolo.webp?v=1) center / contain no-repeat; }
.regua__lista strong { white-space: nowrap; font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.regua__lista li > span:last-child { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #cbcbcb; line-height: 1.3; }
@media (max-width: 1100px) {
  .regua__inner { flex-wrap: wrap; gap: 12px; }
  .regua__titulo { max-width: none; width: 100%; font-size: 0.78rem; }
  .regua__lista { width: 100%; justify-content: space-between; }
}
@media (max-width: 767px) {
  .hero--fachada .hero__content { padding-bottom: 150px; }
  .regua__inner { padding-top: 14px; padding-bottom: 14px; }
  .regua__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding-right: 64px; }
  .regua__lista li { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; row-gap: 4px; align-items: center; }
  .regua__lista li > span:last-child { grid-column: 1 / -1; font-size: 0.6rem; letter-spacing: 0.06em; }
  .regua__simbolo { width: 20px; }
  .regua__lista strong { font-size: 1.3rem; }
}

/* Valores de referência (modelo Moura): faixa de metragem grande na foto, com e sem financiamento, parcela */
.ex-img { position: relative; }
.ex-faixa { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 4px; padding: 10px 16px 12px; background: #151413; color: #fff; line-height: 1; }
.ex-faixa strong { font-size: clamp(2.2rem, 1.7rem + 1.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.ex-faixa small { font-size: 1.1rem; font-weight: 700; color: #0099fa; }
.ex-tier { margin-bottom: 16px; }
.ex-valores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ex-valor { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.35); }
.ex-valor__label, .ex-parcela__label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(21,20,19,0.8); }
.ex-valor__num { font-size: 1.05rem; font-weight: 800; color: #151413; line-height: 1.2; }
.ex-parcela { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #151413; margin-bottom: 18px; }
.ex-parcela__label { color: #cbcbcb; }
.ex-parcela__num { font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.8rem); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -0.01em; }
.ex-parcela__num small { font-size: 0.5em; font-weight: 600; color: #0099fa; margin-left: 3px; }
.valor-pendente { font-style: normal; opacity: 0.8; }
.ex-parcela__num.valor-pendente { font-size: 1.15rem; }
.featured-card { box-shadow: 0 0 0 3px #fff, 0 30px 70px -20px rgba(1,139,228,0.6); }
.ex-disclaimer { margin: 1.6rem auto 0; max-width: 72ch; text-align: center; font-size: 0.78rem; line-height: 1.6; color: rgba(255,255,255,0.55); }

/* Cards pretos com letra mais branca */
.etapa p { color: rgba(255,255,255,0.96); }
.compare__col--good .compare__list li { color: #fff; }

/* Quem somos sem foto (até o Wallisson mandar uma melhor), tudo centralizado */
.experts__inner--sem-foto { display: block; max-width: 820px; margin-inline: auto; text-align: center; }
.experts__inner--sem-foto .eyebrow { justify-content: center; }
.experts__inner--sem-foto .section-title { margin-left: auto; margin-right: auto; }
.portfolio .section-title { max-width: 26ch; margin-left: auto; margin-right: auto; }
.examples .section-lead { color: rgba(255,255,255,0.8); margin-left: auto; margin-right: auto; text-align: center; }
.experts__inner--sem-foto .section-title::after { margin-left: auto; margin-right: auto; }
.experts__inner--sem-foto .experts__copy { max-width: 62ch; margin-inline: auto; }
.experts__inner--sem-foto .experts__team { max-width: none; justify-items: center; }
.experts__inner--sem-foto .expert-member { border-left: 0; padding-left: 0; }
.experts__inner--sem-foto .expert-member::before { content: ''; display: block; width: 36px; height: 2px; margin: 0 auto 12px; background: #018be4; }

/* ---- COMPARATIVO: "Construindo com" + logo da Caton com luz */
.compare__col--good .compare__head--marca { margin-top: 0; }
.compare__title--marca { font-size: 1rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #cbcbcb !important; margin: 0; }

/* Régua só com a frase (sem números, 12/11/2026): símbolo + frase, centralizados */
.hero--fachada .hero__content { padding-bottom: 110px; }
.regua__inner { justify-content: center; gap: 16px; flex-wrap: nowrap; padding-top: 24px; padding-bottom: 24px; }
.regua__titulo { max-width: none; width: auto; font-size: clamp(1rem, 0.8rem + 0.7vw, 1.45rem); letter-spacing: 0.06em; }
.regua__simbolo { width: 40px; }
@media (max-width: 767px) {
  .hero--fachada .hero__content { padding-bottom: 96px; }
  .regua__inner { justify-content: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; padding-right: 84px; }
  .regua__titulo { font-size: 0.9rem; letter-spacing: 0.03em; }
  .regua__simbolo { width: 28px; }
}

/* ---- RODADA 5 (13/11/2026): VALORES DE REFERÊNCIA ---------------------------
   O azul vivo da rodada 3 deixava o texto preto sem contraste. O card agora é escuro,
   com degradê animado preto, marinho e azul da marca, e todo o texto em branco.
   O azul mais claro do degradê (#035a94) dá 7,2:1 com o branco; o #018be4 e o #0099fa
   não entram no fundo, só no brilho da borda. A animação mexe só no background-position. */
@property --ex-giro { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.ex-card {
  position: relative; isolation: isolate; color: #fff;
  background: linear-gradient(135deg, #151413 0%, #0d1f30 28%, #035a94 52%, #0b2a44 74%, #151413 100%);
  background-size: 300% 300%;
  animation: exDegrade 10s ease-in-out infinite alternate;
  box-shadow: 0 24px 60px -24px rgba(1,139,228,0.45);
}
.examples-grid .ex-card:nth-child(2) { animation-delay: -3.3s; }
.examples-grid .ex-card:nth-child(3) { animation-delay: -6.6s; }
.ex-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; padding: 1px;
  background: conic-gradient(from var(--ex-giro), rgba(1,139,228,0.15), #0099fa, rgba(255,255,255,0.7), #018be4, rgba(1,139,228,0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: exBorda 6s linear infinite;
}
.ex-card:hover { box-shadow: 0 30px 70px -20px rgba(1,139,228,0.65); }
@keyframes exDegrade { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
@keyframes exBorda { to { --ex-giro: 360deg; } }

.ex-tier { color: #fff; font-weight: 800; }
.ex-valor { background: rgba(0,0,0,0.32); border: 1px solid rgba(255,255,255,0.16); }
.ex-valor__label { color: rgba(255,255,255,0.82); }
.ex-valor__num { color: #fff; font-size: 1.15rem; }
.ex-parcela { background: #fff; }
.ex-parcela__label { color: #4d4b48; }
.ex-parcela__num { color: #151413; }
.ex-parcela__num small { color: #027ac8; font-weight: 700; }
.featured-card { box-shadow: 0 0 0 3px #fff, 0 30px 70px -20px rgba(1,139,228,0.6); }
.ex-disclaimer { color: rgba(255,255,255,0.7); }

@media (prefers-reduced-motion: reduce) {
  .ex-card, .ex-card::after { animation: none; }
  .ex-card { background-position: 50% 50%; }
}

/* ---- RODADA 7 (16/11/2026): PROPORÇÃO DA 1ª DOBRA ------------------------------
   O H1 pesava demais (3,2rem) e o H2 corria numa coluna mais estreita que o título.
   Agora: H1 um degrau menor, H2 na mesma largura do bloco do título (vira 3 linhas),
   respiro maior entre título, apoio e botões. */
@media (min-width: 768px) {
  .hero--fachada .hero__headline { max-width: 17ch; font-size: clamp(1.85rem, 1.05rem + 2.15vw, 2.8rem); line-height: 1.08; margin-bottom: clamp(1.1rem, 2.6vh, 1.6rem); }
  .hero--fachada .hero__sub { max-width: 28.5rem; font-size: clamp(1rem, 0.94rem + 0.22vw, 1.12rem); line-height: 1.6; margin-bottom: clamp(1.5rem, 3.6vh, 2.3rem); text-wrap: pretty; }
}
@media (max-width: 767px) {
  .hero--fachada .hero__headline { margin-bottom: 0.85rem; }
  .hero--fachada .hero__sub { font-size: 0.95rem; line-height: 1.55; text-wrap: pretty; }
}

/* ---- RODADA 8 (02/12/2026): HERO EM CELULAR DE TELA BAIXA -------------------------
   No navegador do Instagram (360x600, 393x660) o conteúdo passava da dobra presa de 100svh:
   o overflow:hidden cortava a sobra e a régua absoluta cobria o botão principal (360) ou o
   segundo botão (393). Em tela baixa o hero deixa de ser preso e cresce com o conteúdo, e a
   régua entra no fluxo logo abaixo dos botões. Tela alta segue com o zoom preso como antes. */
@media (max-width: 767px) and (max-height: 760px) {
  .hero--fachada .hero__scroll-track { height: auto; }
  .hero--fachada .hero__sticky { position: relative; height: auto; min-height: 100svh; overflow: visible; grid-template-rows: 1fr auto; }
  .hero--fachada .hero__content { padding-bottom: 22px; }
  .hero--fachada .regua { position: relative; justify-self: stretch; align-self: end; width: 100%; }
}
