/* ============================================================
   CASE STUDY — páginas em /work. Carregar depois de style.css e home.css:
   tokens (--blue, --yellow…) vêm do style.css; --hm-* e o rodapé (hm-footer) do home.css.
   Menu (nav.js) e rodapé usam o mesmo comportamento da home (home.js [E] [F] [G]),
   só recoloridos para o fundo branco.
   Estrutura: hero · intro+meta · P/S/R · galeria · process · results
   Espaços de imagem = .slot (data-label / data-spec descrevem o que subir)
   ============================================================ */
.case-page {
  --ease: var(--hm-ease);
  --f-pixel: var(--hm-pixel);
  --f-slab: var(--hm-slab);
  --ink: var(--hm-navy);
  --tint: #eaf1fb;
  --tint-2: #cfe0f5;
  --line: rgba(0, 118, 236, .16);
  --gap-sec: 112px;
  /* filtro que transforma os ícones amarelos do menu (SVG em <img>) em azul #0076ec */
  --to-blue: brightness(0) saturate(100%) invert(31%) sepia(99%) saturate(3700%) hue-rotate(201deg);
}

body.case-page { background: var(--white); color: var(--ink); }
.case-page .page { gap: 0; }
.case-page ::selection { background: var(--yellow); color: var(--blue); }

/* ---------- barra de progresso de leitura ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; z-index: 101; }

/* ---------- menu (nav.js): mesmo comportamento da home — some ao descer, volta ao subir ---------- */
.case-page .nav { transition: transform .45s var(--hm-ease), opacity .3s; }
.case-page .nav.is-hidden { transform: translateY(-120%); opacity: 0; pointer-events: none; }
/* sobre o branco: azul no lugar do amarelo + fundo translúcido para ler por cima do conteúdo */
.case-page .nav__pill,
.case-page .nav__social-btn,
.case-page .nav__lang-toggle { border-color: var(--blue); background: rgba(255,255,255,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.case-page .nav__pill a,
.case-page .nav__lang-opt { color: var(--blue); }
.case-page .nav__social-btn img,
.case-page .nav__flag { filter: var(--to-blue); }
.case-page .nav__hamburger span { background: var(--blue); }
@media (max-width: 900px) {
  /* menu aberto no celular: painel escuro igual ao das outras páginas */
  .case-page .nav__pill { background: rgba(0, 11, 61, .95); border-color: transparent; }
  .case-page .nav__pill a { color: var(--yellow); }
}

/* ---------- rodapé (hm-footer da home): marquee azul no branco ---------- */
.case-page .hm-footer { margin-top: var(--gap-sec); }
.case-page .hm-marquee { color: var(--blue); }

/* ---------- container ---------- */
.case { width: min(1202px, calc(100% - 128px)); margin: calc(var(--nav-h) + 72px) auto 0; display: flex; flex-direction: column; gap: var(--gap-sec); }

/* ---------- tipografia base ---------- */
.eyebrow {
  display: inline-block; width: fit-content;
  font-family: var(--f-pixel); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--yellow); color: var(--blue); padding: 4px 12px; border-radius: 8px;
}
.eyebrow--ghost { background: none; padding: 0; border-radius: 0; color: var(--blue); opacity: .75; }
.sec__title, .c-hero__title { font-family: var(--f-slab); font-weight: 400; color: var(--blue); line-height: 1.2; }
.sec__title { font-size: clamp(26px, 3vw, 36px); max-width: 780px; }
.sec__title, .c-hero__title, .hmw p, .learn { text-wrap: balance; }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 700px; font-size: 18px; line-height: 1.7; }
.prose b, .c-intro p b { font-weight: 600; color: var(--blue); }
.prose em { font-style: normal; opacity: .65; }
.prose--note { opacity: .75; }
.caption { text-align: center; font-size: 14px; opacity: .6; margin-top: 14px; }

