:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: #d7e7e0;
  background: #0a202b;
  --muted: #93b0b4;
  --line: #345653;
  --mint: #a1d3bf;
  --ink: #102f32;
}

* { box-sizing: border-box; }

html { min-width: 280px; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 0, #20484266, transparent 64%),
    #0a202b;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible {
  outline: 2px solid #d0f0dc;
  outline-offset: 4px;
}

.checkout-shell {
  width: min(100% - 40px, 500px);
  margin-inline: auto;
  padding-block: 42px 28px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 26px;
  margin-bottom: 30px;
}

.brand-name { display: inline-flex; flex: 0 1 auto; min-width: 0; color: #d2ebe3; text-decoration: none; }
.brand-name img { display: block; width: clamp(164px, 45vw, 226px); max-width: 100%; height: auto; }
.brand-context { margin-left: auto; font-size: 11px; color: #89a9ac; }

.checkout-card {
  position: relative;
  padding: 31px;
  border: 1px solid #42645d;
  border-top-color: #91b89d;
  background: #112c35;
  box-shadow: 0 18px 54px #04131a55, inset 0 1px 0 #d8e7bf0c;
}

.checkout-card::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 2px;
  top: -1px;
  left: 31px;
  background: #b4d2ac;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 1.25px;
  color: #abc6a8;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 5.2vw, 31px);
  font-weight: 400;
  letter-spacing: -.75px;
  line-height: 1.22;
  color: #e3ead9;
}

.intro {
  margin: 13px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.order-summary {
  margin-top: 29px;
  padding-block: 21px 17px;
  border-block: 1px solid var(--line);
}

.order-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.order-heading h2 { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 500; color: #d3e2d4; }
.purchase-type { font-size: 10px; line-height: 1.5; color: #9db6ad; white-space: nowrap; }
.order-description { margin: 7px 0 0; font-size: 11px; line-height: 1.7; color: #8faeae; }

.order-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 26px; }
.total-label { font-size: 12px; color: #a8c0bc; }
#price-total { max-width: 75%; font-size: clamp(23px, 5.3vw, 29px); font-weight: 400; line-height: 1.25; letter-spacing: -.5px; color: #e4e9ce; overflow-wrap: anywhere; }
.price-status { margin: 10px 0 0; min-height: 17px; font-size: 11px; line-height: 1.6; color: #91b2b2; }

.checkout-actions { margin-top: 22px; }

.primary-button {
  width: 100%;
  min-height: 46px;
  padding: 12px 15px;
  border: 1px solid #c4dfc6;
  border-radius: 2px;
  background: var(--mint);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: inset 0 -2px 0 #477d6b33;
}

.primary-button:hover:not(:disabled) { background: #b6e1cb; border-color: #daebd5; }
.buyer { margin-block: 22px; overflow-wrap: anywhere; }
.buyer label { display: block; font-size: 13px; margin: 10px 0 6px; }
.buyer input,.buyer textarea { display: block; width: 100%; border: 1px solid #648781; border-radius: 3px; background: #0b242d; color: #e9f1e5; padding: 11px; font: inherit; }
.buyer input:focus-visible,.buyer textarea:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.buyer input { margin-bottom: 10px; }
.buyer textarea { font: 12px/1.4 monospace; resize: vertical; }
.buyer p { color: #bfd1c8; font-size: 13px; line-height: 1.6; }
.buyer .text-button { margin: 4px 0; font-size: 13px; }
.buyer .primary-button { margin-block: 5px; }
.primary-button:active:not(:disabled) { background: #94c5af; box-shadow: inset 0 2px 0 #477d6b33; }
.primary-button:disabled { color: #a1b7b2; background: #294745; border-color: #496460; box-shadow: none; }

.text-button {
  display: block;
  margin: 11px auto 0;
  padding: 7px 3px;
  background: transparent;
  color: #b4d7c8;
  border: 0;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-color: #70978a;
  text-underline-offset: 4px;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
}

.text-button:hover:not(:disabled) { color: #dcf0de; }
.text-button:disabled { color: #8fa6a3; }
.checkout-feedback { margin: 14px 0 0; padding: 11px 12px; border-left: 2px solid #91b89d; background: #29413b66; color: #c3d9c5; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.checkout-feedback:empty { display: none; }
.cancel-note { margin: 17px 0 0; color: #91abae; font-size: 11px; line-height: 1.75; }

.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-links:has(a:not([hidden])) { border-top: 1px solid #34565399; padding-top: 18px; margin-top: 22px; }
.legal-links a { color: #a2bbb6; font-size: 11px; line-height: 1.65; text-decoration-color: #6e9187; text-underline-offset: 3px; }
.legal-links a:hover { color: #d5e8d5; }
.page-note { margin: 21px 0 0; color: #71969c; font-size: 10px; line-height: 1.6; text-align: center; }

.confirmation-card h1 { max-width: 370px; }
.confirmation-note { margin-top: 26px; padding-block: 19px; border-block: 1px solid var(--line); color: #b3cac0; }
.confirmation-note p { margin: 0; font-size: 13px; line-height: 1.8; }
.confirmation-note p + p { margin-top: 11px; font-size: 12px; color: #91abae; }

@media (min-width: 700px) {
  .checkout-shell { padding-top: clamp(42px, 10vh, 92px); }
}

@media (max-width: 420px) {
  .checkout-shell { width: calc(100% - 24px); padding-top: 23px; }
  .brand-row { margin-bottom: 22px; gap: 10px; }
  .checkout-card { padding: 25px 21px; }
  .checkout-card::before { left: 21px; }
  .brand-context { font-size: 10px; }
  .order-heading { flex-wrap: wrap; gap: 4px 12px; }
  .order-summary { margin-top: 23px; padding-top: 17px; }
  .order-total { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
