/* GerenciMob — landing page
   Cenas fixas dirigidas pelo scroll (o JS escreve --p, de 0 a 1, em cada [data-scene])
   e demonstrações curtas em CSS que rodam quando aparecem.
   Cores, raios e tipografia vêm do gerenci-design-system (escola Apple, Azul #0B7AFF). */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Neutros (tokens do design system) */
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --fill: #e8e8ed;
  --separator: #d2d2d7;
  --label: #1d1d1f;
  --label-2: #636366;
  --label-3: #86868b;

  --d-bg: #000000;
  --d-surface: #1c1c1e;
  --d-surface-2: #2c2c2e;
  --d-separator: #38383a;
  --d-label: #f5f5f7;
  --d-label-2: #aeaeb2;

  /* Destaque: Azul da marca GerenciMob */
  --accent: #0B7AFF;
  --accent-pressed: #0062D6;
  --accent-text: #0A5FCC;
  --accent-soft: #E8F1FF;
  --accent-text-dark: #5AA6FF;
  --accent-glow: 11, 122, 255;
  --on-accent: #ffffff;

  --success: #1b7a36; --success-soft: #e6f4ea;
  --warning: #9a5700; --warning-soft: #fdf3e1;
  --danger: #c9001a;  --danger-soft: #fdecec;

  --grad: linear-gradient(110deg, #8EC2FF 0%, #3D97FF 45%, #0B7AFF 70%, #6B7CFF 100%);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 64px;
  --vh: 100vh;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.25), 0 10px 30px -10px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--d-label);
  background: var(--d-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; margin: 0 0 .5em; letter-spacing: -.025em; line-height: 1.06; }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.t-grad, .w--grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.eyebrow {
  display: inline-block; margin-bottom: 16px;
  font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow--light { color: var(--accent-text-dark); }

.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 .95rem/1 var(--font-body); letter-spacing: -.005em;
  padding: .9em 1.4em; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn--sm { font-size: .82rem; padding: .7em 1.1em; }
.btn--lg { font-size: 1rem; padding: 1em 1.6em; }
.btn--xl { font-size: 1.08rem; padding: 1.1em 1.9em; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(var(--accent-glow), .9); }
.btn--primary:hover { background: var(--accent-pressed); box-shadow: 0 16px 40px -12px rgba(var(--accent-glow), 1); }
.btn--glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); }
.magnetic { transition: transform .35s var(--ease-out), box-shadow .25s var(--ease), background-color .2s; }

/* ------------------------------------------------------- badges e miúdos */
.badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; font: 600 .72rem/1.3 var(--font-body);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--accent { background: var(--accent-soft); color: var(--accent-text); }
.badge--ok { background: var(--success-soft); color: var(--success); }
.badge--warn { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.avatar {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  font: 700 .7rem/1 var(--font-body); color: #fff;
  background: hsl(var(--h) 62% 52%);
}
.avatar--xs { width: 20px; height: 20px; font-size: .55rem; }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill); font: 600 .74rem/1 var(--font-body); color: var(--label); }
.seg span { padding: 6px 12px; border-radius: 7px; }
.seg .is-on { background: var(--surface); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------ barra de progresso global */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 80; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--sp, 0)); }

/* ----------------------------------------------------------------- topbar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 60; transition: background-color .35s, box-shadow .35s, color .35s; }
.topbar.is-scrolled {
  background: rgba(22, 22, 23, .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
body.on-light .topbar.is-scrolled { background: rgba(255,255,255,.72); box-shadow: 0 1px 0 rgba(0,0,0,.08); color: var(--label); }
.topbar__inner { height: var(--header-h); width: min(1200px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon { width: 30px; height: 30px; }
.brand__word { font: 800 1.15rem/1 var(--font-display); letter-spacing: -.03em; }
.brand__word b { font-weight: 800; color: var(--accent-text-dark); }
body.on-light .topbar.is-scrolled .brand__word b { color: var(--accent); }
.topbar__nav { display: flex; gap: 26px; margin-inline: auto; }
.topbar__nav a, .topbar__link { position: relative; text-decoration: none; font-size: .84rem; font-weight: 500; opacity: .78; transition: opacity .2s; padding: 6px 0; }
.topbar__nav a:hover, .topbar__nav a.is-active, .topbar__link:hover { opacity: 1; }
.topbar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.topbar__nav a.is-active::after { transform: scaleX(1); }
.topbar__actions { display: flex; align-items: center; gap: 18px; }
.topbar__menu { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.topbar__menu span { position: absolute; left: 10px; right: 10px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.topbar__menu span:first-child { top: 16px; } .topbar__menu span:last-child { top: 23px; }
.topbar__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.topbar__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-mobile { display: grid; gap: 4px; padding: 8px 20px 24px; background: rgba(22,22,23,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; }
.menu-mobile[hidden] { display: none; }
.menu-mobile a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; font: 700 1.2rem/1.2 var(--font-display); letter-spacing: -.02em; }
.menu-mobile .btn { margin-top: 16px; }

/* ------------------------------------------------------ trilho de capítulos */
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 55; }
.rail ol { display: grid; gap: 14px; }
.rail a { position: relative; display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background .3s, transform .3s var(--ease); }
.rail a::before { content: ""; position: absolute; inset: -8px; }
.rail a::after {
  content: attr(data-label); position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%) translateX(6px); white-space: nowrap;
  font: 600 .72rem/1 var(--font-body); color: #fff; background: rgba(28,28,30,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 7px 11px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease);
}
.rail a:hover::after { opacity: 1; transform: translateY(-50%); }
.rail a.is-active { background: var(--accent); transform: scale(1.5); }
body.on-light .rail a { background: rgba(0,0,0,.2); }
body.on-light .rail a.is-active { background: var(--accent); }

