/* Marketing site. Tokens and primitives live in theme.css; this is layout + the live demo. */

body { background: var(--hero-base); }
main { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav { position: absolute; inset-inline: 0; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--on-media); }
.nav__glyph { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; stroke: currentColor; }
.nav__links { display: none; position: absolute; left: 50%; transform: translateX(-50%); height: 3rem; align-items: center; gap: 2.25rem; border-radius: var(--radius-pill); border: 1px solid var(--glass-border); background: var(--glass-fill); padding: 0 1.75rem; backdrop-filter: blur(12px); }
.nav__link { font-size: .95rem; color: var(--body-muted); white-space: nowrap; transition: color var(--duration-fast) var(--ease-entrance); }
.nav__link:hover { color: var(--heading); }
@media (min-width: 900px) { .nav__links { display: flex; } }

.stickynav { position: fixed; top: .85rem; inset-inline: 0; z-index: 60; display: flex; justify-content: center; padding: 0 1.25rem; opacity: 0; visibility: hidden; transform: translateY(-.9rem); transition: opacity 400ms var(--ease-entrance), transform 400ms var(--ease-entrance), visibility 400ms; }
.stickynav.is-visible { opacity: 1; visibility: visible; transform: none; }
.stickynav__bar { display: flex; align-items: center; gap: 1rem; width: 100%; max-width: 64rem; height: 3.25rem; padding: 0 .45rem 0 1.1rem; border-radius: var(--radius-pill); background: var(--glass-grad-2); backdrop-filter: var(--blur); box-shadow: var(--inner-light), var(--drop); position: relative; }
.stickynav__bar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--ring); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.stickynav__brand { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .95rem; color: var(--on-media); }
.stickynav__brand .nav__glyph { width: 1.1rem; height: 1.1rem; }
.stickynav__links { display: none; margin: 0 auto; gap: 1.75rem; }
.stickynav .pill { margin-left: auto; height: 2.35rem; }
@media (min-width: 900px) { .stickynav__links { display: flex; } }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100lvh; width: 100%; overflow: hidden; background: transparent; text-align: center; padding: 6.5rem 1.25rem 5rem; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(115% 95% at 50% 46%, var(--scrim) 0%, var(--scrim) 24%, var(--scrim-soft) 52%, transparent 100%); }
.hero__content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 44rem; }
.hero__title { margin-top: 1.25rem; max-width: 26ch; font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.06; letter-spacing: -0.025em; color: var(--heading); }
.hero__sub { margin-top: 1.1rem; max-width: 40rem; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55; color: var(--body-muted); }
.hero__form { margin-top: 1.9rem; }
.hero__secondary { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--body-muted); transition: color var(--duration-fast) var(--ease-entrance); }
.hero__secondary:hover { color: var(--heading); }
.hero__support { position: absolute; inset-inline: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 1.25rem; font-size: .74rem; color: var(--body-muted); text-align: center; }
.flow--hero { font-size: .95rem; }

/* ---------- splits ---------- */
.split { display: grid; gap: 2rem; }
.split__body { color: var(--body-muted); font-size: 1.02rem; line-height: 1.7; display: grid; gap: 1rem; }
.split__grid { margin-top: 0; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; } }
.fine { color: var(--muted-2); font-size: .82rem; margin-top: 1.25rem; }
.chips--lead { margin-top: 1.5rem; }
.steps { list-style: none; padding: 0; counter-reset: none; }
.steps li { margin: 0; text-align: left; }

/* ---------- pricing ---------- */
.plans .card { text-align: left; display: flex; flex-direction: column; }
.plans .card ul { margin: 1rem 0 1.4rem; padding: 0; list-style: none; color: var(--body-muted); font-size: .9rem; line-height: 1.7; flex: 1; }
.plans .card li::before { content: "·"; color: var(--accent); margin-right: .5rem; }
.plans .price { margin-top: .6rem; font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; color: var(--heading); }
.plans .price span { font-size: .85rem; color: var(--muted-2); letter-spacing: 0; margin-left: .3rem; }
.plans .card--featured { background: var(--glass-grad-2); }
.plans .card--featured::before { background: var(--ring-hot); }
.plans .pill { width: 100%; }

