/* ============================================================
   ZYOS GROUP — Component CSS (interactive features)
   ============================================================ */

/* ===== OE TEASER QUIZ ===== */
.oe-teaser {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.oe-teaser::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-cyan));
}
.oe-progress {
  margin-bottom: 2rem;
}
.oe-progress-track {
  height: 4px;
  background: var(--divider);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.oe-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-cyan));
  border-radius: 100px;
  transition: width 0.4s var(--ease-soft);
}
.oe-progress-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-gray);
}
.oe-q {
  display: none;
  animation: oeQIn 0.35s var(--ease-out);
}
.oe-q.active { display: block; }
@keyframes oeQIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}
.oe-q .question {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--brand-navy-darker);
  margin-bottom: 1.5rem;
}
.oe-answers {
  display: flex; flex-direction: column;
  gap: 0.65rem;
}
.oe-answer {
  text-align: left;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--divider-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s var(--ease-soft);
  display: flex; align-items: center; gap: 0.85rem;
}
.oe-answer:hover {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan-tint);
  color: var(--brand-navy-darker);
  transform: translateX(4px);
}
.oe-answer .num {
  font-family: var(--font-mono);
  font-weight: 600;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-navy-tint);
  color: var(--brand-navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
  transition: all 0.18s var(--ease-soft);
}
.oe-answer:hover .num {
  background: var(--brand-cyan);
  color: var(--white);
}
.oe-result {
  display: none;
}
.oe-result.visible { display: block; animation: oeQIn 0.4s var(--ease-out); }
.oe-result-card { padding: 0; }
.oe-result-band {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.oe-result-band .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.oe-result-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--brand-navy-darker);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.oe-result-score span {
  font-size: 1.4rem;
  color: var(--neutral-gray);
  font-weight: 500;
}
.oe-result-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--brand-navy-darker);
  margin-bottom: 1rem;
}
.oe-result-body {
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.oe-result-disclaimer {
  font-size: 0.86rem;
  color: var(--neutral-gray);
  background: var(--paper);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-cyan);
  margin-bottom: 1.5rem;
}
.oe-result-ctas {
  display: flex; gap: 0.85rem;
  flex-wrap: wrap;
}

/* ===== ENGAGEMENT MODEL SELECTOR ===== */
.model-selector {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}
@media (max-width: 880px) {
  .model-selector { grid-template-columns: 1fr; gap: 1.5rem; }
}
.model-options {
  display: flex; flex-direction: column;
  gap: 0.5rem;
}
.model-option {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--divider);
  border-left: 4px solid transparent;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.18s var(--ease-soft);
}
.model-option:hover {
  border-color: var(--brand-cyan);
  background: var(--paper);
}
.model-option.active {
  /* Stay solid white — the previous rgba tint bled the navy parent through
     when the selector sat inside a .section-dark, making the active card
     look navy with invisible navy text. */
  background: var(--white);
  border-color: var(--brand-cyan);
  border-left-color: var(--brand-navy);
  box-shadow: 0 4px 18px rgba(21, 105, 172, 0.20);
}
.model-option .model-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-navy-darker);
  display: block;
  margin-bottom: 0.2rem;
}
.model-option .model-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--neutral-gray);
  text-transform: uppercase;
}
.model-detail {
  display: none;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 2rem;
  animation: fadeIn 0.35s var(--ease-out);
}
.model-detail.active { display: block; }
.model-detail h3 {
  margin-bottom: 0.4rem;
  display: flex; align-items: baseline; gap: 0.85rem;
  flex-wrap: wrap;
}
.model-detail h3 .model-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brand-cyan-vivid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.model-detail .feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.7rem;
}
.model-detail .feature-list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink);
}
.model-detail .feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6rem;
  width: 8px; height: 8px;
  background: var(--brand-cyan);
  border-radius: 2px;
  transform: rotate(45deg);
}
.model-detail .best-for {
  background: var(--paper);
  border-left: 3px solid var(--brand-navy);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.model-detail .best-for strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
}

/* When the model-selector lives inside a .section-dark (e.g. the
   "Four ways to work with us" block on the home page), the section-dark
   global text rules turn <p> and <h3> white. The selector cards have a
   solid white background, though, so we restore dark text inside them. */
.section-dark .model-options { color: var(--ink); }
.section-dark .model-option .model-name { color: var(--brand-navy-darker); }
.section-dark .model-option .model-tag { color: var(--neutral-gray); }
.section-dark .model-detail,
.section-dark .model-detail p,
.section-dark .model-detail li { color: var(--ink); }
.section-dark .model-detail h3,
.section-dark .model-detail h4 { color: var(--brand-navy-darker); }
.section-dark .model-detail .lede { color: var(--ink); }
.section-dark .model-detail .best-for { background: var(--paper); }
.section-dark .model-detail .best-for strong { color: var(--brand-navy); }
.section-dark .model-detail h3 .model-meta { color: var(--brand-cyan-vivid); }

