@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700;800&family=Manrope:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #070707;
  --surface: #111111;
  --surface-strong: #181818;
  --paper: #f7f3ea;
  --paper-line: #d8d0c0;
  --text: #ffffff;
  --muted: #aaa39a;
  --ink: #171512;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ff2d20;
  --accent-soft: rgba(255, 45, 32, 0.15);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 45, 32, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 32, 0.13) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(255, 45, 32, 0.18), transparent 38%),
    var(--bg);
  background-size: 120px 120px, 120px 120px, auto, auto;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.checkout-top,
.checkout-shell,
.checkout-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.checkout-top {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.checkout-brand {
  width: 176px;
  display: inline-flex;
  align-items: center;
}

.checkout-brand img {
  width: 100%;
  height: auto;
  display: block;
  background: #000000;
}

.checkout-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-shell {
  padding: 38px 0 70px;
}

.checkout-hero {
  max-width: 780px;
}

.checkout-kicker,
.discount-banner span,
.receipt-note span,
.checkout-footer,
.panel-head p {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: uppercase;
}

.checkout-kicker,
.panel-head p {
  margin: 0;
  color: var(--muted);
}

.checkout-hero h1,
.panel-head h2,
.after-payment h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.checkout-hero p {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.discount-banner {
  margin: 28px 0 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, 0.7fr);
  gap: 18px;
  align-items: center;
  color: var(--paper);
  background: var(--accent);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(255, 45, 32, 0.22);
}

.discount-banner strong {
  color: var(--paper);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  line-height: 0.95;
}

.discount-banner p {
  margin: 0;
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.order-panel,
.access-panel,
.after-payment {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.92);
}

.access-panel {
  position: sticky;
  top: 18px;
}

.panel-head h2,
.after-payment h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.price-lines {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.price-lines [hidden],
.discount-banner[hidden] {
  display: none !important;
}

.price-lines div {
  min-height: 58px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.price-lines span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.price-lines b,
.price-lines strong {
  white-space: nowrap;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.price-lines .price-old {
  opacity: 0.56;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

.price-lines .price-total {
  min-height: 86px;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper-line);
}

.price-lines .price-total span {
  color: #5f574e;
}

.price-lines .price-total strong {
  color: var(--ink);
  font-size: clamp(40px, 5vw, 62px);
}

.receipt-note {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 45, 32, 0.4);
  border-radius: 8px;
  background: var(--accent-soft);
}

.receipt-note span {
  color: var(--accent);
}

.receipt-note p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.included-list {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.included-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.included-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.checkout-form {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
}

.checkout-form label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form input[type="text"],
.checkout-form input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.checkout-form input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.check-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

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

.check-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.check-row a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.check-row--optional {
  opacity: 0.82;
}

.checkout-button {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  color: var(--paper);
  background: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.checkout-button:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.test-access {
  padding: 16px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.test-access[hidden] {
  display: none;
}

.test-access strong {
  font-size: 15px;
}

.test-access p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.test-access-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.test-access-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.payment-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.after-payment {
  margin-top: 18px;
}

.after-payment ol {
  margin: 26px 0 0;
  padding-left: 24px;
  color: var(--muted);
}

.after-payment li {
  padding-left: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.after-payment li + li {
  margin-top: 10px;
}

.checkout-footer {
  padding: 28px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.checkout-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .access-panel {
    position: static;
  }

  .discount-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .checkout-top,
  .checkout-shell,
  .checkout-footer {
    width: min(100% - 24px, var(--max));
  }

  .checkout-top {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .checkout-brand {
    width: 136px;
  }

  .checkout-nav {
    justify-content: flex-start;
  }

  .checkout-shell {
    padding-top: 28px;
  }

  .checkout-hero h1 {
    font-size: 36px;
  }

  .discount-banner {
    padding: 16px;
  }

  .price-lines div,
  .price-lines .price-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-lines .price-total strong {
    font-size: 46px;
  }

  .checkout-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
