/* ==========================================================================
   ALVO — A teia do sistema
   Início, faixas com foto dos módulos, caminho (flow), Inteligência por
   empresa, Script, etapas novas do CRM, fechamento de venda e Pós-venda.
   ========================================================================== */

/* ---------- Utilitários ---------- */
.small { font-size: var(--text-xs); }
.eyebrow-sm { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow-sm .icon { width: 14px; height: 14px; }
.center-actions { display: flex; justify-content: center; padding-bottom: var(--space-6); }
.action-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.span-all { grid-column: 1 / -1; }
.danger-text { --btn-fg: var(--danger); }
.btn--sm { min-height: 32px; padding: 0 var(--space-3); font-size: var(--text-xs); }
.btn--sm svg { width: 14px; height: 14px; }
.btn--icon.btn--sm { width: 32px; padding: 0; }
.badge--warn { background: var(--status-followup-bg); color: var(--status-followup); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge .icon { width: 12px; height: 12px; }
.hint--muted { color: var(--text-subtle); }
.sec-head { display: grid; gap: 6px; margin: var(--space-8) 0 var(--space-4); max-width: 68ch; }
.sec-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); letter-spacing: -0.03em; }
.sec-head p.muted { font-size: var(--text-sm); }

/* Blocos que aparecem ao rolar */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Etapas novas do funil ---------- */
.status--contact { --c: var(--status-contact); --c-bg: var(--status-contact-bg); }
.status--followup { --c: var(--status-followup); --c-bg: var(--status-followup-bg); }
.dot--contact { background: var(--status-contact); }
.dot--followup { background: var(--status-followup); }
.lead--contact { --c: var(--status-contact); }
.lead--followup { --c: var(--status-followup); }
.stage-btn--contact { --c: var(--status-contact); --cb: var(--status-contact-bg); }
.stage-btn--followup { --c: var(--status-followup); --cb: var(--status-followup-bg); }
.tl__ev--contact { --c: var(--status-contact); }
.tl__ev--followup { --c: var(--status-followup); }
.mchip--contact { background: var(--status-contact-bg); color: var(--status-contact); }
.mchip--followup { background: var(--status-followup-bg); color: var(--status-followup); }
.board--six { grid-template-columns: repeat(6, minmax(190px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.board--six .col { scroll-snap-align: start; min-width: 0; }
.board--six .col__body { grid-template-columns: minmax(0, 1fr); }
.board--six .lead { min-width: 0; }
.board--six .lead__top { min-width: 0; }
.board--six .lead__name { min-width: 0; overflow-wrap: anywhere; }
.board--six .lead__meta { flex-wrap: wrap; row-gap: 2px; }
.board--six .lead__diag { overflow-wrap: anywhere; }
@media (max-width: 640px) { .board--six { grid-template-columns: repeat(6, 78%); } }
.stage-switch--six { grid-template-columns: repeat(3, 1fr); }
.lead__diag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ai-text); }
.lead__diag .icon { width: 12px; height: 12px; }
.drawer__links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--space-2); }
.sale-link { margin-top: var(--space-2); }

/* ---------- Faixa com foto e degradê (topo dos módulos) ---------- */
.mhero {
  --g1: rgba(91, 54, 240, 0.92); --g2: rgba(224, 123, 255, 0.35);
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  min-height: 230px; padding: var(--space-6); margin-bottom: var(--space-4);
  border-radius: var(--radius-lg, 20px); overflow: hidden; isolation: isolate; color: #fff;
  box-shadow: 0 30px 60px -36px var(--accent-glow);
}
.mhero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8, 7, 12, 0.94) 0%, rgba(8, 7, 12, 0.72) 38%, transparent 75%), linear-gradient(135deg, var(--g1), var(--g2));
  mix-blend-mode: normal;
}
.mhero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translateX(-2%); } }
.mhero--magenta { --g1: rgba(177, 63, 214, 0.85); --g2: rgba(124, 92, 255, 0.4); }
.mhero--blue { --g1: rgba(54, 92, 240, 0.85); --g2: rgba(124, 92, 255, 0.4); }
.mhero--teal { --g1: rgba(24, 140, 150, 0.82); --g2: rgba(124, 92, 255, 0.4); }
.mhero--green { --g1: rgba(30, 150, 95, 0.82); --g2: rgba(124, 92, 255, 0.4); }
.mhero__body { max-width: 640px; display: grid; gap: var(--space-2); }
.mhero__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.mhero__eyebrow .icon { width: 14px; height: 14px; }
.mhero__title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
/* O título recebe foco por código ao trocar de módulo (leitores de tela); não é parada de teclado */
.mhero__title:focus, .welcome__title:focus { outline: none; box-shadow: none; }
.mhero__text { color: rgba(255, 255, 255, 0.82); font-size: var(--text-sm); max-width: 56ch; }
.mhero__actions { display: flex; gap: var(--space-2); }
.how { margin-top: var(--space-1); max-width: 560px; }
.how summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); font-size: var(--text-xs); font-weight: 600; backdrop-filter: blur(6px); }
.how summary::-webkit-details-marker { display: none; }
.how summary .icon { width: 12px; height: 12px; }
.how[open] summary .icon { transform: rotate(90deg); }
.how ol { margin-top: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-3) var(--space-6); border-radius: var(--radius-md); background: rgba(8, 7, 12, 0.55); backdrop-filter: blur(8px); font-size: var(--text-sm); display: grid; gap: 6px; list-style: decimal; color: rgba(255, 255, 255, 0.9); animation: swap 300ms var(--ease-out); }