/* ---------- final ---------- */
.final__panel { padding: 3.5rem 1.5rem; }
@media (min-width: 720px) { .final__panel { padding: 4.5rem 3rem; } }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; padding: 3.5rem 1.25rem 2.5rem; border-top: 1px solid var(--hairline); color: var(--body-muted); font-size: .86rem; }
.foot__top { display: grid; gap: 1rem; max-width: 46rem; }
.foot__tag { line-height: 1.65; }
.foot__list { margin-top: 1.75rem; color: var(--muted-2); font-size: .8rem; line-height: 1.7; }
.foot__bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; color: var(--muted-2); font-size: .8rem; }
.foot__bottom nav { display: flex; gap: 1.25rem; }
.foot__bottom a { color: var(--body-muted); }
.foot__bottom a:hover { color: var(--heading); }

/* ---------- legal / doc pages ---------- */
.doc { width: min(46rem, 100% - 2.5rem); margin: 6rem auto 4rem; position: relative; z-index: 1; color: var(--body-muted); line-height: 1.7; }
.doc h1 { color: var(--heading); margin-bottom: 1.5rem; }
.doc h2 { color: var(--heading); font-size: 1.3rem; margin: 2rem 0 .6rem; }

/* ---------- live workflow demo (fictional data; driven by home.js) ---------- */
.window { padding: 0; overflow: hidden; margin-top: 0; }
.window > * { position: relative; z-index: 1; }
.bar { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; border-bottom: 1px solid var(--hairline); background: rgba(255,255,255,0.03); }
.bar i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--hairline-strong); display: inline-block; }
.addr { margin-left: .6rem; flex: 1; display: inline-flex; align-items: center; gap: .5rem; border-radius: var(--radius-pill); border: 1px solid var(--hairline); background: rgba(255,255,255,0.04); padding: .3rem .8rem; font-size: .78rem; color: var(--body-muted); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.live { width: .45rem; height: .45rem; border-radius: 50%; background: var(--ink-mint); box-shadow: 0 0 0 3px rgba(127,232,192,.18); flex: none; }
.run-state { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; color: var(--ink-mint); border: 1px solid rgba(127,232,192,.35); border-radius: var(--radius-pill); padding: .15rem .6rem; }
.flow--demo { justify-content: flex-start; padding: .9rem 1.1rem; gap: 0; border-bottom: 1px solid var(--hairline); overflow-x: auto; flex-wrap: nowrap; font-size: .8rem; }
.flow--demo li { padding-right: 1.6rem; position: relative; white-space: nowrap; font-weight: 500; }
.flow--demo li + li::before { content: none; }
.flow--demo li::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .85rem; height: 2px; background: repeating-linear-gradient(90deg, var(--hairline-strong) 0 4px, transparent 4px 7px); background-size: 14px 2px; }
.flow--demo li:last-child { padding-right: 0; } .flow--demo li:last-child::after { display: none; }
.flow--demo li i { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--hairline-strong); display: inline-grid; place-items: center; flex: none; transition: border-color .3s, background .3s, box-shadow .3s; }
.flow--demo li i::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--hairline-strong); transition: background .3s, transform .3s; }
.flow--demo li.active { color: var(--heading); }
.flow--demo li.active i { border-color: var(--ink-violet); box-shadow: 0 0 0 4px rgba(167,139,250,.18); animation: node-pulse 1.4s ease-out infinite; }
.flow--demo li.active i::before { background: var(--ink-violet); transform: scale(1.2); }
.flow--demo li.active::after { animation: dash 1s linear infinite; }
.flow--demo li.done { color: var(--heading); }
.flow--demo li.done i { border-color: var(--ink-mint); background: var(--ink-mint); }
.flow--demo li.done i::before { width: .32rem; height: .58rem; border-radius: 0; background: transparent; border-right: 2px solid #06110c; border-bottom: 2px solid #06110c; transform: rotate(45deg) translate(-1px, -1px); }
@keyframes node-pulse { 0% { box-shadow: 0 0 0 0 rgba(167,139,250,.35); } 100% { box-shadow: 0 0 0 10px rgba(167,139,250,0); } }
@keyframes dash { from { background-position: 0 0; } to { background-position: 14px 0; } }

.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; }
.demo-body table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.demo-body th { text-align: left; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; padding: .8rem 1rem; border-bottom: 1px solid var(--hairline); }
.demo-body td { padding: .85rem 1rem; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--body); }
.demo-body td b { display: block; color: var(--heading); font-weight: 500; }
.demo-body td span:not(.fit):not(.nf):not(.nl):not(.val):not(.sig):not(.reg) { display: block; color: var(--muted-2); font-size: .76rem; }
.demo-body td.pick { background: rgba(167,139,250,.08); }
.fit { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-weight: 500; font-size: .82rem; color: var(--heading); box-shadow: inset 0 0 0 2px var(--hairline-strong); }
.fit.hot { box-shadow: inset 0 0 0 2px var(--ink-magenta); }
.fit.warm { box-shadow: inset 0 0 0 2px var(--ink-amber); }
.nf { color: var(--muted-2); font-style: italic; }
.nl { color: var(--muted-2); }
.demo-body td .sig { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.demo-body td .sig i { font-style: normal; font-size: .7rem; border-radius: var(--radius-pill); padding: .1rem .5rem; color: var(--body-muted); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.demo-body td .reg { color: var(--ink-mint); font-weight: 500; }
.demo-body td .val { color: var(--heading); }
.lineage { border-left: 1px solid var(--hairline); padding: 1rem 1.1rem; font-size: .8rem; background: rgba(255,255,255,0.025); }
.lineage .k { font-weight: 500; color: var(--heading); margin-bottom: .6rem; }
.lineage dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: 0; }
.lineage dt { color: var(--muted-2); }
.lineage dd { margin: 0; color: var(--body); overflow-wrap: anywhere; }
.lineage .q { margin-top: .8rem; padding-left: .7rem; border-left: 2px solid var(--ink-violet); color: var(--body-muted); font-style: italic; }
.lineage.flash { animation: lineage-flash .8s ease-out; }
@keyframes lineage-flash { 0% { background: rgba(167,139,250,.18); } 100% { background: rgba(255,255,255,0.025); } }
#demo-rows tr { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
#demo-rows tr.show { opacity: 1; transform: none; }
.demo-body td.fill { animation: cell-fill .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cell-fill { 0% { opacity: 0; transform: translateY(6px); background: rgba(167,139,250,.14); } 60% { opacity: 1; transform: none; background: rgba(167,139,250,.14); } 100% { background: transparent; } }
.ticker { border-top: 1px solid var(--hairline); background: rgba(255,255,255,0.03); padding: .6rem 1rem; font-size: .8rem; color: var(--body-muted); overflow: hidden; white-space: nowrap; display: flex; align-items: center; gap: .5rem; }
.ticker::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--ink-violet); flex: none; animation: node-pulse 1.4s ease-out infinite; }
.ticker .tk { display: inline-block; animation: tk-in .35s ease-out both; text-overflow: ellipsis; overflow: hidden; }
@keyframes tk-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 860px) {
  .demo-body { grid-template-columns: 1fr; }
  .lineage { border-left: 0; border-top: 1px solid var(--hairline); }
  .demo-body table { font-size: .8rem; }
}
@media (max-width: 720px) { .flow--demo li span { display: none; } .flow--demo li { padding-right: 1.1rem; } .flow--demo li::after { width: .5rem; right: .25rem; } }
@media (prefers-reduced-motion: reduce) {
  .flow--demo li.active i, .flow--demo li.active::after, .ticker::before, .ticker .tk, .demo-body td.fill, .lineage.flash { animation: none !important; }
  #demo-rows tr { transition: none; }
}

