figure.commitment-visual {
  --commitment-rule: #82b5a459;
  --commitment-amber: #efc59f;
  --commitment-mint: #9af7ce;
  min-block-size: 0;
  justify-content: flex-start;
  gap: clamp(.8rem, 1.7vw, 1.35rem);
  padding: clamp(.85rem, 2.2vw, 1.85rem);
  border-color: #a8ccba76;
  background:
    radial-gradient(ellipse at var(--inline-start-x) 0%, #8b684234, transparent 59%),
    radial-gradient(ellipse at var(--inline-end-x) 105%, #38785b69, transparent 74%),
    linear-gradient(165deg, #1a2823, #101d18 67%);
  box-shadow: inset 0 1px #e1f5d630, 0 1.65rem 4rem #0007;
}

figure.commitment-visual::after {
  content: none;
}

figure.commitment-visual .visual-label {
  padding-inline-end: 0;
}

.commitment-demo {
  display: grid;
  gap: 1.1rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0 0 .45rem;
  border: 0;
}

.commitment-options {
  display: none;
}

.commitment-option {
  --commitment-option-accent: var(--commitment-amber);
  position: relative;
  display: block;
  min-inline-size: 0;
  cursor: pointer;
}

.commitment-option:has([value="owner"]) {
  --commitment-option-accent: #cfe3ce;
}

.commitment-option:has([value="proof"]) {
  --commitment-option-accent: var(--commitment-mint);
}

.commitment-option > span {
  display: flex;
  min-block-size: 2.75rem;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .4rem .5rem;
  border: 1px solid var(--button-glass-border);
  border-radius: .42rem;
  background: var(--button-glass);
  color: #c2d4ca;
  font-size: clamp(.71rem, .92vw, .84rem);
  font-weight: 750;
  line-height: var(--label-leading);
  text-align: center;
  overflow-wrap: anywhere;
}

.commitment-option > span::before {
  content: "";
  flex: 0 0 auto;
  inline-size: .34rem;
  block-size: .34rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .77;
}

.commitment-option:hover > span {
  border-color: var(--button-glass-bright);
  background: var(--button-glass-hover);
  color: #e5f2e9;
}

.commitment-option > input:checked + span {
  border-color: var(--button-glass-bright);
  background: var(--button-glass-selected);
  color: var(--commitment-option-accent);
}

.commitment-option > input:checked + span::before {
  background: currentColor;
  opacity: 1;
  box-shadow: 0 0 .65rem currentColor;
}

.commitment-option > input:focus-visible + span {
  outline: 2px solid #b5ffe0;
  outline-offset: 2px;
}

.commitment-record {
  position: relative;
  isolation: isolate;
  display: grid;
  min-inline-size: 0;
  border: 1px solid var(--commitment-rule);
  border-radius: .64rem;
  background: #13251e;
  box-shadow: 0 .8rem 1.5rem #06120cb0;
}

.commitment-record::before,
.commitment-record::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset-block-end: -.34rem;
  block-size: .38rem;
  inset-inline: .52rem;
  border: 1px solid #92c8b757;
  border-radius: 0 0 .54rem .54rem;
  background: #254739;
}

.commitment-record::after {
  z-index: -2;
  inset-block-end: -.65rem;
  block-size: .38rem;
  inset-inline: 1.05rem;
  border-color: #99c7b232;
  background: #21382e;
}

.commitment-record-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem .75rem;
  padding: .64rem clamp(.65rem, 1.45vw, 1.05rem);
  border-block-end: 1px solid #9cc2ab37;
  border-start-start-radius: inherit;
  border-start-end-radius: inherit;
  background: #203d32;
  overflow-wrap: anywhere;
}

.commitment-record-head > span {
  color: #c5d8ca;
  font-size: clamp(.67rem, .87vw, .78rem);
  font-weight: 700;
  line-height: var(--label-leading);
}

.commitment-record-head > b {
  color: #f2fbf4;
  font-family: var(--headline);
  font-size: clamp(.85rem, 1.14vw, 1.02rem);
  line-height: var(--label-leading);
}

.commitment-state {
  --commitment-state-accent: var(--commitment-amber);
  --commitment-state-wash: #8d623336;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  min-inline-size: 0;
  gap: clamp(.65rem, 1.5vw, .95rem);
  padding: clamp(.8rem, 1.95vw, 1.4rem);
  border-block-end: 1px solid #9cc2ab24;
  background: radial-gradient(ellipse at var(--inline-start-x) 0%, var(--commitment-state-wash), transparent 71%);
}

.commitment-state:last-child {
  border-block-end: 0;
  border-end-start-radius: .64rem;
  border-end-end-radius: .64rem;
}

.commitment-state[data-stage="owner"] {
  --commitment-state-accent: #cfe3ce;
  --commitment-state-wash: #71906538;
}

.commitment-state[data-stage="proof"] {
  --commitment-state-accent: var(--commitment-mint);
  --commitment-state-wash: #38846344;
}

.commitment-icon {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: clamp(1.9rem, 4vw, 2.55rem);
  block-size: clamp(1.9rem, 4vw, 2.55rem);
  border: 1px solid #aad0b966;
  border-radius: .48rem;
  color: var(--commitment-state-accent);
  background: #142820;
}

.commitment-icon::before,
.commitment-icon::after {
  content: "";
  position: absolute;
}

.commitment-state[data-stage="decision"] .commitment-icon::before {
  inset: 27% 23% 29%;
  border: 1px solid currentColor;
  border-radius: .27rem;
}

.commitment-state[data-stage="decision"] .commitment-icon::after {
  inset-block-start: 58%;
  inset-inline-start: 37%;
  inline-size: .26rem;
  block-size: .26rem;
  transform: skewY(calc(-36deg * var(--inline-flow)));
  border-inline-start: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  background: #142820;
}

.commitment-state[data-stage="owner"] .commitment-icon::before {
  inset-block-start: 21%;
  inline-size: .44rem;
  block-size: .44rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.commitment-state[data-stage="owner"] .commitment-icon::after {
  inset-block-end: 22%;
  inline-size: .87rem;
  block-size: .43rem;
  border: 1px solid currentColor;
  border-radius: 60% 60% 18% 18%;
}

.commitment-state[data-stage="proof"] .commitment-icon::before {
  inset: 20% 25%;
  border: 1px solid currentColor;
  border-radius: .18rem;
}

.commitment-state[data-stage="proof"] .commitment-icon::after {
  inline-size: .53rem;
  block-size: .3rem;
  transform: translateY(-.06rem) rotate(-45deg);
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.commitment-state strong {
  display: block;
  color: var(--commitment-state-accent);
  font-family: var(--headline);
  font-size: clamp(.93rem, 1.4vw, 1.22rem);
  line-height: var(--title-leading);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.commitment-state p {
  margin-block-start: .32rem;
  color: #d1e0d6;
  font-size: clamp(.78rem, 1.01vw, .91rem);
  line-height: var(--prose-leading);
  overflow-wrap: anywhere;
}

@supports selector(:has(*)) {
  .commitment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .25rem;
    padding: .28rem;
    border: 1px solid #9fc7b640;
    border-radius: .58rem;
    background: #101c17;
  }

  .commitment-record-head {
    grid-area: 1 / 1;
  }

  .commitment-state {
    grid-area: 2 / 1;
    visibility: hidden;
    border-block-end: 0;
    border-end-start-radius: .64rem;
    border-end-end-radius: .64rem;
  }

  .commitment-demo:has([value="decision"]:checked) .commitment-state[data-stage="decision"],
  .commitment-demo:has([value="owner"]:checked) .commitment-state[data-stage="owner"],
  .commitment-demo:has([value="proof"]:checked) .commitment-state[data-stage="proof"] {
    visibility: visible;
  }

  @media (prefers-reduced-motion: no-preference) {
    .enhanced:not(.motion-paused) .commitment-visual.is-visible .commitment-demo:has([value="decision"]:checked) .commitment-state[data-stage="decision"],
    .enhanced:not(.motion-paused) .commitment-visual.is-visible .commitment-demo:has([value="owner"]:checked) .commitment-state[data-stage="owner"],
    .enhanced:not(.motion-paused) .commitment-visual.is-visible .commitment-demo:has([value="proof"]:checked) .commitment-state[data-stage="proof"] {
      animation: commitment-stage-in .34s ease-out both;
    }

    @keyframes commitment-stage-in {
      from { opacity: .45; transform: translateY(.26rem); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}

.commitment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin-block-start: 1.25rem;
}

.commitment-actions :is(.pill, .product-link) {
  max-inline-size: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.commitment-market {
  display: grid;
  justify-items: start;
  gap: .42rem;
  max-inline-size: 32rem;
  margin-block-start: 1.55rem;
  padding: .78rem 0 .1rem;
  padding-inline-start: .85rem;
  border-inline-start: 1px solid #c4a27a87;
  color: #c5d6cb;
  font-size: clamp(.76rem, .97vw, .87rem);
  line-height: var(--prose-leading);
}

.commitment-market p {
  margin: 0;
}

.commitment-market a {
  color: #c7f3d9;
  text-decoration: underline;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}

@media (max-width: 410px) {
  .commitment-option > span {
    gap: .25rem;
    padding-inline: .25rem;
  }
}
