/* ==========================================================================
   MSP Process — Secure Data Sharing page
   Reuses tokens, base, components, home.css, scheduleassist.css, euv.css.
   Brand accent aligned with the home page: brand-green + cyan
   (active/in-progress = cyan, completed/verified = bright green).
   ========================================================================== */

.sds-hero .sa-hero__title-grad,
.sds-final .sa-final__title .grad,
.sa-head__title .sds-grad {
  background: linear-gradient(135deg, #0a9a56 0%, #00e676 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.sds-hero .sa-hero__pulse-eyebrow { color: var(--brand-green); }
.sds-hero .sa-hero__pulse-eyebrow .sa-pulse {
  background: var(--brand-green);
  box-shadow: 0 0 10px var(--brand-green), 0 0 0 4px rgba(10, 154, 86, 0.16);
}
.sds-hero .sa-hero__glow { background: rgba(0, 230, 118, 0.28); }

.sds-final::before { background: rgba(0, 230, 118, 0.28) !important; }
.sds-final .sa-final__eyebrow {
  color: var(--brand-green);
  background: rgba(10, 154, 86, 0.1);
  border-color: rgba(10, 154, 86, 0.32);
}

/* Hero vcard accents — matches home Section 3 (cyan active, green final). */
.sds-hero__card .vcard__live { color: var(--heading); }
.sds-hero__card .vstep__pill--verifying {
  color: var(--brand-cyan);
  background: rgba(0, 186, 251, 0.1);
  border-color: rgba(0, 186, 251, 0.45);
  box-shadow: 0 0 14px rgba(0, 186, 251, 0.3);
}
.vcard.is-sds.is-animated .vstep--final { border-color: rgba(0, 230, 118, 0.5); }
.vcard.is-sds.is-animated .vstep--final .vstep__num {
  background: #00b557; color: #fff; border-color: rgba(0, 200, 83, 0.6);
}

/* Capability cards on SDS-specific sections — brand-green icon tint. */
.sds-section .sa-cap__icon {
  background: rgba(10, 154, 86, 0.1);
  border-color: rgba(10, 154, 86, 0.25);
  color: var(--brand-green);
}
.sds-section .sa-cap__tag {
  color: var(--brand-green);
  background: rgba(10, 154, 86, 0.1);
  border-color: rgba(10, 154, 86, 0.3);
}

/* Security ("Built for the audit") cards: icon next to the heading.
   Description and tag stay stacked below in their own rows. */
.sds-security-grid .sa-cap {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "desc desc"
    "tag  tag";
  column-gap: 14px;
  row-gap: 12px;
  align-items: center;
}
.sds-security-grid .sa-cap__icon  { grid-area: icon; }
.sds-security-grid .sa-cap__title { grid-area: title; margin: 0; }
.sds-security-grid .sa-cap__desc  { grid-area: desc; margin: 0; }
.sds-security-grid .sa-cap__tag   { grid-area: tag; justify-self: flex-start; }

/* ==========================================================================
   Hero simulator — animated secure-share chain.
   Themed via tokens (same convention as the home page .vcard):
   - background/border/text adapt to light/dark via --card-grad / --heading / --text.
   - --c1 = active/in-progress cyan · --c2 = brand-green for gradients.
   - --ok = bright "verified" green (matches home page final state).
   The stream has a fixed min-height so the panel doesn't jump as steps append.
   ========================================================================== */
.sds-sim {
  --c1: var(--brand-cyan);
  --c2: var(--brand-green);
  --c1-glow: rgba(0, 186, 251, 0.18);
  --c1-soft: rgba(0, 186, 251, 0.10);
  --c1-border: rgba(0, 186, 251, 0.36);
  --ok: #00e676;
  position: relative; width: 100%;
  background: var(--card-grad);
  border: 1px solid var(--card-border); border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 16px; overflow: hidden; isolation: isolate;
  transition: var(--theme-transition);
}
.sds-sim::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, var(--c1-glow), transparent 70%);
  filter: blur(60px); pointer-events: none; z-index: 0;
}
.sds-sim-inner { position: relative; z-index: 1; }
.sds-sim-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 10px; border-bottom: 1px solid var(--hairline); margin-bottom: 12px;
}
.sds-sim-dots { display: flex; gap: 6px; }
.sds-sim-dot { width: 10px; height: 10px; border-radius: 50%; }
.sds-sim-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px; letter-spacing: 0.10em; font-weight: 800; color: var(--c1);
}
.sds-sim-status::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c1); box-shadow: 0 0 12px var(--c1); animation: sdsPulseHero 1.4s infinite;
}
.sds-sim-time {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10.5px; color: var(--text); letter-spacing: 0.06em;
}
@keyframes sdsPulseHero { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }

