/* ============================================================
   Hero — composição HTML do produto (v1: Home)
   Tokens alinhados ao vidro da home real (design.md §6.1)
   ============================================================ */

.ph-stage {
  --ph-glass-bg: rgba(255, 255, 255, 0.08);
  --ph-glass-bg-strong: rgba(255, 255, 255, 0.14);
  --ph-glass-border: rgba(255, 255, 255, 0.14);
  --ph-glass-blur: 18px;
  --ph-glass-radius: 18px;
  --ph-glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --ph-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --ph-text: #fff;
  --ph-text-2: rgba(255, 255, 255, 0.72);
  --ph-text-3: rgba(255, 255, 255, 0.55);
  --ph-accent: #7cc0ff;
  --ph-green: #6ee7b7;
  --ph-rose: #fda4af;
  --ph-amber: #fcd34d;
  --ph-navy: #1a2744;
  --ph-navy-2: #243656;

  margin: 56px auto 0;
  max-width: 1080px;
  position: relative;
  text-align: left;
  pointer-events: none;
  font-family: var(--font);
}

.ph-compose {
  position: relative;
  display: flex;
  flex-direction: column;
}

.ph-strip { display: contents; }

.ph-home { order: 1; }

.ph-caption {
  position: relative;
  z-index: 20;
  isolation: isolate;
  margin: 24px auto 0;
  max-width: 640px;
  min-height: 3.1em;
  padding: 12px 20px;
  text-align: center;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.4;
  background: #fff;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(21, 32, 51, 0.1);
}

.ph-caption__beat {
  display: block;
}

.ph-caption__beat--2,
.ph-caption__beat--3,
.ph-caption__beat--4 {
  display: none;
}

.ph-orbit {
  display: none;
  position: absolute;
  z-index: 2;
}

@media (min-width: 1100px) {
  .hero {
    overflow-x: clip;
    overflow-y: visible;
  }
  .ph-stage { padding: 16px 48px 140px; max-width: none; }
  .ph-orbit { display: block; }
  .ph-orbit--tl { top: 6%; left: -4%; }
  .ph-orbit--bl { bottom: -8%; left: -6%; }
  .ph-orbit--tr { top: -2%; right: -2%; }
  .ph-orbit--br { bottom: -28%; right: -8%; }
}

/* ---------- Shell da Home ---------- */
.ph-home {
  width: 72%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(165deg, #2a3d62 0%, var(--ph-navy) 42%, #152033 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(51, 47, 91, 0.28);
  overflow: hidden;
  color: var(--ph-text);
  font-size: 12px;
  line-height: 1.35;
}

.ph-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ph-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: -0.02em;
  color: var(--ph-text);
  white-space: nowrap;
}

.ph-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.ph-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ph-text-3);
  font-size: 11px;
}

.ph-search svg { flex: none; opacity: 0.7; }

.ph-zoe {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(95, 169, 224, 0.22);
  border: 1px solid rgba(124, 192, 255, 0.35);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ph-body {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 420px;
}

.ph-side {
  padding: 14px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ph-side span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--ph-text-3);
  font-weight: 600;
  font-size: 11.5px;
}

.ph-side span svg { flex: none; opacity: 0.75; }

.ph-side span.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ph-text);
}

.ph-main {
  padding: 16px 16px 14px;
  min-width: 0;
}

.ph-greet {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ph-greet h3 {
  color: var(--ph-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.ph-greet p {
  margin: 3px 0 0;
  color: var(--ph-text-3);
  font-size: 11px;
  font-weight: 600;
}

.ph-weather {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ph-text-2);
  font-size: 11px;
  font-weight: 600;
}

.ph-weather strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ph-text);
  letter-spacing: -0.03em;
}

.ph-customize {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ph-text-2);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Faixa de foco */
.ph-foco {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.28);
  box-shadow: var(--ph-glass-highlight);
}

.ph-foco__eye {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ph-rose);
  margin-bottom: 2px;
}

.ph-foco__title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ph-text);
  letter-spacing: -0.02em;
}

.ph-foco__sub {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: var(--ph-text-2);
}

.ph-foco__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: var(--ph-text-2);
  margin-bottom: 5px;
}

.ph-foco__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ph-foco__fill {
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb7185, #fcd34d);
}

.ph-foco__meta {
  margin-top: 4px;
  font-size: 10px;
  color: var(--ph-text-3);
}

.ph-foco__cta {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fb7185;
  color: #1a1020;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  border: 0;
}