/* ---- additions for the merged landing (original copy, Flowstate structure) ---- */
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; padding: .5rem .9rem; border-radius: var(--radius-pill); background: var(--action-inverse); color: var(--action-inverse-fg); font-size: .85rem; }
.skip:focus { top: 1rem; outline: 2px solid var(--ink-violet); }
.nav__actions { display: inline-flex; align-items: center; gap: .9rem; }
.nav__actions .nav__link { font-size: .9rem; }
@media (max-width: 720px) { .nav__actions .nav__link { display: none; } }
ul.chips { list-style: none; padding: 0; margin: 0; }
ul.chips li { margin: 0; }
h3.card__lede { font-size: .9rem; font-weight: 500; margin-top: 0; }
.table-wrap th[scope="row"] { text-align: left; font-weight: 400; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--heading); }
section[id] { scroll-margin-top: 5.5rem; }

/* ---------- hero visual: the lead book filling in, with receipts ----------
   Pure SVG + CSS: no JS, no network, no inline styles (the CSP forbids them).
   One 11s loop; every element shares the duration and encodes its own timing as
   keyframe percentages, so the whole scene stays in lockstep without a timeline. */
.heroviz { width: 100%; max-width: 40rem; margin: 2.25rem auto 0; }
.hv { display: block; width: 100%; height: auto; overflow: visible; }

