/* =============================================================
   ZARAS — home-hero REDESIGN (v4)
   Replaces css/home-hero.v3.css. Same markup contract + data-*
   hooks so js/home-hero can drive it; same :root tokens.

   v4 — mobile hierarchy + spacing pass (desktop unchanged):
   - Mobile reorders so the operating-record card appears BEFORE
     the "Built for / Get paid" proof stats (proof is tertiary,
     below the payoff — matching the desktop hierarchy). Achieved
     by flattening .home-hero-left into the shell flex on mobile
     (display:contents) + ordering the card above proof.
   - Tighter mobile vertical rhythm so the paid footer + $payoff
     surface sooner. Vertical ledger preserved (no stepper).

   Design intent (per brief):
   - The Operating Record becomes the star: dimensional, lit,
     stacked with depth, with a real "PAID" payoff moment.
   - Left column: cleaner, bolder type, tighter rhythm.
   - Restrained teal — used only as the operational signal.

   Variant hooks (driven by the Tweaks panel, set on [data-home-hero]):
     data-scale  = compact | standard | display
     data-accent = gradient | solid | teal
     data-tilt   = flat | subtle | dramatic
     data-depth  = single | stack | deep
     data-sweep  = on | off
   ============================================================= */

/* ---------- Section ---------------------------------------------- */
.home-hero {
  position: relative;
  padding: 0;
  min-height: clamp(640px, 86svh, 880px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.home-hero-shell {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 64px;
  padding: 40px var(--gutter) 64px;
}

/* ---------- Substrate: routes that CONVERGE on the record -------- */
.home-hero-substrate {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.home-hero-substrate-zones::before,
.home-hero-substrate-zones::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
/* Primary teal horizon — pulled toward the record (right of center). */
.home-hero-substrate-zones::before {
  width: 920px; height: 720px; right: -120px; top: -6%;
  background: radial-gradient(closest-side, rgba(118,199,178,0.13), transparent 70%);
}
.home-hero-substrate-zones::after {
  width: 620px; height: 520px; right: 26%; top: 46%;
  background: radial-gradient(closest-side, rgba(255,250,240,0.04), transparent 70%);
}
.home-hero-substrate-routes {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(120% 120% at 72% 50%, #000 0%, #000 46%, transparent 86%);
          mask-image: radial-gradient(120% 120% at 72% 50%, #000 0%, #000 46%, transparent 86%);
}
.home-hero-substrate-routes svg {
  width: 100%; height: 100%; display: block; overflow: visible;
}
.home-hero-substrate path { fill: none; stroke: rgba(255,250,240,0.05); stroke-width: 1; }
.home-hero-substrate path.hi    { stroke: rgba(255,250,240,0.10); }
.home-hero-substrate path.trace {
  stroke: rgba(118,199,178,0.6);
  stroke-width: 1.5;
  stroke-dasharray: 7 360;
  filter: drop-shadow(0 0 5px rgba(118,199,178,0.55));
  animation: home-hero-trace 16s linear infinite;
}
@keyframes home-hero-trace {
  0%   { stroke-dashoffset:   0; opacity: 0; }
  6%   {                          opacity: 0.9; }
  94%  {                          opacity: 0.9; }
  100% { stroke-dashoffset: -368; opacity: 0; }
}
.home-hero-substrate circle.node       { fill: rgba(255,250,240,0.16); }
.home-hero-substrate circle.node-hi    { fill: rgba(255,250,240,0.30); }
.home-hero-substrate circle.node-live  {
  fill: var(--signal);
  filter: drop-shadow(0 0 7px rgba(118,199,178,0.8));
  animation: home-hero-node-breath 2.6s ease-in-out infinite;
}
@keyframes home-hero-node-breath {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
/* Faint vignette so the composition focuses inward. */
.home-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, transparent 56%, rgba(0,0,0,0.45) 100%);
}

/* =========================================================
   LEFT COLUMN — cleaner, bolder
   ========================================================= */
.home-hero-left { position: relative; max-width: 580px; }

.home-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  background: rgba(255,255,255,0.018);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-sub);
  margin-bottom: 34px;
  backdrop-filter: blur(4px);
}
.home-hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal);
  animation: home-hero-pulse 2.4s ease-out infinite;
}
.home-hero-eyebrow .div {
  width: 1px; height: 12px; background: var(--rule-hi); display: inline-block;
}
.home-hero-eyebrow-beta { color: var(--ink-mute); }
@keyframes home-hero-pulse {
  0%   { box-shadow: 0 0 0 0 var(--signal-weak); }
  70%  { box-shadow: 0 0 0 9px rgba(118,199,178,0); }
  100% { box-shadow: 0 0 0 0 rgba(118,199,178,0); }
}

