/* ==========================================================================
   Living Heat brand layer · direction C: Connected.
   White pages divided by hairlines; the visual idea is a network that
   connects the visitor to banks and lenders, with an ember dotted branch
   for credit repair. Builds on base.css; every value comes from tokens.css.
   ========================================================================== */

/* ---- Type: a light sentence that lands on heavy words ---- */
.display, .h1, .h2 { font-weight: var(--weight-display); letter-spacing: var(--tracking-display); }
.display b, .h1 b, .h2 b { font-weight: var(--weight-heavy); letter-spacing: var(--tracking-heavy); color: var(--color-accent); }
h3, h4, .h3, .h4 { font-weight: var(--weight-heading); letter-spacing: -0.015em; }
.eyebrow { font-family: var(--font-mono); font-weight: 500; color: var(--color-accent); }
.lede { color: var(--color-muted); }
.ghost { display: block; font-weight: var(--weight-heavy); text-transform: uppercase; letter-spacing: var(--tracking-heavy); font-size: 1.08em; min-height: 1.04em; color: var(--color-accent); }
.ghost__word { display: inline-block; }

/* Kicker: the logo's rising bars (tallest in ember) beside a spaced mono label */
.kicker {
  display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-accent);
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
}
.kicker::before {
  content: ""; flex: none; width: 1.1em; height: 1em;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 24% 42% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 100% / 24% 70% no-repeat,
    linear-gradient(var(--color-ember), var(--color-ember)) 100% 100% / 24% 100% no-repeat;
}
.section--inverse .kicker { color: var(--color-inverse-muted); }

/* ---- Buttons: squared corners ---- */
.btn { border-radius: var(--radius-s); padding: var(--space-xs) var(--space-m); }
.btn--ghost { border-color: var(--color-line-strong); }
.btn .dot { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: var(--radius-s); background: var(--color-ember); color: var(--color-ink); }
a.plain, .panel a { display: inline-flex; align-items: center; min-height: 1.5rem; }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--color-ink); font-size: var(--step-0); letter-spacing: 0.015em; }
.logo svg { width: 1.6rem; height: auto; flex: none; }
.logo .logo-flame { fill: var(--color-accent); }
.logo .logo-tip { fill: var(--color-ember); }
.logo__word { font-family: var(--font-display); font-weight: 500; line-height: 1; white-space: nowrap; }
.logo__word b { font-weight: var(--weight-heavy); color: var(--color-accent); }