/* ------------------------------------------------------------------ cenas */
.scene { position: relative; --p: 0; }
.js .scene { height: calc(var(--len, 2) * var(--vh)); }
.stage { position: sticky; top: 0; height: var(--vh); overflow: hidden; }

/* ========== 01 · Abertura ========== */
.hero .stage { background: var(--d-bg); }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 50% 100%, rgba(var(--accent-glow), .38), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(107, 124, 255, .16), transparent 70%),
    radial-gradient(40% 40% at 10% 20%, rgba(var(--accent-glow), .12), transparent 70%);
  opacity: calc(1 - var(--p) * .6);
}
.hero__glow {
  position: absolute; left: var(--mx, 50%); top: var(--my, 30%);
  width: 60vmax; height: 60vmax; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--accent-glow), .14), transparent 60%);
  transition: left 1.2s var(--ease), top 1.2s var(--ease);
}
.hero__copy {
  position: relative; z-index: 2; text-align: center;
  padding: calc(var(--header-h) + 7vh) 20px 0; max-width: 1020px; margin-inline: auto;
  opacity: clamp(0, calc(1 - var(--p) * 3), 1);
  transform: translateY(calc(var(--p) * -120px)) scale(calc(1 - var(--p) * .08));
  will-change: transform, opacity;
}
.hero__title { font-size: clamp(2.6rem, 7.6vw, 6.4rem); line-height: 1; letter-spacing: -.045em; color: #fff; margin: 4px 0 24px; }
.hero__title .w {
  display: inline-block; opacity: 0; transform: translateY(40px); filter: blur(10px);
  animation: rise 1s var(--ease-out) forwards; animation-delay: calc(.15s + var(--i) * .08s);
}
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fade { to { opacity: 1; } }
.hero__lead { color: var(--d-label-2); font-size: clamp(1.02rem, 1.5vw, 1.24rem); max-width: 640px; margin: 0 auto 30px; opacity: 0; animation: fade 1s var(--ease) .8s forwards; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fade 1s var(--ease) .95s forwards; }

.hero__frame {
  --g: clamp(0, calc((var(--p) - .04) / .62), 1);
  --s0: .7; --s1: .9;
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 1240px; height: 760px;
  transform:
    translate(-50%, -50%)
    translateY(calc(var(--header-h) / 2 + var(--vh) * var(--drop, .44) * (1 - var(--g))))
    perspective(2400px) rotateX(calc(24deg * (1 - var(--g))))
    scale(calc(var(--s0) + (var(--s1) - var(--s0)) * var(--g)));
  transform-origin: 50% 50%;
  opacity: 0; animation: fade 1.2s var(--ease) .55s forwards;
  will-change: transform;
}
.hero__frame::before {
  content: ""; position: absolute; inset: -6% -4% -10%; z-index: -1; border-radius: 40px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--accent-glow), .45), transparent 70%);
  filter: blur(40px); opacity: calc(.9 - var(--g) * .5);
}
.hero__caption { display: none; }
.hero__hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55);
  opacity: clamp(0, calc(1 - var(--p) * 8), 1);
}
.hero__hint i { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: hint 2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- O painel (mock do app, 1240×760, tema claro do design system) ---------- */
.app {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  background: var(--bg); color: var(--label); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 60px 140px -30px rgba(0,0,0,.8);
  font-size: 14px; line-height: 1.35; text-align: left;
}
.app__chrome { height: 40px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #ececef; border-bottom: 1px solid var(--separator); }
.app__chrome > i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.app__chrome > i:nth-child(2) { background: #febc2e; } .app__chrome > i:nth-child(3) { background: #28c840; }
.app__url { margin-inline: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 60px; border-radius: 8px; background: #fff; font-size: 12px; color: var(--label-2); transform: translateX(-30px); }
.app__url .icon { width: 12px; height: 12px; }
.app__body { flex: 1; display: grid; grid-template-columns: 232px 1fr; min-height: 0; }
.app__side { padding: 18px 12px; background: rgba(255,255,255,.6); border-right: 1px solid var(--separator); }
.app__tenant { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.app__tenant-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 800 15px/1 var(--font-display); }
.app__tenant strong { display: block; font-size: 13.5px; } .app__tenant small { color: var(--label-2); font-size: 12px; }
.app__group { display: block; padding: 14px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--label-3); }
.app__side li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; color: var(--label); }
.app__side li .icon { width: 16px; height: 16px; color: var(--label-2); }
.app__side li em { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.app__side li.is-on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.app__side li.is-on .icon { color: var(--accent-text); }
.app__main { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app__head { display: flex; align-items: flex-end; justify-content: space-between; }
.app__head small { color: var(--label-2); font-size: 12.5px; }
.app__head h3 { font-size: 28px; margin: 2px 0 0; letter-spacing: -.03em; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { position: relative; background: var(--surface); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.kpi small { display: block; color: var(--label-2); font-size: 12px; }
.kpi strong { display: inline-block; font: 800 26px/1.15 var(--font-display); letter-spacing: -.03em; margin: 4px 8px 0 0; font-variant-numeric: tabular-nums; }
.kpi .up, .kpi .down { font-size: 11.5px; font-weight: 600; color: var(--success); }
.spark { position: absolute; right: 12px; bottom: 12px; width: 84px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark--ok { stroke: var(--success); }
.app__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1.15fr 1fr; gap: 14px; }
.card { background: var(--surface); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); min-height: 0; display: flex; flex-direction: column; }
.card__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13.5px; }
.card__title a { color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.legend { display: flex; align-items: center; gap: 6px; color: var(--label-2); font-size: 11.5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-left: 6px; }
.legend .l2 { background: var(--separator); }
.chart { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.chart__grid path { stroke: var(--fill); stroke-width: 1; }
.chart__area { fill: rgba(var(--accent-glow), .1); }
.chart__prev { fill: none; stroke: var(--separator); stroke-width: 2; stroke-dasharray: 5 5; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease-out) 1.2s forwards; }
.chart__dot { fill: var(--surface); stroke: var(--accent); stroke-width: 3; opacity: 0; animation: fade .4s var(--ease) 2.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.funnel { display: grid; gap: 7px; }
.funnel li { position: relative; display: flex; justify-content: space-between; padding: 6px 10px; font-size: 12.5px; border-radius: 7px; overflow: hidden; z-index: 0; }
.funnel li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); z-index: -1; border-radius: 7px; background: var(--accent-soft); }
.funnel li:first-child::before { background: rgba(var(--accent-glow), .22); }
.funnel b { font-variant-numeric: tabular-nums; }
.rows { display: grid; gap: 2px; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--fill); }
.rows li:last-child { border: 0; }
.rows li > div { flex: 1; min-width: 0; }
.rows strong { display: block; font-size: 13px; }
.rows small { color: var(--label-2); font-size: 11.5px; }
.rows .mono { font-size: 11px; color: var(--label-2); width: 58px; }

/* ========== 02 · Manifesto ========== */
.manifesto .stage { display: flex; flex-direction: column; justify-content: center; padding: 0 max(20px, 8vw); background: var(--d-bg); }
.manifesto__eyebrow { opacity: clamp(0, calc(var(--p) * 6), 1); }
.reveal-text { font: 800 clamp(1.7rem, 4.1vw, 3.5rem)/1.16 var(--font-display); letter-spacing: -.035em; color: #fff; max-width: 1160px; margin: 0; }
.reveal-text .w { opacity: calc(.14 + .86 * clamp(0, calc(var(--p) * 1.3 * var(--n) - var(--i)), 1)); transition: opacity .15s linear; }
.reveal-text .w--grad { opacity: calc(.18 + .82 * clamp(0, calc(var(--p) * 1.3 * var(--n) - var(--i)), 1)); }

/* ========== 03 · Marquise ========== */
.marquees { padding: 28px 0 90px; display: grid; gap: 14px; background: linear-gradient(var(--d-bg) 60%, var(--bg)); overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: 14px; width: max-content; will-change: transform; }
.marquee li {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px;
  font: 700 clamp(1.1rem, 2vw, 1.5rem)/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap;
  background: var(--d-surface); color: #fff; border: 1px solid rgba(255,255,255,.06);
}
.marquee li .icon { color: var(--accent-text-dark); width: 1.1em; height: 1.1em; }
.marquee--alt li { background: transparent; border-color: rgba(255,255,255,.14); color: var(--d-label-2); }

/* ========== 04 · Um dia na imobiliária ========== */
.steps .stage { background: var(--bg); color: var(--label); display: flex; align-items: center; }
.steps__stage { width: min(1200px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding-top: var(--header-h); }
.steps h2 { color: var(--label); font-size: clamp(2rem, 4.2vw, 3.4rem); }
.steps__list { position: relative; margin-top: 30px; padding-left: 28px; display: grid; gap: 22px; }
.steps__list::before, .steps__fill { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--separator); }
.steps__fill { background: var(--accent); transform-origin: top; transform: scaleY(clamp(0, calc(var(--p) * 1.1), 1)); }
.steps__item { opacity: .32; transition: opacity .45s var(--ease); }
.steps__item.is-active { opacity: 1; }
.steps__n { font: 600 .74rem/1 var(--font-mono); color: var(--accent-text); }
.steps__item h3 { margin: 6px 0 6px; font-size: 1.28rem; }
.steps__item p { color: var(--label-2); margin: 0; font-size: 1rem; max-width: 440px; }

.device { position: relative; width: 100%; aspect-ratio: 1.2; max-height: 72vh; margin-inline: auto; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.04); overflow: hidden; display: flex; flex-direction: column; }
.device__bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; flex-shrink: 0; background: var(--surface-2); border-bottom: 1px solid var(--fill); font: 600 .8rem/1 var(--font-body); color: var(--label-2); }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--fill); }
.device__bar span { margin-left: 10px; }
.device__screen { position: relative; flex: 1; background: var(--bg); }
.layer { position: absolute; inset: 0; padding: 22px; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .5s var(--ease), transform .6s var(--ease-out); pointer-events: none; }
.layer.is-active { opacity: 1; transform: none; }