.home-hero-h1 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 0.9;
  font-size: clamp(66px, 8vw, 128px);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.home-hero-h1 .line-1 { display: block; color: var(--ink); }
.home-hero-h1 .line-2 { display: block; }
.home-hero-h1 .line-3 { display: block; }
/* "to paid." is the payoff word — accent treatments are tweakable. */
.home-hero-h1 .pay {
  position: relative;
  background: linear-gradient(180deg, var(--signal-ink) 0%, var(--signal) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-hero-h1 .pay::after {
  content: "";
  position: absolute;
  left: 0.02em; right: 0.14em; bottom: 0.06em;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--signal) 0%, rgba(118,199,178,0) 100%);
  transform: scaleX(0);
  transform-origin: left;
  animation: home-hero-underline 900ms cubic-bezier(.22,1,.36,1) 600ms forwards;
}
@keyframes home-hero-underline { to { transform: scaleX(1); } }

/* accent = solid → muted ink-gradient, no teal on the word */
.home-hero[data-accent="solid"] .home-hero-h1 .pay {
  background: linear-gradient(180deg, var(--ink) 0%, #b9b6ad 100%);
  -webkit-background-clip: text; background-clip: text;
}
.home-hero[data-accent="solid"] .home-hero-h1 .pay::after { display: none; }
/* accent = teal → full teal fill, stronger */
.home-hero[data-accent="teal"] .home-hero-h1 .pay {
  background: none;
  -webkit-text-fill-color: var(--signal-ink);
  color: var(--signal-ink);
}

.home-hero-sub {
  margin: 30px 0 38px;
  color: var(--ink-sub);
  font-size: 18px;
  line-height: 1.5;
  max-width: 40ch;
  text-wrap: pretty;
}
.home-hero-sub strong { color: var(--ink); font-weight: 500; }

.home-hero-cta-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.home-hero-cta-primary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 24px;
  background: var(--ink); color: #0a0a0a;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 16px 34px -16px rgba(255,255,255,0.20),
    0 2px 4px -2px rgba(0,0,0,0.5);
  transition: transform 240ms cubic-bezier(.2,.6,.1,1), background 240ms ease, box-shadow 240ms ease;
  min-height: 48px;
}
.home-hero-cta-primary:hover { transform: translateY(-1px); background: #fff; }
.home-hero-cta-primary .arr {
  border-left: 1px solid rgba(0,0,0,0.18);
  padding-left: 14px;
  transition: transform 240ms cubic-bezier(.2,.6,.1,1);
}
.home-hero-cta-primary:hover .arr { transform: translateX(3px); }

.home-hero-cta-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-sub);
  text-decoration: none;
  padding: 14px 4px;
  min-height: 48px;
  transition: color 180ms ease;
}
.home-hero-cta-ghost:hover { color: var(--ink); }
.home-hero-cta-ghost .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
}
.home-hero-cta-ghost .arr { color: var(--ink-mute); transition: transform 220ms cubic-bezier(.2,.7,.2,1), color 180ms ease; }
.home-hero-cta-ghost:hover .arr { color: var(--ink); transform: translateX(3px); }

.home-hero-left .home-hero-cta-note {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 34px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
}
.home-hero-cta-note .tick {
  color: var(--signal); font-size: 12px;
}

