:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5f6c68;
  --line: #d8dfdc;
  --surface: #ffffff;
  --wash: #f4f7f5;
  --accent: #167c73;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--wash);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--wash);
  color: var(--ink);
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
}

.brand {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 22px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  width: 230px;
  max-width: 64vw;
  height: auto;
}

.content {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  min-height: calc(100vh - 133px);
}

.offer {
  padding: 64px 44px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back:focus-visible,
.action:focus-visible,
.identity-form input:focus-visible,
.identity-form button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, white);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0 auto;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
}

.price {
  margin: 22px 0 0;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.45;
}

.terms {
  max-width: 35ch;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.payment {
  min-width: 0;
  padding: 52px 48px 68px;
}

.payment h2 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0;
}

.secure {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

#checkout {
  width: 100%;
  min-height: 410px;
}

.status {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.status[data-state="error"] {
  color: #8f2f27;
}

.identity-form {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.identity-form label {
  font-size: 14px;
  font-weight: 750;
}

.identity-form input,
.identity-form button {
  width: 100%;
  min-height: 50px;
  border-radius: 6px;
  font: inherit;
}

.identity-form input {
  padding: 12px 14px;
  border: 1px solid #aab7b2;
  background: #ffffff;
  color: var(--ink);
}

.identity-form button,
.action {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.identity-form button {
  padding: 12px 14px;
}

.complete {
  display: grid;
  min-height: calc(100vh - 133px);
  place-items: center;
  padding: 48px 24px;
  text-align: center;
}

.complete-inner {
  max-width: 620px;
}

.complete h1 {
  max-width: none;
}

.complete p:not(.eyebrow) {
  max-width: 44ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 13px 20px;
  border-radius: 6px;
  font-size: 16px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .brand {
    min-height: 108px;
    padding: 22px 20px 18px;
  }

  .brand img {
    width: 188px;
  }

  .content {
    display: block;
    min-height: auto;
  }

  .offer {
    padding: 30px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .back {
    margin: 0 0 22px;
  }

  h1 {
    max-width: none;
    font-size: 36px;
  }

  .price {
    font-size: 18px;
  }

  .payment {
    padding: 32px 16px 48px;
  }

  .payment h2,
  .secure {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
