/* Interactive bib transfer demo */

.sol-xfer {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.sol-section__intro--xfer {
  margin-bottom: 52px;
  max-width: 720px;
}
.sol-section__intro--xfer .sol-lede {
  margin-bottom: 0;
}
.sol-xfer__hint {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.sol-xfer__stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.sol-xfer__device {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15,15,14,0.08);
  min-height: 460px;
  display: flex;
  flex-direction: column;
}
.sol-xfer__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(242,237,230,0.85);
}
.sol-xfer__chrome em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.sol-xfer__form-view {
  padding: 18px 18px 20px;
  flex: 1;
}
.sol-xfer__form-view[hidden] { display: none; }
.sol-xfer__form-view.is-animating {
  display: block;
  animation: sol-xfer-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sol-xfer__form-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.sol-xfer__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(39, 107, 60, 0.12);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sol-xfer__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.sol-xfer__form-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
}
.sol-xfer__form-head strong,
.sol-xfer__form-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sol-xfer__form-head span,
.sol-xfer__form-copy span {
  display: block;
  margin-top: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.sol-xfer__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sol-xfer__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.sol-xfer__field em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.sol-xfer__field input {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--text);
}
.sol-xfer__field input:focus {
  outline: none;
  border-color: rgba(39, 107, 60, 0.55);
  box-shadow: 0 0 0 3px rgba(39, 107, 60, 0.12);
}

.sol-xfer__summary {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(242,237,230,0.7);
  border: 1px solid var(--border);
}
.sol-xfer__summary > p {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sol-xfer__summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 12px;
}
.sol-xfer__summary div:first-of-type { border-top: 0; }
.sol-xfer__summary span { color: var(--muted); }
.sol-xfer__summary strong { font-weight: 700; color: var(--text); text-align: right; }
.sol-xfer__pending { color: #b45309 !important; }
.sol-xfer__ok { color: var(--green) !important; }

.sol-xfer__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.sol-xfer__btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, opacity 140ms ease;
}
.sol-xfer__btn--primary {
  background: var(--green);
  color: #fff;
}
.sol-xfer__btn--primary:hover {
  background: #1f5a32;
}
.sol-xfer__btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.sol-xfer__btn--ghost:hover {
  background: rgba(0,0,0,0.03);
}
.sol-xfer__btn--block {
  width: 100%;
  justify-content: center;
  display: flex;
  margin-top: 8px;
}
.sol-xfer__btn:active {
  transform: translateY(1px);
}

.sol-xfer__sent {
  text-align: center;
  padding: 24px 8px 8px;
}
.sol-xfer__sent-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(39, 107, 60, 0.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}
.sol-xfer__sent-icon--done {
  background: rgba(39,107,60,0.15);
  color: var(--green);
}
.sol-xfer__sent > strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.sol-xfer__sent > p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.sol-xfer__sent .sol-xfer__summary {
  text-align: left;
  margin-bottom: 16px;
}

/* Phone panel */
.sol-xfer__panel--phone {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.sol-xfer__phone {
  width: min(100%, 320px);
  margin: 0 auto;
  background: #111;
  color: #fff;
  border-radius: 28px;
  border: 3px solid #2a2a2a;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.sol-xfer__phone-notch {
  width: 96px;
  height: 18px;
  margin: 10px auto 0;
  background: #000;
  border-radius: 999px;
}
.sol-xfer__phone-view {
  flex: 1;
  padding: 12px 14px 18px;
  display: none;
}
.sol-xfer__phone-view.is-active {
  display: flex;
  flex-direction: column;
}
.sol-xfer__phone-view.is-animating {
  display: flex;
  flex-direction: column;
  animation: sol-xfer-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sol-xfer__phone-view[hidden] { display: none !important; }

.sol-xfer__phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.sol-xfer__phone-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}
.sol-xfer__phone-empty {
  margin: auto 8px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.4);
}

.sol-xfer__mail {
  appearance: none;
  border: 0;
  width: 100%;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  font: inherit;
  position: relative;
  transition: background 140ms ease, transform 140ms ease;
}
.sol-xfer__mail:hover {
  background: rgba(255,255,255,0.1);
}
.sol-xfer__mail.is-arriving {
  animation: sol-xfer-mail-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sol-xfer__mail-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.sol-xfer__mail-body {
  min-width: 0;
  flex: 1;
}
.sol-xfer__mail-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.sol-xfer__mail-top strong {
  font-size: 13px;
}
.sol-xfer__mail-top em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.sol-xfer__mail-sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}
.sol-xfer__mail-preview {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sol-xfer__mail-dot {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.sol-xfer__email h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sol-xfer__email-from {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}
.sol-xfer__email p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}
.sol-xfer__email-card {
  margin: 14px 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.sol-xfer__email-card span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.sol-xfer__email-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.sol-xfer__email-card em {
  font-style: normal;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.sol-xfer__email .sol-xfer__btn--ghost {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.18);
}
.sol-xfer__accepted {
  margin: auto 0;
  text-align: center;
  padding: 12px 6px;
}
.sol-xfer__accepted > strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.sol-xfer__accepted > p {
  margin: 0 0 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.45;
}
.sol-xfer__accepted .sol-xfer__email-card {
  text-align: left;
}

.sol-split__item--solo {
  max-width: 420px;
}

@keyframes sol-xfer-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes sol-xfer-mail-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sol-xfer__form-view.is-animating,
  .sol-xfer__phone-view.is-animating,
  .sol-xfer__mail.is-arriving {
    animation: none !important;
  }
}

@media (max-width: 860px) {
  .sol-xfer {
    padding: 20px 16px;
  }
  .sol-xfer__stage {
    grid-template-columns: 1fr;
  }
  .sol-xfer__phone {
    width: min(100%, 340px);
  }
  .sol-split__item--solo {
    max-width: none;
  }
}