/* Conversa */
.layer--chat { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--fill); }
.chat__head div { flex: 1; } .chat__head strong { display: block; font-size: .95rem; } .chat__head small { color: var(--label-2); font-size: .78rem; }
.chat__day { align-self: center; font-size: .72rem; color: var(--label-3); padding: 3px 10px; border-radius: 999px; background: var(--fill); }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface); box-shadow: var(--shadow-sm); line-height: 1.4; }
.bubble--me { align-self: flex-end; background: var(--accent-soft); border-radius: 18px 18px 6px 18px; }
.ticks { margin-left: 8px; font-size: .72rem; color: var(--accent-text); letter-spacing: -.2em; }
.chat__system { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--success-soft); color: var(--success); font-weight: 600; font-size: .84rem; }
.layer--chat > *:not(.chat__head):not(.chat__day) { opacity: 0; transform: translateY(10px); }
.layer--chat.is-active > *:not(.chat__head):not(.chat__day) { animation: pop .5s var(--ease-out) forwards; animation-delay: calc(.2s + var(--i) * .55s); }
@keyframes pop { to { opacity: 1; transform: none; } }

/* Funil */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: calc(100% - 52px); }
.col { background: var(--fill); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.col header { display: flex; justify-content: space-between; padding: 4px 4px 2px; font: 700 .76rem/1 var(--font-body); color: var(--label-2); }
.col header em { font-weight: 600; color: var(--label-3); }
.kcard { position: relative; background: var(--surface); border-radius: 10px; padding: 9px 10px; box-shadow: var(--shadow-sm); font-size: .8rem; }
.kcard strong, .kcard small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard strong { font-size: .82rem; } .kcard small { color: var(--label-2); font-size: .72rem; }
.kcard--ghost { height: 52px; background: transparent; box-shadow: none; border: 1.5px dashed var(--separator); }
.kcard--move { box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); z-index: 2; }
.kcard__foot { white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: .7rem; color: var(--label-2); }
.kcard__foot b { color: var(--warning); font-weight: 600; }
.layer--kanban.is-active .kcard--move { animation: moveCard 1.4s var(--ease-out) .35s both; }
@keyframes moveCard {
  0% { transform: translateX(calc(-200% - 20px)) rotate(0); box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); }
  30% { transform: translateX(calc(-200% - 20px)) translateY(-6px) rotate(-3deg); box-shadow: 0 0 0 2px var(--accent), 0 18px 30px -10px rgba(0,0,0,.25); }
  85% { transform: translateY(-6px) rotate(2deg); }
  100% { transform: none; }
}
.toast-mini { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 16px); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: var(--label); color: #fff; font-size: .8rem; font-weight: 600; opacity: 0; box-shadow: var(--shadow-md); }
.layer--kanban.is-active .toast-mini { animation: toastIn .5s var(--ease-out) 1.7s forwards; }
@keyframes toastIn { to { opacity: 1; transform: translate(-50%, 0); } }

