:root {
  color-scheme: dark;
  --ink: #111418;
  --panel: #171c22;
  --text: #f6f7f8;
  --body: #e7eaed;
  --muted: #a3acb5;
  --muted-bright: #c2c8ce;
  --accent: #42cdbd;
  --accent-bright: #a9ece5;
  --blue: #7db9f8;
  --red: #ff8f8f;
  --line: rgba(184, 231, 225, 0.14);
  --line-strong: rgba(184, 231, 225, 0.3);
  --font: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: min(1280px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--body);
  font-family: var(--font);
  font-synthesis: none;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The same field as the homepage */

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 0% 0%, rgba(240, 138, 75, 0.2), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(40, 179, 154, 0.22), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(40, 179, 154, 0.15), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(240, 138, 75, 0.15), transparent 42%),
    linear-gradient(180deg, #0a0e13 0%, var(--ink) 45%, #10161c 100%);
  content: "";
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

main {
  display: grid;
  min-height: 100svh;
  align-content: start;
  padding: 28px 0 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Layout */

.buy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
  padding-top: clamp(48px, 8vh, 96px);
}

.buy-copy {
  min-width: 0;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 5.6vw, 5.4rem);
}

h1 .accent {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent) 48%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 36rem;
  margin: 26px 0 0;
  color: var(--muted-bright);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.4;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin: 34px 0 0;
}

.price strong {
  color: var(--text);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 0.98rem;
}

.benefits {
  display: grid;
  gap: 10px;
  max-width: 38rem;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.08rem, 1.3vw, 1.25rem);
  line-height: 1.4;
}

.benefits li {
  position: relative;
  padding-left: 26px;
}

.benefits li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.download-note {
  max-width: 38rem;
  margin: 30px 0 0;
  color: var(--body);
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  line-height: 1.55;
}

.download-note a {
  color: var(--accent-bright);
  text-underline-offset: 0.2em;
}

/* Checkout card */

.checkout {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(#141920, #10141a) padding-box,
    linear-gradient(135deg, rgba(125, 185, 248, 0.55), rgba(66, 205, 189, 0.55)) border-box;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.checkout::before {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 120%;
  background: radial-gradient(circle, rgba(66, 205, 189, 0.14), transparent 62%);
  filter: blur(20px);
  content: "";
  pointer-events: none;
}

.checkout-heading,
.checkout form {
  position: relative;
}

.checkout-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.checkout-heading h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
}

.checkout-heading strong {
  color: var(--text);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.checkout form {
  display: grid;
  gap: 8px;
  padding-top: 22px;
}

.checkout label {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.checkout input[type="text"],
.checkout input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.7);
  color: var(--text);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.checkout input::placeholder {
  color: var(--muted);
}

.checkout input[type="text"]:focus,
.checkout input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(66, 205, 189, 0.16);
}

.checkout small {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.checkout .check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted-bright);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.check a {
  color: var(--accent-bright);
  text-underline-offset: 0.18em;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 42%, var(--blue));
  color: #07211d;
  box-shadow: 0 14px 40px rgba(66, 205, 189, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(66, 205, 189, 0.32);
}

.button:disabled {
  opacity: 0.6;
  transform: none;
  cursor: progress;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.form-note.ok {
  color: var(--accent-bright);
}

.form-note.bad {
  color: var(--red);
}

/* Footer */

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-layout p a {
  color: var(--muted-bright);
  text-underline-offset: 0.18em;
}

.footer-layout nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
}

.footer-layout nav a {
  color: var(--muted-bright);
  text-decoration: none;
}

.footer-layout nav a:hover,
.footer-layout nav a:focus-visible {
  color: var(--text);
}

/* Responsive */

@media (max-width: 1000px) {
  .buy-layout {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  h1 {
    font-size: clamp(2.5rem, 11.5vw, 3.3rem);
  }

  .checkout {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
