.checkout-page h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 1.06;
  max-width: 15ch;
  margin: 0.5rem 0 1.5rem;
}
.checkout-workspace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  margin: 2rem 0;
  border-block: 1px solid var(--line);
}
.checkout-workspace h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.checkout-workspace p {
  margin: 0;
  max-width: 60ch;
}
.checkout-workspace form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  min-width: min(100%, 20rem);
}
.checkout-workspace label {
  grid-column: 1/-1;
}
.checkout-workspace select {
  width: 100%;
  min-width: 0;
  background: #fffef9;
  color: #0b0c11;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem;
}
.checkout-page .api-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.checkout-page .api-plan-card {
  padding: 1.5rem;
  min-width: 0;
  gap: 1.3rem;
}
.checkout-card-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-height: 3rem;
}
.checkout-card-heading h2 {
  font-size: 2rem;
  margin: 0;
}
.checkout-badge {
  font-size: 0.72rem;
  background: #e9e1ff;
  color: #432092;
  border-radius: 20px;
  padding: 0.35rem 0.6rem;
}
.checkout-selected {
  border-color: #7b4dff;
  box-shadow: 0 0 0 2px #7b4dff;
}
.checkout-features {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}
.checkout-features li + li {
  margin-top: 0.55rem;
}
.checkout-card-action {
  margin-top: 0;
}
.checkout-page .product-button {
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  display: inline-flex;
  justify-content: center;
}
.checkout-card-action .product-button {
  width: 100%;
  margin-top: 0.8rem;
  box-sizing: border-box;
}
.checkout-consent {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 1rem 0 !important;
}
.checkout-consent a,
.checkout-agreement {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checkout-agreement {
  display: inline-block;
  font-size: 0.8rem;
  margin-top: 1rem;
}
.checkout-notice {
  background: #eae4ff;
  color: #282139;
  border-left: 4px solid #7b4dff;
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
  line-height: 1.6;
}
.checkout-error {
  background: #fff0e9;
  border-color: #b33b20;
  color: #5b2113;
}
.checkout-disabled {
  opacity: 0.65;
  cursor: default !important;
}
.checkout-agreement-page {
  max-width: 850px;
}
.checkout-agreement-text {
  font-size: 1rem;
  line-height: 1.8;
}
.checkout-page a:focus-visible,
.checkout-page button:focus-visible,
.checkout-page select:focus-visible {
  outline: 3px solid #2676ff;
  outline-offset: 4px;
}
@media (max-width: 1150px) {
  .checkout-page .api-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .checkout-page .api-plan-grid {
    grid-template-columns: 1fr;
  }
  .checkout-workspace {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }
  .checkout-page .product-header {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .checkout-workspace form {
    min-width: 0;
  }
}

/* Match the landing page's paper, jet-black and spectrum appearance. */
body {
  margin: 0;
}
.checkout-page {
  --paper: #f6f4ef;
  --bright: #fffef9;
  --ink: #0b0c11;
  --muted: #62636b;
  --line: rgba(11, 12, 17, 0.14);
  --surface: #eeece6;
  --field-border: #c8c6c1;
  --accent: #5840ba;
  min-height: 100vh;
  color-scheme: light;
}
.dark-style .checkout-page {
  --paper: #000;
  --bright: #000;
  --ink: #f4f2ed;
  --muted: #a5a7b3;
  --line: #2b2b2b;
  --surface: #000;
  --field-border: #454545;
  --accent: #c0abff;
  color-scheme: dark;
}
.checkout-page .product-header {
  border-bottom: 1px solid var(--line);
}
.checkout-page .product-header nav {
  margin-left: auto;
}
.checkout-page .product-brand {
  background: var(--button-spectrum);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 800;
}
.checkout-page h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
}
.checkout-page .api-plan-grid {
  padding-top: 1.25rem;
  border-top: 3px solid;
  border-image: var(--button-spectrum) 1;
}
.checkout-page .api-plan-card {
  background: var(--bright);
  border-color: var(--line);
  box-shadow: none;
  overflow-wrap: anywhere;
}
.checkout-page .api-plan-card.checkout-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.checkout-page .checkout-badge {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--field-border);
}
.checkout-page .checkout-features {
  list-style: none;
  padding: 0;
}
.checkout-features li {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.checkout-page .api-plan-price span {
  color: var(--muted);
  font-size: 0.85rem;
}
.checkout-page .checkout-workspace h2 {
  font-size: 1.5rem;
}
.checkout-page .checkout-card-heading h2 {
  font-size: 2rem;
  margin: 0;
}
.checkout-page .checkout-workspace :is(select, option, optgroup) {
  background: var(--bright);
  color: var(--ink);
  border-color: var(--field-border);
}
.checkout-page .checkout-notice {
  background: var(--bright);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0.75rem;
}
.checkout-page .checkout-error {
  border-left-color: #d94b39;
}
.checkout-page .product-button.checkout-disabled {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
  opacity: 1;
}
.checkout-page :is(a, button, select):focus-visible {
  outline-color: var(--accent);
}
.checkout-page .checkout-agreement:hover {
  color: var(--accent);
}
.checkout-page .product-header .theme-control {
  margin-left: auto;
}
@media (max-width: 900px) {
  .checkout-page .product-header {
    align-items: center;
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .checkout-page .product-header {
    flex-direction: row;
  }
  .checkout-page .product-header nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .checkout-page .product-section {
    padding-top: 2.5rem;
  }
  .checkout-page .product-header > a:not(.product-brand) {
    order: 3;
  }
}