/* ---------- Caminho na teia ---------- */
.flow { margin: 0 0 var(--space-5); overflow-x: auto; scrollbar-width: none; }
.flow::-webkit-scrollbar { display: none; }
.flow ol { display: flex; gap: 0; min-width: max-content; }
.flow__step { position: relative; flex: 1; }
.flow__step + .flow__step::before { content: ""; position: absolute; left: -12px; right: calc(100% - 4px); top: 50%; height: 2px; width: 24px; transform: translateY(-50%); background: var(--border-strong); }
.flow__step.is-past + .flow__step::before, .flow__step.is-here + .flow__step::before { background: linear-gradient(90deg, var(--accent), var(--border-strong)); }
.flow__step a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; margin-right: 24px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; color: var(--text-subtle); border: 1px solid transparent; transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.flow__step a:hover { color: var(--text); background: var(--surface-2); }
.flow__dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); }
.flow__dot .icon { width: 14px; height: 14px; }
.flow__step.is-past a { color: var(--text-muted); }
.flow__step.is-past .flow__dot { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.flow__step.is-here a { color: var(--text); background: var(--accent-soft); border-color: var(--spot-border); }
.flow__step.is-here .flow__dot { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- Início ---------- */
.welcome { position: relative; min-height: 360px; display: flex; align-items: flex-end; padding: clamp(24px, 4vw, 48px); border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; box-shadow: 0 40px 80px -40px var(--accent-glow); }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 120% at 100% 0%, rgba(224, 123, 255, 0.35), transparent 50%), linear-gradient(105deg, rgba(8, 7, 12, 0.96) 10%, rgba(30, 18, 70, 0.78) 55%, rgba(91, 54, 240, 0.35) 100%); }
.welcome__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s ease-in-out infinite alternate; }
.welcome__body { display: grid; gap: var(--space-3); max-width: 660px; }
.welcome__eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px 6px 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); font-size: var(--text-xs); font-weight: 600; backdrop-filter: blur(6px); }
.welcome__mark { width: 18px; height: 18px; color: #fff; }
.welcome__title { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.045em; line-height: 1.02; color: #fff; }
.welcome__title .grad { background: linear-gradient(100deg, #FFFFFF 0%, #C4B5FD 45%, #E07BFF 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.welcome__text { color: rgba(255, 255, 255, 0.8); max-width: 56ch; }
.welcome__cta { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }
.welcome__ghost { --btn-bg: rgba(255, 255, 255, 0.1); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); }
.welcome__ghost:hover { --btn-bg: rgba(255, 255, 255, 0.18); }
.welcome .welcome__body > * { animation: rise-in 800ms var(--ease-out) backwards; }
.welcome .welcome__body > :nth-child(2) { animation-delay: 120ms; }
.welcome .welcome__body > :nth-child(3) { animation-delay: 240ms; }
.welcome .welcome__body > :nth-child(4) { animation-delay: 360ms; }

.notices { margin-top: var(--space-6); }
.notices .group-title { display: flex; align-items: center; gap: 6px; }
.notices .group-title .icon { width: 14px; height: 14px; }
.notices__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); }
.ntc > a, .ntc > div { display: flex; align-items: flex-start; gap: var(--space-3); height: 100%; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.ntc > a:hover { transform: translateY(-2px); border-color: var(--spot-border); }
.ntc__ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.ntc__ic .icon { width: 16px; height: 16px; }
.ntc--warn .ntc__ic { background: var(--status-followup-bg); color: var(--status-followup); }
.ntc--muted .ntc__ic { background: var(--surface-2); color: var(--text-subtle); }
.ntc__body { flex: 1; display: grid; gap: 2px; font-size: var(--text-sm); }
.ntc__body span { color: var(--text-muted); font-size: var(--text-xs); }
.ntc__go { color: var(--text-subtle); }
.ntc__go .icon { width: 16px; height: 16px; }

.teia { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.teia__svg { width: 100%; height: auto; overflow: visible; }
.t-ring { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 3 6; }
.t-flow { fill: none; stroke: #9B7BFF; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.12 0.88; stroke-dashoffset: 1; animation: t-run 4.2s linear infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 0 6px rgba(155, 123, 255, 0.8)); }
@keyframes t-run { to { stroke-dashoffset: 0; } }
.t-spoke { stroke: var(--border); stroke-width: 1; }
.t-hub circle { fill: var(--surface); stroke: var(--alvo-violet-bright); stroke-width: 1.5; }
.t-hub text { fill: var(--text); font: 700 15px var(--font-display); }
.t-hub .t-hub__s { fill: var(--accent-text); font: 700 9.5px var(--font-ui); letter-spacing: 0.1em; }
.t-node { cursor: pointer; outline: none; animation: rise-in 700ms var(--ease-out) backwards; animation-delay: var(--d); }
.t-node circle { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; transition: fill var(--dur-fast) var(--ease-out), stroke var(--dur-fast) var(--ease-out); }
.t-node__n { fill: var(--text); font: 700 18px var(--font-display); pointer-events: none; }
.t-node__l { fill: var(--text-muted); font: 600 12.5px var(--font-ui); pointer-events: none; }
.t-node:hover circle, .t-node:focus-visible circle { stroke: var(--alvo-violet-bright); }
.t-node.is-on circle { fill: var(--accent); stroke: transparent; filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.7)); }
.t-node.is-on .t-node__n { fill: #fff; }
.t-node.is-on .t-node__l { fill: var(--text); }
.tdet { padding: 0; overflow: hidden; }
.tdet__img { width: 100%; height: 150px; object-fit: cover; display: block; }
.tdet__body { padding: var(--space-4) var(--space-5) var(--space-5); display: grid; gap: var(--space-2); }
.tdet__body h3 { font-size: var(--text-lg); letter-spacing: -0.02em; }
.tdet__body > p:not(.eyebrow-sm) { color: var(--text-muted); font-size: var(--text-sm); }
.tdet__how { display: grid; gap: 4px; padding-left: var(--space-5); list-style: decimal; font-size: var(--text-sm); }
.tdet__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-2); }

.steps-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.step-card { padding: 0; overflow: hidden; transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.step-card:hover { transform: translateY(-4px); border-color: var(--spot-border); }
.step-card a { display: grid; gap: 6px; height: 100%; padding-bottom: var(--space-4); }
.step-card__img { position: relative; display: block; height: 120px; overflow: hidden; }
.step-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.step-card:hover .step-card__img img { transform: scale(1.08); }
.step-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 7, 12, 0.75)), linear-gradient(135deg, rgba(124, 92, 255, 0.35), transparent 60%); }
.step-card__n { position: absolute; left: 12px; bottom: 10px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 13px var(--font-display); }
.step-card__t { display: flex; align-items: center; gap: 6px; padding: 0 var(--space-4); font-weight: 600; font-size: var(--text-sm); }
.step-card__t .icon { width: 16px; height: 16px; color: var(--accent-text); }
.step-card__x { padding: 0 var(--space-4); font-size: var(--text-xs); color: var(--text-subtle); }

.tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.tip { display: grid; gap: var(--space-2); align-content: start; background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface); }
.tip__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent-glow); }
.tip__ic .icon { width: 18px; height: 18px; }
.tip h3 { font-size: var(--text-base); }
.tip p { font-size: var(--text-sm); color: var(--text-muted); }

.ptable th, .ptable td { text-align: center; }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
.ptable__p { display: table-cell; }
.ptable__p small { display: block; font-weight: 500; color: var(--text-subtle); font-size: 11px; margin-top: 2px; }
.ptable__p .badge { margin-left: 6px; }
.ptable .is-cur { background: var(--accent-soft); }
.ptable .yes { color: var(--status-sale); }
.ptable .no { color: var(--text-subtle); opacity: 0.6; }
.ptable .yes .icon, .ptable .no .icon { width: 16px; height: 16px; }

/* ---------- Inteligência ---------- */
.intel { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-4); align-items: start; scroll-margin-top: 90px; }
.intel > * { min-width: 0; }
.co-list { position: sticky; top: 84px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; overflow: hidden; }
.co-list__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-3) var(--space-2) var(--space-4); border-bottom: 1px solid var(--border); }
.co-list__head h2 { font-size: var(--text-sm); }
.co-list ul { overflow-y: auto; padding: 6px; display: grid; gap: 2px; }
.co { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius-md); background: none; color: var(--text); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.co:hover { background: var(--surface-2); }
.co.is-on { background: var(--accent-soft); border-color: var(--spot-border); }
.co__name { font-size: var(--text-sm); font-weight: 600; }
.co__meta { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--text-subtle); }
.co__score { display: grid; place-items: center; min-width: 26px; height: 18px; padding: 0 5px; border-radius: 6px; background: var(--ai-soft); color: var(--ai-text); font-weight: 700; font-size: 10.5px; }
.co__todo { color: var(--status-opportunity); }
.intel__main .tabs { margin-bottom: var(--space-3); overflow-y: hidden; }

.thumbs--label li { width: 120px; height: auto; display: grid; gap: 4px; padding: 4px; background: var(--surface-2); }
.thumbs--label img { height: 84px; border-radius: 8px; }
.thumbs--label select { min-height: 28px; font-size: 11px; padding: 0 6px; }
.thumbs--view { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--space-2); }
.thumbs--view li { width: auto; height: auto; display: grid; gap: 4px; padding: 4px; }
.thumbs--view img { height: 100px; border-radius: 8px; }
.thumbs--view span { font-size: 11px; color: var(--text-subtle); padding: 0 4px 2px; }
.drop.is-full { opacity: 0.5; pointer-events: none; }

.diag-sum { display: grid; grid-template-columns: auto minmax(0, 1fr) 240px; gap: var(--space-5); align-items: start; background: radial-gradient(90% 140% at 0% 0%, var(--accent-soft), transparent 55%), var(--surface); }
.diag-sum__ring { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--text-subtle); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.ring { width: 104px; height: 104px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring__bg { stroke: var(--surface-2); }
.ring__fg { stroke: url(#none); stroke: var(--alvo-violet-bright); stroke-linecap: round; stroke-dashoffset: var(--off); animation: ring-in 1400ms var(--ease-out) backwards; filter: drop-shadow(0 0 6px rgba(155, 123, 255, 0.6)); }
@keyframes ring-in { from { stroke-dashoffset: 214; } }
.ring text { transform: rotate(90deg); transform-origin: 40px 40px; fill: var(--text); font: 700 22px var(--font-display); }
.diag-sum__title { font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -0.03em; margin: 4px 0 var(--space-3); }
.diag-sum__h { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); margin-bottom: var(--space-2); }
.leaks { display: grid; gap: 8px; }
.leaks li { display: flex; gap: 8px; font-size: var(--text-sm); }
.leaks .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--status-followup); }
.diag-sum__side { display: grid; gap: var(--space-2); padding-left: var(--space-4); border-left: 1px solid var(--border); }
.diag-sum__ch { display: flex; align-items: center; gap: 8px; font: 600 var(--text-xl) var(--font-display); letter-spacing: -0.02em; }
.diag-sum__ch .icon { width: 22px; height: 22px; color: var(--accent-text); }
.diag-sum__side .small .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }

