:root {
  --sky: #a9c9e7;
  --sand: #e9ddd1;
  --ink: #161313;
  --muted: #5f5955;
  --line: rgba(22, 19, 19, 0.1);
  --card: rgba(255, 255, 255, 0.72);
  --field: rgba(255, 255, 255, 0.86);
  --shadow: rgba(55, 67, 78, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, #b8cde0 42%, var(--sand) 100%);
  font-family:
    "Open Runde",
    "Open Runde Placeholder",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  width: min(28vw, 320px);
  aspect-ratio: 2.72;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.78;
}

.cloud-left {
  top: 24vh;
  left: -6vw;
  background-image: url("./c1.webp");
}

.cloud-right {
  top: 22vh;
  right: -4vw;
  background-image: url("./c2.avif");
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(1240px, calc(100% - 64px));
  align-items: center;
  gap: 24px;
  margin: 32px auto 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.brand span {
  font-size: 25px;
  font-weight: 820;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 48px);
}

.site-nav a {
  color: rgba(22, 19, 19, 0.86);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0 28px;
  font-size: 17px;
  font-weight: 820;
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(22, 19, 19, 0.12);
}

.payment-shell {
  display: grid;
  width: min(780px, calc(100% - 40px));
  min-height: calc(100vh - 92px);
  align-content: start;
  justify-items: center;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.payment-hero {
  max-width: 720px;
  text-align: center;
}

body.is-result .payment-hero,
body.is-message .payment-hero {
  display: none;
}

.eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0 18px;
  color: #4f3831;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.payment-hero h1 {
  margin: 34px 0 0;
  /* font-size: clamp(54px, 10vw, 104px); */
  font-weight: 860;
  line-height: 0.98;
  letter-spacing: 0;
}

.payment-hero p {
  max-width: 620px;
  margin: 28px auto 0;
  color: #413937;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 520;
}

.payment-card {
  width: min(640px, 100%);
  margin-top: 54px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius);
  /* background: var(--card);
   */
  background: #fbfdfd;
  padding: clamp(28px, 5vw, 44px);
  box-shadow:
    0 28px 80px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px);
}

body.is-result .payment-card,
body.is-message .payment-card {
  margin-top: clamp(42px, 8vh, 86px);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.brand-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(22, 19, 19, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    url("./flare-icon.png") center/cover no-repeat;
  box-shadow: 0 16px 34px rgba(22, 19, 19, 0.1);
}

.card-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-heading h2 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1.1;
}

.state {
  display: none;
}

.payment-card[data-state="loading"] .state-loading,
.payment-card[data-state="result"] .state-result,
.payment-card[data-state="message"] .state-message {
  display: block;
}

h3 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: 0;
}

.state p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 0 22px;
  border: 3px solid rgba(22, 19, 19, 0.12);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.license-panel {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--field);
  padding: 20px 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.license-panel span,
dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.license-panel strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.35;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.order-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px 16px;
}

dt,
dd {
  margin: 0;
}

dd {
  margin-top: 5px;
  color: #2a2624;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 560;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 24px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 34px rgba(22, 19, 19, 0.12);
}

.button-secondary {
  border-color: rgba(22, 19, 19, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.support-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.support-note a {
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.support-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: min(100% - 32px, 640px);
    margin-top: 22px;
  }

  .site-nav {
    display: none;
  }

  .nav-cta {
    min-height: 48px;
    padding: 0 20px;
    font-size: 15px;
  }

  .payment-shell {
    min-height: calc(100vh - 72px);
    padding-top: 70px;
  }

  .payment-card {
    margin-top: 38px;
  }
}

@media (max-width: 560px) {
  .cloud {
    opacity: 0.42;
  }

  .brand span {
    font-size: 22px;
  }

  .payment-shell {
    width: min(100% - 28px, 640px);
    padding-bottom: 40px;
  }

  .payment-hero h1 {
    margin-top: 24px;
    font-size: 48px;
  }

  .payment-hero p {
    margin-top: 20px;
    font-size: 17px;
  }

  .payment-card {
    border-radius: 24px;
    padding: 24px;
  }

  .card-heading {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .order-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }
}
