/* Landing do Presente.
 * Visual da página que estava em produção, aprovado pelo usuário: Plus Jakarta
 * Sans nos títulos e botões, Inter no texto, menta-azulado suave (#7cbfa2 →
 * #6aaec8) e fundo grafite com grade. As cores de status são as do app
 * (app.py, STATUS). Brilho contido de propósito: sem halos, sem desfoque de
 * fundo e sem pós-processamento no 3D. */

:root {
  --bg: #0a0c10;
  --surface: #12151c;
  --surface-2: #0d0f14;
  --surface-3: #181c26;
  --border: #1e2330;
  --border-2: #2b3242;
  --text: #eef0f6;
  --text-muted: #8892a4;
  --text-dim: #7a8295;
  --accent: #7cbfa2;
  --accent-2: #6aaec8;
  --accent-text: #0a0c10;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --st-presente: #5aaa7a;  --ink-presente: #6fbf8e;
  --st-home: #5578b8;      --ink-home: #84a4dc;
  --st-reuniao: #b08a30;   --ink-reuniao: #d4a843;
  --st-pausa: #7a9eb8;     --ink-pausa: #93b5cc;
  --st-intervalo: #8855b8; --ink-intervalo: #aa82d6;
  --st-ausente: #b85555;   --ink-ausente: #e07a7a;
  --brand: #3FD9A0;
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* grade e luz de fundo da página antiga; gradiente simples no lugar do desfoque */
body::before, body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background-image:
    linear-gradient(rgba(124, 191, 162, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 191, 162, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
body::after {
  background:
    radial-gradient(640px 640px at 4% -8%, rgba(124, 191, 162, 0.07), transparent 70%),
    radial-gradient(560px 560px at 100% 106%, rgba(106, 174, 200, 0.06), transparent 70%);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(124, 191, 162, 0.35); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.center { text-align: center; }
.tnum { font-variant-numeric: tabular-nums; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-text); font-weight: 600;
}
.skip:focus { top: 16px; }
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ───────────── Símbolo ───────────── */
.mark { overflow: visible; }
.mark .m-arc, .mark .m-dot, .mark .m-glint { transform-origin: 32px 32px; }
.mark .m-arc { transition: transform 1s var(--ease-io); }
.mark .m-dot { transition: transform 0.5s var(--ease-spring); }
.mark .m-glint { stroke-dasharray: 9 91; stroke-dashoffset: 9; opacity: 0; }
@media (hover: hover) {
  .nav-logo:hover .m-arc, .foot-logo:hover .m-arc { transform: rotate(360deg); }
  .nav-logo:hover .m-dot, .foot-logo:hover .m-dot { transform: scale(1.15); }
  .nav-logo:hover .m-glint, .foot-logo:hover .m-glint { animation: glint 0.95s 0.05s var(--ease-io); }
}
@keyframes glint {
  0% { stroke-dashoffset: 9; opacity: 0; }
  15% { opacity: 0.7; }
  85% { opacity: 0.7; }
  100% { stroke-dashoffset: -91; opacity: 0; }
}

/* ───────────── Abertura ───────────── */
.intro { display: none; }
html.intro-active .intro {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  animation: introFallback 0.4s 3.4s forwards;
}
html.intro-active .intro.js-controlled { animation: none; }
@keyframes introFallback { to { opacity: 0; visibility: hidden; } }
.intro-bg { position: absolute; inset: 0; background: var(--bg); }
.intro-bg::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 70vmax; height: 70vmax; translate: -50% -50%;
  background: radial-gradient(circle, rgba(124, 191, 162, 0.07) 0%, transparent 55%);
  opacity: 0; animation: fadeIn 1.6s 0.2s var(--ease-out) forwards;
}
.intro-lockup {
  position: relative; display: flex; align-items: center; gap: 28.8px;
  font-family: 'Archivo', var(--font); font-size: 52.8px; font-weight: 700; font-stretch: 88%;
  letter-spacing: -0.028em; line-height: 1; will-change: transform;
}
.intro-markwrap { position: relative; width: 72px; height: 72px; flex: none; }
.intro-mark { width: 72px; height: 72px; overflow: visible; }
.i-track { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 0.75s 0.1s var(--ease-out) forwards; }
.i-arc { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 0.8s 0.32s var(--ease-io) forwards; }
.i-glint { stroke-dasharray: 10 90; stroke-dashoffset: 10; opacity: 0; animation: introGlint 0.75s 1.05s var(--ease-io) forwards; }
.i-dot { transform-origin: 32px 32px; transform: scale(0.4); opacity: 0; animation: pop 0.6s 0.86s var(--ease-spring) forwards; }
.intro-sparks { position: absolute; inset: 0; pointer-events: none; }
.intro-sparks i {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%;
  background: #A8DCC6; opacity: 0; animation: spark 0.9s 0.92s var(--ease-out) forwards;
}
.intro-word { display: inline-flex; overflow: hidden; padding: 0.12em 0.04em 0.16em; margin: -0.12em -0.04em -0.16em; }
.intro-word span { display: inline-block; transform: translateY(110%); animation: rise 0.7s calc(1.02s + var(--i) * 34ms) var(--ease-out) forwards; }
.intro-word .dot { color: var(--brand); }
.intro.finishing * { animation-duration: 0.2s !important; animation-delay: 0s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { opacity: 1; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes introGlint { 0% { stroke-dashoffset: 10; opacity: 0; } 20% { opacity: 0.6; } 80% { opacity: 0.6; } 100% { stroke-dashoffset: -90; opacity: 0; } }
@keyframes spark {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(6px); }
  25% { opacity: 0.7; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(50px); }
}

/* ───────────── Navegação ───────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10, 12, 16, 0.92); border-bottom: 1px solid var(--border);
}
/* desfoque só onde a placa de vídeo aguenta sem pesar na rolagem */
@media (hover: hover) and (pointer: fine) {
  .nav { background: rgba(10, 12, 16, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.nav-logo, .foot-logo { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; }
.nav-logo .mark { width: 34px; height: 34px; }
.nav-word .dot, .foot-logo .dot { color: var(--brand); }
html.intro-active .nav-logo { opacity: 0; animation: showLate 0.4s 3.6s forwards; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.2s ease; }
@media (hover: hover) { .nav-links a:hover { color: var(--text); } }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-enter .short { display: none; }

/* ───────────── Botões ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out), border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn .arrow { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease-out); }
.btn-primary { color: var(--accent-text); background: var(--grad); box-shadow: 0 0 40px rgba(124, 191, 162, 0.2); }
.btn-ghost { color: var(--text-muted); border-color: var(--border); font-weight: 600; }
.btn-outline { color: var(--text-muted); border-color: var(--border); font-family: var(--font); font-weight: 500; }
@media (hover: hover) {
  .btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
  .btn-ghost:hover, .btn-outline:hover { border-color: var(--accent-2); color: var(--text); }
  .btn:hover .arrow { transform: translateX(3px); }
}
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; min-height: 46px; border-radius: 10px; }

/* ───────────── Primeira tela ───────────── */
.hero { position: relative; padding: calc(var(--nav-h) + 112px) 0 92px; }
.hero-inner { width: min(100% - 2 * var(--gutter), 900px); margin-inline: auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; padding: 6px 16px;
  border-radius: 100px; background: rgba(124, 191, 162, 0.08); border: 1px solid rgba(124, 191, 162, 0.2);
  font-size: 13px; color: var(--accent);
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-title {
  margin-bottom: 24px; font-family: var(--font-head); font-size: clamp(44px, 7vw, 80px);
  font-weight: 800; line-height: 1.05; letter-spacing: -1.5px;
}
.hero-sub { max-width: 560px; margin: 0 auto 48px; font-size: 18px; line-height: 1.7; color: var(--text-muted); }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* entrada da primeira tela: o JS liga .hero-in; sem o JS, aparece sozinha */
.js:not(.reduced) [data-hero] { opacity: 0; }
.js.hero-in:not(.reduced) [data-hero] { animation: fadeUp 0.6s var(--ease-out) both; }
.js.hero-in [data-hero="2"] { animation-delay: 0.1s; }
.js.hero-in [data-hero="3"] { animation-delay: 0.22s; }
.js.hero-in [data-hero="4"] { animation-delay: 0.34s; }
.js:not(.ready):not(.reduced) [data-hero] { animation: showLate 0.6s 2.8s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes showLate { to { opacity: 1; } }

/* entrada das seções: animação com preenchimento "backwards", para não brigar
   com o :hover nem com estados de rolagem depois que termina */
.js:not(.reduced) [data-reveal]:not(.in) { opacity: 0; }
.js [data-reveal].in { animation: revealUp 0.7s var(--ease-out) var(--d, 0s) backwards; }
@keyframes revealUp { from { opacity: 0; translate: 0 26px; } }

/* ───────────── Demonstração ───────────── */
.demo { position: relative; padding-bottom: 12px; }
.app {
  position: relative; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.app-bar {
  display: flex; align-items: center; gap: 14px; padding: 13px 20px;
  background: var(--surface-2); border-bottom: 1px solid var(--border); border-radius: 19px 19px 0 0;
}
.app-dots { display: flex; gap: 8px; flex: none; }
.app-dots i { width: 12px; height: 12px; border-radius: 50%; background: #e05c5c; }
.app-dots i:nth-child(2) { background: #f0b429; }
.app-dots i:nth-child(3) { background: #5aaa7a; }
.app-url {
  flex: 1; min-width: 0; padding: 5px 14px; border-radius: 6px; background: var(--border);
  font-size: 12px; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-badge {
  flex: none; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: #e3b65c; background: rgba(227, 182, 92, 0.08); border: 1px solid rgba(227, 182, 92, 0.25);
}
.app-body { display: grid; grid-template-columns: 208px minmax(0, 1fr) 290px; min-height: 600px; }
.app-side { display: flex; flex-direction: column; gap: 18px; padding: 18px 14px; border-right: 1px solid var(--border); }
.app-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 6px; }
.app-brand .mark { width: 26px; height: 26px; flex: none; }
.app-brand strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.app-brand small { display: block; font-size: 12px; color: var(--text-dim); }
.app-side ul { display: grid; gap: 2px; }
.app-side li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--text-muted); }
.app-side li svg { width: 18px; height: 18px; flex: none; }
.app-side li.on { color: var(--text); background: rgba(124, 191, 162, 0.08); }
.app-side li.on svg { color: var(--accent); }
.app-plan { margin-top: auto; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.app-plan strong { display: block; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; }
.app-plan .bar { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; }
.app-plan .bar i { display: block; height: 100%; width: 24%; border-radius: inherit; background: var(--grad); }
.app-plan small { display: block; margin-top: 8px; color: var(--text-dim); font-size: 12px; }
.app-main { padding: 22px 24px 26px; min-width: 0; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-title { font-family: var(--font-head); font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.app-head p { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--text-dim); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-presente); flex: none; animation: blink 2s infinite; }
.app-ctrls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { min-height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--text-muted); transition: color 0.2s ease, background-color 0.2s ease; }
.seg button[aria-pressed="true"] { color: var(--text); background: var(--surface-3); }
.sim { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: 13px; color: var(--text-muted); border: 1px solid var(--border); background: var(--surface-2); }
.sim-track { position: relative; width: 30px; height: 17px; border-radius: 10px; background: var(--border-2); transition: background-color 0.3s ease; }
.sim-thumb { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--text); transition: transform 0.3s var(--ease-out); }
.sim[aria-pressed="true"] { color: var(--text); }
.sim[aria-pressed="true"] .sim-track { background: var(--accent); }
.sim[aria-pressed="true"] .sim-thumb { transform: translateX(13px); background: var(--accent-text); }

.kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; margin: 20px 0 16px; }
.kpi { --c: var(--accent); position: relative; padding: 15px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.kpi::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--c); opacity: 0.8; }
.kpi p { font-size: 12.5px; color: var(--text-dim); }
.kpi strong { display: block; margin-top: 4px; font-family: var(--font-head); font-size: 28px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-dim); }
.kpi strong.bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { from { transform: translateY(-35%); opacity: 0; } }
.kpi-main { display: flex; align-items: center; gap: 14px; }
.kpi-main::before { background: var(--grad); }
.ring { --pct: 0.5; width: 54px; height: 54px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .r-bg { stroke: var(--border); }
.ring .r-fg { stroke: var(--accent); stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1px * (1 - var(--pct))); transition: stroke-dashoffset 0.8s var(--ease-out); }

/* cartão de pessoa: faixa de status no topo, como no painel de verdade */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pc { --c: var(--st-presente); --ci: var(--ink-presente); position: relative; perspective: 1100px; min-height: 178px; transition: opacity 0.4s ease, scale 0.4s var(--ease-out); }
.pc.dim { opacity: 0.3; scale: 0.97; }
.pc-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform 0.7s var(--ease-io); }
.pc.flipped .pc-inner { transform: rotateY(180deg); }
.pc-front, .pc-back {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; text-align: left;
  padding: 18px 16px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.5s ease;
}
.pc-front::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); transition: background-color 0.5s ease; }
.pc-back { transform: rotateY(180deg); gap: 10px; }
.pc-front { cursor: pointer; }
@media (hover: hover) {
  .pc-front:hover { border-color: var(--border-2); }
  .pc-front:hover .pc-edit { opacity: 1; transform: none; }
}
/* flutuando na primeira tela: sombra de profundidade e um reflexo leve */
.pc.floating .pc-front { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02); }
.pc-front::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 42%);
  transition: opacity 0.5s ease;
}
.pc.floating .pc-front::after { opacity: 1; }
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-av {
  width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--accent-text);
  background: linear-gradient(135deg, var(--c), var(--ci));
}
.pc-who { display: grid; min-width: 0; }
.pc-who strong { font-size: 14.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-who small { font-size: 12.5px; color: var(--text-dim); }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-dim); }
.pc-meta b { font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pc-edit { color: var(--ci); opacity: 0; transform: translateX(-4px); transition: opacity 0.3s ease, transform 0.3s var(--ease-out); }
.pc-hist { display: flex; gap: 4px; margin-top: auto; height: 5px; }
.pc-hist i { height: 100%; border-radius: 3px; background: color-mix(in srgb, var(--c) 42%, transparent); }
.pc-hist i.now { background: var(--c); }
.pc-ripple { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(circle at 34px 36px, color-mix(in srgb, var(--c) 28%, transparent), transparent 55%); }
.pc.changed .pc-ripple { animation: ripple 1s var(--ease-out); }
@keyframes ripple { 0% { opacity: 1; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2); } }
.pc-back-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.pc-back-top strong { color: var(--text); font-weight: 600; }
.pc-close { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--text-muted); background: var(--surface-3); }
.pc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.opt {
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: 8px;
  font-size: 12.5px; color: var(--text-muted); background: var(--surface-3); border: 1px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.opt i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.opt[aria-pressed="true"] { color: var(--text); border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 14%, var(--surface-3)); }
