/* ============================================
   Operations marketing page (/move-in-ready)
   Restrained by design: one accent color, flat
   shapes, no gradients on charts, no motifs.
   ============================================ */

/* This page's spec prohibits circuit-board motifs — hide the site overlay here. */
body:has(.ops-page) .circuit-bg {
  display: none;
}

body:has(.ops-page) .site-bg__orb {
  opacity: 0.35;
}

.ops-page {
  --ops-accent: var(--color-cyan);
  --ops-line: rgba(226, 232, 240, 0.18);
  --ops-card: rgba(13, 21, 41, 0.6);
  min-height: 100vh;
}

/* ---------- Nav ---------- */
.ops-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.ops-nav__brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.ops-nav__links {
  display: flex;
  gap: 1.5rem;
}

.ops-nav__link {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.ops-nav__link:hover {
  color: var(--color-text);
}

.ops-nav__link--current {
  color: var(--color-text);
  border-bottom: 2px solid var(--ops-accent);
  padding-bottom: 2px;
}

/* ---------- Page column ---------- */
.ops {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.ops p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 1.1rem;
}

.ops p strong {
  color: #fff;
}

.ops-section {
  margin-top: 4.5rem;
}

.ops-section__title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.25rem;
}

.ops-caption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* ---------- Buttons ---------- */
.ops-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 1.75rem 0;
}

.ops-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}

.ops-btn--primary {
  background: var(--ops-accent);
  color: #07131a;
}

.ops-btn--primary:hover {
  filter: brightness(1.1);
}

.ops-btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--ops-line);
}

.ops-btn--ghost:hover {
  border-color: var(--ops-accent);
}

/* ---------- §1 Hero ---------- */
.ops-hero {
  padding-top: 3rem;
}

.ops-hero__title {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  max-width: 40rem;
}

.ops-hero__subhead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 38rem;
}

.ops-hero__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.house-panel {
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--ops-card);
  color: var(--color-text-muted);
}

.house-panel--ready {
  color: var(--ops-accent);
  border-color: rgba(0, 229, 255, 0.35);
}

.house-panel__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.house-panel__label {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.house-panel__trait {
  font-size: 0.875rem !important;
  color: var(--color-text-muted) !important;
  line-height: 1.5 !important;
  margin: 0.35rem 0 0 !important;
}

/* ---------- §2 Chart A ---------- */
.chart-a {
  margin-top: 2.25rem;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: var(--ops-card);
  padding: 1.75rem 1.5rem 1.5rem;
}

.chart-a__row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.chart-a__label {
  font-size: 0.9375rem;
  color: var(--color-text);
  text-align: right;
  line-height: 1.35;
}

.chart-a__track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-a__bar {
  height: 2.25rem;
  border-radius: 4px;
}

.chart-a__bar--repair {
  width: 27%;
  background: rgba(226, 232, 240, 0.55);
}

.chart-a__bar--deduct {
  width: 81%;
  background: var(--ops-accent);
}

.chart-a__annotation {
  position: absolute;
  left: 30%;
  top: -1.45rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ---------- §3 Timeline ---------- */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.875rem;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: var(--ops-line);
}

.timeline__step {
  position: relative;
  text-align: center;
  padding: 0 0.25rem;
}

.timeline__marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--ops-accent);
  background: var(--color-bg);
  color: var(--ops-accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.timeline__week {
  display: block;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.timeline__text {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ---------- §4 Before/after flow ---------- */
.flowpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.flow {
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: var(--ops-card);
  padding: 1.25rem;
}

.flow__title {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.flow--after .flow__title {
  color: var(--ops-accent);
}

.flow__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.flow__step {
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-text);
  background: rgba(226, 232, 240, 0.04);
}

.flow__step--maybe {
  border-style: dashed;
  color: var(--color-text-muted);
}

.flow__step--lost {
  border-color: rgba(217, 70, 239, 0.5);
  color: var(--color-text-muted);
}

.flow__step--win {
  border-color: rgba(0, 229, 255, 0.5);
}

.flow__link {
  width: 1px;
  height: 1.1rem;
  margin: 0 auto;
  background: var(--color-text-muted);
}

.flow__link--broken {
  background: none;
  border-left: 1px dashed var(--color-text-muted);
  opacity: 0.7;
}

/* ---------- §4 Dashboard mockup ---------- */
.dash {
  margin-top: 2.25rem;
}

.dash__svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--color-text-muted);
}

.dash__accent {
  fill: var(--ops-accent);
}

.dash__accent-stroke {
  stroke: var(--ops-accent);
}

/* ---------- §5 Chart B ---------- */
.chart-b {
  margin-top: 2.25rem;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: var(--ops-card);
  padding: 1.5rem 1.25rem 1rem;
}

.chart-b__svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--color-text);
}

.chart-b__band {
  fill: rgba(0, 229, 255, 0.07);
}

.chart-b__line--coast {
  stroke: var(--color-text-muted);
  stroke-dasharray: 7 5;
}

.chart-b__line--systems {
  stroke: var(--ops-accent);
}

/* Legend is a mobile replacement for the in-SVG labels, which shrink
   below legibility on narrow screens. Hidden on desktop. */
.chart-b__legend {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

.chart-b__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.chart-b__swatch {
  display: inline-block;
  width: 1.1rem;
  height: 0;
  border-top: 3px solid;
}

.chart-b__swatch--systems {
  border-color: var(--ops-accent);
}

.chart-b__swatch--coast {
  border-top-style: dashed;
  border-color: var(--color-text-muted);
}

.chart-b__swatch--band {
  height: 0.85rem;
  border: none;
  background: rgba(0, 229, 255, 0.12);
}

/* ---------- §8 Reactions ---------- */
.reactions {
  margin-top: 0.5rem;
}

.reaction {
  border-bottom: 1px solid var(--ops-line);
}

.reaction__q {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-text);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.reaction__q::-webkit-details-marker {
  display: none;
}

.reaction__q::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ops-accent);
  font-size: 1.35rem;
  font-weight: 400;
}

.reaction[open] .reaction__q::after {
  content: "\2212";
}

.reaction__a {
  padding-bottom: 1.15rem;
}

/* ---------- §9 Close ---------- */
.ops-close {
  border-top: 1px solid var(--ops-line);
  padding-top: 3rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .ops-hero__panels,
  .flowpair {
    grid-template-columns: 1fr;
  }

  /* Chart A: labels stack above bars so the comparison stays legible */
  .chart-a__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-bottom: 1.6rem;
  }

  .chart-a__label {
    text-align: left;
  }

  .chart-a__annotation {
    position: static;
    white-space: normal;
    margin-left: 0.25rem;
  }

  .chart-a__bar--deduct {
    width: 78%;
  }

  .chart-a__bar--repair {
    width: 26%;
  }

  /* Timeline goes vertical */
  .timeline {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .timeline::before {
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.875rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .timeline__step {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    column-gap: 0.9rem;
    text-align: left;
    align-items: start;
  }

  .timeline__week {
    grid-column: 2;
    margin-top: 0.15rem;
  }

  .timeline__text {
    grid-column: 2;
  }

  .ops-nav__links {
    gap: 1rem;
  }

  /* Swap Chart B's in-SVG labels for the HTML legend */
  .chart-b__svg text {
    display: none;
  }

  .chart-b__legend {
    display: flex;
  }
}
