/* ─────────────────────────────────────────────────────────────────────────────
   O deck de ferramenta, uma vez só.

   Este bloco era 13.254 caracteres repetidos byte a byte dentro de cada uma das
   nove apresentações — 57% de cada arquivo, ~119 KB de duplicação. Uma correção
   de layout custava nove edições, e a nona sempre escapa.

   Consome: /apresentacoes/ferramenta-*.html, por <link rel="stylesheet">.
   O comportamento — capa, motor do deck, botão Apresentar — mora em prisma.js.
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Fontes, servidas daqui ──────────────────────────────────────────────────
   Os decks linkavam fonts.googleapis.com e NENHUM carregava: o CSP da casa é
   `default-src 'self'` com `font-src 'self' data:`, e o navegador bloqueava em
   silêncio. O material inteiro renderizava na fonte do sistema, e ninguém viu
   porque o resultado é plausível. Medido antes de consertar: `document.fonts`
   vazio, e o título em "Raleway" com a mesma largura que em `sans-serif`.

   O proxy.ts já defendia a posição — "next/font/google auto-hospeda as fontes no
   build, nada de fonts.gstatic". Os decks é que nunca foram alinhados a ela.

   As duas são fontes VARIÁVEIS, e o Google serve o mesmo arquivo uma vez por
   peso declarado: dos dez que baixei, só quatro eram conteúdos distintos. Vão os
   quatro, com FAIXA de peso em vez de peso fixo — 213 KB no total.
   ───────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fontes/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fontes/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fontes/raleway-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fontes/raleway-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --mx: 0;
  --my: 0;
  --ms-red: #F25022;
  --ms-green: #7FBA00;
  --ms-blue: #00A4EF;
  --ms-yellow: #FFB900;
  --bg: #F8F8F8;
  --bg-warm: #f5f1e9;
  --bg-card: #FFFFFF;
  --bg-card-border: #E6E6E6;
  --text: #1B1B1B;
  --text-secondary: #555555;
  --text-muted: #888888;
  --font-display: 'Raleway', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Prism accent bar */
.prism-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #ff453f 0%, #ff453f 25%,
    #54b93c 25%, #54b93c 50%,
    #00a7be 50%, #00a7be 75%,
    #f6b629 75%, #f6b629 100%);
  z-index: 100;
}

.slides-container { width: 100%; height: 100vh; position: relative; }

.slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 80px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.slide.active { opacity: 1; visibility: visible; }
.slide-content { max-width: 1100px; width: 100%; position: relative; z-index: 1; }

/* ===================== COVER SLIDE ===================== */
.cover-slide {
  padding: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,.96) 0%, rgba(249,246,239,.92) 38%, rgba(237,232,222,.92) 100%);
}
.cover-slide::before {
  content: "";
  position: absolute; inset: -20%;
  background: radial-gradient(ellipse at 54% 48%, rgba(255,255,255,.9), transparent 40%);
  filter: blur(70px); opacity: .8; pointer-events: none;
}

.cover-stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  perspective: 1400px;
}
.cover-world {
  position: relative;
  width: min(1200px, 90vw);
  aspect-ratio: 16 / 7;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--my) * -2.2deg)) rotateY(calc(var(--mx) * 3.4deg)) translateZ(0);
  transition: transform .15s ease-out;
}
.cover-world svg { width: 100%; height: 100%; overflow: visible; }

/* Cover text overlay */
.cover-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 64px 72px;
  pointer-events: none;
}
.cover-brand {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(13,18,26,.4);
  margin-bottom: 10px;
}
.cover-title {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800;
  line-height: 1.05; color: var(--text);
  margin-bottom: 8px;
}
.cover-sub {
  font-size: 18px; font-weight: 400;
  color: rgba(13,18,26,.5);
}

/* Cover HUD */
.cover-hud {
  position: absolute; top: 38px; right: 42px; z-index: 10;
  text-align: right; pointer-events: none;
  font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(13,18,26,.32);
}
.cover-hud span { display: block; }

