/* /cards/ — card issuing. The card and limits mock-up (.tcard-stage) lives in site.css. */
.cd-hero__stage {
  max-width: 520px;
  min-height: 480px;
  margin-left: auto;
}
.cd-hero__stage .limits-mock {
  bottom: 76px;
}
.cd-hero__stage .tcard-stage__toast--a {
  bottom: 0;
  left: 8%;
  max-width: 340px;
}

/* Two kinds of card */
.cd-kind {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-panel);
  background: var(--surface-card);
  border: 1px solid var(--ink-100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cd-kind__art {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 32px;
}
.cd-kind__art--blue {
  background:
    radial-gradient(80% 80% at 90% 0%, rgba(59, 91, 255, 0.25), transparent 70%),
    linear-gradient(160deg, var(--blue-50), var(--lilac-50));
}
.cd-kind__art--mint {
  background:
    radial-gradient(80% 80% at 90% 0%, rgba(0, 209, 167, 0.25), transparent 70%),
    linear-gradient(160deg, var(--mint-50), var(--surface-card));
}
.cd-kind__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
}
.cd-kind__body > p {
  color: var(--text-secondary);
}
.cd-list,
.cd-post {
  width: 100%;
  max-width: 400px;
}
.cd-list .ui-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}
.cd-list .ui-row > span:last-child:empty {
  display: none;
}
.cd-post__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cd-post__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cd-post__steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 30px;
  font-size: var(--fs-label);
}
.cd-post__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 99px;
  border: 2px solid var(--ink-200);
  background: var(--surface-card);
}
.cd-post__steps li.is-done::before {
  border-color: var(--mint-500);
  background: var(--mint-500);
}
.cd-post__steps li.is-next::before {
  border-color: var(--blue-500);
}
.cd-post__steps small {
  color: var(--ink-500);
}

/* Spending rules mock-up */
.cd-policy {
  max-width: 460px;
  margin: 0 auto;
}
.cd-policy__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--ink-100);
  font-size: var(--fs-label);
  font-weight: 600;
}
.cd-policy__bar em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-500);
}
.cd-policy__sentence {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
.cd-policy__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cd-policy__chips span {
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid var(--ink-100);
  font-size: var(--fs-caption);
  color: var(--ink-500);
}
.cd-policy__chips .is-on {
  border-color: var(--blue-500);
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 600;
}
.cd-policy__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cd-policy__rows div {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius-card);
  background: var(--ink-50);
  font-size: var(--fs-caption);
}
.cd-policy__rows span {
  color: var(--ink-500);
}
.cd-policy__cards {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--fs-caption);
  color: var(--ink-500);
}

/* Approval mock-up: the push, then the app's sheet */
.cd-approve {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 36px;
  background: var(--gradient-hero);
  box-shadow: 0 40px 100px -30px rgba(11, 16, 32, 0.55);
}
.cd-approve__push {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-caption);
  color: var(--ink-900);
}
.cd-approve__push img {
  margin-top: 2px;
}
.cd-approve__push > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cd-approve__push > span > span {
  color: var(--ink-500);
}
.cd-approve__sheet {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  background: var(--surface-card);
  color: var(--ink-900);
}
.cd-approve__sheet p {
  margin: 0;
  color: var(--ink-700);
}
.cd-approve__amount {
  font-size: 34px;
  letter-spacing: -0.03em;
}
.cd-approve__sheet .cd-approve__note {
  color: var(--ink-500);
}
.cd-approve__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 4px;
}
.cd-approve__buttons span {
  padding: 11px;
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  font-size: var(--fs-label);
}
.cd-approve__no {
  background: var(--ink-50);
  color: var(--ink-900);
}
.cd-approve__yes {
  background: var(--blue-500);
  color: var(--text-inverse);
}
.cd-approve__sheet small {
  color: var(--ink-500);
  text-align: center;
}

/* Funding */
.cd-fund {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.cd-fund h2 {
  margin: 0 0 8px;
}
.cd-fund p {
  margin: 0;
  color: var(--text-secondary);
}
.cd-fund__link {
  margin-top: 12px;
}

/* Cashback example */
.cd-cash {
  color: var(--text-inverse);
}
.cd-cash__eyebrow {
  color: var(--mint-300);
}
.cd-cash__title {
  margin: 8px 0 20px;
  color: var(--text-inverse);
}
.cd-cash__table {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.cd-cash__plus {
  color: var(--mint-300);
}

/* Developers */
.cd-dev__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.cd-dev__grid .code {
  min-width: 0;
}
.cd-dev__side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cd-dev__side h3 {
  margin: 0 0 12px;
  color: var(--text-inverse);
}
.cd-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cd-events code:not(pre code) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-200);
}

@media (max-width: 900px) {
  .cd-dev__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cd-hero__stage {
    margin: 0;
  }
}
@media (max-width: 640px) {
  .cd-hero__stage {
    min-height: 340px;
  }
  .cd-hero__stage .limits-mock {
    bottom: 0;
  }
  .cd-kind__art {
    min-height: 0;
    padding: 20px;
  }
  .cd-kind__body {
    padding: 24px;
  }
  .cd-policy__rows {
    grid-template-columns: minmax(0, 1fr);
  }
  .cd-fund {
    flex-direction: column;
  }
}
