/* Vibe SDK — proof plane (Julia v4 · homepage-aligned) */

.vibe-proof-wrap {
  padding-top: 36px;
}

.vibe-proof-wrap .hero-stage {
  align-items: start;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}

/* Temporary: aside hidden while left demo carries the story (Haim/Uzi) */
.vibe-story-aside.is-temp-hidden {
  display: none !important;
}

.vibe-proof-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 18px;
}

.vibe-proof-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.08;
}

.vibe-proof-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.vibe-proof-eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Compact aside */
.vibe-story-aside {
  gap: 8px !important;
  padding: 14px 16px !important;
}

.vibe-story-aside h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.vibe-story-aside > p {
  font-size: 13px;
  line-height: 1.45;
}

.vibe-story-aside .benefits {
  margin-top: 4px;
  gap: 6px;
}

.vibe-story-aside .benefits li {
  font-size: 13px;
}

/* Crossfade text swaps */
.vibe-swap {
  display: inline-block;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.vibe-swap.is-out {
  opacity: 0;
  transform: translateY(3px);
}

.vibe-swap.is-in {
  animation: vibe-swap-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes vibe-swap-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reserved slots — no layout jump */
.vibe-slot {
  min-height: 0;
  transition: min-height 0.35s ease;
}

.vibe-budget-slot.has-content {
  min-height: 44px;
  margin-bottom: 8px;
}

.vibe-why-slot.has-content {
  min-height: 36px;
  margin-top: 8px;
}

/* Three-pane transform */
.vibe-transform {
  display: grid;
  grid-template-columns: 1fr 28px auto 28px 1fr;
  align-items: stretch;
  gap: 0;
  margin-bottom: 4px;
}

.vibe-pane {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(248, 249, 253, 0.55);
  padding: 10px 10px;
  text-align: center;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.4s ease;
}

html[data-theme='dark'] .vibe-pane {
  background: rgba(9, 14, 26, 0.45);
}

.vibe-pane.is-dim {
  opacity: 0.4;
  filter: grayscale(0.15);
  transform: scale(0.985);
}

.vibe-pane.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1);
  border-color: rgba(47, 125, 255, 0.38);
  box-shadow: 0 6px 18px rgba(47, 125, 255, 0.1);
}

.vibe-pane.is-done {
  opacity: 1;
  filter: none;
  transform: scale(1);
  border-color: rgba(22, 194, 164, 0.42);
  box-shadow: 0 6px 18px rgba(22, 194, 164, 0.1);
}

.vibe-pane.is-pop {
  animation: vibe-pane-pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pane-kicker {
  margin: 0 0 6px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}

.pane-fields {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  text-align: left;
}

.pane-fields li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  line-height: 1.3;
  padding: 2px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent);
  transition:
    opacity 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.pane-fields li:last-child {
  border-bottom: 0;
}

.pane-fields li span {
  color: var(--muted);
}

.pane-fields li strong {
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-align: right;
}

.pane-fields li.is-struck span,
.pane-fields li.is-struck strong {
  color: var(--rose);
  opacity: 0.72;
  text-decoration: line-through;
}

.pane-fields li.is-placeholder {
  opacity: 0.4;
  justify-content: center;
}

.pane-fields li.is-new {
  animation: vibe-field-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.vibe-pane.result .pane-fields li strong {
  color: var(--teal);
}

html[data-theme='dark'] .vibe-pane.result .pane-fields li strong {
  color: #6ee7b7;
}

.vibe-why-strip {
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0 10px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.4s ease,
    max-height 0.4s ease,
    padding 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease,
    transform 0.4s ease;
}

.vibe-why-strip.is-visible {
  opacity: 1;
  max-height: 48px;
  padding: 8px 10px;
  border-color: rgba(22, 194, 164, 0.28);
  background: rgba(22, 194, 164, 0.06);
  transform: translateY(0);
}

.vibe-why-body {
  margin: 0;
  font-size: 11px;
  color: var(--ink);
  line-height: 1.35;
}

.vibe-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  min-width: 72px;
}

.vibe-engine-dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  display: grid;
  place-items: center;
  position: relative;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.vibe-engine-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  opacity: 0.9;
  /* Asset is light — invert for light theme (same as .site-logo) */
  filter: invert(1);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    filter 0.35s ease;
}

html[data-theme='dark'] .vibe-engine-logo {
  filter: invert(0);
  opacity: 0.92;
}