@media (hover: hover) { .opt:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 50%, transparent); } }

.chip {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 4px 11px; border-radius: 100px; font-size: 12.5px; font-weight: 500; line-height: 1.4; white-space: nowrap;
  color: var(--ci, var(--ink-presente)); background: color-mix(in srgb, var(--c, var(--st-presente)) 16%, transparent);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.app-feed { display: flex; flex-direction: column; gap: 16px; padding: 22px 20px; border-left: 1px solid var(--border); border-radius: 0 0 19px 0; background: rgba(255, 255, 255, 0.012); }
.feed-head { display: flex; align-items: center; justify-content: space-between; }
.feed-head h3 { font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.feed-head span { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.feed { display: grid; gap: 2px; }
.feed li { --c: var(--accent); display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.feed li time { font-size: 12px; color: var(--text-dim); padding-top: 1px; font-variant-numeric: tabular-nums; }
.feed li i { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--c); }
.feed li strong { color: var(--text); font-weight: 600; }
.feed li em { font-style: normal; color: var(--accent); }
.feed li.new { animation: feedIn 0.6s var(--ease-out); }
@keyframes feedIn { 0% { opacity: 0; transform: translateY(-8px); background: color-mix(in srgb, var(--c) 12%, transparent); } 100% { opacity: 1; transform: none; background: transparent; } }
.dist-wrap { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.dist-wrap > p { margin-bottom: 10px; font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.dist { display: flex; gap: 3px; height: 8px; border-radius: 5px; overflow: hidden; }
.dist span { flex: 1 1 0; min-width: 0; background: var(--c); transition: flex-grow 0.8s var(--ease-out), opacity 0.4s ease; }
.dist span.zero { opacity: 0; }
.dist-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 14px; font-size: 12px; color: var(--text-dim); }
.dist-legend li { display: flex; align-items: center; gap: 8px; }
.dist-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.demo-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-dim); }
.demo-note strong { color: var(--text-muted); font-weight: 600; }

/* ───────────── Seções ───────────── */
.section { position: relative; padding: clamp(88px, 10vw, 140px) 0; }
.section-label { margin-bottom: 16px; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.section-title {
  margin-bottom: 56px; font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; text-wrap: balance;
}
.section-title .soft { color: var(--text-muted); }
.section-lede { max-width: 60ch; margin: -36px 0 56px; font-size: 17px; color: var(--text-muted); }
.center .section-lede { margin-inline: auto; }

/* ───────────── Funcionalidades ───────────── */
.features { padding-bottom: clamp(56px, 6vw, 80px); }
.features .container { max-width: 1100px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  min-height: 320px; padding: 28px; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) { .tile:hover { border-color: rgba(124, 191, 162, 0.3); transform: translateY(-4px); } }
.tile-visual { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 150px; }
.tile-copy { position: relative; }
.tile-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent);
  background: rgba(124, 191, 162, 0.1); border: 1px solid rgba(124, 191, 162, 0.2);
}
.tile-icon svg { width: 21px; height: 21px; }
.tile h3 { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.3; }
.tile p { margin-top: 8px; max-width: 44ch; font-size: 14.5px; color: var(--text-muted); }
.pro {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px;
  font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fbbf24; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.25);
}
.t-rt { grid-column: 1 / 8; grid-row: span 2; }
.t-rt .tile-copy { order: -1; }
.t-tl { grid-column: 8 / 13; }
.t-cs { grid-column: 8 / 13; }
.t-ac { grid-column: 1 / 5; }
.t-rs { grid-column: 5 / 9; }
.t-is { grid-column: 9 / 13; }