.sds-tabs {
  display: flex; gap: 6px; padding: 3px; background: var(--bg-alt);
  border: 1px solid var(--hairline); border-radius: 9px; margin-bottom: 10px;
}
.sds-tab {
  flex: 1; text-align: center; padding: 6px 10px;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 9.5px; letter-spacing: 0.08em; font-weight: 800; color: var(--text);
  border-radius: 6px; cursor: pointer; transition: all 0.2s; text-transform: uppercase;
  border: 1px solid transparent;
}
.sds-tab:hover { color: var(--heading); }
.sds-tab.active { background: var(--c1-soft); color: var(--c1); border-color: var(--c1-border); }

.sds-asset {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 10px; margin-bottom: 10px;
}
.sds-asset-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--c2), var(--c1));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0; color: #fff;
}
.sds-asset-meta { flex: 1; min-width: 0; }
.sds-asset-name {
  color: var(--heading); font-size: 13.5px; font-weight: 700; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sds-asset-tag {
  color: var(--text);
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10.5px; letter-spacing: 0.06em; font-weight: 700;
}
.sds-asset-pill {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10.5px; color: var(--c1); letter-spacing: 0.06em; font-weight: 800;
  padding: 4px 10px; background: var(--c1-soft); border: 1px solid var(--c1-border);
  border-radius: 999px; flex-shrink: 0; transition: color 0.3s, background 0.3s, border-color 0.3s;
}

/* Fixed stream height — pre-reserves space so the panel never jumps as steps render. */
.sds-stream {
  display: flex; flex-direction: column; gap: 6px;
  min-height: 388px; /* fits 7 steps × ~52px + 6 gaps */
}
.sds-step {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 11px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 10px; opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s, border-color 0.3s, background 0.3s;
}
.sds-step.active {
  opacity: 1; transform: translateY(0);
  border-color: var(--c1-border); background: rgba(0, 186, 251, 0.06);
}
.sds-step.done {
  opacity: 0.9; transform: translateY(0);
  border-color: rgba(0, 230, 118, 0.30); background: rgba(0, 230, 118, 0.04);
}
.sds-step-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 186, 251, 0.12); border: 1px solid var(--c1-border);
  display: flex; align-items: center; justify-content: center; color: var(--c1); flex-shrink: 0; font-size: 12px;
}
.sds-step.done .sds-step-icon { background: rgba(0, 230, 118, 0.15); border-color: rgba(0, 230, 118, 0.40); color: var(--ok); }
.sds-step-body { flex: 1; min-width: 0; }
.sds-step-line { color: var(--heading); font-size: 12.5px; font-weight: 600; line-height: 1.35; margin-bottom: 2px; }
.sds-step-line .who {
  color: var(--text); font-size: 10px;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  letter-spacing: 0.06em; font-weight: 700; margin-right: 6px; text-transform: uppercase;
}
.sds-step-meta { color: var(--text); font-size: 10.5px; line-height: 1.35; }
.sds-step-tag {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 9.5px; letter-spacing: 0.10em; color: var(--c1); background: var(--c1-soft);
  border: 1px solid var(--c1-border); padding: 3px 8px; border-radius: 999px;
  font-weight: 800; flex-shrink: 0; text-transform: uppercase; align-self: center;
}
.sds-step.done .sds-step-tag { color: var(--ok); background: rgba(0, 230, 118, 0.12); border-color: rgba(0, 230, 118, 0.36); }