/* Proof — quieter, hairline-separated, single tidy row */
.home-hero-proof {
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  max-width: 480px;
}
.home-hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.home-hero-proof-item + .home-hero-proof-item {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}
.home-hero-proof .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.home-hero-proof .v {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* =========================================================
   RIGHT COLUMN — the dramatized Operating Record
   ========================================================= */
.home-hero-right {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D scene */
.home-hero-record-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  z-index: 2;
  perspective: 1700px;
  perspective-origin: 60% 42%;
}

/* Aura behind the whole device */
.home-hero-record-aura {
  position: absolute;
  inset: -12% -16%;
  background: radial-gradient(50% 58% at 52% 48%,
    rgba(118,199,178,0.18) 0%,
    rgba(118,199,178,0.05) 40%,
    transparent 74%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 700ms ease;
}
.home-hero-record-wrap.is-paid .home-hero-record-aura { opacity: 1.6; }

/* Ground contact shadow */
.home-hero-record-shadow {
  position: absolute;
  left: 8%; right: 8%; bottom: -7%;
  height: 60px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(0,0,0,0.6), transparent 72%);
  filter: blur(12px);
  transform: translateZ(-120px);
  pointer-events: none;
  z-index: 0;
}

/* The tilted record + its depth stack share this transform group */
.home-hero-record-tilt {
  position: relative;
  transform-style: preserve-3d;
  transform:
    rotateY(var(--rec-ry, -8deg))
    rotateX(var(--rec-rx, 3.5deg))
    translateZ(0);
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.home-hero[data-tilt="flat"]    .home-hero-record-tilt { --rec-ry: 0deg;   --rec-rx: 0deg; }
.home-hero[data-tilt="subtle"]  .home-hero-record-tilt { --rec-ry: -8deg;  --rec-rx: 3.5deg; }
.home-hero[data-tilt="dramatic"].home-hero-record-tilt,
.home-hero[data-tilt="dramatic"] .home-hero-record-tilt { --rec-ry: -15deg; --rec-rx: 6deg; }

/* Depth ghosts — silhouettes of past/future records behind the live one. */
.home-hero-record-ghost {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%), var(--bg-sub);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.9);
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease, transform 500ms ease;
}
.home-hero-record-ghost .gh-band {
  height: 46px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 8px;
  padding: 0 22px;
}
.home-hero-record-ghost .gh-band::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-faint);
}
.home-hero-record-ghost .gh-line {
  height: 1px; margin: 22px 24px 0;
  background: var(--rule);
}
.home-hero-record-ghost .gh-line.short { width: 40%; }
.home-hero-record-ghost-1 { transform: translate3d(26px, -22px, -150px); }
.home-hero-record-ghost-2 { transform: translate3d(46px, -40px, -300px); }

/* Show ghosts per depth setting */
.home-hero[data-depth="stack"] .home-hero-record-ghost-1 { opacity: 0.5; }
.home-hero[data-depth="deep"]  .home-hero-record-ghost-1 { opacity: 0.55; }
.home-hero[data-depth="deep"]  .home-hero-record-ghost-2 { opacity: 0.32; }

/* ---------- The live record card ------------------------------- */
.home-hero-record {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 16%),
    var(--bg-sub);
  border: 1px solid var(--rule-hi);
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 2px 0 rgba(0,0,0,0.4),
    0 60px 120px -42px rgba(0,0,0,0.95),
    0 18px 40px -22px rgba(0,0,0,0.7);
  transition: box-shadow 700ms ease;
}
.home-hero-record-wrap.is-paid .home-hero-record {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 2px 0 rgba(0,0,0,0.4),
    0 60px 120px -42px rgba(0,0,0,0.95),
    0 0 0 1px rgba(118,199,178,0.18),
    0 24px 60px -26px rgba(118,199,178,0.28);
}

/* Specular sweep across the glass */
.home-hero-record-sheen {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
  mix-blend-mode: screen;
}
.home-hero-record-sheen::before {
  content: "";
  position: absolute;
  top: -60%; bottom: -60%; left: -40%;
  width: 20%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,0.012) 42%,
    rgba(255,255,255,0.035) 50%,
    rgba(255,255,255,0.012) 58%,
    transparent 100%);
  transform: skewX(-14deg) translateX(0);
  animation: home-hero-sheen 9s ease-in-out infinite;
}
@keyframes home-hero-sheen {
  0%, 30%   { transform: skewX(-14deg) translateX(-40px); opacity: 0; }
  40%       { opacity: 0.6; }
  52%       { opacity: 0.6; }
  60%       { transform: skewX(-14deg) translateX(640px); opacity: 0; }
  100%      { transform: skewX(-14deg) translateX(640px); opacity: 0; }
}
.home-hero[data-sweep="off"] .home-hero-record-sheen { display: none; }

