:root {
  color-scheme: light;
  --ink: #171830;
  --muted: #636987;
  --paper: #ffffff;
  --soft: #f1f2fb;
  --line: #d8daef;
  --blue: #50529e;
  --violet: #7b7cb4;
  --yellow: #f4c542;
  --green: #12724f;
  --shadow: 0 24px 70px rgba(80, 82, 158, 0.22);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.pay-header {
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px);
}

.brand {
  color: var(--blue);
  font-size: 23px;
  font-weight: 900;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

nav a,
.eyebrow {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  background: linear-gradient(135deg, #50529e 0%, #7b7cb4 62%, #171830 100%);
  color: white;
  padding: clamp(46px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.hero > div {
  max-width: 940px;
}

.eyebrow {
  color: var(--blue);
  margin: 0 0 12px;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 18px;
  max-width: 720px;
}

.checkout-layout {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  padding: clamp(40px, 7vw, 82px) clamp(18px, 5vw, 72px);
}

.copy {
  align-self: start;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 28px;
}

.checkout-shell {
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
}

.checkout-product {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
}

.checkout-product span,
.payment-method-title span,
label,
.amount-field small,
.checkout-product small {
  color: var(--muted);
  font-size: 14px;
}

.checkout-product strong {
  font-size: 23px;
}

.amount-field,
.card-form,
.card-form label {
  display: grid;
  gap: 8px;
}

label {
  color: var(--ink);
  font-weight: 800;
}

.amount-field > span {
  align-items: center;
  border: 1px solid #b9c6d1;
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 54px;
}

.amount-field b {
  border-right: 1px solid #d8e0e7;
  color: var(--blue);
  display: grid;
  font-size: 22px;
  height: 100%;
  place-items: center;
}

input,
.paypal-field {
  background: white;
  border: 1px solid #b9c6d1;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.amount-field input {
  border: 0;
  min-height: 52px;
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.notice {
  background: #fff7df;
  border: 1px solid #ecd58a;
  color: #775a00;
  font-weight: 800;
  padding: 14px;
}

.button {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  text-transform: uppercase;
}

.button.primary {
  background: var(--blue);
  color: white;
}

.button.full {
  width: 100%;
}

.button:disabled {
  background: #bed0dc;
  color: #465969;
  cursor: not-allowed;
}

.paypal-divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  text-transform: uppercase;
}

.paypal-divider::before,
.paypal-divider::after {
  background: var(--line);
  content: "";
  height: 1px;
}

.result-message {
  font-weight: 800;
  min-height: 24px;
}

.result-message.success {
  color: var(--green);
}

.result-message.error {
  color: #b42318;
}

@media (max-width: 860px) {
  .pay-header,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .pay-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy {
    position: static;
  }
}

@media (max-width: 540px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}
