/* One editorial copy column and one self-contained, interactive flow workspace. */
.home-page .home-announcement { margin: 8px 0; }
.home-page .home-announcement > summary { min-height: 36px; }
.home-v12 {
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  gap: 0 48px;
  align-items: center;
  padding-top: 18px;
  margin-bottom: 36px;
}
.v12-intro { min-width: 0; padding: 4px 0; }
.home-v12 .v12-headline {
  margin: 0;
  max-width: none;
  font-size: clamp(32px, 3.3vw, 44px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}
.home-v12 .v12-headline-main { display: block; }
.home-v12 .v12-headline-note { display: block; margin-top: 6px; font-size: 14px; line-height: 1.6; font-weight: 400; letter-spacing: 0; color: #52665a; }
.v12-manifesto {
  margin: 20px 0 0;
  max-width: 23em;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0;
  color: #42564a;
  text-wrap: pretty;
}
.v12-manifesto span { display: block; }
.v12-capability { margin-top: 12px; max-width: 27em; font-size: 14px; line-height: 1.8; color: #69766c; }
.v12-intro .home-actions { margin-top: 24px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.v12-intro .home-actions .btn { min-width: 144px; min-height: 48px; padding: 12px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; gap: 22px; }
.v12-intro .home-text-action { min-height: 44px; font-size: 13px; }
.v12-explainer { margin-top: 18px; max-width: 24em; }
.v12-explainer summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 13px; color: #52665a; list-style: none; cursor: pointer; }
.v12-explainer summary::-webkit-details-marker { display: none; }
.v12-explainer summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform 150ms; }
.v12-explainer[open] summary svg { transform: rotate(90deg); }
.v12-explainer > p { padding-top: 5px; font-size: 14px; line-height: 1.8; color: #52665a; }
.v12-explainer summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
/* Fixed rows keep every stage in place. Stage names appear once, below the diagram. */
.v12-demonstration {
  display: grid;
  grid-template-rows: 44px 248px 44px 64px;
  gap: 6px;
  min-width: 0;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  contain: layout;
}
.v12-demo-head { min-height: 0; align-items: center; }
.v12-demo-head > div:first-child { min-width: 0; flex: 1; }
.v12-demo-head h2 { font-size: 15px; line-height: 1.5; font-weight: 500; letter-spacing: 0; }
.v12-demo-head p { margin-top: 2px; max-width: none; font-size: 12px; line-height: 1.5; }
.flow-controls { flex: none; margin: 0; gap: 2px; }
.flow-controls button { min-height: 44px; min-width: 44px; border-radius: 8px; gap: 4px; }
.flow-controls svg { width: 16px; height: 16px; stroke-width: 1.5; }
.flow-scene { height: 248px; background: transparent; border-radius: 0; }
.flow-routes { stroke-width: 1.5; }
.flow-route { stroke: #cad5cb; stroke-dasharray: 3 5; }
.flow-active-route, .flow-fee-route { stroke: #416b50; stroke-width: 1.5; }
.flow-party { top: calc(42% - 24px); color: #6c7a6f; }
.flow-party-symbol { width: 48px; height: 48px; margin-bottom: 8px; border: 0; border-radius: 10px; background: #f0f4ee; }
.flow-party-symbol > svg:first-child { width: 24px; height: 24px; stroke-width: 1.5; }
.flow-party h3 { font-size: 12px; font-weight: 500; }
.flow-party-money { margin-top: 5px; }
.flow-party-money strong { font-size: 24px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.flow-party > p { margin-top: 4px; font-size: 12px; }
.flow-party.has-principal { color: #294f39; }
.flow-party.has-principal .flow-party-symbol { background: #e4eee2; }
.flow-approval { fill: #315e3e; stroke: #fff; stroke-width: 1.5; }
.flow-contract { top: 20px; height: 184px; padding: 14px 12px; border-radius: 10px; background: #294c3b; color: #eef5ed; }
.flow-contract.has-principal { background: #294c3b; color: #eef5ed; }
.flow-contract-outline { stroke: #9fbaa6; stroke-width: 1.2; }
.flow-contract h3 { font-size: 12px; font-weight: 500; color: #dce8dc; }
.flow-terms { margin-top: 17px; gap: 11px; }
.flow-terms > div, .flow-terms strong { font-size: 12px; font-weight: 400; }
.flow-terms svg { stroke: #dce8dc; stroke-width: 1.5; }
.flow-contract-money { margin-top: 14px; }
.flow-lock { width: 24px; height: 24px; stroke-width: 1.5; }
.flow-contract-money > strong { margin-top: 8px; font-size: 32px; line-height: 1.2; font-weight: 500; letter-spacing: -.025em; }
.flow-contract-money > span { font-size: 12px; color: #dce8dc; }
.flow-contract > p { bottom: 13px; font-size: 12px; color: #dce8dc; }
.flow-contract-seal { width: 24px; height: 24px; right: 8px; top: 8px; fill: #b6d2ba; stroke: #244936; stroke-width: 1.5; }
.flow-token { height: 28px; border-radius: 8px; border-color: #496f52; background: #fff; font-size: 13px; }
.flow-token-fee { background: #eef4eb; }
.flow-fee { left: 65%; right: auto; top: auto; bottom: 0; width: max-content; transform: translateX(-50%); justify-content: center; gap: 6px; font-size: 12px; line-height: 16px; }
.flow-care { left: 35%; right: 35%; bottom: 8px; gap: 5px; justify-content: center; flex-wrap: wrap; }
.flow-care-track { min-width: 32px; }
.v12-steps { gap: 0; margin: 0; }
.v12-steps button { min-height: 44px; padding: 0 0 10px; gap: 0; font-size: 12px; }
.flow-step-number { display: none; }
.flow-step-track { height: 2px; background: #e8eee5; }
.v12-stage { grid-row: 4; grid-column: 1; height: auto; min-height: 0; padding: 0; display: flex; align-items: center; align-self: center; }
.home-v12[data-v12-stage="4"] .v12-stage { align-self: start; }
.v12-stage > p { margin: 0; max-width: none; font-size: 13px; line-height: 1.75; color: #52665a; }
.flow-outcome-slot { grid-row: 4; grid-column: 1; align-self: end; height: auto; min-height: 0; align-items: center; gap: 4px 10px; }
.v12-outcomes { gap: 5px; }
.v12-outcomes button { min-height: 32px; padding: 6px 8px; border: 0; border-radius: 6px; font-size: 12px; background: #f0f4ee; }
.v12-outcomes button[aria-pressed=true] { background: #dfebdb; color: #294c3b; }
.v12-fee { font-size: 12px; line-height: 1.6; margin: 0; white-space: normal; }
@media (max-width: 1100px) {
  .home-v12 { column-gap: 32px; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); }
  .home-v12 .v12-headline { font-size: clamp(31px, 3.5vw, 38px); }
  .v12-intro .home-actions { column-gap: 14px; }
  .v12-intro .home-text-action { font-size: 12px; }
  .v12-demonstration { grid-template-rows: 44px 248px 44px 90px; padding-inline: 16px; }
  .flow-terms { margin-top: 12px; gap: 9px; }
  .flow-outcome-slot { gap: 2px 8px; }
}
@media (max-width: 800px) {
  .home-v12 { grid-template-columns: 1fr; gap: 24px; padding-top: 12px; margin-bottom: 24px; }
  .v12-intro { padding: 0; }
  .home-v12 .v12-headline { font-size: 36px; }
  .v12-manifesto { margin-top: 14px; max-width: 32em; }
  .v12-capability { max-width: 36em; margin-top: 8px; }
  .v12-intro .home-actions { margin-top: 20px; column-gap: 22px; }
  .v12-intro .home-text-action { font-size: 13px; }
  .v12-explainer { margin-top: 10px; max-width: 32em; }
  .v12-demonstration { grid-template-rows: 44px 248px 44px 64px; padding: 16px 20px; }
  .flow-party-money { flex-direction: row; }
}
@media (max-width: 600px) {
  .home-page .home-announcement { margin: 6px 0; }
  .home-v12 .v12-headline { font-size: clamp(30px, 8.4vw, 36px); }
  .v12-manifesto { max-width: 24em; }
  .v12-capability { font-size: 14px; }
  .v12-intro .home-actions { gap: 12px 20px; }
  .v12-intro .home-actions .btn { min-width: 140px; padding: 12px 18px; }
  .v12-demonstration { grid-template-rows: 44px 248px 44px 104px; padding: 12px; gap: 6px; }
  .v12-demo-head h2 { font-size: 14px; }
  .v12-demo-head p { font-size: 12px; }
  .flow-controls button { padding-inline: 4px; min-width: 44px; }
  .flow-controls button:first-child { flex-direction: row; gap: 4px; }
  .flow-controls button:first-child span { font-size: 12px; }
  .flow-scene { height: 248px; }
  .flow-party { top: calc(42% - 20px); width: 28%; }
  .flow-demander { left: 1%; }
  .flow-supplier { right: 1%; }
  .flow-party-symbol { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 8px; }
  .flow-party-symbol > svg:first-child { width: 24px; height: 24px; }
  .flow-party-money { flex-direction: column; }
  .flow-party-money strong { font-size: 22px; }
  .flow-contract { left: 30%; width: 40%; top: 20px; height: 184px; padding: 13px 8px; }
  .flow-contract-money { margin-top: 14px; }
  .flow-contract-money > strong { font-size: 28px; }
  .flow-contract > p { bottom: 12px; }
  .flow-terms { margin-top: 12px; gap: 9px; }
  .flow-terms > div:first-child strong { font-size: 12px; }
  .flow-contract-seal { width: 16px; height: 16px; right: 6px; top: 6px; }
  .flow-fee { left: 58%; right: auto; gap: 4px; }
  .flow-care { left: 30%; right: 30%; gap: 3px; }
  .flow-care-track { flex-basis: 100%; margin-left: 0; }
  .v12-steps button { font-size: 12px; padding-bottom: 10px; }
  .v12-stage > p { font-size: 13px; }
  .flow-outcome-slot { display: block; padding-top: 2px; }
  .v12-outcomes button { min-height: 44px; }
  .v12-fee { margin-top: 6px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .v12-explainer summary svg { transition: none; } }

/* Amounts and fees are already shown at their destinations in the diagram. */
#v12-fee { display: none; }

/* These are selectable steps, with the same quiet feedback as the playback controls. */
.v12-steps button[aria-current=step] { background: #f0f4ee; border-radius: 6px 6px 0 0; }
@media (hover: hover) and (pointer: fine) {
  .v12-steps button:hover { background: #f5f7f2; }
}
