/* ============================================================
   Website Maintenance Page — dedicated styles
   Extends shared tokens/reveal system from style.css. Only the
   components unique to this page live here (hero diagnostic panel,
   statement log, matrix, Fix/Update/Improve, timeline, dashboard,
   situations, cross-sell, closing). Everything else on the page
   reuses existing shared classes (page-intro, value-prop,
   service-included, service-faq, wd-process, btn-primary/ghost).
   ============================================================ */

.wm-page { flex-direction: column; }

/* ---------- Section 1: Hero + Health Panel ---------- */

.wm-hero {
  padding: 6vh 5vw 5vh;
}

.wm-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  min-width: 0;
}

.wm-hero__inner > * { min-width: 0; }

@media (max-width: 900px) {
  .wm-hero__inner { grid-template-columns: 1fr; }
}

.wm-hero__heading {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wm-hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: #4a4a4a;
  max-width: 520px;
  line-height: 1.6;
}

.wm-hero__inner .cta-group { margin-top: 2rem; }

.wm-panel {
  background: var(--ink);
  color: #FAFAFA;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 24px 48px rgba(27, 31, 29, 0.25);
  min-width: 0;
  width: 100%;
}

.wm-panel__head {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1rem;
}

.wm-panel__list { list-style: none; }

.wm-panel__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  min-width: 0;
}

.wm-panel__list li span {
  opacity: 0.75;
  letter-spacing: 0.03em;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 400px) {
  .wm-panel__list li { font-size: 0.72rem; }
}

.wm-panel__list em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.wm-panel__list em.is-checked {
  opacity: 1;
  transform: translateX(0);
}