.sds-sim-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--hairline);
}
.sds-sim-foot-left { display: flex; gap: 10px; flex-wrap: wrap; }
.sds-foot-chip {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 9.5px; letter-spacing: 0.10em; color: var(--text);
  background: var(--bg-alt); border: 1px solid var(--hairline);
  padding: 4px 9px; border-radius: 999px; font-weight: 700; text-transform: uppercase;
}

.sds-sim-result {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 32px;
  background: radial-gradient(ellipse at center, rgba(0, 230, 118, 0.16), transparent 60%),
              var(--card-grad);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  z-index: 5; opacity: 0; transition: opacity 0.45s;
}
.sds-sim-result.show { display: flex; opacity: 1; }
.sds-sim-result-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #00b557, var(--ok)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; margin-bottom: 14px; box-shadow: 0 0 0 8px rgba(0, 230, 118, 0.12);
}
.sds-sim-result h4 { color: var(--heading); font-size: 22px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.018em; }
.sds-sim-result p { color: var(--text); font-size: 13.5px; margin: 0; line-height: 1.55; max-width: 360px; }

/* ==========================================================================
   SDS — non-boxy patterns matching the home page + AIVA + TV conventions.
   SDS is green-lead (verified / complete), so the left accent stripe and
   icon backdrops use brand-green; cyan appears at the spine endpoint.
   ========================================================================== */

/* Feature list — 3-col typographic, no card chrome. Used by the "Six asset
 * types" and "Built for the audit" sections (replaces the old .sa-cap cards). */
.sds-feats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px clamp(1.5rem, 2.5vw, 2rem);
  max-width: 1180px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
}
.sds-feat {
  position: relative;
  padding: 22px 4px 22px 22px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 14px; row-gap: 11px;
  align-items: center;
  border-left: 2px solid rgba(10, 154, 86, 0.20);
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(.2, .7, .2, 1);
}
.sds-feat:hover {
  border-left-color: var(--brand-green);
  transform: translateX(2px);
}
.sds-feat__icon {
  grid-column: 1; grid-row: 1;
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--brand-green);
  background: linear-gradient(135deg, rgba(10, 154, 86, 0.12), rgba(10, 154, 86, 0.03));
  border: 1px solid rgba(10, 154, 86, 0.24);
}
.sds-feat__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sds-feat__title {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-brand); font-weight: 600;
  font-size: 16.5px; line-height: 1.25; letter-spacing: -0.2px;
  color: var(--heading); margin: 0;
}
.sds-feat__desc {
  grid-column: 1 / -1;
  font-weight: 300; font-size: 13.5px; line-height: 1.55;
  color: var(--text); margin: 0;
}
.sds-feat__tag {
  grid-column: 1 / -1;
  justify-self: start;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10px; letter-spacing: 0.12em; font-weight: 800; text-transform: uppercase;
  color: var(--brand-green);
}
@media (max-width: 960px) { .sds-feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sds-feats { grid-template-columns: 1fr; } }

/* 5-step connected-spine flow — green-lead spine that turns brand-cyan at
 * the final "Logged" node. Mirrors the AIVA / Teams / Bots flow pattern. */