.pack .card__title { display: flex; align-items: center; gap: 8px; }
.pack .card__title .icon { width: 18px; height: 18px; color: var(--accent-text); }
.pack__list { display: grid; gap: var(--space-3); margin-bottom: var(--space-3); }
.pack__list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-2); }
.pack__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 14px var(--font-display); }
.pack__price { font-weight: 600; }

.svc-scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-3); }
.svc-score { display: grid; gap: var(--space-2); align-content: start; }
.svc-score header { display: flex; justify-content: space-between; gap: var(--space-2); align-items: center; }
.svc-score h3 { font-size: var(--text-base); }
.svc-score h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); margin-top: 4px; }
.svc-score--alta { border-color: var(--spot-border); background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--surface); }
.lvl { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.lvl--alta { background: var(--accent); color: #fff; }
.lvl--boa { background: var(--accent-soft); color: var(--accent-text); }
.lvl--baixa { background: var(--surface-2); color: var(--text-subtle); }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7C5CFF, #E07BFF); transition: width 1200ms var(--ease-out) 150ms; }
.is-in .meter span, .meter span { width: var(--w); }
[data-reveal]:not(.is-in) .meter span { width: 0; }
.meter__v { font: 700 var(--text-lg) var(--font-display); }
.meter__v small { font-size: var(--text-xs); color: var(--text-subtle); font-weight: 500; }
.why { display: grid; gap: 6px; }
.why li { display: flex; gap: 6px; font-size: var(--text-sm); }
.why .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--status-sale); }
.gap { display: flex; gap: 6px; font-size: var(--text-xs); color: var(--status-followup); padding: 8px 10px; border-radius: var(--radius-sm); background: var(--status-followup-bg); }
.gap .icon { flex: none; width: 14px; height: 14px; }

/* ---------- Script ---------- */
.sc-top { margin-bottom: var(--space-3); }
.picker { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.picker label { font-size: var(--text-xs); font-weight: 600; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.08em; }
.picker select { min-width: 260px; }
.sc-channel { display: grid; gap: var(--space-3); align-content: start; }
.sc-channel .strat__channel { display: flex; align-items: center; gap: 10px; }
.sc-channel .strat__channel .icon { width: 26px; height: 26px; color: var(--ai-text); }
.sc-actions { display: grid; gap: var(--space-2); }
.sc-actions .btn { white-space: normal; text-align: center; padding: 10px 16px; }
.script li { animation: rise-in 600ms var(--ease-out) backwards; animation-delay: calc(200ms + var(--i, 0) * 120ms); }
.objections { display: grid; gap: var(--space-3); }
.objections dt { font-weight: 600; font-size: var(--text-sm); }
.objections dd { margin: 4px 0 0; font-size: var(--text-sm); color: var(--text-muted); padding-left: var(--space-3); border-left: 2px solid var(--accent-soft); }
.bubble-msg { position: relative; padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); border-radius: 16px 16px 16px 4px; background: var(--accent-soft); font-size: var(--text-sm); }
.sc-log__row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.sc-log .card__title { display: flex; align-items: center; gap: 8px; }
.sc-log .card__title .icon { width: 16px; height: 16px; }
.sc-meet { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 4px 4px 12px; border-radius: var(--radius-pill); background: var(--surface-2); font-size: var(--text-sm); }
.sc-meet .input { width: auto; }
#logMsg:not(:empty) { margin-top: var(--space-2); color: var(--status-sale); }

/* ---------- Avisos rápidos ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 60; display: flex; align-items: center; gap: var(--space-3); max-width: min(560px, calc(100% - 32px)); padding: 12px 12px 12px 16px; border-radius: var(--radius-md); background: var(--bg-elevated); border: 1px solid var(--spot-border); box-shadow: var(--shadow-pop); font-size: var(--text-sm); transform: translateX(-50%); animation: toast-in 420ms var(--ease-out); }
.toast[hidden] { display: none; }
.toast > .icon { flex: none; width: 18px; height: 18px; color: var(--status-sale); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- Agenda ---------- */
.post-sum { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; background: linear-gradient(120deg, var(--status-sale-bg), transparent 70%), var(--surface); transition: border-color var(--dur-fast) var(--ease-out); }
.post-sum:hover { border-color: var(--spot-border); }
.post-sum > .icon { flex: none; width: 22px; height: 22px; color: var(--status-sale); }
.post-sum > span { flex: 1; display: grid; gap: 2px; font-size: var(--text-sm); }

