/* ============================================================
   Componentes e cenas dos slides SemiDoc
   ============================================================ */

/* ---------- Componentes ---------- */
.glass { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: 28px; backdrop-filter: blur(14px); }
.paper { background: #fff; border: 1px solid rgba(23,23,25,.06); border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(10,56,124,.25), 0 2px 6px rgba(10,56,124,.05); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font: 500 16px/1 var(--sd-font-body); white-space: nowrap; }
.chip.ok   { background: rgba(37, 211, 102, .12); color: #1a9e4c; }
.chip.warn { background: rgba(255, 140, 50, .14); color: #d9661a; }
.slide:not(.light) .chip.ok { color: #6be39a; }
.slide:not(.light) .chip.warn { color: #ffae6b; }
.ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: var(--sd-sky-300);
  background: rgba(140, 200, 255, .08); border: 1px solid rgba(140, 200, 255, .18); flex: none; }
.slide.light .ico { color: var(--sd-blue-500); background: rgba(15,101,226,.07); border-color: rgba(15,101,226,.15); }
.bg-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.bg-veil { position: absolute; inset: 0; z-index: -1; }
.glow-a { position: absolute; z-index: -1; width: 1300px; height: 1300px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(15,101,226,.38), rgba(10,56,124,.12) 55%, transparent); }

/* Navegador */
.browser { border-radius: 22px; overflow: hidden; background: #0d1626; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4); }
.browser .bar { height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 18px; background: #111c2f; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser .bar i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.16); }
.browser .bar .url { margin: 0 auto; padding: 7px 22px; border-radius: 999px; background: rgba(255,255,255,.06);
  font: 400 15px/1 var(--sd-font-mono); color: rgba(255,255,255,.55); display: flex; gap: 8px; align-items: center; }
.browser video { display: block; width: 100%; background: #fff; }

/* Selo numérico gigante das aberturas */
.big-num { position: absolute; right: 100px; bottom: -80px; font: 700 620px/1 var(--sd-font-display); letter-spacing: -.07em;
  color: transparent; -webkit-text-stroke: 2px rgba(140, 200, 255, .22); z-index: -1; }

/* ---------- 1 · Capa ---------- */
.cover { justify-content: center; }
.cover-3d { position: absolute; inset: 0; width: 1920px; height: 1080px; z-index: -2; }
.cover .bg-veil { background: linear-gradient(90deg, rgba(1,12,28,.96) 0%, rgba(1,12,28,.75) 38%, rgba(1,12,28,0) 70%),
  radial-gradient(80% 60% at 75% 50%, rgba(10,56,124,.35), transparent 70%); }
.cover-top { position: absolute; top: 72px; left: 128px; right: 128px; display: flex; justify-content: space-between; align-items: center; }
.cover-top img { height: 58px; }
.cover .display { margin: 34px 0 40px; font-size: 128px; }
.cover .lead { max-width: 760px; }

/* ---------- 2 · Agenda ---------- */
.agenda .rows { margin-top: 64px; border-top: 1px solid var(--line); }
.agenda .row { display: grid; grid-template-columns: 140px 1fr 560px 64px; align-items: center; gap: 40px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.agenda .row .num { font: 500 22px/1 var(--sd-font-mono); color: var(--sd-sky-300); letter-spacing: .1em; }
.agenda .row .h3 { font-size: 52px; letter-spacing: -.045em; }
.agenda .row .small { font-size: 22px; }
.agenda .row svg { font-size: 34px; color: var(--sd-sky-300); justify-self: end; }

/* ---------- Aberturas de seção ---------- */
.opener .bg-veil { background: linear-gradient(90deg, rgba(1,12,28,.97) 0%, rgba(1,12,28,.86) 45%, rgba(1,12,28,.55) 100%), linear-gradient(0deg, rgba(1,12,28,.9), transparent 40%); }
.opener .bg-img { filter: saturate(.8); }
.opener .display { margin: 34px 0 40px; }
.opener .lead { max-width: 840px; }
.opener .tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 56px; max-width: 1100px; }
.opener .tags .chip { border: 1px solid var(--line); color: rgba(255,255,255,.85); padding: 12px 20px; font-size: 19px; }
.opener .tags .chip svg { color: var(--sd-sky-300); font-size: 20px; }

/* ---------- 4 · Pipeline da anamnese ---------- */
.pipeline { justify-content: flex-start; padding-top: 96px; }
.pipeline .head { margin-bottom: 44px; }
.psteps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-bottom: 36px; }
.ptrack { position: absolute; left: 28px; right: calc(20% - 4px); top: 28px; height: 2px; background: var(--line); }
.ptrack .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--sd-blue-500), var(--sd-sky-300)); transition: width .9s var(--ease-io); box-shadow: 0 0 18px rgba(140,200,255,.6); }
.pstep { position: relative; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pstep .ico { position: relative; z-index: 1; background: #071428; transition: all .5s var(--ease-out); }
.pstep .n { display: block; margin: 20px 0 6px; font: 500 15px/1 var(--sd-font-mono); letter-spacing: .12em; color: var(--muted); }
.pstep .t { font: 600 28px/1.1 var(--sd-font-display); letter-spacing: -.03em; color: rgba(255,255,255,.45); transition: color .5s; }
.pstep.done .ico, .pstep.on .ico { color: #fff; background: var(--sd-blue-600); border-color: var(--sd-blue-400); }
.pstep.on .ico { box-shadow: 0 0 0 8px rgba(15,101,226,.18), 0 0 40px rgba(15,101,226,.6); }
.pstep.on .t, .pstep.done .t { color: #fff; }

.pstage { position: relative; height: 470px; }
.panel { position: absolute; inset: 0; display: grid; grid-template-columns: 440px 1fr; gap: 56px; padding: 48px 56px; align-items: center;
  opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); pointer-events: none; }
.panel.on { opacity: 1; transform: none; }
.panel .pcopy .h3 { font-size: 44px; margin: 18px 0 18px; }
.panel .pcopy .small { font-size: 23px; }
.pvis { height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }

/* P1 · captura */
.rec { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; }
.rec .chip { background: rgba(229,56,59,.12); color: #ff8a8c; font-family: var(--sd-font-mono); font-size: 18px; padding: 10px 18px; }
.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5a5d; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.wave { display: flex; align-items: center; gap: 7px; height: 200px; }
.wave i { width: 8px; border-radius: 8px; background: linear-gradient(180deg, var(--sd-sky-300), var(--sd-blue-500)); height: 20%;
  animation: wv 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -73ms); }
@keyframes wv { 0% { height: 8%; } 40% { height: calc(var(--a) * 1%); } 100% { height: 14%; } }
.rec .devices { display: flex; gap: 14px; }
.rec .devices .chip { background: rgba(255,255,255,.05); color: var(--muted); font-family: var(--sd-font-body); border: 1px solid var(--line); }

/* P2/P3 · transcrição e contexto */
.ts { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.ts .ln { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: baseline; font: 400 25px/1.5 var(--sd-font-body); color: rgba(255,255,255,.9); min-height: 37px; }
.ts .who { font: 500 14px/1 var(--sd-font-mono); letter-spacing: .14em; color: var(--muted); padding-top: 9px; }
.ts .who.pac { color: var(--sd-sky-300); }
.ts .caret { display: inline-block; width: 2px; height: 26px; background: var(--sd-sky-300); vertical-align: -4px; margin-left: 2px; animation: blink .8s infinite; }
.ent { position: relative; border-radius: 6px; padding: 0 4px; margin: 0 -4px; transition: background .5s, box-shadow .5s; }
.ent::after { content: attr(data-tag); position: absolute; left: 4px; top: -24px; font: 500 12px/1 var(--sd-font-mono); letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; opacity: 0; transform: translateY(6px); transition: all .5s var(--ease-out); color: var(--c); }
.panel.play .ent { background: color-mix(in srgb, var(--c) 20%, transparent); box-shadow: inset 0 -2px 0 var(--c); transition-delay: calc(var(--d) * 260ms + 300ms); }
.panel.play .ent::after { opacity: 1; transform: none; transition-delay: calc(var(--d) * 260ms + 450ms); }
.ent[data-k="q"] { --c: #8cc8ff; } .ent[data-k="s"] { --c: #ff9db0; } .ent[data-k="m"] { --c: #b9a8ff; }
.ent[data-k="a"] { --c: #7fe3c8; } .ent[data-k="e"] { --c: #ffb86b; }
.ts.ctx .ln { line-height: 1.95; }

/* P4 · estrutura */
.secs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec { padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--sd-blue-400));
  opacity: 0; transform: translateY(18px) scale(.97); }
.panel.play .sec { animation: pop .7s var(--ease-out) forwards; animation-delay: calc(var(--d) * 140ms + 150ms); }
@keyframes pop { to { opacity: 1; transform: none; } }
.sec b { display: block; font: 500 13px/1 var(--sd-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 12px; }
.sec span { font: 400 21px/1.35 var(--sd-font-body); color: #fff; }
.sec.wide { grid-column: span 2; }

/* P5 · histórico */
.hist { width: 100%; display: grid; grid-template-columns: 1fr 250px; gap: 28px; align-items: center; }
.hist svg { width: 100%; height: auto; overflow: visible; }
.hist .pline { fill: none; stroke: var(--sd-sky-300); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.panel.play .pline { animation: draw 1.6s var(--ease-io) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hist .pt { fill: #071428; stroke: var(--sd-sky-300); stroke-width: 3; opacity: 0; }
.panel.play .pt { animation: fadein .3s forwards; animation-delay: calc(var(--d) * 260ms + 300ms); }
.hist .pt.new { stroke: #ffb86b; fill: #ffb86b; }
.panel.play .pt.new { animation: fadein .3s 1.8s forwards, ping 1.6s 2.1s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fadein { to { opacity: 1; } }
@keyframes ping { 0%, 100% { stroke-width: 3; } 50% { stroke-width: 14; stroke-opacity: .35; } }
.hist .grid line { stroke: rgba(255,255,255,.08); } .hist .ref { fill: rgba(127,227,200,.07); }
.hist text { font: 400 14px var(--sd-font-mono); fill: rgba(255,255,255,.45); }
.hist .kpi { padding: 26px; border-radius: 20px; background: rgba(255,184,107,.08); border: 1px solid rgba(255,184,107,.3); opacity: 0; }
.panel.play .kpi { animation: pop .6s 2s var(--ease-out) forwards; }
.hist .kpi .v { font: 600 64px/1 var(--sd-font-display); letter-spacing: -.04em; color: #ffb86b; margin: 14px 0 8px; }

/* ---------- 5 · Vídeo da anamnese ---------- */
.inaction { justify-content: flex-start; padding-top: 96px; }
.inaction .grid { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.inaction .browser video { aspect-ratio: 1640 / 814; object-fit: cover; object-position: top; }
.inaction .notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.note { display: flex; gap: 18px; align-items: flex-start; }
.note .ico { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
.note b { display: block; font: 600 23px/1.2 var(--sd-font-display); letter-spacing: -.02em; margin-bottom: 6px; }
.note p { font: 400 18px/1.45 var(--sd-font-body); color: var(--muted); }
.phone-vid { position: relative; height: 790px; border-radius: 36px; overflow: hidden; margin-top: -40px;
  -webkit-mask-image: radial-gradient(52% 62% at 50% 54%, #000 62%, transparent 100%); mask-image: radial-gradient(52% 62% at 50% 54%, #000 62%, transparent 100%); }
.phone-vid video { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.cap { font: 500 14px/1 var(--sd-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 18px; display: flex; gap: 10px; align-items: center; }
.cap::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sd-sky-300); }

/* ---------- 6 · Especialidade ---------- */
.specialty { display: grid; grid-template-columns: 700px 1fr; gap: 100px; align-items: center; }
.specialty .h2 { margin: 24px 0 28px; }
.spec-list { margin-top: 48px; display: flex; flex-direction: column; gap: 4px; }
.spec { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 600 30px/1 var(--sd-font-display); letter-spacing: -.03em;
  color: rgba(23,23,25,.3); cursor: pointer; transition: color .4s; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.spec .bar { width: 0; height: 3px; background: var(--sd-blue-500); transition: width .6s var(--ease-out); }
.spec.on { color: var(--sd-ink); }
.spec.on .bar { width: 36px; }
.doc { padding: 40px 44px; position: relative; }
.doc-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.doc-top .h3 { font-size: 30px; }
.doc-top .small { font-size: 17px; margin-top: 6px; font-family: var(--sd-font-mono); }
.badge-ai { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; background: rgba(15,101,226,.08); color: var(--sd-blue-500); font: 500 16px/1 var(--sd-font-body); }
.doc-secs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; min-height: 400px; align-content: start; }
.dsec { padding-left: 18px; border-left: 3px solid var(--sd-blue-500); opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--d) * 90ms); }
.dsec.in { opacity: 1; transform: none; }
.dsec b { display: block; font: 600 20px/1.2 var(--sd-font-display); letter-spacing: -.02em; margin-bottom: 8px; }
.dsec span { font: 400 19px/1.45 var(--sd-font-body); color: var(--sd-gray-500); }
.doc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-foot .chk { display: flex; gap: 12px; align-items: center; font: 500 19px var(--sd-font-body); }
.doc-foot .chk i { width: 26px; height: 26px; border-radius: 7px; background: var(--sd-blue-500); color: #fff; display: grid; place-items: center; font-size: 17px; }
.doc-foot .btn { padding: 16px 26px; border-radius: 14px; background: var(--sd-ink); color: #fff; font: 600 18px/1 var(--sd-font-body); }

/* ---------- 8 · Leitura de laudo ---------- */
.scan { justify-content: flex-start; padding-top: 96px; }
.scan .cols { display: grid; grid-template-columns: 340px 64px 600px 64px 1fr; align-items: center; }
.arrow { display: grid; place-items: center; color: var(--sd-blue-500); font-size: 30px; opacity: .6; }
.srcs { display: flex; flex-direction: column; gap: 14px; }
.src { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid rgba(23,23,25,.07); transition: all .5s var(--ease-out); }
.src .ico { width: 48px; height: 48px; font-size: 22px; }
.src b { display: block; font: 600 20px/1.2 var(--sd-font-display); letter-spacing: -.02em; }
.src span { font: 400 15px/1 var(--sd-font-mono); color: var(--sd-gray-500); }
.src.on { border-color: var(--sd-blue-500); box-shadow: 0 0 0 4px rgba(15,101,226,.12), 0 20px 40px -20px rgba(15,101,226,.4); transform: translateX(8px); }
.laudo { position: relative; padding: 36px 38px; overflow: hidden; height: 640px; }
.laudo .lh { display: flex; justify-content: space-between; font: 500 14px/1.4 var(--sd-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sd-gray-500); padding-bottom: 18px; border-bottom: 2px solid var(--sd-ink); margin-bottom: 8px; }
.laudo .lh b { color: var(--sd-ink); font-weight: 500; }
.lrow { display: grid; grid-template-columns: 1fr 120px 150px; padding: 14px 10px; border-bottom: 1px dashed rgba(23,23,25,.12); font: 400 19px/1.2 var(--sd-font-body); color: var(--sd-ink); border-radius: 8px; transition: background .4s; }
.lrow .r { font-family: var(--sd-font-mono); font-size: 15px; color: var(--sd-gray-500); text-align: right; }
.lrow .v { font-family: var(--sd-font-mono); text-align: right; }
.lrow.hit { background: rgba(15,101,226,.08); }
.lrow.hdr { font: 500 13px/1 var(--sd-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sd-gray-500); border-bottom-style: solid; }
.scanline { position: absolute; left: 0; right: 0; height: 90px; top: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(15,101,226,.14) 80%, rgba(15,101,226,.9) 98%, transparent); }
.scanline.run { opacity: 1; }
/* bioimpedância: a imagem do exame substitui o laudo e cada indicador é marcado */
.laudo .bio { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #e9edf3; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s .6s; }
.laudo.bio-on .bio { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out); }
.laudo .sheet { position: relative; height: calc(100% - 44px); aspect-ratio: 500 / 707; background: #fff url(media/bioimpedancia.jpg) center / 100% 100% no-repeat;
  border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(1,12,28,.45), 0 0 0 1px rgba(23,23,25,.06); }
.laudo .hs { position: absolute; border: 2px solid var(--sd-blue-500); background: rgba(15,101,226,.12); border-radius: 5px; opacity: 0; transform: scale(1.08); transition: opacity .35s, transform .45s var(--ease-out); }
.laudo .hs.hit { opacity: 1; transform: none; }
.xrow .chip.info { background: rgba(23,23,25,.06); color: var(--sd-gray-500); }
.extract { display: flex; flex-direction: column; gap: 10px; }
.extract .xh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.xrow { display: grid; grid-template-columns: 1fr 140px 124px; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; background: #fff; border: 1px solid rgba(23,23,25,.06);
  opacity: 0; transform: translateX(-24px); transition: all .55s var(--ease-out); }
.xrow.in { opacity: 1; transform: none; }
.xrow b { font: 600 19px/1.2 var(--sd-font-display); letter-spacing: -.02em; }
.xrow .v { font: 500 20px/1 var(--sd-font-mono); text-align: right; }
.xrow .v small { font-size: 13px; color: var(--sd-gray-500); margin-left: 4px; }
.xrow .chip { justify-self: end; }

/* ---------- 9 · Gráfico de evolução ---------- */
.evo { justify-content: flex-start; padding-top: 96px; }
.evo .cols { display: grid; grid-template-columns: 1fr 470px; gap: 36px; }
.chart-card { padding: 40px 44px 30px; }
.chart-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.chart-top .v { font: 600 84px/1 var(--sd-font-display); letter-spacing: -.05em; color: #ffae6b; margin-top: 12px; }
.chart-top .v small { font: 400 22px var(--sd-font-mono); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.seg { display: flex; padding: 5px; border-radius: 12px; background: rgba(255,255,255,.06); }
.seg span { padding: 10px 18px; border-radius: 9px; font: 500 16px/1 var(--sd-font-body); color: var(--muted); display: flex; gap: 8px; align-items: center; }
.seg span.on { background: var(--sd-blue-600); color: #fff; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: rgba(255,255,255,.07); }
.chart text { font: 400 15px var(--sd-font-mono); fill: rgba(255,255,255,.42); }
.chart .band { fill: rgba(127,227,200,.06); }
.chart .lim { stroke: rgba(127,227,200,.55); stroke-dasharray: 6 8; }
.chart .limt { fill: rgba(127,227,200,.8); }
.chart .area { fill: url(#gArea); opacity: 0; }
.chart .ln { fill: none; stroke: url(#gLine); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.slide.is-active .chart .ln { animation: draw 2s var(--ease-io) .7s forwards; }
.slide.is-active .chart .area { animation: fadein 1s 2.2s forwards; }
.chart .p { stroke-width: 4; fill: #071428; opacity: 0; }
.chart .p.ok { stroke: var(--sd-sky-300); } .chart .p.hi { stroke: #ffae6b; }
.slide.is-active .chart .p { animation: fadein .3s forwards; animation-delay: calc(var(--d) * 300ms + 800ms); }
.chart .tip { opacity: 0; }
.slide.is-active .chart .tip { animation: fadein .6s 2.8s forwards; }
.chart .tip rect { fill: #2a1a0c; stroke: rgba(255,174,107,.5); }
.chart .tip .t1 { font: 600 17px var(--sd-font-body); fill: #ffcfa3; } .chart .tip .t2 { font: 400 15px var(--sd-font-body); fill: rgba(255,255,255,.7); }
.minis { display: flex; flex-direction: column; gap: 16px; }
.mini { padding: 22px 26px; display: grid; grid-template-columns: 1fr 140px; align-items: center; gap: 10px; }
.mini .nm { font: 500 15px/1 var(--sd-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mini .v { font: 600 42px/1 var(--sd-font-display); letter-spacing: -.04em; margin: 12px 0 10px; }
.mini .v small { font: 400 16px var(--sd-font-mono); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.mini svg { width: 140px; height: 54px; overflow: visible; }
.mini svg path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.slide.is-active .mini svg path { animation: draw 1.4s var(--ease-io) forwards; animation-delay: calc(var(--d) * 150ms + 1s); }

/* ---------- 10 · Vídeo de exames ---------- */
.exvid .grid { display: grid; grid-template-columns: 1fr 430px; gap: 64px; align-items: center; }
.exvid .browser video { aspect-ratio: 1920 / 868; }
.feat { display: flex; flex-direction: column; gap: 26px; margin-top: 44px; }
.feat .note p { font-size: 19px; }

/* ---------- 12 · WhatsApp ---------- */
.wa-slide { display: grid; grid-template-columns: 640px 440px 1fr; gap: 64px; align-items: center; }
.wa-slide .h2 { margin: 22px 0 36px; font-size: 60px; }
.wa-list { display: flex; flex-direction: column; }
.wa-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: center; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: inherit; text-align: left; cursor: pointer; opacity: .42; transition: opacity .4s; font: inherit; }
.wa-item .ico { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
.wa-item b { display: block; font: 600 25px/1.15 var(--sd-font-display); letter-spacing: -.025em; }
.wa-item span { font: 400 15px/1.3 var(--sd-font-mono); color: var(--muted); }
.wa-item.on { opacity: 1; }
.wa-item.on .ico { background: var(--sd-blue-600); color: #fff; border-color: var(--sd-blue-400); }

.phone { width: 440px; height: 900px; border-radius: 64px; padding: 14px; background: linear-gradient(160deg, #2a3446, #0b111c 40%, #1b2433);
  box-shadow: 0 0 0 2px #3a465b inset, 0 80px 140px -40px rgba(0,0,0,.9), 0 0 120px rgba(15,101,226,.18); position: relative; }
.phone .screen { width: 100%; height: 100%; border-radius: 52px; overflow: hidden; background: #0b141a; position: relative; display: flex; flex-direction: column; }
.phone .island { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 20px; background: #000; z-index: 3; }
.wa-status { height: 58px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 34px 6px; font: 600 16px/1 var(--sd-font-body); color: #e9edef; flex: none; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px 14px; background: #1f2c34; flex: none; }
.wa-head .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--sd-blue-500), var(--sd-navy-800)); display: grid; place-items: center; }
.wa-head .av img { width: 26px; }
.wa-head b { display: block; font: 600 18px/1.2 var(--sd-font-body); color: #e9edef; }
.wa-head span { font: 400 14px/1.2 var(--sd-font-body); color: #8696a0; }
.wa-body { flex: 1; padding: 16px 14px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
  background-color: #0b141a; background-image: radial-gradient(rgba(255,255,255,.035) 1.2px, transparent 1.4px); background-size: 22px 22px; transition: opacity .4s; }
.wa-body.fade { opacity: 0; }
.wa-day { align-self: center; padding: 6px 12px; border-radius: 8px; background: #182229; color: #8696a0; font: 500 13px/1 var(--sd-font-body); margin-bottom: 4px; }
.bub { max-width: 84%; padding: 9px 12px 7px; border-radius: 12px; font: 400 16.5px/1.38 var(--sd-font-body); color: #e9edef; position: relative;
  animation: bubIn .45s var(--ease-out) both; white-space: pre-line; }
.bub.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 4px; }
.bub.in  { align-self: flex-start; background: #202c33; border-top-left-radius: 4px; }
.bub .meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 3px; font: 400 12px/1 var(--sd-font-body); color: rgba(233,237,239,.6); }
.bub .meta svg { color: #53bdeb; font-size: 16px; }
.bub a { color: #53bdeb; text-decoration: underline; word-break: break-all; }
.bub.typing { display: flex; gap: 5px; padding: 14px 16px; }
.bub.typing i { width: 8px; height: 8px; border-radius: 50%; background: #8696a0; animation: tdot 1s infinite; }
.bub.typing i:nth-child(2) { animation-delay: .15s; } .bub.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes bubIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.wa-input { flex: none; display: flex; gap: 10px; align-items: center; padding: 10px 14px 26px; background: #0b141a; }
.wa-input div { flex: 1; height: 46px; border-radius: 24px; background: #1f2c34; color: #8696a0; font: 400 16px/46px var(--sd-font-body); padding-left: 18px; }
.wa-input span { width: 46px; height: 46px; border-radius: 50%; background: #00a884; display: grid; place-items: center; color: #fff; font-size: 20px; }
.wa-meta { display: flex; flex-direction: column; gap: 16px; }
.wa-meta .glass { padding: 24px 26px; }
.wa-meta .k { font: 500 13px/1 var(--sd-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.wa-meta .val { font: 600 24px/1.25 var(--sd-font-display); letter-spacing: -.02em; transition: opacity .3s; }
.wa-meta .vars { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-meta .vars span { font: 400 14px/1 var(--sd-font-mono); padding: 8px 10px; border-radius: 8px; background: rgba(140,200,255,.08); color: var(--sd-sky-300); }
/* agenda semanal (1ª conversa): consulta pendente → confirmada */
.wa-cal { overflow: hidden; max-height: 0; opacity: 0; padding-block: 0 !important; margin-top: -16px; transition: max-height .6s var(--ease-out), opacity .45s, padding .6s var(--ease-out), margin .6s var(--ease-out); }
.wa-meta.cal-on .wa-cal { max-height: 330px; opacity: 1; padding-block: 22px !important; margin-top: 0; }
.wa-cal .cal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.wa-cal .cal-top .k { margin: 0; }
.cal-st { font: 500 13px/1 var(--sd-font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; color: var(--sd-sky-300); background: rgba(140,200,255,.08); border: 1px dashed rgba(140,200,255,.4); transition: all .4s; }
.wa-cal.ok .cal-st { color: #fff; background: #00a884; border: 1px solid #00a884; }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cal .col p { font: 500 12px/1 var(--sd-font-mono); letter-spacing: .1em; color: var(--muted); text-align: center; margin-bottom: 8px; }
.cal .col p b { display: block; font: 600 20px/1.1 var(--sd-font-display); letter-spacing: -.02em; color: #e9edef; margin-top: 4px; }
.cal .col.today p, .cal .col.today p b { color: var(--sd-sky-300); }
.cal .slots { position: relative; height: 176px; border-radius: 10px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 17.6px), rgba(255,255,255,.025); }
.cal .col.today .slots { background: repeating-linear-gradient(180deg, rgba(140,200,255,.07) 0 1px, transparent 1px 17.6px), rgba(140,200,255,.05); }
.cal .slots > i { position: absolute; left: 5px; right: 5px; border-radius: 5px; background: rgba(255,255,255,.1); }
.cal .appt { position: absolute; left: -6px; right: -6px; min-height: 40px; padding: 5px 7px; border-radius: 8px; z-index: 1;
  border: 1.5px dashed var(--sd-sky-300); background: rgba(10,30,60,.9); color: var(--sd-sky-300); transition: background .5s, border-color .5s, color .5s, transform .5s var(--ease-out);
  animation: apptPulse 1.6s ease-in-out infinite; }
.cal .appt b { display: block; font: 600 13px/1.1 var(--sd-font-mono); }
.cal .appt span { display: block; font: 500 11px/1.2 var(--sd-font-body); opacity: .85; white-space: nowrap; }
.cal .appt em { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; background: #00a884; color: #fff; display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 0 0 3px #0b1a2e; transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1) .15s; }
.wa-cal.ok .appt { animation: none; border: 1.5px solid var(--sd-blue-400); background: var(--sd-blue-600); color: #fff; transform: scale(1.06); box-shadow: 0 10px 30px -8px rgba(15,101,226,.8); }
.wa-cal.ok .appt em { transform: scale(1); }
@keyframes apptPulse { 50% { box-shadow: 0 0 0 5px rgba(140,200,255,.12); } }

/* ---------- 13 · Configuração ---------- */
.config .cols { display: grid; grid-template-columns: 760px 1fr; gap: 56px; align-items: start; }
.settings { padding: 18px 34px; }
.set { display: grid; grid-template-columns: 52px 1fr 64px; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.set:last-child { border-bottom: 0; }
.set .ico { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
.set b { display: block; font: 600 22px/1.2 var(--sd-font-display); letter-spacing: -.02em; }
.set span { font: 400 16px/1.35 var(--sd-font-body); color: var(--sd-gray-500); }
.set .sub { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font: 500 15px var(--sd-font-mono); color: var(--sd-ink); }
.set .sub em { font-style: normal; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); }
.tog { width: 60px; height: 34px; border-radius: 34px; background: #d6dce5; position: relative; }
.tog::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.slide.is-active .tog { animation: togBg .35s forwards; animation-delay: calc(var(--d) * 280ms + 700ms); }
.slide.is-active .tog::after { animation: togKnob .35s var(--ease-out) forwards; animation-delay: calc(var(--d) * 280ms + 700ms); }
@keyframes togBg { to { background: var(--sd-blue-500); } }
@keyframes togKnob { to { transform: translateX(26px); } }
.tpl { padding: 34px 36px; }
.tpl .k { font: 500 14px/1 var(--sd-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sd-gray-500); margin-bottom: 18px; }
.tpl .code { font: 400 21px/1.65 var(--sd-font-body); color: var(--sd-ink); padding: 22px 24px; border-radius: 16px; background: var(--sd-paper); border: 1px solid var(--line); }
.var { font: 500 17px var(--sd-font-mono); padding: 3px 8px; border-radius: 7px; background: rgba(15,101,226,.1); color: var(--sd-blue-500); transition: all .4s; }
.slide.is-active .var { animation: varPulse .8s ease-in-out 2; animation-delay: calc(var(--d) * 300ms + 2.6s); }
@keyframes varPulse { 50% { background: var(--sd-blue-500); color: #fff; } }
.tpl .avail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tpl .avail span { font: 400 14px/1 var(--sd-font-mono); padding: 7px 10px; border-radius: 8px; border: 1px dashed rgba(15,101,226,.35); color: var(--sd-blue-500); }
.preview { margin-top: 26px; display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; }
.preview .arrow { transform: rotate(90deg); opacity: 1; }
.preview .bub { animation: none; opacity: 0; max-width: 100%; font-size: 19px; transform: translateY(10px); transition: all .6s var(--ease-out); }
.slide.is-active .preview .bub { opacity: 1; transform: none; transition-delay: 3.6s; }
.preview .bub b { font-weight: 600; }

/* ---------- 14 · Encerramento ---------- */
.closing { align-items: flex-start; }
.closing .bg-veil { background: linear-gradient(90deg, rgba(1,12,28,.97) 0%, rgba(1,12,28,.85) 50%, rgba(1,12,28,.45) 100%); }
.closing img.logo { height: 84px; margin-bottom: 64px; }
.closing .display { font-size: 150px; line-height: 1.02; }
.cta-row { display: flex; gap: 20px; align-items: center; margin-top: 64px; }
.cta { display: inline-flex; align-items: center; gap: 14px; padding: 24px 40px; border-radius: 999px; background: var(--sd-blue-600); color: #fff; font: 600 26px/1 var(--sd-font-body);
  box-shadow: 0 20px 60px -10px rgba(20,103,191,.6); }
.cta.ghost { background: none; border: 1px solid rgba(255,255,255,.25); box-shadow: none; font-weight: 500; }
.contacts { display: flex; gap: 48px; margin-top: 72px; font: 500 20px/1 var(--sd-font-mono); color: var(--muted); letter-spacing: .04em; }
.contacts span { display: flex; gap: 12px; align-items: center; }
.contacts svg { color: var(--sd-sky-300); font-size: 22px; }

/* Linhas da transcrição só aparecem quando começam a ser "faladas" */
.ts .ln { transition: opacity .3s; }
.ts .ln:has(.txt:empty) { opacity: 0; }
.set div > span { display: block; }
.set div > span.sub { display: flex; width: max-content; }
