/* =========================================================
   LP SITES: PEÇAS COM AS REFERÊNCIAS DO LOOPSII (APROVADAS EM 28/11/2026, MODELO 1 "NEGÓCIOS")
     .lf-par    parênteses com 11 pílulas que se abrem com a rolagem (seção presa)
     .lf-custo  grade de quadrados com seis cartões e o número com os cantos marcados
     .lf-et     o que está incluído por etapa: nome da etapa preso à esquerda, cartões claros com ilustrações em traço
   Efeitos em public/js/lp-f.js. Textos em src/data/lpSitesF.js.
   ========================================================= */

/* a seção clara antes de uma peça cheia (parênteses) precisa do espaço de baixo */
.ld-sec:has(+ .lf-par) { padding-bottom: var(--gap); }
.lf-par + .ld-sec { margin-top: 0; }

/* ---------- PARÊNTESES ---------- */
.lf-par { --lf-c: #ececec; --lf-l: rgb(255 255 255 / .18); position: relative; z-index: 10; height: 280vh; margin-top: -1px; color: #ececec; background: #0b0b0b; }
.lf-par__palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* foto pequena desfocada no CSS, como a pessoa desfocada da referência */
.lf-par__foto { position: absolute; inset: -8%; }
.lf-par__foto img { width: 100%; height: 100%; object-fit: cover; filter: blur(64px) brightness(.6) saturate(1.15); transform: scale(1.1); }
/* grão fino para o degradê não formar faixas */
.lf-par__foto::after { content: ""; position: absolute; inset: 0; z-index: 2; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* o quadro: textos nos cantos, linhas finas e cantos marcados; --k = 1 fechado, 0 aberto (lp-f.js) */
.lf-par__quadro { --k: 1; --dx: 200px; --dy: 110px; position: absolute; left: 50%; top: 50%; width: calc(100% - 2 * var(--pg-pad) - 40px); height: min(72vh, 700px); transform: translate(-50%, -50%); pointer-events: none; }
.lf-par__quadro > * { position: absolute; transform: translate(calc(var(--sx, 0) * var(--dx) * var(--k)), calc(var(--sy, 0) * var(--dy) * var(--k))); }
.lf-par__t { max-width: 9.4em; text-wrap: balance; font-family: var(--fd); font-size: clamp(26px, 2.75vw, 46px); font-weight: 400; line-height: 1.06; letter-spacing: -.035em; }
.lf-par__t--a { --sx: 1; --sy: 1; left: 36px; top: 34px; }
.lf-par__t--b { --sx: -1; --sy: -1; right: 36px; bottom: 34px; text-align: right; }
.lf-par__h { left: -100vw; right: -100vw; height: 1px; background: var(--lf-l); }
.lf-par__h--a { --sy: 1; top: 0; }
.lf-par__h--b { --sy: -1; bottom: 0; }
.lf-par__v { top: -100vh; bottom: -100vh; width: 1px; background: var(--lf-l); }
.lf-par__v--a { --sx: 1; left: 0; }
.lf-par__v--b { --sx: -1; right: 0; }
.lf-par__c { width: 7px; height: 7px; background: var(--lf-c); }
.lf-par__c--tl { --sx: 1; --sy: 1; left: -3.5px; top: -3.5px; }
.lf-par__c--tr { --sx: -1; --sy: 1; right: -3.5px; top: -3.5px; }
.lf-par__c--br { --sx: -1; --sy: -1; right: -3.5px; bottom: -3.5px; }
.lf-par__c--bl { --sx: 1; --sy: -1; left: -3.5px; bottom: -3.5px; }

/* o meio: parênteses e pílulas (estreito, para não encostar nos textos dos cantos) */
.lf-par__meio { --mw: 680px; position: absolute; z-index: 2; left: 50%; top: 50%; width: min(var(--mw), calc(100% - 2 * var(--pg-pad) - 120px)); transform: translate(-50%, -50%); }
.lf-par__lista { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(6px, 1vh, 10px); }
.lf-par__p { position: absolute; left: 0; top: 0; font-family: var(--fd); font-size: clamp(40px, 6.6vh, 62px); font-weight: 300; line-height: 1; color: var(--lf-c); pointer-events: none; }
/* pílulas sem borda, em vidro: um pouco transparentes sobre a foto desfocada */
.lf-pil { display: inline-flex; align-items: center; height: clamp(42px, 6vh, 58px); padding: 0 clamp(18px, 1.8vw, 28px); border: 0; border-radius: 40px; white-space: nowrap; font: inherit; font-size: clamp(15px, 2.15vh, 20px); font-weight: 500; letter-spacing: -.015em; color: #141414; background: rgb(240 240 240 / .84); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 1px 0 rgb(255 255 255 / .55); }
/* a última pílula, "Seu negócio", em laranja */
.lf-pil--destaque { color: #fff; background: rgb(255 110 0 / .9); box-shadow: inset 0 1px 0 rgb(255 255 255 / .28); }
/* estado inicial com a animação ativa (lp-f.js põe .is-js): pílulas escondidas, pequenas e desfocadas.
   Fica no CSS porque, quando a rolagem é recalculada, o GSAP limpa os estilos (senão elas apareciam antes da hora) */
.lf-par.is-js .lf-pil { opacity: 0; transform: scale(.1); filter: blur(8px); }

/* ---------- GRADE DE CUSTOS ---------- */
.lf-custo__topo { text-align: center; }
.lf-custo__t, .lf-et__t { max-width: 16em; margin: 22px auto 0; font-family: var(--fd); font-size: clamp(30px, 2.9vw, 46px); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; }
.lf-custo__t > div, .lf-et__t > div { padding-bottom: .08em; margin-bottom: -.08em; }
.lf-grade { --cols: 7; position: relative; margin-top: 70px; container-type: inline-size; }
.lf-grade__in { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: calc(100cqw / var(--cols)); }
.lf-grade__cards { display: contents; }
/* linhas: horizontais se desenham da esquerda, verticais de cima; passam um pouco das bordas */
.lf-grade__linhas { position: absolute; z-index: 0; top: 0; bottom: -1px; left: calc(-1 * var(--pg-pad)); right: calc(-1 * var(--pg-pad)); pointer-events: none; }
.lf-grade__linhas::before, .lf-grade__linhas::after { content: ""; position: absolute; inset: 0; background-position: var(--pg-pad) 0; background-size: calc(100cqw / var(--cols)) calc(100cqw / var(--cols)); transition: clip-path 1.6s cubic-bezier(.65, 0, .35, 1); }
.lf-grade__linhas::before { border-bottom: 1px solid var(--lines); background-image: linear-gradient(to bottom, var(--lines) 1px, transparent 1px); clip-path: inset(0 100% 0 0); }
.lf-grade__linhas::after { background-image: linear-gradient(to right, var(--lines) 1px, transparent 1px); clip-path: inset(0 0 100% 0); transition-delay: .15s; }
.lf-grade.is-in .lf-grade__linhas::before, .lf-grade.is-in .lf-grade__linhas::after { clip-path: inset(0); }
.lf-cc { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; margin: 6px; padding: 15px 14px 14px 16px; border-radius: 14px; background: #fff; }
.lf-cc__ico { display: block; width: 30px; height: 30px; }
.lf-cc__ico svg { display: block; width: 100%; height: 100%; fill: none; stroke: #0f0f0f; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.lf-cc__ico .o { stroke: var(--orange); }
.lf-cc__ico .b { fill: #fff; }
.lf-cc__nome { margin-top: auto; padding: 12px 0 10px; }
.lf-cc__nome b { display: block; font-size: 15px; font-weight: 500; line-height: 1.25; }
.lf-cc__nome small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: #7c7c7c; }
.lf-cc__v { font-family: var(--fd); font-size: clamp(18px, 1.55vw, 24px); font-style: normal; line-height: 1.05; letter-spacing: -.025em; }
.lf-cc--1 { grid-area: 1 / 1; } .lf-cc--2 { grid-area: 1 / 3; } .lf-cc--3 { grid-area: 2 / 2; }
.lf-cc--4 { grid-area: 2 / 4; } .lf-cc--5 { grid-area: 3 / 1; } .lf-cc--6 { grid-area: 3 / 3; }
.lf-grade__num { position: relative; z-index: 1; grid-area: 2 / 6; align-self: end; padding: 0 0 14px 14px; }
.lf-grade__n { display: block; font-family: var(--fd); line-height: .9; letter-spacing: -.04em; }
.lf-grade__n b { font-size: clamp(56px, 5.2vw, 88px); font-weight: 400; font-variant-numeric: tabular-nums; }
.lf-grade__n sup { margin-left: .04em; font-size: clamp(24px, 2vw, 34px); vertical-align: top; }
.lf-grade__nt { display: block; margin-top: 4px; font-family: var(--fd); font-size: clamp(20px, 1.7vw, 27px); letter-spacing: -.02em; white-space: nowrap; }
.lf-grade__num::after, .lf-grade__nota::before { content: ""; position: absolute; width: 8px; height: 8px; background: var(--main); }
.lf-grade__num::after { right: -4px; bottom: -4px; }
.lf-grade__nota { position: relative; z-index: 1; grid-area: 3 / 6 / auto / span 2; align-self: start; max-width: 9.5em; padding: 22px 0 0 14px; font-family: var(--fd); font-size: clamp(20px, 1.7vw, 27px); line-height: 1.16; letter-spacing: -.02em; }
.lf-grade__nota::before { left: -4px; top: -4px; }

/* a saída: título e texto lado a lado, com o botão */
.lf-custo__fim { margin-top: 110px; }
.lf-custo__fim-c .ld-txt { margin-top: 18px; }
.lf-custo__fim-c .btn { margin-top: 30px; }

/* ---------- ETAPAS ---------- */
/* nome da etapa sem contorno: número laranja e texto cinza, como os rótulos do site */
.lf-et__topo { text-align: center; }
.lf-et__fases { display: flex; flex-direction: column; gap: 90px; margin-top: 90px; }
.lf-et__fase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: 40px; }
.lf-et__aside { position: sticky; top: 120px; align-self: start; padding-top: 2px; }
.lf-et__tag { display: flex; gap: 12px; font-size: 14px; line-height: 1.6; color: var(--secondary); }
.lf-et__tag span { color: var(--orange); font-variant-numeric: tabular-nums; }
.lf-et__h { max-width: 10em; margin-top: 12px; font-family: var(--fd); font-size: clamp(22px, 1.9vw, 30px); font-weight: 400; line-height: 1.18; letter-spacing: -.02em; }
.lf-et__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* cartão no estilo dos boxes de números da home (sobre-bentos.css) */
.lf-card { --edge: rgb(15 15 15 / .07); --acc: var(--orange); --ink: rgb(15 15 15 / .5); --paper: #fafafa; --fg2: #6a6a6a;
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; min-width: 0; aspect-ratio: 1 / 1.06; padding: 26px 24px;
  border-radius: 24px; color: var(--main); background: var(--paper); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgb(255 255 255 / .8); }
.lf-card__txt { position: relative; z-index: 2; }
.lf-card__t { margin: 0; font-family: var(--fd); font-size: clamp(20px, 1.6vw, 25px); font-weight: 400; line-height: 1.16; letter-spacing: -.02em; }
.lf-card__d { max-width: 19em; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--fg2); }
.lf-card__nota { margin-top: 10px; font-size: 12.5px; color: var(--acc); }
/* ilustração em traço fino, cortada pela borda do cartão */
.lf-art { position: absolute; z-index: 1; right: -18%; bottom: -20%; width: 108%; height: 74%; pointer-events: none; }
.lf-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lf-art .f { fill: var(--paper); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lf-art .f.acc { stroke: var(--acc); }
.lf-art .f-top.acc { fill: color-mix(in srgb, var(--acc) 22%, var(--paper)); }
.lf-art .ln { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lf-art .ln.acc { stroke: var(--acc); }
.lf-art .pt { fill: var(--acc); }

/* =========================================================
   TELAS MENORES
   ========================================================= */
@media (max-width: 1279px) {
  .lf-grade { --cols: 6; }
  .lf-grade__num { grid-area: 2 / 5; }
  .lf-grade__nota { grid-area: 3 / 5 / auto / span 2; }
}
@media (max-width: 1024px) {
  .lf-par__t { max-width: 9em; }
  .lf-grade { --cols: 5; }
  .lf-grade__nota { grid-area: 3 / 5; }
  .lf-et__fase { grid-template-columns: 1fr; row-gap: 26px; }
  .lf-et__aside { position: static; }
  .lf-et__h { max-width: none; }
}
@media (max-width: 900px) {
  .lf-et__cards { grid-template-columns: 1fr 1fr; }
  .lf-grade { --cols: 4; }
  .lf-grade__num { grid-area: 3 / 4; }
  .lf-grade__nota { grid-area: 4 / 3 / auto / span 2; }
  .lf-grade__num::after { right: auto; left: -4px; }
  .lf-grade__nota::before { left: auto; right: -4px; }
}
@media (max-width: 767px) {
  .lf-par { height: 240vh; }
  .lf-par__quadro { width: calc(100% - 2 * var(--pg-pad)); height: 78svh; }
  .lf-par__t { max-width: 8.6em; font-size: 24px; }
  .lf-par__t--a { left: 16px; top: 18px; }
  .lf-par__t--b { right: 16px; bottom: 18px; }
  .lf-par__c { width: 6px; height: 6px; }
  .lf-par__c--tl, .lf-par__c--bl { left: -3px; }
  .lf-par__c--tr, .lf-par__c--br { right: -3px; }
  .lf-par__c--tl, .lf-par__c--tr { top: -3px; }
  .lf-par__c--bl, .lf-par__c--br { bottom: -3px; }
  .lf-par__meio { width: calc(100% - 2 * var(--pg-pad) - 56px); }
  .lf-par__lista { gap: 5px; }
  .lf-pil { height: 34px; padding: 0 13px; font-size: 13px; }
  .lf-par__p { font-size: 34px; }

  .lf-grade { margin-top: 44px; }
  .lf-cc--1 { grid-area: 1 / 1 / span 2 / span 2; } .lf-cc--2 { grid-area: 2 / 3 / span 2 / span 2; }
  .lf-cc--3 { grid-area: 3 / 1 / span 2 / span 2; } .lf-cc--4 { grid-area: 4 / 3 / span 2 / span 2; }
  .lf-cc--5 { grid-area: 5 / 1 / span 2 / span 2; } .lf-cc--6 { grid-area: 6 / 3 / span 2 / span 2; }
  .lf-cc { margin: 5px; padding: 14px; }
  .lf-cc__nome b { font-size: 14px; }
  .lf-cc__v { font-size: 19px; }
  .lf-grade__num { grid-area: 7 / 1 / span 2 / span 2; }
  .lf-grade__nota { grid-area: 9 / 1 / auto / span 4; max-width: 12em; font-size: 20px; }
  .lf-grade__num::after { left: auto; right: -4px; }
  .lf-grade__nota::before { right: auto; left: -4px; }
  .lf-custo__fim { margin-top: 80px; }

  .lf-et__fases { gap: 64px; margin-top: 50px; }
  .lf-et__cards { grid-template-columns: 1fr; gap: 10px; }
  .lf-card { aspect-ratio: auto; min-height: 270px; padding: 22px 20px; border-radius: 20px; }
  .lf-card__t { font-size: 21px; }
  .lf-card__d { max-width: 15em; font-size: 13.5px; }
  .lf-art { right: -8%; bottom: -14%; width: 64%; height: 70%; }
}
