/* fontes: css/fonts.css (gerado por build.ps1) */

:root {
  --bg: #eef0ff;
  --ink: #16171b;
  --ink-2: #5a6070;
  --blue: #0f33ff;
  --magenta: #d91c5c;
  --lav: #9fadff;
  --amber: #f5a524;
  --line: rgba(15, 51, 255, 0.14);
  --oil: #d91c5c; --gas: #2fbf71; --water: #00b8d9; --mix: #7a86ff;
  --shadow: 0 10px 30px rgba(15, 51, 255, 0.10), 0 2px 6px rgba(22, 23, 27, 0.06);
  --col: clamp(380px, 34vw, 480px);
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: 'Montserrat', system-ui, sans-serif; }
button { font: inherit; cursor: pointer; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ palco 3D */
.stage { position: fixed; inset: 0; }
#scene { width: 100%; height: 100%; display: block; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#flash { position: absolute; inset: 0; background: #16171b; opacity: 0; pointer-events: none; }
#flash.go { animation: blink 1.6s; }
@keyframes blink { 0%, 100% { opacity: 0; } 15% { opacity: .55; } 25% { opacity: .05; } 35% { opacity: .5; } 60% { opacity: 0; } }
/* seletor Esqueleto / Finalizado (canto inferior esquerdo) */
.style-seg { position: absolute; left: 20px; bottom: 56px; z-index: 3; display: flex; gap: 2px; background: rgba(255,255,255,.82); border-radius: 999px; padding: 3px; opacity: .85; transition: opacity .2s; box-shadow: 0 4px 14px rgba(10, 14, 40, .18); }
.style-seg:hover, .style-seg:focus-within { opacity: 1; }
.style-seg button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: transparent; border-radius: 50%; color: var(--ink-2); cursor: pointer; padding: 0; }
.style-seg button svg { width: 17px; height: 17px; }
@media (pointer: coarse) { .style-seg button { width: 40px; height: 40px; } } /* alvo de toque maior */
.style-seg button.on { background: var(--blue); color: #fff; }
html.retomando #intro { display: none !important; }
html.estilo-final .stage { background: #b9cfe0; }
html.estilo-final .stage-hint { color: #fff; opacity: 1; background: rgba(14, 18, 38, .55); padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(4px); } /* legível sobre o céu claro */
.stage-legend { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 10px; background: rgba(255,255,255,.85); padding: 5px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.stage-hint { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); font-size: 11.5px; color: var(--ink-2); opacity: .7; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot.oil { background: var(--oil); } .dot.gas { background: var(--gas); } .dot.water { background: var(--water); } .dot.mix { background: var(--mix); }

/* rótulos 3D */
.lab { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; background: #fff; padding: 4px 12px 4px 4px; border-radius: 999px; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; white-space: nowrap; transition: opacity .35s; pointer-events: auto; }
.lab .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; background: var(--blue); }
.lab.magenta .num { background: var(--magenta); } .lab.dark .num { background: var(--ink); } .lab.cyan .num { background: #14b8b3; }
.lab.area { cursor: pointer; }
.lab.area:hover { outline: 2px solid var(--blue); }
.lab.prod { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 12px; border-radius: 12px; border-left: 4px solid var(--magenta); }
.lab.prod b { color: var(--blue); font-size: 13px; }
.lab.prod small { font-weight: 500; color: var(--ink-2); font-size: 11.5px; }
.lab.hidden { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ coluna da história */
/* card na parte inferior da tela (o conteúdo da história aparece aqui, sobre o 3D em tela cheia) */
.story { position: fixed; left: 50%; bottom: 20px; width: min(860px, calc(100vw - 32px)); max-height: 40vh; transform: translateX(-50%); background: #fff; border-radius: 20px; box-shadow: 0 18px 60px rgba(15, 51, 255, .18), 0 2px 8px rgba(22, 23, 27, .08); display: flex; flex-direction: column; z-index: 5; transition: opacity .5s, left .6s cubic-bezier(.2, .8, .2, 1), width .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); }
.card-next { position: absolute; right: 14px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(15, 51, 255, .3); transition: transform .2s, background .2s; }
.card-next svg { width: 20px; height: 20px; }
.card-next:hover { background: #0a28d6; transform: translateX(2px); }
body.shape-step .card-next { background: var(--magenta); box-shadow: 0 6px 16px rgba(217, 28, 92, .3); }
body.free .card-next { display: none; }
body:has(#intro:not([hidden])) .story { opacity: 0; transform: translate(-50%, 28px); pointer-events: none; }

/* tablet (fotos, vídeos e demos) */
:root { --tab-w: clamp(420px, 40vw, 600px); }
/* formato de tablet real, na horizontal: borda de alumínio, moldura preta, câmera na lateral, botão de energia no topo */
.tablet { position: fixed; right: 20px; bottom: 20px; z-index: 6; width: var(--tab-w); aspect-ratio: 1.4; max-height: calc(100vh - 40px); padding: 13px 13px 13px 24px; border-radius: 34px; background: #0b0c10; border: 3px solid #4a4d57; box-shadow: 0 30px 80px rgba(10, 14, 40, .42), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .25); transform: translateX(calc(100% + 60px)) rotate(2deg); opacity: 0; pointer-events: none; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.tablet::after { content: ''; position: absolute; top: -7px; right: 72px; width: 38px; height: 4px; border-radius: 3px 3px 0 0; background: #4a4d57; }
.tab-cam { position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4f7a 0 18%, #10131c 45%, #05060a 100%); box-shadow: 0 0 0 1.5px #171922; }
.tablet-screen { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(15, 51, 255, .08); }
.tablet-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0 14%, rgba(255, 255, 255, 0) 14.2% 100%); }
.tablet-status { flex: none; display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 8px 0 16px; background: #f4f5fb; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.tab-title { margin-right: auto; font-weight: 600; letter-spacing: .02em; opacity: .75; }
.tab-icons { display: flex; align-items: center; gap: 6px; }
.tab-icons svg { height: 13px; width: auto; display: block; }
.tab-min { position: relative; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #e3e7fb; color: var(--ink-2); padding: 0; }
.tab-min:hover { background: var(--blue); color: #fff; }
.tab-min svg { width: 14px; height: 14px; }
.tablet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; scrollbar-width: thin; }
.tab-home { flex: none; height: 14px; display: grid; place-items: center; }
.tab-home::before { content: ''; width: 84px; height: 4px; border-radius: 3px; background: #c9cfe8; }
body.has-tablet .tablet { transform: none; opacity: 1; pointer-events: auto; }
/* aba para reabrir o tablet minimizado */
.tablet-handle { position: fixed; right: 0; bottom: 28px; z-index: 6; width: 38px; height: 68px; border: 0; border-radius: 16px 0 0 16px; background: #16171b; color: #fff; display: grid; place-items: center; padding: 0; box-shadow: 0 8px 24px rgba(10, 14, 40, .3); transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.tablet-handle svg { width: 22px; height: 22px; }
.tablet-handle:hover { background: var(--blue); }
body.has-media:not(.has-tablet) .tablet-handle { transform: none; }
body:has(#intro:not([hidden])) .tablet-handle { display: none; }
/* apresentação do tablet (só na primeira vez) */
.coach { z-index: 26; width: max-content; max-width: 230px; background: #16171b; color: #fff; border-radius: 14px; padding: 11px 14px; font-size: 12.5px; line-height: 1.4; box-shadow: 0 12px 30px rgba(10, 14, 40, .35); display: none; }
.coach b { display: block; font-size: 13px; margin-bottom: 2px; }
.coach span { opacity: .88; }
.coach::after { content: ''; position: absolute; width: 12px; height: 12px; background: #16171b; transform: rotate(45deg); }
.coach-open { position: fixed; right: 54px; bottom: 30px; animation: coachNudge 1.4s ease-in-out infinite; }
.coach-open::after { right: -5px; top: 50%; margin-top: -6px; }
.coach-close { position: absolute; top: 58px; right: 12px; }
.coach-close::after { right: 14px; top: -5px; }
body.tip-open .coach-open, body.tip-close .coach-close { display: block; }
body.tip-open .tablet-handle { animation: ring 1.4s ease-out infinite; }
body.tip-close .tab-min { animation: ring 1.4s ease-out infinite; background: var(--blue); color: #fff; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(15, 51, 255, .6); } 100% { box-shadow: 0 0 0 14px rgba(15, 51, 255, 0); } }
@keyframes coachNudge { 50% { margin-right: 8px; } }
/* com o tablet aberto, o card sai do centro e vai para a esquerda */
@media (min-width: 861px) {
  body.has-tablet .story { left: 20px; transform: none; width: min(860px, calc(100vw - var(--tab-w) - 60px)); }
}
.story-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 8px; gap: 10px; }
.brand { display: flex; gap: 10px; align-items: center; }
.logo { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; }
.logo img { width: 24px; height: auto; }
.logo.big { width: 72px; height: 72px; margin: 0 auto 20px; }
.logo.big img { width: 46px; }
.ttl { font-weight: 800; font-size: 15px; }
.seg { display: flex; background: #f1f3ff; border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.seg button.on { background: var(--blue); color: #fff; }

/* capítulos */
.chapters { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 10px 22px 0; }
.chapters button { border: 0; background: none; padding: 6px 0 0; position: relative; text-align: left; }
.chapters button::before { content: ''; display: block; height: 4px; border-radius: 3px; background: #e3e7fb; }
.chapters button .p { position: absolute; top: 6px; left: 0; height: 4px; border-radius: 3px; background: var(--blue); width: 0; transition: width .4s; }
.chapters button .n { display: block; font-size: 10.5px; font-weight: 700; color: #a3aac2; margin-top: 4px; text-align: center; }
.chapters button.on .n { color: var(--blue); }
.chapters button.sh .n::after { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--magenta); margin-left: 3px; vertical-align: 1px; }
.chapters button:hover .n { color: var(--ink); }

.story-body { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 16px 66px 14px 24px; scrollbar-width: thin; display: flex; gap: 26px; align-items: flex-start; }
.story-text { flex: 1 1 0; min-width: 0; }
.scene-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.scene-num { width: 38px; height: 38px; border-radius: 11px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; transition: background .3s; }
.scene-head h2 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.15; }
.chapter-tag { display: inline-flex; align-items: center; gap: 8px; background: #fde3ec; color: var(--magenta); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.chapter-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
body.shape-step .scene-num { background: var(--magenta); }
.fala { font-size: 16px; line-height: 1.5; font-weight: 500; margin: 0; min-height: 48px; }

/* mídia do passo */
.media { animation: rise .5s ease; }
.media:empty { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.m-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.m-label .tag { background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; letter-spacing: .06em; }
.m-label .tag.real { background: #14b8b3; }
.m-label .tag.demo { background: var(--magenta); }
.m-frame { position: relative; border-radius: 12px; overflow: hidden; background: #0d1030; cursor: zoom-in; box-shadow: var(--shadow); }
.m-frame img, .m-frame video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.m-frame video { object-fit: contain; background: #0d1030; }
.m-frame .expand { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 15px; display: grid; place-items: center; }
.m-cap { font-size: 12.5px; color: var(--ink-2); margin: 8px 2px 0; line-height: 1.45; }
/* números da MODEC e etapas antes do mar (tablet) */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: #f3f5ff; border-radius: 12px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-size: 26px; font-weight: 800; color: var(--blue); line-height: 1.05; letter-spacing: -.01em; }
.stat span { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: t; }
.tline li { counter-increment: t; position: relative; padding: 9px 10px 9px 42px; border-radius: 12px; background: #f3f5ff; opacity: .55; }
.tline li::before { content: counter(t); position: absolute; left: 10px; top: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: #9aa3c7; }
.tline li.done { opacity: .85; } .tline li.done::before { background: var(--ink); content: '✓'; }
.tline li.on { opacity: 1; background: #e6ebff; outline: 2px solid var(--blue); } .tline li.on::before { background: var(--blue); }
.tline b { display: block; font-size: 13px; } .tline span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.m-strip { display: flex; gap: 6px; margin-top: 8px; }
.m-strip button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 64px; height: 42px; background: none; opacity: .65; }
.m-strip button.on { border-color: var(--blue); opacity: 1; }
.m-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* "o que acontece aqui" */
.area-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fafbff; }
.area-box h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.area-box p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.area-box .flows { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* produto: apresentação */
.prod-intro { border-radius: 14px; padding: 16px 18px; background: linear-gradient(160deg, #fff 0%, #fdf1f6 100%); border: 1px solid #f6c3d5; }
.prod-intro h3 { margin: 0 0 2px; font-size: 21px; font-weight: 800; color: var(--blue); }
.prod-intro .tagline { font-size: 12.5px; font-weight: 600; color: var(--magenta); }
.prod-intro .q { margin: 12px 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.prod-intro .how { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.prod-intro .how li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.prod-intro .how li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.prod-intro .how b { color: var(--ink); display: block; }
.prod-intro .for { margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.prod-intro .for b { color: var(--ink); }

/* painéis de produto (telas ilustrativas) */
.card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fafbff; }
.card .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.status { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.status.warn { color: #b26b00; }
.spark { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.spark span { width: 76px; }
.spark svg { flex: 1; height: 44px; }
.ax { stroke: #c9cfe8; stroke-width: 1; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.list li span { color: var(--ink-2); text-align: right; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pill.warn { background: #fff1d6; color: #9a5d00; }
.pill.crit { background: #fde3ec; color: var(--magenta); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.chip { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #eef0ff; color: var(--ink-2); }
.chip.on { background: var(--blue); color: #fff; }
.chip.done { background: #dfe5ff; color: var(--blue); }
.arr { font-style: normal; color: var(--lav); font-size: 12px; }
.res { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink-2); }
.res b { color: var(--ink); font-size: 13px; }
.note { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.gauges { display: grid; gap: 8px; }
.gauges > div { display: grid; grid-template-columns: 70px 1fr; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bar { height: 10px; background: #e6e9fb; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.bar i.up { background: var(--amber); animation: grow 2.4s ease-in-out infinite alternate; }
@keyframes grow { from { width: 64%; } to { width: 88%; } }
svg.curve, svg.timeline { width: 100%; height: auto; }
svg .t { font-size: 10px; fill: var(--ink-2); font-family: 'Montserrat'; }
svg .t.b { font-weight: 700; fill: var(--ink); }
svg .t.s { fill: var(--magenta); }
.surge { fill: none; stroke: var(--magenta); stroke-width: 2; stroke-dasharray: 5 4; }
.op { fill: none; stroke: var(--lav); stroke-width: 1.6; }
.op.dim { opacity: .5; }
.win { fill: #f1f3ff; stroke: #dfe3ff; }
.win.ev { fill: #fde3ec; }
.tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tag-box { border-radius: 10px; padding: 8px; text-align: center; background: #fff; border: 1px solid var(--line); }
.tag-box b { display: block; font-size: 20px; }
.tag-box span { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.tag-box.crit b { color: var(--magenta); } .tag-box.deg b { color: #b26b00; } .tag-box.ok b { color: var(--gas); }
.who { margin-top: 12px; }
.who > span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.who div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.who i { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--blue); color: var(--blue); }
.disclaimer { margin: 10px 0 0; font-size: 10.5px; color: #8a90a2; }

/* rodapé da coluna */
.story-foot { border-top: 1px solid #eef0fb; padding: 10px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; user-select: none; color: var(--ink-2); }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 36px; height: 20px; border-radius: 999px; background: #c9cfe8; position: relative; transition: .25s; flex: none; }
.switch .track i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .25s; }
.switch input:checked + .track { background: var(--magenta); }
.switch input:checked + .track i { left: 19px; }
.switch input:focus-visible + .track { outline: 2px solid var(--blue); outline-offset: 2px; }
/* controles no canto superior direito (acima das telas de crachá e final) */
.hud { position: fixed; top: 16px; right: 16px; z-index: 25; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .92); padding: 6px 8px 6px 6px; border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
body:has(#intro:not([hidden])) .hud { display: none; }
.hud .logo { width: auto; height: 32px; padding: 0 14px; border-radius: 999px; }
.hud .logo img { width: 62px; }
.hud .seg { background: #eef0ff; }
.hud .seg button { padding: 5px 12px; font-size: 12px; }
.cap-ctrl { display: flex; gap: 6px; align-items: center; }
.cap-ctrl button { display: grid; place-items: center; border: 1px solid var(--line); background: #fff; width: 34px; height: 34px; padding: 0; border-radius: 50%; color: var(--blue); }
.cap-ctrl button svg { width: 18px; height: 18px; }
.cap-ctrl button:hover { background: #eef0ff; }
.cap-ctrl .next { background: var(--blue); color: #fff; border-color: var(--blue); }
.cap-ctrl .next:hover { background: #0a28d6; }
body.shape-step .cap-ctrl .next { background: var(--magenta); border-color: var(--magenta); }
.menu-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 50%; color: var(--blue); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: #eef0ff; }
.step-menu { position: fixed; top: 64px; right: 16px; z-index: 26; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 90px); overflow-y: auto; background: rgba(255, 255, 255, .97); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; backdrop-filter: blur(8px); }
.step-menu[hidden] { display: none; }
body:has(#intro:not([hidden])) .step-menu { display: none; }
.step-menu h4 { margin: 10px 8px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.step-menu h4.sh { color: var(--magenta); }
.step-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: 8px; font: inherit; font-size: 13px; line-height: 1.3; color: #26304f; cursor: pointer; }
.step-menu button:hover { background: #eef0ff; }
.step-menu button.on { background: var(--blue); color: #fff; }
.dots { display: flex; gap: 4px; margin: 0 4px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #d3d8f2; transition: .3s; }
.dots i.on { background: var(--blue); width: 16px; border-radius: 4px; }
.dots i.sh { background: #f6c3d5; }
.dots i.sh.on { background: var(--magenta); }

/* ------------------------------------------------------------------ overlays */
.overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(238, 240, 255, 0.6); backdrop-filter: blur(4px); transition: opacity .6s; }
.overlay.fade { opacity: 0; pointer-events: none; }
.intro-box, .outro-box { text-align: center; max-width: 560px; padding: 32px; }
.intro h1 { font-size: clamp(36px, 6vw, 64px); margin: 10px 0 14px; font-weight: 800; letter-spacing: -.02em; }
.intro p { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0 0 18px; }
.intro-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.intro-meta span { background: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.cta { border: 0; background: var(--blue); color: #fff; font-weight: 700; padding: 14px 28px; border-radius: 999px; font-size: 15px; box-shadow: 0 8px 20px rgba(15, 51, 255, .3); }
.cta:hover { background: #0a28d6; }
.ghost { border: 1px solid var(--blue); background: #fff; color: var(--blue); font-weight: 700; padding: 13px 24px; border-radius: 999px; font-size: 15px; }
.badge, .outro { padding-bottom: calc(var(--card-h, 0px) + 28px); } /* centraliza o conteúdo acima do card */
body:has(#badge:not([hidden])) .story, body:has(#outro:not([hidden])) .story { z-index: 21; } /* o card fica acima do desfoque, para o botão de continuar funcionar */
/* portaria: arrastar o crachá até o leitor */
.gate { display: grid; justify-items: center; gap: 22px; padding: 16px; max-width: 100%; }
.gate-hint { margin: 0; font-weight: 700; font-size: 15px; color: var(--ink); text-align: center; }
.gate-row { margin-top: 70px; display: flex; align-items: center; gap: clamp(24px, 6vw, 80px); }
.gate-arrow { color: var(--blue); font-weight: 800; font-size: 22px; letter-spacing: -2px; animation: nudge 1.4s ease-in-out infinite; transition: opacity .3s; }
.gate.dragging .gate-arrow, .gate.ok .gate-arrow { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateX(0); opacity: .4; } 50% { transform: translateX(8px); opacity: 1; } }
.badge-card { position: relative; z-index: 2; width: 214px; padding: 0 0 14px; border-radius: 18px; background: #fff; box-shadow: 0 22px 50px rgba(15, 51, 255, .22), 0 0 0 1px rgba(15, 51, 255, .1); text-align: center; cursor: grab; touch-action: none; user-select: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.badge-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.badge-card.dragging { cursor: grabbing; transition: box-shadow .2s; box-shadow: 0 30px 60px rgba(15, 51, 255, .3), 0 0 0 1px rgba(15, 51, 255, .1); }
/* cordão e presilha metálica */
.lanyard { position: absolute; left: 50%; bottom: calc(100% - 8px); width: 30px; height: 130px; margin-left: -15px; z-index: -1; background: repeating-linear-gradient(180deg, #0f33ff 0 16px, #2a50ff 16px 17px); box-shadow: inset 5px 0 0 rgba(255, 255, 255, .14), inset -5px 0 0 rgba(0, 0, 0, .14); -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }
.badge-clip { position: absolute; z-index: 3; top: -17px; left: 50%; width: 46px; height: 30px; margin-left: -23px; border-radius: 9px; background: linear-gradient(180deg, #f1f3fa, #aeb3c6 55%, #dcdfec); box-shadow: 0 3px 6px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.badge-clip i { position: absolute; left: 50%; top: 18px; width: 24px; height: 7px; margin-left: -12px; border-radius: 4px; background: #565b6f; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .55); }
.badge-top { background: var(--blue); color: #fff; border-radius: 18px 18px 0 0; display: grid; justify-items: center; gap: 6px; padding: 30px 12px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.badge-top img { width: 76px; height: auto; pointer-events: none; }
.badge-photo { width: 78px; height: 78px; border-radius: 50%; margin: 16px auto 10px; background: linear-gradient(135deg, var(--blue), var(--magenta)); color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 800; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(15, 51, 255, .18); }
.badge-name { font-weight: 800; font-size: 16px; }
.badge-role { color: var(--ink-2); font-size: 12.5px; margin: 3px 0 8px; }
.badge-id { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--magenta); margin-bottom: 8px; }
.badge-barcode { height: 30px; margin: 0 24px 10px; border-radius: 2px; background: repeating-linear-gradient(90deg, #16171b 0 2px, transparent 2px 4px, #16171b 4px 5px, transparent 5px 8px, #16171b 8px 11px, transparent 11px 13px, #16171b 13px 14px, transparent 14px 17px); }
.badge-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); }
.badge-chip i { width: 22px; height: 16px; border-radius: 3px; background: linear-gradient(135deg, #f7d58a, var(--amber)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
/* leitor de parede: luz rosa, vira ciano quando o crachá chega perto e verde quando libera */
.reader { position: relative; width: 168px; height: 252px; border-radius: 26px; background: linear-gradient(160deg, #262d68, #0f1334 62%); color: #ff3d86; display: grid; justify-items: center; align-content: center; gap: 14px; padding: 10px; box-shadow: 0 22px 44px rgba(10, 14, 40, .35), inset 0 0 0 2px rgba(255, 255, 255, .07), inset 0 2px 0 rgba(255, 255, 255, .16); transition: box-shadow .25s, color .25s; }
.reader::before { content: ''; position: absolute; inset: 7px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }
.reader-brand { font-size: 9.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.reader-led { width: 54px; height: 5px; border-radius: 3px; background: currentColor; box-shadow: 0 0 12px currentColor; animation: ledPulse 1.6s ease-in-out infinite; }
.reader-ring { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; border: 3px solid currentColor; background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 70%); box-shadow: 0 0 22px currentColor, inset 0 0 16px rgba(255, 255, 255, .04); animation: ringPulse 2.2s ease-in-out infinite; }
.reader-nfc { width: 46px; height: 46px; }
.reader-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); text-align: center; padding: 0 10px; }
.reader.near { color: #19d3f0; box-shadow: 0 0 0 3px #19d3f0, 0 0 44px rgba(25, 211, 240, .5), 0 22px 44px rgba(10, 14, 40, .35); }
.reader.ok { color: var(--gas); box-shadow: 0 0 0 3px var(--gas), 0 0 44px rgba(47, 191, 113, .5), 0 22px 44px rgba(10, 14, 40, .35); }
.reader.ok .reader-led { animation: none; }
.reader.ok .reader-label, .reader.near .reader-label { color: #fff; }
.badge-card.ok { cursor: default; box-shadow: 0 0 0 4px var(--gas), 0 20px 50px rgba(47, 191, 113, .25); }
@keyframes ledPulse { 50% { opacity: .35; } }
@keyframes ringPulse { 50% { box-shadow: 0 0 34px currentColor, inset 0 0 16px rgba(255, 255, 255, .04); } }
.badge-ok { visibility: hidden; color: var(--gas); font-weight: 800; font-size: 17px; }
.gate.ok .badge-ok { visibility: visible; animation: pop .5s; }
@media (max-width: 520px) {
  .gate-row { flex-direction: column; gap: 18px; }
  .gate-arrow { transform: rotate(90deg); animation: none; }
  .badge-card { width: 190px; }
  .reader { width: 190px; height: 100px; display: flex; align-items: center; justify-content: center; gap: 12px; }
  .reader-led { width: 6px; height: 44px; }
  .reader-brand { display: none; }
  .reader-ring { width: 58px; height: 58px; flex: none; }
  .reader-nfc { width: 30px; height: 30px; }
  .gate-row { margin-top: 56px; }
  .lanyard { height: 80px; }
  .reader-label { width: 80px; padding: 0; text-align: left; }
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.outro { background: rgba(238, 240, 255, 0.94); backdrop-filter: none; } /* sem desfoque: desfocar a tela inteira sobre o 3D travava (18/11) */
.badge { background: rgba(238, 240, 255, 0.86); backdrop-filter: none; }
.outro .line1, .outro .line2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.outro .line2 { color: var(--blue); }
.end-btns { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 30; background: rgba(10, 14, 40, .9); display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: 90vw; }
.lightbox img, .lightbox video { max-width: 90vw; max-height: 82vh; border-radius: 10px; display: block; }
.lightbox figcaption { color: #fff; margin-top: 10px; font-size: 14px; }
.lightbox .close { position: absolute; top: 20px; right: 20px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; }

/* modo livre */
body.free .hud .cap-ctrl { display: none; }

/* ------------------------------------------------------------------ telas menores */
@media (max-width: 1360px) { /* seletor e legenda sobem para o canto superior, longe do card */
  .style-seg { bottom: auto; top: 16px; }
  .stage-legend { bottom: auto; top: 66px; }
  .stage-hint { display: none; }
}
@media (max-width: 860px) {
  .story { bottom: 8px; width: calc(100vw - 16px); max-height: 34vh; border-radius: 16px; }
  .tablet { width: min(calc(100vw - 16px), 520px); right: 8px; bottom: calc(var(--card-h, 0px) + 16px); max-height: 50vh; padding: 9px 9px 9px 18px; border-radius: 26px; }
  .coach-open { bottom: calc(var(--card-h, 0px) + 28px); }
  .tablet-handle { top: auto; bottom: calc(var(--card-h, 0px) + 24px); transform: translateX(100%); }
  body.has-media:not(.has-tablet) .tablet-handle { transform: none; }
  .chapters { padding: 8px 14px 0; }
  .story-body { padding: 12px 58px 10px 14px; }
  .card-next { right: 10px; bottom: 8px; }
  .hud { top: 10px; right: 10px; gap: 8px; }
  .hud .logo, .hud .dots { display: none; }
  .scene-head { margin-bottom: 8px; }
  .scene-num { width: 36px; height: 36px; font-size: 16px; }
  .scene-head h2 { font-size: 18px; }
  .fala { font-size: 15.5px; margin-bottom: 6px; min-height: 0; }
  .style-seg { left: 10px; top: 10px; }
  .stage-legend { left: 10px; top: 58px; gap: 7px; font-size: 10px; padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------ demos dos produtos no tablet (18/11)
   imitam a interface real (tema escuro), em versão compacta; ver js/demos.js */
.demo-app { --dk-bg: #18191c; --dk-p: #23252a; --dk-p2: #2c2f35; --dk-l: #3a3d44; --dk-t: #e9eaee; --dk-m: #9ea3ad; --dk-a: #4f7cff;
  background: var(--dk-bg); color: var(--dk-t); border-radius: 12px; overflow: hidden; font-size: 12px; line-height: 1.35; box-shadow: 0 6px 18px rgba(10, 14, 40, .25); }
.demo-app.lh { --dk-a: #e5484d; } .demo-app.au { --dk-a: #3fd0c9; } .demo-app.rf { --dk-a: #7c9cff; } .demo-app.lu { --dk-a: #ff8a3d; }
.demo-app button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }
.demo-app button:focus-visible { outline: 2px solid var(--dk-a); outline-offset: 1px; border-radius: 6px; }
.d-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #111215; border-bottom: 1px solid var(--dk-l); }
.d-logo { font-weight: 800; letter-spacing: .14em; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.d-logo::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--dk-a); }
.d-top nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
.d-top nav button { padding: 5px 9px; border-radius: 6px; color: var(--dk-m); }
.d-top nav button.on { color: var(--dk-t); background: var(--dk-p2); box-shadow: inset 0 -2px 0 var(--dk-a); }
.d-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.d-k { color: var(--dk-m); font-size: 11px; }
.d-v { font-weight: 700; font-size: 13px; }
.d-note { color: var(--dk-m); font-size: 11.5px; margin: 2px 0 0; }
.d-txt { margin: 6px 0 0; }
.d-panel { background: var(--dk-p); border: 1px solid var(--dk-l); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; }
.d-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.d-ph b { font-size: 12.5px; }
.demo-app .pill { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--dk-p2); color: var(--dk-m); }
.demo-app .pill.new { background: rgba(79, 124, 255, .18); color: #9db4ff; } .demo-app .pill.ok { background: rgba(47, 191, 113, .18); color: #59d68f; }
.demo-app .pill.warn { background: rgba(245, 165, 36, .18); color: #f5b84d; } .demo-app .pill.off { background: var(--dk-p2); color: var(--dk-m); text-decoration: line-through; }
.d-kpis { display: flex; gap: 6px; flex-wrap: wrap; }
.d-kpis div { flex: 1; min-width: 70px; background: var(--dk-p); border: 1px solid var(--dk-l); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; }
.d-kpis span { color: var(--dk-m); font-size: 10.5px; } .d-kpis b { font-size: 14px; }
.demo-app .r { color: #ff6b6b; } .demo-app .o { color: #f5a524; } .demo-app .g { color: #59d68f; } .demo-app .b { color: #9db4ff; font-weight: 700; } .demo-app .w { color: #f5b84d; }
.d-tab { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.d-tab th { text-align: left; color: var(--dk-m); font-weight: 600; padding: 5px 6px; border-bottom: 1px solid var(--dk-l); }
.d-tab td { padding: 6px; border-bottom: 1px solid #2a2c31; vertical-align: top; }
.d-tab.sel tr.on td { background: rgba(79, 124, 255, .16); }
.d-tab td button { display: block; width: 100%; font-weight: 600; } .d-tab td button small { display: block; font-weight: 400; color: var(--dk-m); }
.sev { display: inline-block; width: 6px; height: 14px; border-radius: 2px; background: var(--dk-m); } .sev.h { background: #ff6b6b; } .sev.m { background: #f5a524; } .sev.l { background: #7c9cff; }
.demo-app .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; } .demo-app .dot.r { background: #ff6b6b; } .demo-app .dot.o { background: #f5a524; } .demo-app .dot.g { background: #59d68f; }
.chart { width: 100%; height: auto; display: block; }
.chart .g { stroke: #33363c; stroke-width: 1; } .chart .ln { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.chart .risk { fill: rgba(229, 72, 77, .28); } .chart .impl { fill: rgba(47, 191, 113, .3); } .chart .ev { fill: rgba(255, 138, 61, .22); }
.chart .t { fill: var(--dk-m); font-size: 10px; } .chart .t.s { fill: #ff6b6b; }
.chart .surge { fill: none; stroke: #e5484d; stroke-width: 2; stroke-dasharray: 5 4; } .chart .op { fill: none; stroke: #6b7280; stroke-width: 2; }
.chart .arrow { stroke: #ff5d8f; stroke-width: 2; stroke-dasharray: 3 3; }
.demo-app .lg { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--dk-m); font-size: 10.5px; }
.demo-app .lg i { display: inline-block; width: 10px; height: 4px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.d-asset { display: flex; align-items: center; gap: 10px; }
.d-ring { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 4px solid #59d68f; flex: none; font-size: 10.5px; }
.d-ring.warn { border-color: #f5a524; }
.d-mini { display: flex; gap: 10px; color: var(--dk-m); margin-top: 3px; } .d-mini b { color: var(--dk-t); }
.d-sub { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--dk-l); }
.d-sub button { padding: 5px 8px; color: var(--dk-m); } .d-sub button.on { color: var(--dk-t); box-shadow: inset 0 -2px 0 var(--dk-a); }
.d-rec { margin: 0; padding-left: 18px; } .d-rec li { margin: 2px 0; }
.d-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 2px; }
.d-actions button { padding: 6px 12px; border-radius: 7px; border: 1px solid var(--dk-l); }
.d-actions button.pri { background: var(--dk-a); border-color: var(--dk-a); color: #0b0c0e; font-weight: 700; }
.d-actions button:disabled { opacity: .5; cursor: default; }
.d-link { color: #9db4ff !important; text-decoration: underline; font-weight: 600; }
.d-acc { border: 1px solid var(--dk-l); border-radius: 8px; overflow: hidden; }
.d-acc > button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; font-weight: 700; background: var(--dk-p); }
.d-acc > button i { margin-left: auto; font-style: normal; color: var(--dk-m); }
.d-acc .n { width: 18px; height: 18px; border-radius: 50%; background: var(--dk-p2); display: grid; place-items: center; font-size: 10px; }
.d-acc.open .n { background: var(--dk-a); color: #0b0c0e; }
.d-accb { padding: 8px 10px; }
.d-grid { display: flex; gap: 10px; flex-wrap: wrap; } .d-grid span { display: flex; flex-direction: column; color: var(--dk-m); font-size: 10.5px; } .d-grid b { color: var(--dk-t); font-size: 12px; }
.d-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--dk-l); border-radius: 8px; }
.d-row.on { border-color: var(--dk-a); } .d-row button small { display: block; color: var(--dk-m); }
.d-split { display: grid; grid-template-columns: 132px 1fr; gap: 8px; min-width: 0; }
.d-list { display: flex; flex-direction: column; gap: 4px; }
.d-list button { padding: 7px 8px; border-radius: 8px; background: var(--dk-p); border-left: 3px solid transparent; }
.d-list button.on { border-left-color: var(--dk-a); background: var(--dk-p2); }
.d-list b { display: block; font-size: 11.5px; } .d-list small { color: var(--dk-m); font-size: 10.5px; }
.d-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.d-step { display: flex; gap: 4px; flex-wrap: wrap; } .d-step span { font-size: 10.5px; padding: 3px 7px; border-radius: 999px; background: var(--dk-p2); color: var(--dk-m); }
.d-step span.on { background: var(--dk-a); color: #0b0c0e; font-weight: 700; } .d-step span.done { color: #59d68f; }
.d-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.d-card { display: flex !important; flex-direction: column; gap: 5px; padding: 8px !important; border-radius: 9px; background: var(--dk-p) !important; border: 1px solid var(--dk-l) !important; }
.d-card.crit { border-color: #ff6b6b !important; }
.d-bar { height: 5px; border-radius: 3px; background: #ff6b6b; overflow: hidden; } .d-bar i { display: block; height: 100%; background: #59d68f; }
.d-cnt { font-size: 10.5px; color: var(--dk-m); } .d-cnt em { font-style: normal; margin-right: 2px; }
.d-sm { font-size: 10.5px; color: var(--dk-m); }
.d-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.d-steps li { border: 1px solid var(--dk-l); border-radius: 8px; }
.d-steps li > button { display: block; width: 100%; padding: 7px 10px; font-weight: 600; color: var(--dk-m); }
.d-steps li.done > button { color: #59d68f; } .d-steps li.on { border-color: var(--dk-a); } .d-steps li.on > button { color: var(--dk-t); }
.d-steps li p { margin: 0; padding: 0 10px 8px; color: var(--dk-m); }
@media (max-width: 520px) { .d-split { grid-template-columns: 1fr; } .d-cards { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ menu de aparência (18/11)
   um único botão no canto superior esquerdo; ao clicar, abre o acabamento e o período do dia */
.view-menu { position: absolute; left: 16px; top: 16px; z-index: 6; }
.vm-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(10, 14, 40, .2); }
.vm-btn svg { width: 20px; height: 20px; }
.vm-btn[aria-expanded="true"] { background: var(--blue); color: #fff; }
.vm-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.vm-panel { position: absolute; left: 0; top: 48px; min-width: 210px; background: rgba(255,255,255,.96); border-radius: 14px; padding: 10px; box-shadow: 0 12px 30px rgba(10, 14, 40, .25); display: flex; flex-direction: column; gap: 8px; animation: rise .2s ease; }
.vm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vm-l { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.view-menu .style-seg { position: static; opacity: 1; box-shadow: none; background: #eef0ff; }
@media (max-width: 860px) { .view-menu { left: 10px; top: 10px; } }
.view-menu .style-seg.txt button { width: auto; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 12px; } /* Auto / Leve */

/* ------------------------------------------------------------------ revisão interna de 19/11
   leitura em Z: em telas largas, o card (informação principal) fica no alto à esquerda, o navio à direita e o
   tablet (apoio) embaixo, na mesma coluna do card. O tablet fica guardado; com conteúdo novo, a aba vibra e ele
   abre. Demos e "conheça o produto" abrem o tablet grande, sobre a área do navio, com a tela inteira (sem rolagem). */
.tablet-body { overflow: hidden; }
.media { transform-origin: top left; }
.scene-head { align-items: flex-start; }
.scene-head .eyebrow { margin-bottom: 4px; font-size: 10.5px; }
.scene-num { width: 30px; height: 30px; border-radius: 50%; font-size: 14px; margin-top: 16px; }
body.so-titulo .fala { display: none; }
body.so-titulo .scene-head { margin-bottom: 2px; }
body.so-titulo .scene-head h2 { font-size: 21px; line-height: 1.3; text-wrap: balance; }
/* botão da demo, no card, depois da explicação */
.card-action { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; border: 0; border-radius: 999px; padding: 9px 14px 9px 16px; background: var(--magenta); color: #fff; font-weight: 700; font-size: 13.5px; box-shadow: 0 6px 16px rgba(217, 28, 92, .28); }
.card-action svg { width: 16px; height: 16px; }
.card-action:hover { background: #b8134a; }
.card-action:focus-visible, .card-next:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
/* aba do tablet: vibra três vezes como notificação */
.tablet-handle.buzz { animation: buzz 1.5s ease-in-out; background: var(--blue); }
@keyframes buzz {
  0%, 30%, 60%, 90%, 100% { translate: 0 0; rotate: 0deg; }
  5%, 35%, 65% { translate: 0 -3px; rotate: -9deg; } 10%, 40%, 70% { translate: 0 3px; rotate: 9deg; }
  15%, 45%, 75% { translate: 0 -2px; rotate: -6deg; } 20%, 50%, 80% { translate: 0 0; rotate: 5deg; }
}
body.guide-tab .tablet-handle { transform: none !important; }
/* números da MODEC: em destaque, surgindo um a um depois que o tablet abre */
.big-title { font-size: 15px; font-weight: 800; color: var(--ink); margin: 2px 2px 10px; }
.stat { opacity: 0; animation: statIn .55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(2.3s + var(--k, 0) * .6s); }
.stat b { font-size: 34px; }
.stat span { font-size: 12.5px; }
@keyframes statIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stat { opacity: 1; } }
/* globo */
.globe { width: 100%; }
.globe canvas { display: block; width: 100%; }
/* vídeo: em loop, com controle e barra de progresso */
.v-ctrl { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; }
.v-play { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 11px; display: grid; place-items: center; padding: 0; flex: none; }
.v-bar { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.v-bar i { display: block; height: 100%; width: 0; background: #fff; }
/* menu de passos em sanfona */
.step-menu h4 { margin: 2px 0; }
.step-menu h4 button { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); padding: 8px 10px; }
.step-menu h4.sh button { color: var(--magenta); }
.step-menu h4 button[aria-expanded="true"] { background: #eef0ff; }
.step-menu h5 { margin: 8px 10px 2px 18px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; }
.step-menu .sm-steps button { padding: 6px 10px 6px 18px; }
.step-menu .sm-guide { color: var(--ink-2); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid #eef0fb; border-radius: 8px 8px 0 0; margin-bottom: 4px; }
/* como usar: destaque em volta da peça e uma dica ao lado */
.guide { position: fixed; inset: 0; z-index: 40; }
.g-ring { position: fixed; border-radius: 16px; box-shadow: 0 0 0 200vmax rgba(10, 14, 40, .55), 0 0 0 3px var(--amber); transition: all .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.g-tip { position: fixed; width: min(320px, calc(100vw - 16px)); background: #fff; border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 18px 50px rgba(10, 14, 40, .35); transition: left .35s, top .35s; }
.g-tip small { display: block; font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.g-tip b { display: block; font-size: 16px; margin-bottom: 4px; }
.g-tip p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.g-btns { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.g-skip { border: 0; background: none; color: var(--ink-2); font-weight: 600; font-size: 12.5px; padding: 6px 2px; text-decoration: underline; }
.g-next { margin-left: auto; border: 0; background: var(--blue); color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 18px; border-radius: 999px; }
.g-next:focus-visible, .g-skip:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
body.tab-big .chart { max-height: 30vh; } /* no tablet grande o gráfico não cresce com a largura */
/* tablet grande em telas estreitas: ocupa a tela acima do card */
@media (max-width: 860px) {
  body.tab-big .tablet { top: 60px; left: 8px; right: 8px; width: auto; aspect-ratio: auto; max-height: none; bottom: calc(var(--card-h, 0px) + 16px); }
}
@media (min-width: 861px) {
  .story, body.has-tablet .story { left: 20px; top: 72px; bottom: auto; width: var(--col); max-height: calc(100vh - 92px); transform: none; }
  body:has(#intro:not([hidden])) .story { transform: translateY(-16px); }
  .story-body { padding: 16px 62px 16px 22px; }
  .fala { font-size: 15.5px; }
  /* tablet pequeno mais largo que o card (revisão 23/11): cresce até 36vw/700px, limitado pela altura livre abaixo do card */
  .tablet { left: 20px; right: auto; bottom: 20px; width: max(var(--col), min(36vw, 700px, calc((100vh - 72px - var(--card-h, 200px) - 36px) * 1.4))); max-height: calc(100vh - 72px - var(--card-h, 200px) - 36px); padding: 12px 12px 12px 22px; transform: translateX(calc(-100% - 60px)) rotate(-2deg); }
  body.tab-big .tablet { left: auto; right: 20px; top: 72px; bottom: 20px; width: min(900px, calc(100vw - var(--col) - 60px)); aspect-ratio: auto; max-height: none; }
  .tablet-handle { left: 0; right: auto; bottom: 28px; border-radius: 0 16px 16px 0; transform: translateX(-100%); }
  .stage-legend { left: calc(var(--col) + 40px); top: auto; bottom: 20px; }
  .badge, .outro { padding-bottom: 0; }
}
/* no tablet pequeno, foto e globo ocupam a altura que sobra (sem reduzir tudo nem rolar) */
.media:has(> .m-frame), .media:has(> .globe) { height: 100%; display: flex; flex-direction: column; }
.media:has(> .m-frame) > .m-frame { flex: 1 1 auto; min-height: 0; }
.media:has(> .m-frame) > .m-frame img, .media:has(> .m-frame) > .m-frame video { height: 100%; aspect-ratio: auto; }
.media:has(> .m-frame) > .m-cap { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media:has(> .globe) > .globe { flex: 1 1 auto; min-height: 120px; position: relative; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stat { padding: 9px 11px 8px; }
.stat b { font-size: 30px; }
.stat span { font-size: 12px; }
/* menu de passos em duas colunas (cabe na tela sem rolagem) */
.step-menu { width: min(560px, calc(100vw - 32px)); display: grid; grid-template-columns: 210px 1fr; gap: 6px; align-items: start; }
.sm-ch { display: flex; flex-direction: column; border-right: 1px solid #eef0fb; padding-right: 6px; }
.step-menu .sm-ch h4 button { padding: 7px 10px; font-size: 10.5px; line-height: 1.3; }
.step-menu .sm-ch .sm-guide { margin-top: 8px; border-bottom: 0; border-top: 1px solid #eef0fb; border-radius: 0 0 8px 8px; }
.step-menu .sm-steps button { padding: 6px 10px; }
.step-menu .sm-steps h5 { margin: 8px 10px 2px; }
.step-menu .sm-steps h5:first-child { margin-top: 2px; }
@media (max-width: 560px) { .step-menu { grid-template-columns: 1fr; } .sm-ch { border-right: 0; padding-right: 0; } }
