/* ==========================================================================
   Stacklet AI solution pages — shared section components
   Consolidated from the Token Custodian landing page (same visual language):
   hero diagram, story rows + scroll connectors, panels, tick bars, vertical
   feature tabs, bento cards, CTA, FAQ. Page files add their own graphics.
   ========================================================================== */

@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; }
.eyebrow-brand { color: var(--text-muted); margin-right: 2px; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.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); fill animates in on reveal */
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.ticks {
  --fill: 50%; --c: var(--accent); --rest: rgba(217,217,217,.28); --period: 4px; --tick: 2px; --p: 0%;
  height: 19px; min-width: 0; flex: 1 1 auto;
  background: linear-gradient(90deg, var(--c) 0 var(--p), var(--rest) var(--p) 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));
  transition: --p 1.2s var(--ease) .2s;
}
.in .ticks, html:not(.js) .ticks { --p: var(--fill); }

/* small status pill (On / Fixed / Passed …) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; 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); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.pill.ok { color: #7fc9a0; border-color: rgba(127,201,160,.45); background: rgba(127,201,160,.07); }
.pill.mute { color: var(--text-muted); border-color: #3a3936; background: transparent; }
.pill.mute::before { box-shadow: none; background: #5a5856; }

/* code snippets (YAML / HCL highlighted by base.js) */
.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, .tok-com { color: var(--text-faint); }

.pol-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.pol-cap .ph { font-size: 14px; color: var(--accent); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: calc(154px + clamp(28px, 3.5vw, 56px)); padding-bottom: clamp(56px, 6vw, 96px); overflow: hidden; isolation: isolate; flex-direction: column; }
@media (max-width: 720px) {
  .hero { padding-top: calc(196px + clamp(20px, 4vw, 40px)); }
}
.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(24px, 2.5vw, 40px); }
.hero-copy .eyebrow { justify-content: center; margin-bottom: 18px; }
.hero-copy h1 { font-size: clamp(38px, 1.6rem + 1.7vw, 54px); max-width: 980px; margin: 0 auto 20px; line-height: 1.16; }
.hero-copy .lead { max-width: 840px; margin: 0 auto 24px; font-size: clamp(18px, 1rem + .45vw, 22px); line-height: 1.4; color: var(--sl-grey-200); }
.hero-copy .button-row { justify-content: center; }

/* hero diagram: inputs → core → outcomes */
.hero-visual {
  position: relative; display: grid; align-items: center; gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(56px, 96px) minmax(340px, 420px) minmax(56px, 96px) minmax(0, 1fr);
  background: #0d0d0c; border-radius: 10px;
  padding: clamp(16px, 2vw, 28px) clamp(20px, 3vw, 40px) clamp(24px, 3vw, 44px);
  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; justify-self: start; width: min(100%, 250px); gap: 14px; }
.hv-core { grid-column: 3; }
.hv-right { grid-column: 5; justify-self: end; width: 100%; max-width: 340px; gap: 10px; }
.hv-col { display: grid; 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-right .hv-label { margin-bottom: 0; }

.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-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)); }

.hv-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, #1a1a19, #141413); border: 1px solid #2c2b29; border-radius: 12px;
  padding: 14px 18px; 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; transition: filter .8s; }