/* Widgets */
.ph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ph-card {
  background: var(--ph-glass-bg);
  backdrop-filter: blur(var(--ph-glass-blur));
  -webkit-backdrop-filter: blur(var(--ph-glass-blur));
  border: 1px solid var(--ph-glass-border);
  border-radius: var(--ph-glass-radius);
  box-shadow: var(--ph-glass-shadow), var(--ph-glass-highlight);
  padding: 10px 12px 11px;
  min-width: 0;
}

.ph-card__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--ph-text-2);
  font-size: 10.5px;
  font-weight: 700;
}

.ph-card__badge {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(124, 192, 255, 0.18);
  color: var(--ph-accent);
}

.ph-card__badge--fin { background: rgba(110, 231, 183, 0.16); color: var(--ph-green); }
.ph-card__badge--crm { background: rgba(165, 180, 252, 0.18); color: #c4b5fd; }
.ph-card__badge--cal { background: rgba(252, 211, 77, 0.16); color: var(--ph-amber); }

.ph-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.ph-kpi {
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ph-kpi--warn {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.3);
}

.ph-kpi__label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ph-text-2);
}

.ph-kpi--in .ph-kpi__label { color: var(--ph-green); }
.ph-kpi--out .ph-kpi__label { color: var(--ph-rose); }
.ph-kpi--warn .ph-kpi__label { color: var(--ph-rose); }
.ph-kpi--hero .ph-kpi__label { color: var(--ph-accent); }

.ph-kpi__val {
  display: block;
  margin-top: 1px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ph-text);
  white-space: nowrap;
}

.ph-kpi__cta {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ph-text-3);
}

.ph-spark {
  display: block;
  width: 100%;
  height: 44px;
}

.ph-hint {
  margin-top: 2px;
  font-size: 9px;
  color: var(--ph-text-3);
}

.ph-event {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ph-event:last-child { border-bottom: 0; padding-bottom: 0; }

.ph-event__time {
  flex: none;
  width: 36px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ph-accent);
  font-variant-numeric: tabular-nums;
}

.ph-event__title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ph-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-event__sub {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ph-text-3);
}

.ph-crm-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
  color: var(--ph-text-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ph-crm-row:last-child { border-bottom: 0; }

.ph-crm-row b {
  color: var(--ph-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Satélite: Kanban Projetos ---------- */
.ph-orbit--tl {
  top: 8%;
  left: -2%;
  z-index: 4;
}

.ph-kanban {
  width: 336px;
  padding: 12px 11px 10px;
  border-radius: 16px;
  background: #eef1f6;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 50px rgba(21, 32, 51, 0.32);
  color: #423f3f;
  transform: rotate(-2.4deg);
}

.ph-kanban__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.ph-kanban__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #262347;
  letter-spacing: -0.02em;
}

.ph-kanban__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
}

.ph-kcol {
  background: #e4e8ef;
  border-radius: 10px;
  padding: 7px 6px 8px;
  min-width: 0;
}

.ph-kcol__h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f6c7a;
  margin: 0 2px 7px;
}

.ph-kcol__h span {
  font-weight: 700;
  color: #8a8794;
}

.ph-kcard {
  background: #fff;
  border-radius: 8px;
  padding: 7px 8px 8px;
  margin-bottom: 6px;
  box-shadow: 0 1px 2px rgba(51, 47, 91, 0.06);
}

.ph-kcard:last-child { margin-bottom: 0; }

.ph-kcard b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #332f5b;
}

.ph-kcard em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  color: #8a8794;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-ktag {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
}