/* Header band */
.home-hero-record-band {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-sub);
}
.home-hero-record-band-left { display: inline-flex; align-items: center; gap: 10px; }
.home-hero-record-band-left .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  animation: home-hero-pulse 2.4s ease-out infinite;
}
.home-hero-record-band-chip {
  font-size: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule-hi);
  color: var(--ink-sub);
  letter-spacing: 0.16em;
  white-space: nowrap;
  transition: color 360ms ease, background 360ms ease, border-color 360ms ease;
}
.home-hero-record-band-chip .pip {
  display: none; vertical-align: middle;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--signal);
  margin-right: 7px;
  transform: translateY(-1px);
}
.home-hero-record-band-chip.is-live {
  color: var(--signal-ink);
  border-color: var(--signal-rule);
  background: var(--signal-weak);
}
.home-hero-record-band-chip.is-live .pip {
  display: inline-block;
  animation: home-hero-pulse 2.2s ease-out infinite;
}

/* Customer header */
.home-hero-record-header {
  padding: 24px 26px 22px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
}
.home-hero-avatar {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--rule-hi);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 18px; font-weight: 500;
  color: var(--ink-sub);
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}
.home-hero-record-header-name {
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.1;
}
.home-hero-record-header-addr {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ink-sub);
  letter-spacing: -0.004em;
}

/* Job summary */
.home-hero-record-job {
  padding: 18px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
}
.home-hero-record-job-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.35;
}
.home-hero-record-job-price {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-sub);
  letter-spacing: -0.014em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Workflow spine (the signature) -------------------- */
.home-hero-spine {
  position: relative;
  padding: 22px 26px;
}
.home-hero-spine-track {
  position: absolute;
  left: calc(26px + 7px);
  top: 48px;
  bottom: 48px;
  width: 1px;
  background: var(--rule);
  z-index: 0;
}
.home-hero-spine-fill {
  position: absolute;
  left: calc(26px + 7px);
  top: 48px;
  bottom: 48px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,250,240,0.55) 0%, var(--signal) 100%);
  box-shadow: 0 0 12px rgba(118,199,178,0.55);
  z-index: 1;
  transition: height 1000ms cubic-bezier(.22, 1, .36, 1);
}
.home-hero-spine-fill::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  transform: translateX(-50%);
  box-shadow: 0 0 14px 2px rgba(118,199,178,0.9), 0 0 30px 5px rgba(118,199,178,0.4);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.home-hero-spine-fill.is-traveling::after { opacity: 1; }
.home-hero-phase {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-radius: 8px;
  transition: background 500ms cubic-bezier(.4,0,.2,1);
}
.home-hero-phase + .home-hero-phase { margin-top: 4px; }
.home-hero-phase-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-sub);
  border: 1.5px solid var(--rule-hi);
  justify-self: start;
  position: relative;
  transition: background 500ms ease, border-color 500ms ease, box-shadow 500ms ease, transform 500ms ease;
}
.home-hero-phase.is-done .home-hero-phase-dot {
  background: var(--ink-sub);
  border-color: var(--ink-sub);
}
.home-hero-phase.is-done .home-hero-phase-dot::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.2 7 10.5 11.5 5.5' fill='none' stroke='%230b0a09' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}
.home-hero-phase.is-active .home-hero-phase-dot {
  background: var(--signal);
  border-color: var(--signal);
  transform: scale(1.06);
  box-shadow: 0 0 0 6px var(--signal-weak), 0 0 26px rgba(118,199,178,0.65);
  animation:
    home-hero-active-ignite 280ms cubic-bezier(.22, 1, .36, 1) 800ms 1,
    home-hero-active-breath 2.8s ease-in-out infinite;
}
@keyframes home-hero-active-ignite {
  0%   { transform: scale(1.3); }
  100% { transform: scale(1.06); }
}
@keyframes home-hero-active-breath {
  0%, 100% { box-shadow: 0 0 0 6px var(--signal-weak), 0 0 18px rgba(118,199,178,0.5); }
  50%      { box-shadow: 0 0 0 9px rgba(118,199,178,0.04), 0 0 32px rgba(118,199,178,0.8); }
}
.home-hero-record-wrap.is-paused .home-hero-phase.is-active .home-hero-phase-dot {
  animation-play-state: paused;
  box-shadow: 0 0 0 5px var(--signal-weak), 0 0 14px rgba(118,199,178,0.4);
}
.home-hero-phase-label {
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 400;
  letter-spacing: -0.010em;
  color: var(--ink-mute);
  transition: color 500ms ease;
}
.home-hero-phase-detail {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: -0.004em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: color 500ms ease, opacity 500ms ease;
}
.home-hero-phase.is-done   .home-hero-phase-label  { color: var(--ink-sub); }
.home-hero-phase.is-done   .home-hero-phase-detail { color: var(--ink-sub); opacity: 0.78; }
.home-hero-phase.is-active .home-hero-phase-label  { color: var(--ink); font-weight: 500; }
.home-hero-phase.is-active .home-hero-phase-detail { color: var(--signal-ink); }
.home-hero-phase.is-upcoming .home-hero-phase-label { color: var(--ink-mute); opacity: 0.5; }
.home-hero-phase.is-upcoming .home-hero-phase-detail { color: transparent; }