/* ---- Header: white with a hairline ---- */
.site-header { background: color-mix(in srgb, var(--color-bg) 92%, transparent); border-bottom: 1px solid var(--color-line); }
.site-header .btn { --btn-bg: var(--color-ink); }
.nav a { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---- Home hero: copy left, the network right, facts below ---- */
.hero-c { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--space-2xl) 0; }
.hero-c::before {   /* soft light behind the network and a fine dot grid that fades out */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 78% 40%, rgb(35 80 224 / 0.10), transparent 70%),
    radial-gradient(28% 38% at 92% 78%, rgb(56 166 242 / 0.12), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--color-line-strong) 1px, transparent 1.5px) 0 0 / var(--space-m) var(--space-m);
  mask-image: radial-gradient(75% 85% at 70% 40%, #000 35%, transparent 80%);
}
.hero-c__grid { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 56rem) { .hero-c__grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-2xl); } }
.hero-c__copy { display: grid; gap: var(--space-m); justify-items: start; min-width: 0; }
.hero-c__copy .display { font-size: var(--step-6); line-height: 1; }
.hero-c__copy .lede { max-width: 42ch; }
.hero-c__net { min-width: 0; position: relative; }
.layer { transition: transform 900ms var(--ease-out); }
.layer--back { transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -10px)); }
.layer--mid { transform: translate(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 6px)); }
.layer--front { transform: translate(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 14px)); }
.net-flow circle { opacity: 0; }
.flow--0 { fill: var(--color-accent); }
.flow--1 { fill: var(--color-sky); }
.net-pulse { fill: none; stroke: var(--color-accent); stroke-width: 2; opacity: 0; }
.motion-toggle { display: none; }
.js .motion-toggle {
  position: absolute; right: 0; bottom: calc(-1 * var(--space-2xs)); display: inline-flex; align-items: center; gap: var(--space-2xs);
  min-height: 2.75rem; padding-inline: var(--space-xs); border: 1px solid var(--color-line); border-radius: var(--radius-s); background: var(--color-surface);
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted);
}
.motion-toggle:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
.motion-toggle__icon { width: 0.7rem; height: 0.8rem; background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%); }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.network { width: 100%; height: auto; overflow: visible; }
.net-glow { fill: var(--color-accent); opacity: 0.07; }
.net-ring { fill: none; stroke: var(--color-line); stroke-width: 1; }
.net-ring--dash { stroke-dasharray: 3 7; }
.net-lines path { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-linecap: round; }
.net-lines path:nth-child(even) { stroke: var(--color-sky); }
.net-repair { fill: none; stroke: var(--color-ember); stroke-width: 2; stroke-dasharray: 5 7; stroke-linecap: round; }
.net-nodes circle { fill: var(--color-surface); stroke: var(--color-accent); stroke-width: 2.5; }
.net-repair-node { fill: var(--color-ember); }
.net-labels text { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--color-muted); }
.net-labels .net-repair-label { fill: var(--color-ember-ink); }
@media (max-width: 47.99rem) { .net-labels text { font-size: 18px; } .net-chip text { font-size: 16px; } }
.net-chip rect { fill: var(--color-surface); stroke: var(--color-line-strong); }
.net-chip text { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em; fill: var(--color-ink); }
.net-you { fill: var(--color-ink); }
.net-you-label { font-family: var(--font-display); font-weight: var(--weight-heavy); font-size: 18px; fill: var(--color-accent-ink); letter-spacing: 0.04em; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-2xl); border-block: 1px solid var(--color-line); }
@media (min-width: 56rem) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-3xs); padding: var(--space-m) var(--space-s); border-left: 1px solid var(--color-line); min-width: 0; }
.facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
@media (min-width: 56rem) { .facts > div:nth-child(odd) { border-left: 1px solid var(--color-line); padding-left: var(--space-m); } .facts > div:first-child { border-left: 0; padding-left: 0; } }
@media (max-width: 55.99rem) { .facts > div:nth-child(n + 3) { border-top: 1px solid var(--color-line); } }
.facts dt { font-size: var(--step--1); color: var(--color-muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--step-2); letter-spacing: var(--tracking-display); line-height: 1.1; }
.facts dd b { font-weight: var(--weight-heavy); color: var(--color-accent); }

/* ---- Services: one dominant funding panel, credit repair as a secondary strip ---- */
.services { display: grid; gap: var(--space-s); }
.feat {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: var(--space-l);
  padding: var(--space-l) var(--space-m); border-radius: var(--radius-l); background: var(--color-ink); color: var(--color-accent-ink);
}
@media (min-width: 56rem) { .feat { grid-template-columns: 1.05fr 1fr; gap: var(--space-xl); padding: var(--space-xl); align-items: center; } }
.feat::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(35 80 224 / 0.55), transparent); pointer-events: none;
}
.feat .eyebrow { color: var(--color-sky); }
.feat__title { margin-block: var(--space-2xs) var(--space-s); font-size: var(--step-5); font-weight: var(--weight-display); letter-spacing: var(--tracking-display); line-height: 1.05; }
.feat__title b { font-weight: var(--weight-heavy); }
.feat__lead > p:not(.eyebrow) { color: var(--color-inverse-muted); max-width: 40ch; }
.feat__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); margin-top: var(--space-m); }
.feat__actions .link-arrow { color: var(--color-accent-ink); }
.feat__types { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid rgb(255 255 255 / 0.14); }
@media (min-width: 40rem) { .feat__types { grid-template-columns: 1fr 1fr; } }
.feat__types li { display: grid; align-content: start; gap: var(--space-3xs); padding: var(--space-m) var(--space-s) var(--space-m) 0; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
@media (min-width: 40rem) { .feat__types li:nth-child(even) { padding-left: var(--space-m); border-left: 1px solid rgb(255 255 255 / 0.14); } }
.feat__types span { font-family: var(--font-mono); font-weight: 500; font-size: var(--step--2); letter-spacing: 0.1em; color: var(--color-sky); }
.feat__types h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.feat__types p { color: var(--color-inverse-muted); font-size: var(--step--1); }
.strip {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs) var(--space-m); align-items: start;
  padding: var(--space-m); border-radius: var(--radius-m); border: 1px solid var(--color-line); background: var(--color-surface-2);
  color: var(--color-ink); text-decoration: none; transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
@media (min-width: 56rem) { .strip { grid-template-columns: auto 1fr auto; align-items: center; padding: var(--space-m) var(--space-l); } }
.strip:hover { border-color: var(--color-ember); box-shadow: var(--shadow-m); }
.strip__dot { margin-top: 0.2rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--color-ember); box-shadow: 0 0 0 6px rgb(242 138 46 / 0.18); }
.strip__copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3xs) var(--space-m); }
.strip__copy .eyebrow { flex-basis: 100%; color: var(--color-ember-ink); }
.strip__title { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--step-2); letter-spacing: var(--tracking-display); }
.strip__title b { font-weight: var(--weight-heavy); }
.strip__text { color: var(--color-muted); }
.strip .link-arrow { grid-column: 2; }
@media (min-width: 56rem) { .strip .link-arrow { grid-column: auto; } .strip__dot { margin-top: 0; } }

