/* /security: follow one request (six steps on radios, the gate chosen
 * first), built in, retention, the IT team's questions, special requests.
 * Amber marks only the gate, where a request waits for a person's yes. */

.sc-hero {
  padding-top: 80px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sc-flow-wrap {
  padding-bottom: 96px;
}
/* Each step's radio sits inside the step it chooses, so focusing it never
 * scrolls the page; the steps and panels follow it with :has(). The panels
 * share one grid row, so the box keeps the height of the tallest. */
.sc-flow {
  background: var(--ink-panel);
  border: 1px solid var(--ink-rule);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.sc-flow__label {
  margin: 0;
  font-weight: 400;
}
.stp {
  display: flex;
  align-items: stretch;
}
.node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 64px;
  cursor: pointer;
  color: var(--grey);
  border: 1px solid var(--ink-rule);
  background: transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.node__tag {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--grey);
}
.node__name {
  font-size: 14px;
  line-height: 1.3;
}
.node--gate {
  color: var(--cream);
  border-color: var(--amber);
  background: var(--ink);
}
.node--gate .node__tag {
  color: var(--amber);
}
.lnk {
  width: 14px;
  height: 2px;
  flex: none;
  align-self: center;
  background: var(--ink-edge);
}
.panel {
  grid-row: 3;
  grid-column: 1;
  display: flex;
  visibility: hidden;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink-rule);
  padding-top: 22px;
}
.panel__copy {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.panel__copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
}
.panel__copy p {
  color: var(--cream-soft);
}
.panel__facts {
  flex: 1 1 300px;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.panel__facts li {
  font-size: 14px;
  color: var(--grey-soft);
  border-left: 2px solid var(--ink-line);
  padding-left: 10px;
}

/* The chosen step: its panel shows, it is lit, and every step before it is
 * lit too, with the line between them moving. */
.sc-flow:has(#n-you:checked) .panel--you,
.sc-flow:has(#n-agent:checked) .panel--agent,
.sc-flow:has(#n-sandbox:checked) .panel--sandbox,
.sc-flow:has(#n-tools:checked) .panel--tools,
.sc-flow:has(#n-gate:checked) .panel--gate,
.sc-flow:has(#n-record:checked) .panel--record {
  visibility: visible;
}
@supports not selector(:has(*)) {
  .panel--gate {
    visibility: visible;
  }
}
.sc-flow:has(#n-you:checked) .stp .node--you,
.sc-flow:has(#n-agent:checked) .stp .node--agent,
.sc-flow:has(#n-sandbox:checked) .stp .node--sandbox,
.sc-flow:has(#n-tools:checked) .stp .node--tools,
.sc-flow:has(#n-gate:checked) .stp .node--gate,
.sc-flow:has(#n-record:checked) .stp .node--record {
  background: var(--ink-raised);
  color: var(--cream);
  border-color: var(--cream);
}
.sc-flow:has(#n-gate:checked) .stp .node--gate {
  border-color: var(--amber);
}
.sc-flow:has(#n-agent:checked) .stp .node--you,
.sc-flow:has(#n-sandbox:checked) .stp :is(.node--you, .node--agent),
.sc-flow:has(#n-tools:checked) .stp :is(.node--you, .node--agent, .node--sandbox),
.sc-flow:has(#n-gate:checked) .stp :is(.node--you, .node--agent, .node--sandbox, .node--tools),
.sc-flow:has(#n-record:checked) .stp :is(.node--you, .node--agent, .node--sandbox, .node--tools) {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink-line);
}
.sc-flow:has(#n-agent:checked) .stp .lnk--1,
.sc-flow:has(#n-sandbox:checked) .stp :is(.lnk--1, .lnk--2),
.sc-flow:has(#n-tools:checked) .stp :is(.lnk--1, .lnk--2, .lnk--3),
.sc-flow:has(#n-gate:checked) .stp :is(.lnk--1, .lnk--2, .lnk--3, .lnk--4),
.sc-flow:has(#n-record:checked) .stp :is(.lnk--1, .lnk--2, .lnk--3, .lnk--4, .lnk--5) {
  background: repeating-linear-gradient(90deg, var(--cream-soft) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
}
@keyframes flow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 24px 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sc-flow .lnk {
    animation: flow 1s linear infinite;
  }
}
.node--you:has(.sc-radio:focus-visible),
.node--agent:has(.sc-radio:focus-visible),
.node--sandbox:has(.sc-radio:focus-visible),
.node--tools:has(.sc-radio:focus-visible),
.node--gate:has(.sc-radio:focus-visible),
.node--record:has(.sc-radio:focus-visible) {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .sc-flow {
    padding: 20px;
  }
  .stp {
    flex-direction: column;
  }
  .node {
    flex: none;
    width: 100%;
    min-height: 52px;
  }
  .lnk {
    width: 2px;
    height: 14px;
    margin-left: 24px;
    align-self: flex-start;
  }
  .sc-flow:has(#n-agent:checked) .stp .lnk--1,
  .sc-flow:has(#n-sandbox:checked) .stp :is(.lnk--1, .lnk--2),
  .sc-flow:has(#n-tools:checked) .stp :is(.lnk--1, .lnk--2, .lnk--3),
  .sc-flow:has(#n-gate:checked) .stp :is(.lnk--1, .lnk--2, .lnk--3, .lnk--4),
  .sc-flow:has(#n-record:checked) .stp :is(.lnk--1, .lnk--2, .lnk--3, .lnk--4, .lnk--5) {
    background: repeating-linear-gradient(180deg, var(--cream-soft) 0 6px, transparent 6px 12px);
    background-size: 2px 24px;
  }
}

.sc-built {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.sc-item {
  border-top: 1px solid var(--ink-rule);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-item h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
}
.sc-item p {
  color: var(--cream-soft);
  font-size: 15px;
}
.sc-keep,
.sc-it {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sc-it .rv {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sc-rows,
.sc-qs,
.sc-ent {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.sc-row {
  display: flex;
  justify-content: space-between;
  gap: 4px 24px;
  border-top: 1px solid var(--ink-rule);
  padding: 16px 0;
  flex-wrap: wrap;
}
.sc-row dt {
  font-size: 17px;
  flex: 1 1 220px;
}
.sc-row dd {
  margin: 0;
  color: var(--cream-soft);
  font-size: 15px;
  flex: 1 1 260px;
}
.sc-q {
  border-top: 1px solid var(--ink-rule);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-q dt {
  font-size: 17px;
}
.sc-q dd {
  margin: 0;
  font-size: 15px;
  color: var(--cream-soft);
}
.sc-special {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}
.sc-special__copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.sc-ent {
  flex: 1 1 420px;
  min-width: 0;
}
.sc-ent > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--ink-rule);
  padding: 14px 0;
}
.sc-ent dt {
  font-size: 16px;
}
.sc-ent dd {
  margin: 0;
  font-size: 14px;
  color: var(--grey);
}
@media (max-width: 640px) {
  .sc-hero {
    padding-top: 56px;
  }
  .sc-flow-wrap {
    padding-bottom: 72px;
  }
}