/* ---------- Payment payoff ------------------------------------- */
.home-hero-payment {
  position: relative;
  padding: 22px 26px 24px;
  border-top: 1px solid var(--rule);
  background: linear-gradient(180deg, transparent 0%, rgba(255,250,240,0.015) 100%);
  transition: background 600ms ease;
  overflow: hidden;
}
.home-hero-payment::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: transparent;
  transition: background 500ms ease, box-shadow 500ms ease;
}
.home-hero-payment.is-paid::before {
  background: var(--signal);
  box-shadow: 0 0 16px rgba(118,199,178,0.7);
  animation: home-hero-accent-pulse 3.2s ease-in-out infinite;
}
@keyframes home-hero-accent-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(118,199,178,0.55); }
  50%      { box-shadow: 0 0 24px rgba(118,199,178,0.95); }
}
.home-hero-payment.is-paid {
  background: linear-gradient(180deg, rgba(118,199,178,0.10) 0%, rgba(118,199,178,0.02) 100%);
}
/* PAID flash wash — one cinematic beat when the cycle clears */
.home-hero-payment-flash {
  position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 18% 50%, rgba(118,199,178,0.35), transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.home-hero-payment.just-paid .home-hero-payment-flash {
  animation: home-hero-paid-flash 1100ms ease-out 1;
}
@keyframes home-hero-paid-flash {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  100% { opacity: 0; }
}
.home-hero-payment-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  transition: color 500ms ease;
}
.home-hero-payment.is-paid .home-hero-payment-label { color: var(--signal-ink); }
.home-hero-payment-label .pip {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-mute);
  transition: background 500ms ease, box-shadow 500ms ease;
}
.home-hero-payment.is-paid .home-hero-payment-label .pip {
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
}
.home-hero-payment-amount {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.home-hero-payment-amount-lead {
  display: flex; align-items: center; gap: 14px;
}
/* Animated check seal that draws in on PAID */
.home-hero-payment-seal {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--signal-rule);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 400ms ease, transform 500ms cubic-bezier(.22,1,.36,1), background 500ms ease, box-shadow 500ms ease;
}
.home-hero-payment-seal svg { width: 18px; height: 18px; display: block; }
.home-hero-payment-seal svg path {
  stroke: var(--signal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
}
.home-hero-payment.is-paid .home-hero-payment-seal {
  opacity: 1;
  transform: scale(1);
  background: var(--signal-weak);
  box-shadow: 0 0 0 5px rgba(118,199,178,0.07), 0 0 22px rgba(118,199,178,0.4);
}
.home-hero-payment.is-paid .home-hero-payment-seal svg path {
  animation: home-hero-check-draw 520ms cubic-bezier(.65,0,.35,1) 180ms forwards;
}
@keyframes home-hero-check-draw { to { stroke-dashoffset: 0; } }
.home-hero-payment-amount-value {
  font-family: var(--sans);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.026em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color 600ms ease;
}
.home-hero-payment.is-paid .home-hero-payment-amount-value { color: var(--ink); }
.home-hero-payment-amount-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 500ms ease;
  text-align: right;
  line-height: 1.55;
}
.home-hero-payment.is-paid .home-hero-payment-amount-meta { color: var(--signal-ink); }
.home-hero-payment-amount-meta strong { display: block; color: inherit; font-weight: 400; }

/* =========================================================
   TYPE-SCALE variants (Tweaks)
   ========================================================= */
.home-hero[data-scale="compact"]  .home-hero-h1 { font-size: clamp(54px, 6.2vw, 96px); }
.home-hero[data-scale="display"]  .home-hero-h1 { font-size: clamp(74px, 9.4vw, 150px); letter-spacing: -0.044em; }
.home-hero[data-scale="display"]  .home-hero-sub { font-size: 19px; }