/* tempo real */
.rt { display: grid; grid-template-columns: 176px minmax(56px, 1fr) minmax(0, 300px); align-items: center; width: 100%; }
.rt-phone {
  position: relative; padding: 26px 12px 12px; border-radius: 24px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  box-shadow: inset 0 0 0 4px var(--bg), 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}
.rt-notch { position: absolute; top: 9px; left: 50%; width: 44px; height: 6px; translate: -50% 0; border-radius: 4px; background: #05070a; }
.rt-ph-title { margin: 8px 4px 12px; font-size: 12px; color: var(--text-dim); }
.rt-opt {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px; margin-bottom: 7px; border-radius: 10px;
  font-size: 12.5px; color: var(--text-muted); background: var(--surface-3); border: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.rt-opt i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.rt-opt.on { color: var(--text); background: color-mix(in srgb, var(--c) 15%, var(--surface-3)); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.rt-opt.tap::after { content: ''; position: absolute; left: 70%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: rgba(238, 240, 246, 0.35); animation: tap 0.6s var(--ease-out) forwards; }
@keyframes tap { from { transform: scale(0.2); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }
.rt-beam { width: 100%; height: 140px; overflow: visible; }
.rt-beam .rt-track { fill: none; stroke: rgba(124, 191, 162, 0.18); stroke-width: 1.5; stroke-dasharray: 3 5; }
.rt-beam .rt-pulse { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 18 100; stroke-dashoffset: 18; opacity: 0; }
.rt.fire .rt-pulse { animation: beam 0.8s 0.12s var(--ease-io) forwards; }
@keyframes beam { 0% { stroke-dashoffset: 18; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
.rt-board { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9); }
.rt-board-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--text-dim); }
.rt-live { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-presente); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.rt-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 2s infinite; }
.rt-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; font-size: 13px; transition: background-color 0.5s ease; }
.rt-row .av { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--accent-text); background: linear-gradient(135deg, var(--c), var(--ci)); }
.rt-row .chip { font-size: 11.5px; padding: 3px 9px; }
.rt-row.you { background: rgba(255, 255, 255, 0.03); }
.rt-row.flash { animation: rowFlash 1s var(--ease-out); }
@keyframes rowFlash { 0% { background: color-mix(in srgb, var(--c) 22%, transparent); } 100% { background: rgba(255, 255, 255, 0.03); } }

