/* ==========================================================================
   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 "OpenAI 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; }
.cmp-row:not(.cmp-head)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: 0; transition: opacity .4s ease; }

/* 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 { isolation: isolate; }
.viz.budget::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 { 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; } }