/* ---- How it works: a connected path ---- */
.path { list-style: none; padding: 0; display: grid; gap: var(--space-l); counter-reset: step; }
@media (min-width: 56rem) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); } }
.path li { position: relative; display: grid; gap: var(--space-2xs); align-content: start; counter-increment: step; padding-left: var(--space-l); }
.path li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; color: var(--color-accent); }
.path li h3 { font-size: var(--step-1); }
.path li p { color: var(--color-muted); }
.path__node { position: absolute; left: 0; top: 0.1rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--color-surface); border: 2.5px solid var(--color-accent); z-index: 1; }
.path li::after { content: ""; position: absolute; left: calc(0.5rem - 1px); top: 1.2rem; bottom: calc(-1 * var(--space-l)); border-left: 2px solid var(--color-accent); transform-origin: top; }
.path li:last-child::after { display: none; }
.path__step--ember .path__node { background: var(--color-ember); border-color: var(--color-ember); }
.path li.path__step--ember::before { color: var(--color-ember-ink); }
.path li.path__step--ember::after { border-left-style: dashed; border-left-color: var(--color-ember); }
@media (min-width: 56rem) {
  .path li { padding-left: 0; padding-top: var(--space-l); }
  .path__node { top: 0; }
  .path li::after { left: 1.1rem; right: calc(-1 * var(--space-m)); top: calc(0.5rem - 1px); bottom: auto; border-left: 0; border-top: 2px solid var(--color-accent); transform-origin: left; }
  .path li.path__step--ember::after { border-top-style: dashed; border-top-color: var(--color-ember); }
}
.note { margin-top: var(--space-l); padding-left: var(--space-s); border-left: 2px solid var(--color-ember); color: var(--color-muted); font-family: var(--font-mono); font-size: var(--step--1); max-width: 60ch; }

