/* Estudo de caso */

/* números-chave */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding: 90px var(--gutter) 0; margin: 0; }
.kpis div { display: grid; gap: 6px; align-content: start; border-top: 3px solid var(--ink); padding-top: 10px; }
.kpis div:first-child { border-color: var(--lime); }
.kpis dt { color: var(--mute); }
.kpis dd { margin: 0; font-weight: 800; font-size: clamp(44px, 6.4vw, 110px); line-height: .9; letter-spacing: -.055em; }
.kpis span { text-transform: none; font-weight: 500; font-size: 15px; line-height: 1.3; letter-spacing: 0; color: #333; max-width: 26ch; }

/* bloco de análise */
.cs { padding: 140px var(--gutter) 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); align-items: start; }
.cs-head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.cs-head .label { grid-column: 1; font-weight: 700; }
.cs-head h2 { grid-column: 2 / -1; font-weight: 800; font-size: clamp(32px, 5.4vw, 92px); line-height: .92; letter-spacing: -.05em; }
.cs-lead { grid-column: 2 / span 2; text-transform: none; font-weight: 500; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.3; letter-spacing: -.01em; margin-top: 24px; }
.cs-body { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); align-items: start; margin-top: 40px; }
.cs-body > .shot { grid-column: 1 / span 2; position: sticky; top: 90px; }
.cs-body > .pts { grid-column: 3 / span 2; }
.cs.flip .cs-body:not(.two):not(.ads) > .shot { grid-column: 3 / span 2; grid-row: 1; }
.cs.flip .cs-body:not(.two):not(.ads) > .pts { grid-column: 1 / span 2; grid-row: 1; }
.cs-body.two { grid-template-columns: repeat(2, 1fr); }
.cs-body.two > .shot { grid-column: auto; position: static; }
.cs-body.ads { grid-template-columns: 2fr 1fr; }
.cs-body.ads .wide-shot { grid-column: auto; }
.shot.tall .zoom { display: grid; justify-items: center; }
.shot.tall img { width: auto; max-width: 100%; max-height: 80vh; }
.pts.wide { grid-column: 2 / -1; margin-top: 40px; }