/* ---------- Pós-venda ---------- */
.day-nav { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-6) 0 var(--space-3); }
.day-nav .group-title { margin: 0; flex: 0 1 auto; font-size: var(--text-sm); text-transform: none; letter-spacing: 0; color: var(--text); }
.day-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-3); }
.dclient { display: grid; gap: var(--space-3); align-content: start; }
.dclient__head { display: flex; justify-content: space-between; gap: var(--space-3); }
.dclient__head h3 { font-size: var(--text-base); }
.dclient__prog { display: grid; justify-items: end; gap: 4px; min-width: 80px; font-size: var(--text-xs); color: var(--text-muted); }
.dclient__prog .progress { width: 80px; }
.dclient__metrics label { display: inline-flex; align-items: center; gap: 6px; }
.dclient__metrics .icon { width: 14px; height: 14px; color: var(--accent-text); }
.freq { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.freq--once { background: var(--status-opportunity-bg); color: var(--status-opportunity); }
.freq--daily { background: var(--accent-soft); color: var(--accent-text); }
.freq--weekly { background: var(--status-task-bg); color: var(--status-task); }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); }
.client { display: grid; gap: var(--space-3); width: 100%; text-align: left; color: var(--text); cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.client:hover { transform: translateY(-3px); border-color: var(--spot-border); }
.client--renew { border-color: color-mix(in srgb, var(--status-followup) 45%, transparent); }
.client__top { display: flex; justify-content: space-between; gap: var(--space-2); align-items: flex-start; }
.client__svc { display: flex; flex-wrap: wrap; gap: 4px; }
.chip-s { padding: 3px 8px; border-radius: var(--radius-pill); background: var(--surface-2); font-size: 11px; color: var(--text-muted); }
.client__foot { display: flex; justify-content: space-between; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-subtle); }
.client__foot .tabular { color: var(--text); font-weight: 600; }
.renew { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--status-followup-bg); }
.renew h3 { display: flex; align-items: center; gap: 6px; color: var(--status-followup) !important; }
.renew h3 .icon { width: 14px; height: 14px; }
.renew p { margin-bottom: var(--space-2); }
.drawer__sec h3 .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.contract-foot { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }
.contract-foot .small { margin-right: auto; }
.tasks-edit { display: grid; gap: 6px; }
.tasks-edit li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 62px 32px; gap: 6px; align-items: center; }
.tdone { font-size: 10.5px; color: var(--text-subtle); text-align: center; }
.tdone.is-done { color: var(--status-sale); }
.task-add { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 6px; margin-top: var(--space-2); }

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) {
  .steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diag-sum { grid-template-columns: auto minmax(0, 1fr); }
  .diag-sum__side { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: center; }
}
@media (max-width: 860px) {
  .teia { grid-template-columns: 1fr; }
  .intel { grid-template-columns: 1fr; }
  .co-list { position: static; max-height: none; }
  .co-list ul { display: flex; overflow-x: auto; gap: 6px; }
  .co { min-width: 180px; border-color: var(--border); }
}
@media (max-width: 640px) {
  .mhero { min-height: 0; padding: var(--space-5) var(--space-4); }
  .mhero__actions { width: 100%; }
  .welcome { min-height: 0; }
  .steps-row, .tips { grid-template-columns: 1fr; }
  .steps-row .step-card a { grid-template-columns: 110px 1fr; grid-template-rows: auto 1fr; padding-bottom: 0; }
  .steps-row .step-card__img { grid-row: 1 / 3; height: 100%; min-height: 96px; }
  .steps-row .step-card__t { padding-top: var(--space-3); }
  .steps-row .step-card__x { padding-bottom: var(--space-3); }
  .diag-sum { grid-template-columns: 1fr; justify-items: start; }
  .svc-scores, .day-clients, .clients { grid-template-columns: 1fr; }
  .picker select { min-width: 0; width: 100%; }
  .tasks-edit li { grid-template-columns: minmax(0, 1fr) 96px 32px; }
  .tasks-edit .tdone { display: none; }
  .task-add { grid-template-columns: 1fr 1fr; }
  .task-add .btn { grid-column: 1 / -1; }
  .ptable { font-size: var(--text-xs); }
}

/* ---------- Barra de cima: cápsula de vidro com a gota que segue o mouse ---------- */
:root, :root[data-theme="dark"] {
  --glass-bar: rgba(255, 255, 255, 0.035);
  --glass-bar-line: rgba(255, 255, 255, 0.08);
  --glass-drop: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  --glass-drop-edge: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --glass-tip: rgba(20, 18, 28, 0.78);
}
:root[data-theme="light"] {
  --glass-bar: rgba(255, 255, 255, 0.55);
  --glass-bar-line: rgba(20, 16, 40, 0.08);
  --glass-drop: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  --glass-drop-edge: inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 16, 40, 0.08), 0 2px 6px rgba(20, 16, 40, 0.08);
  --glass-tip: rgba(255, 255, 255, 0.9);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --glass-bar: rgba(255, 255, 255, 0.55);
    --glass-bar-line: rgba(20, 16, 40, 0.08);
    --glass-drop: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
    --glass-drop-edge: inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 16, 40, 0.08), 0 2px 6px rgba(20, 16, 40, 0.08);
    --glass-tip: rgba(255, 255, 255, 0.9);
  }
}