@media (min-width: 1081px) {
  .t-rt .rt { grid-template-columns: 200px minmax(56px, 1fr) minmax(0, 330px); }
  .t-rt .rt-opt { min-height: 46px; font-size: 13.5px; }
  .t-rt .rt-ph-title { font-size: 13px; }
  .t-rt .rt-board { padding: 16px; }
  .t-rt .rt-row { padding: 12px 10px; font-size: 14px; }
  .t-rt .rt-row .av { width: 32px; height: 32px; font-size: 13px; }
  .t-rt .rt-row .chip { font-size: 12px; padding: 4px 10px; }
}

/* linha do tempo */
.tl { width: 100%; display: block; align-self: center; }
.tl-top { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 12.5px; color: var(--text-dim); }
.tl-top .tnum { color: var(--text); font-weight: 500; }
.tl-rows { position: relative; display: grid; gap: 10px; }
.tl-row { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.tl-bar { position: relative; height: 16px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.tl-bar i { position: absolute; top: 0; bottom: 0; background: var(--c); box-shadow: inset -2px 0 0 var(--surface); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out); }
.tl.static .tl-bar i, .tl.playing .tl-bar i { transform: none; }
.tl-lane { position: absolute; left: 68px; right: 0; top: -6px; bottom: -6px; overflow: hidden; pointer-events: none; }
.tl-head { position: absolute; inset: 0; will-change: transform; }
.tl-head::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--text); opacity: 0.85; }
.tl.static .tl-head { transform: translateX(56%); }
.tl-axis { display: flex; justify-content: space-between; margin: 10px 0 0 68px; font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* status personalizados */
.cs { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 14px; }
.cs-label { font-size: 11px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.cs-field { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; margin-top: 8px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border-2); font-size: 15px; }
.cs-icon-box { position: relative; width: 22px; height: 22px; flex: none; }
.cs-ico { position: absolute; inset: 0; color: var(--text); opacity: 0; transform: scale(0.6) rotate(-20deg); transition: opacity 0.3s ease, transform 0.45s var(--ease-spring); }
.cs-ico.on { opacity: 1; transform: none; }
.caret { width: 2px; height: 20px; margin-left: -6px; background: var(--accent); animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.cs-swatches { display: flex; gap: 8px; margin-top: 12px; }
.sw { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px transparent; transition: box-shadow 0.3s ease, transform 0.3s var(--ease-spring); }
.sw.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); transform: scale(1.08); }
.cs-preview { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.cs-chip { letter-spacing: 0; text-transform: none; font-size: 13px; transition: color 0.35s ease, background-color 0.35s ease; }

/* controle de acesso */
.ac { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 14px; }
.ac-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border-2); font-size: 13px; }
.ac-seg span { position: relative; z-index: 1; display: grid; place-items: center; min-height: 34px; color: var(--text-muted); transition: color 0.35s ease; }
.ac:not(.as-agent) [data-role="admin"], .ac.as-agent [data-role="agent"] { color: var(--accent-text); font-weight: 600; }
.ac-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 7px; background: var(--grad); transition: transform 0.5s var(--ease-io); }
.ac.as-agent .ac-thumb { transform: translateX(100%); }
.ac-list { display: grid; gap: 6px; }
.ac-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text-muted); background: var(--surface-2); transition: color 0.35s ease, opacity 0.35s ease; }
.ac-list b { position: relative; width: 18px; height: 18px; flex: none; border-radius: 5px; background: rgba(124, 191, 162, 0.14); transition: background-color 0.35s ease; }
.ac-list b::before { content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: opacity 0.3s ease; }
.ac-list b::after { content: ''; position: absolute; left: 5px; right: 5px; top: 8px; height: 2px; border-radius: 1px; background: var(--text-dim); opacity: 0; transition: opacity 0.3s ease; }
.ac.as-agent .ac-list li.admin { color: var(--text-dim); opacity: 0.6; }
.ac.as-agent .ac-list li.admin b { background: var(--surface-3); }
.ac.as-agent .ac-list li.admin b::before { opacity: 0; }
.ac.as-agent .ac-list li.admin b::after { opacity: 1; }
.ac-list li:nth-child(3) { transition-delay: 0.05s; }
.ac-list li:nth-child(4) { transition-delay: 0.1s; }