.vibe-engine-dot.is-active {
  border-color: rgba(47, 125, 255, 0.45);
  box-shadow: 0 0 0 5px rgba(47, 125, 255, 0.08);
  transform: scale(1.05);
  animation: vibe-engine-ring 1.2s ease-in-out infinite;
}

.vibe-engine-dot.is-active .vibe-engine-logo {
  opacity: 1;
  animation: vibe-engine-think 1.2s ease-in-out infinite;
}

.vibe-engine-dot.is-done {
  transform: scale(1);
  border-color: rgba(22, 194, 164, 0.45);
  box-shadow: 0 0 0 4px rgba(22, 194, 164, 0.08);
  animation: none;
}

.vibe-engine-dot.is-done .vibe-engine-logo {
  opacity: 1;
  animation: none;
  transform: scale(1.05);
}

.vibe-engine-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.vibe-engine-status {
  font-size: 10px;
  color: var(--chip-ink);
  text-align: center;
  line-height: 1.25;
  min-height: 24px;
}

/* Flow arrows */
.vibe-arrow {
  position: relative;
  align-self: center;
  width: 28px;
  height: 12px;
  opacity: 0.25;
  transition: opacity 0.35s ease;
}

.vibe-arrow-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.35s ease;
}

.vibe-arrow-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transform: rotate(45deg);
  transition: border-color 0.35s ease;
}

.vibe-arrow-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0;
  box-shadow: 0 0 6px rgba(47, 125, 255, 0.45);
}

.vibe-arrow.is-lit {
  opacity: 1;
}

.vibe-arrow.is-lit .vibe-arrow-line,
.vibe-arrow.is-lit .vibe-arrow-line::after {
  background: rgba(47, 125, 255, 0.4);
  border-color: rgba(47, 125, 255, 0.55);
}

.vibe-arrow.is-done {
  opacity: 1;
}

.vibe-arrow.is-done .vibe-arrow-line {
  background: rgba(22, 194, 164, 0.5);
}

.vibe-arrow.is-done .vibe-arrow-line::after {
  border-color: var(--teal);
}

.vibe-arrow.is-done .vibe-arrow-dot {
  background: var(--teal);
  box-shadow: 0 0 6px rgba(22, 194, 164, 0.45);
}

.vibe-arrow.is-flowing .vibe-arrow-dot {
  animation: vibe-arrow-flow 0.7s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

/* Budget strip */
.vibe-budget-strip {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 10px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.4s ease,
    max-height 0.4s ease,
    padding 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease,
    transform 0.4s ease;
}

.vibe-budget-strip.is-visible {
  opacity: 1;
  max-height: 52px;
  padding: 7px 10px;
  border-color: var(--line);
  background: rgba(248, 249, 253, 0.55);
  transform: translateY(0);
}

html[data-theme='dark'] .vibe-budget-strip.is-visible {
  background: rgba(9, 14, 26, 0.4);
}

.vibe-budget-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.vibe-budget-top strong {
  color: var(--ink);
}

.vibe-budget-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(20, 26, 40, 0.08);
  overflow: hidden;
}

html[data-theme='dark'] .vibe-budget-bar {
  background: rgba(231, 237, 255, 0.08);
}

.vibe-budget-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, var(--rose));
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.vibe-budget-strip.is-visible i {
  width: 98%;
}

.vibe-budget-strip.is-pulse i {
  animation: vibe-budget-pulse 0.8s ease;
}

/* Step progress */
.vibe-progress {
  margin-bottom: 10px;
}

.vibe-progress-track {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 10px;
}

.vibe-progress-fill {
  height: 100%;
  width: 12.5%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.vibe-progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.vibe-progress-step {
  flex: 1;
  text-align: center;
  position: relative;
  cursor: pointer;
}

.vibe-progress-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition:
    color 0.45s ease,
    transform 0.45s ease;
}

.vibe-progress-step.is-active .vibe-progress-label {
  color: var(--ink);
  transform: scale(1.04);
}

.vibe-progress-step.is-done .vibe-progress-label {
  color: var(--teal);
}

/* Mini-log — progressive reveal + computing state */
.vibe-trace-log {
  display: grid;
  gap: 2px;
}