.hv-core-title { font-size: 20px; font-weight: 500; color: var(--sl-sand-50); }
.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-live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hover); 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 { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; margin: 0 0 2px; }
.hv-kicker .ph { font-size: 15px; color: var(--accent); }
.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; font-variant-numeric: tabular-nums; }
.hv-progress { height: 12px; border-radius: 6px; background: #2a2927; overflow: hidden; }
.hv-progress span { display: block; height: 100%; width: 50%; border-radius: 6px; background: linear-gradient(90deg, #ff593f, var(--accent)); box-shadow: 0 0 12px rgba(255,89,63,.6); transition: background .6s, box-shadow .6s; }
.hv-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
.hv-saved { color: #7fc9a0; transition: color .5s; }
.hv-saved b, .hv-meta b { font-weight: 500; font-variant-numeric: tabular-nums; }
.hv-rows { display: grid; }
.hv-rows li { display: grid; grid-template-columns: 24px 1fr auto 14px; align-items: center; gap: 14px; padding: 10px 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); transition: color .4s; }
.hv-rows .ph-caret-right { font-size: 12px; color: var(--text-muted); }
.hv-rows em.hv-on { display: inline-flex; align-items: center; gap: 6px; font-style: normal; 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; transition: color .4s, border-color .4s, background-color .4s; }
.hv-rows em.hv-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); transition: background .4s, box-shadow .4s; }

/* outcome cards: head · subject · sequence · result */
.hv-out {
  position: relative; display: grid; gap: 0; overflow: hidden;
  background: linear-gradient(180deg, #1a1a19, #141413); border: 1px solid #2c2b29; border-radius: 12px;
  padding: 10px 14px 0; 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-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 5px; }
.hv-out-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.hv-out-tag .ph { font-size: 13px; color: var(--accent); }
.hv-out-head time { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }
.hv-out-subject { margin: 0 0 7px; 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-subject code { font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; }
.hv-swap { margin: 0 0 9px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.hv-swap s, .hv-swap b { position: relative; padding: 4px 9px; border-radius: 6px; border: 1px solid #2c2b29; background: #111110; font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; white-space: nowrap; text-decoration: none; color: var(--sl-sand-50); }
.hv-swap b { border-color: rgba(228,75,51,.55); background: rgba(228,75,51,.08); }
.hv-swap s { transition: color .3s ease var(--d, 0s); }
.hv-swap s::after { content: ""; position: absolute; left: 8px; right: 8px; top: 54%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease) var(--d, 0s); }
.hv-swap .ph { font-size: 13px; color: var(--text-muted); }
.hv-steps { position: relative; display: grid; gap: 5px; margin: 0 0 9px; }
.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: 7px 14px 8px; 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.block { color: var(--accent); }
.hv-out-foot b.mono { font-weight: 400; font-size: 11.5px; }

/* steps inside outcome cards play once the card's wire arrives */
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 .hv-out.on .step, html:not(.js) .hv-out .step { opacity: 1; transform: none; }
html.js .hv-out.on .hv-swap s, html:not(.js) .hv-swap s { color: var(--text-faint); }
html.js .hv-out.on .hv-swap s::after, html:not(.js) .hv-swap s::after { transform: scaleX(1); }

/* boot sequence: core starts OFF (grey), switches on, rows turn on, outcomes fire.
   base.js drives .tc-on on .hero-visual and .on on rows + outcome cards. */
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); }
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); }
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); }
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; }

@media (max-width: 1025.98px) {
  .hero-visual { grid-template-columns: 1fr; gap: 22px; }
  .hv-left, .hv-core, .hv-right { grid-column: 1; justify-self: stretch; width: auto; max-width: none; }
  .hv-wires { display: none; }
  .hv-left { grid-template-columns: repeat(2, 1fr); }
  .hv-right { grid-template-columns: repeat(2, 1fr); }
  .hv-label { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Problem band (three framing statements under the hero)
   -------------------------------------------------------------------------- */
.problem { padding-top: clamp(24px, 3vw, 48px); flex-direction: column; }
.problem-head { max-width: 860px; margin: 0 auto clamp(28px, 3vw, 44px); text-align: center; }
.problem-head h2 { margin: 0 0 16px; }
.problem-head .lead { margin: 0 auto; max-width: 64ch; }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1380px; margin: 0 auto; }
.problem-card { padding: 22px 22px 24px; border-radius: 14px; border: 1px solid #2c2b29; background: linear-gradient(180deg, #121211, #0d0d0c); }
.problem-card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid rgba(228,75,51,.45); background: rgba(228,75,51,.07); }
.problem-card .ico .ph { font-size: 19px; color: var(--accent); }
.problem-card h3 { font-size: 21px; font-weight: 500; margin: 0 0 8px; color: var(--sl-sand-50); }
.problem-card p { margin: 0; font-size: 16.5px; line-height: 1.45; color: var(--sl-grey-200); }
html.js .problem-grid .problem-card:nth-child(2) { transition-delay: .12s; }
html.js .problem-grid .problem-card:nth-child(3) { transition-delay: .24s; }
@media (max-width: 1025.98px) { .problem-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Story rows with orange connectors that draw on scroll
   -------------------------------------------------------------------------- */
.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: center; 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 { 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; }
.story-media { position: relative; }
.story-media .panel { min-height: 329px; display: flex; flex-direction: column; }
html.js .story-media { transform: translateY(calc(var(--sp, 0) * 28px)); will-change: transform; }
@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; justify-self: start; }
  .story-row + .story-row { margin-top: 72px; }
  .story-media .panel { min-height: 0; }
  html.js .story-media { transform: none; }
}