.hv-card { fill: var(--glass-grad-solid, rgba(255,255,255,0.045)); stroke: var(--glass-border); stroke-width: 1; }
.hv-rule { stroke: var(--hairline); stroke-width: 1; }
.hv-chrome circle { fill: rgba(255,255,255,0.18); }
.hv-addr { fill: var(--muted-2); font-size: 10.5px; font-family: var(--sans); }
.hv-live { fill: rgba(127,232,192,0.12); stroke: rgba(127,232,192,0.30); stroke-width: 1; }
.hv-livetext { fill: var(--ink-mint); font-size: 9.5px; letter-spacing: .04em; font-family: var(--sans); }
.hv-pulse { fill: var(--ink-mint); animation: hvPulse 1.6s ease-in-out infinite; }
@keyframes hvPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.hv-head text { fill: var(--muted-2); font-size: 9px; letter-spacing: .1em; font-family: var(--sans); }
.hv-name { fill: var(--heading); font-size: 13px; font-weight: 500; font-family: var(--sans); }
.hv-dom  { fill: var(--muted-2); font-size: 10.5px; font-family: var(--sans); }
.hv-val  { fill: var(--heading); font-size: 12.5px; font-family: var(--sans); }
.hv-sub  { fill: var(--muted-2); font-size: 10.5px; font-family: var(--sans); }
.hv-blank { fill: var(--muted-2); font-size: 11.5px; font-style: italic; font-family: var(--sans); }

.hv-fit { fill: none; stroke-width: 2; }
.hv-hot  { stroke: var(--ink-magenta); }
.hv-warm { stroke: var(--ink-amber); }
.hv-cold { stroke: rgba(110,231,249,0.55); }
.hv-fitn { fill: var(--heading); font-size: 11.5px; text-anchor: middle; font-family: var(--sans); }

.hv-chip { fill: rgba(127,232,192,0.10); stroke: rgba(127,232,192,0.28); stroke-width: 1; }
.hv-chip-none { fill: none; stroke: rgba(255,255,255,0.18); stroke-dasharray: 3 3; }
.hv-chiptext { fill: var(--ink-mint); font-size: 9.5px; font-family: var(--sans); }
.hv-chiptext-none { fill: var(--muted-2); }

/* the sweep that reads each row */
.hv-scan { fill: var(--ink-violet); opacity: 0; animation: hvScan 8s linear infinite; }
@keyframes hvScan {
  0%   { opacity: 0;   transform: translateY(0); }
  4%   { opacity: .14; transform: translateY(0); }
  15%  { opacity: .14; transform: translateY(48px); }
  26%  { opacity: .14; transform: translateY(96px); }
  34%  { opacity: 0;   transform: translateY(96px); }
  100% { opacity: 0;   transform: translateY(96px); }
}