/* Esteira */
.esteira { height: 100%; display: flex; flex-direction: column; gap: 14px; }
.esteira header { display: grid; gap: 2px; }
.esteira header small { color: var(--label-2); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.esteira header strong { font: 800 1.35rem/1.15 var(--font-display); letter-spacing: -.02em; }
.esteira header span { color: var(--label-2); font-size: .9rem; }
.esteira ol { display: grid; gap: 8px; }
.esteira li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 600; font-size: .9rem; }
.esteira li small { margin-left: auto; color: var(--label-2); font-weight: 500; font-size: .78rem; }
.esteira .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--separator); color: transparent; transition: .3s; }
.esteira .dot .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.layer--esteira.is-active .dot { animation: tick .35s var(--ease-out) forwards; animation-delay: calc(.35s + var(--i) * .45s); }
@keyframes tick { to { background: var(--success); border-color: var(--success); color: #fff; } }
.esteira__done { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: .92rem; opacity: 0; transform: translateY(8px); }
.layer--esteira.is-active .esteira__done { animation: pop .5s var(--ease-out) 2.3s forwards; }

/* Financeiro */
.fin { height: 100%; display: grid; grid-template-rows: auto auto 1fr; gap: 12px; }
.fin__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.fin__row small { display: block; color: var(--label-2); font-size: .78rem; }
.fin__row strong { display: block; font: 800 1.3rem/1.2 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fin__row span:not(.badge):not(.flip) { color: var(--label-2); font-size: .76rem; }
.flip { display: grid; }
.flip .badge { grid-area: 1 / 1; justify-self: end; transition: opacity .3s, transform .35s var(--ease-out); }
.flip .badge--ok { opacity: 0; transform: scale(.7); }
.layer--fin.is-active .flip .badge--warn { animation: out .3s var(--ease) 1s forwards; }
.layer--fin.is-active .flip .badge--ok { animation: inScale .4s var(--ease-out) 1.15s forwards; }
@keyframes out { to { opacity: 0; transform: scale(.7); } }
@keyframes inScale { to { opacity: 1; transform: none; } }
.fin__dre { padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-height: 0; }
.fin__dre small { color: var(--label-2); font-size: .78rem; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding-top: 10px; min-height: 60px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--accent-soft); transform: scaleY(0); transform-origin: bottom; }
.bars i:last-child { background: var(--accent); }
.layer--fin.is-active .bars i { animation: grow .7s var(--ease-out) forwards; }
.layer--fin.is-active .bars i:nth-child(2) { animation-delay: .08s; } .layer--fin.is-active .bars i:nth-child(3) { animation-delay: .16s; }
.layer--fin.is-active .bars i:nth-child(4) { animation-delay: .24s; } .layer--fin.is-active .bars i:nth-child(5) { animation-delay: .32s; }
.layer--fin.is-active .bars i:nth-child(6) { animation-delay: .4s; }
@keyframes grow { to { transform: scaleY(1); } }

/* ========== 05 · Trilho horizontal ========== */
.track .stage { background: var(--bg); color: var(--label); display: flex; flex-direction: column; justify-content: center; gap: 36px; padding-top: var(--header-h); }
.track__head { width: min(1200px, 100% - 40px); margin-inline: auto; }
.track__head h2 { color: var(--label); margin-bottom: 12px; }
.track__head h2 em { color: var(--label-3); }
.track__head p { color: var(--label-2); max-width: 560px; margin: 0; font-size: 1.1rem; }
.track__list {
  --tp: clamp(0, calc((var(--p) - .06) / .86), 1);
  display: flex; gap: 18px; width: max-content;
  padding-left: max(20px, calc((100vw - 1200px) / 2));
  transform: translate3d(calc(var(--shift, 0px) * -1 * var(--tp)), 0, 0);
  will-change: transform;
}
.tcard {
  position: relative; width: clamp(270px, 26vw, 330px); min-height: 330px;
  display: flex; flex-direction: column; padding: 26px; border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tcard__n { position: absolute; top: 24px; right: 26px; font: 600 .78rem/1 var(--font-mono); color: var(--label-3); }
.tcard__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: auto; }
.tcard__icon .icon { width: 24px; height: 24px; }
.tcard h3 { margin: 40px 0 8px; font-size: 1.5rem; letter-spacing: -.025em; }
.tcard p { color: var(--label-2); font-size: .97rem; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 11px; border-radius: 999px; background: var(--fill); font-size: .78rem; font-weight: 600; color: var(--label); }
.tcard--highlight { background: var(--accent); color: var(--on-accent); }
.tcard--highlight p, .tcard--highlight .tcard__n { color: var(--on-accent); opacity: .8; }
.tcard--highlight .tcard__icon { background: rgba(255,255,255,.18); color: var(--on-accent); }
.tcard__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; text-decoration: none; }
.tcard__link .icon { transition: transform .3s var(--ease-out); }
.tcard__link:hover .icon { transform: translateX(4px); }
.track__bar { width: min(1200px, 100% - 40px); margin-inline: auto; height: 3px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.track__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(clamp(0, calc((var(--p) - .06) / .86), 1)); }

/* ---------------------------------------------- revelação simples (.io) */
.js .io { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .io.in { opacity: 1; transform: none; }

/* ========== 06 · Por dentro ========== */
.inside { position: relative; padding: clamp(90px, 14vh, 150px) 0; background: var(--d-bg); }
.inside h2 { color: #fff; max-width: 900px; }
.inside .lead { color: var(--d-label-2); font-size: 1.2rem; max-width: 600px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 50px 0 60px; padding: 30px 0; border-block: 1px solid var(--d-separator); max-width: 860px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 8px; }
.stats dt { color: var(--d-label-2); font-size: .9rem; line-height: 1.35; }
.stats dd { margin: 0; font: 800 clamp(2.8rem, 6vw, 4.6rem)/1 var(--font-display); letter-spacing: -.05em; color: #fff; font-variant-numeric: tabular-nums; }
.stats dd small { font-size: .5em; color: var(--accent-text-dark); margin-left: 2px; }
.demos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.demo { border-radius: 28px; background: var(--d-surface); overflow: hidden; border: 1px solid rgba(255,255,255,.05); transition: border-color .3s, transform .5s var(--ease-out); }
.demo:hover { border-color: rgba(var(--accent-glow), .45); }
.demo__stage { position: relative; height: 250px; display: grid; place-items: center; background: radial-gradient(70% 90% at 50% 0%, rgba(var(--accent-glow), .14), transparent 70%), #141416; border-bottom: 1px solid rgba(255,255,255,.05); overflow: hidden; }
.demo__caption { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: .74rem; color: var(--d-label-2); }
.demo__caption b { color: var(--accent-text-dark); font-weight: 600; }
.demo__body { padding: 26px 28px 30px; }
.demo__body h3 { color: #fff; font-size: 1.55rem; letter-spacing: -.03em; margin-bottom: 8px; }
.demo__body p { color: var(--d-label-2); margin: 0; font-size: .98rem; }

/* Mapa */
.map { width: 92%; height: 200px; margin-top: -20px; }
.map__road { fill: none; stroke: #2c2c2e; stroke-width: 10; stroke-linecap: round; }
.map__road--thin { stroke-width: 6; }
.map__area { fill: rgba(var(--accent-glow), 0); stroke: var(--accent-text-dark); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: round; }
.map__pins circle { fill: #48484a; stroke: #141416; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.demo.play .map__area { animation: draw 1.4s var(--ease-out) .2s forwards, areaFill .6s var(--ease) 1.4s forwards; }
@keyframes areaFill { to { fill: rgba(var(--accent-glow), .18); } }
.demo.play .map__pins circle:not(.out) { animation: pinOn .45s var(--ease-out) forwards; animation-delay: calc(1.5s + var(--i) * .12s); }
@keyframes pinOn { 0% { transform: scale(1); } 50% { transform: scale(1.6); fill: var(--accent); } 100% { transform: scale(1.15); fill: var(--accent); } }

/* Radar */
.demo__stage--radar { grid-template-columns: auto auto; gap: 34px; align-content: center; justify-content: center; padding-bottom: 20px; }
.radar { position: relative; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.radar__ring { position: absolute; inset: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.radar__ring + .radar__ring { inset: 46px; }
.radar__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--accent-glow), .5), transparent 25%); opacity: 0; }
.radar__house { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0 rgba(var(--accent-glow), .6); }
.radar__house .icon { width: 20px; height: 20px; }
.demo.play .radar__sweep { animation: fade .3s forwards, spin 2.4s linear infinite; }
.demo.play .radar__house { animation: ping 1.6s var(--ease-out) .4s 3; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { to { box-shadow: 0 0 0 26px rgba(var(--accent-glow), 0); } }
.radar__hits { display: grid; gap: 8px; }
.radar__hits p { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--d-surface-2); color: #fff; font-size: .85rem; font-weight: 600; opacity: 0; transform: translateX(-10px); }
.radar__hits b { margin-left: auto; padding-left: 10px; color: var(--accent-text-dark); font-variant-numeric: tabular-nums; }
.demo.play .radar__hits p { animation: pop .45s var(--ease-out) forwards; animation-delay: calc(.9s + var(--i) * .35s); }

/* Temporada */
.cal { display: grid; width: min(330px, 86%); margin-top: -18px; }
.cal__days, .cal__bars { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: 22px repeat(3, 44px); gap: 4px; }
.cal__days i { font-style: normal; text-align: center; font-size: .66rem; font-weight: 700; color: var(--d-label-2); }
.cal__days b { border-radius: 8px; background: var(--d-surface-2); padding: 5px 6px; font-size: .7rem; font-weight: 600; color: var(--d-label-2); }
.res { align-self: end; margin: 0 3px 5px; padding: 3px 7px; border-radius: 6px; font-size: .62rem; font-weight: 700; color: var(--on-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: scaleX(0); transform-origin: left; }
.res--a, .res--b { background: var(--accent); }
.res--b { background: color-mix(in srgb, var(--accent) 65%, #fff); }
.res--w { background: #ffb020; color: #1d1d1f; }
.demo.play .res { animation: grow-x .7s var(--ease-out) forwards; animation-delay: calc(.3s + var(--i) * .35s); }
@keyframes grow-x { to { transform: scaleX(1); } }

/* Metas */
.demo__stage--goal { grid-template-columns: auto auto; gap: 30px; align-content: center; justify-content: center; padding-bottom: 20px; }
.goal { position: relative; width: 136px; height: 136px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--d-surface-2); stroke-width: 12; }
.ring .ring__val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.demo.play .ring__val { animation: ring 1.6s var(--ease-out) .3s forwards; }
@keyframes ring { to { stroke-dashoffset: .14; } }
.goal__val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.goal__val strong { font: 800 1.8rem/1 var(--font-display); color: #fff; letter-spacing: -.04em; }
.goal__val small { font-size: .7rem; color: var(--d-label-2); }
.rank { display: grid; gap: 8px; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--d-surface-2); color: #fff; font-size: .84rem; font-weight: 600; opacity: 0; transform: translateY(8px); }
.rank b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: .7rem; }
.rank li:first-child b { background: #ffb020; color: #1d1d1f; }
.rank span { margin-left: auto; padding-left: 10px; color: var(--d-label-2); font-weight: 500; font-size: .76rem; }
.demo.play .rank li { animation: pop .45s var(--ease-out) forwards; animation-delay: calc(.6s + var(--i) * .2s); }

/* ========== 07 · Portais ========== */
.portals { padding: clamp(100px, 15vh, 160px) 0; background: var(--bg); color: var(--label); }
.portals__head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.portals__head h2 { color: var(--label); font-size: clamp(2rem, 4.2vw, 3.4rem); }
.portals__head p { color: var(--label-2); font-size: 1.12rem; }
.portals__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.portal { text-align: center; }
.portal h3 { margin: 24px 0 6px; font-size: 1.2rem; }
.portal p { color: var(--label-2); font-size: .94rem; margin: 0 auto; max-width: 260px; }
.phone { width: min(220px, 100%); aspect-ratio: 9 / 17.5; margin-inline: auto; padding: 8px; border-radius: 38px; background: #1d1d1f; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease-out); }
.portal:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }
.phone__screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: var(--bg); padding: 34px 14px 14px; text-align: left; font-size: 12px; }
.phone__screen::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; border-radius: 999px; background: #1d1d1f; }
.phone__screen small { display: block; color: var(--label-2); font-size: 11px; }
.phone__screen strong { display: block; font: 800 17px/1.2 var(--font-display); letter-spacing: -.02em; margin: 3px 0 10px; }
.ps-logo { display: block; font: 800 14px/1 var(--font-display); color: var(--accent); margin-bottom: 12px; letter-spacing: -.02em; }
.ps-search { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--fill); color: var(--label-2); font-size: 11px; margin-bottom: 12px; }
.ps-search .icon { width: 13px; height: 13px; }
.ps-thumb { height: 92px; border-radius: 12px; background: linear-gradient(160deg, var(--accent-soft), #d2d2d7); margin-bottom: 8px; }
.ps-thumb--2 { height: 70px; background: linear-gradient(160deg, #e8e8ed, var(--accent-soft)); margin-top: 12px; }
.ps-line { height: 9px; border-radius: 5px; background: var(--fill); margin-bottom: 6px; width: 86%; }
.ps-line--s { width: 50%; background: var(--accent-soft); }
.ps-owner ul { margin-top: 14px; display: grid; gap: 2px; }
.ps-owner li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--fill); }
.ps-owner li span { color: var(--label-2); }
.ps-pix { display: block; text-align: center; padding: 10px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; margin-bottom: 14px; }
.ps-ticket { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 600; font-size: 11.5px; }
.ps-ticket .icon { color: var(--accent-text); }
.ps-ticket .badge { justify-self: start; }
.ps-mini { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 7px; }
.ps-mini > span { width: 40px; height: 40px; border-radius: 9px; background: linear-gradient(160deg, var(--accent-soft), #c7c7cc); flex-shrink: 0; }
.ps-mini > span.b2 { background: linear-gradient(160deg, #e8e8ed, #aeaeb2); } .ps-mini > span.b3 { background: linear-gradient(160deg, #fdf3e1, #d2d2d7); }
.ps-mini div { flex: 1; } .ps-mini b { display: block; font-size: 12px; } .ps-mini small { font-size: 10.5px; }
.ps-mini i { font-style: normal; color: var(--danger); font-size: 14px; }

/* ========== 08 · Segurança ========== */
.secure { padding: clamp(100px, 15vh, 160px) 0; background: var(--d-bg); }
.secure__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.secure h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.4rem); }
.secure__grid > div > p { color: var(--d-label-2); font-size: 1.12rem; max-width: 440px; }
.secure__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.secure__list li { display: flex; gap: 16px; padding: 22px; border-radius: 22px; background: var(--d-surface); border: 1px solid rgba(255,255,255,.05); }
.secure__list .ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-glow), .18); color: var(--accent-text-dark); }
.secure__list .ico .icon { width: 20px; height: 20px; }
.secure__list h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.secure__list p { color: var(--d-label-2); font-size: .9rem; margin: 0; }

/* ========== 09 · Final ========== */
.final { position: relative; overflow: hidden; padding: clamp(110px, 18vh, 190px) 0; background: var(--d-bg); text-align: center; border-top: 1px solid rgba(255,255,255,.06); }
.final__glow { position: absolute; left: 50%; top: 100%; width: 120vmax; height: 80vmax; transform: translate(-50%, -55%); border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-glow), .45), transparent); pointer-events: none; }
.final__inner { position: relative; z-index: 1; }
.final__icon { width: 76px; height: 76px; margin: 0 auto 30px; filter: drop-shadow(0 18px 40px rgba(var(--accent-glow), .55)); }
.final h2 { color: #fff; font-size: clamp(2.3rem, 6vw, 4.8rem); letter-spacing: -.045em; }
.final p { color: var(--d-label-2); font-size: 1.15rem; max-width: 560px; margin: 0 auto 34px; }
.final__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.footer { background: var(--d-bg); color: var(--d-label-2); border-top: 1px solid var(--d-separator); padding: 36px 0; font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand__word { color: #fff; }
.footer__brand p { margin: 6px 0 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { text-decoration: none; } .footer__links a:hover { color: #fff; }
.footer__copy { margin: 0; width: 100%; color: #636366; font-size: .8rem; }

.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.fab.is-on { transform: scale(1); }
.fab .icon { width: 28px; height: 28px; }

/* ------------------------------------------------------------- responsivo */
@media (max-width: 1180px) {
  .secure__grid { grid-template-columns: 1fr; }
  .secure__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 861px) and (max-height: 820px) {
  .steps h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
  .steps__list { margin-top: 20px; gap: 14px; }
  .steps__item h3 { font-size: 1.12rem; }
  .steps__item p { font-size: .92rem; }
  .device { max-height: 66vh; }
}
@media (max-width: 1080px) {
  .topbar__nav { display: none; }
  .topbar__actions { margin-left: auto; }
  .rail { display: none; }
  .portals__grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
}
@media (max-width: 860px) {
  body { font-size: 1rem; }
  .topbar__actions { display: none; }
  .topbar__menu { display: block; }
  .hero__copy { padding-top: calc(var(--header-h) + 4vh); }
  .hero__frame { --drop: .5; }
  .hero__caption {
    --c: clamp(0, calc((var(--p) - .55) / .3), 1);
    display: block; position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 9vh); z-index: 2;
    padding: 0 24px; text-align: center; opacity: var(--c); transform: translateY(calc(30px * (1 - var(--c))));
  }
  .hero__caption p { font: 800 1.7rem/1.15 var(--font-display); letter-spacing: -.03em; color: #fff; margin: 0; }
  .col header em { display: none; }

  .steps__stage { grid-template-columns: 1fr; gap: 22px; align-content: center; }
  .steps h2 { font-size: 1.9rem; margin-bottom: 0; }
  .steps .eyebrow { margin-bottom: 10px; }
  .steps__list { margin-top: 14px; display: grid; }
  .steps__item { grid-area: 1 / 1; opacity: 0; transition: opacity .35s var(--ease); }
  .steps__item.is-active { opacity: 1; }
  .steps__item p { font-size: .95rem; }
  .device { aspect-ratio: auto; height: 46vh; max-height: none; }
  .layer { padding: 14px; }
  .kanban { gap: 6px; } .col { padding: 5px; } .kcard { padding: 7px; }
  .kcard small, .kcard__foot { display: none; }
  .layer--kanban.is-active .kcard--move { animation-name: moveCardSm; }
  @keyframes moveCardSm { 0%, 30% { transform: translateX(calc(-200% - 12px)); } 100% { transform: none; } }
  .toast-mini { font-size: .72rem; }

  .demos { grid-template-columns: 1fr; }
  .secure__grid { grid-template-columns: 1fr; }
  .stats { gap: 14px; }
}
@media (max-width: 520px) {
  .wrap, .topbar__inner, .steps__stage, .track__head, .track__bar { width: calc(100% - 32px); }
  .track__list { padding-left: 16px; }
  .portals__grid { grid-template-columns: 1fr 1fr; gap: 14px; row-gap: 40px; }
  .portal p { font-size: .84rem; }
  .phone__screen { padding: 30px 10px 10px; }
  .phone__screen > div { zoom: .8; }
  .portal h3 { font-size: 1.05rem; }
  .demo__stage { height: 230px; }
  .demo__stage--radar, .demo__stage--goal { gap: 18px; }
  .radar, .goal { width: 110px; height: 110px; }
  .final__actions .btn { width: 100%; }
  .secure__list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .io { opacity: 1; transform: none; }
}

/* O "G" do ícone sobre o azul */
:is(.brand__icon, .final__icon) g path:first-child { stroke: var(--on-accent); }
:is(.brand__icon, .final__icon) g path:last-child { fill: var(--on-accent); }