/* --------------------------------------------------------------------------
   Mini illustration panels (.viz) used in tabs and bento cards
   -------------------------------------------------------------------------- */
.viz {
  margin-top: auto; position: relative; overflow: hidden;
  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);
}
.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; }
.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; }

/* dithered dot field for tall cards */
.viz.dither { isolation: isolate; }
.viz.dither::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.dither::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; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Key features — vertical tabs (list left, illustrated panel right)
   ========================================================================== */
.features { padding-top: clamp(56px, 7vw, 120px); padding-bottom: clamp(32px, 4vw, 64px); }
.features-wrap { max-width: 1380px; }
.ftabs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "title title" "list stage"; gap: clamp(20px, 3vw, 48px); row-gap: clamp(20px, 2.2vw, 32px); align-items: start; }
.ftabs-title, .section-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-title { grid-area: title; justify-self: start; }
.section-title { margin-bottom: clamp(20px, 2.2vw, 32px); }
.ftabs-list { grid-area: 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; }
.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); } }
@keyframes ftab-fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ftabs-stage { grid-area: 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: 460px; display: flex; flex-direction: column; }
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; } }
@media (max-width: 1025.98px) {
  .ftabs { grid-template-columns: 1fr; grid-template-areas: "title" "list"; gap: 0; }
  .ftabs-title { margin-bottom: clamp(20px, 3vw, 28px); }
  .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: -1px; bottom: auto; 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 { grid-area: auto; padding: 4px 0 20px; }
  .ftab-panel > .viz { min-height: 0; }
}
@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; }
}

/* --------------------------------------------------------------------------
   Key use cases — bento
   -------------------------------------------------------------------------- */
.use-cases { padding-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(32px, 4vw, 64px); }
.feat-grid { display: grid; gap: 16px; }
.feat-grid-3 { grid-template-columns: 452fr 441fr 457fr; }
.feat-col { display: grid; gap: 16px; align-content: start; }
.feat, .feat-col, .viz { min-width: 0; }
.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-tall .viz { margin-top: auto; margin-bottom: auto; }
@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 { min-height: 0; }
  .feat-tall .viz { margin-top: 16px; margin-bottom: 0; }
}
@media (max-width: 719.98px) { .feat-grid-3, .feat-col { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.demo { padding-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(32px, 4vw, 64px); flex-direction: column; }
.cta-card { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: clamp(32px, 4vw, 56px); max-width: 1380px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0; 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 { max-width: 760px; }
.cta-copy h2 { margin: 0 0 16px; }
.cta-copy .lead { font-size: clamp(18px, 1rem + .4vw, 22px); color: var(--sl-grey-200); margin: 0 auto 28px; }
.cta-copy .button-row { justify-content: center; }
.cta-stage { width: 100%; max-width: 1080px; border: 1px solid #2c2b29; border-bottom: 0; border-radius: 12px 12px 0 0; background: #0f0f0e; box-shadow: 0 30px 70px rgba(0,0,0,.5); overflow: hidden; text-align: left; }
.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-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
@media (max-width: 719.98px) { .cta-copy h2 { font-size: 34px; line-height: 1.15; } }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { padding-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(56px, 6vw, 96px); flex-direction: column; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); row-gap: 0; 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; row-gap: 24px; } .faq-head h2 { position: static; } }

/* --------------------------------------------------------------------------
   Mobile pass (≤ 719px)
   -------------------------------------------------------------------------- */
@media (max-width: 719.98px) {
  .hero-visual { gap: 26px; padding: 18px 16px; }
  .hv-left { grid-template-columns: 1fr 1fr; gap: 10px; }
  .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 { padding: 16px 18px 6px; }
  .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); }
  .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; }
  .viz-head { flex-wrap: wrap; row-gap: 4px; }
  .viz-head span:first-child { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .ticks { transition: none !important; --p: var(--fill); }
  .hv-out .step, .hv-swap s, .hv-swap s::after, .ftab-desc, .ftab-panel { transition: none !important; animation: none !important; }
  .hv-out .step { opacity: 1 !important; transform: none !important; }
  .hv-swap s::after { transform: scaleX(1) !important; }
  .viz.dither::after, .hv-live { animation: none; }
  html.js .story-media { transform: none; }
}
@media (max-width: 719.98px) {
  .hero-copy .eyebrow { flex-wrap: wrap; row-gap: 4px; }
}