.wm-panel__foot {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.wm-panel__last { opacity: 0.6; line-height: 1.5; }
.wm-panel__last strong { color: #FAFAFA; opacity: 1; }

.wm-panel__tally {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 700;
}

.wm-panel__tally span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.wm-panel__tally small {
  display: block;
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 0.03em;
  font-size: 0.62rem;
  white-space: nowrap;
}

/* ---------- Section 2: Statement / Diagnostic Log ---------- */

.wm-statement {
  padding: 5rem 1.5rem;
  background: #FFFFFF;
  text-align: center;
}

.wm-statement__inner { max-width: 720px; margin: 0 auto; }

.wm-statement__heading {
  font-size: clamp(1.75rem, 4.4vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.wm-statement__lead {
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.75;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.wm-log {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--teal);
}

.wm-statement__result {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.wm-statement__flow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  font-weight: 700;
}

/* ---------- Section 3: Maintenance Matrix ---------- */

.wm-matrix {
  padding: 5rem 1.5rem;
  background: var(--bg);
}

.wm-matrix__inner { max-width: 800px; margin: 0 auto; }

.wm-matrix__heading {
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.wm-matrix__sub {
  text-align: center;
  color: var(--ink);
  opacity: 0.65;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.wm-matrix__table {
  border-top: 1px solid var(--grey);
}

.wm-matrix__row {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 1rem;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--grey);
  font-size: 0.88rem;
}

.wm-matrix__row--head {
  font-weight: 700;
  color: var(--ink);
  opacity: 0.55;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wm-matrix__row:not(.wm-matrix__row--head) span:first-child {
  font-weight: 700;
  color: var(--accent-text);
}

.wm-matrix__row:not(.wm-matrix__row--head) span:last-child {
  color: var(--ink);
  opacity: 0.8;
}

/* ---------- Section 4: Fix / Update / Improve ---------- */

.wm-modes {
  padding: 5rem 1.5rem;
  background: #FFFFFF;
  text-align: center;
}

.wm-modes__inner { max-width: 700px; margin: 0 auto; }

.wm-modes__heading {
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  margin-bottom: 2.5rem;
}

.wm-modes__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.wm-modes__tab {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--grey);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 400px) {
  .wm-modes__tabs { gap: 0.4rem; }
  .wm-modes__tab { padding: 0.6rem 1rem; font-size: 0.78rem; }
}

.wm-modes__tab.is-active {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}

.wm-modes__panel { min-height: 110px; position: relative; }

.wm-modes__content {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wm-modes__content.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.wm-modes__content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.wm-modes__content p {
  color: var(--ink);
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Section 5: What We Can Actually Do (grouped) ---------- */

.wm-included__groups {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.wm-included__group h3 {
  font-size: 1rem;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.wm-included__grid { text-align: left; }

/* ---------- Section 6: Before It Becomes a Problem ---------- */

.wm-timeline {
  padding: 5rem 1.5rem;
  background: var(--bg);
  text-align: center;
}

.wm-timeline__inner { max-width: 900px; margin: 0 auto; }

.wm-timeline__heading {
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  margin-bottom: 2.5rem;
}

.wm-timeline__before,
.wm-timeline__after {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.wm-timeline__before span {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--grey);
  border-radius: 999px;
}

.wm-timeline__before span:not(:last-child)::after {
  content: '→';
  margin-left: 0.6rem;
  opacity: 0.4;
}

.wm-timeline__break {
  margin: 2rem auto;
  display: inline-block;
  background: var(--ink);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: 999px;
}

.wm-timeline__after span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-text);
  padding: 0.5rem 0.9rem;
}

.wm-timeline__after span:not(:last-child)::after {
  content: '→';
  margin-left: 0.6rem;
  opacity: 0.4;
  color: var(--ink);
  font-weight: 400;
}

/* ---------- Section 8: What We Don't Do ---------- */

.wm-limits {
  padding: 5rem 1.5rem;
  background: var(--ink);
  color: #FAFAFA;
  text-align: center;
}

.wm-limits__inner { max-width: 640px; margin: 0 auto; }

.wm-limits__heading {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.wm-limits__text {
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.75;
}

/* ---------- Section 9: Already Have a Website? ---------- */

.wm-routes {
  padding: 5rem 1.5rem;
  background: #FFFFFF;
  text-align: center;
}

.wm-routes__inner { max-width: 800px; margin: 0 auto; }

.wm-routes__heading {
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.wm-routes__sub {
  color: var(--ink);
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

.wm-routes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
  margin-bottom: 2rem;
}

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

.wm-routes__card {
  border: 1px solid var(--grey);
  border-radius: 12px;
  padding: 1.5rem;
}

.wm-routes__card h3 {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}

.wm-routes__card p {
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.75;
}

.wm-routes__note {
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.65;
  font-style: italic;
}

/* ---------- Section 10: Example Health Check Dashboard ---------- */

.wm-dashboard {
  padding: 5rem 1.5rem;
  background: var(--bg);
  text-align: center;
}

.wm-dashboard__inner { max-width: 480px; margin: 0 auto; }

.wm-dashboard__heading {
  font-size: clamp(1.75rem, 4.4vw, 2.25rem);
  margin-bottom: 0.4rem;
}

.wm-dashboard__sub {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: 2rem;
}

.wm-dashboard__panel {
  background: var(--ink);
  color: #FAFAFA;
  border-radius: 16px;
  padding: 1.75rem;
  text-align: left;
  box-shadow: 0 24px 48px rgba(27, 31, 29, 0.2);
}

.wm-dashboard__head {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1rem;
}

.wm-dashboard__list { list-style: none; }

.wm-dashboard__list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.wm-dashboard__list li span { opacity: 0.65; }
.wm-dashboard__list li strong { color: var(--accent); }

.wm-dashboard__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  opacity: 0.85;
}

.wm-dashboard__status {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

/* ---------- Section 11: Situations Grid ---------- */

.wm-situations {
  padding: 5rem 1.5rem;
  background: #FFFFFF;
}

.wm-situations__inner { max-width: 900px; margin: 0 auto; text-align: center; }

.wm-situations__heading {
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  margin-bottom: 2.5rem;
}

.wm-situations__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
}

@media (min-width: 700px) {
  .wm-situations__grid { grid-template-columns: repeat(3, 1fr); }
}

.wm-situations__item {
  border-top: 2px solid var(--accent);
  padding-top: 0.9rem;
}

.wm-situations__item h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.wm-situations__item p {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.7;
  line-height: 1.5;
}

/* ---------- Section 13: Cross-sell ---------- */

.wm-crosssell {
  padding: 5rem 1.5rem;
  background: var(--bg);
  text-align: center;
}

.wm-crosssell__inner { max-width: 900px; margin: 0 auto; }

.wm-crosssell__heading {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  margin-bottom: 2.5rem;
}

.wm-crosssell__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

.wm-crosssell__card {
  display: block;
  text-align: left;
  border: 1px solid var(--grey);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.wm-crosssell__card:hover {
  border-color: var(--accent-text);
  transform: translateY(-3px);
}

.wm-crosssell__card h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.wm-crosssell__card p {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.7;
}

/* ---------- Section 14: Final CTA ---------- */

.wm-closing {
  padding: 6rem 1.5rem;
  background: var(--ink);
  color: #FAFAFA;
  text-align: center;
}

.wm-closing__inner { max-width: 640px; margin: 0 auto; }

.wm-closing__heading {
  font-size: clamp(1.75rem, 4.4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.wm-closing__text {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.wm-closing .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #FAFAFA;
}

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

@media (prefers-reduced-motion: reduce) {
  .wm-panel__list em,
  .wm-modes__content {
    transition: none !important;
  }
}
