/* Fyture v7 · estilos compartilhados (extraídos da v6) */
:root {
  --ink: #0C0C12; --ink2: #16151C; --stone: #56545F; --stone2: #8B8994;
  --mist: #F2F1F6; --paper: #FFFFFF; --line: rgba(12,12,18,.09); --line2: rgba(12,12,18,.16);
  --slate: #3F4F97; --dusk: #6A66A5; --lilac: #9C97E6; --indigo: #4B30E9;
  --neg: #E23636; --pos: #1A9E10;
  --rule: rgba(63,79,151,.22); --rule-s: rgba(63,79,151,.14);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 'Sora', 'Manrope', system-ui, sans-serif;
  --navh: 65px; --r-art: 10px; --r-day: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; margin: 0; color: var(--ink); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
.sample { font-family: var(--mono); font-size: 11px; color: var(--stone); letter-spacing: .02em; }
.lbl { font-family: var(--mono); font-weight: 500; font-size: 11.5px; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.lbl b { font-weight: 500; margin-right: 1.4em; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1.2 var(--sans); padding: 14px 20px; border-radius: 6px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.btn-p { background: var(--indigo); color: #fff; }
.btn-p:hover { background: #3A21CC; }
.btn-s { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn-s:hover { border-color: var(--slate); }
.btn-sm { font-size: 14px; padding: 10px 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--mist); border-bottom: 1px solid var(--rule); }
.nav-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: block; flex: none; }
.logo img { display: block; height: 28px; width: auto; filter: invert(1) hue-rotate(180deg); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--slate); }

/* HERO (v2): malha blueprint sobre mist */
.hero {
  padding: 72px 0 64px; background-color: var(--mist); border-bottom: 1px solid rgba(63,79,151,.38);
  background-image:
    linear-gradient(rgba(63,79,151,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,79,151,.11) 1px, transparent 1px),
    linear-gradient(rgba(63,79,151,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,79,151,.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.hero h1 { font-weight: 700; font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.03; max-width: 13ch; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hero-sub { font-size: 18px; color: var(--stone); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fig { margin: 0; }
.fig1 { margin-top: 52px; }
.fig-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.hint .h-m { display: none; }
.fig1-wrap { position: relative; padding: 14px 18px 6px; }
.fig1-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.b-fill { fill: var(--paper); }
.b-o { fill: none; stroke: var(--slate); stroke-width: 1.5; }
.b-t { font: 600 15px var(--head); fill: var(--ink); }
.b-s { font: 400 10px var(--mono); fill: var(--stone); }
.b-h { font: 500 10.5px var(--mono); fill: var(--slate); letter-spacing: .08em; }
.i-o { fill: #F7F7FB; stroke: rgba(63,79,151,.45); stroke-width: 1; }
.i-t { font: 600 12px var(--sans); fill: var(--ink); }
.i-s { font: 400 10px var(--mono); fill: var(--stone); }
.i-t2 { font: 600 14px var(--head); fill: var(--ink); }
.link { fill: none; stroke: var(--slate); stroke-width: 1.5; }
.spine { fill: none; stroke: rgba(63,79,151,.45); stroke-width: 1; }
.hair { stroke: var(--rule); stroke-width: 1; }
.grp-lbl { font: 500 9.5px var(--mono); fill: var(--slate); letter-spacing: .08em; }
.grp-rule { stroke: rgba(63,79,151,.22); stroke-width: 1; }
.dim { fill: none; stroke: var(--slate); stroke-width: 1; }
.ann { font: 500 10.5px var(--mono); fill: var(--slate); }
.sym { filter: invert(1) hue-rotate(180deg); }
.wire { fill: none; stroke: var(--slate); stroke-opacity: .55; stroke-width: 1; transition: stroke-opacity .2s ease, stroke-width .2s ease, stroke .2s ease; }
.wire.hot { stroke: var(--ink); stroke-opacity: 1; stroke-width: 1.6; }
.focusing .wire:not(.hot) { stroke-opacity: .16; }
.port { cursor: pointer; outline: none; }
.port-hit { fill: transparent; transition: fill .15s ease; }
.port-lbl { font: 500 12.5px var(--sans); fill: var(--ink); }
.port-sq { fill: var(--paper); stroke: var(--slate); stroke-width: 1.2; transition: fill .15s ease; }
.port.hot .port-hit { fill: rgba(63,79,151,.09); }
.port.hot .port-sq { fill: var(--slate); }
.port:focus-visible .port-hit { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 2; }
.focusing .port:not(.hot) .port-lbl { fill: var(--stone); }
.pk { fill: var(--ink); }
html.js .fig1 .fd { opacity: 0; transition: opacity .5s ease var(--d, 0ms); }
html.js .fig1 .on .fd, html.reveal-all .fig1 .fd { opacity: 1; }
.tip { position: absolute; z-index: 5; width: 300px; max-width: calc(100% - 24px); background: var(--ink); color: #fff; border-radius: 6px; padding: 12px 14px; font-size: 14px; line-height: 1.45; transform: translate(-100%, -50%); pointer-events: none; box-shadow: 0 10px 24px -12px rgba(12,12,18,.45); }
.tip.r { transform: translate(0, -50%); }
.tip[hidden] { display: none; }
.tip .t-h { font: 500 11px var(--mono); color: #C9CCE8; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.tip .t-c { font: 500 11.5px var(--mono); color: #C9CCE8; margin-top: 8px; }
.tip .t-c:empty { display: none; }
.tblock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin: 0; }
.tblock div { padding: 12px 20px 14px; border-left: 1px solid var(--rule); }
.tblock div:first-child { border-left: 0; }
.tblock dt { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.tblock dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; line-height: 1.35; }
/* FIG. 1, versão vertical */
.fig1-m { display: none; padding: 16px; }
.m-blk { border: 1.5px solid var(--slate); border-radius: 6px; padding: 14px 16px; background: var(--paper); }
.m-t { font: 600 16px/1.3 var(--head); }
.m-s { font: 400 11px/1.5 var(--mono); color: var(--stone); margin-top: 2px; }
.m-link { position: relative; min-height: 64px; margin-left: 28px; border-left: 1.5px solid var(--slate); padding: 10px 0 10px 14px; display: flex; align-items: center; }
.m-link::after { content: ""; position: absolute; left: -6.75px; bottom: -1px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--slate); }
.m-ann { font: 500 11px/1.4 var(--mono); color: var(--slate); }
.m-link .pk-m { position: absolute; left: -3.75px; top: 0; width: 6px; height: 6px; background: var(--ink); opacity: 0; animation: mdrop 4.8s linear infinite; }
.m-link.l2 .pk-m { animation-delay: 2.4s; }
@keyframes mdrop { 0% { top: 0; opacity: 0; } 6% { opacity: 1; } 48% { top: calc(100% - 14px); opacity: 1; } 54% { top: calc(100% - 14px); opacity: 0; } 100% { top: calc(100% - 14px); opacity: 0; } }
.m-int { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 4px; }
.m-int span { font: 500 10.5px/1.35 var(--mono); color: var(--ink); background: #F7F7FB; border: 1px solid rgba(63,79,151,.3); border-radius: 4px; padding: 7px 8px; }
.m-int small { display: block; color: var(--stone); font-size: 10px; font-weight: 400; }
.m-grp { margin-top: 14px; }
.m-ports { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.m-port { font: 500 13px/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 7px 10px; cursor: pointer; text-align: left; max-width: 100%; }
.m-port[aria-pressed="true"] { border-color: var(--slate); background: rgba(63,79,151,.08); }
.m-read { margin-top: 14px; padding: 10px 12px; border: 1px dashed rgba(63,79,151,.4); border-radius: 4px; font-size: 14px; line-height: 1.5; color: var(--stone); min-height: 3.2em; }
.m-read b { font-weight: 700; color: var(--ink); }
.m-rows { display: grid; gap: 6px; margin-top: 10px; }
.m-rows div { border: 1px solid rgba(63,79,151,.3); border-radius: 4px; padding: 8px 10px; font: 600 14px var(--head); background: #F7F7FB; }
.m-rows small { font: 400 10.5px var(--mono); color: var(--stone); margin-left: 6px; }

/* MÊS: borda limpa entre a malha e o branco (régua alinhada à malha) */
.month { position: relative; background: var(--paper); }
.month::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(63,79,151,.45) 1px, transparent 1px) -1px 0 / 120px 9px repeat-x,
    linear-gradient(90deg, rgba(63,79,151,.22) 1px, transparent 1px) -1px 0 / 24px 4px repeat-x;
}
.mo-head { padding-top: 104px; padding-bottom: 48px; }
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--stone); letter-spacing: .04em; margin-bottom: 14px; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head h2, .mo-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.025em; line-height: 1.1; }
.sec-head p, .mo-head p.lead { margin-top: 18px; color: var(--stone); max-width: 40em; }
.mo-head .wrap-in { max-width: 720px; }
.mo-run { padding-bottom: 72px; }
/* calendário */
.cal { border: 1px solid var(--line); border-radius: var(--r-art); padding: 16px; background: var(--paper); }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.cal-head strong { font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.cal-head span { font-family: var(--mono); font-size: 12px; color: var(--stone); }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.wd { font-family: var(--mono); font-size: 11px; color: var(--stone); text-align: center; padding-bottom: 2px; }
.d { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-day); background: var(--mist); font-family: var(--mono); font-size: 12px; color: var(--stone); padding: 4px 6px; line-height: 1.2; display: block; transition: background-color .24s ease, color .24s ease, box-shadow .24s ease; }
.d.x { background: transparent; }
.d .dot { position: absolute; left: 6px; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--slate); }
.d.visited { box-shadow: inset 0 0 0 2px var(--slate); color: var(--ink); }
.d.active { background: var(--slate); color: #fff; box-shadow: none; }
.d.active .dot { background: #fff; }
.counter { font-family: var(--mono); font-size: 15px; color: var(--ink); font-weight: 500; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.counter span:last-child { color: var(--stone); font-weight: 400; font-size: 12.5px; text-align: right; }
.cal-note { display: none; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--stone); }
.mo-stages { list-style: none; margin: 18px 0 0; padding: 0; border-left: 1px solid #D6D4DF; }
.mo-stages button { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid transparent; margin-left: -1px; padding: 5px 0 5px 14px; font: 400 12.5px/1.25 var(--mono); color: var(--stone); cursor: pointer; transition: color .3s, border-color .3s; }
.mo-stages button:hover { color: var(--ink); }
.mo-stages .on button { color: var(--ink); font-weight: 500; border-left-color: var(--slate); }
/* passos: versão estática (padrão, sem JS, telas menores, movimento reduzido) */
.mo-side { display: none; }
.mo-stage { max-width: 760px; }
.step { padding: 40px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 8px; }
.week { display: flex; gap: 4px; margin-bottom: 18px; max-width: 320px; }
.week span { flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--stone); background: var(--mist); border-radius: var(--r-day); padding: 5px 0 6px; line-height: 1.25; }
.week span b { display: block; font-weight: 400; font-size: 10px; margin-bottom: 2px; }
.week span.o { background: transparent; color: var(--stone2); }
.week span.on { background: var(--slate); color: #fff; }
.when { font-family: var(--mono); font-size: 13px; color: var(--slate); font-weight: 500; margin-bottom: 12px; }
.step h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.22; max-width: 26ch; }
.step .body { margin-top: 14px; color: var(--stone); max-width: 36em; }
/* artefatos */
.art { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r-art); background: var(--paper); overflow: hidden; max-width: 620px; }
.art-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--mist); font-family: var(--mono); font-size: 12px; color: var(--stone); }
.art-bar strong { font-weight: 500; color: var(--ink); }
.art-pad { padding: 18px 16px; }
.ck { width: 16px; height: 16px; flex: none; display: block; }
.ok-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ok-row .ck { color: var(--pos); }
.ok-row .mono { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--stone); }
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 16px; }
.counts div { padding: 12px 0 0; font-size: 12px; color: var(--stone); }
.counts div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.counts b { display: block; font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--ink); }
.art-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--stone); }
.tbl-wrap { overflow-x: auto; }
.art table { border-collapse: collapse; width: 100%; font-size: 14px; }
.art th { font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--stone); text-align: right; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.art th:first-child, .art td:first-child { text-align: left; }
.art td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; vertical-align: top; }
.art tr:last-child td { border-bottom: 0; }
.art td .acc { font-family: var(--sans); font-size: 14px; color: var(--ink); font-weight: 500; white-space: normal; }
.art td .who { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--stone); }
.art td .code { color: var(--stone); margin-right: 6px; }
.neg { color: var(--neg); }
.var-tbl { min-width: 470px; }
.chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg-user { align-self: flex-end; background: var(--mist); border-radius: 10px; padding: 10px 14px; max-width: 85%; font-size: 15px; }
.tool { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--mono); font-size: 12px; color: var(--stone); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.tool .tn { color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 14px; }
.tool .tr { margin-left: auto; color: var(--pos); display: inline-flex; align-items: center; }
.msg-ai { font-size: 15px; line-height: 1.6; }
.msg-ai .mono { font-weight: 500; }
.doc { padding: 20px 22px 18px; }
.doc h4 { font-size: 17px; margin: 0 0 4px; letter-spacing: -0.01em; }
.doc .meta { font-family: var(--mono); font-size: 11.5px; color: var(--stone); margin-bottom: 14px; }
.doc p { font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.doc p:last-child { margin-bottom: 0; }
.num { font-family: var(--mono); font-size: 13.5px; font-weight: 500; border-bottom: 1.5px solid rgba(63,79,151,.45); white-space: nowrap; }
.chart { padding: 16px 12px 8px; }
.chart svg { display: block; width: 100%; height: auto; margin: 0 auto; }
.chart svg text { font-family: var(--mono); font-size: 10px; fill: var(--stone); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 16px 12px; font-family: var(--mono); font-size: 11.5px; color: var(--stone); }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--slate); vertical-align: middle; margin-right: 6px; }
.legend .l-proj { border-top: 2px dashed var(--dusk); }
.legend .l-orc { border-top: 1.5px solid var(--stone); }
.legend .l-old { border-top: 1.5px dotted var(--stone2); }
.change { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.change b { font-weight: 600; }
.bud-q { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--stone); }
.bud-q q { color: var(--ink); font-weight: 600; }
.status { font-family: var(--mono); font-size: 11.5px; color: var(--slate); border: 1px solid rgba(63,79,151,.35); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.bud-tbl { min-width: 500px; }
.art td.src { text-align: left; font-family: var(--sans); font-size: 13px; color: var(--stone); white-space: normal; min-width: 200px; }
.chain { list-style: none; margin: 0; padding: 18px 16px 6px; }
.chain li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 12px; padding-bottom: 16px; }
.chain li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px; border-left: 1.5px solid var(--line2); }
.chain li:last-child::before { display: none; }
.chain .pin { width: 28px; height: 28px; border-radius: 50%; background: var(--slate); color: #fff; display: flex; align-items: center; justify-content: center; }
.chain .pin .ck { width: 14px; height: 14px; }
.chain .lv { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
.chain .lvl { font-family: var(--mono); font-size: 11.5px; color: var(--stone); }
.chain .ts { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.chain .nm { font-weight: 600; font-size: 15px; }
.chain .what { font-size: 14px; color: var(--stone); }

/* MÊS: motor de rolagem (só com .live, ver script) */
.mo-run.live { height: 560vh; padding-bottom: 0; }
.mo-run.live .mo-stick { position: sticky; top: var(--navh); height: calc(100vh - var(--navh)); display: flex; align-items: center; }
.mo-run.live .mo-grid { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; width: 100%; height: 100%; }
.mo-run.live { --mo-pt: clamp(16px, 5vh, 44px); }
.mo-run.live .mo-side { display: block; align-self: start; padding-top: var(--mo-pt); }
.mo-run.live .mo-side .d { aspect-ratio: auto; height: clamp(26px, calc((100vh - 470px) / 7), 38px); }
.mo-run.live .mo-stage { position: relative; height: 100%; max-width: none; }
.mo-run.live .step { position: absolute; inset: 0; display: flex; flex-direction: column; padding: var(--mo-pt) 0 20px; border: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.mo-run.live .step.past { transform: translateY(-10px); }
.mo-run.live .step.cur { opacity: 1; visibility: visible; transform: none; transition: opacity .28s ease .05s, transform .28s ease .05s, visibility 0s; }
.mo-run.live .step-in { margin: 0; }
.mo-run.live .week, .mo-run.live .when { display: none; }
.mo-run.live .step h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); max-width: 40ch; }
.mo-run.live .step .body { margin-top: 10px; font-size: 15.5px; line-height: 1.55; max-width: 40em; }
.mo-run.live .art { margin-top: 20px; }
.mo-run.live .art td { padding-top: 8px; padding-bottom: 8px; }
.mo-run.live .chart svg { height: clamp(140px, calc(100vh - 480px), 300px); }
.mo-run.live [data-k] { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.mo-run.live tr[data-k] { transform: none; }
.mo-run.live [data-k].on { opacity: 1; transform: none; }
.mo-run.live .chart .draw { opacity: 1; transform: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease; }
.mo-run.live .chart .draw.on { stroke-dashoffset: 0; }
@media (min-height: 860px) { .mo-run.live .cal-note { display: block; } }

/* seções seguintes (v3) */
.sec { padding: 104px 0; border-top: 1px solid var(--line); }
.sub-h { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; margin: 80px 0 24px; }
.prompts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.prompts li { padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.prompts li::before { content: ""; position: absolute; left: 0; top: 26px; width: 8px; border-top: 1.5px solid var(--slate); }
.covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cover { border: 1px solid var(--line); border-radius: var(--r-art); aspect-ratio: 4 / 3; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); }
.cover .top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--stone); }
.cover .ttl { font-family: var(--head); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; line-height: 1.15; }
.cover .cv-fig { font-family: var(--mono); font-size: 13px; color: var(--stone); border-top: 1px solid var(--line); padding-top: 10px; }
.cover .cv-fig b { font-weight: 500; color: var(--ink); font-size: 15px; }
.cover-cap { margin-top: 12px; font-size: 14.5px; color: var(--stone); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; border-top: 1px solid var(--ink); padding-top: 28px; }
.cols3 h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; margin-bottom: 12px; }
.cols3 p { color: var(--stone); }
.audit { margin-top: 40px; font-size: 15px; color: var(--stone); max-width: 52em; }
.audit .mono { font-size: 13px; color: var(--ink); }
.plat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.feat { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.feat div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.feat dt { font-weight: 700; font-size: 16px; }
.feat dd { margin: 4px 0 0; font-size: 15px; color: var(--stone); }
.photo-slot { margin: 0; }
.photo-slot .ph { aspect-ratio: 3 / 2; border-radius: var(--r-art); background:
  repeating-linear-gradient(0deg, transparent 0 23px, rgba(12,12,18,.04) 23px 24px),
  repeating-linear-gradient(90deg, transparent 0 23px, rgba(12,12,18,.04) 23px 24px),
  linear-gradient(160deg, #ECEBF1, #DCDAE3); }
.photo-slot figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--stone); }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-family: var(--head); font-weight: 600; font-size: 18px; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--mono); font-weight: 400; font-size: 20px; color: var(--stone); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--stone); max-width: 44em; }
.cta { background: var(--ink); color: #fff; padding: 104px 0; }
.cta h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1.05; }
.cta p { margin-top: 20px; color: #C9C7D1; max-width: 38em; }
.cta .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.cta .actions a.plain { color: #fff; font-family: var(--mono); font-size: 14px; }
.cta :focus-visible { outline-color: #AEB6E4; }
.foot { padding: 40px 0 48px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--stone); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* responsivo */
@media (max-width: 960px) {
  .fig1-svg { display: none; }
  .fig1-m { display: block; }
  .hint .h-d { display: none; }
  .hint .h-m { display: inline; }
  .covers, .plat { grid-template-columns: minmax(0, 1fr); }
  .cover { aspect-ratio: auto; min-height: 170px; gap: 24px; }
  .cols3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sec { padding: 72px 0; }
  .mo-head { padding-top: 80px; padding-bottom: 32px; }
}
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 112px; }
  .nav-in { flex-wrap: wrap; gap: 10px 16px; padding-top: 12px; }
  .nav nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .nav-links { gap: 22px; padding-bottom: 10px; white-space: nowrap; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 760px) {
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock div:nth-child(3) { border-left: 0; }
  .tblock div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .prompts, .feat { grid-template-columns: minmax(0, 1fr); }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .counts div:nth-child(n+3) { padding-top: 12px; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 48px 0 40px; }
  .fig1 { margin-top: 36px; }
  .fig-head { padding: 12px 14px; }
  .fig1-wrap { padding: 0; }
  .fig1-m { padding: 14px; }
  .tblock div { padding: 10px 14px 12px; }
  .step { padding: 32px 0; }
  .art-pad, .chat { padding: 14px 12px; }
  .doc { padding: 18px 14px; }
  .cta { padding: 80px 0; }
}
@media (max-width: 400px) {
  .logo img { height: 21px; }
  .nav .btn-sm { font-size: 13px; padding: 8px 11px; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .m-int { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .fig1 .fd { opacity: 1; }
  .m-link .pk-m { display: none; }
}

/* ===== Estúdio: relatórios pedidos ao Claude ===== */
@property --acc { syntax: '<color>'; inherits: true; initial-value: #3F4F97; }
.stu { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 44px; align-items: start; margin: 52px 0 88px; }
.stu-h { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.2; margin: 10px 0 22px; }
.stu-tabs { display: grid; gap: 8px; }
.stu-tab { display: grid; gap: 2px; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; transition: background .2s, border-color .2s; }
.stu-tab b { font-family: var(--head); font-weight: 600; font-size: 15.5px; }
.stu-tab small { font-family: var(--mono); font-size: 11.5px; color: var(--stone); }
.stu-tab:hover { border-color: var(--line2); }
.stu-tab[aria-selected="true"] { background: var(--paper); border-color: var(--ink); }
.stu-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
.stu-steps li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; color: var(--stone); transition: color .3s; }
.stu-steps li b { color: var(--ink); font-weight: 600; }
.stu-steps li::before { content: ""; position: absolute; left: 0; top: .38em; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--stone2); background: var(--paper); transition: background .3s, border-color .3s, transform .3s; }
.stu-steps li.is-on::before { background: var(--slate); border-color: var(--slate); transform: scale(1.15); }
.stu-steps li.is-done::before { background: var(--stone2); border-color: var(--stone2); }
.stu.live .stu-steps li:not(.is-on):not(.is-done) { color: var(--stone2); }
.stu.live .stu-steps li:not(.is-on):not(.is-done) b { color: var(--stone); }
.stu-ctl { display: flex; gap: 18px; margin-top: 22px; }
.stu-ctl button { font: 600 14px var(--sans); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); }
.stu.still .stu-ctl { display: none; }
.stu-note { font-family: var(--mono); font-size: 11.5px; color: var(--stone); margin-top: 14px; }

.stu-win { background: var(--paper); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(12,12,18,.06), 0 28px 64px -30px rgba(12,12,18,.28); }
.stu-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFAFC; font: 500 12px var(--mono); color: var(--stone); }
.stu-bar .dots { display: inline-flex; gap: 6px; }
.stu-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #DCDAE4; }
.stu-app { font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--ink); }
.stu-conn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.stu-conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); }
.stu-body { display: flex; height: 600px; }
.stu-chat { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); transition: flex-basis .8s cubic-bezier(.2,.7,.2,1); }
.stu-feed { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 16px 8px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px); mask-image: linear-gradient(to bottom, transparent 0, #000 44px); }
.stu-script { display: none; flex-direction: column; gap: 12px; }
.stu[data-rep="0"] .stu-script[data-r="0"], .stu[data-rep="1"] .stu-script[data-r="1"], .stu[data-rep="2"] .stu-script[data-r="2"] { display: flex; }
.s-msg { font-size: 14px; line-height: 1.5; max-width: 94%; }
.s-msg.u { align-self: flex-end; background: var(--mist); border-radius: 12px 12px 4px 12px; padding: 9px 12px; }
.s-calls { border: 1px solid var(--line); border-radius: 10px; padding: 2px 10px 4px; }
.s-calls > p { font: 500 10.5px var(--mono); color: var(--stone); text-transform: uppercase; letter-spacing: .07em; padding: 7px 0 3px; }
.s-call { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.s-call em { margin-left: auto; font: 400 11.5px var(--mono); font-style: normal; color: var(--stone); white-space: nowrap; }
.s-sp { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--slate); animation: s-spin .8s linear infinite; }
.s-ck { display: none; width: 13px; height: 13px; flex: none; color: var(--slate); }
.s-call.ok .s-sp { display: none; }
.s-call.ok .s-ck { display: block; }
@keyframes s-spin { to { transform: rotate(360deg); } }
.stu-cmp { display: flex; align-items: center; gap: 4px; margin: 6px 12px 12px; padding: 9px 10px 9px 12px; border: 1px solid var(--line2); border-radius: 12px; min-height: 46px; font-size: 14px; }
.cmp-tx:empty::before { content: "Pergunte ao Claude"; color: var(--stone2); }
.cmp-caret { width: 1.5px; height: 17px; background: var(--ink); opacity: 0; }
.stu.typing .cmp-caret { opacity: 1; animation: s-blink 1s steps(1) infinite; }
@keyframes s-blink { 50% { opacity: 0; } }
.cmp-send { margin-left: auto; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.cmp-send svg { width: 13px; height: 13px; }

.stu-art { flex: 0 0 0%; min-width: 0; overflow: hidden; background: #FBFBFD; transition: flex-basis .8s cubic-bezier(.2,.7,.2,1); }
.stu-win.open .stu-chat { flex-basis: 40%; }
.stu-win.open .stu-art { flex-basis: 60%; }
.s-art { display: none; width: 100%; min-width: 390px; height: 100%; padding: 18px; overflow: hidden; --acc: #3F4F97; transition: --acc .9s ease; }
.stu[data-rep="0"] .s-art[data-r="0"], .stu[data-rep="1"] .s-art[data-r="1"], .stu[data-rep="2"] .s-art[data-r="2"] { display: block; }
.s-art.brand { --acc: #2F6B4F; }
.s-head { display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin-bottom: 14px; border-radius: 10px; background: color-mix(in srgb, var(--acc) 7%, #fff); border: 1px solid color-mix(in srgb, var(--acc) 24%, #fff); }
.s-logo { flex: none; width: 100px; overflow: hidden; transition: width .6s cubic-bezier(.2,.7,.2,1), opacity .4s ease; }
.s-logo svg { width: 94px; height: auto; display: block; color: #2F6B4F; transform-origin: left center; transition: transform .7s cubic-bezier(.3,1.4,.5,1); }
.s-ttl { min-width: 0; }
.s-ttl b { display: block; font-family: var(--head); font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--ink); }
.s-ttl span { font: 400 11px var(--mono); color: var(--stone); }
.s-head .sample { margin-left: auto; white-space: nowrap; }

.s-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.s-tb th { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--stone); text-align: right; padding: 0 0 8px; border-bottom: 1px solid var(--line2); }
.s-tb td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-tb th:first-child, .s-tb td:first-child { text-align: left; }
.s-tb td:first-child { font-family: var(--sans); font-weight: 600; white-space: normal; }
.s-tb th + th, .s-tb td + td { padding-left: 10px; }
.s-pct { display: inline-flex; align-items: center; gap: 8px; }
.s-pct .tr { width: 52px; height: 6px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.s-pct .tr i { display: block; height: 100%; width: var(--w); background: var(--acc); border-radius: 3px; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.s-src { font: 400 11px var(--mono); color: var(--stone); margin-top: 10px; }

.s-bs { display: grid; gap: 14px; margin-bottom: 14px; }
.s-bsr > p { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.s-bsr > p span { font: 400 12px var(--mono); color: var(--stone); }
.s-bsb { display: flex; height: 30px; border-radius: 6px; overflow: hidden; background: var(--mist); }
.s-seg { width: var(--w); display: flex; align-items: center; justify-content: center; font: 500 10.5px var(--mono); color: #fff; white-space: nowrap; overflow: hidden; transition: width .9s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 140ms); }
.s-seg.c1 { background: var(--acc); }
.s-seg.c2 { background: color-mix(in srgb, var(--acc) 62%, #fff); }
.s-seg.c3 { background: color-mix(in srgb, var(--acc) 32%, #fff); color: var(--ink); }
.s-leg { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 11.5px; color: var(--stone); margin-top: 6px; }
.s-leg span { display: inline-flex; align-items: center; gap: 6px; }
.s-leg span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--sw); }
.s-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; }
.s-kpi small { display: block; font-size: 11.5px; color: var(--stone); }
.s-kpi b { font: 700 22px var(--head); letter-spacing: -.01em; color: var(--acc); font-variant-numeric: tabular-nums; }
.s-expl { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; background: color-mix(in srgb, var(--acc) 7%, #fff); }

.s-dfc { display: grid; gap: 12px; }
.s-pan { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 8px; background: #fff; }
.s-pt { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--stone); margin-bottom: 4px; }
.s-line { width: 100%; max-width: 400px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.s-line .s-ln { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease .15s; }
.s-line .s-ar { fill: var(--acc); opacity: .08; transition: opacity .8s ease 1.1s; }
.s-line .s-dt { fill: #fff; stroke: var(--acc); stroke-width: 1.5; }
.s-line text { font: 400 8px var(--mono); fill: var(--stone); }
.s-line .s-end { font-weight: 500; fill: var(--ink); }
.s-mark circle { fill: none; stroke: var(--neg); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.s-mark .s-ping { animation: s-ping 1.6s ease-out 2; }
.s-mark text { fill: var(--ink); font-weight: 500; }
@keyframes s-ping { from { transform: scale(1); opacity: 1; } to { transform: scale(3); opacity: 0; } }
.s-wf { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding-top: 16px; }
.s-wf .col { position: relative; height: 112px; border-bottom: 1px solid var(--line2); }
.s-wf i { position: absolute; left: 12%; right: 12%; bottom: calc(var(--b) * 1%); height: calc(var(--h) * 1%); border-radius: 3px; background: var(--acc); transform-origin: bottom; transition: transform .6s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 110ms); }
.s-wf .pos i { background: color-mix(in srgb, var(--acc) 55%, #fff); }
.s-wf .neg i { background: #E58585; transform-origin: top; }
.s-wf .v { position: absolute; left: -4px; right: -4px; bottom: calc((var(--b) + var(--h)) * 1% + 3px); text-align: center; font: 500 9.5px var(--mono); color: var(--ink); }
.s-wfl { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 5px; font: 400 9.5px var(--mono); color: var(--stone); text-align: center; }

.s-pdf { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; font-size: 13px; }
.s-pdf svg { width: 17px; height: 21px; flex: none; color: var(--acc); }
.s-pdf b { font-weight: 600; overflow-wrap: anywhere; }
.s-pdf span { margin-left: auto; font: 400 11px var(--mono); color: var(--stone); white-space: nowrap; }

/* estados escondidos: só existem quando o roteiro está ativo */
.stu.live .stu-script [data-p], .stu.live .s-art [data-p], .stu.live .s-art [data-k], .stu.live .s-call { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.stu.live .stu-script [data-p].on, .stu.live .s-art [data-p].on, .stu.live .s-art [data-k].on, .stu.live .s-call.on { opacity: 1; transform: none; }
.stu.live .s-logo[data-p] { width: 0; transform: none; }
.stu.live .s-logo[data-p] svg { transform: scale(1.35) translateY(-4px); }
.stu.live .s-logo[data-p].on { width: 100px; }
.stu.live .s-logo[data-p].on svg { transform: none; }
.stu.live .s-tb tr[data-k] .tr i { width: 0; }
.stu.live .s-tb tr[data-k].on .tr i { width: var(--w); }
.stu.live .s-bsr[data-k] .s-seg { width: 0; }
.stu.live .s-bsr[data-k].on .s-seg { width: var(--w); }
.stu.live .s-art [data-k] .s-ln { stroke-dashoffset: 1; }
.stu.live .s-art [data-k].on .s-ln { stroke-dashoffset: 0; }
.stu.live .s-art [data-k] .s-ar { opacity: 0; }
.stu.live .s-art [data-k].on .s-ar { opacity: .08; }
.stu.live .s-art [data-k] .s-dt { opacity: 0; transition: opacity .3s ease calc(.3s + var(--i) * 120ms); }
.stu.live .s-art [data-k].on .s-dt { opacity: 1; }
.stu.live .s-art [data-k] .s-wf i { transform: scaleY(0); }
.stu.live .s-art [data-k].on .s-wf i { transform: none; }

@media (max-width: 1180px) {
  /* abaixo disso a janela precisa da largura toda para o relatório caber */
  .stu { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stu-h { max-width: 34ch; }
  .stu-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stu-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
}
@media (max-width: 760px) {
  .stu-tabs, .stu-steps { grid-template-columns: minmax(0, 1fr); }
  .stu-body { flex-direction: column; height: auto; }
  .stu-chat { flex: none; height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stu-win.open .stu-chat { flex-basis: auto; }
  .stu-art { flex: none; max-height: 0; transition: max-height .9s ease; }
  .stu-win.open .stu-art { flex-basis: auto; max-height: 900px; }
  .s-art { min-width: 0; height: auto; }
}
@media (max-width: 520px) {
  .s-art { padding: 14px; }
  .s-head { flex-wrap: wrap; }
  .s-head .sample { margin-left: 0; }
  .s-tb { font-size: 12px; }
  .s-pct .tr { display: none; }
  .s-kpi b { font-size: 19px; }
  .s-wf .v { font-size: 8.5px; }
  .s-wfl { font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-sp { animation: none; }
}

/* ===== Orçamento com agente (prefixo ag-) =====
   A) gancho por rolagem (.ag-run, estados escondidos só sob .live)
   B) demonstração com roteiro (.ag-demo, estados escondidos só sob .live)
   C) fechamento */
.ag-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ag-eye { font: 400 12px/1.4 var(--mono); color: var(--stone); letter-spacing: .04em; margin: 0 0 14px; }
.ag-sym { display: block; height: 18px; width: auto; flex: none; filter: invert(1) hue-rotate(180deg); }
.ag-send { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.ag-send svg { width: 13px; height: 13px; }

/* ---------- A) gancho: versão estática (padrão) ---------- */
.ag-run { padding-bottom: 8px; }
.ag-frame, .ag-side, .ag-stage { min-width: 0; }
.ag-stages { display: none; list-style: none; margin: 22px 0 0; padding: 0; border-left: 1px solid #D6D4DF; }
.ag-stages button { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid transparent; margin-left: -1px; padding: 7px 0 7px 14px; font: 400 12.5px/1.3 var(--mono); color: var(--stone); cursor: pointer; transition: color .3s, border-color .3s; }
.ag-stages button:hover { color: var(--ink); }
.ag-stages .on button { color: var(--ink); font-weight: 500; border-left-color: var(--slate); }
.ag-beat { padding: 44px 0; border-top: 1px solid var(--line); }
.ag-beat:first-child { border-top: 0; padding-top: 12px; }
.ag-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.ag-in > * { min-width: 0; }
.ag-q { font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.1; max-width: 18ch; }
.ag-art { width: 100%; max-width: 540px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.ag-art-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--mist); font: 400 12px var(--mono); color: var(--stone); }
.ag-art-bar strong { font-weight: 500; color: var(--ink); }
.ag-art-foot { padding: 9px 14px; border-top: 1px solid var(--line); font: 400 11.5px/1.45 var(--mono); color: var(--stone); }
.ag-tag { font: 500 11px var(--mono); color: var(--stone); border: 1px solid var(--line2); border-radius: 999px; padding: 2px 9px; background: var(--paper); }

/* calendário do prazo */
.ag-cal { padding: 14px; }
.ag-g7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ag-wd { font: 400 11px var(--mono); color: var(--stone); text-align: center; padding-bottom: 2px; }
.ag-day { position: relative; height: 42px; border-radius: 6px; background: var(--mist); font: 400 12px/1 var(--mono); color: var(--stone); padding: 5px 6px; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.ag-day.we { color: var(--stone2); }
.ag-day[data-k] { background: rgba(63,79,151,.2); color: var(--ink); }
.ag-day.today { box-shadow: inset 0 0 0 2px var(--slate); }
.ag-dl { background: var(--paper); color: var(--ink); font-weight: 500; }
.ag-ring { position: absolute; left: -3px; top: -3px; width: calc(100% + 6px); height: calc(100% + 6px); overflow: visible; pointer-events: none; }
.ag-ring path { fill: none; stroke: var(--neg); stroke-width: 1.8; stroke-linecap: round; }
.ag-dll { grid-column: 3 / 8; align-self: center; display: flex; align-items: center; gap: 8px; padding-left: 6px; font: 500 11.5px var(--mono); color: var(--ink); letter-spacing: .02em; }
.ag-dll::before { content: ""; width: 16px; flex: none; border-top: 1.5px solid var(--neg); }
.ag-ctr { margin-top: 12px; font: 500 13px var(--mono); color: var(--ink); }

/* grade zerada */
.ag-tw2 { overflow-x: auto; }
.ag-zero { width: 100%; border-collapse: collapse; font: 400 12.5px var(--mono); font-variant-numeric: tabular-nums; }
.ag-zero thead th { font-weight: 400; font-size: 11px; color: var(--stone); text-align: right; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.ag-zero tbody th { text-align: left; font: 600 14px var(--sans); color: var(--ink); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ag-zero td { text-align: right; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--stone2); white-space: nowrap; }
.ag-zero tr:last-child > * { border-bottom: 0; }
.ag-zero tr.res th, .ag-zero tr.res td { color: var(--ink); font-weight: 700; }

/* centros de custo */
.ag-ccs { list-style: none; margin: 0; padding: 2px 14px; }
.ag-cc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ag-cc:last-child { border-bottom: 0; }
.ag-code { flex: none; width: 48px; font: 400 11.5px var(--mono); color: var(--stone); }
.ag-ccn { flex: 1; min-width: 0; }
.ag-ccn b { display: block; font: 600 14.5px/1.3 var(--sans); }
.ag-ccn span { display: block; font-size: 12.5px; color: var(--stone); }
.ag-pill { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); color: var(--stone); background: var(--mist); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 10px; }
.ag-pill svg { width: 11px; height: 11px; }

/* revelação */
.ag-rev { padding: 22px; }
.ag-rev-top { display: flex; align-items: center; gap: 10px; font: 400 11.5px var(--mono); color: var(--stone); letter-spacing: .04em; }
.ag-name { margin-top: 14px; font: 700 clamp(1.6rem, 2.6vw, 2.15rem)/1.1 var(--head); letter-spacing: -.025em; color: var(--ink); }
.ag-intro { margin-top: 10px; color: var(--stone); font-size: 16.5px; line-height: 1.55; max-width: 36em; }
.ag-mini { margin-top: 18px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line2); border-radius: 12px; padding: 9px 9px 9px 14px; font-size: 14px; line-height: 1.45; }
.ag-mini > span:first-child { flex: 1; min-width: 0; }
.ag-go { display: inline-block; margin-top: 18px; font: 600 15px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); }
.ag-go:hover { text-decoration-color: var(--slate); }

@media (min-width: 760px) {
  .ag-in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
}

/* ---------- A) gancho: motor de rolagem (só com .live) ---------- */
.ag-run.live { height: 320vh; padding-bottom: 0; }
.ag-run.live .ag-stick { position: sticky; top: var(--navh, 65px); height: calc(100vh - var(--navh, 65px)); display: flex; align-items: center; }
.ag-run.live .ag-frame { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; width: 100%; height: 100%; }
.ag-run.live .ag-side { align-self: center; }
.ag-run.live .ag-stages { display: block; }
.ag-run.live .ag-stage { position: relative; height: 100%; }
.ag-run.live .ag-beat { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 20px 0; border: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s; }
.ag-run.live .ag-beat.past { transform: translateY(-18px); }
.ag-run.live .ag-beat.cur { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .12s, transform .45s ease .12s, visibility 0s; }
.ag-run.live .ag-in { margin: auto 0; }
.ag-run.live .ag-q { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.ag-run.live .ag-day { height: clamp(28px, calc((100vh - 480px) / 6), 46px); }
.ag-run.live .ag-cc { padding: 8px 0; }
.ag-run.live [data-k] { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.ag-run.live tr[data-k] { transform: none; }
.ag-run.live [data-k].on { opacity: 1; transform: none; }
.ag-run.live tr[data-k] td { opacity: 0; transition: opacity .3s ease calc(var(--i, 0) * 80ms + 120ms); }
.ag-run.live tr[data-k].on td { opacity: 1; }
.ag-run.live .ag-cc[data-k] .ag-pill { opacity: 0; transform: scale(.85); transition: opacity .3s ease .22s, transform .4s cubic-bezier(.3,1.4,.5,1) .22s; }
.ag-run.live .ag-cc[data-k].on .ag-pill { opacity: 1; transform: none; }
.ag-run.live .ag-day[data-k] { opacity: 1; transform: none; }
.ag-run.live .ag-day[data-k]:not(.on) { background: var(--mist); color: var(--stone); }
.ag-run.live .ag-day.we[data-k]:not(.on) { color: var(--stone2); }
.ag-run.live .ag-ring[data-k] { opacity: 1; transform: none; }
.ag-run.live .ag-ring path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s ease; }
.ag-run.live .ag-ring.on path { stroke-dashoffset: 0; }

/* ---------- B) demonstração ---------- */
.ag-demo { margin-top: 104px; }
.ag-dh { max-width: 760px; }
.ag-dh h3 { margin-top: 10px; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; line-height: 1.18; }
.ag-dh p { margin-top: 14px; color: var(--stone); max-width: 40em; }
.ag-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.ag-tab { display: block; min-width: 0; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 13px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.ag-tab:hover { border-color: var(--line2); }
.ag-tab[aria-selected="true"] { border-color: var(--ink); background: var(--paper); }
.ag-tk { display: block; font: 400 11px var(--mono); color: var(--stone); letter-spacing: .04em; }
.ag-tt { display: block; margin-top: 2px; font: 600 16px/1.3 var(--head); letter-spacing: -.01em; }
.ag-rail { display: block; margin-top: 10px; }
.ag-st { display: block; position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.5; color: var(--stone); transition: color .3s; }
.ag-st + .ag-st { margin-top: 3px; }
.ag-st::before { content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--stone2); background: var(--paper); transition: background-color .3s, border-color .3s, transform .3s; }
.ag-st.is-on { color: var(--ink); font-weight: 600; }
.ag-st.is-on::before { background: var(--slate); border-color: var(--slate); transform: scale(1.15); }
.ag-st.is-done::before { background: var(--stone2); border-color: var(--stone2); }
.ag-demo.live .ag-tab[aria-selected="true"] .ag-st:not(.is-on):not(.is-done) { color: var(--stone2); }
.ag-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 16px 0 14px; }
.ag-ctl button { font: 600 14px var(--sans); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); }
.ag-ctl button:hover { text-decoration-color: var(--slate); }
.ag-ctl .sample { margin-left: auto; }
.ag-demo:not(.ag-js) .ag-ctl button, .ag-demo.still .ag-ctl button { display: none; }

/* janela do app */
.ag-win { background: var(--paper); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(12,12,18,.06), 0 24px 56px -32px rgba(12,12,18,.28); }
.ag-wbar { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFAFC; font: 400 12px var(--mono); color: var(--stone); }
.ag-crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px var(--sans); color: var(--ink); }
.ag-crumb i { font-style: normal; font-weight: 400; color: var(--stone2); margin: 0 6px; }
.ag-conn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ag-conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); }
.ag-scene { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); }
.ag-scene + .ag-scene { border-top: 1px solid var(--line2); }
.ag-cap { grid-column: 1 / -1; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--mist); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.ag-demo.ag-js .ag-cap { display: none; }
.ag-demo.ag-js .ag-scene { display: none; border-top: 0; }
.ag-demo.ag-js[data-rep="0"] .ag-scene[data-r="0"], .ag-demo.ag-js[data-rep="1"] .ag-scene[data-r="1"], .ag-demo.ag-js[data-rep="2"] .ag-scene[data-r="2"] { display: grid; }
.ag-demo.live .ag-scene { animation: ag-fade .35s ease; }

/* chat */
.ag-chat { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--paper); }
.ag-chead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ag-chead > div { min-width: 0; }
.ag-chead b { display: block; font: 600 14px/1.3 var(--head); }
.ag-ctx { display: block; font: 400 11px/1.4 var(--mono); color: var(--stone); }
.ag-who { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 400 11px var(--mono); color: var(--stone); }
.ag-who i { width: 24px; height: 24px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font: 600 10px var(--sans); font-style: normal; }
.ag-feed { flex: 1; min-height: 0; padding: 16px 14px 8px; }
.ag-demo.ag-js .ag-feed { overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px); mask-image: linear-gradient(to bottom, transparent 0, #000 36px); }
.ag-flow { display: flex; flex-direction: column; gap: 10px; }
.ag-m { font-size: 14px; line-height: 1.5; max-width: 94%; }
.ag-m.u { align-self: flex-end; background: var(--mist); border-radius: 12px 12px 4px 12px; padding: 8px 12px; }
.ag-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.ag-tool em { margin-left: auto; font: 400 11px var(--mono); font-style: normal; color: var(--stone); white-space: nowrap; }
.ag-sp { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--slate); animation: ag-spin .8s linear infinite; }
.ag-ck { display: none; width: 13px; height: 13px; flex: none; color: var(--slate); }
.ag-tool.ok .ag-sp { display: none; }
.ag-tool.ok .ag-ck { display: block; }
.ag-card { border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px 14px; background: var(--paper); box-shadow: 0 1px 2px rgba(12,12,18,.05); }
.ag-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ag-card-h b { font: 600 15px var(--head); }
.ag-card-h span { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--slate); }
.ag-kv { margin: 0; }
.ag-kv div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ag-kv dt { color: var(--stone); }
.ag-kv dd { margin: 0; font: 400 13px var(--mono); font-variant-numeric: tabular-nums; }
.ag-up { color: var(--slate); margin-left: 4px; }
.ag-flag { margin-top: 8px; font: 400 11.5px var(--mono); color: var(--stone); }
.ag-flag span { color: var(--neg); }
.ag-formula { margin-top: 2px; padding: 8px 10px; border-radius: 6px; background: var(--mist); font: 500 13px/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.ag-rv { margin-top: 7px; font-size: 12.5px; color: var(--stone); }
.ag-act { position: relative; display: inline-block; margin-top: 12px; }
.ag-apply { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--sans); color: #fff; background: var(--indigo); border-radius: 6px; padding: 8px 13px; transition: transform .12s ease, background-color .12s ease; }
.ag-apply.press { transform: scale(.95); background: #3A21CC; }
.ag-cur { display: none; position: absolute; left: 72%; top: 56%; width: 15px; height: 20px; pointer-events: none; }
.ag-demo.live .ag-cur { display: block; opacity: 0; transform: translate(46px, 30px); transition: opacity .3s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.ag-demo.live .ag-cur.on { opacity: 1; transform: none; }
.ag-cmp { display: flex; align-items: center; gap: 6px; margin: 6px 12px 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--line2); border-radius: 12px; min-height: 44px; font-size: 14px; line-height: 1.4; }
.ag-cmp-in { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ag-cmp-tx:empty::before { content: "Escreva um pedido"; color: var(--stone2); }
.ag-caret { display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: var(--ink); opacity: 0; }
.ag-scene.typing .ag-caret { opacity: 1; animation: ag-blink 1s steps(1) infinite; }

/* painel: cadastro e acompanhamento */
.ag-panel { min-width: 0; display: flex; flex-direction: column; background: #FBFBFD; }
.ag-ph { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; padding: 0 16px; min-height: 45px; border-bottom: 1px solid var(--line); background: var(--paper); }
.ag-vt { display: flex; gap: 18px; }
.ag-vt span { display: flex; align-items: center; font: 500 13px var(--sans); color: var(--stone); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .3s, border-color .3s; }
.ag-vt span.is-on { color: var(--ink); border-bottom-color: var(--slate); }
.ag-ph .sample { align-self: center; white-space: nowrap; }
.ag-pbody, .ag-v-ov { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 14px 16px 0; }
.ag-v-cad { flex: 1; min-width: 0; min-height: 0; display: none; flex-direction: column; }
.ag-pt { font: 600 16px var(--head); letter-spacing: -.01em; }
.ag-fil { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.ag-f { position: relative; display: block; min-width: 0; border: 1px solid var(--line2); border-radius: 6px; padding: 5px 30px 6px 10px; background: var(--paper); font: 500 13px/1.3 var(--sans); }
.ag-f small { display: block; font: 400 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--stone); }
.ag-f::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--stone); border-bottom: 1.5px solid var(--stone); transform: translateY(-70%) rotate(45deg); }
.ag-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.ag-tbl { width: 100%; min-width: 660px; border-collapse: separate; border-spacing: 0; font: 400 11px var(--mono); font-variant-numeric: tabular-nums; }
.ag-tbl thead th { font: 500 10px var(--mono); letter-spacing: .06em; color: var(--stone); text-align: right; padding: 8px 5px; border-bottom: 1px solid var(--line2); background: #F7F7FA; white-space: nowrap; }
.ag-tbl td { text-align: right; padding: 8px 5px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--ink); }
.ag-tbl tr:last-child > * { border-bottom: 0; }
.ag-tbl thead th:first-child, .ag-tbl tbody th { position: sticky; left: 0; z-index: 1; text-align: left; padding-left: 10px; }
.ag-tbl tbody th { min-width: 124px; padding: 8px 8px 8px 10px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 12px/1.3 var(--sans); color: var(--ink); white-space: normal; }
.ag-tbl thead th:first-child { border-right: 1px solid var(--line); }
.ag-tbl td:last-child, .ag-tbl thead th:last-child { padding-right: 10px; }
.ag-v { display: inline-block; padding: 1px 3px; border-radius: 3px; }
.ag-tbl .ag-old th, .ag-tbl .ag-old td { color: var(--stone); font-weight: 400; }
.ag-tbl .ag-empty td { text-align: left; padding-left: 10px; color: var(--stone2); }
.ag-tbl .ag-fill.hot th, .ag-tbl .ag-fill.hot td { background: #F5F6FB; }
.ag-stat { margin: auto -16px 0; padding: 10px 16px 11px; border-top: 1px solid var(--line); background: var(--paper); font: 400 11.5px var(--mono); color: var(--stone); }
.ag-pbody .ag-tw { margin-bottom: 14px; }
.ag-s { display: none; align-items: center; gap: 7px; }
.ag-stat[data-s="0"] .ag-s[data-s="0"], .ag-stat[data-s="1"] .ag-s[data-s="1"], .ag-stat[data-s="2"] .ag-s[data-s="2"], .ag-stat[data-s="3"] .ag-s[data-s="3"] { display: inline-flex; }
.ag-s svg { width: 13px; height: 13px; flex: none; }
.ag-s[data-s="1"] { color: var(--slate); }
.ag-s[data-s="3"] { color: var(--ink); }
.ag-s[data-s="3"] svg { color: var(--pos); }
.ag-s b { font-weight: 500; color: var(--ink); }

/* orçado x realizado */
.ag-chart { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 10px 14px; }
.ag-ct { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--stone); }
.ag-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 6px; }
.ag-bp { height: 122px; display: flex; align-items: flex-end; justify-content: center; gap: 12px; border-bottom: 1px solid var(--line2); }
.ag-bc { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.ag-bc b { font: 500 11px var(--mono); color: var(--ink); white-space: nowrap; transition: opacity .3s ease calc(var(--i, 0) * 120ms + .3s); }
.ag-bar { display: block; width: 34px; height: calc(var(--h) * 98px); border-radius: 3px 3px 0 0; transform-origin: bottom; transition: transform .7s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 120ms); }
.ag-bar.o { background: #CFCDD9; }
.ag-bar.r { background: var(--slate); }
.ag-bg p { display: flex; justify-content: center; gap: 8px; margin-top: 6px; font: 500 11px var(--mono); color: var(--ink); }
.ag-bg p span { font-weight: 400; color: var(--stone); }
.ag-leg { display: flex; gap: 16px; margin-top: 8px; font: 400 11px var(--mono); color: var(--stone); }
.ag-leg span { display: inline-flex; align-items: center; gap: 6px; }
.ag-leg span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: #CFCDD9; }
.ag-leg span.r::before { background: var(--slate); }
.ag-over { margin-top: 14px; }
.ag-or { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ag-or:last-child { border-bottom: 0; }
.ag-on { min-width: 0; }
.ag-on b { display: block; font: 600 13px/1.3 var(--sans); }
.ag-on span { display: block; font: 400 10.5px/1.4 var(--mono); color: var(--stone); }
.ag-ob { display: block; height: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.ag-ob i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--slate); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.ag-or em { min-width: 54px; text-align: right; font: 500 12.5px var(--mono); font-style: normal; color: var(--neg); font-variant-numeric: tabular-nums; }

/* estados escondidos: só existem quando o roteiro está ativo */
.ag-demo.live .ag-flow > [data-p]:not(.on) { display: none; }
.ag-demo.live .ag-flow > [data-p].on { animation: ag-in .45s cubic-bezier(.2,.7,.2,1) both; }
.ag-demo.live .ag-flow > .ag-card.on { animation: ag-card .6s cubic-bezier(.2,.7,.2,1) both; }
.ag-demo.live .ag-v { opacity: 0; transform: translateY(5px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.ag-demo.live .ag-v.on { opacity: 1; transform: none; animation: ag-flash 1.1s ease; }
.ag-demo.live .ag-v-cad .ag-v { opacity: 1; transform: none; animation: none; }
.ag-demo.live .ag-scene:not(.ov) .ag-v-cad { display: flex; }
.ag-demo.live .ag-scene:not(.ov) .ag-v-ov { display: none; }
.ag-demo.live .ag-scene.ov .ag-v-ov { animation: ag-fade .45s ease; }
.ag-demo.live .ag-v-ov [data-k] { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.ag-demo.live .ag-v-ov [data-k].on { opacity: 1; transform: none; }
.ag-demo.live .ag-chart:not(.on) .ag-bar { transform: scaleY(0); }
.ag-demo.live .ag-chart:not(.on) .ag-bc b { opacity: 0; }
.ag-demo.live .ag-or:not(.on) .ag-ob i { width: 0; }
@keyframes ag-spin { to { transform: rotate(360deg); } }
@keyframes ag-blink { 50% { opacity: 0; } }
@keyframes ag-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ag-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ag-card { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ag-flash { 0%, 35% { background-color: rgba(63,79,151,.18); } 100% { background-color: transparent; } }

/* ---------- C) fechamento ---------- */
.ag-close { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: baseline; }
.ag-close > p:first-child { font: 600 clamp(1.15rem, 1.8vw, 1.4rem)/1.4 var(--head); letter-spacing: -.01em; max-width: 40em; }
.ag-mnote { font: 400 12px var(--mono); color: var(--stone); }

@media (min-width: 760px) {
  .ag-demo.ag-js .ag-scene { height: 560px; }
  .ag-demo.ag-js .ag-panel { overflow: hidden; }
}
@media (max-width: 759px) {
  .ag-tabs { grid-template-columns: minmax(0, 1fr); }
  .ag-demo.ag-js .ag-tab[aria-selected="false"] .ag-rail { display: none; }
  .ag-scene { grid-template-columns: minmax(0, 1fr); }
  .ag-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .ag-demo.ag-js .ag-chat { height: 440px; }
  .ag-conn { display: none; }
  .ag-close { grid-template-columns: minmax(0, 1fr); }
  .ag-demo { margin-top: 72px; }
}
@media (max-width: 520px) {
  .ag-pbody, .ag-v-ov { padding: 12px 12px 0; }
  .ag-stat { margin: auto -12px 0; padding: 10px 12px 11px; }
  .ag-ph { padding: 0 12px; }
  .ag-ph .sample { display: none; }
  .ag-zero td, .ag-zero thead th, .ag-zero tbody th { padding-left: 9px; padding-right: 9px; }
  .ag-rev { padding: 18px 16px; }
  .ag-cal { padding: 12px; }
  .ag-day { height: 36px; padding: 4px 5px; font-size: 11px; }
  .ag-dll { font-size: 10.5px; gap: 6px; }
  .ag-dll::before { width: 10px; }
  .ag-or { grid-template-columns: minmax(0, 1fr) auto; }
  .ag-ob { grid-column: 1 / -1; grid-row: 2; }
  .ag-bar { width: 28px; }
  .ag-who span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ag *, .ag *::before, .ag *::after { transition: none !important; animation: none !important; }
}

/* ===== Relatórios prontos do plugin Fyture (rp-) =====
   Sem JS ou com movimento reduzido: as três folhas aparecem prontas.
   Estados escondidos só existem em .rp.live .rp-pre (colocados pelo script). */
.rp { --rp-red: #B42828; --rp-out: cubic-bezier(.16,1,.3,1); --rp-io: cubic-bezier(.45,0,.2,1); }
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp-lead { margin-top: -6px; max-width: 44em; color: var(--stone); font-size: 16px; }
.rp-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-top: 12px; }
.rp-again { display: none; font: 600 14px var(--sans); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); }
.rp-again:hover { text-decoration-color: var(--ink); }
.rp.live .rp-again { display: inline-block; }
.rp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.rp-col { display: flex; flex-direction: column; min-width: 0; --rp-tilt: -1.3deg; }
.rp-col:nth-child(2) { --rp-tilt: 1.1deg; }
.rp-col:nth-child(3) { --rp-tilt: -.8deg; }

/* pergunta que dispara o relatório */
.rp-ask { align-self: flex-start; max-width: 100%; min-height: 38px; display: inline-flex; align-items: center; padding: 8px 14px; background: var(--mist); border: 1px solid transparent; border-radius: 14px 14px 14px 4px; font: 500 14.5px/1.35 var(--sans); color: var(--ink); }
.rp.live .rp-ask { cursor: pointer; transition: border-color .2s ease, opacity .2s ease; }
.rp.live .rp-ask:hover { border-color: var(--line2); }
.rp-caret { display: none; width: 1.5px; height: 1.05em; margin-left: 1px; background: var(--ink); }
.rp-typing .rp-caret { display: inline-block; animation: rp-blink .9s steps(1) infinite; }
@keyframes rp-blink { 50% { opacity: 0; } }
.rp-link { display: block; width: 1px; height: 16px; margin-left: 22px; background: var(--line2); transform-origin: 50% 0; }

/* a folha */
.rp-sheet { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 12px; background: var(--paper); border: 1px solid var(--line2); border-radius: 3px; box-shadow: 0 1px 2px rgba(12,12,18,.05), 0 24px 40px -28px rgba(12,12,18,.32); transform-origin: 50% 100%; }
.rp-top { display: flex; justify-content: space-between; gap: 8px; font: 400 10.5px/1.4 var(--mono); color: var(--stone); }
.rp-top .sample { font-size: 10.5px; white-space: nowrap; }
.rp-ttl { margin-top: 14px; font: 600 19px/1.2 var(--head); letter-spacing: -.015em; color: var(--ink); }
.rp-meta { margin-top: 3px; font: 400 11px/1.4 var(--mono); color: var(--stone); }
.rp-rule { height: 2px; margin: 12px 0 2px; background: var(--ink); transform-origin: 0 50%; }
.rp-blk { min-width: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.rp-rule + .rp-blk { border-top: 0; }
.rp-k { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 500 10px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--stone); }
.rp-k span { flex: none; text-transform: none; letter-spacing: 0; }
.rp-big { margin-top: 2px; font: 700 30px/1.1 var(--head); letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.rp-big small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--stone); }
.rp-note { margin-top: 4px; font: 400 11px/1.45 var(--mono); color: var(--stone); }
.rp-note b { font-weight: 500; color: var(--ink); }
.rp-note .rp-neg { color: var(--rp-red); }
.rp-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font: 400 10px/1.45 var(--mono); color: var(--stone); }
.rp-foot span:last-child { white-space: nowrap; }

/* Radar de caixa */
.rp-kg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 128px); gap: 12px; align-items: end; }
.rp-gauge { margin: 0; min-width: 0; text-align: center; }
.rp-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.rp-gauge text { font: 400 8.5px var(--mono); fill: var(--stone); }
.rp-gauge figcaption { margin-top: 2px; font: 400 10.5px/1.35 var(--mono); color: var(--stone); }
.rp-gauge figcaption b { display: block; font: 700 21px/1.1 var(--head); letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-g-tr { fill: none; stroke: #E7E6EE; stroke-width: 7; }
.rp-g-val { fill: none; stroke: var(--slate); stroke-width: 7; stroke-dasharray: 1 2; stroke-dashoffset: .32; }
.rp-g-tk line { stroke: var(--stone); stroke-width: 1; }
.rp-g-one { stroke: var(--ink); stroke-width: 1.5; }
.rp-hb { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.rp-hb li { display: grid; grid-template-columns: 100px minmax(0, 1fr) 34px; align-items: center; gap: 8px; font: 400 10.5px/1.3 var(--mono); color: var(--stone); }
.rp-hb .v { text-align: right; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.rp-tr { display: block; height: 9px; background: var(--mist); border-radius: 1px; overflow: hidden; }
.rp-tr i { display: block; width: var(--w); height: 100%; background: var(--c, var(--slate)); transform-origin: 0 50%; }
.rp-sum { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font: 400 11px/1.4 var(--mono); color: var(--stone); }
.rp-sum b { font-weight: 500; color: var(--ink); }

/* Flash de desempenho */
.rp-kp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-kp > div { min-width: 0; }
.rp-kp .rp-big { font-size: 25px; }
.rp-kp .rp-big small { font-size: 12.5px; }
.rp-pg { position: relative; display: block; height: 6px; margin-top: 8px; background: var(--mist); }
.rp-pg i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--slate); transform-origin: 0 50%; }
.rp-pg b { position: absolute; left: 90.9%; top: -3px; bottom: -3px; width: 1.5px; background: var(--ink); }
.rp-mg { margin-top: 10px; }
.rp-ch { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.rp-ch text { font: 400 9px var(--mono); fill: var(--stone); }
.rp-ch .rp-end { fill: var(--ink); font-weight: 500; }
.rp-ln { fill: none; stroke: var(--slate); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.rp-ref { fill: none; stroke: var(--stone); stroke-width: 1; stroke-dasharray: 2 3; }
.rp-dot { fill: var(--paper); stroke: var(--slate); stroke-width: 1.5; }
.rp-dv { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.rp-dv li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 12.5px; line-height: 1.3; }
.rp-dv .v { font: 500 11.5px/1.3 var(--mono); color: var(--rp-red); font-variant-numeric: tabular-nums; }
.rp-dv .rp-tr { grid-column: 1 / -1; height: 6px; display: flex; justify-content: flex-end; border-right: 1.5px solid var(--ink); border-radius: 0; }
.rp-dv .rp-tr i { background: var(--neg); transform-origin: 100% 50%; }

/* Previsão de fechamento */
.rp-cl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.rp-cl > * { min-width: 0; }
.rp-r { text-align: right; }
.rp-gl line { stroke: var(--line); stroke-width: 1; }
.rp-cut { stroke: var(--line2); stroke-width: 1; stroke-dasharray: 2 3; }
.rp-proj { fill: none; stroke: var(--dusk); stroke-width: 1.8; stroke-dasharray: 4 3; stroke-linejoin: round; }
.rp-band { fill: rgba(106,102,165,.24); }
.rp-tgt { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.rp-dot2 { stroke: var(--dusk); }
.rp-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font: 400 10px/1.4 var(--mono); color: var(--stone); }
.rp-lg span { display: inline-flex; align-items: center; gap: 5px; }
.rp-lg i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--slate); }
.rp-lg .l2 { border-top: 2px dashed var(--dusk); }
.rp-lg .l3 { height: 8px; border: 0; background: rgba(106,102,165,.24); }
.rp-lg .l4 { border-top: 1.5px dashed var(--ink); }
.rp-rg { position: relative; height: 76px; margin: 8px 6px 0; }
.rp-rg-ax { position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--line2); }
.rp-rg-band { position: absolute; left: 20%; width: 62.7%; top: 24px; height: 9px; background: rgba(106,102,165,.24); transform-origin: 52% 50%; }
.rp-rg-m { position: absolute; left: var(--x); top: 20px; width: 64px; margin-left: -32px; display: flex; flex-direction: column; align-items: center; font: 400 10px/1.3 var(--mono); color: var(--stone); }
.rp-rg-m::before { content: ""; width: 1.5px; height: 17px; margin-bottom: 3px; background: var(--dusk); }
.rp-rg-m b { font-weight: 500; font-size: 11px; color: var(--ink); }
.rp-rg-p::before { width: 2px; background: var(--slate); }
.rp-rg-t { position: absolute; left: var(--x); top: 13px; width: 0; height: 26px; margin-left: -.75px; border-left: 1.5px dashed var(--ink); }
.rp-rg-t em { position: absolute; top: -14px; left: 0; width: 96px; margin-left: -48px; text-align: center; font: normal 400 10px/1.2 var(--mono); color: var(--ink); }

/* ---- montagem: estado inicial (só com .live, sem transição) ---- */
.rp.live .rp-pre:not(.rp-typing) .rp-ask { opacity: 0; }
.rp.live .rp-pre .rp-link { transform: scaleY(0); }
.rp.live .rp-pre .rp-sheet { opacity: 0; transform: translateY(22px) rotate(var(--rp-tilt)) scale(.965); box-shadow: 0 0 0 rgba(12,12,18,0), 0 0 0 rgba(12,12,18,0); }
.rp.live .rp-pre .rp-rule { transform: scaleX(0); }
.rp.live .rp-pre .rp-a { opacity: 0; transform: translateY(6px); }
.rp.live .rp-pre .rp-tr i, .rp.live .rp-pre .rp-pg i, .rp.live .rp-pre .rp-rg-band { transform: scaleX(0); }
.rp.live .rp-pre .rp-ln, .rp.live .rp-pre .rp-g-val { stroke-dashoffset: 1; }
.rp.live .rp-pre .rp-wipe { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); opacity: 0; }
/* ---- montagem: transições (só durante .rp-go) ---- */
.rp-go .rp-link { transition: transform .3s var(--rp-io); }
.rp-go .rp-sheet { transition: opacity .45s ease .08s, transform 1s var(--rp-out) .08s, box-shadow 1.1s ease .25s; }
.rp-go .rp-rule { transition: transform .65s var(--rp-io) .22s; }
.rp-go .rp-a { transition: opacity .45s ease var(--t, 0ms), transform .6s var(--rp-out) var(--t, 0ms); }
.rp-go .rp-tr i, .rp-go .rp-pg i, .rp-go .rp-rg-band { transition: transform .75s var(--rp-out) var(--t, 0ms); }
.rp-go .rp-ln, .rp-go .rp-g-val { transition: stroke-dashoffset var(--d, 1.1s) var(--rp-io) var(--t, 0ms); }
.rp-go .rp-wipe { transition: -webkit-clip-path var(--d, .6s) var(--rp-io) var(--t, 0ms), clip-path var(--d, .6s) var(--rp-io) var(--t, 0ms), opacity .25s ease var(--t, 0ms); }

@media (max-width: 999px) {
  .rp-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 36px; }
}
@media (max-width: 400px) {
  .rp-sheet { padding: 14px 14px 10px; }
  .rp-big { font-size: 26px; }
  .rp-kp { gap: 10px; }
  .rp-kp .rp-big { font-size: 21px; }
  .rp-kg { grid-template-columns: minmax(0, 1fr) minmax(0, 108px); gap: 8px; }
  .rp-hb li { grid-template-columns: 88px minmax(0, 1fr) 30px; gap: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-typing .rp-caret { animation: none; }
}

/* ===== Plataforma, módulo por módulo (pf-) =====
   Sem JS: os sete módulos aparecem um abaixo do outro, com os artefatos prontos.
   Com JS: vira uma lista de abas (setas, Home, End) e o artefato do módulo se monta ao ser mostrado. */
.pf { --pf-red: #B42828; --pf-out: cubic-bezier(.16,1,.3,1); --pf-io: cubic-bezier(.45,0,.2,1); }
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-tabs { display: none; }
.pf.live .pf-box { display: grid; grid-template-columns: minmax(0, 248px) minmax(0, 1fr); gap: 44px; align-items: start; }
.pf.live .pf-tabs { position: relative; display: grid; gap: 2px; border-left: 1px solid var(--line2); }
.pf-tab { display: grid; gap: 1px; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid transparent; margin-left: -1px; padding: 10px 12px 10px 16px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.pf-tab b { font: 600 15.5px/1.3 var(--head); }
.pf-tab small { font: 400 11.5px/1.35 var(--mono); color: var(--stone); }
.pf-tab:hover { background: var(--mist); }
.pf-tab[aria-selected="true"] { border-left-color: var(--slate); background: rgba(63,79,151,.06); }
.pf-tab:focus-visible { outline-offset: -2px; }
.pf-panels { min-width: 0; }
.pf.live .pf-panels { min-height: 560px; }

/* painel de um módulo */
.pf-p { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 40px; align-items: start; min-width: 0; padding: 44px 0; border-top: 1px solid var(--line); }
.pf-p:first-child { padding-top: 0; border-top: 0; }
.pf.live .pf-p { padding: 0; border-top: 0; }
.pf-p[hidden] { display: none; }
.pf-p:focus-visible { outline-offset: 10px; }
.pf-txt { min-width: 0; }
.pf-h3 { margin-top: 10px; font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.02em; line-height: 1.22; max-width: 26ch; }
.pf-facts { margin: 22px 0 0; }
.pf-facts div { padding: 13px 0; border-top: 1px solid var(--line); }
.pf-facts dt { font-weight: 700; font-size: 15.5px; line-height: 1.4; }
.pf-facts dd { margin: 3px 0 0; font-size: 15px; line-height: 1.55; color: var(--stone); }

/* moldura dos artefatos */
.pf-art { margin: 0; min-width: 0; }
.pf-win { background: var(--paper); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(12,12,18,.04), 0 18px 40px -30px rgba(12,12,18,.25); }
.pf-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFAFC; font: 500 12px/1.35 var(--mono); color: var(--ink); }
.pf-bar > span:first-child { min-width: 0; }
.pf-bar .sample { flex: none; white-space: nowrap; }
.pf-pad { padding: 16px 14px; }
.pf-foot { padding: 10px 14px; border-top: 1px solid var(--line); font: 400 11.5px/1.5 var(--mono); color: var(--stone); }
.pf-mini { margin-top: 6px; font: 400 11.5px/1.5 var(--mono); color: var(--stone); }
.pf-sub { padding: 0 0 6px; font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--stone); }
.pf-cap { margin-top: 10px; font: 400 12px/1.5 var(--mono); color: var(--stone); }
.pf-segs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.pf-segs + .pf-segs { margin-top: 5px; }
.pf-segs span { padding: 4px 9px; border: 1px solid var(--line2); border-radius: 5px; font: 500 11.5px/1.35 var(--mono); color: var(--stone); background: var(--paper); }
.pf-segs .on { background: var(--slate); border-color: var(--slate); color: #fff; }

/* Integração: drill-down */
.pf-crumb { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 12px; font: 500 11.5px/1.4 var(--mono); color: var(--slate); }
.pf-crumb span + span::before { content: "›"; margin: 0 7px; color: var(--stone); }
.pf-dl { min-width: 0; padding: 8px 6px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.pf-dl + .pf-dl { margin-top: 8px; }
.pf-dl .pf-sub { padding: 0 6px 6px; }
.pf-l2 { margin-left: 16px; }
.pf-l3 { margin-left: 32px; }
.pf-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; border-radius: 4px; font-size: 13px; line-height: 1.35; }
.pf-row span:first-child { min-width: 0; }
.pf-row span:last-child { flex: none; font: 400 12.5px/1.35 var(--mono); }
.pf-hit { background-color: rgba(63,79,151,.09); box-shadow: inset 2px 0 0 var(--slate); }
.pf-doc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; padding: 2px 8px 4px; }
.pf-doc div { min-width: 0; }
.pf-doc dt { font: 400 10.5px/1.4 var(--mono); color: var(--stone); }
.pf-doc dd { margin: 1px 0 0; font-size: 13px; font-weight: 600; line-height: 1.35; }

/* Acesso: escada de níveis */
.pf-lad { position: relative; list-style: none; margin: 0; padding: 18px 14px 12px 46px; display: flex; flex-direction: column-reverse; gap: 10px; }
.pf-lad li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; padding: 10px 12px; border: 1px solid rgba(63,79,151,.42); border-radius: 6px; background-color: rgba(63,79,151,.05); }
/* nó do nível e trecho do trilho até o nível de cima (a lista está invertida na tela) */
.pf-lad li::before { content: ""; position: absolute; z-index: 1; left: -25px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background-color: var(--slate); border: 2px solid var(--slate); box-shadow: 0 0 0 3px var(--paper); }
.pf-lad li::after { content: ""; position: absolute; left: -20px; bottom: 50%; width: 2px; height: calc(100% + 11px); background: var(--slate); transform-origin: 50% 100%; }
.pf-lad li:last-child::after { display: none; }
.pf-lv { grid-column: 1 / -1; font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.pf-lad b { font-size: 14.5px; font-weight: 700; }
.pf-do { font-size: 13px; color: var(--stone); text-align: right; }

/* Cenários: data de corte */
.pf-cut { position: relative; padding-top: 26px; }
.pf-cut-mk { position: absolute; left: calc(25% - 1.75px); top: 4px; bottom: -6px; width: 2px; background: var(--slate); z-index: 1; }
.pf-cut-mk em { position: absolute; left: 7px; top: -2px; font: normal 500 10.5px/1.2 var(--mono); color: var(--slate); white-space: nowrap; }
.pf-ms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.pf-ms li { min-width: 0; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding-bottom: 7px; border: 1px solid var(--line2); border-radius: 4px; background-color: var(--paper); font: 500 10.5px/1 var(--mono); color: var(--stone); }
.pf-ms svg { width: 11px; height: 11px; display: block; }
.pf-ms .pf-lock { border-color: rgba(63,79,151,.5); background-color: rgba(63,79,151,.1); color: var(--ink); }
.pf-ms .pf-lock svg { color: var(--slate); }
.pf-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font: 400 11.5px/1.4 var(--mono); color: var(--stone); }
.pf-leg span { display: inline-flex; align-items: center; gap: 6px; }
.pf-leg i { width: 11px; height: 11px; border-radius: 2px; border: 1px solid var(--line2); }
.pf-leg .k1 { border-color: rgba(63,79,151,.5); background: rgba(63,79,151,.1); }
.pf-sim { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pf-sim-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pf-chip { padding: 5px 10px; border: 1px dashed var(--line2); border-radius: 6px; font: 500 12px/1.3 var(--mono); color: var(--ink); background: var(--paper); }
.pf-chip-b { border: 1px solid var(--slate); }
.pf-arw { font: 400 13px var(--mono); color: var(--stone); }

/* Elaboração: base histórica + % */
.pf-hist { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.pf-hist th { padding: 0 8px 6px; border-bottom: 1px solid var(--line2); font: 400 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--stone); text-align: left; }
.pf-hist td { padding: 7px 8px; border-bottom: 1px solid var(--line); font: 400 12.5px/1.35 var(--mono); }
.pf-hist th:last-child, .pf-hist td:last-child { text-align: right; }
.pf-hist td span { margin-left: 6px; font-size: 10.5px; color: var(--slate); }
.pf-base td { background-color: rgba(63,79,151,.07); }
.pf-calc { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; padding: 12px; border: 1px solid var(--line2); border-radius: 6px; }
.pf-calc small { display: block; font: 400 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--stone); }
.pf-pct { font: 600 21px/1.2 var(--head); color: var(--slate); font-variant-numeric: tabular-nums; }
.pf-res { min-width: 0; text-align: right; }
.pf-res b { font: 700 22px/1.2 var(--head); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pf-delta { margin-top: 8px; font: 400 12px/1.5 var(--mono); color: var(--stone); }
.pf-delta b { font-weight: 500; color: var(--ink); }
.pf-note { margin-top: 14px; padding: 10px 12px; border-left: 2px solid var(--slate); background: var(--mist); font-size: 13.5px; line-height: 1.5; }
.pf-note .pf-sub { padding-bottom: 3px; }

/* Aprovação: fila do diretor */
.pf-ap { list-style: none; margin: 0; padding: 2px 14px; }
.pf-ap li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-cb { width: 16px; height: 16px; display: grid; place-items: center; border: 1.5px solid var(--slate); border-radius: 3px; background-color: var(--slate); color: #fff; }
.pf-cb svg { width: 11px; height: 11px; display: block; }
.pf-rej .pf-cb { background-color: var(--paper); border-color: var(--line2); }
.pf-rej .pf-cb svg { display: none; }
.pf-cc { min-width: 0; }
.pf-cc b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.pf-cc small { font-size: 12.5px; color: var(--stone); }
.pf-st { display: grid; justify-items: end; }
.pf-st > span { grid-area: 1 / 1; padding: 2px 7px; border: 1px solid rgba(63,79,151,.4); border-radius: 4px; font: 500 11px/1.4 var(--mono); color: var(--slate); white-space: nowrap; }
.pf-st .pf-st-b { border-color: var(--line2); color: var(--stone); opacity: 0; }
.pf-rej .pf-st-a { color: var(--pf-red); border-color: rgba(180,40,40,.45); }
.pf-lote { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px 0; }
.pf-btn { padding: 7px 12px; border: 1px solid var(--ink); border-radius: 6px; background-color: var(--ink); color: #fff; font: 600 13px/1.2 var(--sans); }
.pf-lote .pf-mini { margin-top: 0; }
.pf-why { margin: 12px 14px 0; padding: 10px 12px; border: 1px solid rgba(180,40,40,.35); border-radius: 6px; }
.pf-why .pf-sub { padding-bottom: 4px; color: var(--pf-red); }
.pf-field { font-size: 13.5px; line-height: 1.45; }
.pf-type { display: inline-block; }
.pf-mail { display: flex; gap: 10px; align-items: flex-start; margin: 12px 14px 14px; padding: 10px 12px; border-radius: 6px; background: var(--mist); font-size: 13px; line-height: 1.45; }
.pf-mail svg { width: 18px; height: 14px; flex: none; margin-top: 2px; color: var(--slate); }
.pf-mail b { display: block; font-weight: 600; }

/* Acompanhamento: comprometido e cobertura do desvio */
.pf-cm-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; font-size: 13.5px; }
.pf-cm-h b { font-weight: 600; }
.pf-cm-h span { font: 400 11.5px/1.4 var(--mono); color: var(--stone); }
.pf-stack { display: flex; height: 22px; margin-top: 10px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.pf-stack i, .pf-cov i { display: block; width: var(--w); height: 100%; transform-origin: 0 50%; }
.pf-stack .s1, .pf-cm-l .s1 { background: var(--slate); }
.pf-stack .s2, .pf-cm-l .s2 { background: repeating-linear-gradient(135deg, var(--dusk) 0 4px, #8E8BC0 4px 7px); }
.pf-cm-l { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.pf-cm-l li { display: flex; align-items: center; gap: 8px; }
.pf-cm-l li b { margin-left: auto; font: 500 12.5px var(--mono); }
.pf-cm-l i { flex: none; width: 10px; height: 10px; border-radius: 2px; }
.pf-cm-l .s3 { background: var(--mist); border: 1px solid var(--line2); }
.pf-ex { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pf-cov { display: flex; height: 22px; margin-top: 10px; }
.pf-cov .j { background: var(--slate); border-radius: 3px 0 0 3px; }
.pf-cov .p { border: 1.5px dashed var(--pf-red); border-left: 0; border-radius: 0 3px 3px 0; background: rgba(226,54,54,.07); }
.pf-cov-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.pf-cov-l div { min-width: 0; }
.pf-cov-l dt { font: 400 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--stone); }
.pf-cov-l dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-pend dd { color: var(--pf-red); }

/* Demonstrações: agrupamentos */
.pf-opt { padding: 2px 14px; }
.pf-o { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pf-o:last-child { border-bottom: 0; }
.pf-o-h { margin-bottom: 7px; font: 600 14.5px/1.3 var(--head); }
.pf-tags { margin-top: 7px; font: 400 11.5px/1.6 var(--mono); color: var(--ink); }
.pf-tgl { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font: 500 12.5px/1.3 var(--sans); }
.pf-tgl span { display: inline-flex; align-items: center; gap: 6px; }
.pf-tk { width: 13px; height: 13px; flex: none; display: grid; place-items: center; border-radius: 3px; border: 1.5px solid var(--slate); background-color: var(--slate); color: #fff; }
.pf-tk svg { width: 9px; height: 9px; display: block; }

/* ---- montagem: estado inicial (só com .live) ---- */
.pf.live .pf-pre .pf-a { opacity: 0; transform: translateY(6px); }
.pf.live .pf-pre .pf-hit { background-color: transparent; box-shadow: inset 0 0 0 var(--slate); }
.pf.live .pf-pre .pf-lad li::after { transform: scaleY(0); }
.pf.live .pf-pre .pf-lad li { border-color: var(--line); background-color: var(--paper); }
.pf.live .pf-pre .pf-lad li::before { background-color: var(--paper); border-color: var(--line2); }
.pf.live .pf-pre .pf-lv { color: var(--stone); }
.pf.live .pf-pre .pf-cut-mk { left: -1px; }
.pf.live .pf-pre .pf-ms .pf-lock { border-color: var(--line2); background-color: var(--paper); color: var(--stone); }
.pf.live .pf-pre .pf-ms .pf-lock svg { opacity: 0; transform: scale(.5); }
.pf.live .pf-pre .pf-segs .on { background-color: var(--paper); border-color: var(--line2); color: var(--stone); }
.pf.live .pf-pre .pf-base td { background-color: transparent; }
.pf.live .pf-pre .pf-cb { background-color: var(--paper); }
.pf.live .pf-pre .pf-cb svg { opacity: 0; transform: scale(.4); }
.pf.live .pf-pre .pf-st .pf-st-a { opacity: 0; }
.pf.live .pf-pre .pf-st .pf-st-b { opacity: 1; }
.pf.live .pf-pre .pf-btn { background-color: var(--paper); color: var(--ink); }
.pf.live .pf-pre .pf-type { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
.pf.live .pf-pre .pf-stack i, .pf.live .pf-pre .pf-cov .j { transform: scaleX(0); }
.pf.live .pf-pre .pf-cov .p { opacity: 0; }
.pf.live .pf-pre .pf-tk { background-color: var(--paper); }
.pf.live .pf-pre .pf-tk svg { opacity: 0; }
/* ---- montagem: transições (só durante .pf-go) ---- */
.pf-go .pf-a { transition: opacity .4s ease var(--t, 0ms), transform .55s var(--pf-out) var(--t, 0ms); }
.pf-go .pf-hit { transition: background-color .35s ease var(--t, 0ms), box-shadow .35s ease var(--t, 0ms); }
.pf-go .pf-lad li::after { transition: transform .28s var(--pf-io) calc(var(--t, 0ms) + 90ms); }
.pf-go .pf-lad li, .pf-go .pf-lad li::before { transition: border-color .35s ease var(--t, 0ms), background-color .35s ease var(--t, 0ms); }
.pf-go .pf-lv { transition: color .35s ease var(--t, 0ms); }
.pf-go .pf-cut-mk { transition: left 1.3s var(--pf-io) .25s; }
.pf-go .pf-ms .pf-lock { transition: border-color .3s ease var(--t, 0ms), background-color .3s ease var(--t, 0ms), color .3s ease var(--t, 0ms); }
.pf-go .pf-ms .pf-lock svg { transition: opacity .3s ease var(--t, 0ms), transform .45s var(--pf-out) var(--t, 0ms); }
.pf-go .pf-segs .on { transition: background-color .3s ease var(--t, 0ms), border-color .3s ease var(--t, 0ms), color .3s ease var(--t, 0ms); }
.pf-go .pf-base td { transition: background-color .4s ease var(--tb, 0ms); }
.pf-go .pf-cb { transition: background-color .25s ease var(--t, 0ms); }
.pf-go .pf-cb svg { transition: opacity .2s ease var(--t, 0ms), transform .35s var(--pf-out) var(--t, 0ms); }
.pf-go .pf-st > span { transition: opacity .3s ease var(--ts, 0ms); }
.pf-go .pf-btn { transition: background-color .25s ease var(--t, 0ms), color .25s ease var(--t, 0ms); }
.pf-go .pf-type { transition: -webkit-clip-path .95s steps(40, end) var(--t, 0ms), clip-path .95s steps(40, end) var(--t, 0ms); }
.pf-go .pf-stack i, .pf-go .pf-cov .j { transition: transform .7s var(--pf-out) var(--t, 0ms); }
.pf-go .pf-cov .p { transition: opacity .4s ease var(--t, 0ms); }
.pf-go .pf-tk { transition: background-color .25s ease var(--t, 0ms); }
.pf-go .pf-tk svg { transition: opacity .25s ease var(--t, 0ms); }

@media (max-width: 1100px) {
  .pf.live .pf-box { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pf.live .pf-tabs { display: flex; gap: 0; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line2); scrollbar-width: thin; }
  .pf-tab { flex: none; width: auto; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 10px 14px 11px; }
  .pf-tab[aria-selected="true"] { border-bottom-color: var(--slate); }
  .pf.live .pf-panels { min-height: 0; }
}
@media (max-width: 760px) {
  .pf-p { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pf-tab small { display: none; }
  .pf-tab b { font-size: 14.5px; }
}
@media (max-width: 480px) {
  .pf-lad { padding-left: 40px; }
  .pf-lad li::before { left: -24px; }
  .pf-lad li::after { left: -19px; }
  .pf-lad li { grid-template-columns: minmax(0, 1fr); }
  .pf-do { text-align: left; }
  .pf-l3 { margin-left: 24px; }
  .pf-l2 { margin-left: 12px; }
  .pf-doc { grid-template-columns: minmax(0, 1fr); }
  .pf-ms { gap: 2px; }
  .pf-ms li { font-size: 9px; height: 50px; }
  .pf-ms svg { width: 9px; height: 9px; }
  .pf-cov-l dd { font-size: 13px; }
}

/* ===== No radar: roadmap (rd-) =====
   Contorno tracejado = ainda em desenvolvimento; linha cheia = disponível hoje.
   Movimento único e quieto ao entrar na tela; sem JS ou com movimento reduzido, fica parado. */
.rd { --rd-out: cubic-bezier(.16,1,.3,1); --rd-io: cubic-bezier(.45,0,.2,1); --rd-dash: rgba(63,79,151,.42); }
.rd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.rd-item { min-width: 0; padding: 28px 28px 24px; border: 1px dashed var(--rd-dash); border-radius: 10px; background: var(--paper); }
.rd-tag { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.rd-item h3 { margin-top: 10px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -.02em; line-height: 1.2; }
.rd-item > p.rd-txt { margin-top: 12px; color: var(--stone); font-size: 16px; max-width: 38em; }
.rd-list { list-style: none; margin: 18px 0 0; padding: 0; }
.rd-list li { position: relative; padding: 10px 0 10px 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.rd-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; border-top: 1.5px solid var(--slate); }

/* esboço: premissa e conta que reage */
.rd-fig { margin: 22px 0 0; min-width: 0; }
.rd-map { padding: 12px 14px 8px; border: 1px dashed var(--rd-dash); border-radius: 8px; background: #FAFAFC; }
.rd-mh { display: grid; grid-template-columns: 104px minmax(24px, 1fr) minmax(0, 1.6fr); gap: 10px; padding-bottom: 6px; font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--stone); }
.rd-mh span:last-child { grid-column: 3; }
.rd-map ul { list-style: none; margin: 0; padding: 0; }
.rd-map li { display: grid; grid-template-columns: 104px minmax(24px, 1fr) minmax(0, 1.6fr); align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.rd-p { justify-self: start; max-width: 100%; padding: 4px 9px; border: 1px dashed var(--rd-dash); border-radius: 5px; font: 500 12px/1.3 var(--mono); color: var(--ink); background: var(--paper); }
.rd-ln { position: relative; display: block; height: 1px; border-top: 1.5px dashed var(--stone); transform-origin: 0 50%; }
.rd-ln::after { content: ""; position: absolute; right: -1px; top: -5px; border-left: 6px solid var(--stone); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.rd-c { min-width: 0; font-size: 14px; line-height: 1.35; color: var(--ink); }
.rd-fig figcaption { margin-top: 8px; font: 400 11.5px/1.5 var(--mono); color: var(--stone); }

/* agentes */
.rd-ag { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.rd-ag li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px dashed var(--rd-dash); border-radius: 8px; background-color: var(--paper); }
.rd-ic { width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px dashed var(--rd-dash); border-radius: 50%; color: #fff; }
.rd-ic svg { width: 13px; height: 13px; display: block; }
.rd-an { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.rd-st { font: 500 11px/1.4 var(--mono); color: var(--stone); white-space: nowrap; }
.rd-ad { margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--stone); }
.rd-ad a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line2); }
.rd-ad a:hover { text-decoration-color: var(--ink); }
.rd-ag .rd-on { border: 1px solid var(--slate); background-color: rgba(63,79,151,.06); }
.rd-on .rd-ic { border: 1.5px solid var(--slate); background-color: var(--slate); }
.rd-on .rd-ic path { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.rd-on .rd-st { color: var(--slate); }

/* ---- estado inicial (só com .live) ---- */
.rd.live .rd-pre .rd-a { opacity: 0; transform: translateY(6px); }
.rd.live .rd-pre .rd-ln { transform: scaleX(0); }
.rd.live .rd-pre .rd-ag .rd-on { background-color: var(--paper); }
.rd.live .rd-pre .rd-on .rd-ic { background-color: var(--paper); }
.rd.live .rd-pre .rd-on .rd-ic path { stroke-dashoffset: 1; }
/* ---- transições (só durante .rd-go) ---- */
.rd-go .rd-a { transition: opacity .5s ease var(--t, 0ms), transform .6s var(--rd-out) var(--t, 0ms); }
.rd-go .rd-ln { transition: transform .7s var(--rd-io) var(--t, 0ms); }
.rd-go .rd-ag .rd-on { transition: background-color .6s ease var(--t, 0ms); }
.rd-go .rd-on .rd-ic { transition: background-color .4s ease var(--t, 0ms); }
.rd-go .rd-on .rd-ic path { transition: stroke-dashoffset .45s var(--rd-io) calc(var(--t, 0ms) + 250ms); }

@media (max-width: 900px) {
  .rd-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 520px) {
  .rd-item { padding: 22px 16px 18px; }
  .rd-mh, .rd-map li { grid-template-columns: 88px minmax(18px, .6fr) minmax(0, 1.4fr); gap: 8px; }
  .rd-p { font-size: 11px; padding: 3px 7px; }
  .rd-c { font-size: 13px; }
}

/* ============================================================
   v7 · componentes do site com 4 soluções
   ============================================================ */

/* ---------- menu Soluções ---------- */
.nav-links { align-items: center; }
.sol { position: relative; }
.sol-btn { display: inline-flex; align-items: center; gap: 6px; font: 500 15px var(--sans); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.sol-btn svg { width: 10px; height: 10px; transition: transform .2s ease; }
.sol-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sol-btn:hover, .sol-btn.is-cur { color: var(--slate); }
.sol-menu { position: absolute; top: calc(100% + 18px); left: -18px; z-index: 30; width: 380px; padding: 8px; background: var(--paper); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 24px 48px -24px rgba(12,12,18,.28); }
.sol-menu[hidden] { display: none; }
.sol-menu a { display: grid; gap: 2px; padding: 11px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sol-menu a:hover, .sol-menu a:focus-visible { background: var(--mist); }
.sol-menu a b { font-family: var(--head); font-weight: 600; font-size: 15px; }
.sol-menu a span { font-size: 13.5px; color: var(--stone); }
.sol-menu a b, .sol-menu a span { white-space: normal; }
.sol-menu a[aria-current="page"] b::after { content: " · você está aqui"; font: 400 11px var(--mono); color: var(--slate); }
.nav-links a[aria-current="page"] { color: var(--slate); }
@media (max-width: 900px) {
  .sol-menu { position: fixed; left: 12px; right: 12px; top: 112px; width: auto; }
}

/* ---------- topo das páginas de solução ---------- */
.ph { position: relative; background-color: var(--mist);
  background-image: linear-gradient(rgba(63,79,151,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(63,79,151,.11) 1px, transparent 1px),
                    linear-gradient(rgba(63,79,151,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(63,79,151,.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; border-bottom: 1px solid var(--ink); }
.ph-in { padding: 40px 24px 88px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font: 400 12.5px var(--mono); color: var(--stone); margin-bottom: 44px; }
.crumb a { color: var(--stone); text-decoration: none; }
.crumb a:hover { color: var(--slate); text-decoration: underline; }
.crumb b { font-weight: 500; color: var(--ink); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ph h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -0.035em; margin-top: 12px; }
.ph-sub { margin-top: 20px; font-size: 18px; color: var(--stone); max-width: 34em; }
.ph-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ph-tour { min-width: 0; }
@media (max-width: 980px) { .ph-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .ph-in { padding-bottom: 64px; } }

/* ---------- blocos de capacidade (texto + artefato) ---------- */
.cap-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.cap-rev .cap-copy { order: 2; }
.cap-rev .cap-art { order: 1; }
.cap-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.12; margin-top: 10px; }
.cap-copy > p { margin-top: 16px; color: var(--stone); }
.cap-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.cap-list li { position: relative; padding-left: 22px; color: var(--stone); font-size: 16px; }
.cap-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--slate); }
.cap-list li b { color: var(--ink); font-weight: 600; }
.cap-art { min-width: 0; }
@media (max-width: 980px) { .cap-in { grid-template-columns: minmax(0, 1fr); gap: 36px; } .cap-rev .cap-copy, .cap-rev .cap-art { order: initial; } }

/* ---------- as 4 soluções (home) ---------- */
.sols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sol-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; background: var(--paper); border: 1px solid var(--line2); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.sol-card:hover, .sol-card:focus-visible { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(12,12,18,.35); }
.sol-card h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.2; margin-top: 16px; }
.sol-card p { margin-top: 8px; font-size: 14.5px; color: var(--stone); }
.sol-card ul { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: 13.5px; color: var(--ink); }
.sol-card ul li::before { content: "· "; color: var(--slate); font-weight: 700; }
.sol-card .go { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.sol-card .go::after { content: " \2192"; display: inline-block; transition: transform .2s ease; }
.sol-card:hover .go::after { transform: translateX(4px); }
.sol-mini { height: 92px; border-radius: 8px; background: var(--mist); border: 1px solid var(--line); overflow: hidden; position: relative; }
@media (max-width: 1100px) { .sols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- links cruzados entre soluções ---------- */
.xs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.xs-card { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--line2); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .2s ease; }
.xs-card:hover, .xs-card:focus-visible { border-color: var(--ink); }
.xs-card b { font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.xs-card span { color: var(--stone); font-size: 14.5px; }
.xs-card i { font-style: normal; font-weight: 600; font-size: 14.5px; margin-top: 8px; }
@media (max-width: 860px) { .xs-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
            position: fixed;
            right: 1.5rem;
            bottom: 1.5rem;
            z-index: 990;
            display: inline-flex;
            align-items: center;
            gap: 0.15rem;
            height: 56px;
            padding: 0 1.35rem 0 0;
            border-radius: 28px;
            background: #25D366;
            color: #FFFFFF;
            box-shadow: 0 6px 24px rgba(37,211,102,0.35);
            text-decoration: none;
            font-family: 'Manrope', sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            line-height: 1;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .wa-float:hover,
        .wa-float:focus-visible {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(37,211,102,0.45);
            color: #FFFFFF;
        }
        .wa-float:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
        .wa-float-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: none;
            width: 56px;
            height: 56px;
        }
        .wa-float-icon svg { width: 28px; height: 28px; display: block; }
        .wa-float-label { white-space: nowrap; }
        @media (max-width: 768px) {
            .wa-float { right: 1rem; bottom: 1rem; padding: 0; border-radius: 50%; }
            .wa-float-label { display: none; }
        }
        @media (prefers-reduced-motion: reduce) {
            .wa-float { transition: none; }
            .wa-float:hover, .wa-float:focus-visible { transform: none; }
        }
        @media print { .wa-float { display: none; } }

/* ============================================================
   v7 · ajustes para celular
   ============================================================ */
/* menu: no celular cabem três itens; "Contato" fica no botão Agendar demonstração */
@media (max-width: 600px) {
  .nl-long, .nl-ct { display: none; }
  .nav-links { gap: 20px; }
}
/* área de toque maior em botões e links de texto, sem mudar o desenho */
@media (max-width: 900px) {
  .ag-ctl button, .stu-ctl button, .rp-again, .pl-again, .crumb a, .cta .actions a.plain {
    display: inline-block; padding-top: 11px; padding-bottom: 11px; margin-top: -11px; margin-bottom: -11px;
  }
  .crumb { row-gap: 12px; }
  .cs-vb { min-height: 36px; }
  .rf-pause { min-height: 32px; }
}
/* rótulos de tabela e de indicador: no mínimo 11px no celular */
@media (max-width: 600px) {
  :root main table th { font-size: 11px; }
  :root main .vz-k { font-size: 11px; }
}

/* ============================================================
   v7 · mês: o cabeçalho "Sete dias de um mês comum" fica fixo junto com os dias
   ============================================================ */
.month.mo-live .mo-head { flex: none; width: 100%; padding-top: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.month.mo-live .mo-head .wrap-in { max-width: none; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: end; }
.month.mo-live .mo-head .eyebrow { grid-column: 1; margin-bottom: 8px; }
.month.mo-live .mo-head h2 { grid-column: 1; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.month.mo-live .mo-head p.lead { grid-column: 2; grid-row: 1 / 3; margin: 0; max-width: 46em; font-size: 15px; line-height: 1.5; }
.month.mo-live .mo-run.live { --mo-pt: clamp(10px, 2.5vh, 32px); }
@media (max-height: 820px) {
  .month.mo-live .mo-head { padding-top: 16px; padding-bottom: 12px; }
  .month.mo-live .mo-head p.lead { display: none; }
  .month.mo-live .mo-head .wrap-in { grid-template-columns: minmax(0, 1fr); }
  .month.mo-live .mo-head .eyebrow { margin-bottom: 4px; }
}
.month.mo-live .mo-run.live .mo-stick { flex-direction: column; align-items: stretch; }
.month.mo-live .mo-run.live .mo-grid { flex: 1 1 auto; min-height: 0; height: auto; }
.mo-run.live .mo-side .d { height: clamp(22px, calc((100vh - 470px - var(--mo-hh, 0px)) / 7), 38px); }
.mo-run.live .chart svg { height: clamp(130px, calc(100vh - 480px - var(--mo-hh, 0px)), 300px); }

/* ============================================================
   v7 · rolagem: sem compensação automática do navegador
   As animações trocam conteúdo de lugar; com a compensação ligada,
   o navegador "corrige" a posição e a página puxa o leitor de volta.
   ============================================================ */
html, body { overflow-anchor: none; }

/* ============================================================
   v7 · menu "Outros produtos" (Conecta+ e OptiFlow)
   ============================================================ */
.sol-menu-r { left: auto; right: -18px; width: 360px; }
.sol-note { margin: 6px 12px 4px; font: 400 11.5px/1.4 var(--mono); color: var(--stone); white-space: normal; }
.sol-extra { display: none; margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .nl-op { display: none; }
  .sol-extra { display: block; }
}
@media (max-width: 900px) { .sol-menu-r { left: 12px; right: 12px; width: auto; } }
.foot-op { padding-left: 24px; border-left: 1px solid var(--line2); }
@media (max-width: 700px) { .foot-op { padding-left: 0; border-left: 0; } }
@media (max-width: 360px) {
  .nav .logo img { width: 100px; height: auto; }
  .nav-in { column-gap: 10px; }
  .nav .btn-sm { font-size: 12px; padding: 7px 8px; letter-spacing: -0.01em; }
}

/* ---------- v7 · contato com formulário (mesmos campos do site atual, envio pelo Web3Forms) ---------- */
.cta-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.cta-in h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.cta-in .cta-alt { margin-top: 32px; color: #fff; font-weight: 600; font-size: 15px; }
.cta-in .actions { margin-top: 10px; flex-direction: column; align-items: flex-start; gap: 8px; }
.ct-form { background: var(--paper); color: var(--ink); border-radius: var(--r-art); padding: 28px; }
.ct-form :focus-visible { outline-color: var(--slate); }
.ct-t { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 18px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ct-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-f.full { grid-column: 1 / -1; }
.ct-f label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ct-f label span { font-weight: 400; color: var(--stone); }
.ct-f input, .ct-f select, .ct-f textarea { width: 100%; min-height: 46px; font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line2); border-radius: 6px; padding: 11px 12px; transition: border-color .15s ease; }
.ct-f select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%2356545F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 11px; }
.ct-f select:invalid { color: var(--stone2); }
.ct-f select option { color: var(--ink); }
.ct-f textarea { resize: vertical; min-height: 104px; }
.ct-f input:hover, .ct-f select:hover, .ct-f textarea:hover { border-color: rgba(63,79,151,.4); }
.ct-f input:focus, .ct-f select:focus, .ct-f textarea:focus { border-color: var(--slate); outline: none; box-shadow: 0 0 0 3px rgba(63,79,151,.16); }
.ct-f [aria-invalid="true"] { border-color: var(--neg); }
.ct-e { font-size: 12.5px; line-height: 1.3; color: #C42525; }
.ct-e:empty { display: none; }
.ct-foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ct-foot .btn { min-width: 160px; }
.ct-foot .btn:disabled { opacity: .6; cursor: progress; }
.cta .ct-form .ct-st { margin: 0; font-size: 14px; color: var(--stone); max-width: none; }
.cta .ct-form .ct-st.is-err { color: #C42525; }
.ct-ok { padding: 8px 0 4px; }
.ct-ok b { display: block; font-family: var(--head); font-weight: 600; font-size: 18px; }
.cta .ct-form .ct-ok p { margin-top: 6px; color: var(--stone); }
.ct-ok:focus { outline: none; }
.ct-form.is-sent .ct-grid, .ct-form.is-sent .ct-foot { display: none; }
@media (max-width: 900px) {
  .cta-in { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-form { padding: 20px 16px; }
  .ct-foot .btn { width: 100%; }
}
