/* Site comercial da Trilha — versão com cena 3D, demonstração da Clara e efeitos de movimento.
   Mesma identidade de metodica.net (Manrope + IBM Plex Mono, azul-noite, âmbar das decisões). */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("/fontes/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/fontes/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/fontes/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/fontes/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("/fontes/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/fontes/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fontes/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #f3f5f9; --surface: #fff; --sunken: #e8edf5; --ink: #17202e; --ink-2: #4a5568; --ink-3: #7a8494; --line: #d8dee8;
  --navy: #0f3877; --deep: #071731; --blue: #1f5fd1; --sky: #8fb4ff; --amber: #d68a1a; --amber-2: #f0b45a; --amber-soft: #fbefdb; --amber-txt: #9a5b06;
  --green: #1d8a5b; --green-soft: #e3f3ea; --red: #e5484d; --red-soft: #fde8e8; --blue-soft: #e2ebfb;
  --f: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow: 0 1px 2px rgba(15,56,119,.06), 0 10px 32px rgba(15,56,119,.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--surface); color: var(--ink); font-family: var(--f); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--f); color: var(--navy); margin: 0; text-wrap: balance; letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 80; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-txt); font-weight: 500; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.sec { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.sec-paper { background: var(--bg); }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 800px; margin-bottom: clamp(32px, 5vw, 56px); }