/* responsivo */
.rs { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: 12px; }
.rs-frame {
  width: 100%; height: 150px; padding: 8px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border-2); overflow: hidden;
  transition: width 0.7s var(--ease-io), height 0.7s var(--ease-io), border-radius 0.7s var(--ease-io);
}
.rs[data-mode="t"] .rs-frame { width: 64%; height: 166px; border-radius: 14px; }
.rs[data-mode="p"] .rs-frame { width: 34%; height: 172px; border-radius: 18px; }
.rs-bar { display: flex; gap: 4px; margin-bottom: 8px; }
.rs-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-2); }
.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rs[data-mode="t"] .rs-grid { grid-template-columns: repeat(2, 1fr); }
.rs[data-mode="p"] .rs-grid { grid-template-columns: 1fr; }
.rs-card { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--surface); border-top: 2px solid var(--c); }
.rs-card::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; }
.rs-card::after { content: ''; height: 4px; flex: 1; border-radius: 2px; background: var(--border-2); }
.rs-label { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* isolado por empresa */
.is { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 8px; position: relative; }
.is-box { position: relative; display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-2); overflow: hidden; }
.is-box > span:first-child { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-space { position: relative; height: 92px; border-radius: 8px; background: rgba(124, 191, 162, 0.04); border: 1px dashed rgba(124, 191, 162, 0.25); overflow: hidden; }
.is-space i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); left: var(--x); top: var(--y); opacity: 0.85; }
.is-space i:nth-child(2) { background: var(--accent-2); }
.is-space i:nth-child(3) { background: var(--text-muted); }
.is.playing .is-space i { animation: drift var(--d) ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(var(--dx), var(--dy)); } }
.is-lock { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); }
.is-lock svg { width: 14px; height: 14px; }
.is-scan { position: absolute; top: -10px; bottom: -10px; width: 30%; left: -30%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(124, 191, 162, 0.08), transparent); }
.is.playing .is-scan { animation: scan 3.6s var(--ease-io) infinite; }
@keyframes scan { to { left: 100%; } }