.sds-flow {
  --node: 64px; --line: 3px;
  position: relative; list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: calc(var(--node) / 2 + 22px) 0 0;
}
.sds-flow::before {
  content: ""; position: absolute;
  top: calc(var(--node) / 2 + 22px); left: 10%; right: 10%;
  height: var(--line); transform: translateY(-50%);
  background: linear-gradient(90deg, var(--brand-green), #00e676 50%, var(--brand-cyan));
  border-radius: 999px;
  z-index: 0;
}
.sds-flow__step { position: relative; text-align: center; }
.sds-flow__num {
  position: absolute; left: 50%; top: -22px;
  transform: translate(-50%, 0);
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px; letter-spacing: 0.14em; font-weight: 700;
  color: var(--brand-green);
  z-index: 1;
}
.sds-flow__node {
  position: relative;
  width: var(--node); height: var(--node); border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--brand-green), #00e676);
  box-shadow:
    0 12px 24px -8px rgba(10, 154, 86, 0.55),
    0 0 0 6px var(--bg),
    0 0 0 7px rgba(10, 154, 86, 0.18);
  z-index: 2;
}
.sds-flow__step--final .sds-flow__node {
  background: linear-gradient(150deg, var(--brand-cyan), #00bfff);
  box-shadow:
    0 12px 24px -8px rgba(0, 186, 251, 0.55),
    0 0 0 6px var(--bg),
    0 0 0 7px rgba(0, 186, 251, 0.18);
}
.sds-flow__step--final .sds-flow__num { color: var(--brand-cyan); }
.sds-flow__node svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sds-flow__name {
  font-family: var(--font-brand); font-weight: 600;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.0625rem);
  line-height: 1.25; letter-spacing: -0.2px;
  color: var(--heading); margin: 0 0 8px;
}
.sds-flow__body {
  font-weight: 300; font-size: 13px; line-height: 1.5;
  color: var(--text); margin: 0 auto;
  max-width: 220px;
}
@keyframes sdsFlowPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@media (prefers-reduced-motion: no-preference) {
  .sds-flow__node { animation: sdsFlowPulse 3.4s ease-in-out infinite; }
  .sds-flow__step:nth-child(2) .sds-flow__node { animation-delay: 0.25s; }
  .sds-flow__step:nth-child(3) .sds-flow__node { animation-delay: 0.50s; }
  .sds-flow__step:nth-child(4) .sds-flow__node { animation-delay: 0.75s; }
  .sds-flow__step:nth-child(5) .sds-flow__node { animation-delay: 1.00s; }
}
@media (max-width: 960px) {
  .sds-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 22px; padding-top: 0; }
  .sds-flow::before { display: none; }
  .sds-flow__step { padding-top: 22px; }
  .sds-flow__num { top: 0; }
}
@media (max-width: 540px) {
  .sds-flow { grid-template-columns: 1fr; }
}

/* ---------- PSA-embedded share panel — 2-column text + screenshot ---------- */
.sds-psa-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.sds-psa-split__copy .sa-head__title { margin: 0 0 .9rem; text-align: left; }
.sds-psa-split__copy .sa-head__sub   { margin: 0 0 1.4rem; text-align: left; max-width: 52ch; }

.sds-psa-points {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.sds-psa-points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: .65rem;
  font-size: .98rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.sds-psa-points__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-top: .55em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan));
  box-shadow: 0 0 0 3px rgba(0, 186, 251, 0.10);
}

.sds-psa-split__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sds-psa-split__img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  outline: 2px solid var(--brand-cyan);
  outline-offset: 4px;
  box-shadow: 0 24px 60px rgba(11, 18, 48, 0.18);
  background: var(--card-grad);
}
.sds-psa-split__img.theme-light-only { display: block; }
.sds-psa-split__img.theme-dark-only { display: none; }
[data-theme="dark"] .sds-psa-split__img.theme-light-only { display: none; }
[data-theme="dark"] .sds-psa-split__img.theme-dark-only { display: block; }
[data-theme="dark"] .sds-psa-split__img {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

@media (max-width: 960px) {
  .sds-psa-split { grid-template-columns: 1fr; gap: 2rem; }
  .sds-psa-split__copy .sa-head__title,
  .sds-psa-split__copy .sa-head__sub { text-align: center; margin-left: auto; margin-right: auto; }
  .sds-psa-points { max-width: 52ch; margin-left: auto; margin-right: auto; }
}