/* each row's values arrive after the sweep passes it */
.hv-in { opacity: 0; }
.hv-d1 { animation: hvIn1 8s ease-out infinite; }
.hv-d2 { animation: hvIn2 8s ease-out infinite; }
.hv-d3 { animation: hvIn3 8s ease-out infinite; }
@keyframes hvIn1 { 0%,9% { opacity:0; transform: translateY(5px);} 16%,92% { opacity:1; transform:none;} 100% { opacity:0; transform: translateY(5px);} }
@keyframes hvIn2 { 0%,20% { opacity:0; transform: translateY(5px);} 27%,92% { opacity:1; transform:none;} 100% { opacity:0; transform: translateY(5px);} }
@keyframes hvIn3 { 0%,31% { opacity:0; transform: translateY(5px);} 38%,92% { opacity:1; transform:none;} 100% { opacity:0; transform: translateY(5px);} }


@media (prefers-reduced-motion: reduce) {
  .hv-scan { display: none; }
  .hv-in, .hv-pulse { animation: none; opacity: 1; }
}

/* classes replacing the inline styles the CSP blocks */
.faq--spaced { margin-top: 2.5rem; }
.entry--spaced { margin-top: 1.75rem; }
.card__lede--danger { --accent: var(--danger); }

/* Below ~620px the 640-unit viewBox scales text to ~7px — unreadable. The hero reads
   fine without it, so the visual is desktop/tablet only rather than shipped illegible. */
.heroviz { display: none; }
@media (min-width: 620px) { .heroviz { display: block; } }

/* ---------- the escalation ladder: how a row actually gets filled ----------
   Four sources tried in order, each only for what the one before left blank, and a field
   nobody can source stays blank. One 12s loop; every element shares the duration and
   encodes its own timing as keyframe percentages, so the scene stays in lockstep. */
.ladder { width: 100%; max-width: 44rem; margin: 2.75rem auto 0; }
.ld { display: block; width: 100%; height: auto; }

.ld-rung rect { fill: rgba(255,255,255,0.03); stroke: var(--hairline); stroke-width: 1; }
.ld-rname { fill: var(--body-muted); font-size: 13px; font-family: var(--sans); }
.ld-rmeta { fill: var(--muted-2); font-size: 10.5px; font-family: var(--sans); }
.ld-tick { fill: none; stroke: var(--hairline-strong); stroke-width: 1.5; }
.ld-check { fill: none; stroke: var(--ink-mint); stroke-width: 2; stroke-linecap: round;
            stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; }

/* a rung lights while it is the one being tried, then keeps its tick */
.ld-rung1 rect { animation: ldRung1 12s linear infinite; }
.ld-rung2 rect { animation: ldRung2 12s linear infinite; }
.ld-rung3 rect { animation: ldRung3 12s linear infinite; }
.ld-rung4 rect { animation: ldRung4 12s linear infinite; }
.ld-rung1 .ld-rname { animation: ldName1 12s linear infinite; }
.ld-rung2 .ld-rname { animation: ldName2 12s linear infinite; }
.ld-rung3 .ld-rname { animation: ldName3 12s linear infinite; }
.ld-rung4 .ld-rname { animation: ldName4 12s linear infinite; }
/* the tick draws itself with stroke only -- animating fill here would paint the path solid */
.ld-rung1 .ld-check { animation: ldTick1 12s linear infinite; }
.ld-rung2 .ld-check { animation: ldTick2 12s linear infinite; }
.ld-rung3 .ld-check { animation: ldTick3 12s linear infinite; }
.ld-rung4 .ld-check { animation: ldTick4 12s linear infinite; }
@keyframes ldTick1 { 0%,6% { stroke-dashoffset: 14; } 10%,96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 14; } }
@keyframes ldTick2 { 0%,26% { stroke-dashoffset: 14; } 30%,96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 14; } }
@keyframes ldTick3 { 0%,46% { stroke-dashoffset: 14; } 50%,96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 14; } }
@keyframes ldTick4 { 0%,66% { stroke-dashoffset: 14; } 70%,96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 14; } }