.sec { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.sec > .almost, .sec > .steps, .sec > .learn { width: 100%; }
.sec--cols { display: grid; grid-template-columns: 1fr minmax(240px, 340px); gap: 64px; align-items: center; }
.sec__text { display: flex; flex-direction: column; gap: 24px; }

/* ---------- pills / chips ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--tint); color: var(--blue); font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 100px;
  transition: background .25s, color .25s, transform .35s var(--ease);
}
.pill:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.pill em { font-style: normal; opacity: .65; }
.pill--yellow { background: var(--yellow); }
.pill--yellow:hover { background: var(--yellow); color: var(--blue); }
.chip { font-family: var(--f-pixel); font-size: 13px; letter-spacing: .04em; padding: 3px 10px; border-radius: 8px; background: var(--tint); color: var(--blue); white-space: nowrap; }
.chip--yellow { background: var(--yellow); }

/* ============================================================
   SLOTS DE IMAGEM (em branco, prontos para receber arquivo)
   Para subir uma imagem: troque o <div class="slot"> por
   <div class="slot has-img"><img src="..." alt="..."></div>
   ============================================================ */
.slot {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border-radius: 24px; color: rgba(0,118,236,.4);
  background:
    linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%) no-repeat -150% 0 / 60% 100%,
    linear-gradient(160deg, var(--tint), var(--tint-2));
  transition: background-position .9s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease);
}
.slot::before { content: attr(data-label); font-family: var(--f-pixel); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.slot::after  { content: attr(data-spec); font-size: 12px; max-width: 80%; opacity: .8; }
.slot:hover { background-position: 250% 0, 0 0; }
.slot.has-img::before, .slot.has-img::after { display: none; }
.slot.has-img img { width: 100%; height: 100%; object-fit: cover; }

/* celular do Figma (Samsung S25 "Icy Blue", o mesmo das telas do before vs. after) com a tela dentro.
   phone-frame-tall.png: o aparelho foi alongado 65px (no 1x do Figma, num trecho reto da lateral)
   para a tela ficar exatamente 360×800 como o protótipo — status bar e barra de navegação aparecem
   inteiras. Medidas em % desse PNG (994×2113 no 1x); a câmera é recortada à parte e fica por cima. */
.phone-mock {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(0,30,80,.16));
  transition: transform .6s var(--ease);
}
.phone-mock:hover { transform: translateY(-6px); }
.phone-mock__frame { display: block; width: 100%; height: auto; }
.phone-mock__screen {
  position: absolute; overflow: hidden; background: #fff;
  left: 3.1024%; top: 1.46%; width: 92.8479%; height: 97.08%;
  border-radius: 10.467% / 4.7111%;
}
.phone-mock__screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-mock__cam { position: absolute; left: 47.0188%; top: 2.6119%; width: 4.993%; height: auto; }

/* ============================================================
   [1] HERO
   ============================================================ */
/* Figma "This one": logo → título → composição de telas, 24px entre cada um e até o Intro */
.c-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.c-hero + .c-intro { margin-top: calc(24px - var(--gap-sec)); }
.c-hero__logo { width: 104px; height: 104px; margin: -5px 0; } /* o PNG inclui a sombra (5px em volta do ícone de 94px) */
.c-hero__title { font-size: clamp(30px, 4.4vw, 56px); max-width: 920px; }
.c-hero__title mark { background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); color: inherit; padding: 0 .1em; }
.c-hero__cover { width: 100%; height: auto; }
.c-hero .hm-rise { display: block; }

/* ============================================================
   [2] INTRO + META
   ============================================================ */
.c-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; align-items: start; }
.c-intro__text { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.75; max-width: 680px; }
.c-intro__hook { font-family: var(--f-slab); font-size: 24px; line-height: 1.4; color: var(--blue); padding-left: 20px; border-left: 3px solid var(--yellow); }
.c-intro__hook b { font-weight: 400; background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); }
.c-meta { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.c-meta__row { display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   [3] PROBLEMS · SOLUTION · RESULTS
   ============================================================ */
.psr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.psr__card {
  background: var(--tint); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 14px;
  font-size: 17px; line-height: 1.6;
  transition: opacity .8s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease);
  transition-delay: var(--d, 0s), 0s, 0s;
}
.psr__card.in:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,118,236,.14); transition-delay: 0s; }
.psr__card h3 { font-family: var(--f-slab); font-weight: 400; font-size: 26px; color: var(--blue); }
.psr__card b { font-weight: 600; color: var(--blue); }
.psr__n { font-family: var(--f-pixel); font-size: 14px; background: var(--yellow); color: var(--blue); width: fit-content; padding: 2px 10px; border-radius: 8px; }
.psr__card--hi { background: var(--blue); color: var(--white); }
.psr__card--hi h3, .psr__card--hi b { color: var(--yellow); }

/* ---------- divisor com pílula (Screens / Process / Results) ---------- */
.divider { position: relative; display: flex; justify-content: center; margin: calc(var(--gap-sec) * -.2) 0; }
.divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.divider span { position: relative; background: var(--white); padding: 6px 18px; border: 1.5px solid var(--blue); border-radius: 100px; font-family: var(--f-pixel); font-size: 15px; letter-spacing: .06em; color: var(--blue); }

