/* Showcase pages: /features/ overview, feature deep dives, /threats/ */

:root {
  --sc-brand: #09a7d5;
  --sc-brand-soft: rgba(9, 167, 213, 0.12);
  --sc-attack: #f05252;
  --sc-line: rgba(148, 163, 184, 0.16);
  --sc-panel: rgba(2, 6, 23, 0.55);
  --sc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Type */
.sc-display {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sc-h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.sc-inline,
.sc-behaviors code,
.sc-table code {
  font-family: var(--sc-mono);
  font-size: 0.875em;
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 0.25rem;
  padding: 0.1em 0.35em;
}
.sc-textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #22d3ee;
  font-weight: 600;
}
.sc-textlink::after {
  content: "→";
  transition: transform 0.2s var(--sc-ease);
}
.sc-textlink:hover::after { transform: translateX(3px); }
.sc-textlink:hover { color: #67e8f9; }
.sc-chip {
  font-family: var(--sc-mono);
  font-size: 0.8125rem;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.375rem;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

/* Ruled columns */
.sc-ruled {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .sc-ruled { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem; }
}
.sc-ruled > li {
  border-top: 1px solid var(--sc-line);
  padding-top: 1.25rem;
}
.sc-ruled > li:first-child { border-top-color: var(--sc-brand); }

/* Attack chain: kill chain left, what Phorion records right, the chain down the middle.
   A cyan bar crosses the red chain under every stage: each move is where it gets broken. */
.sc-kc { --kc-spine: 5rem; --kc-y: 0.6875rem; --kc-node: 0.625rem; --kc-row: 2rem; }
.sc-kc__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--kc-spine) minmax(0, 1fr);
  padding-bottom: var(--kc-row);
}
.sc-kc__stage:last-child { padding-bottom: 0; }
.sc-kc__attack { text-align: right; }
.sc-kc__name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: #f8fafc;
}
.sc-kc__attack p {
  margin-top: 0.375rem;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.sc-kc__spine { position: relative; }
/* Red line draws as the attack; the cyan copy fades over it once contained */
.sc-kc__spine::before,
.sc-kc__spine::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--kc-y);
  bottom: calc(var(--kc-row) * -1);
  width: 2px;
  margin-left: -1px;
  transform-origin: top;
}
.sc-kc__spine::before { background: linear-gradient(180deg, var(--sc-attack), rgba(240, 82, 82, 0.55)); }
.sc-kc__spine::after { background: linear-gradient(180deg, #67e8f9, rgba(103, 232, 249, 0.5)); }
.sc-kc__stage:last-child .sc-kc__spine::before,
.sc-kc__stage:last-child .sc-kc__spine::after { display: none; }
.sc-kc__node {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: var(--kc-y);
  width: var(--kc-node);
  height: var(--kc-node);
  margin: calc(var(--kc-node) / -2) 0 0 calc(var(--kc-node) / -2);
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 0 4px #0f172a, 0 0 0 5px rgba(103, 232, 249, 0.35);
}

/* What Phorion records at this stage */
.sc-kc__event {
  align-self: start;
  margin-top: -0.375rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}
.sc-kc__verdict {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a5f3fc;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
.sc-kc__verdict::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
.sc-kc__src { margin-left: auto; display: inline-flex; flex: none; }
.sc-kc__src img { width: 0.875rem; height: 0.875rem; opacity: 0.85; }
.sc-kc__subject {
  margin-top: 0.375rem;
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.sc-kc__detail { color: #64748b; font-size: 0.8125rem; line-height: 1.5; }
.sc-kc__control {
  margin-top: 0.625rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Narrow: chain down the left, stage then event */
@media (max-width: 639px) {
  .sc-kc { --kc-spine: 1.75rem; }
  .sc-kc__stage { grid-template-columns: var(--kc-spine) minmax(0, 1fr); row-gap: 1rem; }
  .sc-kc__attack { grid-column: 2; grid-row: 1; text-align: left; }
  .sc-kc__spine { grid-column: 1; grid-row: 1 / span 2; }
  .sc-kc__spine::before, .sc-kc__node, .sc-kc__spine::after { left: 0.375rem; }
  .sc-kc__event { grid-column: 2; grid-row: 2; margin-top: 0; }
}

/* Reveal: the chain draws down in red with each event, then the whole chain turns cyan */
.sc-kc { --kc-contain: 2.1s; }
.sc-anim .sc-kc__spine::before { transition: transform 0.45s linear; transition-delay: calc(var(--i) * 420ms + 150ms); }
.sc-anim .sc-kc__spine::after { transition: opacity 0.6s ease-out var(--kc-contain); }
.sc-anim .sc-kc__node {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 420ms),
    background-color 0.6s ease-out var(--kc-contain), box-shadow 0.6s ease-out var(--kc-contain);
}
.sc-anim .sc-kc__event { transition: opacity 0.4s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i) * 420ms + 300ms); }
.sc-anim .sc-kc:not(.is-live) .sc-kc__spine::before { transform: scaleY(0); }
.sc-anim .sc-kc:not(.is-live) .sc-kc__spine::after { opacity: 0; }
.sc-anim .sc-kc:not(.is-live) .sc-kc__node {
  transform: scale(0);
  background-color: var(--sc-attack);
  box-shadow: 0 0 0 4px #0f172a, 0 0 0 5px rgba(240, 82, 82, 0.35), 0 0 14px 4px rgba(240, 82, 82, 0);
}
.sc-anim .sc-kc:not(.is-live) .sc-kc__event { opacity: 0; transform: translateX(-8px); }

.sc-anim .sc-pipeline > li {
  transition: opacity 0.6s var(--sc-ease), transform 0.6s var(--sc-ease);
  transition-delay: calc(var(--i, 0) * 160ms + 200ms);
}
.sc-anim [data-sc-reveal]:not(.is-live).sc-pipeline > li { opacity: 0; transform: translateY(12px); }

/* Targets */
.sc-targets { border-top: 1px solid var(--sc-line); }
.sc-targets__row {
  display: grid;
  gap: 0.75rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--sc-line);
}
@media (min-width: 640px) {
  .sc-targets__row { grid-template-columns: 11rem 1fr; align-items: baseline; }
}
.sc-targets dt { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #f1f5f9; }
.sc-targets dd { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Modes */
.sc-modes { display: grid; gap: 1rem; }
@media (min-width: 768px) { .sc-modes { grid-template-columns: repeat(3, 1fr); } }
.sc-modes__item {
  border: 1px solid var(--sc-line);
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
}
.sc-modes__item.is-recommended {
  border-color: rgba(9, 167, 213, 0.55);
  background: linear-gradient(180deg, var(--sc-brand-soft), rgba(15, 23, 42, 0.5));
}

/* macOS window */
.sc-window {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.875rem;
  background: var(--sc-panel);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(2, 6, 23, 0.8);
}
.sc-window--muted { opacity: 0.85; }
.sc-window__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--sc-line);
  background: rgba(30, 41, 59, 0.6);
}
.sc-window__bar > span { width: 0.7rem; height: 0.7rem; border-radius: 999px; background: #475569; }
.sc-window__bar > span:nth-child(1) { background: #ff5f57; }
.sc-window__bar > span:nth-child(2) { background: #febc2e; }
.sc-window__bar > span:nth-child(3) { background: #28c840; }
.sc-window__bar em { font-style: normal; font-size: 0.8125rem; color: #94a3b8; margin-left: 0.5rem; }
.sc-window__bar em:first-child { margin-left: 0; }
.sc-window__caption {
  padding: 0.875rem 1.125rem;
  border-top: 1px solid var(--sc-line);
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Paste prompt mock */
.sc-prompt { padding: 1.5rem; }
.sc-prompt__title { font-weight: 700; color: #f8fafc; font-size: 1.0625rem; }
.sc-prompt__meta { margin-top: 0.875rem; display: grid; gap: 0.25rem; font-size: 0.875rem; }
.sc-prompt__meta div { display: flex; gap: 0.75rem; }
.sc-prompt__meta dt { color: #94a3b8; width: 3rem; }
.sc-prompt__meta dd { color: #e2e8f0; }
.sc-prompt__code {
  margin-top: 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.5rem;
  background: rgba(240, 82, 82, 0.08);
  border: 1px solid rgba(240, 82, 82, 0.3);
  font-family: var(--sc-mono);
  font-size: 0.8125rem;
  color: #fecaca;
  white-space: pre-wrap;
  word-break: break-all;
}
.sc-prompt__actions { margin-top: 1.25rem; display: flex; justify-content: flex-end; gap: 0.5rem; }
.sc-prompt__btn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}
.sc-prompt__btn--primary { background: var(--sc-brand); border-color: var(--sc-brand); color: #04111a; }
.sc-prompt__foot { margin-top: 0.75rem; text-align: right; font-size: 0.75rem; color: #94a3b8; }

/* Closing */
.sc-proof {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(9, 167, 213, 0.3);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--sc-brand-soft), rgba(15, 23, 42, 0.4) 60%);
  transition: border-color 0.2s;
}
.sc-proof:hover { border-color: rgba(9, 167, 213, 0.7); }
@media (min-width: 768px) {
  .sc-proof { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 2.5rem; }
}
.sc-proof__cta { display: inline-flex; align-items: center; gap: 0.5rem; color: #22d3ee; font-weight: 600; white-space: nowrap; }

.sc-related { display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .sc-related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .sc-related--stack { grid-template-columns: 1fr; } }
.sc-related__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--sc-line);
  border-radius: 0.875rem;
  background: rgba(15, 23, 42, 0.4);
  transition: border-color 0.2s, background-color 0.2s;
}
.sc-related__link:hover { border-color: rgba(9, 167, 213, 0.45); background: rgba(15, 23, 42, 0.7); }

/* Index rows */
.sc-index { border-top: 1px solid var(--sc-line); }
.sc-index > li { border-bottom: 1px solid var(--sc-line); }
.sc-index__row { display: flex; align-items: center; gap: 1.5rem; padding: 2rem 0.25rem; }

/* Pipeline */
.sc-pipeline { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .sc-pipeline { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .sc-pipeline { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.sc-pipeline > li {
  position: relative;
  padding: 1.5rem 0 0;
  border-top: 2px solid rgba(9, 167, 213, 0.35);
}
.sc-pipeline h3 { font-size: 1.375rem; font-weight: 700; color: #f8fafc; }
.sc-pipeline p { margin-top: 0.75rem; color: #94a3b8; line-height: 1.65; }

/* Numbered steps */
.sc-steps { counter-reset: sc-step; display: grid; gap: 1.75rem; }
.sc-steps > li { counter-increment: sc-step; position: relative; padding-left: 3rem; }
.sc-steps > li::before {
  content: counter(sc-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1.5px solid var(--sc-brand);
  color: #67e8f9;
  font-weight: 700;
  font-size: 0.875rem;
}
.sc-steps h3 { font-size: 1.125rem; font-weight: 700; color: #f1f5f9; line-height: 2rem; }
.sc-steps p { margin-top: 0.375rem; color: #94a3b8; line-height: 1.65; }

/* Process tree */
.sc-tree__rows { padding: 0.75rem 0; }
.sc-tree__rows > li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  padding: 0.5rem 1rem 0.5rem calc(1rem + var(--depth, 0) * 1.25rem);
  font-size: 0.8125rem;
}
.sc-tree__rows > li:not([style*="--depth:0"])::before {
  content: "";
  position: absolute;
  left: calc(0.35rem + var(--depth, 0) * 1.25rem);
  top: 0;
  height: 50%;
  width: 0.5rem;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}
.sc-tree__type {
  font-family: var(--sc-mono);
  font-size: 0.6875rem;
  color: #94a3b8;
  width: 2.25rem;
}
.sc-tree__cmd { font-family: var(--sc-mono); color: #e2e8f0; overflow-wrap: anywhere; }
.sc-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a5f3fc;
  background: rgba(9, 167, 213, 0.16);
  border: 1px solid rgba(9, 167, 213, 0.45);
  border-radius: 999px;
  padding: 0.0625rem 0.5rem;
  white-space: nowrap;
}
.sc-verdict {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fecaca;
  background: rgba(240, 82, 82, 0.14);
  border: 1px solid rgba(240, 82, 82, 0.45);
  border-radius: 999px;
  padding: 0.0625rem 0.5rem;
}
.sc-tree__caption { padding: 0.875rem 1.125rem; border-top: 1px solid var(--sc-line); font-size: 0.875rem; color: #94a3b8; }

.sc-anim .sc-tree .sc-tag,
.sc-anim .sc-tree .sc-verdict {
  transition: opacity 0.45s var(--sc-ease), transform 0.45s var(--sc-ease);
  transition-delay: calc(var(--d, 0) * 420ms);
}
.sc-anim .sc-tree .sc-verdict { transition-delay: calc(var(--d, 0) * 420ms + 260ms); }
.sc-anim .sc-tree:not(.is-live) .sc-tag { opacity: 0; transform: translateX(-8px); }
.sc-anim .sc-tree:not(.is-live) .sc-verdict { opacity: 0; transform: scale(0.85); }
.sc-anim .sc-tree.is-live .is-origin .sc-tag { animation: sc-land 0.9s var(--sc-ease) 0.5s 1; }
@keyframes sc-land {
  0% { box-shadow: 0 0 0 0 rgba(9, 167, 213, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(9, 167, 213, 0); }
}

/* JSON */
.sc-json {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--sc-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #cbd5e1;
}
.sc-json mark { background: rgba(9, 167, 213, 0.16); color: #a5f3fc; border-radius: 0.125rem; }

/* Behaviors */
.sc-behaviors { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .sc-behaviors { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.sc-behaviors article { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.sc-behaviors h3 { font-size: 1.25rem; font-weight: 700; color: #f8fafc; }
.sc-behaviors p { color: #94a3b8; line-height: 1.65; }

/* Tables */
.sc-table-wrap { border: 1px solid var(--sc-line); border-radius: 0.875rem; overflow: hidden; background: rgba(15, 23, 42, 0.45); }
.sc-table-title { padding: 1rem 1.25rem; font-weight: 700; color: #f1f5f9; border-bottom: 1px solid var(--sc-line); }
.sc-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.sc-table th { text-align: left; font-weight: 600; color: #94a3b8; padding: 0.625rem 1.25rem; }
.sc-table td { padding: 0.625rem 1.25rem; border-top: 1px solid var(--sc-line); color: #cbd5e1; vertical-align: top; }
.sc-table td:first-child { white-space: nowrap; }
.sc-table__more td { color: #64748b; font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .sc-textlink::after { transition: none; }
}

/* Telemetry comparison demo: story column + one shared timeline */
.sc-cmp {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3.5rem;
  align-items: start;
}
.sc-cmp__title {
  font-size: clamp(1.875rem, 1.4rem + 1.1vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #f8fafc;
  text-wrap: balance;
}

/* Vertical stepper; the current step opens its note. */
.sc-cmp-steps { margin-top: 2rem; }
.sc-cmp-step { position: relative; padding-left: 1.25rem; }
.sc-cmp-step::before,
.sc-cmp-step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sc-line);
}
.sc-cmp-step::after { background: var(--sc-brand); transform: scaleY(0); transform-origin: top; }
.sc-cmp-step.is-done::after,
.sc-cmp-step.is-current::after { transform: scaleY(1); }
.sc-cmp-step.is-current.is-auto::after { animation: sc-cmp-fill 4.2s linear; }
@keyframes sc-cmp-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.sc-cmp-step__btn {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0;
  text-align: left;
}
.sc-cmp-step__label { font-weight: 600; color: #94a3b8; transition: color 0.3s var(--sc-ease); }
.sc-cmp-step__meta { margin-left: auto; font-family: var(--sc-mono); font-size: 0.75rem; color: #475569; }
.sc-cmp-step__btn:hover .sc-cmp-step__label,
.sc-cmp-step.is-done .sc-cmp-step__label { color: #e2e8f0; }
.sc-cmp-step.is-current .sc-cmp-step__label { color: #f8fafc; }
.sc-cmp-step.is-current .sc-cmp-step__meta { color: #22d3ee; }
.sc-cmp-step__btn:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 2px; border-radius: 2px; }
.sc-cmp-step__note {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--sc-ease);
}
.sc-cmp-step__note > p {
  overflow: hidden;
  min-height: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #94a3b8;
  opacity: 0;
  transition: opacity 0.3s var(--sc-ease);
}
.sc-cmp-step.is-current .sc-cmp-step__note { grid-template-rows: 1fr; }
.sc-cmp-step.is-current .sc-cmp-step__note > p { opacity: 1; padding-bottom: 0.875rem; }

/* Live tally */
.sc-cmp-meter { margin-top: 1.75rem; display: grid; gap: 0.875rem; }
.sc-cmp-meter__row {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.375rem;
  font-size: 0.875rem;
  color: #94a3b8;
}
.sc-cmp-meter__row b { font-family: var(--sc-mono); font-weight: 500; font-size: 0.8125rem; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.sc-cmp-meter__track {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  overflow: hidden;
}
.sc-cmp-meter__track > i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #64748b;
  clip-path: inset(0 calc(100% - var(--w, 100%)) 0 0 round 999px);
  transition: clip-path 0.8s var(--sc-ease);
}
.sc-cmp-meter__row--us { color: #e2e8f0; }
.sc-cmp-meter__row--us b { color: #22d3ee; }
.sc-cmp-meter__row--us .sc-cmp-meter__track > i { background: linear-gradient(90deg, #0891b2, #22d3ee); }

.sc-cmp-stat { margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.6; color: #94a3b8; }
.sc-cmp-stat strong { color: #f8fafc; font-weight: 700; }

/* Timeline window */
.sc-cmp__panel {
  margin: 0;
  border-color: rgba(9, 167, 213, 0.35);
  box-shadow: 0 0 0 1px rgba(9, 167, 213, 0.08), 0 30px 80px -40px rgba(9, 167, 213, 0.5);
}
.sc-cmp-replay {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 0.125rem 0.75rem;
}
.sc-cmp-replay:hover { color: #f8fafc; border-color: var(--sc-brand); }

.sc-cmp__cols,
.sc-ev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.25rem 5.25rem;
  column-gap: 0.75rem;
  padding: 0 1rem;
}
.sc-cmp__cols {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--sc-line);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.sc-cmp__cols > span:nth-child(n + 2) { text-align: center; }
.sc-cmp__cols > span:last-child { color: #22d3ee; }
.sc-cmp__short { display: none; }

.sc-ev {
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.07);
}
.sc-ev:first-child { border-top: 0; }
.sc-ev__main {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  height: 1.375rem;
  font-size: 0.8125rem;
}
.sc-ev__t { flex-shrink: 0; font-family: var(--sc-mono); font-size: 0.6875rem; color: #475569; }
.sc-ev__src {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1rem;
  padding: 0.0625rem 0.375rem;
  border-radius: 0.25rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.sc-ev__src--esf { color: #38bdf8; background: rgba(56, 189, 248, 0.08); }
.sc-ev__src--tcc { color: #fbbf24; background: rgba(251, 191, 36, 0.08); }
.sc-ev__src--ul { color: #a78bfa; background: rgba(167, 139, 250, 0.08); }
.sc-ev__src--clip { color: #34d399; background: rgba(52, 211, 153, 0.08); }
.sc-ev__type { flex-shrink: 0; font-family: var(--sc-mono); color: #e2e8f0; }
.sc-ev__detail {
  min-width: 0;
  font-family: var(--sc-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-ev__enrich {
  grid-column: 1;
  display: flex;
  gap: 0.375rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  padding-left: 3.875rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.5s var(--sc-ease), transform 0.5s var(--sc-ease);
}
.sc-ev__chip {
  font-family: var(--sc-mono);
  font-size: 0.6875rem;
  line-height: 1.25rem;
  color: #67e8f9;
  background: var(--sc-brand-soft);
  border-radius: 0.25rem;
  padding: 0 0.375rem;
  white-space: nowrap;
}
.sc-cmp--enriched .sc-ev__enrich { opacity: 1; transform: none; }
/* Until enrichment lands, centre the event line in its reserved row. */
.sc-ev__main { transform: translateY(0.75rem); transition: opacity 0.5s var(--sc-ease), transform 0.5s var(--sc-ease); }
.sc-cmp--enriched .sc-ev__main { transform: none; }

/* Coverage cells span both lines of the row. */
.sc-ev__cell {
  grid-row: 1 / span 2;
  align-self: stretch;
  display: grid;
  place-items: center;
  margin: -0.5rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.04);
  transition: opacity 0.5s var(--sc-ease);
}
.sc-ev__cell > span { grid-area: 1 / 1; transition: opacity 0.4s var(--sc-ease); }
.sc-ev__cell { grid-column: 2; }
.sc-ev__cell--us { grid-column: 3; }
.sc-ev__cell--miss {
  color: #f05252;
  background: repeating-linear-gradient(135deg, rgba(240, 82, 82, 0.05) 0 6px, transparent 6px 12px);
}
.sc-ev__cell--us { color: #22d3ee; background: rgba(9, 167, 213, 0.07); }
.sc-ev__post { opacity: 0; }
.sc-cmp--enriched .sc-ev__pre { opacity: 0; }
.sc-cmp--enriched .sc-ev__post { opacity: 1; }
.sc-cmp--enriched .sc-ev__cell:not(.sc-ev__cell--us):not(.sc-ev__cell--miss) { color: #64748b; }

/* Rows from sources not yet reached stay as quiet placeholders. */
.sc-ev > * { transition: opacity 0.5s var(--sc-ease); }
.sc-ev.is-pending > * { opacity: 0; }
.sc-ev.is-pending::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 38%;
  height: 0.375rem;
  margin-top: -0.1875rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
}

.sc-cmp__fine { margin-top: 0.875rem; font-size: 0.75rem; color: #64748b; }
.sc-cmp__fine a { color: #94a3b8; text-decoration: underline; text-decoration-color: #475569; text-underline-offset: 2px; }
.sc-cmp__fine a:hover { color: #22d3ee; }

@media (max-width: 1023px) {
  .sc-cmp { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 639px) {
  .sc-cmp__cols, .sc-ev { grid-template-columns: minmax(0, 1fr) 3.75rem 4.5rem; column-gap: 0.5rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .sc-cmp__cols { font-size: 0.625rem; letter-spacing: 0.03em; }
  .sc-ev__t { display: none; }
  .sc-ev__enrich { padding-left: 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .sc-cmp__long { display: none; }
  .sc-cmp__short { display: inline; }
  .sc-ev__cell { font-size: 0.6875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-ev > *, .sc-ev__main, .sc-ev__enrich, .sc-ev__cell > span, .sc-cmp-step::after, .sc-cmp-step__note, .sc-cmp-step__note > p, .sc-cmp-meter__track > i {
    transition: none;
    animation: none !important;
  }
}

/* Feature page: bento artifacts */
.sc-artifact { box-shadow: 0 16px 40px -20px rgba(2, 6, 23, 0.9); }
.sc-artifact .sc-tree__rows { padding: 0.5rem 0; }
.sc-rules ul { padding: 0.25rem 0; }
.sc-rules__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.sc-rules__row:first-child { border-top: 0; }
.sc-rules__name { font-size: 0.875rem; font-weight: 500; color: #e2e8f0; line-height: 1.35; }
.sc-rules__tactic { margin-top: 0.125rem; font-size: 0.75rem; color: #94a3b8; }
.sc-rules__new { margin-left: 0.375rem; color: #67e8f9; font-weight: 600; }
.sc-rules__by {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #a5f3fc;
  background: rgba(9, 167, 213, 0.14);
  border: 1px solid rgba(9, 167, 213, 0.4);
  border-radius: 999px;
  padding: 0.0625rem 0.5rem;
}
.sc-rules__by--custom { color: #e2e8f0; background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.35); }

/* Feature page: grouped spec list */
.sc-spec { border-top: 1px solid var(--sc-line); }
.sc-spec__group {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--sc-line);
}
@media (min-width: 1024px) {
  .sc-spec__group { grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; padding: 2.5rem 0; }
}
.sc-spec__label { font-size: 1.125rem; font-weight: 700; color: #f1f5f9; letter-spacing: -0.01em; }
.sc-spec__items { display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 768px) { .sc-spec__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sc-spec__items--flat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-spec__item { display: flex; align-items: flex-start; gap: 0.875rem; }
.sc-spec__glyph { flex-shrink: 0; display: flex; justify-content: center; width: 2.75rem; }
.sc-spec__icon { width: 1.5rem; height: 1.5rem; opacity: 0.8; }
.sc-spec__src {
  flex-shrink: 0;
  min-width: 2.75rem;
  margin-top: 0.125rem;
  text-align: center;
  font-family: var(--sc-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1rem;
  padding: 0.0625rem 0.375rem;
  border-radius: 0.25rem;
  border: 1px solid currentColor;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.08);
}
.sc-spec__src--es { color: #38bdf8; background: rgba(56, 189, 248, 0.08); }
.sc-spec__src--tcc { color: #fbbf24; background: rgba(251, 191, 36, 0.08); }
.sc-spec__src--log { color: #a78bfa; background: rgba(167, 139, 250, 0.08); }
.sc-spec__src--clip { color: #34d399; background: rgba(52, 211, 153, 0.08); }
.sc-spec__title { font-weight: 600; color: #f1f5f9; }
.sc-spec__desc { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.6; color: #94a3b8; max-width: 60ch; }
.sc-spec__note { margin-top: 2rem; color: #94a3b8; }

/* Feature page: case study timeline (attack chain on a spine; prevented steps struck through) */
/* Straight after a threat article, the prose already provides the lead-in space */
.th-article + .sc-casesec { padding-top: 2rem; }
@media (min-width: 768px) { .th-article + .sc-casesec { padding-top: 3rem; } }
/* After the feature list, its bottom padding is the gap */
.sc-specsec + .sc-casesec { padding-top: 0; }

/* Frame around the whole case study: copy plus timeline */
.sc-casebox {
  position: relative;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (min-width: 768px) { .sc-casebox { padding: 2.5rem; } }
@media (min-width: 1024px) { .sc-casebox { padding: 3rem; } }

.sc-case {
  --px: 1.5rem; --node: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 0.875rem;
  background: var(--sc-panel); box-shadow: 0 24px 60px -24px rgba(2, 6, 23, 0.8); overflow: hidden;
}
.sc-case__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--px); border-bottom: 1px solid var(--sc-line); font-size: 0.8125rem; color: #94a3b8;
}
.sc-case__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sc-mono); font-size: 0.75rem; color: #cbd5e1; }
.sc-case__tally { flex-shrink: 0; }
.sc-case__tally b { font-weight: 600; color: #fca5a5; }
.sc-case__steps { padding: 0.75rem 0; }
.sc-case__step {
  position: relative; display: grid; grid-template-columns: var(--node) minmax(0, 1fr) auto;
  grid-template-areas: "node body verdict"; align-items: start; gap: 0 1.125rem; padding: 0.875rem var(--px);
}
.sc-case__step::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--px) + var(--node) / 2 - 0.5px);
  width: 1px; background: rgba(148, 163, 184, 0.22);
}
.sc-case__step:first-child::before { top: 1.25rem; }
.sc-case__step:last-child::before { bottom: calc(100% - 1.25rem); }
.sc-case__node {
  grid-area: node; position: relative; width: var(--node); height: var(--node); margin-top: 0.3rem;
  border: 1.5px solid #64748b; border-radius: 999px; background: #0a0f1f;
}
.sc-case__body { grid-area: body; min-width: 0; }
.sc-case__event { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: #cbd5e1; }
.sc-case__detail {
  display: block; margin-top: 0.25rem; font-family: var(--sc-mono); font-size: 0.75rem; line-height: 1.5;
  color: #94a3b8; overflow-wrap: anywhere;
}
.sc-case__verdict { grid-area: verdict; margin-top: 0.125rem; font-size: 0.75rem; font-weight: 600; color: #94a3b8; white-space: nowrap; }

.sc-case__step.is-blocked { background: linear-gradient(90deg, rgba(240, 82, 82, 0.08), transparent 75%); }
.is-blocked .sc-case__node { border-color: var(--sc-attack); background: var(--sc-attack); box-shadow: 0 0 0 4px rgba(240, 82, 82, 0.16); }
.is-blocked .sc-case__event { color: #f8fafc; }
.is-blocked .sc-case__detail { color: #cbd5e1; text-decoration: line-through; text-decoration-color: rgba(240, 82, 82, 0.7); }
.is-blocked .sc-case__verdict { color: #fca5a5; }

@media (max-width: 639px) {
  .sc-case { --px: 1.125rem; }
  .sc-case__step { grid-template-columns: var(--node) minmax(0, 1fr); grid-template-areas: "node verdict" ". body"; gap: 0.25rem 0.875rem; }
  .sc-case__verdict { margin-top: 0; line-height: 1.25rem; }
  .sc-case__node { margin-top: 0.25rem; }
  .sc-case__step:first-child::before { top: 1.125rem; }
  .sc-case__step:last-child::before { bottom: calc(100% - 1.125rem); }
}

/* Feature page: capability rail */
.sc-rail { display: grid; border-top: 1px solid var(--sc-line); }
@media (min-width: 768px) { .sc-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sc-rail__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  height: 100%;
  padding: 1.5rem 2.5rem 1.5rem 0;
  border-bottom: 1px solid var(--sc-line);
}
@media (min-width: 768px) {
  .sc-rail > li + li .sc-rail__item { padding-left: 1.5rem; border-left: 1px solid var(--sc-line); }
  .sc-rail__item { padding-right: 1.5rem; border-bottom: 0; }
}
.sc-rail__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sc-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--sc-ease);
}
.sc-rail__item.is-current::before,
a.sc-rail__item:hover::before,
a.sc-rail__item:focus-visible::before { transform: scaleX(1); }
a.sc-rail__item:not(:hover)::before { opacity: 0.6; }
.sc-rail__item.is-current::before { opacity: 1; }
.sc-rail__label { font-size: 1.25rem; font-weight: 700; color: #f1f5f9; transition: color 0.2s; }
.sc-rail__tagline { color: #94a3b8; line-height: 1.5; }
.sc-rail__here { margin-top: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: #67e8f9; }
.sc-rail__go {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  color: #64748b;
  transition: transform 0.2s var(--sc-ease), color 0.2s;
}
@media (min-width: 768px) { .sc-rail__go { position: static; margin-top: auto; padding-top: 0.75rem; } }
a.sc-rail__item:hover .sc-rail__go { color: #22d3ee; transform: translateX(3px); }
.sc-rail__deeper {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
}

/* Enrichment moment: tags stick onto the Phorion tally */
.sc-cmp-meter__flag { font-style: normal; color: #67e8f9; }
.sc-cmp-meter__row--us .sc-cmp-meter__track { position: relative; transition: box-shadow 0.6s var(--sc-ease); }
.sc-cmp-meter__row--us .sc-cmp-meter__track > i { position: relative; overflow: hidden; }
.sc-cmp-meter__row--us .sc-cmp-meter__track > i::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--sc-n, 10) - 2px), rgba(15, 23, 42, 0.85) calc(100% / var(--sc-n, 10) - 2px) calc(100% / var(--sc-n, 10)));
  opacity: 0;
  transition: opacity 0.4s var(--sc-ease) 0.5s;
}
.sc-cmp-meter__row--us .sc-cmp-meter__track > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: translateX(-100%);
}
.sc-cmp--enriched .sc-cmp-meter__row--us .sc-cmp-meter__track { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 14px rgba(34, 211, 238, 0.45); }
.sc-cmp--enriched .sc-cmp-meter__row--us .sc-cmp-meter__track > i::before { opacity: 1; }
.sc-cmp--enriched .sc-cmp-meter__row--us .sc-cmp-meter__track > i::after { animation: sc-meter-sheen 1.1s var(--sc-ease) 0.1s both; }
.sc-cmp--enriched .sc-cmp-meter__row--us .sc-cmp-meter__track > i { animation: sc-meter-pop 0.6s var(--sc-ease); }
@keyframes sc-meter-sheen { to { transform: translateX(100%); } }
@keyframes sc-meter-pop { 40% { transform: scaleY(1.9); } }
@media (prefers-reduced-motion: reduce) {
  .sc-cmp--enriched .sc-cmp-meter__row--us .sc-cmp-meter__track > i,
  .sc-cmp--enriched .sc-cmp-meter__row--us .sc-cmp-meter__track > i::after { animation: none; }
}

/* Prevention demo (sc-gate): same request, two actors, one checkpoint */
.sc-gate { --gw: 12.5rem; --ok: #34d399; --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }
.sc-gate__head { display: grid; gap: 1rem 4rem; align-items: end; }

/* Tabs: text with a shared baseline, progress runs along the active tab */
.sc-gate__tabs { display: flex; gap: 2.25rem; margin-top: 2.5rem; border-bottom: 1px solid var(--sc-line); }
.sc-gate__tab {
  position: relative;
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0 0 0.875rem;
  color: #94a3b8;
  transition: color 0.2s;
}
.sc-gate__tab:hover { color: #e2e8f0; }
.sc-gate__tab:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 4px; border-radius: 2px; }
.sc-gate__tab-label { font-size: 0.9375rem; font-weight: 600; }
.sc-gate__tab-threat { font-size: 0.8125rem; color: #7c8ba1; }
.sc-gate__tab.is-current { color: #f8fafc; }
.sc-gate__tab.is-current .sc-gate__tab-threat { color: #67e8f9; }
.sc-gate__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--sc-brand); transform: scaleX(0); transform-origin: left;
}
.sc-gate__tab.is-current::after { transform: scaleX(1); }
.sc-gate__tab.is-current.is-auto::after { animation: sc-gate-fill 7.5s linear; }
@keyframes sc-gate-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Stage: one flat surface, no nested cards */
.sc-gate__scene { margin-top: 1.75rem; }
.sc-gate__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) var(--gw) minmax(0, 1fr) minmax(0, 13rem);
  grid-template-rows: auto 5.5rem 5.5rem;
  column-gap: 0;
  padding: 0 1.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.5);
}
.sc-gate__col {
  grid-row: 1; align-self: end; padding: 1.5rem 0 0.75rem;
  font-size: 0.75rem; font-weight: 500; color: #7c8ba1;
}
.sc-gate__scenario { grid-column: 1 / 3; grid-row: 1; align-self: end; padding: 1.5rem 2.5rem 0.75rem 0; }
.sc-gate__attack { max-width: 30rem; font-size: 0.9375rem; line-height: 1.6; color: #cbd5e1; text-wrap: pretty; }
.sc-gate__col-label { margin-top: 1.25rem; font-size: 0.75rem; font-weight: 500; color: #7c8ba1; }
.sc-gate__col--to { grid-column: 5; padding-left: 1.5rem; }

/* Checkpoint band: the gate itself */
.sc-gate__band {
  grid-column: 3; grid-row: 1 / 4;
  position: relative; z-index: 2;
  margin-bottom: -1rem;
  border-inline: 1px solid rgba(9, 167, 213, 0.4);
  background: linear-gradient(180deg, rgba(9, 167, 213, 0.16), rgba(10, 22, 38, 0.96) 5.5rem);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.sc-gate__rule { grid-column: 3; grid-row: 1; position: relative; z-index: 3; padding: 1.25rem 1rem 0.875rem; text-align: center; }
.sc-gate__rule-name { font-size: 0.9375rem; font-weight: 600; color: #f8fafc; line-height: 1.3; text-wrap: balance; }
.sc-gate__cond { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.45; color: #a5b4c8; text-wrap: balance; }

.sc-gate__ev {
  grid-column: 3; align-self: center; justify-self: center;
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5rem;
  max-width: calc(var(--gw) - 1.5rem);
  padding: 0.3125rem 0.625rem 0.3125rem 0.4375rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: #0b1626;
  font-family: var(--sc-mono); font-size: 0.6875rem; color: #e2e8f0; white-space: nowrap;
  transition: opacity 0.3s var(--ease-out), border-color 0.3s, color 0.3s;
}
.sc-gate__mark { position: relative; flex-shrink: 0; width: 0.875rem; height: 0.875rem; border-radius: 999px; }
.sc-gate__ev.is-allow { border-color: rgba(52, 211, 153, 0.5); }
.sc-gate__ev.is-allow .sc-gate__mark { background: rgba(52, 211, 153, 0.16); }
.sc-gate__ev.is-allow .sc-gate__mark::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.25rem; width: 0.375rem; height: 0.1875rem;
  border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg);
}
.sc-gate__ev.is-deny { border-color: rgba(240, 82, 82, 0.6); color: #fecaca; }
.sc-gate__ev.is-deny .sc-gate__mark { background: rgba(240, 82, 82, 0.18); }
.sc-gate__ev.is-deny .sc-gate__mark::before,
.sc-gate__ev.is-deny .sc-gate__mark::after {
  content: ""; position: absolute; left: 0.1875rem; top: 0.40625rem; width: 0.5rem; height: 1.5px;
  background: var(--sc-attack); transform: rotate(45deg);
}
.sc-gate__ev.is-deny .sc-gate__mark::after { transform: rotate(-45deg); }

/* Actors */
.sc-gate__actor { grid-column: 1; align-self: center; display: flex; gap: 0.75rem; min-width: 0; padding-right: 1rem; }
.sc-gate__dot {
  flex-shrink: 0; width: 0.5rem; height: 0.5rem; margin-top: 0.4375rem; border-radius: 999px;
  background: #475569; transition: background-color 0.3s, box-shadow 0.3s;
}
.sc-gate__actor.is-allow .sc-gate__dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }
.sc-gate__actor.is-deny .sc-gate__dot { background: var(--sc-attack); box-shadow: 0 0 0 3px rgba(240, 82, 82, 0.15); }
.sc-gate__name { font-size: 0.9375rem; font-weight: 600; color: #f8fafc; line-height: 1.35; overflow-wrap: anywhere; }
.sc-gate__name.is-mono { font-family: var(--sc-mono); font-size: 0.8125rem; font-weight: 500; }
.sc-gate__sub { margin-top: 0.1875rem; font-size: 0.75rem; line-height: 1.45; color: #94a3b8; overflow-wrap: anywhere; }
.sc-gate__m-verdict { display: none; }

/* Lanes and packets */
.sc-gate__lane { grid-column: 2 / 5; position: relative; z-index: 1; }
.sc-gate__track {
  position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px dashed rgba(148, 163, 184, 0.28);
}
.sc-gate__packet {
  position: absolute; top: 50%; left: calc(100% - 0.375rem);
  transform: translate(-100%, -50%);
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(52, 211, 153, 0.6);
  border-radius: 0.375rem;
  background: #0a1f1c;
  font-family: var(--sc-mono); font-size: 0.75rem; color: #a7f3d0; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.8);
  transition: left 1.05s var(--ease-out), transform 1.05s var(--ease-out), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.sc-gate__lane.is-deny .sc-gate__packet {
  left: calc(50% - var(--gw) / 2 - 0.5rem);
  border-color: rgba(240, 82, 82, 0.7); background: #2a0f17; color: #fecaca;
}
.sc-gate__hit {
  position: absolute; top: calc(50% - 1.25rem); left: calc(50% - var(--gw) / 2 - 1px);
  width: 2px; height: 2.5rem; border-radius: 2px;
  background: var(--sc-attack); box-shadow: 0 0 18px 2px rgba(240, 82, 82, 0.65);
  z-index: 3; opacity: 0;
}
.sc-gate__lane.is-allow .sc-gate__hit { display: none; }
.sc-gate__lane.is-deny .sc-gate__hit { opacity: 1; }
.sc-gate__verdict {
  position: absolute; top: calc(50% + 1.125rem);
  font-size: 0.75rem; line-height: 1.4; color: #a5b4c8;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.sc-gate__verdict b { margin-right: 0.25rem; font-weight: 700; }
.sc-gate__lane.is-allow .sc-gate__verdict { left: calc(50% + var(--gw) / 2 + 1rem); right: 0.5rem; }
.sc-gate__lane.is-allow .sc-gate__verdict b { color: var(--ok); }
.sc-gate__lane.is-deny .sc-gate__verdict { right: calc(50% + var(--gw) / 2 + 0.5rem); left: 0.5rem; text-align: right; }
.sc-gate__lane.is-deny .sc-gate__verdict b { color: var(--sc-attack); }

/* Target: where allowed requests dock */
.sc-gate__target {
  grid-column: 5; grid-row: 2 / 4; align-self: center;
  position: relative; z-index: 1;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
  min-width: 0;
}
.sc-gate__lock { width: 1rem; height: 1rem; fill: none; stroke: #67e8f9; stroke-width: 1.4; }
.sc-gate__kind { margin-top: 0.625rem; font-size: 0.75rem; color: #94a3b8; }
.sc-gate__value { display: block; margin-top: 0.25rem; font-family: var(--sc-mono); font-size: 0.8125rem; color: #f8fafc; overflow-wrap: break-word; }

/* Phases. No class = final state, so no-JS and reduced motion show the outcome */
.sc-gate.is-p0 .sc-gate__packet { left: 0; transform: translate(0, -50%); transition: none; }
.sc-gate:is(.is-p1, .is-p2) .sc-gate__packet { left: calc(50% - var(--gw) / 2 - 0.5rem); transform: translate(-100%, -50%); }
.sc-gate:is(.is-p0, .is-p1, .is-p2) .sc-gate__packet { border-color: rgba(9, 167, 213, 0.6); background: #0a1a2a; color: #a5f3fc; }
.sc-gate:is(.is-p0, .is-p1, .is-p2) .sc-gate__verdict { opacity: 0; transform: translateY(-3px); }
.sc-gate:is(.is-p0, .is-p1, .is-p2) .sc-gate__hit { opacity: 0; }
.sc-gate:is(.is-p0, .is-p1, .is-p2) .sc-gate__actor .sc-gate__dot { background: #475569; box-shadow: none; }
.sc-gate:is(.is-p0, .is-p1) .sc-gate__ev { opacity: 0; }
.sc-gate.is-p2 .sc-gate__ev { border-color: rgba(9, 167, 213, 0.6); color: #e2e8f0; }
.sc-gate.is-p2 .sc-gate__ev .sc-gate__mark { background: none; border: 1.5px solid rgba(103, 232, 249, 0.35); border-top-color: #67e8f9; animation: sc-gate-spin 0.7s linear infinite; }
.sc-gate.is-p2 .sc-gate__ev .sc-gate__mark::before,
.sc-gate.is-p2 .sc-gate__ev .sc-gate__mark::after { display: none; }
.sc-gate.is-p2 .sc-gate__band { border-color: rgba(103, 232, 249, 0.75); box-shadow: 0 0 40px -12px rgba(9, 167, 213, 0.8); }
.sc-gate.is-p3 .sc-gate__lane.is-deny .sc-gate__hit { animation: sc-gate-hit 0.9s var(--ease-out); }
.sc-gate.is-p3 .sc-gate__lane.is-deny .sc-gate__packet { animation: sc-gate-recoil 0.5s var(--ease-out); }
@keyframes sc-gate-spin { to { transform: rotate(360deg); } }
@keyframes sc-gate-hit { 0% { transform: scaleY(0.2); box-shadow: 0 0 40px 10px rgba(240, 82, 82, 0.9); } 100% { transform: scaleY(1); } }
@keyframes sc-gate-recoil { 35% { margin-left: -0.625rem; } }


@media (max-width: 1023px) {
  .sc-gate__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .sc-gate__tab { flex-direction: column; gap: 0.125rem; text-align: left; }
  .sc-gate__tab-label { font-size: 0.875rem; line-height: 1.3; }
  .sc-gate__tab-threat { font-size: 0.75rem; }
  .sc-gate__stage { display: flex; flex-direction: column; padding: 0; }
  .sc-gate__stage > * { align-self: stretch; }
  .sc-gate__band, .sc-gate__lane, .sc-gate__col, .sc-gate__ev { display: none; }
  .sc-gate__scenario { order: 0; padding: 1.125rem 1.25rem; border-bottom: 1px solid var(--sc-line); }
  .sc-gate__col-label { display: none; }
  .sc-gate__target { order: 1; padding: 1.125rem 1.25rem; border-left: 0; border-bottom: 1px solid var(--sc-line); }
  .sc-gate__rule {
    order: 2; text-align: left; padding: 1rem 1.25rem;
    background: rgba(9, 167, 213, 0.1); border-bottom: 1px solid rgba(9, 167, 213, 0.35);
  }
  .sc-gate__actor { order: 3; padding: 1rem 1.25rem; }
  .sc-gate__actor.is-deny { border-top: 1px solid var(--sc-line); }
  .sc-gate__m-verdict { display: block; margin-top: 0.5rem; font-size: 0.8125rem; color: #a5b4c8; transition: opacity 0.35s; }
  .sc-gate__actor.is-allow .sc-gate__m-verdict b { color: var(--ok); }
  .sc-gate__actor.is-deny .sc-gate__m-verdict b { color: var(--sc-attack); }
  .sc-gate:is(.is-p0, .is-p1, .is-p2) .sc-gate__m-verdict { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-gate__packet, .sc-gate__verdict, .sc-gate__ev, .sc-gate__m-verdict { transition: none !important; }
  .sc-gate__tab.is-current.is-auto::after, .sc-gate__hit, .sc-gate__packet, .sc-gate__mark { animation: none !important; }
}

/* Prevention explainer (sc-rule): each protection reads as a sentence, tokens labelled by role */
.sc-rule__head { display: grid; gap: 1rem 4rem; align-items: end; margin-bottom: 1rem; }
@media (min-width: 1024px) { .sc-rule__head { grid-template-columns: auto minmax(0, 26rem); justify-content: space-between; } }
.sc-rule__lede { font-size: 1rem; line-height: 1.6; color: #94a3b8; }

.sc-rule__spec { display: grid; gap: 1.5rem 4rem; padding-top: 3rem; margin-top: 3rem; border-top: 1px solid var(--sc-line); }
@media (min-width: 1024px) { .sc-rule__spec { grid-template-columns: 15rem minmax(0, 1fr); } }
.sc-rule__name { font-size: 1.125rem; font-weight: 600; color: #f8fafc; line-height: 1.3; }
.sc-rule__job { margin-top: 0.375rem; font-size: 0.9375rem; line-height: 1.5; color: #94a3b8; }
.sc-rule__ships { margin-top: 1.25rem; font-size: 0.8125rem; line-height: 1.6; color: #7c8ba1; }

.sc-rule__switch { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; margin-top: 1.5rem; }
.sc-rule__opt {
  position: relative; padding: 0.375rem 0 0.375rem 1rem;
  font-size: 0.875rem; font-weight: 500; color: #94a3b8; text-align: left;
  transition: color 0.2s;
}
.sc-rule__opt::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0.375rem; height: 0.375rem; margin-top: -0.1875rem;
  border-radius: 999px; border: 1px solid #475569; transition: background-color 0.2s, border-color 0.2s;
}
.sc-rule__opt:hover { color: #e2e8f0; }
.sc-rule__opt.is-on { color: #f8fafc; }
.sc-rule__opt.is-on::before { background: var(--sc-brand); border-color: var(--sc-brand); }
.sc-rule__opt:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 2px; border-radius: 0.25rem; }

.sc-rule__sentence {
  max-width: 50rem;
  font-size: clamp(1.1875rem, 0.85rem + 1.5vw, 2rem); font-weight: 500; line-height: 2.5; letter-spacing: -0.02em;
  color: #94a3b8; text-wrap: pretty;
}
.sc-rule__verb { font-weight: 600; color: var(--sc-attack); }
.sc-rule__tok { position: relative; display: inline-block; max-width: 100%; vertical-align: baseline; line-height: 1.25; cursor: default; }
.sc-rule__tok-t {
  color: #f8fafc;
  background: linear-gradient(rgba(9, 167, 213, 0.55), rgba(9, 167, 213, 0.55)) no-repeat 0 100% / 100% 0.1em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: background-size 0.35s var(--sc-ease);
}
.sc-rule__tok.is-hot .sc-rule__tok-t { background-image: linear-gradient(rgba(9, 167, 213, 0.2), rgba(9, 167, 213, 0.2)); background-size: 100% 100%; }
.sc-rule__tok-k {
  position: absolute; left: 0; top: 100%; margin-top: 0.3rem;
  font-family: inherit; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0; line-height: 1;
  white-space: nowrap; color: #67b8d4; pointer-events: none;
}

.sc-rule__notes { display: grid; gap: 1.5rem 2rem; margin-top: 2rem; }
@media (min-width: 640px) { .sc-rule__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sc-rule__notes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sc-rule__note { padding-top: 0.875rem; border-top: 1px solid var(--sc-line); transition: border-color 0.25s, opacity 0.3s; }
.sc-rule__note.is-hot { border-top-color: var(--sc-brand); }
.sc-rule__note.is-off { opacity: 0.4; }
.sc-rule__note-k { font-size: 0.875rem; font-weight: 600; color: #f8fafc; }
.sc-rule__field { display: block; margin-top: 0.25rem; font-family: var(--sc-mono); font-size: 0.75rem; color: #67b8d4; overflow-wrap: anywhere; }
.sc-rule__note-t { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.55; color: #94a3b8; }
.sc-rule__out { margin-top: 2rem; font-size: 0.9375rem; color: #cbd5e1; }

/* Prevention library (sc-shelf): scroll-snap shelf of built-in protection policies */
.sc-shelf__head { display: grid; gap: 1rem 4rem; align-items: end; }
@media (min-width: 1024px) { .sc-shelf__head { grid-template-columns: minmax(0, 34rem) minmax(0, 26rem); justify-content: space-between; } }
.sc-shelf__lede { font-size: 1rem; line-height: 1.6; color: #94a3b8; }

.sc-shelf__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; }
.sc-shelf__filters { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.sc-shelf__filter {
  position: relative; padding: 0.375rem 0; font-size: 0.9375rem; font-weight: 500; color: #94a3b8;
  transition: color 0.2s;
}
.sc-shelf__filter::before { content: ""; position: absolute; inset: -0.25rem -0.75rem; }
.sc-shelf__filter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--sc-brand); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--sc-ease);
}
.sc-shelf__filter:hover { color: #e2e8f0; }
.sc-shelf__filter.is-on { color: #f8fafc; }
.sc-shelf__filter.is-on::after { transform: scaleX(1); }

.sc-shelf__nav { display: flex; align-items: center; gap: 0.5rem; }
.sc-shelf__arrow {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid #334155; color: #e2e8f0; transition: border-color 0.2s, background-color 0.2s, color 0.2s, opacity 0.2s;
}
.sc-shelf__arrow svg { width: 1rem; height: 1rem; }
.sc-shelf__arrow:hover:not(:disabled) { border-color: var(--sc-brand); background: rgba(9, 167, 213, 0.1); }
.sc-shelf__arrow:disabled { opacity: 0.35; cursor: default; }
.sc-shelf__filter:focus-visible, .sc-shelf__arrow:focus-visible, .sc-shelf__threats a:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 3px; border-radius: 0.25rem; }
.sc-shelf__arrow:focus-visible { border-radius: 999px; }

.sc-shelf__rail {
  --gap: 1rem;
  position: relative; display: flex; gap: var(--gap); margin-top: 1.5rem; padding: 0.25rem 0 0.5rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 4rem), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 4rem), transparent);
}
.sc-shelf__rail::-webkit-scrollbar { display: none; }
.sc-shelf__rail.is-end { -webkit-mask-image: none; mask-image: none; }
.sc-shelf__rail:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 4px; border-radius: 0.75rem; }
.sc-shelf__item { flex: 0 0 86%; display: flex; scroll-snap-align: start; }
@media (min-width: 640px) { .sc-shelf__item { flex-basis: calc((100% - var(--gap)) / 2.15); } }
@media (min-width: 1024px) { .sc-shelf__item { flex-basis: calc((100% - 2 * var(--gap)) / 3.2); } }

.sc-shelf__sheet {
  display: flex; flex-direction: column; width: 100%; padding: 1.5rem;
  border: 1px solid var(--sc-line); border-radius: 0.875rem; background: rgba(30, 41, 59, 0.35);
  transition: border-color 0.25s, background-color 0.25s;
}
.sc-shelf__sheet:hover { border-color: rgba(148, 163, 184, 0.32); background: rgba(30, 41, 59, 0.55); }
.sc-shelf__more { justify-content: center; border-style: dashed; background: transparent; }
.sc-shelf__more:hover { background: rgba(30, 41, 59, 0.25); }
.sc-shelf__name { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: #f8fafc; text-wrap: balance; }
.sc-shelf__stops { margin-top: 0.625rem; font-size: 0.9375rem; line-height: 1.55; color: #cbd5e1; text-wrap: pretty; }

.sc-shelf__k { font-size: 0.75rem; font-weight: 600; color: #94a3b8; }
.sc-shelf__block { margin-top: 1.5rem; }
.sc-shelf__vals { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.5rem; }
.sc-shelf__vals code {
  display: inline-block; max-width: 100%; padding: 0.25rem 0.5rem; border-radius: 0.375rem;
  font-family: var(--sc-mono); font-size: 0.75rem; line-height: 1.35; color: #fecaca; overflow-wrap: anywhere;
  background: rgba(240, 82, 82, 0.08); box-shadow: inset 0 0 0 1px rgba(240, 82, 82, 0.22);
}
.sc-shelf__allow { margin-top: 1.25rem; }
.sc-shelf__allow-t { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.55; color: #94a3b8; text-wrap: pretty; }

.sc-shelf__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  margin-top: auto; padding-top: 1.5rem; font-size: 0.8125rem; color: #94a3b8;
}
.sc-shelf__type { display: inline-flex; align-items: center; gap: 0.5rem; }
.sc-shelf__glyph { width: 0.5rem; height: 0.5rem; }
.is-process .sc-shelf__glyph { background: var(--sc-brand); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.is-file .sc-shelf__glyph { border: 1.5px solid var(--sc-brand); border-radius: 1px; }
.sc-shelf__threats { color: #94a3b8; }
.sc-shelf__threats a { display: inline-block; padding-block: 0.25rem; margin-block: -0.25rem; color: #67b8d4; text-decoration: underline; text-decoration-color: rgba(103, 184, 212, 0.4); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.sc-shelf__threats a:hover { color: #a5e3f5; text-decoration-color: currentColor; }

.sc-shelf__track { position: relative; height: 2px; margin-top: 1.25rem; border-radius: 2px; background: var(--sc-line); overflow: hidden; }
.sc-shelf__thumb { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 2px; background: var(--sc-brand); }

@media (prefers-reduced-motion: reduce) { .sc-shelf__filter::after { transition: none; } }
@media (max-width: 639px) {
  .sc-shelf__nav { display: none; }
}

/* Response demo (sc-ir): a Live Response console drives the Mac's state */
.sc-ir__head { display: grid; gap: 1rem 4rem; align-items: end; }
@media (min-width: 1024px) { .sc-ir__head { grid-template-columns: minmax(0, 30rem) minmax(0, 26rem); justify-content: space-between; } }
.sc-ir__lede { font-size: 1rem; line-height: 1.6; color: #94a3b8; }

.sc-ir__stage { display: grid; gap: 1.25rem; margin-top: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .sc-ir__stage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.sc-ir__term { display: flex; flex-direction: column; background: rgba(2, 6, 23, 0.8); }
.sc-ir__term .sc-window__bar em { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-ir__replay {
  flex-shrink: 0;
  margin-left: auto; font-size: 0.75rem; font-weight: 600; color: #94a3b8;
  padding: 0.125rem 0.5rem; border-radius: 999px; border: 1px solid var(--sc-line); transition: color 0.2s, border-color 0.2s;
}
.sc-ir__replay:hover { color: #f8fafc; border-color: rgba(148, 163, 184, 0.4); }
.sc-ir__replay:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 2px; }
.sc-ir__log { flex: 1; min-height: 19rem; padding: 1rem 1.125rem; font-family: var(--sc-mono); font-size: 0.8125rem; line-height: 1.6; }
.sc-ir__entry + .sc-ir__entry { margin-top: 0.625rem; }
.sc-ir__cmd { color: #f1f5f9; overflow-wrap: anywhere; }
.sc-ir__ps { color: var(--sc-brand); }
.sc-ir__out { color: #94a3b8; padding-left: 1.1em; overflow-wrap: anywhere; }
.sc-ir__out.is-quiet { color: #7c8ba1; }
.sc-ir__caret {
  display: inline-block; width: 0.55em; height: 1.05em; margin-left: 1px; vertical-align: -0.15em;
  background: #e2e8f0; animation: sc-ir-blink 1s steps(1) infinite;
}
@keyframes sc-ir-blink { 50% { opacity: 0; } }

.sc-ir__runbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.125rem; border-top: 1px solid var(--sc-line); }
.sc-ir__runlabel { font-size: 0.75rem; font-weight: 600; color: #7c8ba1; }
.sc-ir__chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.sc-ir__chip {
  font-size: 0.8125rem; font-weight: 500; color: #cbd5e1; padding: 0.25rem 0.75rem; border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28); transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.sc-ir__chip:hover { color: #f8fafc; border-color: rgba(148, 163, 184, 0.5); }
.sc-ir__chip:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 2px; }
.sc-ir__chip.is-done { color: #a5f3fc; border-color: rgba(9, 167, 213, 0.35); background: rgba(9, 167, 213, 0.08); }
.sc-ir__chip.is-done::before { content: "✓"; margin-right: 0.3em; }
.sc-ir__chip.is-now { color: #f8fafc; border-color: var(--sc-brand); }

/* Device state */
.sc-ir__mac { border: 1px solid var(--sc-line); border-radius: 0.875rem; background: rgba(15, 23, 42, 0.5); display: flex; flex-direction: column; }
.sc-ir__machead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--sc-line); }
.sc-ir__macname { font-size: 0.9375rem; font-weight: 600; color: #f1f5f9; }
.sc-ir__status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; color: #6ee7b7; transition: color 0.3s; }
.sc-ir__status i { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: #34d399; transition: background-color 0.3s, box-shadow 0.3s; }
.sc-ir__status.is-iso { color: #67e8f9; }
.sc-ir__status.is-iso i { background: var(--sc-brand); box-shadow: 0 0 0 4px rgba(9, 167, 213, 0.18); }

.sc-ir__block { padding: 1rem 1.125rem; border-bottom: 1px solid var(--sc-line); }
.sc-ir__label, .sc-ir__facts dt { font-size: 0.75rem; font-weight: 600; color: #67b8d4; }
.sc-ir__net { margin-top: 0.625rem; display: grid; gap: 0.5rem; }
.sc-ir__flow {
  display: grid; grid-template-columns: minmax(0, 6.5rem) minmax(1.25rem, 1fr) minmax(0, 8.5rem) 3.75rem;
  align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: #cbd5e1;
}
.sc-ir__from, .sc-ir__to { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.4s, opacity 0.4s; }
.sc-ir__from.is-mono, .sc-ir__flow.is-bad .sc-ir__to { font-family: var(--sc-mono); font-size: 0.75rem; }
.sc-ir__flow.is-bad .sc-ir__from { color: #fca5a5; }
.sc-ir__wire { display: flex; height: 2px; }
.sc-ir__wire i {
  flex: 1; background: repeating-linear-gradient(90deg, #64748b 0 4px, transparent 4px 7px);
  transition: transform 0.45s var(--sc-ease), background-color 0.3s;
}
.sc-ir__wire i:first-child { transform-origin: left; }
.sc-ir__wire i:last-child { transform-origin: right; }
.sc-ir__verdict { font-size: 0.75rem; font-weight: 600; text-align: right; opacity: 0; transition: opacity 0.3s; }

/* The moment: isolation snaps every wire except Phorion's and MDM's */
.sc-ir__net.is-iso .sc-ir__flow:not(.is-keep) .sc-ir__wire i { transform: scaleX(0.18); background: var(--sc-attack); }
.sc-ir__net.is-iso .sc-ir__flow:not(.is-keep) .sc-ir__to { opacity: 0.45; }
.sc-ir__net.is-iso .sc-ir__flow:not(.is-keep) .sc-ir__verdict { opacity: 1; color: #fca5a5; }
.sc-ir__net.is-iso .sc-ir__flow.is-keep .sc-ir__wire i { background: var(--sc-brand); }
.sc-ir__net.is-iso .sc-ir__flow.is-keep .sc-ir__verdict { opacity: 1; color: #67e8f9; }
.sc-ir__net.is-iso .sc-ir__flow:nth-child(3) * { transition-delay: 0.05s; }
.sc-ir__net.is-iso .sc-ir__flow:nth-child(4) * { transition-delay: 0.15s; }
.sc-ir__net.is-iso .sc-ir__flow:nth-child(5) * { transition-delay: 0.25s; }

.sc-ir__facts { flex: 1; }
.sc-ir__fact {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; align-items: baseline; gap: 0.5rem 0.75rem;
  padding: 0.75rem 1.125rem; border-bottom: 1px solid var(--sc-line); font-size: 0.8125rem; color: #cbd5e1;
}
.sc-ir__fact:last-child { border-bottom: 0; }
.sc-ir__fact code { font-family: var(--sc-mono); font-size: 0.75rem; color: #e2e8f0; }
.sc-ir__dim { color: #7c8ba1; }
.sc-ir__fact dd:nth-of-type(1) { min-width: 0; overflow-wrap: anywhere; transition: opacity 0.3s; }
.sc-ir__state { font-size: 0.75rem; font-weight: 600; color: #fbbf24; transition: color 0.3s; }
.sc-ir__fact.is-changed dd:nth-of-type(1) { opacity: 0.55; text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, 0.6); }
.sc-ir__fact.is-changed .sc-ir__state { color: #67e8f9; }
.sc-ir__fact--ev { grid-template-columns: 5.5rem minmax(0, 1fr); }
.sc-ir__ev { display: grid; gap: 0.25rem; }
.sc-ir__item { animation: sc-ir-in 0.4s var(--sc-ease); }
@keyframes sc-ir-in { from { opacity: 0; transform: translateY(4px); } }

.sc-ir__note { margin-top: 1rem; font-size: 0.8125rem; color: #7c8ba1; }

@media (max-width: 639px) {
  .sc-ir__flow { grid-template-columns: minmax(0, 5.5rem) minmax(0.75rem, 1fr) minmax(0, 7.5rem) 3.5rem; gap: 0.375rem; }
  .sc-ir__fact { grid-template-columns: 4.75rem minmax(0, 1fr) auto; }
  .sc-ir__fact--ev { grid-template-columns: 4.75rem minmax(0, 1fr); }
  .sc-ir__log { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-ir__caret { animation: none; }
  .sc-ir__item { animation: none; }
}

/* Response automation (sc-auto): rule response actions write the alert timeline */
.sc-auto__head { display: grid; gap: 1rem 4rem; align-items: end; }
@media (min-width: 1024px) { .sc-auto__head { grid-template-columns: minmax(0, 34rem) minmax(0, 26rem); justify-content: space-between; } }
.sc-auto__lede { font-size: 1rem; line-height: 1.6; color: #94a3b8; }

.sc-auto__grid { display: grid; gap: 2rem 3.5rem; margin-top: 3rem; align-items: start; }
@media (min-width: 1024px) { .sc-auto__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

.sc-auto__label { font-size: 0.75rem; font-weight: 600; color: #67b8d4; }
.sc-auto__label--gap { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--sc-line); }
.sc-auto__rname { margin-top: 0.375rem; font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: #f8fafc; text-wrap: balance; }
.sc-auto__rmeta { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: #94a3b8; }
.sc-auto__sev { font-size: 0.75rem; font-weight: 600; color: #fca5a5; padding: 0.0625rem 0.5rem; border-radius: 999px; border: 1px solid rgba(240, 82, 82, 0.4); }

.sc-auto__acts { margin-top: 0.5rem; }
.sc-auto__act {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.875rem; text-align: left;
  padding: 0.75rem 0.5rem; margin: 0 -0.5rem; width: calc(100% + 1rem); border-radius: 0.5rem; transition: background-color 0.2s;
}
.sc-auto__act:hover { background: rgba(148, 163, 184, 0.06); }
.sc-auto__act:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 0; }
.sc-auto__switch {
  grid-row: span 2; margin-top: 0.125rem; position: relative; width: 2.25rem; height: 1.25rem; border-radius: 999px;
  background: #334155; transition: background-color 0.25s;
}
.sc-auto__switch i {
  position: absolute; top: 0.1875rem; left: 0.1875rem; width: 0.875rem; height: 0.875rem; border-radius: 999px;
  background: #cbd5e1; transition: transform 0.3s var(--sc-ease), background-color 0.25s;
}
.sc-auto__act[aria-checked="true"] .sc-auto__switch { background: var(--sc-brand); }
.sc-auto__act[aria-checked="true"] .sc-auto__switch i { transform: translateX(1rem); background: #fff; }
.sc-auto__aname { font-size: 0.9375rem; font-weight: 600; color: #f1f5f9; }
.sc-auto__adesc { font-size: 0.875rem; line-height: 1.5; color: #94a3b8; }
.sc-auto__act[aria-checked="false"] .sc-auto__aname { color: #94a3b8; }
.sc-auto__fine { margin-top: 1.25rem; font-size: 0.8125rem; line-height: 1.55; color: #7c8ba1; }

.sc-auto__tl { border: 1px solid var(--sc-line); border-radius: 0.875rem; background: var(--sc-panel); }
.sc-auto__tlhead { display: flex; justify-content: space-between; gap: 1rem; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--sc-line); font-size: 0.8125rem; font-weight: 600; color: #e2e8f0; }
.sc-auto__count { font-weight: 500; color: #94a3b8; }
.sc-auto__list { position: relative; padding: 1.25rem 1.25rem 1.5rem; }
.sc-auto__list::before { content: ""; position: absolute; left: calc(1.25rem + 4.75rem + 0.3125rem); top: 1.75rem; bottom: 2rem; width: 1px; background: var(--sc-line); }
.sc-auto__entry { position: relative; display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1.25rem; padding: 0.5rem 0; }
.sc-auto__entry::before {
  content: ""; position: absolute; left: 4.75rem; top: 0.95rem; width: 0.625rem; height: 0.625rem; border-radius: 999px;
  background: #0f172a; border: 2px solid var(--sc-brand);
}
.sc-auto__entry.is-alert::before { border-color: var(--sc-attack); background: var(--sc-attack); }
.sc-auto__entry.is-empty::before { border-color: #475569; }
.sc-auto__entry > div { padding-left: 1rem; min-width: 0; }
.sc-auto__entry time { font-family: var(--sc-mono); font-size: 0.75rem; color: #7c8ba1; padding-top: 0.3rem; }
.sc-auto__what { font-size: 0.9375rem; font-weight: 600; color: #f1f5f9; }
.sc-auto__sub { margin-top: 0.125rem; font-size: 0.875rem; line-height: 1.5; color: #94a3b8; }
.sc-auto__sub code { font-family: var(--sc-mono); font-size: 0.8125rem; color: #e2e8f0; }
.sc-auto__link { color: #67e8f9; font-weight: 500; white-space: nowrap; }
.sc-auto__link::after { content: " →"; }
.sc-auto__prompts { margin-top: 0.5rem; padding: 0.875rem 1rem; border-radius: 0.625rem; background: rgba(30, 41, 59, 0.55); }
.sc-auto__prompts .sc-auto__sub { margin: 0; }
.sc-auto__prompts blockquote { margin: 0.625rem 0; padding-left: 0.75rem; border-left: 1px solid rgba(9, 167, 213, 0.6); font-size: 0.9375rem; line-height: 1.5; color: #e2e8f0; }
.sc-auto__prompts .sc-auto__sub:last-child { font-size: 0.8125rem; color: #7c8ba1; }

/* One moment: entries land in order the first time the section is seen */
.sc-auto.is-armed .sc-auto__entry { opacity: 0; transform: translateY(8px); }
.sc-auto.is-armed.is-live .sc-auto__entry {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--sc-ease), transform 0.5s var(--sc-ease);
  transition-delay: calc(var(--d, 0) * 260ms + 150ms);
}
.sc-auto.is-settled .sc-auto__entry { transition-delay: 0s; }

@media (max-width: 639px) {
  .sc-auto__list { padding: 1rem; }
  .sc-auto__list::before { left: calc(1rem + 4.25rem + 0.3125rem); }
  .sc-auto__entry { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 1rem; }
  .sc-auto__entry::before { left: 4.25rem; }
  .sc-auto__entry > div { padding-left: 0.75rem; }
}

/* Response artifacts: forensic collection, MDM guardrails */
.sc-coll__table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.sc-coll__table th { text-align: left; font-size: 0.75rem; font-weight: 600; color: #67b8d4; padding: 0.625rem 1rem 0.375rem; }
.sc-coll__table td { padding: 0.4375rem 1rem; border-top: 1px solid rgba(148, 163, 184, 0.08); color: #94a3b8; }
.sc-coll__table code { font-family: var(--sc-mono); font-size: 0.75rem; color: #e2e8f0; }
.sc-coll__n { text-align: right; font-variant-numeric: tabular-nums; color: #e2e8f0 !important; }
@media (max-width: 639px) { .sc-coll__table th:nth-child(2), .sc-coll__table td:nth-child(2) { display: none; } }

.sc-prefs ul { padding: 0.25rem 0; }
.sc-prefs__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5625rem 1rem; border-top: 1px solid rgba(148, 163, 184, 0.08); }
.sc-prefs__row:first-child { border-top: 0; }
.sc-prefs__d { font-size: 0.875rem; font-weight: 500; color: #e2e8f0; }
.sc-prefs__k { font-family: var(--sc-mono); font-size: 0.6875rem; color: #7c8ba1; overflow-wrap: anywhere; }
.sc-prefs__v { flex-shrink: 0; font-size: 0.75rem; font-weight: 600; color: #94a3b8; }
.sc-prefs__v.is-off { color: #fbbf24; }

/* Visibility demo (sc-fleet): ask the inventory, the fleet lights up */
.sc-fleet__head, .sc-health__head { display: grid; gap: 1rem 4rem; align-items: end; }
@media (min-width: 1024px) {
  .sc-fleet__head, .sc-health__head { grid-template-columns: minmax(0, 32rem) minmax(0, 26rem); justify-content: space-between; }
}
.sc-fleet__lede, .sc-health__lede { font-size: 1rem; line-height: 1.6; color: #94a3b8; }

.sc-fleet__qs { margin-top: 2.5rem; display: grid; gap: 0.5rem; }
@media (min-width: 768px) { .sc-fleet__qs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--sc-line); } }
.sc-fleet__q {
  position: relative; text-align: left; padding: 1rem 1.25rem 1.125rem 0;
  color: #7c8ba1; transition: color 0.25s var(--sc-ease);
}
.sc-fleet__q::before {
  content: ""; position: absolute; left: 0; right: 1.25rem; top: -1px; height: 2px;
  background: var(--sc-brand); transform: scaleX(0); transform-origin: left;
}
.sc-fleet__q.is-current { color: #f8fafc; }
.sc-fleet__q.is-current::before { transform: scaleX(1); }
.sc-fleet__q.is-current.is-auto::before { animation: sc-fleet-fill 6.5s linear both; }
@keyframes sc-fleet-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sc-fleet__q:hover { color: #cbd5e1; }
.sc-fleet__q:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 2px; border-radius: 0.25rem; }
.sc-fleet__qtext { display: block; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; letter-spacing: -0.01em; }
.sc-fleet__quse { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: #67b8d4; }
.sc-fleet__q:not(.is-current) .sc-fleet__quse { color: #64748b; }
@media (max-width: 767px) {
  .sc-fleet__q { padding: 0.75rem 1rem; border: 1px solid var(--sc-line); border-radius: 0.75rem; }
  .sc-fleet__q::before { display: none; }
  .sc-fleet__q.is-current { border-color: rgba(9, 167, 213, 0.55); background: rgba(9, 167, 213, 0.06); }
}

.sc-fleet__stage { margin-top: 1.75rem; display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .sc-fleet__stage { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem; } }

.sc-fleet__field { margin: 0; }
.sc-fleet__count { font-size: 0.9375rem; color: #94a3b8; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.sc-fleet__count strong { font-size: 2.25rem; font-weight: 700; color: #f8fafc; letter-spacing: -0.02em; margin-right: 0.375rem; }
.sc-fleet__dots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.3rem, 0.8vw, 0.625rem); }
.sc-fleet__dot {
  aspect-ratio: 4 / 3; border-radius: 0.25rem; position: relative;
  background: rgba(148, 163, 184, 0.22); border: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.4s var(--sc-ease), opacity 0.4s var(--sc-ease), border-color 0.4s var(--sc-ease), box-shadow 0.4s var(--sc-ease);
  transition-delay: calc(var(--i) * 25ms);
}
.sc-fleet__dot::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -0.2rem; height: 2px; border-radius: 1px; background: inherit; opacity: 0.6; }
.sc-fleet.is-p1 .sc-fleet__dot { opacity: 0.35; }
.sc-fleet__dot.is-hit, .sc-fleet.is-p1 .sc-fleet__dot.is-hit {
  opacity: 1; background: var(--sc-brand); border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(9, 167, 213, 0.18), 0 0 18px rgba(9, 167, 213, 0.55);
  transition-delay: 0.15s;
}
.sc-fleet.is-p1 .sc-fleet__dot.is-hit { animation: sc-fleet-ping 1.1s var(--sc-ease) 0.15s 1; }
@keyframes sc-fleet-ping {
  0% { box-shadow: 0 0 0 0 rgba(9, 167, 213, 0.7), 0 0 18px rgba(9, 167, 213, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(9, 167, 213, 0), 0 0 18px rgba(9, 167, 213, 0.55); }
}

.sc-fleet__search { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--sc-line); font-size: 0.8125rem; }
.sc-fleet__where { color: #e2e8f0; font-weight: 600; }
.sc-fleet__query { font-family: var(--sc-mono); font-size: 0.75rem; color: #e2e8f0; background: rgba(148, 163, 184, 0.12); border-radius: 0.375rem; padding: 0.125rem 0.5rem; }
.sc-fleet__filter { font-size: 0.75rem; font-weight: 600; color: #a5f3fc; border: 1px solid rgba(9, 167, 213, 0.45); border-radius: 999px; padding: 0.0625rem 0.5rem; }
.sc-fleet__table { width: 100%; border-collapse: collapse; }
.sc-fleet__table th { text-align: left; font-size: 0.75rem; font-weight: 600; color: #67b8d4; padding: 0.625rem 1rem 0.375rem; }
.sc-fleet__table td { padding: 0.625rem 1rem; border-top: 1px solid rgba(148, 163, 184, 0.08); vertical-align: top; }
.sc-fleet__table tr.is-hit td { background: rgba(9, 167, 213, 0.07); }
.sc-fleet__table tr.is-hit td:first-child { box-shadow: inset 1px 0 0 var(--sc-brand); }
.sc-fleet__name { font-size: 0.9375rem; font-weight: 600; color: #f1f5f9; }
.sc-fleet__meta { margin-left: 0.375rem; font-size: 0.75rem; font-weight: 500; color: #7c8ba1; }
.sc-fleet__table tr.is-hit .sc-fleet__meta { color: #a5f3fc; }
.sc-fleet__id { margin-top: 0.125rem; font-family: var(--sc-mono); font-size: 0.6875rem; color: #7c8ba1; overflow-wrap: anywhere; }
.sc-fleet__n { text-align: right !important; width: 4rem; font-variant-numeric: tabular-nums; font-size: 0.9375rem; font-weight: 600; color: #cbd5e1; }
.sc-fleet__table tr.is-hit .sc-fleet__n { color: #f8fafc; }
.sc-fleet__note { margin-top: 1.25rem; font-size: 0.75rem; color: #64748b; }

/* Visibility explainer (sc-health): 100 minus a ledger */
.sc-health__grid { margin-top: 3rem; display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .sc-health__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; } }
.sc-health__mac { font-size: 0.9375rem; font-weight: 600; color: #e2e8f0; }
.sc-health__mac span { margin-left: 0.5rem; font-weight: 500; color: #7c8ba1; }
.sc-health__num { margin-top: 0.5rem; font-size: clamp(5rem, 11vw, 8.5rem); line-height: 0.9; font-weight: 700; letter-spacing: -0.05em; color: #f8fafc; font-variant-numeric: tabular-nums; }
.sc-health__num small { font-size: 0.25em; font-weight: 600; letter-spacing: 0; color: #64748b; margin-left: 0.25rem; }
.sc-health__grade { margin-top: 0.75rem; font-size: 0.9375rem; color: #94a3b8; font-variant-numeric: tabular-nums; }
.sc-health__bar { margin-top: 1.75rem; display: flex; gap: 2px; height: 0.875rem; }
.sc-health__bar > span { flex-basis: 0; min-width: 0; border-radius: 2px; transition: flex-grow 0.5s var(--sc-ease), background 0.25s var(--sc-ease), opacity 0.3s; }
.sc-health__kept { background: var(--sc-brand); }
.sc-health__seg { background: var(--sc-attack); opacity: 0; }
.sc-health__seg.is-on { opacity: 0.8; }
.sc-health__seg.is-on.is-hot { opacity: 1; background: #fca5a5; }
.sc-health__legend { margin-top: 0.625rem; display: flex; gap: 1.25rem; font-size: 0.75rem; color: #7c8ba1; }
.sc-health__legend span::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 2px; margin-right: 0.375rem; vertical-align: 0.05em; }
.sc-health__legend .is-kept::before { background: var(--sc-brand); }
.sc-health__legend .is-lost::before { background: var(--sc-attack); }
.sc-health__fine { margin-top: 2rem; max-width: 26rem; font-size: 0.8125rem; line-height: 1.55; color: #7c8ba1; }

.sc-health__try { font-size: 0.75rem; font-weight: 600; color: #67b8d4; padding-bottom: 0.75rem; border-bottom: 1px solid var(--sc-line); }
.sc-health__row {
  width: 100%; display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: 0.875rem; align-items: center;
  text-align: left; padding: 0.8125rem 0.25rem; border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: #7c8ba1; transition: color 0.2s var(--sc-ease), background 0.2s var(--sc-ease);
}
.sc-health__row:hover { background: rgba(148, 163, 184, 0.04); }
.sc-health__row:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: -2px; border-radius: 0.375rem; }
.sc-health__glyph { width: 1.125rem; height: 1.125rem; border-radius: 999px; border: 1.5px solid #34d399; position: relative; }
.sc-health__glyph::after { content: ""; position: absolute; left: 0.3rem; top: 0.15rem; width: 0.3rem; height: 0.55rem; border: solid #34d399; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sc-health__row.is-fail .sc-health__glyph { border-color: var(--sc-attack); background: rgba(240, 82, 82, 0.14); }
.sc-health__row.is-fail .sc-health__glyph::after { left: 50%; top: 50%; width: 0.5rem; height: 1.5px; border: 0; background: var(--sc-attack); transform: translate(-50%, -50%); }
.sc-health__check { font-size: 0.9375rem; color: #94a3b8; }
.sc-health__row.is-fail .sc-health__check { color: #f1f5f9; font-weight: 500; }
.sc-health__w { font-variant-numeric: tabular-nums; font-size: 0.9375rem; font-weight: 600; color: #475569; text-decoration: line-through; text-decoration-color: rgba(71, 85, 105, 0.7); }
.sc-health__row.is-fail .sc-health__w { color: var(--sc-attack); text-decoration: none; }

/* Visibility artifacts: privacy permissions, tag-scoped exclusion */
.sc-tcc ul, .sc-tagx ul { padding: 0.25rem 0; }
.sc-tcc__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5625rem 1rem; border-top: 1px solid rgba(148, 163, 184, 0.08); }
.sc-tcc__row:first-child { border-top: 0; }
.sc-tcc__app { font-size: 0.875rem; font-weight: 500; color: #e2e8f0; }
.sc-tcc__id { font-family: var(--sc-mono); font-size: 0.6875rem; color: #7c8ba1; overflow-wrap: anywhere; }
.sc-tcc__svc { font-size: 0.75rem; color: #94a3b8; text-align: right; }
.sc-tcc__row.is-odd { background: rgba(251, 191, 36, 0.06); }
.sc-tcc__row.is-odd .sc-tcc__id, .sc-tcc__row.is-odd .sc-tcc__svc { color: #fbbf24; }

.sc-tagx__rule { padding: 0.875rem 1rem; border-bottom: 1px solid var(--sc-line); }
.sc-tagx__lbl { font-size: 0.75rem; font-weight: 600; color: #67b8d4; }
.sc-tagx__chips { margin-top: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.sc-tagx__and { font-size: 0.75rem; color: #7c8ba1; }
.sc-tagx__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 1rem; border-top: 1px solid rgba(148, 163, 184, 0.08); }
.sc-tagx__row:first-child { border-top: 0; }
.sc-tagx__mac { font-family: var(--sc-mono); font-size: 0.75rem; color: #e2e8f0; }
.sc-tagx__state { font-size: 0.75rem; font-weight: 600; color: #34d399; }
.sc-tagx__state.is-new { color: #a5f3fc; }

@media (prefers-reduced-motion: reduce) {
  .sc-fleet__dot, .sc-health__bar > span, .sc-health__row { transition: none; }
  .sc-fleet.is-p1 .sc-fleet__dot.is-hit, .sc-fleet__q.is-current.is-auto::before { animation: none; }
}
@media (min-width: 1024px) { .sc-health__head { grid-template-columns: minmax(0, 38rem) minmax(0, 24rem); } }

/* ============================================================
   Threat explainers (/threats/<name>/)
   ============================================================ */

/* In brief: three-part summary that doubles as page navigation */
.th-brief {
  display: grid;
  border-top: 1px solid var(--sc-line);
}
@media (min-width: 768px) {
  .th-brief { grid-template-columns: repeat(3, 1fr); }
}
.th-brief > li + li { border-top: 1px solid var(--sc-line); }
@media (min-width: 768px) {
  .th-brief > li + li { border-top: 0; border-left: 1px solid var(--sc-line); }
}
.th-brief__link {
  display: block;
  height: 100%;
  padding: 1.25rem 0;
  border-radius: 0.25rem;
  transition: background-color 0.2s var(--sc-ease);
}
@media (min-width: 768px) {
  .th-brief__link { padding: 1.5rem 1.5rem 1.75rem; }
  .th-brief > li:first-child .th-brief__link { padding-left: 0; }
}
.th-brief__link:hover { background: rgba(15, 23, 42, 0.5); }
.th-brief__link:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 2px; }
.th-brief__label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: #f1f5f9;
}
.th-brief__link:hover .th-brief__label { color: #67e8f9; }
.th-brief__text {
  display: block;
  margin-top: 0.5rem;
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Reading column with wide breakouts */
.th-prose {
  color: #cbd5e1;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.th-prose > * { max-width: 42rem; }

/* Article grid: reading column plus sticky contents rail at xl */
.th-layout { display: block; }
.th-rail { display: none; }
@media (min-width: 1280px) {
  .th-layout {
    display: grid;
    grid-template-columns: minmax(0, 42rem) 13rem;
    justify-content: space-between;
    gap: 4rem;
  }
  .th-rail { display: block; }
}
.th-rail__inner { position: sticky; top: calc(var(--announcement-height, 0px) + 7rem); }
.th-rail__title { font-size: 0.875rem; font-weight: 600; color: #94a3b8; }
.th-rail__list { margin-top: 0.875rem; border-left: 1px solid var(--sc-line); }
.th-rail__list a {
  display: block;
  margin-left: -1px;
  padding: 0.375rem 0 0.375rem 1rem;
  border-left: 1px solid transparent;
  font-size: 0.9375rem;
  color: #94a3b8;
  transition: color 0.2s var(--sc-ease), border-color 0.2s var(--sc-ease);
}
.th-rail__list a:hover { color: #e2e8f0; }
.th-rail__list a[aria-current="true"] { color: #f8fafc; border-left-color: var(--sc-brand); }
.th-rail__list a:focus-visible,
.th-rail .sc-textlink:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 2px; border-radius: 0.125rem; }
.th-rail .sc-textlink { margin-top: 1.75rem; font-size: 0.9375rem; }

.th-prose h2 {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--sc-line);
  margin-bottom: 1.5rem;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #f8fafc;
  scroll-margin-top: calc(var(--announcement-height, 0px) + 6.5rem);
}
.th-prose > h2:first-child { margin-top: 0; }
.th-prose h3 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}
.th-prose p { margin-bottom: 1.25rem; }
.th-prose strong { color: #f1f5f9; font-weight: 600; }
.th-prose a:not([class]) {
  color: #22d3ee;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.4);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s var(--sc-ease);
}
.th-prose a:not([class]):hover { text-decoration-color: currentColor; }
.th-prose ul,
.th-prose ol { margin-bottom: 1.5rem; padding-left: 1.25rem; }
.th-prose ul { list-style: disc; }
.th-prose ol { list-style: decimal; }
.th-prose li { margin-bottom: 0.625rem; padding-left: 0.25rem; }
.th-prose li::marker { color: #64748b; }
.th-prose :not(pre) > code {
  font-family: var(--sc-mono);
  font-size: 0.875em;
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 0.25rem;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

/* Code sample with caption */
.th-snippet { margin: 2rem 0; }
.th-snippet .highlight pre {
  margin: 0;
  padding: 1.125rem 1.25rem;
  overflow-x: auto;
  background: var(--sc-panel) !important;
  border: 1px solid var(--sc-line);
  border-radius: 0.625rem;
  font-family: var(--sc-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.th-snippet figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
}
.th-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--sc-line);
  border-radius: 0.625rem;
}

/* Embedded components */
.th-prose .th-chain,
.th-prose .th-paste { margin: 2.5rem 0 3rem; }
.th-prose .th-chain p,
.th-prose .th-paste p { margin-bottom: 0; }
.th-prose .th-chain .sc-kc__attack p { margin-top: 0.375rem; }
.th-prose .th-chain .sc-kc__subject { margin-top: 0.375rem; }
.th-prose .th-chain .sc-kc__control { margin-top: 0.625rem; }
.th-prose .th-chain h3 { margin: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }
.th-prose .th-chain ol { margin: 0; padding: 0; list-style: none; }
.th-prose .th-chain li { margin: 0; padding-left: 0; padding-right: 0; padding-bottom: 2rem; }
.th-prose .th-chain li:last-child { padding-bottom: 0; }
.th-prose .th-chain li::before, .th-prose .th-chain li::marker { content: none; }
.th-prose .th-paste p { font-size: 1rem; }
.th-prose .th-paste .sc-modes__item p { margin-top: 0.75rem; }
.th-prose .th-paste h3 { margin: 0; }
.th-targets { margin: 1.75rem 0 2rem; font-size: 1rem; }
.th-targets code.sc-chip { white-space: normal; overflow-wrap: anywhere; }

/* Why existing controls miss it */
.th-misses { margin: 1.5rem 0 1rem; border-top: 1px solid var(--sc-line); }
.th-misses__row {
  display: grid;
  gap: 0.375rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--sc-line);
}
@media (min-width: 640px) {
  .th-misses__row { grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: baseline; }
}
.th-misses dt { font-weight: 600; color: #f1f5f9; line-height: 1.4; }
.th-misses dd { color: #94a3b8; font-size: 1rem; line-height: 1.65; }

/* Pricing page */
.pr-price {
  position: relative;
  flex-shrink: 0;
  align-self: center;
  width: clamp(220px, 24vw, 300px);
  aspect-ratio: 1;
}
.pr-price__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.pr-price__ring--in { animation: rotate 16s linear infinite; }
.pr-price__ring--out { animation: anti-rotate 16s linear infinite; }
.pr-price__amount,
.pr-price__unit {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.pr-price__amount {
  top: 45%;
  font-size: clamp(2.5rem, 1.75rem + 2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #f8fafc;
}
.pr-price__unit { top: 59%; font-size: 0.8125rem; font-weight: 500; color: #67e8f9; }
@media (prefers-reduced-motion: reduce) { .pr-price__ring { animation: none; } }

.pr-perks { display: grid; gap: 0 3rem; }
@media (min-width: 768px) { .pr-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-perk {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.375rem 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--sc-line);
}
.pr-perk__icon { grid-row: span 2; width: 1.5rem; height: 1.5rem; margin-top: 0.125rem; color: #22d3ee; }
.pr-perk__title { font-size: 1.125rem; font-weight: 700; color: #f1f5f9; }
.pr-perk__text { color: #94a3b8; line-height: 1.6; }

.pr-trust { display: grid; border-top: 1px solid var(--sc-line); }
@media (min-width: 640px) { .pr-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pr-trust__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.125rem 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--sc-line);
}
@media (min-width: 640px) {
  .pr-trust__item { border-bottom: 0; padding-right: 1.5rem; }
  .pr-trust__item + .pr-trust__item { padding-left: 1.5rem; border-left: 1px solid var(--sc-line); }
}
.pr-trust__icon { grid-row: span 2; width: 2rem; height: 2rem; color: #22d3ee; }
.pr-trust__name { font-size: 1.125rem; font-weight: 700; color: #f1f5f9; }
.pr-trust__status { font-size: 0.875rem; color: #94a3b8; }

.pr-faq__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0.25rem; }
