:root {
  color-scheme: light;
  --bg: #faf9fc;
  --surface: #fff;
  --text: #19151f;
  --muted: #686171;
  --line: #e7e2ee;
  --purple: #752ce9;
  --soft: #f3edff;
  --good: #16724b;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--purple);
}
header {
  height: 84px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.7px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--purple);
  color: #fff;
  font-size: 24px;
  letter-spacing: 0;
}
.sandbox-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.2px;
  color: var(--purple);
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
nav {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-size: 13px;
}
nav a[aria-current="page"] {
  color: var(--purple);
  font-weight: 750;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 24px 20px;
}
.intro {
  max-width: 650px;
  margin-bottom: 36px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 750;
  color: var(--purple);
  display: block;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 0 0 20px;
  font-weight: 650;
}
.intro > p:last-child {
  font-size: 16px;
  color: var(--muted);
  max-width: 590px;
  margin: 0;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin: 0 0 15px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 32px;
}
.product-summary {
  padding: 34px 36px;
}
.product-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--purple);
  font-size: 34px;
  border-radius: 16px;
  margin-bottom: 26px;
}
.product-summary > p {
  font-size: 14px;
  color: var(--muted);
  max-width: 350px;
}
.total {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 26px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.total > span {
  font-size: 14px;
  max-width: 110px;
}
.total strong {
  font-size: 28px;
  letter-spacing: -1px;
  white-space: nowrap;
}
.total small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
}
.test-card {
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--soft);
}
.test-card .eyebrow {
  margin-bottom: 10px;
}
.test-card code {
  font-size: clamp(14px, 1.6vw, 19px);
  font-weight: 650;
  white-space: nowrap;
}
.test-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0 8px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--purple);
  padding: 8px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.isolation-note {
  font-size: 12px !important;
  margin-top: 22px;
}
.payment-panel {
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px #28154508;
  min-width: 0;
}
.test-badge {
  background: var(--soft);
  color: var(--purple);
  font-size: 11px;
  font-weight: 750;
  display: inline-block;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 19px;
}
.panel-heading h2 {
  margin-bottom: 22px;
}
.notice {
  background: var(--soft);
  border-radius: 8px;
  padding: 18px;
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.notice strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}
.buyer-fields {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.buyer-fields label {
  font-size: 12px;
  font-weight: 650;
}
.buyer-fields input,
.buyer-fields select {
  border: 1px solid #d8d1e3;
  padding: 11px 12px;
  border-radius: 8px;
  width: 100%;
  color: var(--text);
  background: var(--surface);
  margin-bottom: 8px;
  font-size: 14px;
}
.buyer-fields input:focus,
.buyer-fields select:focus {
  border-color: var(--purple);
  outline: 2px solid #752ce926;
}
.payment-label {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 12px;
}
#payment-element {
  min-height: 100px;
}
.primary {
  width: 100%;
  border: 0;
  background: var(--purple);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
  margin-top: 22px;
  min-height: 48px;
  font-size: 14px;
}
.primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
#cancel-button {
  display: block;
  margin: 12px auto 0;
}
.fine-print {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin: 13px 0 0;
}
.error {
  font-size: 13px;
  color: #a12638;
  background: #fff1f3;
  padding: 12px;
  border-radius: 8px;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}
.result-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: #e8f7ee;
  color: var(--good);
  font-size: 23px;
  margin-bottom: 18px;
}
.result-rows {
  margin: 24px 0;
  display: grid;
  gap: 16px;
}
.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}
.result-row strong {
  white-space: nowrap;
}
.result-row.total-result {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--purple);
  font-weight: 650;
}
.result-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.transaction-id {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.verified {
  font-size: 12px;
  color: var(--good);
}
footer {
  padding: 40px 0 12px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    height: 72px;
    padding: 0 20px;
    gap: 16px;
  }
  .sandbox-label {
    font-size: 9px;
    padding-left: 16px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }
  nav {
    gap: 10px;
  }
  main {
    padding: 36px 20px 16px;
  }
  .intro {
    margin-bottom: 28px;
  }
  h1 {
    letter-spacing: -1.4px;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-summary {
    padding: 0;
  }
  .product-icon {
    width: 44px;
    height: 44px;
    font-size: 27px;
    margin-bottom: 20px;
  }
  .product-summary > p {
    max-width: none;
  }
  .total {
    margin: 20px 0;
    padding: 18px 0;
  }
  .total > span {
    max-width: none;
  }
  .test-card {
    padding: 18px 20px;
  }
  .test-card code {
    font-size: 18px;
  }
  .isolation-note {
    margin-bottom: 0;
  }
  .payment-panel {
    padding: 26px 22px;
    border-radius: 14px;
  }
  .result-row {
    font-size: 13px;
  }
  footer {
    padding-top: 28px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .primary {
    transition: background 0.15s;
  }
  .primary:hover:not(:disabled) {
    background: #5f1ccb;
  }
}