/* ---- How it works: scroll story ---- */
.story__grid { display: grid; gap: var(--space-xl); }
.story__visual { display: none; }
.story__steps { list-style: none; padding: 0; display: grid; gap: var(--space-l); counter-reset: none; }
.story__step { position: relative; display: grid; gap: var(--space-xs); padding-left: var(--space-l); align-content: start; }
.story__step::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--color-surface); border: 2.5px solid var(--color-accent); }
.story__step::after { content: ""; position: absolute; left: calc(0.5rem - 1px); top: 1.5rem; bottom: calc(-1 * var(--space-l)); border-left: 2px solid var(--color-accent); }
.story__step:last-child::after { display: none; }
.story__step--ember::before { background: var(--color-ember); border-color: var(--color-ember); }
.story__step--ember::after { border-left: 2px dashed var(--color-ember); }
.story__num { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; color: var(--color-accent); }
.story__step--ember .story__num { color: var(--color-ember-ink); }
.story__step h3 { font-size: var(--step-3); font-weight: var(--weight-display); letter-spacing: var(--tracking-display); }
.story__step p { color: var(--color-muted); max-width: 46ch; }
.story__step .note { margin-top: var(--space-2xs); }
@media (min-width: 56rem) {
  .story__grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-3xl); align-items: start; }
  .story__visual { display: block; height: 100%; }
  .story__sticky { position: sticky; top: calc(var(--space-3xl) + var(--space-l)); }
  .story__steps { gap: 0; }
  .story__step { min-height: 62vh; align-content: center; padding-left: var(--space-xl); transition: opacity var(--dur-slow) var(--ease-out); }
  .story__step::before { top: 50%; translate: 0 -50%; }
  .story__step::after { top: calc(50% + 0.6rem); bottom: calc(-50% + 0.6rem); }
  .js .story__steps.is-live .story__step:not(.is-active) { opacity: 0.32; }
}
.story-net { width: 100%; height: auto; overflow: visible; }
.sn-glow { fill: var(--color-accent); opacity: 0.07; }
.sn-you { fill: var(--color-ink); }
.story-net .sn-you-label { font-family: var(--font-display); font-weight: var(--weight-heavy); font-size: 18px; fill: var(--color-accent-ink); letter-spacing: 0.04em; }
.story-net text { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--color-muted); transition: fill var(--dur-slow), opacity var(--dur-slow); }
.sn-arc { fill: none; stroke: var(--color-accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out); }
.sn-arc--b { stroke: var(--color-sky); transition-delay: 150ms; }
.sn-arc--c { stroke: var(--color-ink); transition-delay: 300ms; }
.sn-repair-line { fill: none; stroke: var(--color-ember); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out); }
.sn-repair circle { fill: var(--color-ember); opacity: 0.25; transition: opacity var(--dur-slow); }
.sn-repair text { opacity: 0.35; }
.sn-banks path { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out); }
.sn-banks path:nth-of-type(2) { stroke: var(--color-sky); transition-delay: 120ms; }
.sn-banks path:nth-of-type(3) { transition-delay: 240ms; }
.sn-banks circle { fill: var(--color-surface); stroke: var(--color-line-strong); stroke-width: 2.5; transition: stroke var(--dur-slow), fill var(--dur-slow); }
.sn-funded { opacity: 0; transition: opacity var(--dur-slow) var(--ease-out) 600ms; }
.sn-funded rect { fill: var(--color-accent); }
.sn-funded text { fill: var(--color-accent-ink); font-weight: 600; }
.story-net:is([data-state="1"], [data-state="2"], [data-state="3"]) .sn-arc { stroke-dashoffset: 0; }
.story-net:is([data-state="2"], [data-state="3"]) .sn-repair-line { stroke-dashoffset: 0; }
.story-net:is([data-state="2"], [data-state="3"]) .sn-repair circle { opacity: 1; }
.story-net:is([data-state="2"], [data-state="3"]) .sn-repair text { opacity: 1; fill: var(--color-ember-ink); }
.story-net[data-state="3"] .sn-banks path { stroke-dashoffset: 0; }
.story-net[data-state="3"] .sn-banks circle { stroke: var(--color-accent); }
.story-net[data-state="3"] .sn-funded { opacity: 1; }
.sn-banks .sn-bank { opacity: 0.35; }
.story-net[data-state="3"] .sn-bank { opacity: 1; fill: var(--color-ink); }
.story-net[data-state="1"] .sn-profile text { fill: var(--color-ink); }