/* =========================================================
   ENTRANCE — the composed first-load moment.
   IMPORTANT: opacity stays 1 throughout. The hero must never be
   invisible if a CSS animation freezes (e.g. backgrounded tab) —
   transform-only entrances degrade to "slightly offset", never blank.
   ========================================================= */
.home-hero[data-anim] .home-hero-left > * {
  transform: translateY(16px);
  animation: home-hero-rise 760ms cubic-bezier(.2,.7,.2,1) both;
}
.home-hero[data-anim] .home-hero-eyebrow      { animation-delay: 40ms; }
.home-hero[data-anim] .home-hero-h1           { animation-delay: 110ms; }
.home-hero[data-anim] .home-hero-sub          { animation-delay: 220ms; }
.home-hero[data-anim] .home-hero-cta-row      { animation-delay: 320ms; }
.home-hero[data-anim] .home-hero-cta-note     { animation-delay: 400ms; }
.home-hero[data-anim] .home-hero-proof        { animation-delay: 470ms; }
@keyframes home-hero-rise {
  from { transform: translateY(16px); }
  to   { transform: translateY(0); }
}

.home-hero[data-anim] .home-hero-record-wrap {
  animation: home-hero-record-in 1100ms cubic-bezier(.2,.7,.2,1) 240ms both;
}
@keyframes home-hero-record-in {
  from { transform: translateY(26px) scale(0.975); }
  to   { transform: translateY(0) scale(1); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Tablet / small desktop: keep the 2-up composition but shrink the
   record so it never crowds the headline before the mobile stack. */
@media (min-width: 961px) and (max-width: 1180px) {
  .home-hero-shell { gap: 44px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-hero-record-wrap { max-width: 470px; }
  .home-hero-left { max-width: 520px; }
  .home-hero-h1 { font-size: clamp(54px, 6.2vw, 82px); }
  .home-hero[data-scale="display"] .home-hero-h1 { font-size: clamp(58px, 6.8vw, 92px); }
  .home-hero-record-ghost-1 { transform: translate3d(20px, -16px, -150px); }
  .home-hero-record-ghost-2 { transform: translate3d(34px, -30px, -300px); }
}
@media (max-width: 960px) {
  .home-hero { min-height: 0; }
  /* Flatten the two-column grid into a single flex column AND dissolve the
     left column's box (display:contents) so its children + the record card
     become direct flex items of the shell. That lets `order` interleave the
     card between the CTA cluster and the proof stats — moving the product
     payoff up and the tertiary "Built for / Get paid" proof below it, which
     mirrors the desktop hierarchy. gap:0 — internal rhythm is margin-driven. */
  .home-hero-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    /* v6: a touch more breathing room under the sticky nav so the H1's first
       line ("From") isn't pressed against the bar on mobile (28px → 46px).
       The nav is a separate in-flow 80px bar, so this is on top of that. */
    padding: 46px var(--gutter) 36px;
  }
  .home-hero-left { display: contents; }
  .home-hero-eyebrow { align-self: flex-start; margin-bottom: 24px; }
  .home-hero-right { order: 1; }   /* operating-record card — after CTA/fit  */
  .home-hero-proof { order: 2; }   /* tertiary proof stats — below the card  */

  .home-hero-h1,
  .home-hero[data-scale="compact"] .home-hero-h1,
  .home-hero[data-scale="display"] .home-hero-h1 { font-size: clamp(44px, 11vw, 76px); }
  .home-hero-sub,
  .home-hero[data-scale="display"] .home-hero-sub { font-size: 16px; margin: 18px 0 22px; }
  .home-hero-cta-row { gap: 14px; }
  /* Tighten CTA-row → fit-note → card spacing (margin-driven; no flex gap). */
  .home-hero-left .home-hero-cta-note { margin: 11px 0 0; }
  .home-hero-right {
    height: auto;
    margin: 20px 0 16px;             /* fit-note → card (20) · card → proof (16 + proof pad) */
  }
  .home-hero-proof { padding-top: 16px; }
  .home-hero-record-wrap {
    max-width: 520px;
    margin: 0 auto;
    perspective: none;
  }
  /* Flatten the tilt on stacked layout so the card reads cleanly above the fold */
  .home-hero-record-tilt,
  .home-hero[data-tilt="subtle"] .home-hero-record-tilt,
  .home-hero[data-tilt="dramatic"] .home-hero-record-tilt { --rec-ry: 0deg; --rec-rx: 0deg; }
  .home-hero-record-ghost { display: none; }
  .home-hero-record-band { padding: 12px 16px; font-size: 9.5px; letter-spacing: 0.18em; }
  .home-hero-record-header { padding: 18px 18px 16px; grid-template-columns: 44px 1fr; gap: 14px; }
  .home-hero-avatar { width: 44px; height: 44px; font-size: 14px; }
  .home-hero-record-header-name { font-size: 19px; }
  .home-hero-record-header-addr { font-size: 12.5px; }
  .home-hero-record-job { padding: 14px 18px; }
  .home-hero-record-job-title { font-size: 15px; }
  .home-hero-record-job-price { font-size: 15px; }
  .home-hero-spine { padding: 18px 18px; }
  .home-hero-spine-track { left: calc(18px + 6px); top: 36px; bottom: 36px; }
  .home-hero-spine-fill  { left: calc(18px + 6px); top: 36px; }
  .home-hero-phase { grid-template-columns: 26px 1fr; gap: 14px; padding: 9px 0; }
  .home-hero-phase-dot { width: 13px; height: 13px; }
  .home-hero-phase-label { font-size: 14px; }
  .home-hero-phase-detail { display: none; }
  .home-hero-payment { padding: 16px 18px 18px; }
  .home-hero-payment-amount-value { font-size: 28px; }
  .home-hero-payment-seal { width: 30px; height: 30px; }
}
@media (max-width: 720px) {
  .home-hero-shell { padding-left: 18px; padding-right: 18px; }
  .home-hero-proof { gap: 18px; }
  .home-hero-proof-item + .home-hero-proof-item { padding-left: 18px; }
}

/* SE-class phones: the eyebrow chip ("ZRS · OPERATING RECORD" + "PRIVATE
   BETA", mono 11px/0.18em) needs ~362px and only ~339px is available at
   375px (gutter 18px each side), so it wraps raggedly. Stack it as an
   intentional 2-line chip — same pattern as .hp-eyebrow on the platform
   teaser: dot spans both rows, the vertical rule (.div) is hidden, the chip
   hugs content. No query container on the hero, so this is a media query. */
@media (max-width: 400px) {
  .home-hero-eyebrow { display: inline-grid; grid-template-columns: auto 1fr;
                       align-items: center; column-gap: 10px; row-gap: 2px; }
  .home-hero-eyebrow .dot { grid-column: 1; grid-row: 1 / 3; }
  .home-hero-eyebrow .div { display: none; }
}

/* Reduced motion — pin everything, no cycling/sheen/parallax */
@media (prefers-reduced-motion: reduce) {
  .home-hero-substrate path.trace,
  .home-hero-substrate circle.node-live,
  .home-hero-eyebrow .dot,
  .home-hero-record-band-left .d,
  .home-hero-record-band-chip.is-live .pip,
  .home-hero-phase.is-active .home-hero-phase-dot,
  .home-hero-payment.is-paid::before,
  .home-hero-record-sheen::before,
  .home-hero-h1 .pay::after {
    animation: none !important;
  }
  .home-hero-spine-fill { transition: none; }
  .home-hero[data-anim] .home-hero-left > *,
  .home-hero[data-anim] .home-hero-record-wrap {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .home-hero-record-tilt { --rec-ry: 0deg; --rec-rx: 0deg; }
}

/* =========================================================
   SCROLL CUE — small "scroll" affordance pinned to the hero
   foot (desktop only). Folded in from the prototype so this
   stylesheet is self-contained. Drop this block if you don't
   want the cue.
   ========================================================= */
.home-hero .scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 4; display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute); pointer-events: none; opacity: 0.7;
}
.home-hero .scroll-cue .bar {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, var(--rule-hi), transparent);
  position: relative; overflow: hidden;
}
.home-hero .scroll-cue .bar::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 10px;
  background: var(--signal); animation: home-hero-cue 2.4s ease-in-out infinite;
}
@keyframes home-hero-cue {
  0%   { transform: translateY(-12px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(30px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .home-hero .scroll-cue .bar::after { animation: none; } }
@media (max-width: 960px) { .home-hero .scroll-cue { display: none; } }
