/* Vistorio Platform Overview — page-specific */

/* ─── Ecosystem hub diagram ─── */
.pl-eco {
  position: relative;
  margin: 3rem auto 0;
  max-width: 720px;
  aspect-ratio: 1;
}

.pl-eco__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  max-width: 200px;
  padding: 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(177, 18, 38, 0.2);
  z-index: 2;
}

.pl-eco__hub strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pl-eco__hub span {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
  display: block;
}

.pl-eco__spokes {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pl-eco__spokes svg {
  width: 100%;
  height: 100%;
}

.pl-eco__node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.55rem 0.85rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  z-index: 1;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.pl-eco__node:hover {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: rgba(177,18,38,0.3);
}

.pl-eco__node--1 { top: 8%; left: 50%; }
.pl-eco__node--2 { top: 22%; left: 88%; }
.pl-eco__node--3 { top: 50%; left: 95%; }
.pl-eco__node--4 { top: 78%; left: 88%; }
.pl-eco__node--5 { top: 92%; left: 50%; }
.pl-eco__node--6 { top: 78%; left: 12%; }
.pl-eco__node--7 { top: 50%; left: 5%; }
.pl-eco__node--8 { top: 22%; left: 12%; }
.pl-eco__node--9 { top: 35%; left: 72%; }
.pl-eco__node--10 { top: 65%; left: 28%; }

@media (max-width: 600px) {
  .pl-eco { aspect-ratio: auto; min-height: 520px; max-width: 100%; }
  .pl-eco__node { font-size: 0.65rem; padding: 0.4rem 0.6rem; }
}

/* ─── Module detail sections ─── */
.pl-module {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.pl-module:last-of-type { border-bottom: none; }

@media (min-width: 900px) {
  .pl-module { grid-template-columns: 1fr 1fr; }
  .pl-module--flip .pl-module__copy { order: 2; }
  .pl-module--flip .pl-module__ui { order: 1; }
}

.pl-module__copy .hp-eyebrow { margin-bottom: 0.65rem; }

.pl-module__copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.pl-module__copy > p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.pl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.pl-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--page);
  border: 1px solid var(--line);
  color: var(--ink);
}

.pl-module__cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
}

.pl-module__cta:hover { text-decoration: underline; }

/* UI panels */
.pl-ui {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pl-ui__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.pl-ui__live {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pl-ui__live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.pl-ui__body { padding: 1rem 1.15rem; }

.pl-ui__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pl-ui__stat {
  padding: 0.65rem;
  background: var(--page);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.pl-ui__stat label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.pl-ui__stat b {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.pl-ui__stat b.warn { color: #b45309; }
.pl-ui__stat b.ok { color: var(--success); }
.pl-ui__stat b.alert { color: var(--red); }

.pl-ui__list { list-style: none; margin: 0; padding: 0; }

.pl-ui__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.pl-ui__list li:last-child { border-bottom: none; }

.pl-ui__pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.pl-ui__pill--dirty { background: #fef2f2; color: var(--red); }
.pl-ui__pill--clean { background: #ecfdf5; color: var(--success); }
.pl-ui__pill--prog { background: #fff7ed; color: #b45309; }

.pl-ui__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 80px;
  padding: 0.75rem;
  background: var(--page);
  border-radius: 10px;
}

.pl-ui__bar {
  flex: 1;
  background: var(--red);
  border-radius: 4px 4px 0 0;
  min-height: 15%;
}

.pl-ui__bar:nth-child(1) { height: 40%; }
.pl-ui__bar:nth-child(2) { height: 65%; }
.pl-ui__bar:nth-child(3) { height: 55%; }
.pl-ui__bar:nth-child(4) { height: 80%; }
.pl-ui__bar:nth-child(5) { height: 70%; }
.pl-ui__bar:nth-child(6) { height: 90%; }

/* Executive dashboard full width */
.pl-dash-full {
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.pl-dash-full__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.65rem;
}

.pl-dash-full__tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.85rem;
}

.pl-dash-full__tile span {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.2rem;
}

.pl-dash-full__tile strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.pl-dash-full__tile.gold strong { color: var(--warn); }
.pl-dash-full__tile.red strong { color: var(--danger); }
.pl-dash-full__tile.green strong { color: var(--success); }

/* Compare simplicity */
.pl-compare-vs {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .pl-compare-vs { grid-template-columns: 1fr 1fr; }
}

.pl-compare-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.pl-compare-card--old {
  background: #f0eeea;
  opacity: 0.85;
}

.pl-compare-card--new {
  background: var(--surface);
  border-color: rgba(177,18,38,0.2);
  box-shadow: var(--shadow-md);
}

.pl-compare-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
}

.pl-compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pl-compare-card li {
  font-size: 0.88rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.pl-compare-card--new li { color: var(--ink); font-weight: 500; }

.pl-compare-card li:last-child { border-bottom: none; }

.pl-compare-card--old li::before { content: '✕ '; color: var(--red); font-weight: 700; }
.pl-compare-card--new li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* Security grid */
.pl-security {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.pl-sec-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pl-sec-card__icon {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.pl-sec-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.pl-sec-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Hero ecosystem (platform hero) */
.pl-hero-eco {
  position: relative;
  min-height: 380px;
}

.pl-hero-eco .pl-eco {
  margin-top: 0;
  max-width: 100%;
}

/* Pillars strip */
.pl-pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--ink);
  border-radius: 20px;
  color: #fff;
}

@media (max-width: 700px) {
  .pl-pillars { grid-template-columns: 1fr; }
}

.pl-pillar {
  text-align: center;
  padding: 0.5rem;
}

.pl-pillar strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.pl-pillar span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.45;
}

.pl-pillar + .pl-pillar {
  border-left: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 700px) {
  .pl-pillar + .pl-pillar {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
  }
}

/* Section band */
.pl-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pl-band--dark {
  background: var(--ink);
  color: #fff;
  border: none;
}

.pl-band--dark .hp-h2,
.pl-band--dark .hp-lede { color: #fff; }
.pl-band--dark .hp-lede { color: rgba(255,255,255,0.65); }