/* ============================================================
   [4] GALERIA
   ============================================================ */
.gallery { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: calc(var(--gap-sec) * -.4); }
.gtabs { position: relative; display: inline-flex; padding: 4px; border: 1.5px solid var(--blue); border-radius: 100px; gap: 0; }
.gtab { position: relative; z-index: 1; padding: 8px 20px; border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--blue); transition: color .3s; }
.gtab.is-active { color: var(--white); }
.gtabs__glider { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--blue); border-radius: 100px; transition: transform .45s var(--ease), width .45s var(--ease); }
.gpanel { width: 100%; }
.gpanel[hidden] { display: none; }
.gpanel:not([hidden]) { animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }

/* comparador antes/depois */
.compare { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 32px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.compare__layer { position: absolute; inset: 0; border-radius: 0; }
/* rótulo de cada lado fica no centro da sua metade, longe da alça */
.compare__layer--before { padding-right: 50%; }
.compare__layer--after { padding-left: 50%; }
.compare__layer--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: linear-gradient(160deg, #f3f3f3, #dcdcdc); color: rgba(50,50,120,.4); }
.compare__layer--after:hover, .compare__layer--before:hover { background-position: -150% 0, 0 0; }
/* com as telas do Figma: proporção do "Before" (7026×3102); o "After" é mais estreito,
   então fica centralizado e as laterais usam a mesma cor do fundo dele */
.compare:has(.has-img) { aspect-ratio: 7026 / 3102; }
.compare--compact { max-width: 680px; }
.compare__layer.has-img { padding: 0; background: none; }
.compare__layer--before.has-img { background: #213052; }
.compare__layer--after.has-img { background: #9acafa; }
.compare__layer.has-img img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }

/* scroll automático na 1ª tela do "Before/2".
   Medidas em % do frame do Figma (7026×3102): a janela começa logo abaixo do topo
   arredondado do card branco (cabeçalho e status bar ficam fixos) e vai até o fim do display.
   A imagem longa (1408×4096) começa no mesmo ponto da tela estática e rola até o fim. */
.phone-scroll {
  position: absolute; z-index: 1; overflow: hidden; background: #fff;
  left: 4.8086%; top: 27.157%; width: 13.141%; height: 54.957%;
  border-radius: 0 0 10.467% 10.467% / 0 0 5.669% 5.669%;
}
.compare__layer.has-img .phone-scroll img {
  position: absolute; left: 0; top: -16.918%; width: 100%; height: auto; object-fit: initial;
  animation: phoneScroll 16s ease-in-out infinite;
  will-change: transform;
}
@keyframes phoneScroll {
  0%, 12%   { transform: translateY(0); }
  46%, 58%  { transform: translateY(-25.77%); }
  92%, 100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .compare__layer.has-img .phone-scroll img { animation: none; }
}
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--blue); transform: translateX(-1px); cursor: ew-resize; }
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--blue); border: 2px solid var(--blue); font-size: 20px;
  transition: transform .35s var(--ease);
}
.compare__handle:hover span, .compare__handle:focus-visible span, .compare.is-drag .compare__handle span { transform: scale(1.15); }
.compare__handle:focus-visible { outline: none; }
/* títulos: cada um fica centralizado sobre a parte visível da sua imagem e some
   quando o seu lado fica estreito demais (classes .hide-l / .hide-r vêm do case.js) */
.compare__tag {
  position: absolute; top: 12px; z-index: 2; transform: translateX(-50%);
  font-family: var(--f-pixel); font-size: 11px; letter-spacing: .04em; line-height: 1;
  padding: 4px 9px; border-radius: 6px; background: var(--white); color: var(--blue);
  pointer-events: none; white-space: nowrap; transition: opacity .25s;
}
.compare__tag--l { left: calc(var(--pos) / 2); }
.compare__tag--r { left: calc(var(--pos) + (100% - var(--pos)) / 2); background: var(--yellow); }
.compare.hide-l .compare__tag--l, .compare.hide-r .compare__tag--r { opacity: 0; }

/* faixa de telas arrastável */
.strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 4px 20px; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--tint-2) transparent; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
/* full flow: as 40 telas do Figma, cada uma no mesmo celular do before vs. after */
.flow__item { flex: none; width: 200px; display: flex; flex-direction: column; gap: 12px; scroll-snap-align: start; user-select: none; }
.strip .phone-mock { max-width: none; filter: none; } /* sem drop-shadow: 40 filtros pesam no arraste */
.flow__item figcaption { font-size: 12px; line-height: 1.3; color: var(--ink); opacity: .7; text-align: center; }
.flow__item figcaption b { font-family: var(--f-pixel); font-weight: 400; color: var(--blue); margin-right: 4px; }