/* ---------- Barra de cima: Início + menus suspensos (Vender, Crescer, Aprender) ---------- */
:root, :root[data-theme="dark"] {
  --glass-bar: rgba(255, 255, 255, 0.035);
  --glass-bar-line: rgba(255, 255, 255, 0.08);
  --glass-drop: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  --glass-drop-edge: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
:root[data-theme="light"] {
  --glass-bar: rgba(255, 255, 255, 0.6);
  --glass-bar-line: rgba(20, 16, 40, 0.08);
  --glass-drop: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  --glass-drop-edge: inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 16, 40, 0.08), 0 2px 6px rgba(20, 16, 40, 0.08);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --glass-bar: rgba(255, 255, 255, 0.6);
    --glass-bar-line: rgba(20, 16, 40, 0.08);
    --glass-drop: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
    --glass-drop-edge: inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 16, 40, 0.08), 0 2px 6px rgba(20, 16, 40, 0.08);
  }
}

.topbar__inner { gap: var(--space-4); }
.mainnav {
  position: relative; flex: 0 1 auto; display: flex; align-items: center; gap: 4px;
  margin: 0 auto; padding: 4px; overflow: visible;
  border-radius: var(--radius-pill); background: var(--glass-bar); border: 1px solid var(--glass-bar-line);
  -webkit-mask: none; mask: none;
}
.topnav__link, .navdd__btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent !important; box-shadow: none !important;
  font: 500 var(--text-sm) var(--font-ui); color: var(--text-muted); white-space: nowrap; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.topnav__link .icon, .navdd__btn > .icon { width: 16px; height: 16px; display: block !important; opacity: 1 !important; }
.topnav__link::after { display: none; }
.topnav__link:hover, .navdd__btn:hover, .navdd.is-open .navdd__btn, .topnav__link[aria-current="page"], .navdd.has-current .navdd__btn { color: var(--text); }
.topnav__link[aria-current="page"] .icon, .navdd.has-current .navdd__btn > .icon { color: var(--accent-text); }
.navdd.has-current .navdd__btn { font-weight: 600; }
.navdd__chev { display: inline-flex; margin-left: -2px; transition: transform 240ms var(--ease-out); }
.navdd__chev .icon { width: 14px; height: 14px; color: var(--text-subtle); }
.navdd.is-open .navdd__chev { transform: rotate(180deg); }
.nav-dot { position: absolute; top: 6px; left: 26px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg); }
.nav-dot[hidden], .nav-count[hidden], .bell__n[hidden] { display: none; }

/* A gota de vidro, na horizontal */
.nav-blob {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0px);
  border-radius: var(--radius-pill); background: var(--glass-drop); box-shadow: var(--glass-drop-edge);
  -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%);
  transform: translateX(var(--x, 0px)); opacity: 0; pointer-events: none;
  transition: transform 520ms cubic-bezier(0.3, 1.3, 0.5, 1), width 520ms cubic-bezier(0.3, 1.3, 0.5, 1), opacity 200ms ease;
}
.nav-blob.is-on { opacity: 1; }
.nav-blob.is-current { box-shadow: var(--glass-drop-edge), 0 6px 20px -8px var(--accent-glow); }
.nav-blob.is-current::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 14px; height: 2px; border-radius: 2px; transform: translateX(-50%); background: var(--alvo-violet-bright); box-shadow: 0 0 10px 1px var(--accent-glow); }
.nav-blob.no-anim { transition: opacity 200ms ease; }
.nav-blob.is-squish { animation: drop-squish 520ms cubic-bezier(0.3, 1.2, 0.5, 1); }
@keyframes drop-squish { 0% { scale: 1 1; } 30% { scale: 1.08 0.84; } 65% { scale: 0.98 1.05; } 100% { scale: 1 1; } }