/* mini-demonstrações paradas fora da tela */
.tile-visual:not(.playing) * { animation-play-state: paused; }
.tile-visual.static * { animation: none !important; }

/* ───────────── Clareza para quem lidera ───────────── */
.xp { position: relative; padding: clamp(80px, 10vw, 130px) 0 24px; }
.xp-sticky { position: relative; }
.xp-line { font-family: var(--font-head); font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.xp-note { margin-top: 16px; max-width: 46ch; font-size: 17px; color: var(--text-muted); }
.xp-note strong { color: var(--text); font-weight: 600; }
.xp-stage { position: relative; margin: 26px calc(-1 * var(--gutter)) 10px; aspect-ratio: 1 / 0.9; max-height: 560px; }
.xp-stage canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.team3d-on .xp-stage canvas { opacity: 1; }
.no-webgl .xp-stage { display: none; }
.xp-tag {
  position: absolute; left: 0; top: 0; padding: 4px 10px; border-radius: 100px; white-space: nowrap; pointer-events: none;
  font-size: 12px; font-weight: 500; color: var(--text-muted); background: rgba(10, 12, 16, 0.78); border: 1px solid var(--border);
  opacity: 0; transition: opacity 0.6s ease;
}
.xp-stage.tags-on .xp-tag { opacity: 1; }
.xp-b2 { margin-top: 4px; }
.xp-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 13px; color: var(--text-dim); transition: opacity 0.6s ease; }
.xp-legend li { display: flex; align-items: center; gap: 8px; }
.xp-legend i { width: 8px; height: 8px; border-radius: 50%; background: #4c5468; }
.xp-legend li.on i { background: var(--accent); }

/* no computador: a seção fica presa e o texto avança em etapas com a cena */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .xp { height: 240vh; padding: 0; }
  .xp-sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
  .xp-copy { padding-top: var(--nav-h); }
  .xp-block, .xp-legend { max-width: 440px; }
  .xp-stage {
    position: absolute; top: 0; right: 0; bottom: 0; width: 62%; height: auto; margin: 0; aspect-ratio: auto; max-height: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%); mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
  }
  .xp-b2 { margin-top: 44px; }
  .xp-block { transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out); }
  .xp[data-step="1"] .xp-b2 { opacity: 0; translate: 0 24px; }
  .xp[data-step="1"] .xp-legend, .xp[data-step="2"] .xp-legend { opacity: 0; }
  .xp:not([data-step="1"]) .xp-b1 { opacity: 0.38; }
  /* sem WebGL não há cena para acompanhar: vira uma seção comum, com tudo visível */
  .no-webgl .xp { height: auto; padding: clamp(80px, 10vw, 130px) 0 24px; }
  .no-webgl .xp-sticky { position: relative; height: auto; min-height: 0; display: block; overflow: visible; }
  .no-webgl .xp-copy { padding-top: 0; }
  .no-webgl .xp .xp-b1, .no-webgl .xp .xp-b2, .no-webgl .xp .xp-legend { opacity: 1; translate: none; }
}

