/* The message is intercepted before it reaches Dota's team chat. */
.demo .section-heading { display: block; }
.demo .section-heading > p { max-width: 680px; margin-top: 24px; padding-bottom: 0; }
.demo .section-heading > p strong { color: var(--ink); font-weight: 600; }
.intercept-flow { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; color: #eaf0ee; background: var(--ink); }
.intercept-flow li { position: relative; display: flex; gap: 14px; align-items: center; min-width: 0; padding: 28px 22px; border-bottom: 3px solid transparent; transition: background .2s, border-color .2s; }
.intercept-flow li + li { border-left: 1px solid #ffffff16; }
.flow-number { display: grid; place-items: center; width: 32px; height: 36px; flex: 0 0 32px; font: 400 24px/1 var(--display); color: #86959f; }
.flow-number .demo-brand-icon { width: 32px; height: 32px; object-fit: contain; }
.intercept-flow [data-flow="blocked"] .flow-number { color: var(--red); }
.intercept-flow strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.intercept-flow div > span { display: block; font-size: 10px; line-height: 1.7; color: #acb8be; margin-top: 4px; }
.flow-arrow { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); z-index: 1; color: #7e909a; font-size: 16px; background: var(--ink); }
.intercept-flow li.is-current { background: #25323b; border-bottom-color: var(--red); }
.intercept-flow li.is-current .flow-number { color: var(--red); }
.intercept-flow li.is-done .flow-number { color: #98c8be; }
.demo .message-before, .demo .message-after { min-width: 0; min-height: 325px; padding: 30px 36px 26px; }
.demo .message-label { font-size: 10px; font-weight: 650; }
.demo .message-before .message-label { color: #ad3043; }
.demo .message-after { background: #f7faf7; }
.demo .message-after .message-label { color: #356e60; }
.demo .message-comparison p { min-height: 100px; margin-block: 26px 22px; }
.demo .message-before .message-caption { margin-top: 0; }
.demo .message-caption { font-size: 11px; line-height: 1.8; }
.demo .message-caption strong { font-weight: 500; color: #575f64; }
.intercept-trigger { display: flex; align-items: center; gap: 16px; border: 0; padding: 0; margin-top: 23px; background: transparent; color: var(--ink); cursor: pointer; font: 550 12px/1.5 var(--body); text-align: left; width: fit-content; min-height: 44px; }
.intercept-trigger[hidden] { display: none; }
.enter-key { display: block; white-space: nowrap; padding: 10px 14px; border: 1px solid #9ca6a5; box-shadow: 0 3px 0 #b6bfba; background: #fafbf8; transition: transform .15s, box-shadow .15s, background .15s; font-size: 13px; }
.intercept-trigger > svg { width: 18px; height: 18px; color: #ad3043; }
.intercept-trigger:hover .enter-key { background: var(--ink); color: #fff; border-color: var(--ink); }
.intercept-trigger:active .enter-key, .intercept-trigger[aria-disabled="true"] .enter-key { transform: translateY(3px); box-shadow: none; background: var(--red); color: var(--ink); border-color: var(--red); }
.intercept-trigger:focus-visible { outline: 2px solid var(--red-dark); outline-offset: 6px; }
.intercept-trigger[aria-disabled="true"] { cursor: progress; }
.intercept-gate { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; background: var(--ink); border: 4px solid var(--paper); }
/* Optical alignment balances the TG mark's heavier upper-right strokes. */
.intercept-gate .demo-brand-icon { display: block; width: 28px; height: 28px; margin: 0; object-fit: contain; transform: translate(-1px, 1px); }
.step-visual .step-brand-icon { display: block; width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; }
.demo .message-label .demo-brand-icon { width: 18px; height: 18px; object-fit: contain; }
.delivery-status { display: flex; align-items: center; gap: 10px; min-height: 47px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #cddbd4; color: #326451; font-size: 10px; line-height: 1.7; }
.status-light { width: 6px; height: 6px; flex: 0 0 6px; background: #438467; }
.demo-console[data-stage="blocked"] .intercept-gate, .demo-console[data-stage="rewriting"] .intercept-gate { box-shadow: 0 0 0 2px var(--red); }
.demo-console[data-stage="blocked"] .message-after, .demo-console[data-stage="rewriting"] .message-after { background: #eef0eb; }
.demo-console[data-stage="blocked"] #demo-output, .demo-console[data-stage="rewriting"] #demo-output { color: #737e80; font-weight: 450; }
.demo-console[data-stage="blocked"] .delivery-status, .demo-console[data-stage="rewriting"] .delivery-status { color: #ae3445; }
.demo-console[data-stage="blocked"] .status-light, .demo-console[data-stage="rewriting"] .status-light { background: var(--red); }
.demo-console[data-stage="sent"] .message-before #demo-input { text-decoration: line-through; text-decoration-color: #ac344660; }
.demo .demo-bottom { gap: 24px; }
.demo .demo-bottom > span { line-height: 1.8; }
.demo .demo-bottom > button { flex-shrink: 0; }
.demo .demo-note strong { font-weight: 550; }

@media (max-width: 1150px) {
  .intercept-flow li { padding: 22px 15px; gap: 9px; }
  .intercept-flow strong { font-size: 11px; }
  .intercept-flow div > span { font-size: 9px; }
  .flow-number { width: 26px; flex-basis: 26px; font-size: 21px; }
  .demo .message-before, .demo .message-after { padding-inline: 27px; }
}
@media (max-width: 900px) {
  .step-visual .step-brand-icon { width: 40px; height: 40px; }
  .intercept-flow { grid-template-columns: repeat(2, 1fr); }
  .intercept-flow li { padding: 20px; border-bottom: 1px solid #ffffff16; box-shadow: inset 0 -3px transparent; }
  .intercept-flow li.is-current { border-bottom-color: #ffffff16; box-shadow: inset 0 -3px var(--red); }
  .intercept-flow li:nth-child(3) { border-left: 0; }
  .intercept-flow li:nth-child(2) .flow-arrow { display: none; }
  .intercept-flow strong { font-size: 12px; }
  .intercept-flow div > span { font-size: 10px; }
  .demo .message-before, .demo .message-after { padding-inline: 24px; }
  .intercept-trigger { gap: 10px; font-size: 11px; }
  .intercept-trigger > svg { display: none; }
}
@media (max-width: 700px) {
  .demo .section-heading > p { max-width: 460px; }
  .demo .technical-label { max-width: 96px; font-size: 7px; }
  .intercept-flow li { gap: 8px; padding: 17px 12px; align-items: start; }
  .flow-number { width: 20px; height: 25px; flex-basis: 20px; font-size: 19px; }
  .flow-number .demo-brand-icon { width: 23px; height: 23px; max-width: none; }
  .intercept-flow strong { font-size: 11px; }
  .intercept-flow div > span { font-size: 9px; line-height: 1.6; }
  .demo .message-before, .demo .message-after { min-height: 285px; padding: 25px 23px; }
  .demo .message-label { font-size: 9px; }
  .demo .message-comparison p { font-size: 23px; min-height: 72px; margin-block: 21px 18px; }
  .demo .message-caption { font-size: 10px; }
  .intercept-trigger { margin-top: 20px; font-size: 11px; gap: 16px; }
  .intercept-gate { right: 21px; width: 40px; height: 40px; transform: translateY(-50%); }
  .intercept-gate .demo-brand-icon { width: 25px; height: 25px; }
  .step-visual .step-brand-icon { width: 44px; height: 44px; }
  .delivery-status { margin-top: 18px; font-size: 10px; }
  .demo .demo-bottom { gap: 13px; }
  .demo .demo-note .section-end { display: none; }
}
@media (max-width: 370px) {
  .intercept-flow li { padding-inline: 10px; gap: 7px; }
  .intercept-flow strong { font-size: 10px; }
  .intercept-flow div > span { font-size: 8px; }
  .demo .message-before, .demo .message-after { padding-inline: 19px; }
  .demo .message-comparison p { font-size: 21px; }
  .demo .eyebrow { font-size: 9px; gap: 8px; }
}
