/* ==========================================================================
   Página de Serviços
   Cada serviço é um capítulo alto com o conteúdo "preso" na tela (sticky).
   O servicos.js escreve --p (0 → 1) no capítulo conforme a rolagem, e as
   animações abaixo são todas calculadas a partir dele em CSS.
   No celular e com "reduzir movimento" o --p é animado no tempo.
   ========================================================================== */

/* ---------- Abertura ---------- */
.svc-hero { position: relative; overflow: hidden; isolation: isolate; padding: 120px 0 90px; }
/* Onda de luz de fundo, grande e desfocada, atrás do título */
.svc-hero .wave-bg {
  position: absolute; z-index: -1; left: -10%; width: 120%; top: 18%; height: 60%; margin: 0;
  filter: blur(18px); opacity: .5; pointer-events: none;
}
.svc-h1.hero-title { position: static; font-size: clamp(56px, 8.6vw, 168px); line-height: .9; letter-spacing: -0.045em; margin-top: clamp(50px, 9vh, 110px); }
.svc-lead { max-width: 560px; margin-top: 34px; font-size: clamp(16px, 1.25vw, 21px); line-height: 1.3; letter-spacing: -0.4px; color: rgba(255,255,255,.72); }
.light .svc-lead { color: rgba(0,0,0,.6); }
.svc-toc { margin-top: clamp(50px, 8vh, 90px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--paper-15); }
.svc-toc a {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px;
  padding: 22px 18px 26px 0; border-right: 1px solid var(--paper-10);
  opacity: 0; transform: translateY(24px); animation: tocIn 1s var(--ease) forwards;
}
.svc-toc a:nth-child(2) { animation-delay: .1s; padding-left: 18px; }
.svc-toc a:nth-child(3) { animation-delay: .2s; padding-left: 18px; }
.svc-toc a:nth-child(4) { animation-delay: .3s; padding-left: 18px; border-right: 0; }
.svc-toc a:first-child { animation-delay: 0s; }
@keyframes tocIn { to { opacity: 1; transform: none; } }
.svc-toc .n { font-family: var(--f-mono); font-weight: 400; font-size: 12px; color: var(--paper-50); grid-row: span 2; padding-top: 4px; }
.svc-toc .l { font-size: clamp(17px, 1.35vw, 24px); letter-spacing: -0.6px; line-height: 1.05; }
.svc-toc .d { color: var(--paper-50); grid-column: 2; }
.svc-toc .ar { grid-row: 1; grid-column: 3; opacity: .35; transition: transform .5s var(--ease), opacity .3s; }
.svc-toc a::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.svc-toc a:hover::after { transform: scaleX(1); }
.svc-toc a:hover .ar { opacity: 1; transform: translateY(4px); }

