/* ─── PAGE-SPECIFIC ──────────────────────────────────────────────── */

/* Hero: widen h1 for the two-sentence hook */
.hero h1 {
  max-width: 18ch;
}

/* Cockpit panel: hero right column visual */
.cockpit-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,253,0.98));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.cockpit-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(22,34,51,0.08);
}
.cockpit-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,71,171,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,71,171,0.028) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  position: relative;
}
.cockpit-label {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cockpit-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cobalt);
  box-shadow: 0 0 0 5px rgba(0,71,171,0.10);
  flex-shrink: 0;
}
.cockpit-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cobalt);
}
.cockpit-live__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cobalt);
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.cockpit-modules {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}
.cockpit-module {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.cockpit-module:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border-strong);
}
.cockpit-module--purple { background:rgba(128,0,128,0.04); border-color:rgba(128,0,128,0.16); }
.cockpit-module--orange { background:rgba(254,90,29,0.04);  border-color:rgba(254,90,29,0.14); }
.cockpit-module--cobalt { background:rgba(0,71,171,0.025);  border-color:rgba(0,71,171,0.12);  }
.cockpit-module__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.cockpit-module__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1;
  flex-shrink: 0;
}
.cockpit-module__context {
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  flex: 1;
  padding-left: var(--space-2);
}
.cockpit-module__pct {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.cockpit-module__pct--purple { color: var(--color-purple); }
.cockpit-module__pct--orange { color: var(--color-orange); }
.cockpit-module__pct--cobalt { color: var(--color-cobalt); }
.score-track {
  height: 4px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}
.score-fill--purple { background: var(--color-purple); width: 73%; }
.score-fill--orange { background: var(--color-orange); width: 61%; }
.score-fill--cobalt { background: var(--color-cobalt); width: 82%; }
.cockpit-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.cockpit-footer__note {
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Workflow: Diagnose / Install / Run */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}
.workflow-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--color-cobalt);
  z-index: 0;
}
.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.workflow-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-5);
  border: 3px solid var(--color-surface);
  flex-shrink: 0;
}
.wn-purple { background: var(--color-purple); }
.wn-cobalt  { background: var(--color-cobalt); }
.wn-orange  { background: var(--color-orange); }
.workflow-step-name {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.workflow-step-module {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-cobalt);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.workflow-step p { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.65; }

/* Module cards */
.module-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(22,34,51,0.08);
  border-color: var(--color-border-strong);
}
.module-card--purple { background:rgba(128,0,128,0.04); border-color:rgba(128,0,128,0.18); }
.module-card--orange { background:rgba(254,90,29,0.04);  border-color:rgba(254,90,29,0.16); }
.module-card--cobalt { background:rgba(0,71,171,0.025);  border-color:rgba(0,71,171,0.14);  }
.module-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  align-self: flex-start;
}
.module-badge--purple { background: rgba(128,0,128,0.07); color: var(--color-purple); border-color: rgba(128,0,128,0.12); }
.module-badge--orange { background: rgba(254,90,29,0.07);  color: var(--color-orange); border-color: rgba(254,90,29,0.14); }
.module-badge--cobalt { background: rgba(0,71,171,0.06);   color: var(--color-cobalt); border-color: rgba(0,71,171,0.12);  }
.module-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.module-name--purple { color: var(--color-purple); }
.module-name--orange { color: var(--color-orange); }
.module-name--cobalt { color: var(--color-cobalt); }
.module-tagline {
  font-family: var(--font-condensed);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 var(--space-4);
}
.module-desc {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}
.outcome-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.5;
}
.outcome-tick {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0,71,171,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.outcome-tick svg { width: 8px; height: 8px; }

/* Gap section: framework-items without a stage-number need block layout */
.framework-list--block .framework-item {
  display: block;
}

/* Operating motion: 2-column framework-list layout */
.motion-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
  margin-bottom: var(--space-10);
}
.framework-list--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* CTA heading size */
.cta-panel h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  max-width: 22ch;
  margin-bottom: var(--space-3);
}

/* Responsive */
@media (max-width: 1080px) {
  .cockpit-panel { display: none; }
  .motion-intro  { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 900px) {
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid::before { display: none; }
  .framework-list--2col { grid-template-columns: 1fr; }
}