/* ---- Where do you stand: score checker ---- */
.checker__control { display: grid; gap: var(--space-2xs); max-width: 32rem; }
.checker__control label { font-weight: var(--weight-strong); }
.checker__value { font-family: var(--font-display); font-weight: var(--weight-heavy); font-size: var(--step-7); line-height: 1; letter-spacing: var(--tracking-heavy); color: var(--color-accent); font-variant-numeric: tabular-nums; }
.checker input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; background: transparent; cursor: pointer; margin: 0;
}
.checker input[type="range"]::-webkit-slider-runnable-track { height: 0.6rem; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--color-ember), var(--color-sky) 55%, var(--color-accent)); }
.checker input[type="range"]::-moz-range-track { height: 0.6rem; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--color-ember), var(--color-sky) 55%, var(--color-accent)); }
.checker input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.75rem; height: 1.75rem; margin-top: -0.575rem; border-radius: 50%; background: var(--color-ink); border: 4px solid var(--color-surface); box-shadow: var(--shadow-m); }
.checker input[type="range"]::-moz-range-thumb { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--color-ink); border: 4px solid var(--color-surface); box-shadow: var(--shadow-m); }
.checker input[type="range"]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: var(--radius-s); }
.checker__scale { position: relative; height: 1.25rem; font-family: var(--font-mono); font-size: var(--step--2); color: var(--color-muted); }
.checker__scale span { position: absolute; translate: -50% 0; }
.checker__scale span:nth-child(1) { left: 0; translate: 0 0; }
.checker__scale span:nth-child(2) { left: 50.9%; }
.checker__scale span:nth-child(3) { left: 69.1%; color: var(--color-ink); font-weight: 600; }
.checker__scale span:nth-child(4) { right: 0; translate: 0 0; }
.checker__panel { display: grid; gap: var(--space-s); justify-items: start; padding: var(--space-l) var(--space-m); border: 1px solid var(--color-line); border-radius: var(--radius-l); background: var(--color-surface); box-shadow: var(--shadow-m); }
.gauge { width: 100%; height: auto; }
.gauge__track { fill: none; stroke: var(--color-surface-2); stroke-width: 22; stroke-linecap: round; }
.gauge__fill { fill: none; stroke: url(#gauge-grad); stroke-width: 22; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--frac, 0.618)); transition: stroke-dashoffset var(--dur-slow) var(--ease-out); }
.gauge__tick line { stroke: var(--color-ink); stroke-width: 3; }
.gauge__tick text { font-family: var(--font-mono); font-size: 15px; font-weight: 600; fill: var(--color-ink); }
.gauge__needle { transform-box: view-box; transform-origin: 200px 200px; transform: rotate(calc(var(--frac, 0.618) * 180deg - 90deg)); transition: transform var(--dur-slow) var(--ease-out); }
.gauge__needle line { stroke: var(--color-ink); stroke-width: 5; stroke-linecap: round; }
.gauge__needle circle { fill: var(--color-ink); stroke: var(--color-surface); stroke-width: 4; }
.checker__result { display: grid; gap: var(--space-3xs); width: 100%; padding-left: var(--space-s); border-left: 3px solid var(--color-accent); }
.checker__result[data-tier="repair"] { border-left-color: var(--color-ember); }
.checker__tier { font-family: var(--font-display); font-weight: var(--weight-heavy); font-size: var(--step-2); letter-spacing: -0.015em; color: var(--color-ink); }
.checker__result[data-tier="repair"] .checker__tier { color: var(--color-ember-ink); }
.checker__result[data-tier="ready"] .checker__tier { color: var(--color-accent); }
.checker__text { color: var(--color-muted); }
.checker__fine { font-size: var(--step--2); color: var(--color-muted); }
.checker__rows { margin-top: var(--space-2xl); }
@media (min-width: 40rem) { .checker__rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-xl); } }

/* ---- Rows: hairline list ---- */
.rows { list-style: none; padding: 0; border-top: 1px solid var(--color-line); }
.rows li { display: grid; gap: var(--space-3xs); padding-block: var(--space-s); border-bottom: 1px solid var(--color-line); }
@media (min-width: 40rem) { .rows li { grid-template-columns: 14rem 1fr; gap: var(--space-m); align-items: baseline; } }
.rows h3 { font-size: var(--step-0); }
.rows p { color: var(--color-muted); }

/* ---- Panels and pairs ---- */
.duo { display: grid; gap: var(--space-s); }
@media (min-width: 48rem) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { padding: var(--space-m); border-radius: var(--radius-m); background: var(--color-surface); border: 1px solid var(--color-line); display: grid; gap: var(--space-xs); align-content: start; }
.panel p, .panel li { color: var(--color-muted); }
.panel ul:not(.ticks):not(.crosses) { padding-left: 1.1em; display: grid; gap: var(--space-3xs); }

/* ---- Stats (inner pages) ---- */
.stats { display: grid; gap: var(--space-l); }
@media (min-width: 48rem) { .stats { grid-template-columns: 1fr 1fr; } }
.split .stats { grid-template-columns: 1fr; }
.stat__num { font-weight: var(--weight-display); white-space: nowrap; }
.stat__num b { font-weight: var(--weight-heavy); }