/* ---------- Capítulo ---------- */
.svc-ch { --p: 0; position: relative; height: 290vh; }
.svc-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4vw; align-items: center;
  max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 96px calc(var(--gutter) + 56px) 40px var(--gutter);
}
.svc-copy { position: relative; z-index: 2; max-width: 560px; }
.svc-num { font-size: clamp(64px, 6.4vw, 120px); line-height: .8; letter-spacing: -0.05em; opacity: .14; }
.svc-ch h2 { margin-top: clamp(10px, 2vh, 22px); font-size: clamp(36px, 3.7vw, 70px); line-height: .95; letter-spacing: -0.045em; }
.svc-sub { margin-top: 16px; font-size: clamp(16px, 1.2vw, 20px); line-height: 1.25; letter-spacing: -0.4px; }
.svc-text { margin-top: 14px; font-family: var(--f-mono); font-weight: 400; font-variation-settings: normal; font-size: 13px; line-height: 1.5; opacity: .62; max-width: 470px; }
.svc-get-h { margin-top: clamp(18px, 3vh, 30px); opacity: .5; }
.svc-get { list-style: none; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: g; }
.svc-get li {
  counter-increment: g; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px; border-radius: 40px; font-size: 13px; letter-spacing: -0.2px;
  border: 1px solid var(--paper-15); color: rgba(255,255,255,.55);
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.svc-get li::before { content: counter(g, decimal-leading-zero); font-family: var(--f-mono); font-weight: 400; font-size: 10px; opacity: .6; }
.svc-get li.done { color: #fff; border-color: rgba(255,255,255,.4); }
.svc-get li.on { background: #fff; color: #000; border-color: #fff; transform: translateY(-2px); }
.light .svc-get li { border-color: rgba(0,0,0,.14); color: rgba(0,0,0,.45); }
.light .svc-get li.done { color: #000; border-color: rgba(0,0,0,.4); }
.light .svc-get li.on { background: #000; color: #fff; border-color: #000; }
.svc-foot { margin-top: clamp(18px, 3.4vh, 34px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.svc-cases { display: flex; gap: 6px; align-items: center; }
.svc-cases:empty { display: none; }
.case-pill { width: 66px; height: 40px; border-radius: 3px; background: #fff; display: grid; place-items: center; transition: transform .4s var(--ease); }
.light .case-pill { background: var(--soft); }
.case-pill img { width: 74%; height: 74%; object-fit: contain; }
.case-pill:hover { transform: translateY(-3px); }
.case-pill.more { width: auto; padding: 0 10px; color: #000; }
.svc-cases-h { width: 100%; opacity: .5; }

/* palco das animações */
.svc-stage { position: relative; height: 100%; max-height: 760px; display: grid; place-items: center; perspective: 1400px; }
.scene { --tx: 0deg; --ty: 0deg; position: relative; width: min(100%, 68vh, 640px); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(var(--ty)) rotateY(var(--tx)); transition: transform .6s var(--ease); }

/* ---------- 01 · Manual da marca sendo montado ----------
   Uma página de manual: posicionamento, símbolo com a construção e a área de
   proteção, cores, tipografia e aplicações. Cada peça tem o início (--a) e a
   duração (--d) dentro do --p do capítulo. */
.brand-svg { width: 100%; height: 100%; overflow: visible; }
.brand-svg .bl {
  fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1; stroke-dasharray: 1;
  --k: clamp(0, calc((var(--p) - var(--a)) / var(--d)), 1); stroke-dashoffset: calc(1 - var(--k));
}
.bm-page .bl { stroke: rgba(255,255,255,.26); }
.bm-page rect.bl { stroke: rgba(255,255,255,.5); }
.bm-sym .cons .bl { stroke: rgba(255,255,255,.42); opacity: calc(1 - .6 * clamp(0, calc((var(--p) - .5) / .2), 1)); }
.bm-sym .clear .bl { stroke: #3d5afe; stroke-width: 1.2; }
.brand-svg .bk {
  --k: clamp(0, calc((var(--p) - var(--a)) / var(--d)), 1);
  opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 8px));
}
.brand-svg .mono { font-family: var(--f-mono); font-weight: 400; font-size: 11px; fill: rgba(255,255,255,.72); }
.brand-svg .dim { fill: rgba(255,255,255,.4); }
.brand-svg .n { fill: rgba(255,255,255,.4); }
.brand-svg .disp { font-family: var(--f-display); font-size: 20px; letter-spacing: -0.6px; fill: #fff; }
.brand-svg .disp.dim { fill: rgba(255,255,255,.35); }
.brand-svg .disp.s, .brand-svg .disp.sm { font-size: 12px; letter-spacing: -0.2px; }
.brand-svg .xs { font-size: 8.5px; }
.brand-svg .aa { font-family: var(--f-display); font-size: 104px; letter-spacing: -5px; fill: #fff; }
.bm-sym .mark { --k: clamp(0, calc((var(--p) - .28) / .12), 1); transform-origin: 176px 240px; transform: scale(calc(.82 + .18 * var(--k))); opacity: var(--k); clip-path: inset(calc((1 - var(--k)) * 100%) 0 0 0); }
.bm-sym .mark circle { fill: #fff; }
.brand-svg .bs {
  --k: clamp(0, calc((var(--p) - var(--a)) / .06), 1);
  transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--k)); opacity: var(--k);
}
.bm-pal .sw1 { fill: #fff; } .bm-pal .sw2 { fill: #8a8a8a; } .bm-pal .sw3 { fill: #3d5afe; }
.bm-pal .sw4 { fill: #111; stroke: rgba(255,255,255,.25); stroke-width: 1; }
.bm-apl .card-b { fill: #111; stroke: rgba(255,255,255,.22); stroke-width: 1; }
.bm-apl .card-w { fill: #fff; }
.bm-apl .on-w { fill: #000; }
.bm-apl .on-wd { fill: rgba(0,0,0,.5); }

/* ---------- 02 · Presença digital: dois iPhones (planos) ----------
   Mesma moldura dos iPhones da página do Social Reach: titânio, aros
   internos e botões laterais, sem perspectiva nem reflexo na tela. */
.iphone { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 71.5 / 147.6; }
.iphone .body { position: absolute; inset: 0; }
.iphone .front {
  position: absolute; inset: 0; border-radius: 15% / 7.3%; padding: 3.4%;
  background: linear-gradient(145deg, #4A4D55 0%, #24262B 22%, #3B3E45 50%, #1F2125 78%, #45484F 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18), inset 0 0 0 4px #0B0C0E,
    0 2px 4px rgba(16,24,40,.12), 0 40px 70px -30px rgba(16,24,40,.45), 0 18px 30px -18px rgba(16,24,40,.3);
}
.iphone .front::before, .iphone .front::after { content: ""; position: absolute; width: 1.2%; border-radius: 2px; background: linear-gradient(90deg, #2A2C31, #50535B); }
.iphone .front::before { left: -1%; top: 22%; height: 7%; box-shadow: 0 calc(1px * 0) 0 #3A3D44; }
.iphone .front::after { right: -1%; top: 28%; height: 11%; }
.iphone .body::before { content: ""; position: absolute; left: -1%; top: 16%; width: 1.2%; height: 4%; border-radius: 2px; background: linear-gradient(90deg, #2A2C31, #50535B); }
.iphone .screen { position: relative; height: 100%; border-radius: 12% / 5.6%; overflow: hidden; background: #fff; color: #000; font-size: clamp(7px, .62vw, 10.5px); }
.status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 7.2%; padding: 0 9% 0 11%; font-size: 1.05em; }
.status b { font-weight: 500; letter-spacing: -0.2px; }
.status .island { position: absolute; left: 50%; top: 22%; width: 30%; height: 52%; border-radius: 20px; background: #000; transform: translateX(-50%); }
.status .sig { display: flex; align-items: flex-end; gap: 1.5px; }
.status .sig i { width: 2.5px; border-radius: 1px; background: #000; }
.status .sig i:nth-child(1) { height: 4px; } .status .sig i:nth-child(2) { height: 6px; } .status .sig i:nth-child(3) { height: 8px; }
.status .sig em { width: 15px; height: 7px; margin-left: 4px; border-radius: 2px; border: 1px solid #000; background: linear-gradient(90deg, #000 70%, transparent 70%) content-box; padding: 1px; }
.ig-nav { display: flex; justify-content: space-between; align-items: center; padding: 1% 6% 3%; font-size: 1.35em; letter-spacing: -0.3px; }
.ig-nav .dots { font-size: .7em; letter-spacing: 1px; }
.ig-prof { display: flex; align-items: center; gap: 7%; padding: 0 6%; }
.ig-prof .av { flex: none; width: 24%; aspect-ratio: 1; border-radius: 50%; display: block; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #d62976; overflow: hidden; }
.ig-prof .av img { width: 100%; height: 100%; object-fit: cover; }
.ig-prof b { display: block; font-size: 1.15em; letter-spacing: -0.2px; }
.ig-prof span { display: block; margin-top: 2px; font-family: var(--f-mono); font-weight: 400; font-size: .92em; line-height: 1.25; color: rgba(0,0,0,.6); }
.ig-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 3%; padding: 5% 6% 4%; }
.ig-btns span { padding: 4% 0; border-radius: 6px; background: #efefef; text-align: center; font-size: 1em; }
.ig-btns .follow { background: #0095f6; color: #fff; }
.ig-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ececec; }
.ig-tabs i { height: 16px; display: grid; place-items: center; position: relative; }
.ig-tabs i::before { content: ""; width: 9px; height: 9px; border: 1.2px solid rgba(0,0,0,.35); border-radius: 2px; }
.ig-tabs i.on { box-shadow: inset 0 -1.5px 0 #000; }
.ig-tabs i.on::before { border-color: #000; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
.ig-grid figure {
  --k: clamp(0, calc((var(--p) - .2 - var(--o, 0) - var(--i) * .024) / .06), 1);
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #f2f2f2; opacity: var(--k); transform: scale(calc(.6 + .4 * var(--k)));
}
.ph-b .ig-grid figure { --o: .1; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; }
.ig-grid .reel::before {
  --v: clamp(0, calc((var(--p) - .52) / .2), 1);
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--v) * 100%); background: #fff; z-index: 1;
}
/* posições: Arco na frente, Horizonte atrás e um pouco acima; sobem ao entrar */
.ph-a { --e: clamp(0, var(--p) / .16, 1); z-index: 2; transform: translate(-50%, -50%) translateX(-32%) translateY(calc(8% + (1 - var(--e)) * 6%)); }
.ph-b { --e: clamp(0, (var(--p) - .04) / .16, 1); z-index: 1; transform: translate(-50%, -50%) translateX(36%) translateY(calc(-5% + (1 - var(--e)) * 6%)) scale(.94); }
.cal {
  --k: clamp(0, var(--p) / .18, 1);
  position: absolute; z-index: 3; left: -3%; top: -1%; width: 30%; padding: 12px; border-radius: 10px; background: #fff; color: #000;
  box-shadow: 0 24px 50px rgba(0,0,0,.12); transform: translateX(calc((1 - var(--k)) * -40px)); opacity: var(--k);
}
.cal p { opacity: .55; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid i { aspect-ratio: 1; border-radius: 3px; background: var(--soft); position: relative; }
.cal-grid i.on::after {
  --d: clamp(0, calc((var(--p) - var(--i) * .011) / .05), 1);
  content: ""; position: absolute; inset: 28%; border-radius: 50%; background: #3d5afe; transform: scale(var(--d));
}
.bubble {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 10px; border-radius: 40px; background: #fff; color: #000;
  font-size: 13px; letter-spacing: -0.3px; white-space: nowrap; box-shadow: 0 18px 40px rgba(0,0,0,.14);
  opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 30px)) scale(calc(.8 + .2 * var(--k)));
}
.bubble .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #000; color: #fff; font-size: 12px; }
.bubble.b1 { --k: clamp(0, calc((var(--p) - .72) / .07), 1); right: 2%; top: 22%; }
.bubble.b1 .ic { background: #1fbf5b; }
.bubble.b2 { --k: clamp(0, calc((var(--p) - .8) / .07), 1); right: 6%; top: 48%; }
.bubble.b2 .ic { background: #3d5afe; }
.bubble.b3 { --k: clamp(0, calc((var(--p) - .88) / .07), 1); left: 4%; bottom: 16%; }

/* ---------- 03 · Design corporativo: um material por vez ----------
   O servicos.js marca qual peça está na tela (.on) conforme a rolagem:
   5 slides de apresentação, a proposta, o site e o cartão de visita. */
.corp .show { position: absolute; inset: 4% 0 14%; }
.corp .it {
  position: absolute; left: 50%; top: 50%; margin: 0; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) translateX(7%) scale(.97);
  transition: opacity .6s var(--ease), transform .9s var(--ease);
}
.corp .it.on { opacity: 1; transform: translate(-50%, -50%); }
.corp .it.past { transform: translate(-50%, -50%) translateX(-7%) scale(.97); }
.corp .slide { width: 94%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #222; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.corp .slide img { width: 100%; height: 100%; object-fit: cover; }
.corp .doc {
  width: 44%; aspect-ratio: 1 / 1.38; padding: 4.4% 3.6%; border-radius: 6px; background: #fff; color: #000;
  display: flex; flex-direction: column; gap: 4%; box-shadow: 0 30px 70px rgba(0,0,0,.6);
}
.corp .doc .doc-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6%; margin-bottom: 4%; border-bottom: 1px solid rgba(0,0,0,.1); }
.corp .doc .doc-top .mk { width: 18px; height: 18px; border-radius: 50%; background: #000; }
.corp .doc .doc-top .t-small, .corp .doc p { opacity: .5; font-size: 9px; }
.corp .doc b { font-size: clamp(16px, 1.6vw, 26px); letter-spacing: -0.8px; line-height: 1; }
.corp .doc .doc-sub { font-size: 11px; letter-spacing: -0.2px; opacity: .7; margin-bottom: 4%; }
.corp .doc .doc-tab { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; padding: 6% 0; border-top: 1px solid rgba(0,0,0,.1); border-bottom: 1px solid rgba(0,0,0,.1); font-size: 10.5px; letter-spacing: -0.1px; }
.corp .doc .doc-tab .t-small { opacity: .5; font-size: 9px; align-self: center; }
.corp .doc .doc-tab span:nth-child(even) { text-align: right; }
.corp .doc i { display: block; height: 5px; border-radius: 3px; background: var(--soft); }
.corp .doc i.s { width: 60%; }
.corp .doc .sign {
  margin-top: auto; align-self: flex-start; padding: 6px 10px; border-radius: 20px; background: #1fbf5b; color: #fff; font-size: 11px;
  opacity: 0; transform: scale(.6); transition: opacity .4s var(--ease) .6s, transform .5s var(--ease) .6s;
}
.corp .doc.on .sign { opacity: 1; transform: none; }
.corp .site { width: 94%; aspect-ratio: 16 / 10.4; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.corp .site .bar { display: flex; align-items: center; gap: 5px; height: 7%; padding: 0 2.4%; background: #ececec; }
.corp .site .bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9c9c9; }
.corp .site .bar span { margin: 0 auto; padding: 2px 12px; border-radius: 4px; background: #fff; font-family: var(--f-mono); font-weight: 400; font-size: 9px; color: #555; }
.corp .site img { width: 100%; height: 93%; object-fit: cover; object-position: top; }
.corp .bcard { width: 90%; aspect-ratio: 16 / 10; }
.corp .bcard .face { position: absolute; width: 58%; aspect-ratio: 1.75; border-radius: 6px; box-shadow: 0 24px 50px rgba(0,0,0,.6); transition: transform 1s var(--ease); }
.corp .bcard .front { left: 0; top: 6%; background: #111; color: #fff; padding: 6% 7%; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,255,255,.12); transform: rotate(-5deg) translateY(10%); }
.corp .bcard .back { right: 0; bottom: 6%; background: #fff; display: grid; place-items: center; transform: rotate(4deg) translateY(-10%); }
.corp .bcard.on .front { transform: rotate(-5deg); }
.corp .bcard.on .back { transform: rotate(4deg); }
.corp .bcard .front b { font-size: clamp(13px, 1.2vw, 19px); letter-spacing: -0.4px; }
.corp .bcard .front small { font-family: var(--f-mono); font-weight: 400; font-size: 10px; opacity: .55; }
.corp .bcard .mk { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.corp .bcard .front .mk { left: 7%; top: 12%; width: 13%; }
.corp .bcard .back .mk { position: static; background: #000; }
.show-cap { position: absolute; left: 0; right: 0; bottom: 2%; display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 13px; letter-spacing: -0.2px; color: rgba(255,255,255,.75); }
.show-dots { display: flex; gap: 5px; align-items: center; }
.show-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); transition: width .5s var(--ease), background-color .5s var(--ease); }
.show-dots i.on { width: 18px; background: #fff; }

/* ---------- 04 · Plataformas e SaaS: a tela real do Social Reach ----------
   O rascunho (blocos tracejados e fluxos) vira a tela de verdade do Social
   Reach, plataforma da Reach; depois chega o aviso de relatório enviado. */
.svc-ch[data-svc="platform"] .scene { width: min(100%, 780px); aspect-ratio: auto; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.app {
  --wf: clamp(0, var(--p) / .2, 1);              /* rascunho aparece */
  --fl: clamp(0, calc((var(--p) - .2) / .16), 1);  /* fluxos */
  --ui: clamp(0, calc((var(--p) - .38) / .14), 1); /* interface */
  --dv: clamp(0, calc((var(--p) - .72) / .26), 1); /* funcionando */
  position: relative; width: 100%; border-radius: 10px; overflow: hidden;
  background: rgb(255 255 255 / calc(.4 + .6 * var(--ui)));
  border: 1px dashed rgb(0 0 0 / calc(.25 * (1 - var(--ui))));
  box-shadow: 0 40px 80px rgb(0 0 0 / calc(.22 * var(--ui)));
  transform: rotateX(calc(18deg * (1 - var(--ui)))) rotateY(calc(-14deg * (1 - var(--ui))));
}
.app-bar { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; background: rgb(236 236 236 / var(--ui)); opacity: calc(.3 + .7 * var(--ui)); }
.app-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9c9c9; }
.app-bar span { margin: 0 auto; padding: 2px 12px; border-radius: 4px; background: #fff; font-family: var(--f-mono); font-weight: 400; font-size: 9px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-tela { opacity: var(--ui); }
.app-body { position: absolute; left: 0; right: 0; top: 30px; bottom: 0; display: grid; grid-template-columns: 17% 1fr; gap: 2.4%; padding: 2.4%; opacity: calc(1 - var(--ui)); pointer-events: none; }
.app .main { display: grid; grid-template-rows: 9% 18% 1fr 22%; gap: 4%; min-height: 0; }
.app .blk {
  --k: clamp(0, calc((var(--wf) - var(--i) * .1) / .4), 1);
  border-radius: 6px; opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 14px));
  outline: 1.5px dashed rgba(0,0,0,.28); outline-offset: -1.5px;
}
.app .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.flow { position: absolute; inset: 30px 0 0; width: 100%; height: calc(100% - 30px); pointer-events: none; opacity: calc(var(--fl) * (1 - var(--ui))); }
.flow path:nth-child(2) { --k: 1; } .flow path:nth-child(3) { --k: 2; }
.flow path { fill: none; stroke: #3d5afe; stroke-width: .5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc((var(--fl) - var(--k, 0) * .25) / .5), 1)); }
.toast {
  --t: clamp(0, calc((var(--dv) - .3) / .2), 1);
  position: absolute; right: 3%; bottom: 4%; padding: 10px 14px; border-radius: 8px; background: #fff; color: #000; font-size: 12px; letter-spacing: -0.2px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35); opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 16px));
}
.plat-cap { color: rgba(0,0,0,.55); text-align: center; opacity: var(--ui, 1); }
.plat-cap a { color: #000; border-bottom: 1px solid rgba(0,0,0,.3); white-space: nowrap; }
.plat-cap a:hover { border-color: #000; }

/* ---------- Trilho lateral ---------- */
.svc-rail {
  position: fixed; right: 18px; top: 50%; z-index: 40; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-50%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s var(--ease), visibility .5s, color .5s var(--ease);
  color: #fff;
}
.svc-rail.on-light { color: #000; }
.svc-rail.on-light .l { background: #000; color: #fff; }
.svc-rail.on { opacity: 1; visibility: visible; pointer-events: auto; }
.svc-rail a { position: relative; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: end; gap: 10px; padding: 6px 0 8px; }
.svc-rail .n { font-family: var(--f-mono); font-weight: 400; font-size: 11px; opacity: .5; order: 2; }
.svc-rail .l { font-size: 12px; padding: 3px 8px; border-radius: 3px; background: #fff; color: #000; letter-spacing: -0.2px; opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .4s var(--ease); }
.svc-rail a:hover .l { opacity: 1; transform: none; }
.svc-rail a.cur .n { opacity: 1; }
.svc-rail i { position: absolute; right: 0; bottom: 2px; width: 22px; height: 1px; overflow: hidden; }
.svc-rail i::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .3; }
.svc-rail i::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: scaleX(var(--rp, 0)); transform-origin: left; }

/* ---------- Chamada final ---------- */
.svc-cta { padding: 60px 0 110px; }
.svc-cta-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6vw; align-items: end; margin-top: 70px; }
.svc-cta h2 { font-size: clamp(40px, 4.6vw, 88px); line-height: .95; letter-spacing: -0.045em; max-width: 12ch; }
.svc-cta .svc-lead { margin: 0 0 30px; }
.svc-cta .cta-line { min-width: 300px; }

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) and (min-width: 861px) {
  .svc-pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-text { display: none; }
}
@media (max-height: 760px) and (min-width: 861px) {
  .svc-text { display: none; }
  .svc-num { font-size: 56px; }
}
@media (max-width: 860px) {
  .svc-hero { padding: 100px 0 60px; }
  .svc-hero .wave-bg { top: 20%; height: 30%; filter: blur(10px); opacity: .6; }
  .svc-toc { grid-template-columns: 1fr; }
  .svc-toc a, .svc-toc a:nth-child(n) { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--paper-10); }
  .svc-ch { height: auto; }
  .svc-pin { position: relative; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding: 70px 16px 70px; overflow: visible; }
  .svc-stage { height: auto; max-height: none; }
  .scene { width: 100%; }
  .svc-rail { display: none; }
  .svc-cta-in { grid-template-columns: 1fr; gap: 26px; margin-top: 40px; }
  .bubble { font-size: 11px; padding: 7px 10px 7px 7px; }
  .bubble .ic { width: 20px; height: 20px; }
  .show-cap { font-size: 12px; }
  .toast { font-size: 10px; padding: 6px 9px; border-radius: 6px; }
  .iphone { width: 40%; }
  .cal { width: 36%; padding: 8px; top: -7%; left: -1%; }
  .cal p { font-size: 9px; margin-bottom: 6px; }
  .bubble { font-size: 10px; padding: 6px 9px 6px 6px; }
  .bubble .ic { width: 18px; height: 18px; font-size: 10px; }
  .bubble.b1 { right: 6%; top: 2%; }
  .bubble.b2 { right: 4%; top: 50%; }
  .bubble.b3 { left: auto; right: 5%; bottom: 9%; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-toc a { animation: none; opacity: 1; transform: none; }
}