/* ============================================================
   [5] PROCESS
   ============================================================ */
/* lista de etapas do fluxo antigo */
.stages { list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.stage { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 20px; background: var(--tint); font-size: 17px; transition: transform .4s var(--ease), background .3s; }
.stage:hover { transform: translateX(8px); }
.stage__n { font-family: var(--f-pixel); font-size: 18px; color: var(--blue); }
.stage__t { flex: 1; }
.stage__t em { font-style: normal; opacity: .6; }
.stage.is-drop { background: var(--yellow); }

/* funil do fluxo antigo (fig 4). Uma série → um tom (azul do site), clareando a cada etapa;
   altura proporcional ao valor; as quedas usam vermelho de status SEMPRE com o número escrito.
   --p (0–100) vem do case.js [G] a partir dos data-value.
   Dois layouts, decididos pela largura do PRÓPRIO card (container query):
   ≥ 900px → colunas verticais (como a referência); < 900px → barras horizontais empilhadas. */
.funnel {
  container-type: inline-size;
  --plot-h: 310px; --f-ink: #1b1f3b; --f-muted: #8a8fb8; --f-line: #9aa1cf;
  background: #f8f9fd; border-radius: 32px; padding: 44px 52px 44px; color: var(--f-ink);
}
.funnel__head { display: flex; align-items: center; gap: 16px; }
.funnel__logo { width: 34px; height: 46px; flex: none; }
.funnel__src { font-size: 36px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.funnel__title { margin-top: 2px; font-size: 24px; font-weight: 500; color: var(--f-muted); line-height: 1.25; }
.funnel__plot { list-style: none; }
/* cada etapa define sua cor; a barra ganha um brilho leve no topo */
.funnel__step { --c: var(--blue); }
.funnel__step:nth-child(3) { --c: color-mix(in srgb, var(--blue) 52%, #fff); }
.funnel__step:nth-child(5) { --c: color-mix(in srgb, var(--blue) 32%, #fff); }
.funnel__step:nth-child(7) { --c: color-mix(in srgb, var(--blue) 20%, #fff); }
.funnel__bar {
  display: block; border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 86%, #fff), var(--c));
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--blue) 60%, transparent);
  transition: height 1s var(--ease), width 1s var(--ease), opacity .3s;
}
.funnel__step:nth-child(3) :is(.funnel__bar, .funnel__val) { transition-delay: .12s; }
.funnel__step:nth-child(5) :is(.funnel__bar, .funnel__val) { transition-delay: .24s; }
.funnel__step:nth-child(7) :is(.funnel__bar, .funnel__val) { transition-delay: .36s; }
.funnel__val { font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.funnel__label { font-size: 18px; line-height: 1.4; }
/* número da etapa num círculo azul-claro */
.funnel__label b {
  display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 14px; border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 12%, #fff); color: var(--blue);
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.funnel__label em { display: block; margin-top: 2px; font-style: normal; font-size: 16px; color: var(--f-muted); }
.funnel__badge {
  font-size: 20px; font-weight: 700; color: #b42318; background: #fde4e4;
  padding: 8px 18px; border-radius: 100px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
/* seta pontilhada e curva até a etapa seguinte */
.funnel__drop svg { overflow: visible; fill: none; stroke: var(--f-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.funnel__curve { stroke-dasharray: .1 6.5; }
.funnel__tip {
  position: absolute; z-index: 2; opacity: 0; pointer-events: none; white-space: nowrap;
  background: var(--f-ink); color: #fff; font-size: 13px; line-height: 1.3; padding: 8px 12px; border-radius: 8px;
  transition: opacity .2s, transform .3s var(--ease);
}
.funnel__plot:hover .funnel__step:not(:hover) .funnel__bar { opacity: .4; }

/* ---------- colunas (card com espaço) ---------- */
@container (min-width: 900px) {
  .funnel__plot {
    display: grid; grid-template-columns: 1fr .95fr 1fr .95fr 1fr .95fr 1fr; align-items: end;
    height: var(--plot-h); margin: 92px 0 150px; /* em cima: número da 1ª barra · embaixo: legendas */
  }
  .funnel__step { position: relative; height: 100%; }
  /* barra e número ancorados na linha de base */
  .funnel__bar { position: absolute; left: 0; right: 0; bottom: 0; min-height: 12px; height: calc(var(--p) * var(--plot-h) / 100); }
  .funnel__val { position: absolute; left: 50%; transform: translateX(-50%); font-size: 30px; bottom: calc(max(12px, var(--p) * var(--plot-h) / 100) + 16px); transition: bottom 1s var(--ease); }
  .funnel__label { position: absolute; top: calc(100% + 24px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(340px, 200%); text-align: center; }
  .funnel__tip { left: 50%; bottom: max(14px, calc(var(--p) * var(--plot-h) / 100 - 48px)); transform: translate(-50%, 6px); }
  .funnel__step:hover .funnel__tip { opacity: 1; transform: translate(-50%, 0); }
  /* queda: selo em cima, seta curva terminando na altura do topo da barra seguinte */
  .funnel__drop {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 0 10px calc(max(12px, var(--p) * var(--plot-h) / 100) - 4px);
  }
  .funnel__drop svg { width: 100%; max-width: 150px; height: auto; aspect-ratio: 140 / 64; }
  .funnel.is-waiting .funnel__bar { height: 0; min-height: 0; }
  .funnel.is-waiting .funnel__val { bottom: 16px; }
}

/* ---------- barras horizontais (card estreito: tablet / celular) ---------- */
@container (max-width: 899.98px) {
  .funnel__src { font-size: 28px; }
  .funnel__title { font-size: 19px; }
  .funnel__plot { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
  .funnel__step {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label label" "bar val";
    align-items: center; column-gap: 12px; row-gap: 10px;
  }
  .funnel__label { grid-area: label; font-size: 15px; display: block; }
  .funnel__label b { display: inline-grid; vertical-align: middle; width: 26px; height: 26px; margin: -2px 8px 0 0; font-size: 11px; }
  .funnel__label br { display: none; }
  .funnel__label em { display: inline; margin: 0 0 0 4px; font-size: 13px; }
  .funnel__bar { grid-area: bar; justify-self: start; height: 20px; min-width: 8px; width: calc(var(--p) * 1%); border-radius: 6px; box-shadow: none; }
  .funnel__val { grid-area: val; font-size: 20px; }
  .funnel__tip { display: none; }
  .funnel__drop { display: flex; align-items: center; gap: 8px; padding: 2px 0 2px 4px; }
  .funnel__drop svg { display: none; }
  .funnel__drop::before { content: '↓'; font-size: 16px; line-height: 1; color: var(--f-line); }
  .funnel__badge { font-size: 14px; padding: 4px 12px; }
  .funnel.is-waiting .funnel__bar { width: 0; min-width: 0; }
}
@container (max-width: 480px) {
  .funnel__src { font-size: 24px; }
  .funnel__title { font-size: 17px; }
}
@media (max-width: 760px) { .funnel { padding: 28px 20px; } }
@media (prefers-reduced-motion: reduce) {
  .funnel .funnel__bar, .funnel .funnel__val { transition: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* How might we */
.hmw { background: var(--blue); color: var(--white); border-radius: 32px; padding: 48px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.hmw__tag { font-family: var(--f-pixel); font-size: 16px; color: var(--yellow); letter-spacing: .06em; text-transform: uppercase; }
.hmw p { font-family: var(--f-slab); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; max-width: 820px; }
.hmw::after { content: '?'; position: absolute; right: 32px; bottom: -40px; font-family: var(--f-pixel); font-size: 240px; line-height: 1; color: rgba(255,255,255,.08); pointer-events: none; }

/* essential vs. can wait */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split__card { border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.6; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.split__card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,118,236,.14); }
.split__card h3 { display: flex; align-items: center; gap: 10px; font-family: var(--f-slab); font-weight: 400; font-size: 24px; color: var(--blue); }
.split__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.split__card--now { background: var(--yellow); }
.split__card--now .pill { background: rgba(255,255,255,.7); }
.split__card--later { background: var(--tint); }
.split__card--later .split__dot { background: transparent; border: 2px dashed var(--blue); }
.split__card--later .pill { background: var(--white); }
.split__card .pill:hover { background: var(--blue); }

/* listas com check */
.ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 560px; font-size: 18px; line-height: 1.6; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--blue); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ticks b { color: var(--blue); font-weight: 600; }

/* telas de etapas com anotações */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; justify-items: center; align-items: start; }
.step { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; width: 100%; font-size: 16px; line-height: 1.6; transition: transform .5s var(--ease); }
.step b { color: var(--blue); font-weight: 600; }
.step p { max-width: 340px; }
/* imagens quadradas do Figma (seção "With a reason for each.", 714×714, cantos de 40px):
   o PNG já traz os cantos transparentes; o raio aqui só acompanha para a sombra do hover */
.slot--square { width: 100%; aspect-ratio: 1; border-radius: 5.6%; background: none; }
/* sem imagem ainda: o quadrado volta a mostrar o placeholder */
.slot--square:not(.has-img) { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%) no-repeat -150% 0 / 60% 100%, linear-gradient(160deg, var(--tint), var(--tint-2)); }
/* versão com dois passos (case 3, "Two things changed.") */
.steps--two { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 48px; }
.steps--two .step p { max-width: 400px; }
.pin { position: absolute; top: 16px; left: 16px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--yellow); font-style: normal; font-family: var(--f-pixel); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ease), background .3s, color .3s; }
.step.is-on { transform: translateY(-8px); }
.step.is-on .pin { transform: scale(1.2); background: var(--yellow); color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.step.is-on .slot { box-shadow: 0 20px 40px rgba(0,118,236,.18); }

/* what almost happened */
.almost { background: var(--yellow); color: var(--blue); border-radius: 40px; padding: 56px; display: flex; flex-direction: column; gap: 24px; }
.almost .sec__title { color: var(--blue); }
.almost .prose b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ============================================================
   [6] RESULTS
   ============================================================ */
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: calc(var(--gap-sec) * -.4); }
.result { background: var(--tint); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; transition: opacity .8s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.result p { font-size: 17px; line-height: 1.6; max-width: 420px; }
.result__num { font-family: var(--f-pixel); font-size: clamp(44px, 6vw, 80px); line-height: 1.1; color: var(--blue); display: flex; align-items: baseline; flex-wrap: wrap; gap: .25em; font-variant-numeric: tabular-nums; }
.result__num i { font-style: normal; font-size: .6em; opacity: .5; }
.result--big { grid-column: 1 / -1; background: var(--blue); color: var(--white); padding: 56px 48px; }
.result--big .result__num { font-size: clamp(64px, 11vw, 160px); color: var(--yellow); }
.result--big p { font-size: 20px; }

/* learnings */
.learn { display: flex; flex-direction: column; gap: 28px; max-width: 860px; font-family: var(--f-slab); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.4; color: var(--blue); }
.learn b { font-weight: 400; background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); }

/* próximo projeto — o card .hm-feature da home (home.css), só com o rótulo "Next project" no lugar da tag */
.c-next { width: 100%; }
.c-next .hm-feature__media img { max-width: none; }

/* ============================================================
   [9] COMPONENTES DO CASE 2 (liveness)
   ============================================================ */
/* placeholder do hero (mesma proporção da capa do case 1) e telas vazias dentro do celular */
.c-hero__slot { width: 100%; aspect-ratio: 1202 / 617; border-radius: 32px; }
.c-hero .c-hero__slot.hm-rise { display: flex; }   /* o .hm-rise do hero viraria block e tiraria o rótulo do centro */
.phone-mock__screen > .slot { width: 100%; height: 100%; border-radius: 0; }
.slot--phone { aspect-ratio: 360 / 800; border-radius: 20px; width: 100%; }
.slot--phone::before { font-size: 12px; }
.slot--phone::after { font-size: 11px; }
.inline-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; transition: background .3s; }
.inline-link:hover { background: var(--yellow); }

/* galeria: as seis telas do fluxo, lado a lado */
.six { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: start; }
.six__item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.six .phone-mock { filter: drop-shadow(0 16px 26px rgba(0,30,80,.12)); }
.six__item figcaption { font-size: 13px; line-height: 1.3; color: var(--ink); opacity: .75; text-align: center; }
.six__item figcaption b { font-family: var(--f-pixel); font-weight: 400; color: var(--blue); margin-right: 4px; }
.ba__side p { font-size: 15px; color: var(--blue); }

/* o que eu desenhei em volta da detecção: uma linha do tempo de 01 a 04 */
.around { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 30px; max-width: 980px; }
.around::before { content: ''; position: absolute; left: 6px; right: 0; top: 7px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 14px); opacity: .45; }
.around li { position: relative; display: flex; flex-direction: column; gap: 6px; transition: transform .4s var(--ease); }
.around li::before { content: ''; position: absolute; left: 0; top: -30px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--blue); transition: transform .4s var(--ease), background .3s; }
.around__n { font-family: var(--f-pixel); font-size: 14px; color: var(--blue); opacity: .7; }
.around__t { font-family: var(--f-slab); font-size: 22px; line-height: 1.3; color: var(--blue); }
.around li:hover { transform: translateY(-3px); }
.around li:hover::before { transform: scale(1.3); background: var(--blue); }

/* antes vs. depois lado a lado */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; justify-items: center; }
.ba__side { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 300px; }
.ba__tag { font-family: var(--f-pixel); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; background: var(--tint); color: var(--blue); padding: 4px 12px; border-radius: 8px; }
.ba__tag--after { background: var(--yellow); }
.ba__side--before .phone-mock { opacity: .72; filter: grayscale(.4) drop-shadow(0 24px 40px rgba(0,30,80,.12)); }
.ba__arrow { font-family: var(--f-pixel); font-size: 40px; color: var(--blue); }
.ba > .caption { grid-column: 1 / -1; }

/* ============================================================
   [10] COMPONENTES DO CASE 3 (mapa)
   ============================================================ */
/* fluxo antigo em ciclo: 4 telas pequenas com setas, e a volta "de novo" embaixo */
.loop { display: flex; flex-direction: column; gap: 0; }
.loop__steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; gap: 56px; }
.loop__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 15px; color: var(--blue); text-align: center; }
.loop__step:not(:last-child)::after { content: '→'; position: absolute; right: -40px; top: 40%; font-family: var(--f-pixel); font-size: 24px; color: var(--blue); }
.loop__back {
  position: relative; align-self: center; width: min(744px, 100%); height: 46px; margin-top: 8px;
  border: 2px dashed rgba(0,118,236,.45); border-top: 0; border-radius: 0 0 28px 28px;
  display: flex; justify-content: center;
}
.loop__back span { position: absolute; bottom: -14px; background: #fff; padding: 0 12px; font-family: var(--f-pixel); font-size: 14px; color: var(--blue); }
.loop .caption { margin-top: 30px; }
.loop__shot { display: block; width: 100%; height: auto; }

/* fonte padrão vs. grande: o mesmo par lado a lado, sem esmaecer nenhum dos lados */
.ba--neutral .ba__arrow { font-family: var(--f-slab); font-size: 34px; }

/* o que eu mediria: três métricas numeradas */
.metrics { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.metrics li { border-top: 3px solid var(--blue); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 1.55; transition: transform .4s var(--ease); }
.metrics li:hover { transform: translateY(-4px); }
.metrics b { color: var(--blue); font-weight: 600; }
.metrics__n { font-family: var(--f-pixel); font-size: 15px; width: fit-content; background: var(--yellow); color: var(--blue); padding: 2px 8px; border-radius: 6px; }

/* ============================================================
   [11] COMPONENTES DO CASE 4 (perfil)
   ============================================================ */
/* galeria com três telas (mesmo componente das seis, mais largo) */
.six--three { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 48px; }
.six--three .six__item figcaption { font-size: 15px; }
/* fluxo em linha, sem a volta do ciclo */
.loop--line .loop__steps { grid-template-columns: repeat(3, minmax(0, 170px)); }
/* fluxo em linha com cinco telas */
.loop--five .loop__steps { display: flex; flex-wrap: nowrap; justify-content: center; gap: 48px; }
.loop--five .loop__step { flex: 0 1 205px; min-width: 0; gap: 16px; font-size: 16px; }
.loop--five .loop__step:not(:last-child)::after { right: -37px; top: 45%; }
.loop--five .phone-mock { filter: drop-shadow(0 16px 26px rgba(0,30,80,.14)); }
/* o argumento para a liderança, em destaque no bloco amarelo */
.argument { font-family: var(--f-slab); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; color: var(--blue); max-width: 860px; }
.argument b { font-weight: 400; background: linear-gradient(transparent 58%, #fff 58% 92%, transparent 92%); }
/* link sobre fundo azul */
.inline-link--light { color: var(--yellow); }
.inline-link--light:hover { background: var(--yellow); color: var(--blue); }

/* ============================================================
   [12] COMPONENTES DOS CASES DE BRANDING (case 5: Búfala Almeida Prado)
   ============================================================ */
/* fotos: grandes, com cantos arredondados; em par, lado a lado */
.c-hero__cover--photo { border-radius: 32px; }
.c-hero__cover--narrow { max-width: 980px; }   /* capa mais alta que larga demais para a largura toda (case 2) */
/* logo da empresa no lugar do ícone do app (cases de agência), na mesma altura do logo da VIDI */
.c-hero__brand { width: auto; height: 72px; }
.photos { display: flex; flex-direction: column; gap: 20px; }
.photo { display: block; width: 100%; height: auto; border-radius: 24px; transition: transform .6s var(--ease), box-shadow .5s var(--ease); }
.photo:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,30,80,.14); }
.photo--flat { border-radius: 0; }
.photo--flat:hover { transform: none; box-shadow: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pair .photo { height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.pair--tall .photo { aspect-ratio: 2 / 3; }
/* par sem recorte: as imagens mantêm a proporção original (case 6) */
.pair--auto .photo { aspect-ratio: auto; height: auto; }
.pair__item { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.pair > .caption { grid-column: 1 / -1; margin-top: -6px; }

/* a frase que virou o statement da marca */
.quote { background: var(--blue); color: var(--white); border-radius: 32px; padding: 48px 56px; position: relative; overflow: hidden; }
.quote p { font-family: var(--f-slab); font-size: clamp(24px, 3vw, 38px); line-height: 1.3; max-width: 900px; text-wrap: balance; }
.quote::after { content: '”'; position: absolute; right: 36px; bottom: -90px; font-family: var(--f-slab); font-size: 280px; line-height: 1; color: rgba(255,255,255,.1); pointer-events: none; }

/* paleta: uma amostra por cor, com o papel de cada uma */
.palette { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.palette li { display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--ink); }
.palette b { font-family: var(--f-slab); font-weight: 400; font-size: 24px; color: var(--blue); margin-top: 10px; }
.palette__chip { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; background: var(--c); transition: transform .5s var(--ease); }
.palette li:hover .palette__chip { transform: translateY(-4px) rotate(-1deg); }

/* linha de produtos */
.products { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.products li { background: var(--tint); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; font-family: var(--f-slab); font-size: 20px; line-height: 1.3; color: var(--blue); transition: transform .4s var(--ease), background .3s; }
.products li span { font-family: var(--f-pixel); font-size: 14px; width: fit-content; background: var(--yellow); padding: 2px 8px; border-radius: 6px; }
.products li em { font-style: normal; opacity: .6; font-size: .8em; }
.products li:hover { transform: translateY(-4px); background: var(--yellow); }
.products li:hover span { background: #fff; }

/* resultados sem número: o título no lugar do número */
.result__num--text { font-family: var(--f-slab); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; }
.result--big .result__num--text { font-size: clamp(32px, 4.4vw, 56px); }
.result--big p b { color: var(--yellow); font-weight: 600; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1000px) {
  .c-intro { grid-template-columns: 1fr; gap: 48px; }
  .c-meta { position: static; }
  .sec--cols { grid-template-columns: 1fr; gap: 40px; }
  .six { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
}
@media (max-width: 760px) {
  .case-page { --gap-sec: 72px; }
  .case { width: calc(100% - 40px); margin-top: calc(var(--nav-h) + 24px); }
  .psr, .split, .steps, .results { grid-template-columns: 1fr; }
  .six { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  /* linha do tempo vertical */
  .around { grid-template-columns: 1fr; gap: 22px; padding: 0 0 0 30px; }
  .around::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--blue) 0 8px, transparent 8px 14px); }
  .around li::before { left: -30px; top: 4px; }
  .around__t { font-size: 20px; }
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); }
  .ba--neutral .ba__arrow { transform: none; }
  .loop__steps { grid-template-columns: repeat(2, minmax(0, 104px)); gap: 24px 48px; }
  .loop__step:nth-child(2)::after { content: ''; }
  .loop__step:not(:last-child)::after { right: -30px; font-size: 20px; }
  .loop__back { width: 80%; }
  .metrics { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .palette { gap: 12px; }
  .palette__chip { aspect-ratio: 1; border-radius: 16px; }
  .palette b { font-size: 17px; }
  .palette li { font-size: 13px; }
  .pair--tall { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .quote { padding: 32px 24px; }
  .six--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .six--three .six__item figcaption { font-size: 12px; }
  .loop--line .loop__steps { grid-template-columns: repeat(3, minmax(0, 92px)); gap: 28px; }
  .loop--line .loop__step:nth-child(2)::after { content: '→'; }
  .loop--line .loop__step:not(:last-child)::after { right: -22px; font-size: 16px; }
  .loop--five .loop__steps { flex-wrap: wrap; gap: 28px; }
  .loop--five .loop__step { flex: 0 0 140px; }
  .loop--five .loop__step:nth-child(2n)::after { content: ''; }
  .loop--five .loop__step:not(:last-child)::after { right: -22px; }
  .loop__step { font-size: 13px; }
  .prose, .c-intro__text, .ticks { font-size: 16px; }
  .psr__card, .split__card, .result { padding: 24px; }
  .hmw { padding: 32px 24px; }
  .almost { padding: 32px 24px; border-radius: 32px; }
  .result--big { padding: 32px 24px; }
  .gtab { padding: 8px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .gpanel:not([hidden]) { animation: none; }
  .progress { display: none; }
}
