:root {
  --ink: #211633;
  --ink-soft: #5e4c77;
  --muted: #706184;
  --line: rgba(94, 61, 142, 0.15);
  --surface: rgba(255, 255, 255, 0.86);
  --violet: #7c5ce6;
  --violet-deep: #4d2fb0;
  --violet-soft: #f1eaff;
  --page: #f8f4ff;
  --shadow: 0 28px 80px rgba(45, 22, 92, 0.15);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 6%, rgba(176, 146, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(255, 210, 244, 0.32), transparent 30rem),
    linear-gradient(145deg, #fbf8ff 0%, #f4edff 48%, #fff8fd 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--violet-deep);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
}
.checkout-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.checkout-brand b { color: var(--violet); }
.checkout-header-right { display: flex; align-items: center; gap: 18px; }
.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(124, 92, 230, 0.18);
  border-radius: 999px;
  color: #6747c7;
  background: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.back-link:hover { color: var(--violet-deep); }

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 470px);
  align-items: start;
  gap: clamp(38px, 7vw, 100px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 68px) 0 54px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--violet-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
.checkout-intro h1 {
  margin: 0;
  max-width: 650px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -0.055em;
}
.checkout-intro h1 span { color: #6c45cf; }
.intro-copy {
  max-width: 510px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.benefit-list {
  display: grid;
  gap: 18px;
  margin: 37px 0 0;
  padding: 0;
  list-style: none;
}
.benefit-list li { display: flex; gap: 13px; align-items: flex-start; }
.benefit-mark {
  display: grid;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(124, 92, 230, .18);
  border-radius: 50%;
  color: #5f37c0;
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
}
.benefit-list strong { display: block; font-size: 13.5px; font-weight: 750; }
.benefit-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.trust-note {
  display: flex;
  gap: 12px;
  max-width: 510px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.trust-icon { color: var(--violet); font-size: 18px; line-height: 1.2; }
.trust-note p { margin: 0; font-size: 12px; line-height: 1.65; }
.trust-note strong { color: var(--ink-soft); }

.checkout-card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(113, 75, 181, 0.16);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.checkout-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.7), rgba(233,219,255,.18));
  content: "";
}
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-chip {
  padding: 6px 10px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #8d72ee, #5f37c0);
  box-shadow: 0 4px 12px rgba(86, 49, 179, .24);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.renewal-chip { color: #8b7ba3; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; }
.checkout-card h2 {
  margin: 26px 0 8px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.card-subtitle { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.line-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.line-item strong { display: block; font-size: 13.5px; }
.line-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.line-price { white-space: nowrap; color: var(--violet-deep) !important; font-size: 14px !important; }

#checkout-form label {
  display: block;
  margin-bottom: 8px;
  color: #4d3a68;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .01em;
}
.optional { color: #9b8bb4; font-weight: 500; }
#checkout-email {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 1px solid rgba(104, 68, 165, 0.24);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
#checkout-email::placeholder { color: #aa9bbd; }
#checkout-email:focus { border-color: #8e70e8; box-shadow: 0 0 0 4px rgba(124, 92, 230, .12); }
.field-hint { min-height: 16px; margin: 7px 0 17px; color: #8d7aa8; font-size: 10.5px; line-height: 1.5; }

.checkout-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #896de7 0%, #5b34bd 58%, #412292 100%);
  box-shadow: 0 10px 22px rgba(83, 43, 174, .22), inset 0 1px 0 rgba(255,255,255,.32);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}
.checkout-button:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.checkout-button:active:not(:disabled) { transform: translateY(0); }
.checkout-button:disabled { cursor: wait; opacity: .58; }
.button-arrow { font-size: 19px; font-weight: 400; line-height: 1; }
.checkout-status {
  min-height: 32px;
  margin: 13px 0 0;
  color: #7b6a94;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.checkout-status.error { color: #b02d4a; }
.checkout-status.notice { color: #8a5a08; }

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #9383aa;
  font-size: 10px;
  font-weight: 600;
}
.checkout-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: #8d7ca3;
  font-size: 11px;
}
.checkout-footer p { margin: 0; }
.checkout-footer div { display: flex; gap: 18px; }
.checkout-footer a { text-decoration: none; }
.checkout-footer a:hover { color: var(--violet-deep); }

.success-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid rgba(124, 92, 230, .22);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #9b7cf0, #5b34bd);
  box-shadow: 0 12px 28px rgba(84, 45, 177, .24);
  font-size: 27px;
  font-weight: 700;
}

.noscript {
  width: min(700px, calc(100% - 40px));
  margin: 20px auto;
  padding: 14px 16px;
  border: 1px solid #efc66d;
  border-radius: 10px;
  color: #744f05;
  background: #fff8e6;
  font-size: 13px;
}

@media (max-width: 840px) {
  .checkout-shell { grid-template-columns: 1fr; gap: 34px; padding-top: 26px; }
  .checkout-intro h1 { max-width: 600px; }
  .benefit-list { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .trust-note { margin-top: 26px; }
}
@media (max-width: 560px) {
  .checkout-header { align-items: flex-start; padding-top: 18px; }
  .checkout-header-right { gap: 10px; flex-direction: column; align-items: flex-end; }
  .secure-pill { font-size: 9px; padding: 5px 8px; }
  .back-link { font-size: 12px; }
  .checkout-brand { font-size: 14px; }
  .checkout-brand img { width: 33px; height: 33px; }
  .checkout-intro h1 { font-size: clamp(39px, 12vw, 58px); }
  .intro-copy { font-size: 14.5px; }
  .benefit-list { grid-template-columns: 1fr; }
  .checkout-card { border-radius: 21px; }
  .checkout-footer { flex-direction: column; gap: 8px; }
}