/* capturas */
.shot { margin: 0; display: grid; gap: 8px; }
.shot .zoom { display: block; padding: 0; border: 1px solid var(--line); background: #f2f2ee; cursor: zoom-in; overflow: hidden; position: relative; }
.shot.dark-shot .zoom { background: #1c1b1b; border-color: #1c1b1b; }
.shot img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.shot .zoom:hover img { transform: scale(1.025); }
.shot .zoom::after { content: "Ampliar"; position: absolute; right: 8px; bottom: 8px; background: var(--paper); color: var(--ink); font-weight: 600; padding: 4px 8px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.shot .zoom:hover::after, .shot .zoom:focus-visible::after { opacity: 1; transform: none; }
.shot figcaption { color: var(--mute); }

/* pontos numerados */
.pts { list-style: none; margin: 0; padding: 0; }
.pts li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 6px var(--gutter); padding: 20px 0; border-top: 1px solid var(--line); transition: padding .3s cubic-bezier(.2,.8,.2,1); }
.pts li:last-child { border-bottom: 1px solid var(--line); }
.pts li::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pts li:hover { padding-left: 10px; }
.pts li:hover::before { transform: scaleX(1); }
.pts .n { color: var(--mute); grid-row: 1 / span 2; }
.pts h3 { font-weight: 700; font-size: clamp(17px, 1.7vw, 26px); letter-spacing: -.03em; line-height: 1.05; }
.pts p { grid-column: 2; text-transform: none; font-size: 15px; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: #333; max-width: 52ch; }
.pts li.ok .n { color: #2f7a1a; font-weight: 800; }
.pts li.ok { background: linear-gradient(90deg, rgba(126,217,87,.16), transparent 70%); }
.pts-note { display: grid; gap: 12px; align-content: start; }
.pts-note h3 { font-weight: 700; font-size: clamp(17px, 1.7vw, 26px); letter-spacing: -.03em; line-height: 1.05; }
.pts-note p { text-transform: none; font-size: 15px; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: #333; }

/* tabela da concorrência */
.cmp-wrap { grid-column: 1 / -1; margin-top: 40px; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
.cmp th { text-align: left; font-weight: 500; color: var(--mute); padding: 0 var(--gutter) 10px 0; border-bottom: 2px solid var(--ink); }
.cmp td { padding: 14px var(--gutter) 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; letter-spacing: -.01em; transition: background .25s; }
.cmp td:first-child { color: var(--mute); width: 14%; }
.cmp td i { font-style: normal; color: var(--mute); font-weight: 500; }
.cmp tbody tr:hover td { background: rgba(126,217,87,.14); }
.cmp tr.us td { background: var(--lime); color: var(--lime-ink); font-weight: 800; border-bottom-color: var(--lime); }
.cmp tr.us td:first-child { color: var(--lime-ink); padding-left: 10px; }
.cmp tr.us td i { color: var(--lime-ink); }

/* oportunidades (bloco escuro) */
.opp { margin-top: 140px; padding: 14px var(--gutter) 40px; display: grid; gap: 0; }
.opp .top { display: flex; justify-content: space-between; gap: 12px; }
.opp h2 { margin-top: clamp(60px, 12vh, 140px); font-weight: 800; font-size: clamp(44px, 9vw, 160px); line-height: 1.05; letter-spacing: -.055em; }
.opp h2 em { font-style: normal; background: var(--lime); color: var(--lime-ink); padding: 0 .08em; }
.opp-lead { margin-top: 24px; max-width: 46ch; text-transform: none; font-weight: 500; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.3; letter-spacing: -.01em; color: #eee; }
.opp-grid { list-style: none; margin: 70px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.opp-grid li { display: grid; gap: 10px; align-content: start; padding: 16px; min-height: 230px; background: rgba(38,37,37,.72); border-top: 3px solid #4a4949; backdrop-filter: blur(6px); transition: border-color .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.opp-grid li:hover { border-color: var(--lime); transform: translateY(-4px); }
.opp-grid span { color: var(--lime); }
.opp-grid h3 { font-weight: 800; font-size: clamp(20px, 2.1vw, 32px); letter-spacing: -.04em; line-height: 1; }
.opp-grid p { text-transform: none; font-size: 15px; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: #e2e2e2; }
.opp-note { margin-top: var(--gutter); padding: 16px; max-width: 80ch; background: var(--lime); color: var(--lime-ink); text-transform: none; font-weight: 600; font-size: 15px; line-height: 1.4; letter-spacing: 0; }
.src { padding: 40px var(--gutter) 0; color: var(--mute); text-transform: none; font-size: 12px; letter-spacing: 0; }

/* ampliar imagem */
.cs-zoom { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 24px; background: rgba(38,37,37,.9); opacity: 0; pointer-events: none; transition: opacity .3s; cursor: zoom-out; }
.cs-zoom.open { opacity: 1; pointer-events: auto; }
.cs-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; transform: scale(.96); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.cs-zoom.open img { transform: none; }
.cs-zoom button { position: absolute; top: 14px; right: var(--gutter); }

@media (max-width: 980px) {
  .kpis { grid-template-columns: 1fr 1fr; padding-top: 60px; row-gap: 28px; }
  .cs { padding-top: 90px; grid-template-columns: 1fr; }
  .cs-head, .cs-body, .cs-body.ads { grid-template-columns: 1fr; }
  .cs-head .label, .cs-head h2, .cs-lead, .pts.wide { grid-column: 1; }
  .cs-head { gap: 14px; }
  .cs-body > .shot, .cs-body > .pts, .cs.flip .cs-body > .shot, .cs.flip .cs-body > .pts { grid-column: 1; grid-row: auto; position: static; }
  .cs-body.two { grid-template-columns: 1fr; }
  .opp { margin-top: 90px; }
  .opp-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .shot img, .cs-zoom, .cs-zoom img { transition: none; }
}