/* ---- Results: client clip + a slow strip of real screenshots ---- */
.proofs { overflow: hidden; }
.proofs__grid { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 56rem) { .proofs__grid { grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr); gap: var(--space-xl); } }
.proof-video { display: grid; gap: var(--space-xs); justify-items: center; margin: 0; }
.proof-video__phone {
  position: relative; width: min(62vw, 17rem); aspect-ratio: 9 / 16; padding: 0.55rem; border-radius: 2.4rem;
  background: var(--color-ink); box-shadow: var(--shadow-m), 0 0 0 1px rgb(19 32 74 / 0.08);
}
.proof-video__phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 1.9rem; background: #000; }
.proof-video__phone video::cue { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.35; background: rgb(19 32 74 / 0.82); color: #fff; }
.proof-video__play {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.2rem 0.7rem 0.8rem; border: 0; border-radius: 999px; background: var(--color-accent); color: #fff;
  font: 600 var(--step-0)/1 var(--font-body); cursor: pointer; box-shadow: 0 10px 24px -10px rgb(19 32 74 / 0.6);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.proof-video__play[hidden] { display: none; }
.proof-video__play:hover { background: var(--color-ink); transform: translateY(-2px); }
.proof-video__play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.proof-video__icon { width: 2rem; height: 2rem; border-radius: 50%; background: rgb(255 255 255 / 0.2); position: relative; }
.proof-video__icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; translate: 2px 0; border-style: solid; border-width: 0.45rem 0 0.45rem 0.7rem; border-color: transparent transparent transparent #fff; }
.proof__tag { display: block; font-family: var(--font-mono); font-weight: 500; font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.proof-video figcaption { text-align: center; font-weight: 600; font-size: var(--step--1); }
.proofs__strip {
  display: flex; gap: var(--space-s); width: 100%; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.proofs__track { display: flex; flex: none; gap: var(--space-s); align-items: center; list-style: none; margin: 0; padding: var(--space-s) 0; }
.proof { flex: none; }
.proof__btn {
  display: grid; gap: var(--space-2xs); width: 15rem; padding: var(--space-2xs); border: 1px solid var(--color-line); border-radius: var(--radius-m);
  background: var(--color-surface); color: var(--color-ink); text-align: left; cursor: zoom-in; font: inherit;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.proof__btn:hover, .proof__btn:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--color-accent); }
.proof__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.proof__btn img { display: block; width: 100%; height: 17rem; object-fit: cover; object-position: top center; border-radius: calc(var(--radius-m) - 0.35rem); background: var(--color-surface-2); }
.proof__btn .proof__vid { display: block; width: 100%; height: 17rem; object-fit: cover; border-radius: calc(var(--radius-m) - 0.35rem); background: #000; }
.proof__btn img.is-wide { object-fit: contain; object-position: center; }
.proof__cap { padding: 0 var(--space-3xs) var(--space-3xs); font-weight: 600; font-size: var(--step--1); line-height: 1.3; }
.proofs__note { margin-top: var(--space-m); font-size: var(--step--1); color: var(--color-muted); max-width: 60ch; }
.lightbox { position: fixed; inset: 0; margin: auto; width: fit-content; height: fit-content; border: 0; padding: var(--space-s); border-radius: var(--radius-l); max-width: min(92vw, 34rem); max-height: 92vh; background: var(--color-surface); box-shadow: var(--shadow-m); }
.lightbox::backdrop { background: rgb(19 32 74 / 0.72); }
.lightbox__vid { display: block; max-width: 100%; max-height: 76vh; margin-inline: auto; border-radius: var(--radius-m); background: #000; }
.lightbox__img[hidden], .lightbox__vid[hidden] { display: none; }
.lightbox__img { display: block; max-width: 100%; max-height: 76vh; margin-inline: auto; border-radius: var(--radius-m); }
.lightbox__cap { margin-top: var(--space-xs); font-weight: 600; text-align: center; }
.lightbox__close { position: absolute; top: var(--space-2xs); right: var(--space-2xs); width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--color-ink); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
/* Without motion the strip is a swipeable row and the copy is dropped */
@media (prefers-reduced-motion: reduce) {
  .proofs__strip { overflow-x: auto; scroll-snap-type: x mandatory; mask-image: none; }
  .proofs__track[aria-hidden] { display: none; }
  .proof { scroll-snap-align: start; }
}

/* ---- RJ portrait: a circle with the network's orbit ring and an ember node ---- */
.portrait { position: relative; margin: 0; width: min(84%, 24rem); justify-self: center; display: grid; gap: var(--space-s); justify-items: center; }
.portrait picture { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.portrait picture::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 1.5px dashed var(--color-line-strong); }
.portrait picture::after { content: ""; position: absolute; top: 9%; right: 4%; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--color-ember); box-shadow: 0 0 0 6px rgb(242 138 46 / 0.18); }
.portrait img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-m); }
.portrait figcaption { font-family: var(--font-mono); font-weight: 500; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.portrait figcaption b { color: var(--color-ink); }

/* ---- Promise lists ---- */
.ticks, .crosses { list-style: none; padding: 0; display: grid; gap: var(--space-xs); }
.ticks li, .crosses li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--space-2xs); align-items: start; }
.ticks li::before { content: "✓"; color: var(--color-accent); font-weight: var(--weight-heavy); }
.crosses li::before { content: "✕"; color: var(--color-ember-ink); font-weight: var(--weight-heavy); }

/* ---- Inner page hero: white, with a small network on the right ---- */
.page-hero {
  padding-block: var(--space-2xl); border-bottom: 1px solid var(--color-line);
  background: var(--color-bg) url("assets/network-mini.svg") no-repeat right max(var(--gutter), calc((100% - var(--container)) / 2)) center / clamp(12rem, 26vw, 22rem) auto;
}
.page-hero .container { display: grid; gap: var(--space-s); }
.page-hero .h1 { max-width: 16ch; }
.page-hero .lede { max-width: 50ch; }
.page-hero .kicker { justify-self: start; }
.page-hero .cluster { margin-top: var(--space-xs); }
@media (max-width: 55.99rem) { .page-hero { background-image: none; } }

/* ---- Sections ---- */
.section--inverse .lede, .section--inverse .prose { color: var(--color-inverse-muted); }
.section--inverse .btn--ghost { --btn-ink: var(--color-accent-ink); border-color: rgb(255 255 255 / 0.4); }
.section--inverse .h2 b, .section--inverse .stat__num b { color: var(--color-sky); }
.split--top { align-items: start; }
.prose-measure > p { max-width: var(--measure); }

/* ---- CTA: navy, with the network faint behind ---- */
/* CTA: navy with RJ's flame mark and a soft glow behind it */
.cta {
  border-radius: var(--radius-l);
  background:
    url("assets/logo-mark-white.svg") no-repeat right calc(var(--space-2xl) + 4%) center / auto 64%,
    radial-gradient(34% 85% at 84% 50%, rgb(35 80 224 / 0.5), transparent 70%),
    var(--color-ink);
}
.cta .h2 b { color: var(--color-sky); }
.cta { text-align: left; justify-items: start; padding: var(--space-2xl) var(--space-l); }
.cta .h2 { max-width: 16ch; }
.cta p { color: var(--color-inverse-muted); max-width: 44ch; }
.cta .btn { --btn-bg: var(--color-accent); }
.cta a.plain { color: var(--color-accent-ink); }
@media (max-width: 55.99rem) { .cta { background: var(--color-ink); } }

/* ---- Forms ---- */
.form { display: grid; gap: var(--space-s); padding: var(--space-m); border-radius: var(--radius-m); background: var(--color-surface); border: 1px solid var(--color-line); }
.field { display: grid; gap: var(--space-3xs); }
.field label { font-weight: var(--weight-strong); font-size: var(--step--1); }
.field .hint { font-size: var(--step--2); color: var(--color-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7em 0.9em; border-radius: var(--radius-s);
  border: 1px solid var(--color-muted); background: var(--color-surface); color: var(--color-ink);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.field [aria-invalid="true"] { border-color: var(--color-ember-ink); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3xs) var(--space-xs); align-items: start; font-size: var(--step--1); color: var(--color-muted); }
.consent input { width: 1.25rem; height: 1.25rem; margin: 0.15em 0 0; accent-color: var(--color-accent); }
.consent input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.consent a { color: var(--color-accent); }
.consent .error { grid-column: 2; }
.error { font-size: var(--step--1); color: var(--color-ember-ink); }
.form-status { padding: var(--space-s); border-radius: var(--radius-m); background: var(--color-accent-soft); color: var(--color-ink); }
.form .btn { justify-self: start; }

/* ---- Legal / prose ---- */
.prose h2 { font-size: var(--step-2); font-weight: var(--weight-heading); }
.prose > h2 { margin-top: var(--space-l); }
.notice { padding: var(--space-s) var(--space-m); border-radius: var(--radius-m); background: var(--color-ember-soft); color: var(--color-ink); border: 1px dashed var(--color-ember); }

/* ---- Footer ---- */
.site-footer { background: var(--color-surface-2); }
.site-footer h2 { font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--space-2xs); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--space-3xs); }
.footer-brand { display: grid; gap: var(--space-s); align-content: start; }
.footer-brand p { color: var(--color-muted); max-width: 32ch; }
.disclosure { margin-top: var(--space-l); font-size: var(--step--2); color: var(--color-muted); max-width: 90ch; }

