/* ==========================================================================
   Token Custodian landing page — section styles
   Structure follows the Figma wireframe (MacBook Pro 16" - 1, node 1957:6).
   ========================================================================== */

@import url("icons.css");

/* --------------------------------------------------------------------------
   Shared
   -------------------------------------------------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin-bottom: 20px; }
.section-head .lead { max-width: 64ch; margin-inline: auto; }

/* Panels: the #111 cards with hairline borders used across the mockups */
.panel {
  background: linear-gradient(180deg, #131312, #0f0f0e);
  border: 1px solid #2a2927;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 60px rgba(0,0,0,.45);
  padding: 22px 24px 24px;
  position: relative;
}
.panel-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

/* Tick bars (segmented progress used throughout the wireframe) */
.ticks {
  --fill: 50%;
  --c: var(--accent);
  --rest: rgba(217,217,217,.28);
  --period: 4px;
  --tick: 2px;
  height: 19px;
  min-width: 80px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, var(--c) 0 var(--fill), var(--rest) var(--fill) 100%);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 var(--tick), transparent var(--tick) var(--period));
          mask: repeating-linear-gradient(90deg, #000 0 var(--tick), transparent var(--tick) var(--period));
}
.ticks-sm { height: 12px; --period: 3px; --tick: 1.5px; }
.ticks-lg { height: 28px; --period: 6px; --tick: 3px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(88px + clamp(48px, 5.5vw, 90px));
  padding-bottom: clamp(56px, 6vw, 96px);
  overflow: hidden;
  isolation: isolate;
  flex-direction: column;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 30% at 50% 62%, rgba(228,75,51,.16), transparent 70%),
    radial-gradient(70% 40% at 50% 0%, rgba(255,255,255,.03), transparent 70%);
}
.hero .content-container { position: relative; z-index: 1; }
.hero-copy { max-width: 986px; margin: 0 auto clamp(48px, 5vw, 84px); }
.hero-copy h1 { font-size: clamp(38px, 1.6rem + 1.7vw, 54px); max-width: 880px; margin: 0 auto 20px; line-height: 1.16; }
.hero-copy .lead { font-size: clamp(18px, 1rem + .6vw, 24px); color: var(--sl-sand-50); max-width: 986px; margin: 0 auto 32px; line-height: 1.3; }
.hero-copy .button { margin: 0; }

/* Hero diagram */
.hero-visual {
  --hv-bg: #0d0d0c;
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 236fr) minmax(90px, 150fr) minmax(360px, 460fr) minmax(70px, 110fr) minmax(300px, 478fr);
  align-items: center;
  gap: 0;
  background: var(--hv-bg);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 40px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03);
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(45% 70% at 50% 50%, rgba(228,75,51,.14), transparent 75%);
}
.hv-left  { grid-column: 1; }
.hv-core  { grid-column: 3; }
.hv-right { grid-column: 5; }
.hv-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hv-wires path { fill: none; stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(228,75,51,.5)); }
.hv-wires rect { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(255,89,63,.9)); }
.hv-wires .arrow { fill: var(--accent); }

.hv-col { display: grid; gap: 18px; position: relative; z-index: 1; }
.hv-label {
  color: var(--text-muted); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .3em; text-transform: uppercase; margin: 0 0 4px; padding-left: 2px;
}
.hv-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, #1a1a19, #141413);
  border: 1px solid #2c2b29; border-radius: 12px;
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.hv-card .ph { font-size: 26px; color: var(--sl-sand-50); }
.hv-card strong { display: block; color: var(--sl-sand-50); font-weight: 500; font-size: 16px; line-height: 1.2; }
.hv-card .mono { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 3px; letter-spacing: -.01em; }