.vibe-trace-log .line {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  column-gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 8px;
  margin: 0;
  border-radius: 8px;
  border-bottom: 0;
  box-sizing: border-box;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    padding 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.vibe-trace-log .line.is-visible {
  max-height: 34px;
  opacity: 1;
  padding: 6px 8px;
}

.line-tag {
  flex-shrink: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.line-detail {
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-computing {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  color: var(--blue);
  font-weight: 600;
}

.line-result {
  display: none;
  color: var(--muted);
  transition: color 0.3s ease;
}

.line.is-computing .line-computing {
  display: inline-flex;
}

.line.is-ready .line-computing {
  display: none;
}

.line.is-ready .line-result {
  display: inline;
}

.compute-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 1px;
}

.compute-dots i {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0.35;
  animation: vibe-dot-pulse 1s ease-in-out infinite;
}

.compute-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.compute-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.vibe-trace-log .line.is-active.is-computing {
  color: var(--ink);
  background: rgba(47, 125, 255, 0.1);
}

.vibe-trace-log .line.is-active.is-computing .line-tag {
  color: var(--ink);
  font-weight: 600;
}

.vibe-trace-log .line.is-ready.is-done {
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  background: transparent;
}

.vibe-trace-log .line.is-ready.is-done .line-tag {
  color: color-mix(in srgb, var(--ink) 55%, var(--muted));
  font-weight: 400;
}

.vibe-trace-log .line.is-ready.is-done .line-result {
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
}

.vibe-trace-log .line.is-ready.is-done.is-just-finished {
  animation: vibe-trace-glow 0.55s ease;
}

.vibe-trace-log .line.is-ready.is-done.is-just-finished .line-result {
  color: var(--ink);
  font-weight: 600;
}

.vibe-caption-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.vibe-caption {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.vibe-replay-btn {
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--chip-ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.vibe-replay-btn:hover {
  filter: brightness(1.05);
}

.vibe-replay-btn:active {
  transform: scale(0.97);
}

#vibe-story-demo.is-stepping .vibe-transform {
  pointer-events: none;
}

/* Aside diff — compact compare */
.vibe-diff {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(248, 249, 253, 0.5);
}

html[data-theme='dark'] .vibe-diff {
  background: rgba(9, 14, 26, 0.35);
}

.vibe-diff-label {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.vibe-diff-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vibe-diff-side-label {
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.vibe-diff-col p.mono {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.35s ease, opacity 0.35s ease;
}

.vibe-diff-col #diff-requested.is-struck {
  color: var(--rose);
  text-decoration: line-through;
  opacity: 0.75;
}

.vibe-diff-col.is-executed.is-ready .vibe-diff-side-label {
  color: var(--teal);
}

.vibe-diff-col.is-executed.is-ready p.mono,
.vibe-diff-col.is-executed.is-ready .vibe-swap {
  color: var(--teal);
  font-weight: 600;
}

.vibe-diff-meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.vibe-diff-meta strong {
  color: var(--ink);
  font-weight: 600;
  margin-left: 4px;
}

#vibe-story-demo .explorer-top {
  padding: 10px;
}

#vibe-story-demo .mini-log {
  margin-top: 6px;
  padding: 8px;
}

#vibe-story-demo .mini-log .line {
  border-bottom: 0;
  justify-content: unset;
}

#vibe-story-demo .vibe-trace-log .line.is-visible {
  font-size: 11px;
}

.vibe-caption {
  font-size: 12px !important;
}

.vibe-caption-row {
  margin-top: 6px !important;
}

/* Outcome band — editorial, no card grid (Julia) */
.vibe-outcome-wrap {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 0;
}

.vibe-outcome-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.vibe-outcome-inner .micro {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 400;
  opacity: 0.8;
}

.vibe-outcome-inner h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.12;
}

.vibe-outcome-dek {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 46ch;
}