/* ───────────── Planos (a página antiga) ───────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; text-align: left; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s ease, transform 0.2s ease; }
@media (hover: hover) { .plan-card:hover { transform: translateY(-4px); } }
.plan-card.featured { border-color: rgba(124, 191, 162, 0.4); background: linear-gradient(160deg, rgba(124, 191, 162, 0.05), var(--surface)); }
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 14px; border-radius: 100px; background: var(--grad); color: var(--accent-text);
  font-family: var(--font-head); font-size: 11px; font-weight: 700; white-space: nowrap;
}
.plan-tag svg { width: 11px; height: 11px; }
.plan-name { margin-bottom: 6px; font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.plan-agents { margin-bottom: 24px; font-size: 13px; color: var(--text-muted); }
.plan-price {
  margin-bottom: 6px; font-family: var(--font-head); font-size: 38px; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.plan-price--deal { font-size: 28px; line-height: 1.36; }
.plan-price-label { margin-bottom: 28px; font-size: 12px; color: var(--text-dim); }
.plan-features { flex: 1; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: 0; }
.plan-features li::before { content: '✓'; flex: none; width: 12px; color: var(--accent); font-weight: 700; }
.plan-features li.off { color: var(--text-dim); }
.plan-features li.off::before { content: '✗'; color: var(--text-dim); }
.plan-features li.highlight { color: var(--text); font-weight: 500; }
.plan-features li.highlight::before {
  content: ''; height: 12px; background: #fbbf24;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.7 5.6 6.1.8-4.5 4.2 1.1 6.1L12 16.6l-5.4 2.9 1.1-6.1-4.5-4.2 6.1-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.7 5.6 6.1.8-4.5 4.2 1.1 6.1L12 16.6l-5.4 2.9 1.1-6.1-4.5-4.2 6.1-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ───────────── Fechamento ───────────── */
.cta-mark { position: relative; width: 112px; height: 112px; margin: 0 auto 56px; }
.cta-mark svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.cta-mark .c-track, .cta-mark .c-arc { stroke-dasharray: 100; stroke-dashoffset: 100; }
.cta-mark .c-dot { transform-origin: 32px 32px; transform: scale(0.4); opacity: 0; }
.cta-mark.drawn .c-track { animation: draw 1.1s var(--ease-out) forwards; }
.cta-mark.drawn .c-arc { animation: draw 1.2s 0.25s var(--ease-io) forwards; }
.cta-mark.drawn .c-dot { animation: pop 0.7s 1s var(--ease-spring) forwards; }
.cta-mark .c-glint { stroke-dasharray: 8 92; stroke-dashoffset: 8; opacity: 0; }
.cta-mark.drawn .c-glint { animation: introGlint 1s 1.6s var(--ease-io) forwards; }
.cta-rings { position: absolute; inset: -26%; border-radius: 50%; border: 1px solid rgba(124, 191, 162, 0.08); }
.cta-rings::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; border: 1px solid rgba(124, 191, 162, 0.04); }
.cta .hero-btns { margin-top: -20px; }
.cta .section-title { margin-bottom: 52px; }

/* ───────────── Rodapé ───────────── */
.foot { border-top: 1px solid var(--border); padding: 40px 0 44px; }
.foot-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 40px; }
.foot-logo { font-family: 'Archivo', var(--font); font-size: 20px; font-weight: 700; font-stretch: 88%; letter-spacing: -0.028em; }
.foot-logo .mark { width: 28px; height: 28px; }
.foot-row > p { font-size: 13px; color: var(--text-dim); }
.foot-row strong { color: var(--accent); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-size: 13px; color: var(--text-muted); }
.foot-links a, .foot-links button { display: inline-flex; align-items: center; min-height: 44px; transition: color 0.2s ease; }
@media (hover: hover) { .foot-links a:hover, .foot-links button:hover { color: var(--accent); } }
.foot-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }

/* ───────────── Instalar app ───────────── */
.install { border-top: 1px solid var(--border); background: rgba(124, 191, 162, 0.04); }
.install .container { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 24px 0; font-size: 14px; color: var(--text-muted); }