/* ==========================================================================
   Motion (only when JS is on and motion is allowed)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* The network: lines draw out from YOU, the nodes pop, then the credit repair branch fades in */
  .js .hero-c__net[data-reveal] { opacity: 1; transform: none; }
  .js .hero-c__net .net-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-in-out); }
  .js .hero-c__net .net-lines path:nth-child(2) { transition-delay: 120ms; }
  .js .hero-c__net .net-lines path:nth-child(3) { transition-delay: 240ms; }
  .js .hero-c__net .net-lines path:nth-child(4) { transition-delay: 360ms; }
  .js .hero-c__net.is-in .net-lines path { stroke-dashoffset: 0; }
  .js .hero-c__net .net-labels text, .js .hero-c__net .net-repair, .js .hero-c__net .net-repair-node, .js .hero-c__net .net-chip { opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
  .js .hero-c__net .net-nodes circle { opacity: 0; transform-box: fill-box; transform-origin: center; scale: 0.3; transition: opacity var(--dur-slow) var(--ease-out), scale var(--dur-slow) var(--ease-out); transition-delay: calc(900ms + var(--n) * 120ms); }
  .js .hero-c__net .net-labels text { transition-delay: 1.3s; }
  .js .hero-c__net .net-repair, .js .hero-c__net .net-repair-node { transition-delay: 1.6s; }
  .js .hero-c__net .net-labels .net-repair-label { transition-delay: 1.8s; }
  .js .hero-c__net .net-chip { transition-delay: 500ms; }
  .js .hero-c__net.is-in .net-nodes circle, .js .hero-c__net.is-in .net-labels text, .js .hero-c__net.is-in .net-repair, .js .hero-c__net.is-in .net-repair-node, .js .hero-c__net.is-in .net-chip { opacity: 1; scale: 1; }
  .js .hero-c__net .net-you { transform-box: fill-box; transform-origin: center; scale: 0.85; transition: scale 700ms var(--ease-out); }
  .js .hero-c__net.is-in .net-you { scale: 1; }

  /* Capital flowing from the banks to YOU, once the lines are drawn */
  .js .hero-c__net.is-in .net-flow circle { opacity: 0.9; transition: opacity var(--dur-slow) 2.2s; }
  .js .hero-c__net.is-in .net-pulse { opacity: 1; transition: opacity var(--dur-slow) 2s; }
  .hero-c__net.is-paused .net-flow circle, .hero-c__net.is-paused .net-pulse { opacity: 0 !important; }

  /* The path: each connector extends toward the next step as it reveals */
  .js .path li::after { scale: 1 0; transition: scale 900ms var(--ease-out) calc(var(--i, 0) * 70ms + 300ms); }
  .js .path li.is-in::after { scale: 1 1; }
  @media (min-width: 56rem) {
    .js .path li::after { scale: 0 1; }
    .js .path li.is-in::after { scale: 1 1; }
  }

  /* Results strip drifts left forever (two copies of the list); hover or focus pauses it */
  .proofs__track { animation: proof-drift 84s linear infinite; }
  .proofs__strip:hover .proofs__track, .proofs__strip:focus-within .proofs__track, .proofs__strip.is-paused .proofs__track { animation-play-state: paused; }
  @keyframes proof-drift { to { transform: translateX(calc(-100% - var(--space-s))); } }

  /* Rotating headline word */
  .ghost__word.is-leaving { animation: word-out var(--dur-slow) var(--ease-in) forwards; }
  .ghost__word.is-entering { animation: word-in var(--dur-slow) var(--ease-out) both; }
  @keyframes word-out { to { opacity: 0; transform: translateY(-0.35em); } }
  @keyframes word-in { from { opacity: 0; transform: translateY(0.35em); } }
}

@media (prefers-reduced-motion: reduce) { .js .motion-toggle { display: none; } }