.vibe-outcome-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.vibe-outcome-list li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.vibe-outcome-list strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.vibe-outcome-list span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.outcome-rows {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.outcome-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.outcome-row-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.outcome-row-eyebrow span {
  opacity: 0.55;
}

.outcome-row-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.outcome-row-model {
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}

.outcome-row-model.is-executed {
  font-weight: 700;
}

.outcome-row-line {
  flex: 1;
  min-width: 32px;
  height: 1px;
  background: var(--line);
}

.outcome-row-arrow {
  margin-left: -4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.outcome-row-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.outcome-row-tag.is-executed {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.outcome-row-stat {
  font-weight: 700;
}

.outcome-row.is-cost .outcome-row-model.is-executed,
.outcome-row.is-cost .outcome-row-stat {
  color: var(--teal);
}

.outcome-row.is-upgrade .outcome-row-model.is-executed,
.outcome-row.is-upgrade .outcome-row-stat {
  color: var(--blue);
}

.outcome-row.is-enforced .outcome-row-model.is-executed,
.outcome-row.is-enforced .outcome-row-stat {
  color: var(--rose);
}

/* Identity → ledger → report (Julia / USA-86) */
.vibe-identity-wrap {
  padding: 72px 0;
}

.vibe-identity-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 28px;
}

.vibe-identity-head .micro {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 400;
  opacity: 0.8;
}

.vibe-identity-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.12;
}

.vibe-identity-dek {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 48ch;
}

.vibe-identity-call {
  white-space: nowrap;
}

.vibe-identity-dek code {
  font-size: 0.92em;
  color: var(--ink);
  white-space: nowrap;
}

.vibe-identity-dek em {
  font-style: italic;
  color: var(--ink);
}

.identity-flow {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0;
}

.identity-flow-node {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.identity-flow-node.is-id {
  color: var(--muted);
  font-weight: 500;
}

.identity-flow-node.is-amount {
  font-weight: 700;
}

.identity-flow-node.is-billed {
  color: var(--teal);
}

.identity-flow-arrow {
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 640px) {
  .identity-flow {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
  }

  .identity-flow-arrow {
    transform: rotate(90deg);
  }
}

/* Live ledger card */
.ledger-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(13, 18, 30, 0.06);
  overflow: hidden;
}

.ledger-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}

.ledger-card-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ledger-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(22, 194, 164, 0.16);
}

.ledger-period {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.ledger-period svg {
  width: 12px;
  height: 12px;
}

.ledger-card-row {
  display: flex;
  align-items: center;
  padding: 26px 28px;
  gap: 20px;
}

.ledger-cell {
  flex: 1;
  min-width: 0;
}

.ledger-cell-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ledger-cell-label svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
}