/* O menu suspenso: escuro, do roxo para o preto */
.navdd { position: relative; }
.navdd__menu {
  position: absolute; z-index: 50; top: calc(100% + 12px); left: 50%; width: 300px; padding: 8px;
  transform: translateX(-50%); border-radius: 18px; color: #fff;
  background: linear-gradient(180deg, #1D1540 0%, #120E26 55%, #0A0812 100%);
  border: 1px solid rgba(155, 123, 255, 0.2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: dd-in 200ms var(--ease-out);
}
.navdd__menu[hidden] { display: none; }
.navdd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
@keyframes dd-in { from { opacity: 0; transform: translate(-50%, -6px) scale(0.98); } }
.navdd__title { padding: 6px 10px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.navdd__menu a { display: flex; align-items: center; gap: 12px; height: auto; padding: 8px 10px; border-radius: 12px; box-shadow: none; font-weight: 500; white-space: normal; color: rgba(255, 255, 255, 0.85); transition: background-color var(--dur-fast) var(--ease-out); }
.navdd__menu a::after { display: none; }
.navdd__menu a:hover, .navdd__menu a:focus-visible { background: rgba(255, 255, 255, 0.07); color: #fff; }
.navdd__menu a[aria-current="page"] { background: rgba(124, 92, 255, 0.18); color: #fff; }
.nav-ic { position: relative; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.nav-ic .icon { width: 17px; height: 17px; display: block !important; opacity: 1 !important; }
.navdd__menu a[aria-current="page"] .nav-ic { background: linear-gradient(140deg, #7C5CFF, #3E2596); }
.navdd__menu a[data-premium] .nav-label { color: #E8C46B; }
.nav-step { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #E9E4FF; color: #2A1C66; font-size: 9px; font-weight: 800; }
.nav-text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.nav-text .nav-label { font-size: var(--text-sm); font-weight: 600; }
.nav-text small { font-size: 11.5px; color: rgba(255, 255, 255, 0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: rgba(124, 92, 255, 0.3); color: #E4DCFF; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.navdd__menu .nav-lock { color: rgba(255, 255, 255, 0.4); }
.navdd__menu .nav-lock .icon { width: 13px; height: 13px; }

/* Direita da barra */
.topbar__right { gap: var(--space-2); }
.bell { position: relative; }
.bell__n { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
.nav-menu-btn { display: none; }

/* Conta do usuário */
.account { position: relative; }
.acct { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px 0 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.acct:hover, .acct[aria-expanded="true"] { border-color: var(--spot-border); background: var(--surface-2); }
.acct > .icon { width: 14px; height: 14px; color: var(--text-subtle); transition: transform var(--dur-base) var(--ease-out); }
.acct[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.acct__avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(140deg, #6C47FF, #2A1C66); color: #fff; font: 700 12px var(--font-display); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--spot-border); }
.acct__avatar--lg { width: 42px; height: 42px; font-size: 15px; }
.acct__text { display: grid; text-align: left; line-height: 1.2; max-width: 150px; }
.acct__text strong { font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__text small { font-size: 11px; color: var(--text-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 280px; padding: 8px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--bg-elevated); box-shadow: var(--shadow-pop); animation: pop-in 180ms var(--ease-out); }
.acct__menu[hidden] { display: none; }
.acct__head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.acct__head strong { display: block; font-size: var(--text-sm); }
.acct__head small { font-size: var(--text-xs); color: var(--text-subtle); }
.acct__name { display: grid; gap: 6px; padding: 6px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.acct__name label { font-size: 11px; font-weight: 600; color: var(--text-subtle); }
.acct__name div { display: flex; gap: 6px; }
.acct__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--text-muted); font: 500 var(--text-sm) var(--font-ui); text-align: left; cursor: pointer; }
.acct__item:hover, .acct__item:focus-visible { background: var(--surface-2); color: var(--text); }
.acct__item .icon { width: 16px; height: 16px; }
.acct__item--out { color: var(--danger); }
/* Início: grupos do WhatsApp do plano */
.groups { margin-bottom: var(--space-4); }
.groups ul { display: grid; gap: 8px; list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.groups li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-2); font-weight: 600; }

/* Com login: sem a faixa de prévia. Sem plano ativo: só a tela de planos e o menu da conta */
.is-live .preview-bar, .is-live .app-foot > span { display: none; }
.is-locked .mainnav, .is-locked .tabbar, .is-locked .bell, .is-locked .nav-menu-btn { display: none !important; }
.paywall { display: grid; gap: var(--space-5, 20px); max-width: 1040px; margin: 0 auto; padding-block: var(--space-4); }
.paywall__head { display: grid; justify-items: center; gap: var(--space-2); text-align: center; max-width: 62ch; margin: 0 auto; }
.paywall__head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; text-wrap: balance; }
.paywall__head h1:focus { outline: none; }
.paywall__head p { color: var(--text-muted); }
.paywall__mark { width: 44px; height: 44px; }
.paywall__foot { display: flex; justify-content: center; }
.acct__item--owner { color: var(--text); }
.acct__item--owner .icon { color: #E3B65C; } /* dourado = Master/dono */
.acct__theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 10px; color: var(--text-muted); font: 500 var(--text-sm) var(--font-ui); }

/* Folha do celular, com os grupos */
.sheet__group { padding: 12px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); }
.sheet nav .nav-ic { background: var(--surface-2); color: var(--text); }
.sheet nav a[aria-current="page"] .nav-ic { background: var(--accent); color: #fff; }
.sheet nav .nav-count { margin-left: auto; background: var(--accent-soft); color: var(--accent-text); }

/* Telas menores: a conta fica só com o avatar; no celular, o menu vai para o botão */
@media (max-width: 1200px) {
  .acct__text, .acct > .icon { display: none; }
  .acct { padding: 0 4px; }
}
/* Celular (28/11): barra de baixo só com os desenhos — Início, Painel, Vender, Crescer, Aprender.
   O toque abre um painel acima da barra com o nome e as opções; o segundo toque entra. */
.tabpop { display: none; }
@media (max-width: 900px) {
  .mainnav { display: none; }
  .nav-menu-btn { display: none !important; }
  .app { padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid !important; grid-template-columns: repeat(5, 1fr);
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 8px 10px env(safe-area-inset-bottom);
    background: #08070C !important;
    border-top: 1px solid var(--border);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .tabbar button {
    position: relative; display: grid; place-items: center;
    border: 0; border-radius: 14px; background: transparent;
    color: var(--text-subtle); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar button .icon { width: 24px; height: 24px; }
  .tabbar button[data-has-current] { color: var(--text); }
  .tabbar button[data-has-current] .icon { color: var(--accent-text); }
  .tabbar button[data-has-current]::before {
    content: ""; position: absolute; top: -8px; width: 22px; height: 2px; border-radius: 2px;
    background: var(--alvo-violet-bright); box-shadow: 0 0 12px 2px var(--accent-glow);
  }
  .tabbar button.is-open { background: var(--accent-soft); color: var(--text); }
  .tabbar .nav-dot { position: absolute; top: 8px; right: calc(50% - 16px); }

  .tabpop:not([hidden]) {
    display: block;
    position: fixed; left: 10px; right: 10px; z-index: 59;
    bottom: calc(72px + env(safe-area-inset-bottom));
    max-height: 70vh; overflow-y: auto;
    padding: 14px 10px 10px;
    background: #110F1A;
    border: 1px solid rgba(244, 242, 250, 0.10);
    border-radius: 18px;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
    animation: tabpop-in 180ms var(--ease-out, ease-out) both;
  }
  @keyframes tabpop-in { from { opacity: 0; transform: translateY(8px); } }
  .tabpop__head { display: flex; align-items: center; gap: 10px; padding: 0 6px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
  .tabpop__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
  .tabpop__ic .icon { width: 20px; height: 20px; }
  .tabpop__title { margin: 0; font: 700 var(--text-md) var(--font-display); color: var(--text); }
  .tabpop__hint { margin: 2px 0 0; font-size: var(--text-xs); color: var(--text-subtle); }
  .tabpop__list a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 8px; border-radius: 12px;
    color: var(--text); text-decoration: none;
  }
  .tabpop__list a:active, .tabpop__list a[aria-current="page"] { background: var(--accent-soft); }
  .tabpop__list .nav-ic { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(244, 242, 250, 0.05); color: var(--accent-text); flex: none; }
  .tabpop__list .nav-ic .icon { width: 18px; height: 18px; }
  .tabpop__list .nav-step { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--alvo-violet); color: #fff; font: 700 10px/16px var(--font-ui); text-align: center; }
  .tabpop__list .nav-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
  .tabpop__list .nav-label { font-weight: 600; font-size: var(--text-base); }
  .tabpop__list small { font-size: var(--text-xs); color: var(--text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabpop__list .nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--alvo-violet); color: #fff; font: 700 11px/20px var(--font-ui); text-align: center; }
  .tabpop__list .nav-lock .icon { width: 14px; height: 14px; color: var(--text-subtle); }
}

/* ---------- Afiliados ---------- */
.aff-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.aff-step { display: grid; gap: var(--space-2); align-content: start; }
.aff-step__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 14px var(--font-display); }
.aff-step h3 { font-size: var(--text-base); }
.aff-step p { font-size: var(--text-sm); color: var(--text-muted); }
.aff-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; background: radial-gradient(120% 160% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.aff-cta h2 { font-size: var(--text-lg); letter-spacing: -0.02em; }
.aff-cta p { color: var(--text-muted); font-size: var(--text-sm); margin-top: 4px; }
.aff-who { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-2); }
.aff-who li { display: flex; gap: 10px; align-items: flex-start; padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-2); font-size: var(--text-sm); }
.aff-who .icon { flex: none; width: 18px; height: 18px; color: var(--accent-text); margin-top: 1px; }
.aff-who strong { display: block; }
.aff-who span { color: var(--text-muted); font-size: var(--text-xs); }
.swipe { display: grid; gap: var(--space-3); }
.swipe article { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-2); }
.swipe header { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.swipe h3 { font-size: var(--text-sm); }
.swipe p { font-size: var(--text-sm); color: var(--text-muted); white-space: pre-line; }
.aff-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.aff-assets a { display: grid; gap: 6px; font-size: var(--text-xs); color: var(--text-muted); }
.aff-assets img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); transition: transform var(--dur-fast) var(--ease-out); }
.aff-assets a:hover img { transform: translateY(-2px); }
.aff-rules { display: grid; gap: 8px; }
.aff-rules li { display: flex; gap: 8px; font-size: var(--text-sm); }
.aff-rules .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--status-sale); }
@media (max-width: 900px) { .aff-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .aff-steps { grid-template-columns: 1fr; } .aff-cta { grid-template-columns: 1fr; } }

/* ---------- Movimento reduzido: só esmaecer ---------- */
@media (prefers-reduced-motion: reduce) {
  .mhero__img, .welcome__img { animation: none; }
  .nav-blob { transition: transform 160ms ease, width 160ms ease, opacity 160ms ease; }
  .nav-blob.is-squish { animation: none; }
  .navdd__menu { animation: fade-only 160ms ease; }
  .t-flow { animation: none; stroke-dasharray: none; opacity: 0.35; }
  .flow__step.is-here .flow__dot { animation: none; }
  .t-node, .script li, .welcome .welcome__body > * { animation: fade-only 500ms var(--ease-out) backwards; }
  [data-reveal] { transform: none; transition: opacity 500ms var(--ease-out); }
  .meter span { transition: none; }
  .ring__fg { animation: none; }
  .step-card:hover, .client:hover, .ntc > a:hover { transform: none; }
  .step-card:hover .step-card__img img { transform: none; }
}

/* ---------- Baixar o app (PWA) — 28/11 ---------- */
.install-banner {
  position: fixed; left: 10px; right: 10px; z-index: 58;
  bottom: calc(76px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px 10px 10px;
  background: #15112A;
  border: 1px solid rgba(155, 123, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.75);
  animation: tabpop-in 220ms ease-out both;
}
.install-banner img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-banner__text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.install-banner__text strong { font-size: var(--text-sm); color: var(--text); }
.install-banner__text span { font-size: var(--text-xs); color: var(--text-subtle); }
.install-banner .btn { flex: none; gap: 6px; }
.install-banner .btn .icon { width: 16px; height: 16px; }
.install-banner__x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--text-subtle); cursor: pointer; }
.install-banner__x .icon { width: 16px; height: 16px; }
.install-steps__list { list-style: none; margin: 0; padding: 4px 16px 8px; display: grid; gap: 12px; counter-reset: s; }
.install-steps__list li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--text-base); color: var(--text); }
.install-steps__list li .icon { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.install-steps__note { padding: 0 16px 16px; font-size: var(--text-sm); }
