:root {
  color-scheme: dark;
  --bg: #070b0d;
  --panel: #0e1517;
  --panel-strong: #111b1d;
  --line: rgba(202, 231, 229, 0.14);
  --line-strong: rgba(202, 231, 229, 0.27);
  --text: #f1f6f5;
  --muted: #94a19f;
  --cyan: #2bd8ce;
  --coral: #ff6073;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.checkout-header,
.checkout-footer {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.checkout-header {
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.checkout-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}

.checkout-brand img {
  width: 42px;
  height: 42px;
}

.checkout-brand b {
  color: var(--cyan);
}

.checkout-brand em {
  color: var(--coral);
  font-style: normal;
}

.checkout-badge {
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.checkout-main {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 72px;
  align-items: start;
}

.checkout-intro,
.checkout-form-section {
  min-width: 0;
}

.checkout-eyebrow,
.checkout-form-heading > span {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 0.98;
}

.checkout-lead {
  max-width: 470px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.checkout-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-price strong {
  font-size: 42px;
}

.checkout-price span {
  color: var(--muted);
}

.checkout-benefits {
  margin: 28px 0 30px;
  padding: 0;
  display: grid;
  gap: 18px;
  list-style: none;
}

.checkout-benefits li {
  position: relative;
  padding-left: 28px;
  display: grid;
  gap: 4px;
}

.checkout-benefits li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--cyan);
  content: "✓";
  font-weight: 800;
}

.checkout-benefits span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.trial-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.trial-link {
  color: var(--cyan);
  font-size: 14px;
  text-underline-offset: 4px;
}

.checkout-form-section {
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.checkout-form-heading {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.checkout-form-heading h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.checkout-form-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form > label:first-child {
  font-size: 13px;
  font-weight: 700;
}

.checkout-form input[type="email"],
.checkout-form input[data-code-input] {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #081012;
  color: var(--text);
  font: inherit;
  outline: none;
}

.checkout-form input[type="email"]:focus,
.checkout-form input[data-code-input]:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(43, 216, 206, 0.12);
}

.checkout-form input[readonly] {
  color: #c8d3d1;
  background: #0b1416;
}

.checkout-email-row,
.checkout-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.checkout-field-hint,
.checkout-verification-status {
  margin: -5px 0 2px;
  color: #71807e;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-verification-status {
  min-height: 18px;
  margin-top: 0;
}

.checkout-verification-status[data-tone="success"] {
  color: var(--cyan);
}

.checkout-verification-status[data-tone="error"] {
  color: var(--coral);
}

.checkout-code-step {
  padding: 15px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a1214;
}

.checkout-code-step > label {
  font-size: 13px;
  font-weight: 700;
}

.checkout-form input[data-code-input] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  letter-spacing: 0;
}

.checkout-code-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
}

.checkout-form .checkout-code-actions button,
.checkout-form .checkout-verified button {
  min-height: 0;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-form .checkout-secondary-button {
  min-width: 132px;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 14px;
  border: 1px solid var(--line-strong) !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 13px !important;
}

.checkout-verified {
  min-height: 62px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(43, 216, 206, 0.42);
  border-radius: 6px;
  background: rgba(43, 216, 206, 0.06);
}

.checkout-verified > span {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 800;
}

.checkout-verified p {
  margin: 0;
  display: grid;
  gap: 3px;
  font-size: 13px;
}

.checkout-verified small {
  color: var(--muted);
  font-size: 12px;
}

.checkout-terms {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.checkout-terms input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--cyan);
}

.checkout-terms a,
.checkout-policy-note a,
.checkout-help a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.checkout-policy-note {
  margin: -2px 0 2px 30px;
  color: #879592;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-form button {
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 6px;
  background: var(--cyan);
  color: #041211;
  font: inherit;
  font-weight: 780;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.checkout-form button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.checkout-form button:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: 0.46;
  transform: none;
}

.checkout-security {
  margin: 2px 0 0;
  color: #71807e;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.checkout-help {
  margin-top: 26px;
  padding-top: 22px;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.checkout-help p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

[hidden] {
  display: none !important;
}

.email-help-main {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 84px;
  display: grid;
  gap: 18px;
}

.email-help-heading {
  margin-bottom: 18px;
}

.email-help-heading h1 {
  margin-bottom: 14px;
  font-size: 52px;
}

.email-help-heading > p:last-child,
.email-help-step p,
.email-help-warning p {
  color: var(--muted);
  line-height: 1.55;
}

.email-help-step {
  padding: 28px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line-strong);
  background: var(--panel);
}

.email-help-step > span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.email-help-step h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.email-help-list {
  font-size: 13px;
}

.email-help-list b {
  color: var(--text);
}

.email-help-action {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.email-help-warning {
  padding: 20px 28px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid rgba(255, 96, 115, 0.32);
  border-radius: 6px;
  background: rgba(255, 96, 115, 0.05);
}

.email-help-warning b {
  color: var(--coral);
}

.email-help-warning p {
  margin: 0;
  font-size: 13px;
}

.checkout-footer {
  min-height: 80px;
  border-top: 1px solid var(--line);
  color: #73807f;
  font-size: 12px;
}

@media (max-width: 820px) {
  .checkout-main {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 50px;
  }

  .checkout-intro {
    text-align: center;
  }

  .checkout-lead {
    margin-inline: auto;
  }

  .checkout-price {
    justify-content: center;
  }

  .checkout-benefits {
    width: min(100%, 520px);
    margin-inline: auto;
    text-align: left;
  }

  .trial-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .checkout-header,
  .checkout-footer,
  .checkout-main,
  .email-help-main {
    width: min(100% - 28px, 1060px);
  }

  .checkout-header {
    min-height: 72px;
  }

  .checkout-badge {
    display: none;
  }

  .checkout-main {
    padding: 38px 0 56px;
  }

  h1 {
    font-size: 42px;
  }

  .email-help-heading h1 {
    font-size: 36px;
  }

  .checkout-form-section {
    padding: 24px 18px;
  }

  .checkout-email-row,
  .checkout-code-row {
    grid-template-columns: 1fr;
  }

  .checkout-form .checkout-secondary-button {
    width: 100%;
  }

  .email-help-step,
  .email-help-warning {
    padding: 22px 18px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .checkout-policy-note {
    margin-left: 0;
  }

  .checkout-help p,
  .checkout-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-footer {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