@keyframes ldRung1 { 0%,4% { fill: rgba(255,255,255,0.03); stroke: var(--hairline); }
  8%,18% { fill: rgba(167,139,250,0.10); stroke: rgba(167,139,250,0.45); }
  24%,96% { fill: rgba(255,255,255,0.045); stroke: var(--hairline-strong); }
  100% { fill: rgba(255,255,255,0.03); stroke: var(--hairline); } }
@keyframes ldRung2 { 0%,24% { fill: rgba(255,255,255,0.03); stroke: var(--hairline); }
  28%,38% { fill: rgba(167,139,250,0.10); stroke: rgba(167,139,250,0.45); }
  44%,96% { fill: rgba(255,255,255,0.045); stroke: var(--hairline-strong); }
  100% { fill: rgba(255,255,255,0.03); stroke: var(--hairline); } }
@keyframes ldRung3 { 0%,44% { fill: rgba(255,255,255,0.03); stroke: var(--hairline); }
  48%,58% { fill: rgba(167,139,250,0.10); stroke: rgba(167,139,250,0.45); }
  64%,96% { fill: rgba(255,255,255,0.045); stroke: var(--hairline-strong); }
  100% { fill: rgba(255,255,255,0.03); stroke: var(--hairline); } }
@keyframes ldRung4 { 0%,64% { fill: rgba(255,255,255,0.03); stroke: var(--hairline); }
  68%,78% { fill: rgba(167,139,250,0.10); stroke: rgba(167,139,250,0.45); }
  84%,96% { fill: rgba(255,255,255,0.045); stroke: var(--hairline-strong); }
  100% { fill: rgba(255,255,255,0.03); stroke: var(--hairline); } }

/* the name brightens while active; the tick draws itself once the rung has reported */
@keyframes ldName1 { 0%,6% { fill: var(--body-muted); }
  10%,96% { fill: var(--heading); stroke-dashoffset: 0; } 100% { fill: var(--body-muted); stroke-dashoffset: 14; } }
@keyframes ldName2 { 0%,26% { fill: var(--body-muted); }
  30%,96% { fill: var(--heading); stroke-dashoffset: 0; } 100% { fill: var(--body-muted); stroke-dashoffset: 14; } }
@keyframes ldName3 { 0%,46% { fill: var(--body-muted); }
  50%,96% { fill: var(--heading); stroke-dashoffset: 0; } 100% { fill: var(--body-muted); stroke-dashoffset: 14; } }
@keyframes ldName4 { 0%,66% { fill: var(--body-muted); }
  70%,96% { fill: var(--heading); stroke-dashoffset: 0; } 100% { fill: var(--body-muted); stroke-dashoffset: 14; } }

.ld-wire { fill: none; stroke: var(--hairline); stroke-width: 1; stroke-dasharray: 3 4; }
.ld-spark { fill: var(--ink-violet); }
.ld-s1 { animation: ldSpark1 12s linear infinite; }
.ld-s2 { animation: ldSpark2 12s linear infinite; }
.ld-s3 { animation: ldSpark3 12s linear infinite; }
.ld-s4 { animation: ldSpark4 12s linear infinite; }
@keyframes ldSpark1 { 0%,5% { opacity: 0; } 7%,14% { opacity: 1; } 16%,100% { opacity: 0; } }
@keyframes ldSpark2 { 0%,25% { opacity: 0; } 27%,34% { opacity: 1; } 36%,100% { opacity: 0; } }
@keyframes ldSpark3 { 0%,45% { opacity: 0; } 47%,54% { opacity: 1; } 56%,100% { opacity: 0; } }
@keyframes ldSpark4 { 0%,65% { opacity: 0; } 67%,74% { opacity: 1; } 76%,100% { opacity: 0; } }

