:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --fg: #111113;
  --muted: rgba(17, 17, 19, 0.56);
  --line: rgba(17, 17, 19, 0.1);
  --button: #111113;
  --button-fg: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 76% 48%, rgba(255, 255, 255, 0.95), transparent 30rem),
    var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.hero {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 7vw, 88px);
}

.copy {
  display: grid;
  gap: 18px;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(54px, 7.2vw, 104px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
}

p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(24px, 3.3vw, 42px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

.actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.guarantee {
  color: rgba(17, 17, 19, 0.48);
  font: 600 14px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

button,
a {
  min-width: 132px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  border: 1px solid transparent;
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

button:active,
a:active {
  transform: scale(0.98);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.36);
  outline-offset: 3px;
}

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

.primary[aria-busy="true"] {
  opacity: 0.68;
}

.secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--fg);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.mascot {
  width: min(34vw, 360px);
  min-width: 240px;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.16));
  user-select: none;
  pointer-events: none;
}

.status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(22px);
}

.checkout-modal.is-open {
  display: flex;
}

.checkout-dialog,
.checkout-shell {
  width: min(520px, 100%);
  max-height: min(840px, 94dvh);
  overflow: auto;
  border: 1px solid rgba(17, 17, 19, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}

.checkout-dialog {
  padding: 18px;
}

.checkout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 16px;
}

.checkout-head b {
  display: block;
  font: 700 18px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.checkout-head span,
.embedded-status,
.hosted-fallback {
  color: rgba(17, 17, 19, 0.52);
  font: 600 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.checkout-close {
  min-width: 34px;
  min-height: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  color: rgba(17, 17, 19, 0.58);
  background: rgba(17, 17, 19, 0.06);
}

.embedded-checkout {
  min-height: 520px;
}

.embedded-status {
  margin: 12px 4px 0;
  font-size: 14px;
}

.hosted-fallback {
  min-width: 0;
  min-height: 0;
  display: inline-flex;
  margin: 12px 4px 2px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration-color: rgba(17, 17, 19, 0.22);
  text-underline-offset: 3px;
}

.checkout-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
}

.checkout-shell {
  padding: 24px;
}

.checkout-shell h1 {
  margin: 24px 0 10px;
  font-size: clamp(34px, 8vw, 56px);
  line-height: 0.96;
}

.checkout-shell p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.35;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
}

.footer a,
.legal-back {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  color: rgba(17, 17, 19, 0.42);
  background: transparent;
  font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  text-decoration: none;
}

.footer a:hover,
.legal-back:hover {
  color: rgba(17, 17, 19, 0.72);
}

.legal {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
}

.legal h1 {
  margin-top: 28px;
  font-size: clamp(38px, 7vw, 64px);
}

.legal p {
  margin-top: 20px;
  max-width: 64ch;
  color: rgba(17, 17, 19, 0.64);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.legal p a {
  color: rgba(17, 17, 19, 0.82);
  text-decoration-color: rgba(17, 17, 19, 0.2);
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .shell {
    place-items: start center;
    padding-top: 56px;
    padding-bottom: 96px;
  }

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

  .mascot {
    grid-row: 1;
    width: min(78vw, 360px);
  }

  .copy {
    gap: 16px;
  }

  h1 {
    font-size: clamp(44px, 12vw, 68px);
  }

  p {
    font-size: clamp(25px, 7vw, 38px);
  }

  .footer {
    position: static;
    padding: 0 24px 24px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  button,
  a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mascot {
    animation: float 5.5s ease-in-out infinite;
  }

  @keyframes float {
    0%,
    100% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(0, -8px, 0);
    }
  }
}