.ledger-cell-value {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.ledger-check {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.ledger-cell-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.ledger-cell-arrow {
  flex: none;
  color: var(--muted);
  font-size: 15px;
}

.ledger-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
}

.ledger-updated {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.ledger-updated svg {
  width: 14px;
  height: 14px;
}

.ledger-details-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ledger-details-btn:hover {
  border-color: var(--muted);
}

.ledger-details-btn svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 760px) {
  .ledger-card-row {
    flex-wrap: wrap;
    gap: 20px 16px;
  }

  .ledger-cell {
    flex: 1 1 calc(50% - 16px);
  }

  .ledger-cell-arrow {
    display: none;
  }

  .ledger-card-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ─── Reports flow (SDK → Ledger → Stripe / Slack) ─────────────── */
/* Demoted: a supporting footnote inside the identity section, not its
   own hero-weight section — the ledger is the story, this is where it goes. */

.impact-section {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 0;
}

.impact-head {
  max-width: 640px;
  margin: 0 0 24px;
}

.impact-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.impact-dek {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.impact-card {
  position: relative;
  padding: 28px 32px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(13, 18, 30, 0.06);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.impact-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.impact-cols {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.impact-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.impact-col-right {
  align-items: flex-end;
}

.impact-col-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.impact-col-right .impact-col-title {
  text-align: right;
}

.impact-row {
  width: 100%;
  padding: 5px 0;
  transition: opacity 0.15s ease;
}

.impact-row--dimmed {
  opacity: 0.3;
}

.impact-row-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 14px;
}

.impact-col-right .impact-row-top {
  flex-direction: row-reverse;
}

.impact-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.impact-row-label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.impact-col-right .impact-row-label {
  text-align: right;
}

.impact-row-nums {
  flex-shrink: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  display: flex;
  gap: 8px;
}

.impact-row-nums strong {
  color: var(--ink);
  font-weight: 700;
}

.impact-row-track {
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
}

.impact-row-fill {
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 0.08s);
}

.impact-col-right .impact-row-fill {
  transform-origin: right;
}

.impact-card.is-visible .impact-row-fill {
  transform: scaleX(1);
}

.impact-band-wrap {
  flex: 0 0 260px;
  min-width: 140px;
  margin-top: 24px;
}

.impact-bands {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.impact-band {
  cursor: default;
  opacity: 0;
  transition: opacity 0.6s ease, fill-opacity 0.15s ease;
  transition-delay: calc(var(--bd, 0) * 0.1s + 0.15s);
  fill-opacity: 0.6;
}

.impact-card.is-visible .impact-band {
  opacity: 1;
}

.impact-band:hover {
  fill-opacity: 0.85;
}

/* Same alpha reads very differently per hue (pale lavender vs. a still-bold
   mint) — nudge each band's own opacity so all four look equally weighted. */
.impact-band[data-req='opus'] {
  fill-opacity: 0.75;
}

.impact-band[data-req='gpt5'] {
  fill-opacity: 0.42;
}

@media (prefers-reduced-motion: reduce) {
  .impact-row-fill {
    transition: opacity 0.3s ease;
    transform: none;
  }

  .impact-band {
    transition: opacity 0.3s ease;
  }
}

.impact-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.impact-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.impact-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.impact-stat-val--accent {
  color: #16a34a;
}

html[data-theme='dark'] .impact-stat-val--accent {
  color: #4ade80;
}

.impact-stat-lbl {
  font-size: 12.5px;
  color: var(--muted);
}

.impact-stat-arrow {
  color: var(--muted);
  font-size: 1.1rem;
}

.impact-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}

.impact-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 16px;
  background: color-mix(in srgb, #6d5cf5 10%, transparent);
  border-radius: 12px;
}

html[data-theme='dark'] .impact-chip {
  background: color-mix(in srgb, #6d5cf5 20%, transparent);
}

.impact-chip-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #6d5cf5;
  letter-spacing: -0.02em;
}

html[data-theme='dark'] .impact-chip-val {
  color: #a99bff;
}

.impact-chip-lbl {
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .impact-cols {
    flex-direction: column;
    gap: 28px;
  }

  .impact-col-right {
    align-items: flex-start;
  }

  .impact-col-right .impact-row-top {
    flex-direction: row;
  }

  .impact-col-right .impact-row-label,
  .impact-col-right .impact-col-title {
    text-align: left;
  }

  .impact-col-right .impact-row-fill {
    transform-origin: left;
  }

  .impact-band-wrap {
    display: none;
  }

  .impact-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .impact-card {
    padding: 20px 16px 18px;
  }

  .impact-stats {
    gap: 16px;
  }
}

@keyframes vibe-field-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vibe-dot-pulse {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes vibe-strike {
  to {
    transform: scaleX(1);
  }
}

@keyframes vibe-pane-pop {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 rgba(22, 194, 164, 0);
  }
  55% {
    transform: scale(1.025);
    box-shadow: 0 12px 32px rgba(22, 194, 164, 0.18);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes vibe-engine-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.82);
  }
}

@keyframes vibe-engine-think {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(0.92);
    opacity: 1;
  }
}

@keyframes vibe-engine-ring {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(47, 125, 255, 0.08);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(47, 125, 255, 0.14);
  }
}

@keyframes vibe-budget-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.14);
  }
}

@keyframes vibe-arrow-flow {
  0% {
    left: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 7px);
    opacity: 0;
  }
}

@keyframes vibe-trace-glow {
  0% {
    background: rgba(47, 125, 255, 0.2);
  }
  100% {
    background: rgba(47, 125, 255, 0.08);
  }
}

@media (max-width: 900px) {
  .vibe-transform {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vibe-arrow {
    width: 14px;
    height: 28px;
    margin: 0 auto;
  }

  .vibe-arrow-line {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    margin: 0;
    margin-left: -1px;
  }

  .vibe-arrow-line::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    margin-left: -3px;
    transform: rotate(135deg);
  }

  .vibe-arrow.is-flowing .vibe-arrow-dot {
    animation: vibe-arrow-flow-vertical 0.85s cubic-bezier(0.45, 0, 0.2, 1)
      forwards;
  }

  .vibe-engine {
    flex-direction: row;
    padding: 8px 0;
  }
}

@keyframes vibe-arrow-flow-vertical {
  0% {
    top: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 7px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vibe-engine-dot.is-active,
  .vibe-engine-dot.is-active .vibe-engine-logo,
  .vibe-pane.is-pop,
  .vibe-budget-strip.is-pulse i,
  .vibe-arrow.is-flowing .vibe-arrow-dot,
  .vibe-trace-log .line.is-just-finished,
  .compute-dots i,
  .vibe-swap.is-in {
    animation: none !important;
  }

  .vibe-swap,
  .vibe-pane,
  .vibe-engine-dot,
  .vibe-arrow,
  .vibe-budget-strip,
  .vibe-progress-fill,
  .vibe-trace-log .line {
    transition-duration: 0.01ms !important;
  }
}