/* ===== PROCESS FLOW DIAGRAM ===== */
.process-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 3rem;
}
@media (max-width: 880px) {
  .process-flow { grid-template-columns: 1fr; gap: 2.5rem; }
}
.process-flow::before {
  content: '';
  position: absolute;
  top: 56px; left: 12%; right: 12%;
  height: 2px;
  background: var(--divider);
  z-index: 0;
}
.process-flow.animate::before {
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-cyan), var(--brand-navy));
  transition: background 1.2s var(--ease-out);
}
@media (max-width: 880px) {
  .process-flow::before { display: none; }
}
.flow-stage {
  position: relative;
  text-align: center;
  z-index: 1;
}
.flow-stage .stage-num {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--divider);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--brand-navy);
  transition: all 0.5s var(--ease-out);
}
.flow-stage .stage-num .num {
  font-size: 1.5rem;
  line-height: 1;
}
.flow-stage .stage-num .sub {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-gray);
  margin-top: 0.2rem;
}
.process-flow.animate .flow-stage:nth-child(1) .stage-num {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan-tint);
  transition-delay: 0.2s;
}
.process-flow.animate .flow-stage:nth-child(2) .stage-num {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan-tint);
  transition-delay: 0.55s;
}
.process-flow.animate .flow-stage:nth-child(3) .stage-num {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan-tint);
  transition-delay: 0.9s;
}
.flow-stage h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.flow-stage p {
  color: var(--neutral-gray);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== INDUSTRY TABS ===== */
.industry-tabs {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  overflow: hidden;
}
.industry-tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--divider);
}
@media (max-width: 720px) {
  .industry-tab-buttons { grid-template-columns: 1fr; }
}
.industry-tab-btn {
  background: transparent;
  border: none;
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  text-align: left;
  border-right: 1px solid var(--divider);
  transition: all 0.2s var(--ease-soft);
  position: relative;
}
.industry-tab-btn:last-child { border-right: none; }
@media (max-width: 720px) {
  .industry-tab-btn {
    border-right: none;
    border-bottom: 1px solid var(--divider);
  }
  .industry-tab-btn:last-child { border-bottom: none; }
}
.industry-tab-btn:hover { background: var(--paper); }
.industry-tab-btn.active {
  background: var(--brand-navy-tint);
}
.industry-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--brand-cyan);
}
@media (max-width: 720px) {
  .industry-tab-btn.active::after {
    bottom: 0; top: 0;
    width: 3px; height: auto;
    left: 0; right: auto;
  }
}
.industry-tab-btn .tab-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-cyan-vivid);
  margin-bottom: 0.5rem;
  display: block;
}
.industry-tab-btn .tab-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--brand-navy-darker);
  display: block;
  margin-bottom: 0.3rem;
}
.industry-tab-btn .tab-sub {
  font-size: 0.85rem;
  color: var(--neutral-gray);
  display: block;
}
.industry-panel {
  display: none;
  padding: 2.5rem;
  animation: fadeIn 0.4s var(--ease-out);
}
.industry-panel.active { display: block; }
.industry-panel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 880px) {
  .industry-panel-grid { grid-template-columns: 1fr; gap: 2rem; }
  .industry-panel { padding: 1.5rem; }
}
.industry-panel-grid h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.industry-panel-grid .stat-card {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.industry-panel-grid .stat-card h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-navy);
  margin: 0 0 1rem;
}
.industry-panel-grid .stat-card ul {
  list-style: none; padding: 0; margin: 0;
}
.industry-panel-grid .stat-card ul li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.92rem;
  color: var(--ink);
  display: flex; gap: 0.6rem;
  align-items: flex-start;
}
.industry-panel-grid .stat-card ul li:last-child { border-bottom: none; }
.industry-panel-grid .stat-card ul li::before {
  content: '→';
  color: var(--brand-cyan);
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== SCORE BAND VISUAL ===== */
.score-bands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
}
@media (max-width: 600px) {
  .score-bands { grid-template-columns: repeat(2, 1fr); }
}
.score-band {
  padding: 1.25rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--white);
  text-align: center;
}
.score-band .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.4rem;
}
.score-band .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.score-band-1 { background: var(--score-critical); }
.score-band-2 { background: var(--score-risk); }
.score-band-3 { background: var(--score-developing); }
.score-band-4 { background: var(--score-capable); }
.score-band-5 { background: var(--score-optimized); }

/* ===== STAT CARD ROW ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-row .stat {
  text-align: left;
  padding-left: 1rem;
  border-left: 2px solid var(--brand-cyan);
}
.stat-row .stat .big {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--brand-navy-darker);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-row .stat .label {
  font-size: 0.85rem;
  color: var(--neutral-gray);
  line-height: 1.4;
}

/* ===== DARK SECTION OVERRIDES for components ===== */
.section-dark .oe-teaser {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.section-dark .oe-teaser .oe-q .question { color: var(--white); }
.section-dark .oe-answer {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.section-dark .oe-answer:hover {
  background: rgba(72, 193, 235, 0.12);
  border-color: var(--brand-cyan);
  color: var(--white);
}

/* ===== UTILITY: badges/list with check ===== */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.check-list li {
  padding-left: 1.8rem;
  position: relative;
  color: var(--ink);
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem;
  width: 16px; height: 9px;
  border-left: 2px solid var(--brand-cyan);
  border-bottom: 2px solid var(--brand-cyan);
  transform: rotate(-45deg);
}
.section-dark .check-list li { color: rgba(255, 255, 255, 0.85); }

/* ===== CTA Strip ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-darker) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(72, 193, 235, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-strip::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -10%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(72, 193, 235, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-strip h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  position: relative;
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  position: relative;
}
.cta-strip .cta-buttons {
  display: flex; gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-strip .btn-primary {
  background: var(--brand-cyan);
  color: var(--brand-navy-darker);
  font-weight: 600;
}
.cta-strip .btn-primary:hover {
  background: var(--white);
  color: var(--brand-navy-darker);
}
.cta-strip .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.cta-strip .btn-secondary:hover {
  background: var(--white);
  color: var(--brand-navy-darker);
  border-color: var(--white);
}
@media (max-width: 600px) { .cta-strip { padding: 2.5rem 1.5rem; } }