.hv-core {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #121211, #0c0c0b);
  border: 1px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(228,75,51,.18), 0 0 46px rgba(228,75,51,.28), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 20px 24px 8px;
}
.hv-core-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #262524; }
.hv-mark { width: 26px; height: 29px; }
.hv-core-title { font-size: 20px; font-weight: 500; color: var(--sl-sand-50); }
.hv-live { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-hover); margin-left: 8px; box-shadow: 0 0 10px rgba(255,89,63,.9); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(.8); opacity: .7 } }
.hv-core-body { padding: 16px 0 14px; border-bottom: 1px solid #262524; }
.hv-kicker { color: var(--text-muted); font-size: 13px; margin: 0 0 2px; }
.hv-amount { font-size: clamp(36px, 3.2vw, 52px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: #fff; margin: 0 0 14px; }
.hv-progress { height: 12px; border-radius: 6px; background: #2a2927; overflow: hidden; }
.hv-progress span { display: block; height: 100%; width: var(--w, 50%); border-radius: 6px; background: linear-gradient(90deg, #ff593f, var(--accent)); box-shadow: 0 0 12px rgba(255,89,63,.6); }
.hv-cap { color: var(--text-muted); font-size: 13px; text-align: right; margin: 8px 0 0; }
.hv-rows { display: grid; }
.hv-rows li { display: grid; grid-template-columns: 24px 1fr auto 14px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #262524; font-size: 14px; color: var(--sl-sand-50); }
.hv-rows li:last-child { border-bottom: 0; }
.hv-rows .ph { font-size: 20px; color: var(--sl-sand-50); }
.hv-rows em { font-style: normal; color: var(--sl-grey-200); font-size: 13.5px; }
.hv-rows .ph-caret-right { font-size: 12px; color: var(--text-muted); }

.hv-outcome {
  background: #0e0e0d;
  border: 1px solid #2a2927; border-radius: 12px;
  box-shadow: 0 8px 8px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.hv-outcome-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 26px;
  background: #111;
  border-bottom: 1px solid var(--accent);
  font-size: clamp(22px, 1.6vw, 30px); font-weight: 500; color: var(--sl-grey-200); line-height: 1.14;
}
.hv-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--sl-grey-700); }
.hv-ico .ph { font-size: 17px; color: var(--sl-grey-200); }
.hv-log { display: grid; gap: 10px; padding: 22px 26px 18px; }
.hv-log li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 13px; color: var(--sl-grey-200); align-items: baseline; }
.hv-log .k { color: var(--sl-grey-600); }
.hv-log .k::after { content: ":"; }
.hv-log .v.ok { color: #7fc9a0; }
.hv-alert {
  margin: 0 26px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: rgba(228,75,51,.05); border: 1px solid var(--accent); border-radius: 10px;
  color: var(--accent); font-weight: 500; font-size: 15px;
}
.hv-alert span { display: inline-flex; align-items: center; gap: 8px; }
.hv-alert .ph { font-size: 26px; }
.hv-alert a { color: var(--accent); font-size: 11.5px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; letter-spacing: -.02em; }

@media (max-width: 1025.98px) {
  .hero-visual { grid-template-columns: 1fr; gap: 22px; }
  .hv-left, .hv-core, .hv-right { grid-column: 1; }
  .hv-wires { display: none; }
  .hv-col { grid-template-columns: repeat(3, 1fr); }
  .hv-label { grid-column: 1 / -1; }
  .hv-right { grid-template-columns: 1fr; }
}
@media (max-width: 719.98px) {
  .hv-col { grid-template-columns: 1fr; }
  .hero-visual { padding: 18px 16px; }
  .hv-core { padding: 16px 18px 6px; }
  .hv-log li { grid-template-columns: 1fr; gap: 2px; }
  .hv-alert { margin: 0 18px 18px; }
  .hv-log { padding: 18px; }
  .hv-outcome-head { padding: 14px 18px; }
}

/* --------------------------------------------------------------------------
   Story rows (attribution → controls → lineage) with orange connectors
   -------------------------------------------------------------------------- */
.story { padding-top: clamp(56px, 7vw, 120px); padding-bottom: clamp(56px, 6vw, 96px); flex-direction: column; }
.story-wrap { position: relative; }
.story-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.story-wires path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(228,75,51,.45)); }

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 671fr) minmax(0, 750fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  position: relative; z-index: 1;
}
.story-row + .story-row { margin-top: clamp(64px, 7vw, 112px); }
.story-row-flip { grid-template-columns: minmax(0, 750fr) minmax(0, 671fr); }
.story-copy { padding-top: 0; max-width: 671px; }
.story-copy h2 { margin-bottom: 20px; }
.story-copy p { font-size: clamp(18px, 1rem + .5vw, 24px); line-height: 1.3; color: var(--sl-sand-50); }
.story-row-flip .story-copy { justify-self: end; padding-top: 34px; }
.story-media { position: relative; }
.story-media .panel { min-height: 329px; display: flex; flex-direction: column; }

/* floating "Monthly token spend" chip above the attribution panel */
.chip-spend {
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: 100%;
  margin: 0 0 58px auto;
  transform: translateX(-22%);
  background: linear-gradient(180deg, #1e1e1d, #161615);
  border: 1px solid #2c2b29; border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
html.js .chip-spend.reveal { transform: translate(-22%, 18px); }
html.js .chip-spend.reveal.in { transform: translateX(-22%); }
.chip-ico { width: 36px; height: 36px; border-radius: 8px; background: rgba(217,217,217,.18); border: 1px solid rgba(255,255,255,.08); flex: 0 0 auto; display: grid; place-items: center; }
.chip-ico .ph { font-size: 22px; color: var(--sl-sand-50); }
.chip-title { display: block; color: var(--sl-grey-200); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.chip-spend .ticks { width: 240px; }

/* attribution diagram */
.attr { display: grid; grid-template-columns: minmax(0, 178fr) 90px minmax(0, 280fr); align-items: center; gap: 0; flex: 1; }
.attr-src { display: grid; gap: 10px; }
.attr-src li {
  display: flex; align-items: center; gap: 12px;
  background: #171716; border: 1px solid #2c2b29; border-radius: 10px;
  padding: 14px 16px; font-size: 16px; color: var(--sl-sand-50);
}
.attr-src .ph { font-size: 24px; color: var(--sl-sand-50); }
.attr-join { position: relative; height: 100%; min-height: 180px; }
.attr-join i {
  position: absolute; left: 0; width: 50%; height: 34%; border: 1px solid #5a5856; border-left: 0;
}
.attr-join i:nth-child(1) { top: 16%; border-bottom: 0; border-radius: 0 12px 0 0; }
.attr-join i:nth-child(2) { top: 50%; height: 0; border-top: 1px solid #5a5856; border-bottom: 0; border-right: 0; }
.attr-join i:nth-child(3) { bottom: 16%; border-top: 0; border-radius: 0 0 12px 0; }
.attr-node {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%);
  border: 3px solid var(--accent); border-radius: 50%; background: #0f0f0e; box-shadow: 0 0 10px rgba(228,75,51,.6);
}
.attr-join b { position: absolute; left: calc(50% + 8px); right: 0; top: 50%; height: 2px; background: var(--accent); transform: translateY(-50%); }
.attr-map { margin: 0; background: #0f0f0e; border: 1px solid #2c2b29; border-radius: 10px; padding: 6px 18px; }
.attr-map div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #262524; font-size: 16px; }
.attr-map div:last-child { border-bottom: 0; }
.attr-map dt { color: var(--sl-sand-50); margin: 0; }
.attr-map dd { color: var(--sl-sand-50); margin: 0; font-weight: 500; }
.attr-ok dt { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 500; }
.attr-ok .ph { font-size: 22px; color: var(--accent); }

/* policy controls */
.ctl { display: grid; flex: 1; }
.ctl li {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 22px 0; border-bottom: 1px solid #262524;
}
.ctl li:last-child { border-bottom: 0; }
.ctl-name { font-size: 18px; color: var(--sl-sand-50); }
.ctl-val { font-size: 17px; color: var(--sl-sand-50); text-align: right; justify-self: end; white-space: nowrap; min-width: 130px; }
.ctl .ticks { height: 22px; --period: 5px; --tick: 2.5px; max-width: 240px; }
.route { display: flex; align-items: center; max-width: 220px; width: 100%; }
.route i { width: 22px; height: 22px; border: 2px solid var(--sl-sand-50); border-radius: 50%; flex: 0 0 auto; background: #0f0f0e; }
.route b { flex: 1; height: 2px; background: var(--accent); position: relative; margin: 0 6px 0 0; }
.route b::after { content: ""; position: absolute; right: -2px; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.breaker { display: flex; align-items: center; max-width: 220px; width: 100%; }
.breaker::before, .breaker::after { content: ""; flex: 1; height: 2px; background: #4a4846; }
.stop { position: relative; width: 44px; height: 44px; flex: 0 0 auto; margin: 0 6px; }
.stop::before, .stop::after { content: ""; position: absolute; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.stop::before { inset: 0; background: var(--accent); filter: drop-shadow(0 0 8px rgba(228,75,51,.5)); }
.stop::after { inset: 2px; background: #0f0f0e; }
.stop span { position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; background: var(--accent); z-index: 1; border-radius: 2px; }
.pill-blocked { display: inline-block; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 6px 18px; font-size: 16px; }

/* lineage */
.lineage { display: grid; gap: 0; flex: 1; }
.lin-top { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lin-box {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  background: #171716; border: 1px solid #2c2b29; border-radius: 10px;
  padding: 24px; font-size: 18px; color: var(--sl-sand-50);
}
.lin-box .ph { font-size: 34px; color: var(--sl-sand-50); }
.lin-stems { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; height: 30px; }
.lin-stems span { width: 2px; height: 100%; background: var(--accent); margin: 0 auto; }
.lin-base {
  display: flex; align-items: center; gap: 20px;
  background: rgba(228,75,51,.04); border: 2px solid var(--accent); border-radius: 12px;
  padding: 20px 26px;
  box-shadow: 0 0 30px rgba(228,75,51,.12);
}
.lin-base .ph { font-size: 40px; color: var(--sl-sand-50); }
.lin-base strong { display: block; font-size: 22px; font-weight: 500; color: var(--sl-sand-50); line-height: 1.2; }
.lin-base span { display: block; color: var(--text-muted); font-size: 16px; margin-top: 2px; }

@media (max-width: 1025.98px) {
  .story-wires { display: none; }
  .story-row, .story-row-flip { grid-template-columns: 1fr; gap: 28px; }
  .story-row-flip .story-media { order: 2; }
  .story-row-flip .story-copy { order: 1; padding-top: 0; justify-self: start; }
  .story-row + .story-row { margin-top: 72px; }
  .chip-spend { margin: 0 0 20px; transform: none; }
  html.js .chip-spend.reveal { transform: translateY(18px); }
  html.js .chip-spend.reveal.in { transform: none; }
  .story-media .panel { min-height: 0; }
}
@media (max-width: 719.98px) {
  .attr { grid-template-columns: 1fr; gap: 16px; }
  .attr-join { display: none; }
  .ctl li { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .ctl-val { justify-self: start; text-align: left; }
  .chip-spend .ticks { width: 160px; }
  .lin-top { gap: 12px; } .lin-stems { gap: 12px; }
  .lin-box { padding: 16px; font-size: 16px; }
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */
.features { padding-top: clamp(56px, 7vw, 120px); }
.features-wrap { max-width: 1380px; }
.feat-grid { display: grid; gap: 16px; }
.feat-grid-3 { grid-template-columns: 452fr 441fr 457fr; margin-bottom: 16px; }
.feat-grid-2 { grid-template-columns: 1fr 1fr; }
.feat-col { display: grid; gap: 16px; align-content: start; }
.feat {
  background: var(--sl-grey-900);
  border: 1px solid var(--sl-grey-700);
  border-radius: 14px;
  padding: 20px 22px 24px;
  display: flex; flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.feat h3 { font-size: 24px; font-weight: 400; margin: 0 0 8px; color: var(--sl-sand-50); letter-spacing: 0; }
.feat > p { font-size: 18px; line-height: 1.3; color: var(--sl-sand-50); margin: 0 0 26px; }
.feat-tall { min-height: 626px; }
.feat-wide { min-height: 391px; }

/* (feature illustrations: see "Bento illustrations" block at end of file) */

/* --------------------------------------------------------------------------
   Demo form
   -------------------------------------------------------------------------- */
.demo { padding-top: clamp(56px, 7vw, 120px); padding-bottom: clamp(40px, 5vw, 80px); flex-direction: column; }
.demo .section-head .lead { font-size: clamp(18px, 1rem + .4vw, 22px); color: var(--sl-grey-200); }
.demo-form {
  max-width: 712px; margin: 0 auto;
  background: var(--sl-grey-900); border: 1px solid var(--sl-grey-700); border-radius: 14px;
  padding: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px;
  position: relative;
}
.ff { display: grid; gap: 8px; min-width: 0; }
.ff-full { grid-column: 1 / -1; }
.ff label, .ff legend { font-size: 14px; color: var(--sl-grey-200); font-weight: 500; }
.ff .opt { color: var(--text-faint); font-weight: 400; }
.ff input[type="text"], .ff input[type="email"], .ff select, .ff textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--sl-sand-50);
  background: #0b0b0a; border: 1px solid #3a3936; border-radius: 8px;
  padding: 12px 14px; outline: none; transition: border-color var(--dur), box-shadow var(--dur);
}
.ff textarea { resize: vertical; min-height: 84px; }
.ff select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.ff :is(input, select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,75,51,.18); }
.ff :is(input, select, textarea).is-invalid { border-color: var(--accent-hover); }
fieldset.ff { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; border: 1px solid #3a3936; border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--sl-grey-200); background: #0b0b0a; transition: all var(--dur); }
.chips input:checked + span { border-color: var(--accent); color: var(--sl-sand-50); background: rgba(228,75,51,.12); }
.chips input:focus-visible + span { outline: 2px solid rgba(228,75,51,.7); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 4px; }
.form-actions .button { margin: 0; }
.form-note { font-size: 13px; color: var(--text-muted); margin: 0; }
.form-note a { color: var(--sl-grey-200); }
.form-success { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 40px 12px; }
.form-success .ph { font-size: 44px; color: var(--accent); margin-bottom: 8px; }
.form-success strong { font-size: 22px; font-weight: 500; color: var(--sl-sand-50); }
.form-success span { color: var(--text-muted); }
.demo-form.is-done > :not(.form-success) { display: none; }
@media (max-width: 719.98px) {
  .demo-form { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .button { width: 100%; }
}

/* --------------------------------------------------------------------------
   Motion — reveal-driven animations (all diagrams are HTML/CSS/SVG)
   -------------------------------------------------------------------------- */
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.ticks { --p: 0%; background: linear-gradient(90deg, var(--c) 0 var(--p), var(--rest) var(--p) 100%); transition: --p 1.2s var(--ease) .2s; }
.in .ticks, html:not(.js) .ticks { --p: var(--fill); }

.hv-progress span { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.in .hv-progress span, html:not(.js) .hv-progress span { transform: scaleX(1); }

.hv-wires .node { opacity: 0; }

/* attribution: flow along the join into the table, node pulses */
.attr-join b { background: linear-gradient(90deg, var(--accent) 0 40%, #ff8a75 50%, var(--accent) 60% 100%); background-size: 200% 100%; animation: flow 1.6s linear infinite; }
.attr-node { animation: nodePulse 2.4s ease-in-out infinite; }
@keyframes flow { from { background-position: 100% 0 } to { background-position: -100% 0 } }
@keyframes nodePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(228,75,51,.55) } 60% { box-shadow: 0 0 0 9px rgba(228,75,51,0) } }
.attr-ok { opacity: 0; transform: translateY(4px); transition: opacity .5s var(--ease) 1s, transform .5s var(--ease) 1s; }
.in .attr-ok, html:not(.js) .attr-ok { opacity: 1; transform: none; }

/* policy controls: route arrow shoots, breaker trips, pill appears */
.route b { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .5s; }
.in .route b, html:not(.js) .route b { transform: scaleX(1); }
.stop { transform: scale(.7); opacity: .4; transition: transform .5s cubic-bezier(.3,1.6,.4,1) .9s, opacity .4s ease .9s; }
.in .stop, html:not(.js) .stop { transform: scale(1); opacity: 1; }
.in .stop::before { animation: breakerGlow 2.2s ease-in-out 1.4s infinite; }
@keyframes breakerGlow { 0%,100% { filter: drop-shadow(0 0 4px rgba(228,75,51,.3)) } 50% { filter: drop-shadow(0 0 12px rgba(228,75,51,.8)) } }
.pill-blocked { opacity: 0; transform: translateX(6px); transition: opacity .4s ease 1.2s, transform .4s var(--ease) 1.2s; }
.in .pill-blocked, html:not(.js) .pill-blocked { opacity: 1; transform: none; }

/* lineage: stems grow into the shared foundation */
.lin-stems span { transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease) .4s; }
.in .lin-stems span, html:not(.js) .lin-stems span { transform: scaleY(1); }
.lin-base { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease) .9s, transform .6s var(--ease) .9s, box-shadow .6s; }
.in .lin-base, html:not(.js) .lin-base { opacity: 1; transform: none; }



/* ladder: steps stagger in */
.ladder li { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.in .ladder li, html:not(.js) .ladder li { opacity: 1; transform: none; }
.in .ladder li:nth-child(2) { transition-delay: .12s } .in .ladder li:nth-child(3) { transition-delay: .24s } .in .ladder li:nth-child(4) { transition-delay: .36s }


@media (prefers-reduced-motion: reduce) {
  .ticks, .hv-progress span, .route b, .stop, .pill-blocked, .lin-stems span, .lin-base, .ladder li, .attr-ok, .budget-thresh { transition: none !important; }
  .ticks { --p: var(--fill); }
  .hv-progress span, .route b, .lin-stems span, .stop { transform: none; opacity: 1; }
  .pill-blocked, .lin-base, .ladder li, .attr-ok, .budget-thresh { opacity: 1; transform: none; }
  .attr-join b, .attr-node, .rt-hot, .stop::before { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Hero — outcome cards (Routing / Budget / Containment)
   -------------------------------------------------------------------------- */
.hv-right { gap: 14px; }
.hv-out {
  position: relative;
  display: grid; gap: 5px;
  background: linear-gradient(180deg, #1a1a19, #141413);
  border: 1px solid #2c2b29; border-radius: 12px;
  padding: 13px 16px 14px;
  font-size: 13px; line-height: 1.35; color: var(--sl-sand-50);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.hv-out-tag {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted);
}
.hv-out-meta { margin: 0; display: grid; gap: 1px; padding-right: 110px; }
.hv-out-meta div { display: flex; gap: 6px; flex-wrap: wrap; }
.hv-out-meta dt { margin: 0; color: var(--text-muted); }
.hv-out-meta dt::after { content: ":"; }
.hv-out-meta dd { margin: 0; color: var(--sl-sand-50); font-weight: 500; }
.hv-out-line { margin: 5px 0 0; display: flex; align-items: center; gap: 8px; color: var(--sl-grey-200); }
.hv-out-line.warn::before, .hv-out-line.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.hv-out-line.warn::before { background: var(--accent); box-shadow: 0 0 8px rgba(228,75,51,.75); }
.hv-out-line.ok::before { background: #7fc9a0; box-shadow: 0 0 8px rgba(127,201,160,.6); }
.hv-out-result { margin: 3px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--sl-sand-50); font-weight: 500; }
.hv-out-result.ok { color: #7fc9a0; }
.hv-out-result em { display: block; flex-basis: 100%; font-style: italic; font-weight: 400; font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.hv-out-result .ph { font-size: 16px; color: #7fc9a0; }
.hv-swap b { font-weight: 500; color: var(--sl-sand-50); }
.hv-swap s { position: relative; text-decoration: none; color: var(--sl-sand-50); transition: color .3s ease var(--d, 0s); }
.hv-swap s::after { content: ""; position: absolute; left: -1px; right: -1px; top: 54%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease) var(--d, 0s); }

/* sequenced steps inside the outcome cards (fire once the hero reveals) */
html.js .hv-out .step { opacity: 0; transform: translateY(4px); transition: opacity .45s var(--ease) var(--d, 0s), transform .45s var(--ease) var(--d, 0s); }
html.js .in .hv-out .step, html:not(.js) .hv-out .step { opacity: 1; transform: none; }
html.js .in .hv-swap s, html:not(.js) .hv-swap s { color: var(--text-faint); }
html.js .in .hv-swap s::after, html:not(.js) .hv-swap s::after { transform: scaleX(1); }

@media (max-width: 1025.98px) { .hv-right { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 719.98px) { .hv-right { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .hv-out .step, .hv-swap s, .hv-swap s::after { transition: none !important; }
  .hv-out .step { opacity: 1 !important; transform: none !important; }
  .hv-swap s::after { transform: scaleX(1) !important; }
}

/* Cloud Custodian logo in the lineage panel */
.lin-base .lin-logo { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 6px 18px rgba(0,0,0,.4); }
@media (max-width: 719.98px) { .lin-base .lin-logo { width: 40px; height: 40px; } }

/* --------------------------------------------------------------------------
   Enterprise comparison (Built on proven governance)
   -------------------------------------------------------------------------- */
.compare { margin-top: auto; border: 1px solid #2a2927; border-radius: 10px; overflow: hidden; background: #0b0b0a; font-size: 14px; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 110px; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid #1f1e1d; color: var(--sl-sand-50); }
.cmp-row:first-child { border-top: 0; }
.cmp-head { background: #111; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding-block: 10px; }
.cmp-head .cmp-tc { color: var(--accent); }
.cmp-row > span:first-child { font-weight: 500; }
.cmp-yes { display: inline-flex; align-items: center; gap: 8px; color: var(--sl-sand-50); }
.cmp-yes .ph { font-size: 18px; color: var(--accent); flex: 0 0 auto; }
.cmp-yes b { font-weight: 400; color: var(--sl-grey-200); font-size: 13px; }
.cmp-no { color: var(--text-faint); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: -.01em; }
.cmp-row:not(.cmp-head) { position: relative; }

/* rows and checks stagger in on reveal */
html.js .cmp-row:not(.cmp-head) { opacity: 0; transform: translateX(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
html.js .in .cmp-row:not(.cmp-head), html:not(.js) .cmp-row:not(.cmp-head) { opacity: 1; transform: none; }
html.js .in .cmp-row:nth-child(2) { transition-delay: .15s } html.js .in .cmp-row:nth-child(3) { transition-delay: .3s }
html.js .in .cmp-row:nth-child(4) { transition-delay: .45s } html.js .in .cmp-row:nth-child(5) { transition-delay: .6s } html.js .in .cmp-row:nth-child(6) { transition-delay: .75s }
html.js .cmp-yes .ph { transform: scale(.6); opacity: 0; transition: transform .4s cubic-bezier(.3,1.6,.4,1), opacity .3s ease; }
html.js .in .cmp-yes .ph, html:not(.js) .cmp-yes .ph { transform: scale(1); opacity: 1; }
html.js .in .cmp-row:nth-child(2) .ph { transition-delay: .45s } html.js .in .cmp-row:nth-child(3) .ph { transition-delay: .6s }
html.js .in .cmp-row:nth-child(4) .ph { transition-delay: .75s } html.js .in .cmp-row:nth-child(5) .ph { transition-delay: .9s } html.js .in .cmp-row:nth-child(6) .ph { transition-delay: 1.05s }

@media (max-width: 719.98px) {
  .cmp-row { grid-template-columns: minmax(0, 1fr) 120px 70px; gap: 8px; padding: 10px 12px; font-size: 13px; }
  .cmp-yes b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-row, .cmp-yes .ph { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Bento illustrations — brand-styled mini panels inside the feature cards
   ========================================================================== */
.viz {
  margin-top: auto;
  background: linear-gradient(180deg, #151514, #0f0f0e);
  border: 1px solid #2c2b29; border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 34px rgba(0,0,0,.35);
  position: relative; overflow: hidden;
}
.viz::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 55% at 50% 0%, rgba(228,75,51,.07), transparent 70%); }
.viz > * { position: relative; }
.viz-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.viz-head span:last-child { color: var(--text-faint); letter-spacing: .02em; text-transform: none; text-align: right; }
.viz .ticks { --rest: #26241f; }
.feat-tall .viz { margin-top: auto; }

/* 1 · spend ledger */
.ledger-rows { display: grid; gap: 12px; }
.ledger-rows li { display: grid; grid-template-columns: 108px minmax(0, 1fr) 56px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--sl-sand-50); }
.lg-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lg-dot { width: 7px; height: 7px; border-radius: 1.5px; background: var(--c, var(--accent)); transform: rotate(45deg); flex: 0 0 auto; }
.lg-val { text-align: right; color: var(--sl-grey-200); }
.ledger-rows .ticks { height: 16px; --period: 5px; --tick: 3px; }
.viz-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #262524; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.viz-foot .ok { display: inline-flex; align-items: center; gap: 6px; color: var(--sl-sand-50); }
.viz-foot .ok .ph { color: var(--accent); font-size: 14px; }

/* 2 · router */
.router-body { display: grid; grid-template-columns: minmax(0, .9fr) 64px minmax(0, 1.35fr); align-items: center; }
.rt-node { display: flex; align-items: center; gap: 10px; background: #171716; border: 1px solid #2c2b29; border-radius: 10px; padding: 10px 12px; min-width: 0; transition: opacity .4s, border-color .4s; }
.rt-node .ph { font-size: 20px; color: var(--sl-sand-50); flex: 0 0 auto; }
.rt-node strong { display: block; font-size: 13.5px; font-weight: 500; color: var(--sl-sand-50); line-height: 1.2; }
.rt-node .mono { display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-node.rt-dim { opacity: .5; }
.rt-node.rt-hot-node { border-color: var(--accent); background: rgba(228,75,51,.06); box-shadow: 0 0 18px rgba(228,75,51,.16), inset 0 1px 0 rgba(255,255,255,.04); }
.rt-node.rt-hot-node .ph, .rt-node.rt-hot-node .mono { color: var(--accent); }
.rt-targets { display: grid; gap: 14px; }
.rt-svg { width: 64px; height: 124px; overflow: visible; display: block; }
.rt-svg path { fill: none; stroke-width: 1.5; }
.rt-svg .rt-cold { stroke: #3a3936; }
.rt-svg .rt-head-cold { fill: #3a3936; stroke: none; }
.rt-svg .rt-hot { stroke: var(--accent); filter: drop-shadow(0 0 4px rgba(228,75,51,.55)); }
.rt-svg .rt-head { fill: var(--accent); stroke: none; }
.rt-svg .rt-pkt { fill: #ff8a75; filter: drop-shadow(0 0 6px rgba(255,89,63,.95)); }

/* 3 · budget */
.budget-amt { font-family: var(--font-mono); font-size: 30px; color: var(--sl-sand-50); margin: 0 0 10px; letter-spacing: -.02em; line-height: 1.1; }
.budget-amt small { font-size: 13.5px; color: var(--text-muted); margin-left: 6px; letter-spacing: 0; }
.budget-bar { position: relative; padding-top: 18px; }
.budget-bar .ticks { height: 26px; --period: 6px; --tick: 3px; background: linear-gradient(90deg, #a93d2c 0, var(--accent) calc(var(--p) - 14%), #ff593f var(--p), var(--rest) var(--p) 100%); }
.budget-thresh { position: absolute; left: var(--at); top: 8px; bottom: -4px; width: 1.5px; background: repeating-linear-gradient(180deg, var(--sl-sand-50) 0 3px, transparent 3px 6px); }
.budget-thresh em { position: absolute; left: 6px; top: -5px; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--sl-sand-50); white-space: nowrap; }
.budget-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 11px; color: var(--text-muted); }
.budget-legend li { display: inline-flex; align-items: center; gap: 6px; }
.budget-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--c, #3a3936); }
.budget-legend i.dash { width: 2px; height: 12px; border-radius: 0; background: repeating-linear-gradient(180deg, var(--sl-sand-50) 0 2px, transparent 2px 4px); }
.budget-thresh { opacity: 0; transition: opacity .4s ease 1.1s; }
.in .budget-thresh, html:not(.js) .budget-thresh { opacity: 1; }

/* 4 · runaway sequence */
.ra-steps { display: grid; }
.ra-steps > li { position: relative; }
.ra-steps > li + li { margin-top: 18px; }
.ra-steps > li + li::before { content: ""; position: absolute; left: 50%; top: -18px; height: 18px; width: 1px; background: #3a3936; transform: translateX(-50%); }
.ra-steps > li + li::after { content: ""; position: absolute; left: 50%; top: -7px; width: 5px; height: 5px; border-right: 1px solid #3a3936; border-bottom: 1px solid #3a3936; transform: translateX(-50%) rotate(45deg); }
.ra-steps > .ra-limit + li::before { background: var(--accent); }
.ra-steps > .ra-limit + li::after { border-color: var(--accent); }
.ra-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #171716; border: 1px solid #2c2b29; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--sl-sand-50); }
.ra-box > span { display: inline-flex; align-items: center; gap: 8px; }
.ra-box small { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.ra-limit { display: grid; justify-items: center; gap: 6px; padding: 4px 0 2px; }
.ra-limit .ra-line { position: absolute; left: -16px; right: -16px; top: 18px; border-top: 1.5px dashed var(--accent); opacity: .75; }
.ra-pause { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); background: #111; display: grid; place-items: center; }
.ra-pause .ph { font-size: 12px; color: var(--accent); }
.ra-limit small { font-size: 10.5px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.ra-paused { border-color: var(--accent); background: rgba(228,75,51,.07); box-shadow: 0 0 20px rgba(228,75,51,.15); }
.ra-paused .ph { font-size: 14px; color: var(--accent); }
.ra-paused small { color: var(--sl-grey-200); }
/* sequence states (JS toggles .lit in order, then loops) */
html.js .ra-steps .ra-box:not(.ra-paused) { opacity: .45; transition: opacity .35s, border-color .35s; }
html.js .ra-steps .ra-box.lit { opacity: 1; border-color: #4a4846; }
html.js .ra-steps .ra-pause { transform: scale(.85); transition: transform .35s cubic-bezier(.3,1.6,.4,1), box-shadow .35s; }
html.js .ra-steps .ra-limit.lit .ra-pause { transform: scale(1); box-shadow: 0 0 0 6px rgba(228,75,51,.15), 0 0 18px rgba(228,75,51,.6); }
html.js .ra-steps .ra-paused { opacity: .3; transition: opacity .35s .4s; }
html.js .ra-steps .ra-limit.lit ~ .ra-paused { opacity: 1; }

/* 5 · graduated ladder */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; padding-top: 6px; }
.ladder::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: calc(6px + 22px); height: 2px; background: linear-gradient(90deg, #3a3936, #7e291c 55%, var(--accent)); }
.ladder li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.ld-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #171716; border: 1px solid #2c2b29; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.ld-ico .ph { font-size: 20px; color: var(--sl-sand-50); }
.ladder li:nth-child(2) .ld-ico { border-color: #4a352f; background: #1c1816; }
.ladder li:nth-child(3) .ld-ico { border-color: #7e291c; background: rgba(228,75,51,.10); }
.ladder li:nth-child(3) .ph { color: var(--accent-hover); }
.ladder li.hot .ld-ico { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px rgba(228,75,51,.45), var(--btn-shadow); }
.ladder li.hot .ph { color: var(--sl-grey-900); }
.ladder strong { font-size: 13px; font-weight: 500; color: var(--sl-sand-50); line-height: 1.2; }
.ladder small { font-size: 10.5px; color: var(--text-muted); }

/* responsive */
@media (max-width: 1025.98px) {
  .feat-grid-3 { grid-template-columns: 1fr 1fr; }
  .feat-col { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .feat-tall, .feat-wide { min-height: 0; }
  .feat-tall .viz { margin-top: 16px; }
}
@media (max-width: 719.98px) {
  .feat-grid-3, .feat-grid-2, .feat-col { grid-template-columns: 1fr; }
  .ledger-rows li { grid-template-columns: 96px minmax(0, 1fr) 52px; gap: 8px; }
  .router-body { grid-template-columns: 1fr; gap: 12px; }
  .rt-svg { display: none; }
  .rt-targets { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ladder { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ladder::before { display: none; }
  .ra-limit .ra-line { left: -8px; right: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-svg .rt-pkt { display: none; }
  .ra-steps .ra-box, .ra-steps .ra-pause, .ra-steps .ra-paused { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --- bento polish: overflow safety, routing pills, budget sparkline, ladder footer --- */
.feat, .feat-col, .viz, .router-body, .rt-targets { min-width: 0; }
.rt-node > div { min-width: 0; flex: 1 1 auto; }
.rt-node .mono { overflow: visible; text-overflow: clip; }
.rt-tag { flex: 0 0 auto; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; border: 1px solid #3a3936; color: var(--text-muted); }
.rt-hot-node .rt-tag { border-color: var(--accent); color: var(--accent); background: rgba(228,75,51,.1); }
.ra-box small { white-space: normal; text-align: right; }
.ra-paused { flex-direction: column; align-items: flex-start; gap: 4px; }
.ra-paused small { text-align: left; color: var(--sl-grey-200); }

.budget-spark { margin-top: 16px; padding-top: 14px; border-top: 1px solid #262524; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 56px; }
.spark i { flex: 1 1 0; min-width: 0; height: var(--h, 40%); background: #34322f; border-radius: 1.5px; transform-origin: bottom; transform: scaleY(0); transition: transform .5s var(--ease) calc(.5s + var(--i, 0) * 22ms); }
.in .spark i, html:not(.js) .spark i { transform: scaleY(1); }
.spark i.hot { background: var(--accent); box-shadow: 0 0 8px rgba(228,75,51,.4); }
.spark i.proj { background: repeating-linear-gradient(180deg, #7e291c 0 3px, transparent 3px 6px); }
.spark-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 10.5px; color: var(--text-muted); }
.spark-meta b { font-weight: 400; color: var(--accent); }
.ladder-wrap .viz-foot { margin-top: 18px; }
.ladder-wrap .viz-foot .ok .ph { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .spark i { transform: none !important; transition: none !important; } }

/* --- bento: small-screen refinements --- */
.rt-node .mono { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 719.98px) {
  .router-body { grid-template-columns: 1fr; gap: 10px; }
  .rt-targets { grid-template-columns: 1fr; gap: 10px; }
  .rt-node { padding: 10px 14px; }
  .cmp-row { grid-template-columns: minmax(0, 1fr) 56px 68px; gap: 10px; padding: 10px 12px; font-size: 13px; }
  .cmp-head { font-size: 9.5px; letter-spacing: .06em; }
  .cmp-head span { line-height: 1.25; }
  .cmp-yes b { display: none; }
  .cmp-no { font-size: 11.5px; }
  .ledger-rows li { font-size: 12px; }
}

/* --- tall cards: center the graphic; budget gets a slow dithered dot field --- */
.feat-tall .viz { margin-top: auto; margin-bottom: auto; }
@media (max-width: 1025.98px) { .feat-tall .viz { margin-top: 16px; margin-bottom: 0; } }

.viz.budget, .viz.budget-flow { isolation: isolate; }
.viz.budget::after, .viz.budget-flow::after {
  content: ""; position: absolute; inset: -30% -20%; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(228,75,51,.30) 0.9px, transparent 1.4px),
    radial-gradient(circle, rgba(235,231,226,.11) 0.8px, transparent 1.3px),
    radial-gradient(circle, rgba(255,89,63,.16) 1.3px, transparent 1.9px);
  background-size: 6px 6px, 11px 11px, 19px 19px;
  background-position: 0 0, 4px 6px, 9px 3px;
  -webkit-mask-image: radial-gradient(75% 70% at 68% 32%, #000 0%, rgba(0,0,0,.55) 45%, transparent 82%);
          mask-image: radial-gradient(75% 70% at 68% 32%, #000 0%, rgba(0,0,0,.55) 45%, transparent 82%);
  opacity: .85;
  animation: dither-drift 36s linear infinite, dither-breathe 11s ease-in-out infinite alternate;
}
.viz.budget::before, .viz.budget-flow::before { z-index: -1; }
@keyframes dither-drift {
  from { background-position: 0 0, 4px 6px, 9px 3px; }
  to   { background-position: 72px 48px, -62px 50px, 38px -57px; }
}
@keyframes dither-breathe {
  from { opacity: .55; -webkit-mask-position: 0 0; mask-position: 0 0; }
  to   { opacity: 1;   -webkit-mask-position: -6% 4%; mask-position: -6% 4%; }
}
@media (prefers-reduced-motion: reduce) { .viz.budget::after { animation: none; opacity: .7; } }

/* --- routing card: give the target nodes room so sub-labels don't truncate --- */
@media (min-width: 720px) {
  .router-body { grid-template-columns: minmax(0, .85fr) 64px minmax(0, 1.45fr); }
  .rt-node { padding: 10px 10px; gap: 8px; }
  .rt-node .mono { letter-spacing: -.02em; }
  .rt-tag { font-size: 9px; padding: 2px 6px; }
}

/* --- Key features / Key use cases section labels and text-only feature cards --- */
.section-head-label { margin-bottom: clamp(20px, 2.5vw, 32px); }
.section-head-label .eyebrow { margin-bottom: 0; }
.eyebrow-brand { color: var(--text-muted); margin-right: 2px; }
.feat-grid-text { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.feat-text { min-height: 0; padding-bottom: 24px; }
.feat-text h3 { font-size: 22px; }
.feat-text > p { margin-bottom: 0; font-size: 17px; }
.use-cases { padding-top: clamp(16px, 2.5vw, 32px); }
.feat-grid-3 { margin-bottom: 0; }
.hero-copy .eyebrow { justify-content: center; margin-bottom: 18px; }
.hero-copy h1 { max-width: 980px; }
@media (max-width: 1025.98px) { .feat-grid-text { grid-template-columns: 1fr 1fr; } .feat-grid-text .feat-text:last-child { grid-column: 1 / -1; } }
@media (max-width: 719.98px) { .feat-grid-text { grid-template-columns: 1fr; } .feat-grid-text .feat-text:last-child { grid-column: auto; } }

/* ==========================================================================
   Key features — vertical tabs (list left, illustrated panel right)
   ========================================================================== */
.ftabs {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.ftabs-list { display: grid; gap: 4px; border-left: 1px solid var(--sl-grey-750); }
.ftab {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start;
  width: 100%; text-align: left; font: inherit; color: var(--text-muted); cursor: pointer;
  background: transparent; border: 0; border-radius: 0 12px 12px 0; padding: 18px 20px 18px 22px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.ftab:hover { color: var(--sl-sand-50); background: rgba(255,255,255,.015); }
.ftab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ftab[aria-selected="true"] { color: var(--sl-sand-50); background: linear-gradient(90deg, rgba(228,75,51,.07), rgba(17,17,17,.6) 60%); }
.ftab-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; margin-top: -2px; background: #141413; border: 1px solid #2c2b29; color: var(--text-muted); transition: color .3s, border-color .3s, background-color .3s, box-shadow .3s; }
.ftab-ico .ph { font-size: 18px; }
.ftab:hover .ftab-ico { color: var(--sl-sand-50); }
.ftab[aria-selected="true"] .ftab-ico { color: var(--accent); border-color: rgba(228,75,51,.55); background: rgba(228,75,51,.08); box-shadow: 0 0 14px rgba(228,75,51,.18); }
.ftab-title { display: block; font-size: clamp(20px, 1rem + .5vw, 24px); line-height: 1.25; }
.ftab-desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease), opacity .35s var(--ease); }
.ftab-desc > span { overflow: hidden; font-size: 17px; line-height: 1.4; color: var(--sl-grey-200); }
.ftab[aria-selected="true"] .ftab-desc { grid-template-rows: 1fr; opacity: 1; }
.ftab[aria-selected="true"] .ftab-desc > span { padding-top: 10px; }
/* rail: the active tab's segment of the left border fills as the auto-advance timer runs */
.ftab-bar { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--sl-grey-700); opacity: 0; transition: opacity .3s; overflow: hidden; }
.ftab-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(1); box-shadow: 0 0 10px rgba(228,75,51,.6); }
.ftab[aria-selected="true"] .ftab-bar { opacity: 1; }
.ftabs.is-auto .ftab[aria-selected="true"] .ftab-bar::after { animation: ftab-fill var(--ft-dur, 8s) linear forwards; }
.ftabs.is-paused .ftab[aria-selected="true"] .ftab-bar::after { animation-play-state: paused; }
@keyframes ftab-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.ftabs-stage { display: grid; min-width: 0; }
.ftab-panel { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; }
.ftab-panel[hidden] { display: none; }
.ftab-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.ftab-panel > .viz { margin-top: 0; min-height: 440px; display: flex; flex-direction: column; }
.ftab-panel > .compare { margin: 0; }
html.js .ftab-panel.in { animation: ftab-in .5s var(--ease) both; }
@keyframes ftab-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ftab-panel .ladder { margin-block: auto; }
.ftab-panel .ladder-wrap .viz-foot { margin-top: 24px; }

/* shared caption used inside the new panels */
.pol-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.pol-cap .ph { font-size: 14px; color: var(--accent); }

/* 03 · flexible policy: form ↔ policy-as-code */
.pol-split { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.25fr); align-items: stretch; flex: 1; }
.pol-ui, .pol-code { background: #141413; border: 1px solid #2c2b29; border-radius: 10px; padding: 14px; min-width: 0; display: flex; flex-direction: column; }
.pol-field { display: grid; gap: 4px; padding: 9px 11px; margin-bottom: 8px; border: 1px solid #2c2b29; border-radius: 8px; background: #181817; }
.pol-field span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.pol-field b { font-weight: 400; font-size: 14px; color: var(--sl-sand-50); }
.pol-save { margin-top: auto; display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--sl-grey-200); padding-top: 6px; }
.pol-save .ph { color: var(--accent); font-size: 14px; }
.pol-sync { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center; }
.pol-sync span { width: 1px; height: 100%; background: repeating-linear-gradient(180deg, #4a4846 0 3px, transparent 3px 6px); }
.pol-sync .ph { font-size: 16px; color: var(--accent); margin: 8px 0; }
.snippet { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--sl-grey-200); white-space: pre; overflow-x: auto; }
.tok-key { color: var(--sl-sand-50); }
.tok-str { color: var(--sl-coral); }
.tok-num { color: var(--accent-hover); }
.tok-dash { color: var(--text-faint); }
html.js .pol-field { opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
html.js .in .pol-field { opacity: 1; transform: none; }
html.js .in .pol-field:nth-of-type(2) { transition-delay: .1s } html.js .in .pol-field:nth-of-type(3) { transition-delay: .2s } html.js .in .pol-field:nth-of-type(4) { transition-delay: .3s }

/* 04 · internal + production workloads, agent guardrails */
.wl-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wl-lane { background: #141413; border: 1px solid #2c2b29; border-radius: 10px; padding: 14px; min-width: 0; }
.wl-rows { display: grid; gap: 6px; }
.wl-rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; background: #181817; border: 1px solid #242321; font-size: 13.5px; color: var(--sl-sand-50); }
.wl-rows em { font-style: normal; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.wl-rows .wl-hot { border-color: var(--accent); background: rgba(228,75,51,.07); }
.wl-rows .wl-hot em { color: var(--accent); }
.wl-guard { margin-top: auto; padding-top: 16px; }
.wl-guard-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 10.5px; letter-spacing: .06em; color: var(--text-muted); }
.wl-live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; }
.wl-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: wl-blink 1.6s ease-in-out infinite; }
@keyframes wl-blink { 50% { opacity: .3; } }
.wl-meters { display: grid; gap: 10px; }
.wl-meters li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 104px; align-items: center; gap: 12px; font-size: 12px; color: var(--sl-grey-200); }
.wl-meters .ticks { height: 16px; --period: 5px; --tick: 3px; --c: #7e291c; }
.wl-meters .hot .ticks { --c: var(--accent); }
.wl-meters b { font-weight: 400; text-align: right; color: var(--sl-sand-50); white-space: nowrap; }
.wl-meters .hot b { color: var(--accent); }
.wl-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #262524; font-size: 11.5px; color: var(--sl-grey-200); }
.wl-note .ph { color: var(--accent); font-size: 14px; }

/* 05 · hub: data in, actions out */
.hub-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 48px auto 48px minmax(0, 1fr); align-items: center; }
.hub-col { display: grid; gap: 14px; min-width: 0; }
.hub-col li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #171716; border: 1px solid #2c2b29; border-radius: 10px; font-size: 13.5px; color: var(--sl-sand-50); min-width: 0; }
.hub-col li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-col .ph { font-size: 18px; color: var(--text-muted); flex: 0 0 auto; }
.hub-svg { width: 100%; height: 180px; overflow: visible; }
.hub-svg path { fill: none; stroke: #3a3936; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hub-svg.hub-out path { stroke: var(--accent); stroke-dasharray: 4 5; animation: hub-flow 1.2s linear infinite; filter: drop-shadow(0 0 3px rgba(228,75,51,.5)); }
.hub-svg:not(.hub-out) path { stroke-dasharray: 4 5; animation: hub-flow 1.6s linear infinite; }
@keyframes hub-flow { to { stroke-dashoffset: -18; } }
.hub-core { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 16px; border-radius: 14px; border: 1px solid var(--accent); background: radial-gradient(120% 100% at 50% 0%, rgba(228,75,51,.16), #141312 70%); box-shadow: 0 0 30px rgba(228,75,51,.18), inset 0 1px 0 rgba(255,255,255,.05); }
.hub-core strong { font-weight: 500; font-size: 14.5px; color: var(--sl-sand-50); white-space: nowrap; }
.hub-core .mono { font-size: 10.5px; color: var(--text-muted); }
.hub .viz-foot { margin-top: 18px; }

/* stage height evens out on desktop; narrow screens become an accordion (JS moves the stage under the active tab) */
@media (max-width: 1025.98px) {
  .ftabs { grid-template-columns: 1fr; gap: 0; }
  .ftabs-list { border-left: 0; gap: 0; }
  .ftab { border-radius: 0; padding: 16px 14px; border-top: 1px solid var(--sl-grey-750); }
  .ftab[aria-selected="true"] { background: transparent; }
  .ftab-bar { left: 0; right: 0; top: auto; bottom: auto; top: -1px; width: auto; height: 2px; }
  .ftab-bar::after { transform-origin: left; }
  .ftabs.is-auto .ftab[aria-selected="true"] .ftab-bar::after { animation-name: ftab-fill-x; }
  .ftabs-stage { padding: 4px 0 20px; }
  .ftab-panel > .viz { min-height: 0; }
}
@keyframes ftab-fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 719.98px) {
  .ftab { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .ftab-ico { width: 30px; height: 30px; }
  .ftab-desc > span { font-size: 16px; }
  .pol-split { grid-template-columns: 1fr; gap: 12px; }
  .pol-sync { display: none; }
  .wl-lanes { grid-template-columns: 1fr; }
  .wl-meters li { grid-template-columns: 60px minmax(0, 1fr); }
  .wl-meters b { grid-column: 1 / -1; text-align: left; font-size: 11px; margin-top: -6px; }
  .hub-body { grid-template-columns: 1fr; gap: 12px; }
  .hub-svg { display: none; }
  .hub-col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hub-col li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; font-size: 12px; }
  .hub-col li span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ftab-desc, .ftab-panel, .pol-field { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  .hub-svg path, .wl-live i { animation: none !important; }
}
.cmp-viz .compare { margin: auto 0; }
.cmp-viz .viz-foot { margin-top: 18px; }

/* --- hero outcome cards: one anatomy (head · subject · sequence · result) --- */
.hv-out { gap: 0; padding: 12px 14px 0; overflow: hidden; }
.hv-out-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 8px; }
.hv-out .hv-out-tag { position: static; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .16em; }
.hv-out-tag .ph { font-size: 13px; color: var(--accent); }
.hv-out-head time { font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }
.hv-out-subject { margin: 0 0 9px; font-size: 14px; font-weight: 500; color: var(--sl-sand-50); line-height: 1.25; }
.hv-out-subject span { font-weight: 400; color: var(--text-muted); }

.hv-out .hv-swap { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.hv-out .hv-swap s, .hv-out .hv-swap b { padding: 4px 9px; border-radius: 6px; border: 1px solid #2c2b29; background: #111110; font-weight: 400; white-space: nowrap; }
.hv-out .hv-swap b { border-color: rgba(228,75,51,.55); background: rgba(228,75,51,.08); color: var(--sl-sand-50); }
.hv-out .hv-swap s::after { left: 8px; right: 8px; }
.hv-out .hv-swap .ph { font-size: 13px; color: var(--text-muted); }

.hv-steps { position: relative; display: grid; gap: 7px; margin: 0 0 12px; padding: 0; list-style: none; }
.hv-steps::before { content: ""; position: absolute; left: 3px; top: 9px; bottom: 9px; width: 1px; background: #34322f; }
.hv-steps li { position: relative; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--sl-grey-200); }
.hv-steps li::before { content: ""; position: relative; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.hv-steps .warn::before { background: var(--accent); box-shadow: 0 0 8px rgba(228,75,51,.75); }
.hv-steps .ok { color: var(--sl-sand-50); }
.hv-steps .ok::before { background: #7fc9a0; box-shadow: 0 0 8px rgba(127,201,160,.55); }

.hv-out-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 -14px; padding: 9px 14px 10px; border-top: 1px solid #262524; background: rgba(0,0,0,.18); font-size: 12px; color: var(--text-muted); }
.hv-out-foot b { font-weight: 500; color: var(--sl-sand-50); white-space: nowrap; }
.hv-out-foot b.ok { color: #7fc9a0; font-size: 14px; }
.hv-out-foot b.mono { font-weight: 400; font-size: 11.5px; }

/* Key features headline: sits over the panel column; tabs start level with it */
.ftabs { grid-template-areas: "list title" "list stage"; row-gap: clamp(20px, 2.2vw, 32px); }
.ftabs-list { grid-area: list; }
.ftabs-title { grid-area: title; margin: 0; font-size: var(--fs-h2); font-weight: 400; line-height: var(--lh-heading); letter-spacing: -.01em; color: var(--sl-sand-50); }
.ftabs-stage { grid-area: stage; }
@media (max-width: 1025.98px) {
  .ftabs { grid-template-areas: "title" "list"; }
  .ftabs-title { margin-bottom: clamp(20px, 3vw, 28px); }
}

/* ==========================================================================
   Call feedback pass (hero · story · use cases · quote · FAQ · CTA)
   ========================================================================== */

/* --- hero: symmetric columns so the core sits dead-centre; 4 teams, 4 outcomes --- */
@media (min-width: 1026px) {
  .hero-visual { grid-template-columns: minmax(0, 1fr) minmax(56px, 96px) minmax(340px, 420px) minmax(56px, 96px) minmax(0, 1fr); }
  .hv-left { justify-self: start; width: min(100%, 250px); gap: 14px; }
  .hv-right { justify-self: end; width: 100%; max-width: 340px; gap: 12px; }
  .hv-card { padding: 14px 18px; }
}
.hv-kicker { display: flex; align-items: center; gap: 6px; }
.hv-kicker .ph { font-size: 15px; color: var(--accent); }
.hv-rows em.hv-on { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sl-sand-50); padding: 3px 9px; border: 1px solid #34322f; border-radius: 999px; }
.hv-rows em.hv-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.hv-rows li { padding: 10px 0; }
.hv-out-foot b.block { color: var(--accent); }
@media (max-width: 1025.98px) { .hv-left { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 719.98px) { .hv-left { grid-template-columns: 1fr; } }
/* ungoverned traffic is neutral grey; it turns orange only once it has passed through Custodian */
.hv-wires path.wire-in { stroke: #6b6864; filter: none; }
.hv-wires .arrow.wire-in { fill: #6b6864; }
.hv-wires rect.node-in { fill: var(--sl-grey-200); filter: drop-shadow(0 0 4px rgba(235,231,226,.35)); }

/* --- story: attribution --- */
.attr-src .ph-anthropic, .attr-src .ph-amazon-logo { font-size: 20px; }
.attr-src li { transition: border-color .4s, background-color .4s, box-shadow .4s; }
.attr-src li.lit { border-color: rgba(228,75,51,.6); background: rgba(228,75,51,.06); box-shadow: 0 0 16px rgba(228,75,51,.14); }
.attr-tokens dt { display: inline-flex; align-items: center; gap: 8px; }
.attr-tokens dt .ph { font-size: 18px; color: var(--accent); }
.attr-map div { padding: 11px 0; }

/* --- story: budget escalation (fills with scroll, thresholds fire in order) --- */
.esc { padding-bottom: 18px; border-bottom: 1px solid #262524; }
.esc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.esc-head small { font-size: 14px; color: var(--text-muted); }
.esc-head .ctl-val { min-width: 0; font-size: 15px; color: var(--text-muted); }
.esc-amt { font-weight: 400; color: var(--sl-sand-50); }
.esc-track { --t: 1; position: relative; }
.esc-bar { position: relative; height: 22px; background: #26241f; -webkit-mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 5px); mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 5px); }
.esc-mark { position: absolute; left: var(--at); top: -12px; bottom: -4px; width: 1.5px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, #6b6864 0 3px, transparent 3px 5px); transition: background .3s; }
.esc-mark::before { content: ""; position: absolute; left: 50%; top: -3px; transform: translateX(-50%); border: 5px solid transparent; border-top: 6px solid #6b6864; border-bottom: 0; transition: border-color .3s; }
.esc-mark.lit { background: repeating-linear-gradient(180deg, var(--sl-sand-50) 0 3px, transparent 3px 5px); }
.esc-mark.lit::before { border-top-color: var(--accent); filter: drop-shadow(0 0 4px rgba(228,75,51,.8)); }
.esc-mark-end { transform: translateX(-100%); }
.esc-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--t) * 82%); background: linear-gradient(90deg, #7e291c, var(--accent) 70%, #ff593f); }
.esc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.esc-steps li { display: grid; gap: 4px; justify-items: start; padding: 10px; border-radius: 9px; border: 1px solid #2c2b29; background: #151514; color: var(--text-muted); transition: border-color .35s, background-color .35s, color .35s, box-shadow .35s; min-width: 0; }
.esc-steps .ph { font-size: 17px; }
.esc-steps b { font-weight: 400; font-size: 11px; letter-spacing: .06em; }
.esc-steps span { font-size: 13px; line-height: 1.25; }
.esc-steps li.lit { color: var(--sl-sand-50); border-color: rgba(228,75,51,.55); background: rgba(228,75,51,.07); box-shadow: 0 0 16px rgba(228,75,51,.12); }
.esc-steps li.lit .ph, .esc-steps li.lit b { color: var(--accent); }
.esc-steps li.next { border-style: dashed; }
.esc-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12px; color: var(--sl-grey-200); }
.esc-note .ph { color: var(--accent); font-size: 14px; }
.ctl-compact li { padding: 16px 0; }
.ctl-compact li:first-child { padding-top: 18px; }
@media (max-width: 719.98px) {
  .esc-steps { grid-template-columns: 1fr 1fr; }
  .esc-head { flex-direction: column; gap: 4px; }
}

/* --- story: Cloud Custodian principles around the logo (deliberately unconnected) --- */
.cc-orbit { position: relative; flex: 1; display: grid; place-items: center; min-height: 250px; }
.cc-orbit::before, .cc-orbit::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed #3a3936; transform: translate(-50%, -50%); pointer-events: none; }
.cc-orbit::before { width: 210px; height: 210px; animation: cc-spin 60s linear infinite; }
.cc-orbit::after { width: 320px; height: 320px; border-color: #2a2927; animation: cc-spin 90s linear infinite reverse; }
@keyframes cc-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cc-core { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 22px; border-radius: 16px; background: radial-gradient(120% 100% at 50% 0%, rgba(228,75,51,.14), #121211 70%); border: 1px solid rgba(228,75,51,.6); box-shadow: 0 0 36px rgba(228,75,51,.2); }
.cc-core img { width: 52px; height: 52px; }
.cc-core strong { font-size: 17px; font-weight: 500; color: var(--sl-sand-50); }
.cc-core .mono { font-size: 11px; color: var(--text-muted); }
.cc-principles { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0 200px; pointer-events: none; }
.cc-principles li { display: flex; align-items: center; gap: 10px; align-self: start; padding: 10px 12px; border-radius: 10px; border: 1px solid #2c2b29; background: #161615; max-width: 230px; }
.cc-principles li:nth-child(2n) { justify-self: end; }
.cc-principles li:nth-child(n+3) { align-self: end; }
.cc-principles .ph { font-size: 20px; color: var(--accent); flex: 0 0 auto; }
.cc-principles strong { display: block; font-size: 14px; font-weight: 500; color: var(--sl-sand-50); line-height: 1.2; }
.cc-principles span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
html.js .cc-principles li { opacity: 0; transform: scale(.94); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .in .cc-principles li { opacity: 1; transform: none; }
html.js .in .cc-principles li:nth-child(1) { transition-delay: .3s } html.js .in .cc-principles li:nth-child(2) { transition-delay: .45s }
html.js .in .cc-principles li:nth-child(3) { transition-delay: .6s } html.js .in .cc-principles li:nth-child(4) { transition-delay: .75s }
.cc-principles li.lit { border-color: rgba(228,75,51,.55); box-shadow: 0 0 16px rgba(228,75,51,.14); }
@media (max-width: 719.98px) {
  .cc-orbit { min-height: 0; gap: 12px; }
  .cc-orbit::before, .cc-orbit::after { display: none; }
  .cc-principles { position: static; grid-template-columns: 1fr; grid-template-rows: none; gap: 8px; }
  .cc-principles li { max-width: none; justify-self: stretch !important; }
}

/* --- story panels drift with scroll (JS sets --sp from -1 to 1) --- */
html.js .story-media { transform: translateY(calc(var(--sp, 0) * 28px)); will-change: transform; }
@media (max-width: 1025.98px) { html.js .story-media { transform: none; } }

/* --- key feature 02: developer moment (terminal + Slack approval) --- */
.devmsg { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin-top: 22px; }
.dm-term { background: #0b0b0a; border: 1px solid #2c2b29; border-radius: 10px; padding: 0 12px 12px; font-size: 11.5px; line-height: 1.55; color: var(--sl-grey-200); min-width: 0; }
.dm-term p { margin: 0 0 6px; }
.dm-bar { display: flex; align-items: center; gap: 5px; margin: 0 -12px 10px !important; padding: 8px 12px; border-bottom: 1px solid #1f1e1d; color: var(--text-faint); font-size: 10.5px; }
.dm-bar i { width: 7px; height: 7px; border-radius: 50%; background: #34322f; }
.dm-bar span { margin-left: 6px; }
.dm-p { color: var(--accent); margin-right: 6px; }
.dm-warn { display: flex; gap: 6px; color: var(--sl-coral); }
.dm-warn .ph { flex: 0 0 auto; margin-top: 3px; font-size: 12px; }
.dm-dim { color: var(--text-muted); }
.dm-slack { background: #151514; border: 1px solid #2c2b29; border-radius: 10px; padding: 12px; font-size: 12.5px; color: var(--sl-grey-200); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dm-app { display: flex; align-items: center; gap: 7px; margin: 0; }
.dm-app b { font-weight: 600; color: var(--sl-sand-50); font-size: 13px; }
.dm-app em { font-style: normal; font-size: 9.5px; padding: 1px 5px; border-radius: 3px; background: #2c2b29; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.dm-text { margin: 0; line-height: 1.4; }
.dm-text b { font-weight: 500; color: var(--sl-sand-50); }
.dm-btns { display: flex; gap: 8px; margin-top: auto; }
.dm-btns span { padding: 5px 12px; border-radius: 6px; border: 1px solid #3a3936; font-size: 12px; color: var(--sl-sand-50); }
.dm-btns .ok { background: var(--accent); border-color: var(--accent); color: var(--sl-grey-900); font-weight: 500; }
html.js .devmsg > * { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .in .devmsg > * { opacity: 1; transform: none; }
html.js .in .devmsg > :nth-child(1) { transition-delay: .5s } html.js .in .devmsg > :nth-child(2) { transition-delay: 1s }
@media (max-width: 719.98px) { .devmsg { grid-template-columns: 1fr; } }

/* --- use case: budget enforcement flowchart --- */
.fl { display: grid; justify-items: center; gap: 18px; }
.fl > li { position: relative; }
.fl > li + li::before { content: ""; position: absolute; left: 50%; top: -18px; height: 18px; width: 1px; background: #3a3936; }
.fl-node { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; border: 1px solid #2c2b29; background: #171716; font-size: 12.5px; color: var(--sl-sand-50); transition: border-color .35s, background-color .35s, box-shadow .35s, opacity .35s; }
.fl-node .ph { font-size: 15px; color: var(--text-muted); flex: 0 0 auto; }
.fl-node b { font-weight: 500; color: var(--accent); }
.fl-trigger { border-color: rgba(228,75,51,.55); }
.fl-trigger .ph { color: var(--accent); }
.fl-q { padding: 7px 12px; border: 1px dashed #4a4846; border-radius: 999px; font-size: 12px; color: var(--sl-grey-200); background: #121211; }
.fl-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; padding-top: 14px; }
.fl-branches::after { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 1px; background: #3a3936; }
.fl-branch { position: relative; display: grid; justify-items: center; gap: 10px; align-content: start; }
.fl-branch::before { content: ""; position: absolute; top: -14px; left: 50%; height: 14px; width: 1px; background: #3a3936; }
.fl-edge { font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.fl-branch .fl-node + .fl-node { position: relative; }
.fl-branch .fl-node + .fl-node::before { content: ""; position: absolute; left: 50%; top: -11px; height: 10px; width: 1px; background: #3a3936; }
.fl-soft { opacity: .75; }
.fl-ok { border-color: rgba(127,201,160,.45); }
.fl-ok .ph { color: #7fc9a0; }
.fl-sep { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.fl-sep::before { display: none; }
.fl-sep span { order: 1; }
.fl-sep::after { content: ""; order: 2; flex: 1; border-top: 1px dashed #3a3936; }
.fl > .fl-sep + li::before { display: none; }
.fl-cap { border-color: #4a352f; }
.fl-cap .ph { color: var(--accent); }
html.js .fl .fl-node, html.js .fl .fl-q { opacity: .4; }
html.js .fl .lit { opacity: 1; }
html.js .fl .fl-node.lit { border-color: rgba(228,75,51,.6); box-shadow: 0 0 14px rgba(228,75,51,.14); }
html.js .fl .fl-ok.lit { border-color: rgba(127,201,160,.6); box-shadow: 0 0 14px rgba(127,201,160,.12); }

/* --- customer quote --- */
.quote { padding-top: clamp(24px, 3vw, 48px); flex-direction: column; }
.quote-card { position: relative; max-width: 980px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px); text-align: center; border: 1px solid #2c2b29; border-radius: 16px; background: linear-gradient(180deg, #121211, #0d0d0c); }
.quote-mark { font-size: 34px; color: var(--accent); margin-bottom: 12px; }
.quote-card blockquote { margin: 0 0 24px; }
.quote-card blockquote p { font-size: clamp(19px, .9rem + .75vw, 26px); line-height: 1.4; text-wrap: pretty; color: var(--sl-sand-50); margin: 0; }
.quote-card figcaption { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.quote-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #272727; border: 1px solid #3a3936; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--sl-sand-50); }
img.quote-avatar { display: block; object-fit: cover; }
.quote-card figcaption strong { display: block; font-weight: 500; color: var(--sl-sand-50); }
.quote-card figcaption span span { display: block; font-size: 14px; color: var(--text-muted); }

/* --- FAQ --- */
.faq { padding-top: clamp(56px, 7vw, 120px); flex-direction: column; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: start; max-width: 1380px; }
.faq-head h2 { margin: 0; position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
.faq-list { border-top: 1px solid var(--sl-grey-750); }
.faq-item { border-bottom: 1px solid var(--sl-grey-750); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1rem + .3vw, 21px); color: var(--sl-sand-50); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq-item summary .ph { font-size: 18px; color: var(--accent); transition: transform .3s var(--ease); }
.faq-item[open] summary .ph { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; max-width: 64ch; font-size: 17px; line-height: 1.5; color: var(--sl-grey-200); }
@media (max-width: 1025.98px) { .faq-wrap { grid-template-columns: 1fr; } .faq-head h2 { position: static; } }

/* --- CTA with product preview --- */
.cta-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1380px; margin: 0 auto; padding: clamp(24px, 4vw, 56px); border-radius: 18px; border: 1px solid var(--sl-grey-700); background: radial-gradient(60% 90% at 100% 50%, rgba(228,75,51,.14), transparent 70%), linear-gradient(180deg, #121211, #0c0c0b); overflow: hidden; }
.cta-copy h2 { margin: 0 0 16px; }
.cta-copy .lead { font-size: clamp(18px, 1rem + .4vw, 22px); color: var(--sl-grey-200); margin: 0 0 28px; }
.cta-shot { border-radius: 12px; border: 1px solid #2c2b29; background: #0f0f0e; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.02); overflow: hidden; min-width: 0; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #1f1e1d; background: #131312; }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #34322f; }
.shot-bar span { margin-left: 8px; font-size: 11px; color: var(--text-faint); }
.shot-body { padding: 16px; display: grid; gap: 12px; }
.shot-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shot-kpis div { padding: 12px; border-radius: 9px; border: 1px solid #242321; background: #141413; min-width: 0; }
.shot-kpis span { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.shot-kpis b { font-weight: 400; font-size: clamp(16px, 1.4vw, 22px); color: var(--sl-sand-50); }
.shot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.shot-card { padding: 12px; border-radius: 9px; border: 1px solid #242321; background: #141413; min-width: 0; }
.shot-cap { margin: 0 0 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.shot-rows { display: grid; gap: 9px; }
.shot-rows li { display: grid; grid-template-columns: 78px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 11px; color: var(--sl-grey-200); }
.shot-rows .ticks { height: 12px; min-width: 0; --period: 4px; --tick: 2.5px; --rest: #26241f; }
.shot-rows b { font-weight: 400; text-align: right; color: var(--sl-sand-50); }
.shot-log { display: grid; gap: 8px; }
.shot-log li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sl-sand-50); }
.shot-log .ph { color: var(--accent); font-size: 14px; flex: 0 0 auto; }
.shot-log span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-log em { font-style: normal; font-size: 10.5px; color: var(--text-faint); }
@media (max-width: 1025.98px) { .cta-card { grid-template-columns: 1fr; } }
@media (max-width: 719.98px) { .shot-kpis, .shot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .cc-orbit::before, .cc-orbit::after { animation: none; }
  html.js .story-media { transform: none; }
  html.js .cc-principles li, html.js .devmsg > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (min-width: 720px) {
  .cc-orbit { min-height: 340px; }
  .cc-core { padding: 14px 18px; gap: 4px; }
  .cc-core img { width: 44px; height: 44px; }
  .cc-orbit::before { width: 190px; height: 190px; }
  .cc-orbit::after { width: 300px; height: 300px; }
}

/* attribution: fixed-height source cards so the bracket arms land on each card's centre */
@media (min-width: 720px) {
  .attr-src li { height: 60px; padding-block: 0; box-sizing: border-box; }
  .attr-join { align-self: center; height: 200px; min-height: 0; }   /* 3 × 60px cards + 2 × 10px gaps */
  .attr-join i:nth-child(1) { top: 30px; height: 70px; }
  .attr-join i:nth-child(2) { top: 100px; }
  .attr-join i:nth-child(3) { top: auto; bottom: 30px; height: 70px; }
}
.attr-src .ph { font-size: 22px; width: 24px; }
.attr-src .ph-anthropic { font-size: 18px; }
.attr-src .ph-amazon-logo { font-size: 22px; }
.attr-map .attr-tokens dt { display: inline-flex; align-items: center; gap: 10px; }
.attr-map .attr-tokens dt .ph { font-size: 20px; }
.attr-map dd { font-variant-numeric: tabular-nums; }
.esc-steps, .cc-principles, .fl, .hv-steps, .shot-rows, .shot-log { padding-left: 0; list-style: none; }

/* attribution: provider column spans the table's full height (first/last cards flush with its top/bottom),
   and the spend chip sits exactly over the table so its connector drops straight into it */
@media (min-width: 720px) {
  .attr { align-items: stretch; }
  .attr-src { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
  .attr-join { align-self: stretch; height: auto; }
  .attr-join i:nth-child(1) { top: 30px; height: calc(50% - 30px); }
  .attr-join i:nth-child(2) { top: 50%; }
  .attr-join i:nth-child(3) { top: auto; bottom: 30px; height: calc(50% - 30px); }
}
@media (min-width: 1026px) {
  /* panel padding 24px + 1px border; attr columns 178fr / 90px / 280fr */
  .chip-spend { width: calc((100% - 50px - 90px) * 280 / 458); margin: 0 25px 58px auto; box-sizing: border-box; }
  .chip-spend > div { flex: 1; min-width: 0; }
  .chip-spend .ticks { width: 100%; }
  html.js .chip-spend.reveal { transform: translateY(18px); }
  html.js .chip-spend.reveal.in, .chip-spend { transform: none; }
}

/* --- policy controls: routing + runaway rows share the budget block's language --- */
.ctl2 { display: grid; padding: 0; list-style: none; }
.ctl2 li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 84px; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid #262524; }
.ctl2 li:last-child { border-bottom: 0; padding-bottom: 0; }
.ctl2-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ctl2-ico { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #151514; border: 1px solid #2c2b29; }
.ctl2-ico .ph { font-size: 17px; color: var(--accent); }
.ctl2-name { display: block; font-size: 16px; color: var(--sl-sand-50); line-height: 1.2; }
.ctl2-id small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-muted); line-height: 1.3; }
.ctl2-viz { display: flex; align-items: center; min-width: 0; }
.ctl2-pill { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 84px; padding: 5px 0; border-radius: 999px; border: 1px solid rgba(228,75,51,.55); background: rgba(228,75,51,.08); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ctl2-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* routing: frontier chip dims, a packet travels to the efficient chip */
.rm-chip { flex: 0 0 auto; padding: 4px 9px; border-radius: 6px; border: 1px solid #2c2b29; background: #151514; font-family: var(--font-mono); font-size: 11px; color: var(--sl-sand-50); transition: color .4s, border-color .4s, opacity .4s; }
.rm-to { border-color: rgba(228,75,51,.55); background: rgba(228,75,51,.08); }
.rm-wire { position: relative; flex: 1; height: 1.5px; margin: 0 8px; background: linear-gradient(90deg, #3a3936, var(--accent)); min-width: 24px; }
.rm-wire::after { content: ""; position: absolute; right: -1px; top: 50%; width: 6px; height: 6px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.rm-wire i { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; border-radius: 1.5px; background: #ff8a75; box-shadow: 0 0 8px rgba(255,89,63,.9); transform: translate(-50%, -50%); opacity: 0; }
.in .rm-wire i { animation: rm-pkt 1.8s var(--ease) .6s infinite; }
@keyframes rm-pkt { 0% { left: 0; opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } 100% { left: 100%; opacity: 0 } }
html.js .rm-from { opacity: 1; }
html.js .in .rm-from { opacity: .45; transition-delay: .5s; }

/* runaway: tool-call meter fills to the limit, then the run pauses */
.ram-bar { position: relative; flex: 1; height: 14px; background: #26241f; -webkit-mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 5px); mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 5px); }
.ram-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #7e291c, var(--accent)); transition: width 1.4s var(--ease) .4s; }
.in .ram-bar i, html:not(.js) .ram-bar i { width: 100%; }
.ram-stop { flex: 0 0 auto; margin-left: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--accent); background: #111; transform: scale(.6); opacity: 0; transition: transform .4s cubic-bezier(.3,1.6,.4,1) 1.8s, opacity .3s ease 1.8s; }
.ram-stop .ph { font-size: 11px; color: var(--accent); }
.in .ram-stop, html:not(.js) .ram-stop { transform: none; opacity: 1; box-shadow: 0 0 0 5px rgba(228,75,51,.12), 0 0 14px rgba(228,75,51,.5); }

@media (max-width: 719.98px) {
  .ctl2 li { grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; }
  .ctl2-viz { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-wire i { animation: none !important; }
  .ram-bar i, .ram-stop { transition: none !important; }
}

/* story copy sits on the graphic's vertical centre */
@media (min-width: 1026px) {
  .story-row, .story-row-flip { align-items: center; }
  .story-row-flip .story-copy { padding-top: 0; }
}

/* Key features headline: top left, above the tab list; list and panel start level below it */
.ftabs { grid-template-areas: "title title" "list stage"; }
.ftabs-title { justify-self: start; }
@media (max-width: 1025.98px) { .ftabs { grid-template-areas: "title" "list"; } }
/* section headlines (Key use cases) match the Key features headline */
.section-title { margin: 0 0 clamp(20px, 2.2vw, 32px); font-size: var(--fs-h2); font-weight: 400; line-height: var(--lh-heading); letter-spacing: -.01em; color: var(--sl-sand-50); }
.use-cases { padding-top: clamp(56px, 7vw, 120px); }
/* FAQ → CTA: sections' padding was stacking into a ~270px gap */
.faq { padding-bottom: 0; }
.faq + .demo { padding-top: clamp(48px, 5vw, 80px); }
.faq-wrap { row-gap: 0; } @media (max-width: 1025.98px) { .faq-wrap { row-gap: 24px; } }

/* ==========================================================================
   Hero boot sequence: Custodian starts OFF (grey, spend near cap), switches on,
   turns each control on, then wires out to outcomes while spend falls.
   JS drives .tc-on on .hero-visual, .on on rows and outcome cards.
   Without JS (or with reduced motion) the final "on" state shows.
   ========================================================================== */
.hv-core-head { gap: 12px; }
.hv-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: 999px; border: 1px solid rgba(228,75,51,.5); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); transition: color .5s, border-color .5s; }
.hv-status .hv-live { width: 7px; height: 7px; margin: 0; }
.hv-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0 0; font-size: 13px; }
.hv-meta .hv-cap { margin: 0; }
.hv-saved { color: #7fc9a0; transition: color .5s; }
.hv-saved b { font-weight: 500; font-variant-numeric: tabular-nums; }
.hv-amount { font-variant-numeric: tabular-nums; transition: color .6s; }
.hero-visual .hv-progress span { transform: none !important; transition: background .6s, box-shadow .6s; }

html.js .hero-visual .hv-core { transition: border-color .8s var(--ease), box-shadow .8s var(--ease); }
html.js .hero-visual::before { transition: opacity 1s var(--ease); }
html.js .hero-visual:not(.tc-on)::before { opacity: .25; }
html.js .hero-visual:not(.tc-on) .hv-core { border-color: #3a3936; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
html.js .hero-visual:not(.tc-on) .hv-mark { filter: grayscale(1) brightness(.7); }
.hv-mark { transition: filter .8s; }
html.js .hero-visual:not(.tc-on) .hv-status { color: var(--text-muted); border-color: #3a3936; }
html.js .hero-visual:not(.tc-on) .hv-live { background: #5a5856; box-shadow: none; animation: none; }
html.js .hero-visual:not(.tc-on) .hv-saved { color: var(--accent); }
html.js .hero-visual:not(.tc-on) .hv-progress span { background: linear-gradient(90deg, #7e291c, #ff593f); box-shadow: 0 0 14px rgba(255,89,63,.8); }

/* control rows: off → on one at a time */
.hv-rows li > .ph:first-child { transition: color .4s; }
.hv-rows em.hv-on { transition: color .4s, border-color .4s, background-color .4s; }
.hv-rows em.hv-on::before { transition: background .4s, box-shadow .4s; }
html.js .hero-visual .hv-rows li:not(.on) > .ph:first-child { color: var(--text-faint); }
html.js .hero-visual .hv-rows li:not(.on) > span { color: var(--text-muted); }
html.js .hero-visual .hv-rows li:not(.on) em.hv-on { color: var(--text-faint); }
html.js .hero-visual .hv-rows li:not(.on) em.hv-on::before { background: #4a4846; box-shadow: none; }
html.js .hero-visual .hv-rows li.on em.hv-on { border-color: rgba(228,75,51,.5); background: rgba(228,75,51,.08); }

/* outcome cards wait (dimmed) until their wire arrives, then play their steps */
html.js .hero-visual .hv-out { transition: opacity .5s var(--ease), border-color .5s; }
html.js .hero-visual .hv-out:not(.on) { opacity: .28; }
html.js .hero-visual .hv-out.on { border-color: #3a3936; }
html.js .in .hv-out:not(.on) .step { opacity: 0; transform: translateY(4px); }
html.js .in .hv-out:not(.on) .hv-swap s { color: var(--sl-sand-50); }
html.js .in .hv-out:not(.on) .hv-swap s::after { transform: scaleX(0); }
/* Key features → Key use cases → FAQ: stop section padding stacking into ~250px gaps */
.features { padding-bottom: clamp(32px, 4vw, 64px); }
.use-cases { padding-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(32px, 4vw, 64px); }
.use-cases + .faq { padding-top: clamp(32px, 4vw, 64px); }
.hero-copy .lead { max-width: 840px; font-size: clamp(18px, 1rem + .45vw, 22px); line-height: 1.4; color: var(--sl-grey-200); }
.cc-core img { filter: grayscale(1); }
/* hero: pull the diagram up so more of it sits above the fold */
.hero { padding-top: calc(88px + clamp(28px, 3.5vw, 56px)); }
.hero-copy { margin-bottom: clamp(24px, 2.5vw, 40px); }
.hero-copy .lead { margin-bottom: 24px; }
.hero-visual { padding-top: clamp(16px, 2vw, 28px); }
@media (min-width: 1026px) {
  .hv-right { gap: 10px; }
  .hv-right .hv-label { margin-bottom: 0; }
  .hv-out { padding-top: 10px; }
  .hv-out-head { margin-bottom: 5px; }
  .hv-out-subject { margin-bottom: 7px; }
  .hv-steps { gap: 5px; margin-bottom: 9px; }
  .hv-out .hv-swap { margin-bottom: 9px; }
  .hv-out-foot { padding: 7px 14px 8px; }
}

/* ==========================================================================
   Key features: product screenshot with floating diagram(s) on top
   ========================================================================== */
.ui-stage { position: relative; min-height: 460px; padding: 56px 0 0 64px; isolation: isolate; }
.ui-shot { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid #2c2b29; background: #f6f5f3; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.ui-shot img { display: block; width: 100%; height: auto; }
/* dim the product UI so the floating diagrams read first */
.ui-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(8,9,10,.55) 0%, rgba(8,9,10,.18) 45%, rgba(8,9,10,.05) 100%); }

.ui-float { position: absolute; z-index: 2; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03); }
.ui-float-flow { left: 0; top: 0; width: min(58%, 380px); padding: 14px 16px 16px; background: linear-gradient(180deg, #161615, #0f0f0e); border: 1px solid #2c2b29; }
.ui-float-flow .viz-head { margin-bottom: 12px; }
.ui-float-slack { right: -12px; bottom: -22px; width: min(46%, 300px); }

.wf { display: grid; gap: 0; padding: 0; list-style: none; }
.wf li { position: relative; display: grid; grid-template-columns: 38px 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; }
.wf li + li::before { content: ""; position: absolute; left: calc(38px + 10px + 14.5px); top: -8px; height: 16px; width: 1px; background: #3a3936; }
.wf-at { font-size: 11px; color: var(--text-muted); text-align: right; }
.wf-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #1a1a19; border: 1px solid #2c2b29; }
.wf-ico .ph { font-size: 15px; color: var(--sl-sand-50); }
.wf strong { display: block; font-size: 13.5px; font-weight: 500; color: var(--sl-sand-50); line-height: 1.2; }
.wf small { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.3; margin-top: 2px; }
.wf li:nth-child(2) .wf-ico { border-color: #7e291c; background: rgba(228,75,51,.1); }
.wf li:nth-child(2) .ph { color: var(--accent-hover); }
.wf li.hot .wf-ico { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(228,75,51,.45); }
.wf li.hot .ph { color: var(--sl-grey-900); }
.wf li.hot .wf-at { color: var(--accent); }

/* entrance: screenshot settles, then the diagram and Slack card float in; steps light in order */
html.js .ui-shot { opacity: 0; transform: scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease); }
html.js .ui-float { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .7s var(--ease); }
html.js .in .ui-shot, html.js .in .ui-float { opacity: 1; transform: none; }
html.js .in .ui-float-flow { transition-delay: .25s; }
html.js .in .ui-float-slack { transition-delay: 1.3s; }
html.js .wf li { opacity: .35; transition: opacity .4s var(--ease); }
html.js .in .wf li { opacity: 1; }
html.js .in .wf li:nth-child(1) { transition-delay: .55s } html.js .in .wf li:nth-child(2) { transition-delay: .8s } html.js .in .wf li:nth-child(3) { transition-delay: 1.05s }
.in .ui-float-flow { animation: ui-bob 6s ease-in-out 1.2s infinite; }
@keyframes ui-bob { 50% { translate: 0 -4px; } }

@media (max-width: 719.98px) {
  .ui-stage { min-height: 0; padding: 0; display: grid; gap: 12px; }
  .ui-float { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; }
  .ui-float-flow { margin: -48px 12px 0; }
  .ui-shot { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .ui-shot, .ui-float, .wf li { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}
@media (max-width: 1025.98px) { .ftabs-stage { grid-area: auto; } }

/* --- 02 Workflows: Slack request top-left, budget workflow bottom-right --- */
.ui-stage--p2 .ui-float-slack { left: 0; top: 0; right: auto; bottom: auto; }
.ui-stage--p2 .ui-float-flow { left: auto; top: auto; right: -12px; bottom: -22px; }

/* --- screenshot crops: same product screen, framed differently per feature --- */
.ui-shot.shot-p1 img, .ui-shot.shot-p3 img, .ui-shot.shot-p4 img { aspect-ratio: 16 / 10.5; object-fit: cover; }
.ui-shot.shot-p1 img { object-position: 100% 0; }
.ui-shot.shot-p3 img { object-position: 0 0; }
.ui-shot.shot-p4 img { object-position: 60% 100%; }
.ui-shot.shot-p5 { opacity: .85; }
.ui-shot.shot-p5::after { background: rgba(8,9,10,.5); }

/* shared look for floats that aren't already .viz panels */
.ui-float-p3a, .ui-float-p3b, .ui-float-p4a, .ui-float-p4b { background: linear-gradient(180deg, #161615, #0f0f0e); border: 1px solid #2c2b29; padding: 14px; }
.ui-float > .viz { margin: 0; box-shadow: none; }

/* 01: screenshot top-right, comparison table floats bottom-left */
.ui-stage--p1 { padding: 0 0 120px 72px; }
.ui-float-p1 { left: 0; bottom: -8px; width: min(84%, 560px); }
.ui-float-p1 .cmp-viz { min-height: 0; }

/* 03: form bottom-left, policy.yml top-right, sync chip between */
.ui-stage--p3 { padding: 36px 56px 150px 0; }
.ui-float-p3a { left: 18px; bottom: -8px; width: min(40%, 250px); }
.ui-float-p3a .pol-ui { background: none; border: 0; padding: 0; }
.ui-float-p3b { right: 0; top: 0; width: min(56%, 360px); }
.ui-float-p3b .pol-code { background: none; border: 0; padding: 0; }
.ui-sync { left: 44%; bottom: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #151514; border: 1px solid rgba(228,75,51,.5); font-size: 11px; color: var(--sl-sand-50); }
.ui-sync .ph { color: var(--accent); font-size: 13px; }
html.js .in .ui-float-p3b { transition-delay: .25s; } html.js .in .ui-float-p3a { transition-delay: .5s; } html.js .in .ui-sync { transition-delay: .9s; }

/* 04: screenshot bottom-left, workloads top-right, guardrails bottom-left */
.ui-stage--p4 { padding: 96px 64px 0 0; }
.ui-float-p4a { right: 0; top: 0; width: min(72%, 470px); }
.ui-float-p4a .viz-head { margin-bottom: 12px; }
.ui-float-p4b { left: -8px; bottom: -24px; width: min(66%, 420px); }
.ui-float-p4b .wl-guard { margin: 0; padding: 0; }
html.js .in .ui-float-p4a { transition-delay: .25s; } html.js .in .ui-float-p4b { transition-delay: .6s; }

/* 05: dimmed screenshot centred, hub diagram floats across the middle */
.ui-stage--p5 { padding: 0 40px; display: grid; align-content: center; }
.ui-float-p5 { left: 0; right: 0; top: 50%; translate: 0 -50%; }
.ui-float-p5 .hub { min-height: 0; }

@media (max-width: 719.98px) {
  .ui-stage--p1, .ui-stage--p2, .ui-stage--p3, .ui-stage--p4, .ui-stage--p5 { padding: 0; }
  .ui-float-p1, .ui-float-p3a, .ui-float-p3b, .ui-float-p4a, .ui-float-p4b, .ui-float-p5, .ui-stage--p2 .ui-float-flow, .ui-stage--p2 .ui-float-slack { position: relative; inset: auto; width: auto; translate: none; }
  .ui-float-p1, .ui-float-p3b, .ui-float-p4a, .ui-float-p5 { margin: -48px 12px 0; }
  .ui-sync { position: relative; inset: auto; justify-self: center; }
  .ui-stage--p2 .ui-float-slack { margin: -48px 12px 0; }
  .ui-stage--p2 .ui-float-flow { margin: 0; }
}
.ui-float-p3b .ui-sync { position: static; align-self: flex-start; margin-top: 12px; }
.ui-stage--p3 { padding-bottom: 120px; }
.ui-stage--p4 { padding-bottom: 48px; }
.ui-float-p4b { bottom: 0; }

/* 01 Attribution and Policy: the overview widget on its own, no product screenshot */
.ui-stage--solo { padding: 0; min-height: 460px; display: grid; align-items: center; }
.ui-stage--solo .ui-float-p1 { position: relative; left: auto; bottom: auto; width: 100%; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 60px rgba(228,75,51,.08); }
@media (max-width: 719.98px) { .ui-stage--solo { min-height: 0; } .ui-stage--solo .ui-float-p1 { margin: 0; } }

/* CTA: real product overview screenshot, cropped to its top half and faded out */
.cta-shot--img { position: relative; margin: 0; background: #f6f5f3; }
.cta-shot--img img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 1180; object-fit: cover; object-position: top left; }
.cta-shot--img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(180deg, rgba(12,12,11,0), rgba(12,12,11,.9)); pointer-events: none; }
/* Flexible Policy: room for the longer policy, wrap the message line instead of clipping it */
.ui-float-p3b { width: min(64%, 450px); }
.ui-float-p3b .snippet { white-space: pre-wrap; overflow-wrap: anywhere; }
/* CTA screenshot: soften the bright light UI against the dark page */
.cta-shot--img img { filter: brightness(.82) saturate(.95); }
.cta-shot--img::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(160deg, rgba(8,9,10,.28), rgba(8,9,10,.12) 55%, rgba(228,75,51,.06)); }
.cta-shot--img::after { z-index: 2; }

/* CTA: centred copy, product screenshot underneath */
.cta-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: clamp(32px, 4vw, 56px); padding-bottom: 0; }
.cta-copy { max-width: 760px; }
.cta-copy .lead { margin-inline: auto; }
.cta-shot--img { width: 100%; max-width: 1080px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.cta-shot--img img { aspect-ratio: 2000 / 1000; }
/* CTA screenshot tint: a simple top-to-bottom gradient, 5% → 25% */
.cta-shot--img img { filter: none; }
.cta-shot--img::before { background: linear-gradient(180deg, rgba(8,9,10,.05), rgba(8,9,10,.25)); }
/* order is now use cases → CTA → FAQ → footer */
.use-cases + .demo { padding-top: clamp(32px, 4vw, 64px); }
.demo { padding-bottom: clamp(32px, 4vw, 64px); }
.demo + .faq { padding-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(56px, 6vw, 96px); }

/* ==========================================================================
   Mobile pass (≤ 719px): shorter hero, clearer flow, tidier panels
   ========================================================================== */
.ra-steps { margin: 0; padding: 0; list-style: none; }
@media (max-width: 719.98px) {
  /* hero: teams as a 2×2 grid, short connectors show the flow teams → Custodian → outcomes */
  .hero-visual { gap: 26px; }
  .hv-left { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hv-left .hv-label { grid-column: 1 / -1; }
  .hv-card { gap: 10px; padding: 12px; }
  .hv-card .ph { font-size: 20px; }
  .hv-card strong { font-size: 14.5px; }
  .hv-card .mono { font-size: 11.5px; }
  .hv-core::before, .hv-core::after { content: ""; position: absolute; left: 50%; height: 26px; width: 0; transform: translateX(-50%); }
  .hv-core::before { top: -27px; border-left: 2px dashed #6b6864; }
  .hv-core::after { bottom: -28px; border-left: 2px solid var(--accent); box-shadow: 0 0 6px rgba(228,75,51,.6); }
  /* outcomes: one swipeable row instead of four stacked cards */
  .hv-right {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; align-items: stretch;
  }
  .hv-right::-webkit-scrollbar { display: none; }
  .hv-right .hv-label { grid-row: 1; grid-column: 1 / span 4; position: sticky; left: 0; }
  .hv-right .hv-out { grid-row: 2; scroll-snap-align: start; }

  /* Cloud Custodian panel: principles use the full panel width */
  .cc-orbit { place-items: stretch; }
  .cc-core { justify-self: center; }

  /* feature 1 dashboard: keep the three KPIs side by side */
  .shot-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .shot-kpis div { padding: 9px 8px; }
  .shot-kpis span { font-size: 10px; }
  .shot-kpis b { font-size: 14px; }

  /* viz headers: keep the title on one line, let the meta drop below */
  .viz-head { flex-wrap: wrap; row-gap: 4px; }
  .viz-head span:first-child { white-space: nowrap; }

  /* closing CTA: shorter headline block */
  .cta-copy h2 { font-size: 34px; line-height: 1.15; }
}