/* Grain */
.grain {
  position: absolute; inset: -100%; z-index: 20;
  pointer-events: none; opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  animation: grainShift .22s steps(2) infinite;
  mix-blend-mode: multiply;
}
@keyframes grainShift {
  0%{transform:translate(0,0)}25%{transform:translate(2%,-1%)}50%{transform:translate(-1%,2%)}75%{transform:translate(1%,1%)}100%{transform:translate(0,0)}
}

/* SVG animations */
.input-ray { filter: drop-shadow(0 0 7px rgba(24,43,72,.14)); }
.input-core { stroke-dasharray: 140 12; animation: inputFlow 3.6s linear infinite; }
@keyframes inputFlow { to { stroke-dashoffset: -304; } }

.ray {
  transform-box: fill-box; transform-origin: left center;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.05));
  animation: rayBreath 5s ease-in-out infinite alternate, revealRay 1.6s cubic-bezier(.16,.88,.22,1) both;
}
.ray:nth-of-type(2){animation-delay:.10s}.ray:nth-of-type(3){animation-delay:.20s}.ray:nth-of-type(4){animation-delay:.30s}.ray:nth-of-type(5){animation-delay:.40s}
@keyframes revealRay { 0%{opacity:0;transform:scaleX(.04)} 100%{opacity:1;transform:scaleX(1)} }
@keyframes rayBreath { from{filter:brightness(.96) saturate(.95) drop-shadow(0 2px 6px rgba(0,0,0,.03))} to{filter:brightness(1.12) saturate(1.08) drop-shadow(0 8px 16px rgba(0,0,0,.06))} }

.energy { mix-blend-mode: screen; opacity: .45; stroke-dasharray: 80 170; animation: energyFlow 2.8s linear infinite; }
@keyframes energyFlow { from{stroke-dashoffset:0} to{stroke-dashoffset:-500} }