.note { margin-top: 12px; font-size: .9rem; color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font: 700 1rem var(--f); padding: .85em 1.35em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, border-color .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55em 1.05em; font-size: .92rem; }
.btn-amber { background: var(--amber); color: #1b1306; box-shadow: 0 8px 24px -8px rgba(214,138,26,.7); }
.btn-amber:hover { background: #e39a2c; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.btn-ghost:hover { border-color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-line { color: var(--navy); border-color: var(--line); background: var(--surface); }
.btn-line:hover { border-color: var(--blue); }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Cabeçalho */
header.top { position: fixed; left: 0; right: 0; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); }
header.top.solid { background: rgba(7,23,49,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(255,255,255,.08); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 2px; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font: 600 .93rem var(--f); padding: .5em .75em; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-only-m { display: none; }
.top-acts { display: flex; align-items: center; gap: 12px; }
.link-enter { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.lang-sw { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 2px; gap: 2px; }
.lang-sw a { font: 500 .76rem/1 var(--mono); letter-spacing: .04em; padding: 7px 8px; color: rgba(255,255,255,.7); text-decoration: none; border-radius: 6px; }
.lang-sw a[aria-current="true"] { background: #fff; color: var(--deep); }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 10px; padding: .45em .8em; font: 700 .9rem var(--f); cursor: pointer; }
@media (max-width: 1020px) {
  .nav { display: none; position: absolute; top: calc(70px + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; background: var(--deep); padding: 10px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav-only-m { display: block; }
  .menu-btn { display: block; }
  .link-enter { display: none; }
}
@media (max-width: 520px) { .top-acts .btn-sm { display: none; } }

/* Escolha de idioma (primeira visita) */
.lang-pick { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(7,23,49,.7); backdrop-filter: blur(4px); }
.lang-box { width: min(460px, 100%); background: #fff; border-radius: 18px; padding: 30px 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); text-align: center; }
.lang-box img { height: 30px; width: auto; margin: 0 auto; }
.lang-box h2 { margin-top: 20px; font-size: 1.375rem; }
.lang-box p { margin-top: 6px; color: var(--ink-2); font-size: .97rem; }
.lang-opts { margin-top: 22px; display: grid; gap: 10px; }
.lang-opts a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); font-weight: 700; }
.lang-opts a:hover, .lang-opts a:focus-visible { border-color: var(--blue); background: var(--blue-soft); }
.lang-opts small { font: 500 .75rem var(--mono); color: var(--ink-3); }

/* Abertura 3D */
.hero { position: relative; min-height: min(900px, 100svh); background: radial-gradient(120% 90% at 75% 40%, #123a7c 0%, #0a2350 38%, #071731 72%); color: #fff; overflow: hidden; display: flex; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 120px) 0 90px; cursor: grab; }
.hero.grabbing { cursor: grabbing; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.spot { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(143,180,255,.14), transparent 60%); }
.hero-in { position: relative; z-index: 2; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.hero-copy { max-width: 650px; display: flex; flex-direction: column; gap: 24px; }
.hero .eyebrow { color: var(--amber-2); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; }
.hero h1 em { font-style: normal; }
.hero h1 em .w, .hero h1 em:not(:has(.w)) { background: linear-gradient(90deg, #8fb4ff, #fff 45%, #f0b45a, #8fb4ff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.hero h1 .w { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 em .w { animation: rise .9s cubic-bezier(.2,.8,.2,1) both, shine 6s linear infinite; }
@keyframes rise { from { transform: translateY(45%); opacity: 0; filter: blur(8px); } }
@keyframes shine { to { background-position: -200% 0; } }
.hero .lead { color: rgba(255,255,255,.86); text-shadow: 0 1px 12px rgba(7,23,49,.9); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: .9rem; color: rgba(255,255,255,.6); }
.hud { width: 300px; max-width: 100%; background: rgba(7,23,49,.55); border: 1px solid rgba(143,180,255,.25); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 10px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.hud-row { display: flex; gap: 10px; align-items: center; }
.hud-row img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--amber-2); object-fit: cover; }
.hud-row b { display: block; font-size: .95rem; }
.hud-row span { display: block; font: 500 .74rem var(--mono); color: var(--sky); letter-spacing: .03em; }
.hud-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8fb4ff, #f0b45a); transition: width .3s; }
.hud-n { font: 500 .74rem var(--mono); color: rgba(255,255,255,.6); }
.drag-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); white-space: nowrap; }
@media (max-width: 900px) { .hero { min-height: auto; padding-top: calc(env(safe-area-inset-top, 0px) + 110px); padding-bottom: 100px; } }

/* Faixa corrida */
.marquee { background: var(--deep); color: #fff; overflow: hidden; border-block: 1px solid rgba(255,255,255,.08); padding-block: 18px; }
.marquee .track { display: flex; width: max-content; animation: mq 36s linear infinite; font: 800 clamp(1.25rem, 2.6vw, 1.9rem) var(--f); letter-spacing: -.02em; white-space: nowrap; }
.marquee .track span { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee .track span::after { content: ""; width: 12px; height: 12px; background: var(--amber); border-radius: 3px; transform: rotate(45deg); }
.marquee .o { color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.65); }
@keyframes mq { to { transform: translateX(-50%); } }

/* Resumo */
.proof { padding-block: 40px; border-bottom: 1px solid var(--line); }
.proof-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.proof-grid dt { font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -.02em; }
.proof-grid dd { margin: 4px 0 0; color: var(--ink-2); font-size: .94rem; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr 1fr; } }

/* Custo da bagunça */
.chaos { background: var(--bg); }
.chaos-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(22px, 3vw, 36px); align-items: stretch; }
@media (max-width: 960px) { .chaos-grid { grid-template-columns: 1fr; } }
.chaos-stage { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chaos-labels { display: flex; justify-content: space-between; gap: 10px; font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.chaos-labels b { color: var(--green); font-weight: 500; }
#chaos { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 14px; background: linear-gradient(180deg, #fbfcfe, #f1f4f9); }
.chaos-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chaos-meter div { background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.chaos-meter small { display: block; font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.chaos-meter b { font-size: .98rem; color: var(--red); transition: color .3s; }
.chaos-meter b.good { color: var(--green); }
.chaos-ctrl { display: flex; align-items: center; gap: 12px; font: 500 .76rem var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.chaos-ctrl input { flex: 1; accent-color: var(--green); }
.loss { background: var(--deep); color: #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.loss::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -120px; border-radius: 50%; background: rgba(229,72,77,.35); filter: blur(70px); pointer-events: none; }
.loss h3 { color: #fff; font-size: 1.35rem; }
.loss-sub { color: rgba(255,255,255,.72); font-size: .95rem; }
.loss label { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.88); }
.loss output { font: 500 .95rem var(--mono); color: var(--amber-2); }
.loss input { grid-column: 1 / -1; accent-color: var(--amber); width: 100%; }
.loss-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.loss-out div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 14px; }
.loss-out small { display: block; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.loss-out b { font: 800 clamp(1.3rem, 2.4vw, 1.75rem) var(--f); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.loss-out b.hot { color: #ff8a80; }
.loss-note { font-size: .78rem; color: rgba(255,255,255,.5); }
.costs { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .costs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .costs { grid-template-columns: 1fr; } }
.costs li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s, box-shadow .25s; }
.costs li:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.costs span:not(.ic) { color: var(--ink-2); font-size: .93rem; }
.ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-r { background: var(--red-soft); color: var(--red); } .ic-a { background: var(--amber-soft); color: var(--amber-txt); }
.ic-b { background: var(--blue-soft); color: var(--blue); } .ic-g { background: #fde8e8; color: #b42318; }

/* Clara e os agentes */
.clara-sec { background: radial-gradient(90% 70% at 20% 30%, #123a7c 0%, #0a2350 40%, #071731 75%); color: #fff; overflow: hidden; }
.clara-sec h2 { color: #fff; }
.clara-sec .eyebrow { color: var(--amber-2); }
.clara-sec .lead { color: rgba(255,255,255,.78); }
.clara-sec .wrap { position: relative; z-index: 2; }
.ai-grid { margin-top: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .25s, transform .25s; }
.ai-item:hover { border-color: rgba(143,180,255,.6); transform: translateY(-4px); }
.ai-item b { font-size: 1rem; }
.ai-item span { color: rgba(255,255,255,.7); font-size: .9rem; }
.check { margin-top: 20px; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: rgba(255,255,255,.72); }
.check span { color: #4cc491; font-weight: 800; }

/* Tempo */
.race { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.race-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; }
.race-name { font-weight: 700; color: var(--navy); }
.race-name small { display: block; font-weight: 500; color: var(--ink-3); font-size: .82rem; }
.race-track { position: relative; height: 46px; background: var(--bg); border-radius: 10px; display: flex; align-items: center; }
.race-bar { height: 100%; border-radius: 10px; width: 0; transition: width 3.2s cubic-bezier(.3,.1,.3,1); display: flex; align-items: center; justify-content: flex-end; padding-right: 14px; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; }
.bar-old { background: repeating-linear-gradient(-45deg, #c0453a, #c0453a 10px, #d0544a 10px, #d0544a 20px); }
.bar-new { background: linear-gradient(90deg, var(--green), #34b27b); transition-duration: .5s; transition-delay: .2s; padding: 0; }
.race.go .bar-old { width: 100%; } .race.go .bar-new { width: 5%; }
.race-new-lbl { margin-left: 12px; font-weight: 800; color: var(--green); }
.race-scale { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
.race-scale div { display: flex; justify-content: space-between; font: 500 .72rem var(--mono); color: var(--ink-3); }
.race-save { justify-self: end; font-size: 1rem; color: var(--ink-2); }
.race-save b { font: 800 2rem var(--f); color: var(--green); letter-spacing: -.03em; margin-right: 6px; }
@media (max-width: 640px) { .race-row, .race-scale { grid-template-columns: 1fr; gap: 6px; } .race-scale span:first-child { display: none; } }
.cmp-wrap { margin-top: 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.cmp th, .cmp td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--bg); font-size: .82rem; color: var(--ink-2); font-weight: 700; }
.cmp td:nth-child(2) { color: #b42318; font-weight: 700; white-space: nowrap; }
.cmp td:nth-child(3) { color: var(--green); font-weight: 700; }
.cmp td small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.cmp tfoot td { font-weight: 800; border-bottom: 0; background: var(--bg); }
.calc { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-in { padding: 26px; display: grid; gap: 14px; background: var(--surface); }
.calc-in label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--navy); }
.calc-in small { font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.calc-in input { font: 600 1rem var(--f); padding: .65em .8em; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.calc-out { background: linear-gradient(140deg, #0f3877, #071731); color: #fff; padding: 26px; display: grid; gap: 14px; align-content: center; }
.calc-out .big b { display: block; font: 800 clamp(1.6rem, 3vw, 2.2rem) var(--f); letter-spacing: -.02em; }
.calc-out .big b.amb { color: var(--amber-2); }
.calc-out .big span { color: rgba(255,255,255,.7); font-size: .92rem; }
.calc-note { font-size: .8rem; color: rgba(255,255,255,.5); }

/* Organização */
.org-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
@media (max-width: 900px) { .org-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .org-grid { grid-template-columns: 1fr; } }
.tilt { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s; will-change: transform; position: relative; overflow: hidden; }
.tilt::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 0%), rgba(143,180,255,.18), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tilt:hover { box-shadow: 0 24px 50px -20px rgba(15,56,119,.35); }
.tilt:hover::after { opacity: 1; }
.tilt .num { font: 500 .8rem var(--mono); color: var(--amber-txt); transform: translateZ(30px); }
.tilt h3 { transform: translateZ(24px); }
.tilt p { color: var(--ink-2); font-size: .95rem; transform: translateZ(12px); }
.for { margin-top: 40px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .for { grid-template-columns: 1fr; } }
.for-lbl { font: 500 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 14px; }
.for-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .for-cards { grid-template-columns: 1fr; } }
.for-cards li { border-left: 3px solid var(--blue); padding: 10px 14px; background: var(--surface); border-radius: 0 12px 12px 0; font-size: .93rem; color: var(--ink-2); }
.for-cards li b { color: var(--navy); }
.iso { margin-top: 40px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 34px); }
@media (max-width: 700px) { .iso { grid-template-columns: 1fr; } }
.iso-seal { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #1f5fd1, #0f3877); color: #fff; display: grid; place-items: center; text-align: center; position: relative; animation: float 6s ease-in-out infinite; box-shadow: 0 20px 40px -16px rgba(15,56,119,.6); }
.iso-seal svg { width: 64px; height: 64px; margin-bottom: -26px; }
.iso-seal b { font-size: .95rem; margin-top: 46px; }
@keyframes float { 50% { transform: translateY(-8px) rotate(3deg); } }
.iso-body { display: grid; gap: 10px; }
.iso-body > p:not(.eyebrow):not(.iso-note) { color: var(--ink-2); }
.iso-list { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; font-size: .9rem; }
@media (max-width: 760px) { .iso-list { grid-template-columns: 1fr 1fr; } }
.iso-list li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.iso-note { font-size: .8rem; color: var(--ink-3); }

/* Aprovação */
.flow-wrap { overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.flow { width: 100%; min-width: 640px; height: auto; display: block; }
.flow text { font: 700 15px var(--f); fill: var(--navy); text-anchor: middle; }
.flow text.sub { font: 500 11px var(--mono); fill: var(--ink-3); }
.flow text.act { font: 600 12px var(--f); fill: var(--ink-3); }
.flow text.lbl { font: 700 12px var(--f); fill: var(--amber-txt); }
.flow .c { fill: none; stroke: #8a97b0; stroke-width: 2; }
.flow .c.dash { stroke-dasharray: 6 6; animation: run 1.2s linear infinite reverse; }
.flow .trace { fill: none; stroke: none; }
.flow .token { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(214,138,26,.8)); }
.rules { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }
.rules div { padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.rules p { color: var(--ink-2); font-size: .94rem; margin-top: 6px; }

/* Telas */
.sec-dark { background: var(--deep); color: #fff; }
.sec-dark h2 { color: #fff; } .sec-dark .eyebrow { color: var(--amber-2); } .sec-dark .lead { color: rgba(255,255,255,.75); }
.shots { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 22px; perspective: 1600px; }
.shot { margin: 0; }
.shot-main { grid-row: span 2; }
.shot img { border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.1); transition: transform .5s cubic-bezier(.2,.8,.2,1); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
.shot-main img { --ry: 8deg; } .shot:not(.shot-main) img { --ry: -8deg; }
.shot:hover img { transform: rotateY(0) rotateX(0) scale(1.02); }
.shot figcaption { margin-top: 10px; font-size: .88rem; color: rgba(255,255,255,.6); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } .shot-main { grid-row: auto; } .shot img { --ry: 0deg !important; } }

/* Como funciona e recursos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 22px; height: 2px; background: linear-gradient(90deg, var(--green), var(--blue), var(--amber), var(--navy)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 1.6s cubic-bezier(.3,.1,.3,1); z-index: 0; }
.steps.go::before { --p: 1; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.step .shape { width: 80px; height: 44px; background: var(--surface); }
.step .shape text { font: 800 16px var(--f); fill: var(--navy); text-anchor: middle; }
.step p { color: var(--ink-2); font-size: .94rem; }
.feats-h { margin-top: clamp(48px, 7vw, 80px); font-size: 1.5rem; }
.feats-h span { display: block; font-size: 1rem; font-weight: 500; color: var(--ink-2); margin-top: 6px; letter-spacing: 0; }
.feats { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 760px) { .feats { grid-template-columns: 1fr; } }
.feats div { border-top: 1px solid var(--line); padding: 16px 0; }
.feats dt { font-weight: 700; color: var(--navy); }
.feats dd { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }

/* Planos (o HTML dos planos vem do servidor) */
.plans-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.plans-head .sec-head { margin-bottom: 28px; }
.period { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.period button { border: 0; background: none; font: 700 .92rem var(--f); color: var(--ink-2); padding: .55em 1.1em; border-radius: 999px; cursor: pointer; }
.period button span { font-size: .75rem; color: var(--amber-txt); margin-left: 4px; }
.period button.on { background: var(--navy); color: #fff; }
.period button.on span { color: var(--amber-2); }
.plans-coupon { margin: 0 0 20px; padding: 12px 16px; border-radius: 14px; background: #fff4dd; border: 1px solid #f0c36b; color: var(--navy); font-size: .95rem; }
.plans { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px 30px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15,56,119,.4); }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.plan-rec { background: linear-gradient(160deg, #0f3877, #071731); color: #fff; border-color: transparent; }
.plan-rec::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ang), transparent 0 60%, #f0b45a 78%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; pointer-events: none; }
@keyframes spin { to { --ang: 360deg; } }
.plan-rec h3, .plan-rec .plan-price .v { color: #fff; }
.plan-flag { position: absolute; top: 16px; right: 18px; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; background: var(--amber); color: #1b1306; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; }
.plan-pitch { margin-top: 6px; color: var(--ink-2); font-size: .95rem; min-height: 3.1em; }
.plan-rec .plan-pitch, .plan-rec .plan-price .per, .plan-rec .plan-setup { color: rgba(255,255,255,.72); }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price .v { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--navy); line-height: 1; }
.plan-price .per { color: var(--ink-2); font-weight: 600; }
.plan-note { min-height: 1.6em; margin-top: 6px; font-size: .88rem; color: var(--amber-txt); font-weight: 600; }
.plan-rec .plan-note { color: var(--amber-2); }
.plan-lim { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 8px; }
.plan-lim li { padding-left: 24px; position: relative; font-size: .95rem; }
.plan-lim li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.plan-rec .plan-lim li::before { background: var(--amber-2); }
.plan-setup { margin: -6px 0 22px; font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.plan-setup b { color: inherit; font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan-rec .btn-primary { background: var(--amber); color: #1b1306; }
.plans-foot, .plans-empty { margin-top: 18px; color: var(--ink-2); font-size: .95rem; }

/* Perguntas */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); animation: logIn .3s ease; }

/* Contato e rodapé */
.contact { position: relative; background: linear-gradient(135deg, #0f3877, #071731 70%); color: #fff; padding-block: clamp(56px, 8vw, 96px); overflow: hidden; }
.contact-in { position: relative; z-index: 2; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 640px) { .contact-in { grid-template-columns: 1fr; } }
.contact-clara img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--amber-2); object-fit: cover; animation: float 6s ease-in-out infinite; }
.contact h2 { color: #fff; max-width: 22ch; }
.contact p { color: rgba(255,255,255,.78); margin-top: 12px; max-width: 60ch; }
.contact-acts { margin-top: 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.contact-mail { color: #fff; font-weight: 700; font-size: 1.05rem; }
.foot { background: #050f22; color: rgba(255,255,255,.6); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .88rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: rgba(255,255,255,.8); text-decoration: none; }
.foot a:hover { color: #fff; }

/* Efeitos de entrada e barra de progresso */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #8fb4ff, #f0b45a); z-index: 61; pointer-events: none; }
.rv { transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.rv.pre { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv.pre { opacity: 1; transform: none; }
}
.tilt.rv:not(.pre) { transition: transform .2s ease-out, box-shadow .3s, opacity .8s; }
@media (max-width: 900px) { #gl { opacity: .3; } .hero .lead { text-shadow: 0 1px 14px #071731, 0 0 2px #071731; } }

/* ---------- Estúdio: fala/digitação → Clara e agentes → fluxograma ---------- */
@keyframes run { to { stroke-dashoffset: -28; } }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
.demo-note { margin-top: 14px; text-align: center; font-size: .8rem; color: rgba(255,255,255,.5); position: relative; z-index: 3; }
.studio { position: relative; border-radius: 26px; padding: clamp(14px, 2.2vw, 26px); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(143,180,255,.22); box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08); }
.beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; border-radius: inherit; }
.st-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; position: relative; z-index: 3; }
.st-modes { display: inline-flex; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 4px; }
.st-modes button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: rgba(255,255,255,.7); font: 700 .88rem var(--f); padding: .5em 1em; border-radius: 999px; cursor: pointer; }
.st-modes svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.st-modes button.on { background: var(--amber); color: #1b1306; }
.st-status { display: flex; align-items: center; gap: 8px; font: 500 .8rem var(--mono); color: var(--sky); flex: 1; min-width: 0; }
.st-status span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber-2); box-shadow: 0 0 0 0 rgba(240,180,90,.7); animation: dotP 1.4s infinite; flex: none; }
@keyframes dotP { 70% { box-shadow: 0 0 0 9px rgba(240,180,90,0); } }
.st-clock { font: 500 1rem var(--mono); color: #fff; background: rgba(0,0,0,.3); padding: .3em .8em; border-radius: 8px; font-variant-numeric: tabular-nums; }
.st-input { background: rgba(4,14,34,.6); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mic { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #283a5c; color: #fff; align-self: center; transition: background .3s, transform .3s; flex: none; }
.mic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; position: relative; z-index: 1; }
.mic-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); opacity: 0; }
.mic.live { background: var(--red); transform: scale(1.05); }
.mic.live .mic-ring { animation: ping 1.6s ease-out infinite; }
.mic.live .mic-ring.r2 { animation-delay: .8s; }
.mic.kbd { background: var(--blue); }
.wave { width: 100%; height: 54px; display: block; }
.st-say { font-size: .95rem; line-height: 1.55; color: rgba(255,255,255,.92); min-height: 9.5em; }
.st-say .wd { display: inline-block; animation: wdIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes wdIn { from { opacity: 0; transform: translateY(8px) scale(.9); filter: blur(4px); } }
.st-say .ent { border-radius: 5px; padding: 0 3px; transition: background .4s, color .4s, box-shadow .4s; }
.st-say .ent.d.hit { background: rgba(143,180,255,.25); color: #cfe0ff; box-shadow: 0 0 0 1px rgba(143,180,255,.5); }
.st-say .ent.q.hit { background: rgba(240,180,90,.22); color: #ffd99a; box-shadow: 0 0 0 1px rgba(240,180,90,.55); }
.st-say .ent.t.hit { background: rgba(76,196,145,.18); color: #b6f0d4; }
.st-say .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--amber-2); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.st-legend { display: flex; gap: 10px; flex-wrap: wrap; font: 500 .7rem var(--mono); color: rgba(255,255,255,.55); margin-top: auto; }
.st-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-d::before { background: #8fb4ff; } .lg-q::before { background: #f0b45a; } .lg-t::before { background: #4cc491; }
.hub-core.talk img { box-shadow: 0 0 0 6px rgba(240,180,90,.2), 0 0 40px rgba(240,180,90,.6); }
.hub-ring.h2 { animation-delay: 1.3s; }
.hub-agents li i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); flex: none; transition: all .3s; }
.hub-agents li.on i { background: var(--amber-2); box-shadow: 0 0 10px var(--amber-2); animation: dotP 1s infinite; }
.hub-agents li.ok i { background: #4cc491; }
.hub-agents li.ok::after { content: "✓"; margin-left: auto; color: #4cc491; font-size: .85rem; }
.hub-log li { animation: logIn .3s ease both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-log li b { color: var(--amber-2); font-weight: 500; }
.st-board { position: relative; background: #f7f9fc radial-gradient(circle, #d3dbe8 1.2px, transparent 1.3px) 0 0 / 18px 18px; border-radius: 18px; overflow: hidden; min-width: 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.board { width: 100%; height: auto; display: block; }
.board .lane rect { transition: opacity .5s; }
.board .lane text { font: 700 13px var(--f); fill: #3e4c66; text-anchor: middle; }
.board .bn { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.2) rotate(-8deg); transition: opacity .35s, transform .6s cubic-bezier(.2,1.6,.4,1); }
.board .bn.in { opacity: 1; transform: none; }
.board .bn text { font: 700 12px var(--f); fill: #18233a; text-anchor: middle; dominant-baseline: middle; }
.board .bn .cd { font: 500 9.5px var(--mono); fill: #7a8494; }
.board .bn.flash rect, .board .bn.flash polygon { filter: url(#glow); }
.board .be { fill: none; stroke: #6f86b0; stroke-width: 2; transition: stroke-dashoffset .8s ease; }
.board .bl { font: 700 11px var(--f); fill: #9a5b06; opacity: 0; transition: opacity .4s .5s; }
.board .bl.in { opacity: 1; }
.board .tag { font: 700 9px var(--mono); }
.board .doc { opacity: 0; transition: opacity .4s; }
.board .doc.in { opacity: 1; }
.tip { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #0f2350; color: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); opacity: 0; transform: translateY(10px) scale(.96); transition: all .4s; z-index: 3; }
.tip.in { opacity: 1; transform: none; }
.tip small { display: block; font: 500 .66rem var(--mono); color: var(--amber-2); text-transform: uppercase; letter-spacing: .06em; }
.tip p { font-size: .82rem; margin-top: 4px; min-height: 3em; }
.done { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; background: #e3f3ea; border: 1px solid #b8e0c9; border-radius: 12px; padding: 10px 12px; opacity: 0; transform: translateY(16px); transition: all .5s cubic-bezier(.2,.8,.2,1); z-index: 3; }
.done.in { opacity: 1; transform: none; }
.done .ok { width: 26px; height: 26px; border-radius: 50%; background: var(--green); flex: none; position: relative; }
.done .ok::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.done b { display: block; color: #135c3c; font-size: .92rem; }
.done small { font-size: .76rem; color: var(--ink-2); }

/* ---------- Não conformidade ---------- */
.nc-sec { background: linear-gradient(180deg, #f3f5f9, #eef2f8); overflow: hidden; }
.ncs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.nc-steps { grid-column: 1 / -1; list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; counter-reset: s; }
.nc-steps li { position: relative; font: 600 .78rem var(--f); color: var(--ink-3); padding-top: 22px; text-align: center; }
.nc-steps li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--line); }
.nc-steps li::after { content: ""; position: absolute; top: 7px; left: 0; height: 4px; width: 0; border-radius: 2px; background: var(--c, var(--blue)); transition: width .6s ease; }
.nc-steps li i { position: absolute; top: 2px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; transition: all .3s; }
.nc-steps li.on { color: var(--navy); } .nc-steps li.on::after, .nc-steps li.ok::after { width: 100%; }
.nc-steps li.on i { border-color: var(--c, var(--blue)); background: var(--c, var(--blue)); box-shadow: 0 0 0 5px rgba(31,95,209,.15); }
.nc-steps li.ok { color: var(--green); } .nc-steps li.ok i { background: var(--green); border-color: var(--green); }
.nc-steps li:first-child { --c: var(--red); } .nc-steps li:last-child { --c: var(--green); }
@media (max-width: 640px) { .nc-steps { grid-template-columns: repeat(3, 1fr); row-gap: 12px; } }
.nc-run { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); position: relative; min-width: 0; }
.nc-run.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.nc-run-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; }
.nc-run-head b { color: var(--navy); }
.ver { font: 600 .72rem var(--mono); padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); transition: all .4s; }
.ver.new { background: var(--green-soft); color: var(--green); box-shadow: 0 0 0 4px rgba(29,138,91,.15); }
.cnt { margin-left: auto; font-size: .82rem; color: var(--ink-3); }
.cnt b { font: 800 1rem var(--f); color: var(--navy); font-variant-numeric: tabular-nums; }
.line { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.line .ln { fill: none; stroke: #c9d3e3; stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.line .nn rect { fill: #fff; stroke: #9aa6bd; stroke-width: 1.6; transition: stroke .3s, fill .3s; }
.line .nn.s rect { fill: #e3f3ea; stroke: #1e8e5a; } .line .nn.e rect { fill: #e9edf6; stroke: #0f3877; }
.line .nn text { font: 700 11px var(--f); fill: #18233a; text-anchor: middle; dominant-baseline: middle; transition: opacity .3s; }
.line .nn .cd { font: 500 9px var(--mono); fill: #7a8494; }
.line .nn.bad rect { stroke: var(--red); stroke-width: 3; fill: #fff1f1; animation: badP .8s ease-in-out infinite; }
@keyframes badP { 50% { filter: drop-shadow(0 0 10px rgba(229,72,77,.9)); } }
.line .nn.fixed rect { stroke: var(--green); stroke-width: 3; fill: #effaf4; }
.line .tk circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.line .tk text { font: 700 8px var(--mono); fill: #fff; text-anchor: middle; dominant-baseline: middle; }
.line .tk.bad circle { fill: var(--red); }
.line .tk.done circle { fill: var(--green); }
.nc-alert { margin-top: 0; max-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 0 14px; border-radius: 12px; background: #fff1f1; border: 0 solid #f5c2c2; border-left-color: var(--red); font-size: .86rem; opacity: 0; transform: translateY(8px); transition: all .4s; }
.nc-alert.in { opacity: 1; transform: none; max-height: 120px; padding: 10px 14px; margin-top: 10px; border-width: 1px 1px 1px 4px; }
.nc-alert b { color: #b42318; }
.nc-alert span { color: var(--ink-2); }
.nc-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); opacity: .35; filter: grayscale(1); transform: perspective(1200px) rotateX(14deg) translateY(30px) scale(.97); transform-origin: top center; transition: opacity .6s, filter .6s, transform .8s cubic-bezier(.2,1.2,.3,1); min-width: 0; overflow: hidden; }
.nc-card.in { opacity: 1; filter: none; transform: none; }

.nc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.nc-code { font: 600 .8rem var(--mono); color: var(--ink-3); }
.nc-head h3 { font-size: 1.1rem; margin-top: 2px; }
.pill { flex: none; font: 700 .76rem var(--f); padding: 4px 10px; border-radius: 999px; background: #fde8e8; color: #b42318; transition: all .4s; }
.pill.t { background: #fdf0d9; color: #9a5b06; } .pill.v { background: var(--blue-soft); color: var(--blue); } .pill.e { background: var(--green-soft); color: var(--green); }
.nc-meta { margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; font-size: .84rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nc-meta dt { font: 500 .66rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.nc-meta dd { margin: 0; font-weight: 600; color: var(--ink); }
.nc-body { display: grid; gap: 12px 30px; margin-top: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-auto-flow: column; }
@media (max-width: 760px) { .nc-body { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; } }
.nc-part { opacity: .25; transition: opacity .4s; }
.nc-part.in { opacity: 1; }
.nc-part h4 { margin: 0 0 4px; font: 700 .78rem var(--f); color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.nc-part p, .whys li, .acts li { font-size: .85rem; color: var(--ink-2); }
.whys { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.whys li { animation: logIn .35s ease both; display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.whys li i { font: 600 .7rem var(--mono); font-style: normal; color: #fff; background: var(--blue); width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; }
.whys li.root { background: #fff4dd; border: 1px solid #f0c36b; border-radius: 8px; padding: 6px; color: var(--navy); font-weight: 700; }
.whys li.root i { background: var(--amber); }
.acts { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.acts li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; animation: logIn .35s ease both; }
.acts li .bx { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #9aa6bd; position: relative; transition: all .3s; margin-top: 1px; }
.acts li.ok .bx { background: var(--green); border-color: var(--green); }
.acts li.ok .bx::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.acts li small { display: block; font: 500 .7rem var(--mono); color: var(--ink-3); }
.acts .clara-tag { font: 700 .66rem var(--f); color: #9a5b06; background: #fff4dd; padding: 1px 6px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.eff { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.eff b { font: 800 1.8rem var(--f); color: var(--green); font-variant-numeric: tabular-nums; grid-row: span 2; }
.eff span { font-size: .84rem; color: var(--ink-2); }
.eff-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.eff-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #34b27b, var(--green)); }
.stamp { position: absolute; right: 18px; bottom: 26px; font: 800 1.5rem var(--f); color: var(--green); border: 3px solid var(--green); border-radius: 10px; padding: 4px 14px; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-12deg) scale(2.4); opacity: 0; transition: transform .45s cubic-bezier(.2,1.6,.4,1), opacity .3s; background: rgba(255,255,255,.85); }
.stamp.in { transform: rotate(-12deg) scale(1); opacity: 1; }
.flyer { position: fixed; z-index: 70; width: 46px; height: 46px; border-radius: 12px; background: var(--red); box-shadow: 0 10px 30px rgba(229,72,77,.6); pointer-events: none; display: grid; place-items: center; color: #fff; font: 800 .8rem var(--f); transition: transform .9s cubic-bezier(.5,0,.2,1), opacity .9s; }
.nc-note { text-align: center; }
@media (max-width: 760px) { .nc-meta { grid-template-columns: 1fr 1fr; } }
.st-board { min-height: 0; }
@media (max-width: 700px) { .nc-run { overflow-x: auto; } .line { min-width: 640px; } .nc-run-head { position: sticky; left: 0; } .nc-alert { position: sticky; left: 0; } }

/* Estúdio: fala à esquerda, Clara e agentes em faixa, quadro grande à direita */
.st-grid { display: grid; grid-template-columns: minmax(250px, .62fr) minmax(0, 1.6fr); grid-template-areas: "input hub" "input board"; gap: clamp(12px, 1.6vw, 18px); align-items: start; position: relative; z-index: 2; }
.st-input { grid-area: input; align-self: stretch; }
.st-hub { grid-area: hub; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.st-board { grid-area: board; }
@media (max-width: 860px) { .st-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "input" "hub" "board"; } .st-say { min-height: 0; } }
.hub-core { position: relative; width: 76px; display: flex; flex-direction: column; align-items: center; flex: none; }
.hub-core img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--amber-2); position: relative; z-index: 1; transition: box-shadow .3s; }
.hub-ring { position: absolute; top: 0; left: 0; width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--amber-2); animation: ping 2.6s cubic-bezier(.2,.6,.3,1) infinite; }
.hub-core b { margin-top: -12px; z-index: 2; background: var(--amber); color: #1b1306; font-size: .8rem; padding: 0 10px; border-radius: 999px; }
.hub-agents { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.hub-agents li { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(13,33,72,.7); border: 1px solid rgba(143,180,255,.2); font-weight: 700; font-size: .86rem; color: rgba(255,255,255,.75); transition: all .3s; }
.hub-agents li.on { color: #fff; border-color: var(--amber-2); background: rgba(80,56,16,.9); transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 26px -10px rgba(240,180,90,.8); }
.hub-agents li.ok::after { margin-left: 2px; }
.hub-log { flex-basis: 100%; list-style: none; margin: 0; padding: 0; font: 500 .74rem/1.5 var(--mono); color: rgba(255,255,255,.65); min-height: 3em; display: flex; flex-direction: column; justify-content: flex-end; }
.st-cap, .nc-cap { position: relative; z-index: 3; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; font: 700 clamp(1.05rem, 1.8vw, 1.3rem)/1.35 var(--f); }
.st-cap { background: rgba(240,180,90,.12); border: 1px solid rgba(240,180,90,.4); color: #fff; }
.st-cap small, .nc-cap small { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--amber-2); white-space: nowrap; }
.nc-cap { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); color: var(--navy); box-shadow: var(--shadow); }
.nc-cap small { color: var(--amber-txt); }
.cap-txt { animation: logIn .45s ease both; }
.ctl { display: inline-flex; gap: 6px; }
.ctl button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font: 700 .84rem var(--f); padding: .45em .9em; border-radius: 999px; cursor: pointer; }
.ctl button:hover { border-color: #fff; }
.nc-ctl button { border-color: var(--line); background: var(--surface); color: var(--navy); }
.nc-ctl button:hover { border-color: var(--blue); }
.nc-top { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.nav a { white-space: nowrap; } .top-acts .btn-sm { white-space: nowrap; }
@media (max-width: 1180px) {
  .nav { display: none; position: absolute; top: calc(70px + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; background: var(--deep); padding: 10px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; } .nav-only-m { display: block; } .menu-btn { display: block; } .link-enter { display: none; }
}
.st-cap, .nc-cap { overflow: hidden; }
.st-cap::after, .nc-cap::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%; background: linear-gradient(90deg, transparent, var(--amber-2), transparent); animation: capRun 1.6s linear infinite; }
.st-cap.held::after, .nc-cap.held::after { animation-play-state: paused; opacity: .3; }
@keyframes capRun { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
