/* Why Vistorio — page-specific (wy-) */

.wy-hero-title {
  margin: 0 0 1rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.wy-hero-title span {
  display: block;
  font-weight: 800;
  color: var(--ink);
}

.wy-hero-title span:nth-child(1) {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.wy-hero-title span:nth-child(2) {
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--red);
  font-weight: 800;
  margin-top: 0.35rem;
}

.wy-hero-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 28rem;
  line-height: 1.5;
}

.wy-hero-tagline em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
}

.wy-band--calm {
  background: var(--page-muted);
}

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

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

/* Ecosystem hub */
.wy-eco {
  position: relative;
  margin: 0 auto;
  max-width: 720px;
  aspect-ratio: 1;
}

.wy-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;
}

.wy-eco__hub strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
}

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

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

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

.wy-eco__node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  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;
}

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

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

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

/* Pain points */
.wy-pain-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  margin-bottom: 2rem;
}

.wy-pain {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

.wy-pain::before {
  content: '—';
  display: block;
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.wy-pain-conclusion {
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* Q&A cards */
.wy-qa-grid { display: grid; gap: 0.75rem; }

.wy-qa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s var(--ease);
}

.wy-qa:hover { border-color: rgba(177, 18, 38, 0.2); }

@media (max-width: 640px) {
  .wy-qa { grid-template-columns: 1fr; }
}

.wy-qa__q {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.wy-qa__a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--success);
  padding: 0.65rem 0.85rem;
  background: rgba(13, 122, 78, 0.08);
  border-radius: 10px;
}

/* Three pillars */
.wy-pillars {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .wy-pillars { grid-template-columns: repeat(3, 1fr); }
}

.wy-pillar {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.wy-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.wy-pillar__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.wy-pillar h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wy-pillar > p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.wy-pillar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.wy-pillar li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  padding-left: 1rem;
  position: relative;
}

.wy-pillar li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

.wy-pillar__ui {
  margin-top: 1.25rem;
  background: var(--ink);
  border-radius: 12px;
  padding: 0.85rem;
  min-height: 80px;
}

.wy-pillar__kpi {
  display: inline-block;
  margin: 0.2rem;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

/* Workflows */
.wy-flow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.wy-flow-tab {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}

.wy-flow-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.wy-flow-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.wy-flow-panel.is-active { display: block; }

.wy-flow-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.wy-flow-panel > p {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.wy-flow-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.wy-flow-step {
  padding: 0.55rem 0.85rem;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.4;
  transition: opacity 0.35s var(--ease), background 0.35s, border-color 0.35s;
}

.wy-flow-step.is-visible {
  opacity: 1;
  background: var(--red-soft);
  border-color: rgba(177, 18, 38, 0.25);
}

.wy-flow-arrow {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

/* Outcomes */
.wy-outcomes {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
}

.wy-outcome {
  padding: 1.25rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.wy-outcome:hover {
  transform: translateY(-3px);
  border-color: rgba(177, 18, 38, 0.25);
}

.wy-outcome__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.wy-outcome strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.wy-outcome span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Africa section */
.wy-africa {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .wy-africa { grid-template-columns: 1fr 1fr; }
}

.wy-africa-points {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.wy-africa-points li {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.45;
}

.wy-africa-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.wy-africa-visual {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
}

.wy-africa-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.wy-africa-stat div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
}

.wy-africa-stat b {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.wy-africa-stat span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* Dashboard showcase */
.wy-dash-showcase {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .wy-dash-showcase { grid-template-columns: 1.1fr 0.9fr; }
}

.wy-dash-kpis {
  display: grid;
  gap: 0.65rem;
}

.wy-dash-kpi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.82rem;
}

.wy-dash-kpi label {
  font-weight: 700;
  color: var(--ink);
}

.wy-dash-kpi b {
  font-weight: 800;
  color: var(--red);
}

/* Journey timeline */
.wy-journey {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.wy-journey-step {
  flex: 1 1 8rem;
  max-width: 11rem;
  padding: 1.15rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  opacity: 0.45;
  transition: opacity 0.4s var(--ease), background 0.4s, border-color 0.4s;
}

.wy-journey-step.is-visible {
  opacity: 1;
  background: var(--red-soft);
  border-color: rgba(177, 18, 38, 0.2);
}

.wy-journey-step__num {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.wy-journey-step.is-visible .wy-journey-step__num { background: var(--red); }

.wy-journey-step strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.wy-journey-step span {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.wy-journey-arrow {
  align-self: center;
  font-size: 1.25rem;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 700px) {
  .wy-journey-arrow { display: none; }
  .wy-journey-step { max-width: 100%; flex: 1 1 100%; }
}

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

.wy-sec-card {
  padding: 1.25rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.wy-sec-card__icon {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.wy-sec-card strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.wy-sec-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Scalability path */
.wy-scale {
  display: grid;
  gap: 0;
}

@media (min-width: 768px) {
  .wy-scale { grid-template-columns: repeat(4, 1fr); }
}

.wy-scale-step {
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
}

.wy-scale-step:first-child { border-radius: 18px 18px 0 0; }
.wy-scale-step:last-child { border-radius: 0 0 18px 18px; }

@media (min-width: 768px) {
  .wy-scale-step:first-child { border-radius: 18px 0 0 18px; }
  .wy-scale-step:last-child { border-radius: 0 18px 18px 0; }
  .wy-scale-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -0.65rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--red);
    z-index: 1;
  }
}

.wy-scale-step__label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.wy-scale-step strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.wy-scale-step p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Final CTA */
.wy-final {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--ink);
  text-align: center;
}

.wy-final .hp-h2 { color: #fff; }
.wy-final .hp-lede { color: rgba(255, 255, 255, 0.65); }