.prism-group { transform-origin: center; transform-box: fill-box; animation: prismEntry 1.3s cubic-bezier(.16,.9,.2,1) both, floatPrism 7s ease-in-out 1.3s infinite; }
@keyframes prismEntry { from{opacity:0;transform:translateY(40px) scale(.94)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes floatPrism { 0%,100%{transform:translateY(0px) rotate(.05deg)} 50%{transform:translateY(-7px) rotate(-.05deg)} }

.glass-outline { filter: drop-shadow(0 24px 28px rgba(25,28,31,.08)) drop-shadow(0 4px 6px rgba(25,28,31,.04)); }
.spectral-edge { opacity: .28; filter: blur(.6px); }
.glint { opacity: .5; stroke-dasharray: 50 220; animation: glint 4.5s ease-in-out infinite; }
@keyframes glint { 0%{stroke-dashoffset:260;opacity:0} 30%{opacity:.75} 65%{opacity:.25} 100%{stroke-dashoffset:-80;opacity:0} }
.shadow { transform-origin: center; animation: shadowBreath 7s ease-in-out infinite; }
@keyframes shadowBreath { 0%,100%{opacity:.18;transform:scaleX(1)} 50%{opacity:.12;transform:scaleX(.9)} }

/* ===================== CONTENT SLIDES ===================== */
.slide h2 {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800;
  margin-bottom: 14px; line-height: 1.15; color: var(--text);
}
.slide .section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 18px; display: inline-block;
  padding: 5px 14px; border-radius: 4px;
}
.label-red { color: var(--ms-red); background: rgba(242,80,34,0.08); }
.label-green { color: #5a9400; background: rgba(127,186,0,0.1); }
.label-blue { color: #0078d4; background: rgba(0,164,239,0.08); }
.label-yellow { color: #c89400; background: rgba(255,185,0,0.1); }

.slide p { font-size: 19px; line-height: 1.7; color: var(--text-secondary); max-width: 800px; }
.slide p + p { margin-top: 14px; }

.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.card {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  border-radius: 10px; padding: 26px 22px; transition: box-shadow 0.25s;
}
.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.card .card-icon { font-size: 26px; margin-bottom: 10px; }
.card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }

.cards-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.card-row {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  border-radius: 10px; padding: 22px 26px;
  display: flex; align-items: flex-start; gap: 20px;
}
.card-row .step-num { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; min-width: 36px; }
.step-1 .step-num { color: var(--ms-red); }
.step-2 .step-num { color: #5a9400; }
.step-3 .step-num { color: #0078d4; }
.step-4 .step-num { color: #c89400; }
.card-row h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.card-row p { font-size: 14.5px; line-height: 1.5; }

.highlight-box {
  margin-top: 32px; padding: 28px; border-radius: 10px;
  border-left: 4px solid; background: var(--bg-card);
}
.highlight-red { border-color: var(--ms-red); }
.highlight-green { border-color: #5a9400; }
.highlight-blue { border-color: #0078d4; }
.highlight-yellow { border-color: #c89400; }
.highlight-box h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.highlight-box p { font-size: 16px; line-height: 1.6; }

.vs-container { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-top: 32px; }
.vs-box { background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: 10px; padding: 28px; text-align: center; }
.vs-box h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.vs-box p { font-size: 15px; }
.vs-divider { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text-muted); }

.mao-na-massa-header { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.mao-na-massa-header .icon-hands { font-size: 32px; }

.closing { text-align: center; }
.closing .tool-connections { display: flex; justify-content: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.closing .tool-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  padding: 10px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.closing .tool-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* NAV */
.nav-controls {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; z-index: 50;
}
.nav-dots { display: flex; gap: 7px; }
.nav-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ccc; cursor: pointer;
  transition: all 0.3s; border: none; padding: 0;
}
.nav-dot.active { width: 26px; border-radius: 4px; background: #0078d4; }
.nav-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--bg-card-border); background: var(--bg-card);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background 0.2s;
}
.nav-btn:hover { background: #eee; }
.slide-counter {
  position: fixed; bottom: 32px; right: 40px;
  font-size: 13px; color: var(--text-muted);
  font-family: var(--font-display); font-weight: 600; z-index: 50;
}

@media (max-width: 768px) {
  .slide { padding: 40px 24px; }
  .cover-title { font-size: 36px; }
  .cover-overlay { padding: 0 28px 56px; }
  .slide h2 { font-size: 28px; }
  .cards-grid { grid-template-columns: 1fr; }
  .vs-container { grid-template-columns: 1fr; }
  .vs-divider { display: none; }
  .cover-world { width: 135vw; }
}

/* ─── Apresentar ──────────────────────────────────────────────────────────────
   Tela cheia sem depender do F11, que nem toda máquina de sala tem à mão.

   Topo-centro e auto-oculta, pela mesma razão dos decks antigos: os slides
   preenchem a tela inteira, não existe canto vazio, e a faixa central de cima é
   a única livre de chrome fixo. Aqui o botão é claro, não escuro — estes decks
   têm fundo claro.
   ───────────────────────────────────────────────────────────────────────────── */
#fs-btn {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 300; display: none; align-items: center; gap: .45rem;
  padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid rgba(20,24,30,.14); background: rgba(255,255,255,.74);
  color: var(--text-secondary); font: 600 12px/1 var(--font-body);
  letter-spacing: .02em; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 1; transition: opacity .2s, background .2s, color .2s, border-color .2s;
}
#fs-btn.oculto { opacity: 0; pointer-events: none; }
#fs-btn:hover { background: #fff; color: var(--text); border-color: rgba(20,24,30,.28); }
#fs-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { #fs-btn { transition: none; } }
@media print { #fs-btn { display: none !important; } }

/* O custom element é só o invólucro da capa: ocupa a caixa do slide para que
   .cover-stage, .cover-overlay e .cover-hud posicionem contra ela, exatamente
   como faziam quando eram filhos diretos de .cover-slide. */
capa-prisma { position: absolute; inset: 0; display: block; }