/* ───────────── Modal de entrada (a página antiga) ───────────── */
.overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(0, 0, 0, 0.75); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.overlay.open { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.modal {
  width: 100%; max-width: 420px; padding: 40px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.97); transition: transform 0.25s var(--ease-out);
}
.overlay.open .modal { transform: none; }
.modal-title { margin-bottom: 6px; font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.modal-sub { margin-bottom: 28px; font-size: 14px; color: var(--text-muted); }
.modal-field { margin-bottom: 16px; }
.modal-field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.modal-slug-wrap { display: flex; align-items: center; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.modal-slug-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 191, 162, 0.1); }
.modal-slug-prefix { padding-left: 14px; font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.modal-field input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px 0 2px; border: 0; outline: 0; background: none; font-size: 16px; }
.modal-error { display: none; margin-bottom: 16px; padding: 10px 14px; border-radius: 8px; font-size: 13px; color: #fca5a5; background: rgba(224, 92, 92, 0.1); border: 1px solid rgba(224, 92, 92, 0.3); }
.modal-error.show { display: block; }
.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.modal-actions .btn { flex: 2; border-radius: 10px; }
.modal-actions .btn-ghost { flex: 1; }
.modal-help { margin-top: 16px; text-align: center; font-size: 12px; color: var(--text-dim); }
.modal-help a { color: var(--accent); }
@media (hover: hover) { .modal-help a:hover { text-decoration: underline; } }

/* ───────────── Telas médias ───────────── */
@media (max-width: 1180px) {
  .app-body { grid-template-columns: minmax(0, 1fr) 270px; }
  .app-side { display: none; }
}
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-rt { grid-column: 1 / -1; grid-row: auto; }
  .t-tl, .t-cs, .t-ac, .t-rs { grid-column: auto; }
  .t-is { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .app-body { grid-template-columns: 1fr; }
  .app-feed { border-left: 0; border-top: 1px solid var(--border); border-radius: 0 0 19px 19px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-main { grid-column: 1 / -1; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-row { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --nav-h: 62px; }
  .nav-row { gap: 10px; }
  .nav-logo { font-size: 19px; gap: 10px; }
  .nav-logo .mark { width: 28px; height: 28px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { min-height: 38px; padding: 0 13px; font-size: 13px; }
  .hero { padding: calc(var(--nav-h) + 64px) 0 64px; }
  .hero-sub { font-size: 17px; margin-bottom: 36px; }
  .hero-btns .btn { flex: 1 1 auto; }
  .section-lede { font-size: 16px; }
  .app { border-radius: 18px; }
  .app-bar { padding: 11px 14px; gap: 10px; border-radius: 17px 17px 0 0; }
  .app-dots i { width: 10px; height: 10px; }
  .app-dots { gap: 6px; }
  .app-url { font-size: 11px; padding: 4px 10px; }
  .app-main { padding: 18px 14px 20px; }
  .app-ctrls { width: 100%; }
  .seg { flex: 1; }
  .seg button { flex: 1; padding: 0 6px; font-size: 12.5px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi-main { grid-column: 1 / -1; }
  .kpi { padding: 12px; }
  .kpi p { font-size: 11.5px; line-height: 1.3; }
  .kpi strong { font-size: 24px; }
  .people { grid-template-columns: 1fr; }
  .pc { min-height: 128px; }
  .pc-front {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr;
    column-gap: 12px; row-gap: 10px; align-items: center; padding: 16px 14px 14px;
  }
  .pc-top { display: contents; }
  .pc-av { grid-column: 1; grid-row: 1; }
  .pc-who { grid-column: 2; grid-row: 1; }
  .pc-status { grid-column: 3; grid-row: 1; }
  .pc-meta { grid-column: 1 / -1; grid-row: 2; }
  .pc-hist { grid-column: 1 / -1; grid-row: 3; align-self: end; }
  .pc-edit { opacity: 1; transform: none; }
  .pc-back { padding: 12px; gap: 8px; }
  .pc-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .opt { min-height: 32px; padding: 0 7px; font-size: 11.5px; gap: 6px; }
  .app-feed { padding: 18px 14px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .t-rt, .t-tl, .t-cs, .t-ac, .t-rs, .t-is { grid-column: auto; }
  .tile { padding: 22px; min-height: 0; }
  .rt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .rt-beam { display: none; }
  .rt-phone { padding: 22px 8px 8px; border-radius: 20px; }
  .rt-opt { min-height: 36px; font-size: 11.5px; padding: 0 8px; }
  .rt-board { padding: 10px; align-self: center; }
  .rt-board-top .rt-live { display: none; }
  .rt-row { grid-template-columns: auto minmax(0, 1fr); padding: 7px 4px; gap: 8px; }
  .rt-row .nm { display: none; }
  .rt-row .chip { justify-self: start; max-width: 100%; overflow: hidden; }
  .xp-note { font-size: 16px; }
  .plan-card { padding: 28px 24px; }
  .modal { padding: 28px 22px; }
  .modal-actions { flex-direction: column-reverse; }
}
@media (max-width: 400px) {
  .nav-enter .long { display: none; }
  .nav-enter .short { display: inline; }
}

/* ───────────── Menos movimento ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .tl-bar i { transform: none; }
}
