:root {
  color-scheme: light dark;
  --ink: #101828;
  --muted: #667085;
  --line: #d0d5dd;
  --surface: rgba(255, 255, 255, 0.92);
  --canvas: #f2f4f7;
  --accent: #155eef;
  --accent-hover: #004eeb;
  --accent-soft: #eff4ff;
  --success: #067647;
  --success-soft: #ecfdf3;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --shadow: 0 24px 64px rgba(16, 24, 40, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 94, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 94, 239, 0.035) 1px, transparent 1px),
    var(--canvas);
  background-size: 48px 48px;
}

button,
a {
  font: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  top: -18rem;
  left: 50%;
  width: 62rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 114, 255, 0.21), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(152, 162, 179, 0.38);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  box-shadow: 0 7px 18px rgba(21, 94, 239, 0.25);
}

.brand-mark span {
  font-size: 15px;
  font-weight: 850;
  transform: translateY(-0.5px);
}

.header-label,
.eyebrow,
.card-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.header-label {
  color: var(--muted);
  text-transform: uppercase;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 500px);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  width: min(1080px, calc(100% - 48px));
  min-height: calc(100vh - 176px);
  margin: 0 auto;
  padding: 64px 0;
}

.intro {
  max-width: 500px;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--accent);
}

.intro h1 {
  max-width: 11ch;
  margin: 18px 0 22px;
  font-size: clamp(42px, 5.3vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro-copy {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.assurance-list {
  display: grid;
  gap: 14px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.assurance-list p {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
}

.assurance-list span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.checkout-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 40px);
  border: 1px solid rgba(152, 162, 179, 0.45);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.checkout-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #84adff 66%, transparent);
  content: "";
}

.card-topline {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 11px;
  font-weight: 750;
}

.status--expired {
  color: var(--danger);
  background: var(--danger-soft);
}

.state-panel {
  display: grid;
  min-height: 390px;
  place-content: center;
  text-align: center;
}

.state-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  place-content: center;
  border: 1px solid #b2ccff;
  border-radius: 15px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.state-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.state-panel p {
  max-width: 34ch;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
}

.amount-block {
  padding: 42px 0 34px;
  text-align: center;
}

.vendor-summary {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.amount {
  margin: 0;
  font-size: clamp(42px, 7vw, 58px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.description {
  max-width: 34ch;
  margin: 14px auto 0;
  overflow-wrap: anywhere;
  color: #344054;
  line-height: 1.55;
}

.checkout-details {
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}

.checkout-details div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-details dt,
.checkout-details dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.checkout-details dt {
  color: var(--muted);
}

.checkout-details dd {
  overflow-wrap: anywhere;
  text-align: right;
  font-weight: 650;
}

.primary-action {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.24);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-action:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 28px rgba(21, 94, 239, 0.3);
  transform: translateY(-1px);
}

.primary-action:focus-visible {
  outline: 3px solid #b2ccff;
  outline-offset: 3px;
}

.primary-action[aria-disabled="true"] {
  color: #667085;
  background: #eaecf0;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.action-note {
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.noscript-message {
  margin-top: 24px;
  padding: 14px;
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 13px;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid rgba(152, 162, 179, 0.38);
  color: var(--muted);
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .page-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 0 64px;
  }

  .intro {
    max-width: 620px;
  }

  .intro h1 {
    max-width: 13ch;
  }

  .checkout-card {
    width: min(100%, 540px);
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .site-header,
  .page-shell,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .header-label {
    display: none;
  }

  .page-shell {
    gap: 36px;
    padding: 38px 0 52px;
  }

  .intro h1 {
    margin-top: 14px;
    font-size: clamp(38px, 12vw, 52px);
  }

  .intro-copy {
    font-size: 16px;
  }

  .assurance-list {
    margin-top: 30px;
  }

  .checkout-card {
    border-radius: 19px;
  }

  .amount-block {
    padding: 34px 0 28px;
  }

  .checkout-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .checkout-details dd {
    text-align: left;
  }

  footer {
    flex-direction: column;
    min-height: auto;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-action {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f4f7;
    --muted: #98a2b3;
    --line: #344054;
    --surface: rgba(16, 24, 40, 0.94);
    --canvas: #0c111d;
    --accent: #528bff;
    --accent-hover: #7aa5ff;
    --accent-soft: #182c57;
    --success: #75e0a7;
    --success-soft: #073321;
    --danger: #fda29b;
    --danger-soft: #55160c;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
  }

  body {
    background:
      linear-gradient(rgba(82, 139, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(82, 139, 255, 0.04) 1px, transparent 1px),
      var(--canvas);
    background-size: 48px 48px;
  }

  .intro-copy,
  .assurance-list p,
  .description {
    color: #b7c0ce;
  }

  .checkout-card {
    border-color: #344054;
  }

  .brand-mark {
    color: #08142e;
  }

  .primary-action {
    color: #07132e;
  }

  .primary-action[aria-disabled="true"] {
    color: #98a2b3;
    background: #1d2939;
  }
}