.ld-card { fill: rgba(255,255,255,0.028); stroke: var(--glass-border); stroke-width: 1; }
.ld-co { fill: var(--heading); font-size: 14px; font-weight: 500; font-family: var(--sans); }
.ld-dom { fill: var(--muted-2); font-size: 11px; font-family: var(--sans); }
.ld-rule { stroke: var(--hairline); stroke-width: 1; }
.ld-k { fill: var(--muted-2); font-size: 11.5px; font-family: var(--sans); }
.ld-v { fill: var(--heading); font-size: 12.5px; font-family: var(--sans); opacity: 0; }
.ld-nf { fill: var(--muted-2); font-size: 11.5px; font-style: italic; font-family: var(--sans); opacity: 0; }
.ld-dash { fill: var(--muted-2); font-size: 12.5px; font-family: var(--sans); }

/* a value appears exactly when its rung reports; the dash it replaces fades out under it */
.ld-a1 { animation: ldIn1 12s ease-out infinite; }
.ld-a2 { animation: ldIn2 12s ease-out infinite; }
.ld-a3 { animation: ldIn3 12s ease-out infinite; }
.ld-a4 { animation: ldIn4 12s ease-out infinite; }
@keyframes ldIn1 { 0%,15% { opacity:0; transform: translateX(-4px); } 18%,96% { opacity:1; transform:none; } 98%,100% { opacity:0; transform:none; } }
@keyframes ldIn2 { 0%,35% { opacity:0; transform: translateX(-4px); } 38%,96% { opacity:1; transform:none; } 98%,100% { opacity:0; transform:none; } }
@keyframes ldIn3 { 0%,55% { opacity:0; transform: translateX(-4px); } 58%,96% { opacity:1; transform:none; } 98%,100% { opacity:0; transform:none; } }
@keyframes ldIn4 { 0%,75% { opacity:0; transform: translateX(-4px); } 78%,96% { opacity:1; transform:none; } 98%,100% { opacity:0; transform:none; } }

.ld-d1 { animation: ldDash1 12s linear infinite; }
.ld-d2 { animation: ldDash2 12s linear infinite; }
.ld-d3 { animation: ldDash3 12s linear infinite; }
.ld-d4 { animation: ldDash4 12s linear infinite; }
@keyframes ldDash1 { 0%,13% { opacity:1; } 15%,98% { opacity:0; } 99%,100% { opacity:1; } }
@keyframes ldDash2 { 0%,33% { opacity:1; } 35%,98% { opacity:0; } 99%,100% { opacity:1; } }
@keyframes ldDash3 { 0%,53% { opacity:1; } 55%,98% { opacity:0; } 99%,100% { opacity:1; } }
@keyframes ldDash4 { 0%,73% { opacity:1; } 75%,98% { opacity:0; } 99%,100% { opacity:1; } }

@media (prefers-reduced-motion: reduce) {
  .ld-rung rect, .ld-rname, .ld-check, .ld-spark, .ld-v, .ld-nf, .ld-dash { animation: none; }
  .ld-v, .ld-nf { opacity: 1; }
  .ld-dash, .ld-spark { opacity: 0; }
  .ld-check { stroke-dashoffset: 0; }
}
@media (max-width: 620px) { .ladder { display: none; } }

/* ---------- the six-stage line, lit one stage at a time ----------
   The same pulse the app's flow rail shows, so the promise on the page and the spine of the
   product read as one thing. nth-child is safe here: every child of .flow is an <li>. */
.flow--hero li { transition: color 400ms var(--ease-entrance); }
.flow--hero li:nth-child(1) { animation: flowLit 9s linear infinite; }
.flow--hero li:nth-child(2) { animation: flowLit 9s linear infinite -1.5s; }
.flow--hero li:nth-child(3) { animation: flowLit 9s linear infinite -3s; }
.flow--hero li:nth-child(4) { animation: flowLit 9s linear infinite -4.5s; }
.flow--hero li:nth-child(5) { animation: flowLit 9s linear infinite -6s; }
.flow--hero li:nth-child(6) { animation: flowLit 9s linear infinite -7.5s; }
@keyframes flowLit {
  0%   { color: var(--heading); text-shadow: 0 0 18px rgba(167,139,250,.45); }
  14%  { color: var(--heading); text-shadow: 0 0 18px rgba(167,139,250,.45); }
  28%, 100% { color: var(--body-muted); text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .flow--hero li { animation: none; } }