.ph-ktag--cli { background: #eaf4fc; color: #1e87f0; }
.ph-ktag--ent { background: #e5f6ee; color: #22a06b; }
.ph-ktag--risk { background: #fdf3e2; color: #b97a1a; }

.ph-krow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.ph-avs { display: flex; }

.ph-avs i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  margin-left: -5px;
  font-style: normal;
  font-size: 7px;
  font-weight: 800;
  color: #fff;
  display: grid;
  place-items: center;
}

.ph-avs i:first-child { margin-left: 0; }
.ph-avs i:nth-child(1) { background: #5fa9e0; }
.ph-avs i:nth-child(2) { background: #6a5ae0; }

.ph-kdate {
  font-size: 8.5px;
  font-weight: 700;
  color: #8a8794;
}

.ph-kdate.is-late { color: #e11d48; }

.ph-kanban__foot {
  margin-top: 9px;
  padding: 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: #1e87f0;
}

/* ---------- Satélite: BI Comercial ---------- */
.ph-orbit--bl {
  bottom: -10%;
  left: -6%;
  z-index: 3;
}

.ph-crmbi {
  width: 268px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6e8ee;
  box-shadow: 0 22px 50px rgba(21, 32, 51, 0.28);
  color: #423f3f;
  transform: rotate(2.2deg);
}

.ph-crmbi__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ph-crmbi__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #262347;
  letter-spacing: -0.02em;
}

.ph-crmbi__chip {
  font-size: 9px;
  font-weight: 700;
  color: #6f6c7a;
  background: #f3f5f9;
  border-radius: 999px;
  padding: 3px 8px;
}

.ph-crmbi__hero {
  margin-bottom: 10px;
}

.ph-crmbi__amount {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #262347;
  font-variant-numeric: tabular-nums;
}

.ph-crmbi__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #6f6c7a;
}

.ph-pipe {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ph-pipe__row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 8px;
  align-items: center;
}

.ph-pipe__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ph-pipe__meta {
  min-width: 0;
}

.ph-pipe__name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #332f5b;
}

.ph-pipe__name b {
  font-variant-numeric: tabular-nums;
  color: #423f3f;
}

.ph-pipe__bar {
  margin-top: 4px;
  height: 5px;
  border-radius: 999px;
  background: #eef1f6;
  overflow: hidden;
}

.ph-pipe__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.ph-pipe__n {
  font-size: 11px;
  font-weight: 800;
  color: #6f6c7a;
  font-variant-numeric: tabular-nums;
}

.ph-crmbi__foot {
  margin-top: 11px;
  font-size: 10.5px;
  font-weight: 700;
  color: #1e87f0;
}

/* ---------- Satélite: WhatsApp / Comunica+ ---------- */
.ph-orbit--tr {
  top: -2%;
  right: -2%;
  z-index: 6;
}

.ph-chat {
  width: 288px;
  padding: 12px 12px 11px;
  border-radius: 16px;
  background: linear-gradient(180deg, #243656 0%, #1a2744 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 50px rgba(21, 32, 51, 0.38);
  color: #fff;
  transform: rotate(2.4deg);
}

.ph-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ph-chat__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ph-chat__chip {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 11px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(37, 211, 102, 0.18);
  white-space: nowrap;
}

.ph-chat__who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ph-chat__av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5fa9e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  flex: none;
  overflow: hidden;
}

.ph-chat__meta {
  min-width: 0;
}

.ph-chat__who strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.ph-chat__who .ph-chat__meta span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.ph-bub {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 7px;
}

.ph-bub time {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  opacity: 0.7;
}

.ph-bub--in {
  background: #d9fdd3;
  color: #134e3a;
  border-bottom-left-radius: 4px;
}

.ph-bub--out {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ph-task {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ph-task__k {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 4px;
}

.ph-task b {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ph-task__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ph-task__row span {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.ph-task__btn {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #6a5ae0;
  border-radius: 999px;
  padding: 5px 10px;
}

/* ---------- Satélite: BI Financeiro ---------- */
.ph-orbit--br {
  bottom: -28%;
  right: -8%;
  z-index: 3;
}

.ph-fin {
  width: 260px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6e8ee;
  box-shadow: 0 22px 50px rgba(21, 32, 51, 0.28);
  color: #423f3f;
  transform: rotate(-2deg);
}

.ph-fin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ph-fin__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #262347;
  letter-spacing: -0.02em;
}

.ph-fin__chip {
  font-size: 9px;
  font-weight: 700;
  color: #6f6c7a;
  background: #f3f5f9;
  border-radius: 999px;
  padding: 3px 8px;
}

.ph-fin__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.ph-fin__kpi {
  padding: 8px 9px;
  border-radius: 10px;
}

.ph-fin__kpi--in { background: #e8f8ef; }
.ph-fin__kpi--out { background: #fdecee; }

.ph-fin__kpi span {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ph-fin__kpi--in span { color: #22a06b; }
.ph-fin__kpi--out span { color: #e11d48; }

.ph-fin__kpi strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #262347;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ph-fin__kpi em {
  display: block;
  margin-top: 1px;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
}

.ph-fin__kpi--in em { color: #22a06b; }
.ph-fin__kpi--out em { color: #6f6c7a; }

.ph-fin__saldo span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #6f6c7a;
}

.ph-fin__saldo strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #262347;
  font-variant-numeric: tabular-nums;
}

.ph-fin__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin: 10px 0 8px;
}

.ph-fin__bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: #34d399;
}

.ph-fin__foot {
  font-size: 10.5px;
  font-weight: 700;
  color: #1e87f0;
}

/* ---------- Tablet / mobile: faixa horizontal dos satélites ---------- */
@media (max-width: 1099px) {
  .hero { overflow-x: hidden; overflow-y: visible; }
  .ph-home { width: 100%; }

  .ph-strip {
    display: flex;
    flex-wrap: nowrap;
    order: 2;
    gap: 12px;
    width: calc(100% + 48px);
    max-width: none;
    margin: 12px -24px 0;
    padding: 8px 24px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    pointer-events: auto;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }

  .ph-orbit {
    display: block;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    flex: 0 0 auto;
    z-index: 2;
    scroll-snap-align: start;
    padding: 0;
    margin: 0;
  }

  .ph-orbit--tr { order: 1; }
  .ph-orbit--tl { order: 2; }
  .ph-orbit--bl { order: 3; }
  .ph-orbit--br { order: 4; }

  .ph-kanban,
  .ph-crmbi,
  .ph-chat,
  .ph-fin {
    transform: none;
    opacity: 1;
    filter: none;
  }

  .ph-kanban { width: 300px; }
  .ph-crmbi { width: 260px; }
  .ph-chat { width: 272px; }
  .ph-fin { width: 260px; }

  .ph-caption__beat--2 {
    display: block;
    margin-top: 0.2em;
    font-weight: 600;
    color: #5a6478;
  }
}

@media (max-width: 860px) {
  .ph-body { grid-template-columns: 120px 1fr; }
  .ph-zoe span { display: none; }
  .ph-foco { grid-template-columns: 1fr auto; }
  .ph-foco__progress { display: none; }
}

/* ---------- Mobile: chrome compacto, altura capada ---------- */
@media (max-width: 767px) {
  .ph-stage { margin-top: 40px; }
  .ph-home {
    border-radius: 18px;
    max-height: 380px;
  }
  .ph-home::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(to top, #152033, transparent);
    pointer-events: none;
    z-index: 3;
  }
  .ph-side { display: none; }
  .ph-body { grid-template-columns: 1fr; min-height: 0; }
  .ph-search { display: none; }
  .ph-top { padding: 8px 12px; }
  .ph-main { padding: 12px; }
  .ph-greet { margin-bottom: 10px; }
  .ph-greet h3 { font-size: 16px; }
  .ph-weather span { display: none; }
  .ph-customize { display: none; }
  .ph-foco { margin-bottom: 10px; padding: 9px 10px; }
  .ph-grid { gap: 8px; }
  .ph-kpi__val { font-size: 14px; }
  .ph-card:nth-child(n + 3) { display: none; }
}

.ph-crmbi__deal,
.ph-fin__deal {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 10px;
  background: #f3f5f9;
  font-size: 11px;
  font-weight: 700;
  color: #332f5b;
}

.ph-crmbi__deal b,
.ph-fin__deal b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .ph-orbit {
    pointer-events: auto;
    padding: 22px;
    margin: -22px;
  }

  .ph-caption__beat {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
  }
  .ph-caption__beat--1 { opacity: 1; }
  .ph-caption__beat--2,
  .ph-caption__beat--3,
  .ph-caption__beat--4 {
    display: block;
  }

  .ph-story {
    transform-origin: center center;
  }

  .ph-kanban,
  .ph-crmbi,
  .ph-fin {
    opacity: 0.62;
    filter: saturate(0.7);
    transform: rotate(-1deg) scale(0.88);
    box-shadow: 0 8px 22px rgba(21, 32, 51, 0.14);
  }

  .ph-chat {
    transform: rotate(0deg) scale(1);
    box-shadow: 0 28px 60px rgba(21, 32, 51, 0.42);
  }

  .ph-compose:has(.ph-orbit--tr:hover) .ph-orbit:not(.ph-orbit--tr) {
    pointer-events: none;
  }

  .ph-orbit--tr:hover {
    z-index: 20;
  }

  .ph-compose:has(.ph-orbit--tr:hover) .ph-story {
    animation-name: ph-guided-card;
    animation-duration: 8s;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
  }
  .ph-compose:has(.ph-orbit--tr:hover) .ph-chat.ph-story { animation-delay: 0s; }
  .ph-compose:has(.ph-orbit--tr:hover) .ph-kanban.ph-story { animation-delay: 2s; }
  .ph-compose:has(.ph-orbit--tr:hover) .ph-crmbi.ph-story { animation-delay: 4s; }
  .ph-compose:has(.ph-orbit--tr:hover) .ph-fin.ph-story { animation-delay: 6s; }

  .ph-compose:has(.ph-orbit--tr:hover) ~ .ph-caption .ph-caption__beat {
    animation-name: ph-guided-line;
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
  }
  .ph-compose:has(.ph-orbit--tr:hover) ~ .ph-caption .ph-caption__beat--1 { animation-delay: 0s; }
  .ph-compose:has(.ph-orbit--tr:hover) ~ .ph-caption .ph-caption__beat--2 { animation-delay: 2s; }
  .ph-compose:has(.ph-orbit--tr:hover) ~ .ph-caption .ph-caption__beat--3 { animation-delay: 4s; }
  .ph-compose:has(.ph-orbit--tr:hover) ~ .ph-caption .ph-caption__beat--4 { animation-delay: 6s; }

  .ph-orbit--tl:hover,
  .ph-orbit--bl:hover,
  .ph-orbit--br:hover {
    z-index: 14;
  }

  .ph-orbit--tl:hover .ph-story,
  .ph-orbit--bl:hover .ph-story,
  .ph-orbit--br:hover .ph-story {
    animation: ph-lift 0.5s ease-out forwards;
  }

  .ph-compose:has(.ph-orbit--tl:hover) .ph-orbit:not(.ph-orbit--tl) .ph-story,
  .ph-compose:has(.ph-orbit--bl:hover) .ph-orbit:not(.ph-orbit--bl) .ph-story,
  .ph-compose:has(.ph-orbit--br:hover) .ph-orbit:not(.ph-orbit--br) .ph-story {
    animation: ph-sink 0.5s ease-out forwards;
  }

  .ph-compose:has(.ph-orbit--tl:hover) ~ .ph-caption .ph-caption__beat,
  .ph-compose:has(.ph-orbit--bl:hover) ~ .ph-caption .ph-caption__beat,
  .ph-compose:has(.ph-orbit--br:hover) ~ .ph-caption .ph-caption__beat {
    animation: none;
    opacity: 0;
  }
  .ph-compose:has(.ph-orbit--tl:hover) ~ .ph-caption .ph-caption__beat--2,
  .ph-compose:has(.ph-orbit--bl:hover) ~ .ph-caption .ph-caption__beat--3,
  .ph-compose:has(.ph-orbit--br:hover) ~ .ph-caption .ph-caption__beat--4 {
    opacity: 1;
  }

  .ph-home .ph-hit { pointer-events: auto; cursor: default; }
}

@keyframes ph-guided-card {
  0% {
    opacity: 0.55;
    filter: saturate(0.65);
    z-index: 2;
    transform: rotate(-1deg) scale(0.88);
    box-shadow: 0 8px 22px rgba(21, 32, 51, 0.14);
  }
  6.25%, 25% {
    opacity: 1;
    filter: none;
    z-index: 12;
    transform: rotate(0deg) scale(1);
    box-shadow: 0 28px 60px rgba(21, 32, 51, 0.42);
  }
  31.25%, 100% {
    opacity: 0.55;
    filter: saturate(0.65);
    z-index: 2;
    transform: rotate(-1deg) scale(0.88);
    box-shadow: 0 8px 22px rgba(21, 32, 51, 0.14);
  }
}

@keyframes ph-guided-line {
  0% { opacity: 0; }
  6.25%, 25% { opacity: 1; }
  31.25%, 100% { opacity: 0; }
}

@keyframes ph-lift {
  from {
    opacity: 0.55;
    filter: saturate(0.65);
    z-index: 2;
    transform: rotate(-1deg) scale(0.88);
    box-shadow: 0 8px 22px rgba(21, 32, 51, 0.14);
  }
  to {
    opacity: 1;
    filter: none;
    z-index: 12;
    transform: rotate(0deg) scale(1);
    box-shadow: 0 28px 60px rgba(21, 32, 51, 0.42);
  }
}

@keyframes ph-sink {
  to {
    opacity: 0.4;
    filter: saturate(0.55);
    z-index: 2;
    transform: rotate(-1deg) scale(0.88);
    box-shadow: 0 8px 22px rgba(21, 32, 51, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-story,
  .ph-caption__beat {
    animation: none !important;
  }
  .ph-caption__beat {
    position: static;
    opacity: 1;
  }
  .ph-caption__beat--2,
  .ph-caption__beat--3,
  .ph-caption__beat--4 {
    display: none;
  }
}
