/* SEE preview polish: cinematic centered section headers, readable left-aligned cards. */
h1,
h2,
.known-issues-summary > strong {
  text-wrap: balance;
}

.no-orphan {
  white-space: nowrap;
}

#workflow .section-head,
#modules .section-head,
#value .section-head {
  text-align: center;
  justify-items: center;
  justify-content: center;
  align-items: center;
  grid-template-columns: minmax(0, 980px);
  gap: 18px;
}

#workflow .section-head > div,
#modules .section-head > div,
#value .section-head > div {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}

#workflow .section-head h2,
#modules .section-head h2,
#value .section-head h2 {
  margin-inline: auto;
  text-wrap: balance;
}

#workflow .section-head p,
#value .section-head p {
  max-width: 800px;
  margin-inline: auto;
  text-wrap: pretty;
}

#modules .section-head {
  margin-bottom: 28px;
}

#workflow .workflow-strip,
#modules .module-grid,
#value .value-grid,
#workflow .step,
#modules .module-card,
#value .value {
  text-align: left;
}

#modules .module-control {
  margin-top: 22px;
}

#audience .wrap.copy-panel {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#audience h2 {
  max-width: 1120px;
  margin-inline: auto;
  text-wrap: balance;
}

#audience p {
  max-width: 820px;
  margin-inline: auto;
  text-wrap: pretty;
}

#audience .audience {
  justify-content: center;
}

@media (max-width: 760px) {
  #workflow .section-head,
  #modules .section-head,
  #value .section-head {
    text-align: left;
    justify-items: start;
    grid-template-columns: 1fr;
  }

  #workflow .section-head h2,
  #modules .section-head h2,
  #value .section-head h2,
  #workflow .section-head p,
  #value .section-head p {
    margin-inline: 0;
  }
}

#value .value {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#value .value-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgb(var(--mode-rgb));
  text-shadow: 0 0 16px rgba(var(--mode-rgb), .32);
}

#value .value-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgb(var(--mode-rgb));
  box-shadow: 0 0 16px rgba(var(--mode-rgb), .65);
}

#value .value h3 {
  margin-inline: auto;
  text-wrap: balance;
}

#value .value p {
  max-width: 310px;
  margin-inline: auto;
  text-wrap: pretty;
}

#modules .module-card {
  text-align: left;
}

#modules .module-card small {
  display: block;
  margin-bottom: 44px;
}

#modules .module-card h3 {
  text-wrap: balance;
}

#modules .module-card p {
  text-wrap: pretty;
}

/* Dock message mode should show the personality line only, not debug labels or mode context. */
.dock-hud.is-message .dock-hud-top,
.dock-hud.is-message .dock-hud-status,
.dock-hud.is-message .dock-message small {
  display: none !important;
}

.dock-hud.is-message .dock-hud-body {
  padding: 24px 24px 26px !important;
}

.dock-hud.is-message .dock-message {
  display: block !important;
  border-top: 0 !important;
  padding: 0 !important;
}

.dock-hud.is-message .dock-message strong {
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.05em !important;
}

/* Mobile structure fix: force every card rail into a real single-column phone layout. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .wrap {
    width: min(100% - 28px, 1220px) !important;
  }

  section {
    padding-block: 64px !important;
  }

  .section-head,
  #workflow .section-head,
  #modules .section-head,
  #value .section-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 16px !important;
    text-align: center !important;
    justify-items: center !important;
    margin-bottom: 26px !important;
  }

  .section-head > div,
  .section-head p,
  #workflow .section-head > div,
  #modules .section-head > div,
  #value .section-head > div,
  #workflow .section-head p,
  #modules .section-head p,
  #value .section-head p {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .section-head h2,
  #workflow .section-head h2,
  #modules .section-head h2,
  #value .section-head h2,
  #audience h2 {
    max-width: 100% !important;
    font-size: clamp(34px, 13vw, 56px) !important;
    line-height: .96 !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-wrap: balance;
  }

  .section-head p,
  #workflow .section-head p,
  #modules .section-head p,
  #value .section-head p,
  #audience p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    text-align: center !important;
    text-wrap: pretty;
  }

  .mini-label,
  .eyebrow,
  .module-card small,
  .step small,
  .value-kicker {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    line-height: 1.2 !important;
    letter-spacing: .16em !important;
    text-align: center !important;
  }

  .eyebrow:before {
    display: none !important;
  }

  .snapshot-grid,
  .intro-grid,
  .trust-grid,
  .proof-list,
  .workflow-strip,
  .module-grid,
  .value-grid,
  .cta-options {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  .copy-panel,
  .snapshot-panel,
  .intro-copy,
  .trust-item,
  .proof-item,
  .step,
  .module-control,
  .module-card,
  .value,
  .cta-panel,
  .cta-option {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 24px 20px !important;
    overflow: hidden !important;
  }

  .snapshot-panel,
  .intro-copy,
  #audience .wrap.copy-panel,
  .cta-panel {
    text-align: center !important;
    align-items: center !important;
  }

  .snapshot-list,
  .audience {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 10px !important;
    justify-content: stretch !important;
  }

  .snapshot-list span,
  .audience span {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .workflow-strip,
  .module-grid,
  .value-grid {
    padding-inline: 0 !important;
  }

  #workflow .step,
  #modules .module-card,
  #value .value,
  .proof-item,
  .trust-item,
  .cta-option {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  #modules .module-card small {
    margin-bottom: 26px !important;
  }

  .step h3,
  .module-card h3,
  .value h3,
  .proof-item strong,
  .trust-item strong,
  .cta-option strong {
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
    text-wrap: balance;
  }

  .step p,
  .module-card p,
  .value p,
  .proof-item span,
  .trust-item span,
  .cta-option span {
    max-width: 330px !important;
    margin-inline: auto !important;
    text-align: center !important;
    line-height: 1.5 !important;
    text-wrap: pretty;
  }
}
