:root {
  color-scheme: dark;
  --bg: #050816;
  --surface: #0d1225;
  --surface-2: #141a33;
  --line: rgba(224, 228, 255, .15);
  --line-strong: rgba(224, 228, 255, .26);
  --text: #f7f7fb;
  --muted: #a7aec5;
  --accent: #7a73f6;
  --accent-2: #625ee7;
  --accent-soft: rgba(122, 115, 246, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(98, 94, 231, .24), transparent 38rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 12px 18px;
  border-radius: 10px;
  color: #080d1d;
  background: white;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid #a8a4ff; outline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkout-header {
  width: min(calc(100% - 40px), 1100px);
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
}
.checkout-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 760;
}
.checkout-brand img { border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .32); }
.quiet-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.quiet-link:hover { color: var(--text); }
.checkout-main {
  width: min(calc(100% - 32px), 760px);
  margin: 28px auto 64px;
}
.checkout-card {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(20, 26, 51, .96), rgba(9, 13, 30, .98));
  box-shadow: 0 42px 100px rgba(0, 0, 0, .4);
}
.product-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 255, 255, .035);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .3);
}
.product-mark img { width: 70px; height: 70px; border-radius: 20px; }
.eyebrow {
  margin: 0 0 12px;
  color: #aaa6ff;
  font: 750 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}
.checkout-card h1,
.placeholder-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1;
  letter-spacing: -.055em;
  text-align: center;
}
.checkout-lead {
  max-width: 570px;
  margin: 20px auto 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}
.plan-form { margin: 0; }
.launch-required {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, .035);
  text-align: center;
}
.launch-required[hidden] { display: none; }
.launch-required strong { font-size: 20px; }
.launch-required p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.plan-picker {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
}
.plan-option {
  position: relative;
  min-height: 108px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  background: rgba(255, 255, 255, .018);
  transition: background .2s ease;
}
.plan-option + .plan-option { border-top: 1px solid var(--line); }
.plan-option:hover { background: rgba(255, 255, 255, .045); }
.plan-option:has(input:checked) {
  background: linear-gradient(90deg, rgba(122, 115, 246, .17), rgba(122, 115, 246, .055));
}
.plan-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.radio-mark {
  width: 22px;
  height: 22px;
  border: 2px solid #e7e8f0;
  border-radius: 50%;
}
.plan-option input:checked + .radio-mark {
  border: 6px solid var(--accent);
  background: white;
}
.plan-option input:focus-visible + .radio-mark {
  outline: 3px solid #a8a4ff;
  outline-offset: 4px;
}
.plan-copy,
.plan-price { display: grid; gap: 6px; }
.plan-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.plan-copy strong,
.plan-price strong { font-size: 17px; }
.plan-copy small,
.plan-price small { color: var(--muted); font-size: 12px; }
.plan-price { justify-items: end; text-align: right; }
.plan-badge {
  position: static;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #cac7ff;
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 760;
}
.order-summary {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

.subscription-management-card h1 { font-size: clamp(34px, 7vw, 52px); }
.management-loading,
.management-action,
.management-result,
.management-error {
  margin-top: 34px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
}
.management-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.management-loading span:last-child { display: grid; gap: 5px; }
.management-loading strong { color: var(--text); }
.management-loading small { font-size: 13px; }
.management-action,
.management-result,
.management-error { text-align: center; }
.management-action h2,
.management-result h2,
.management-error h2 { margin: 0 0 12px; font-size: 24px; }
.management-action > p:not(.legal-note),
.management-result > p:not(.legal-note),
.management-error > p { margin: 0 auto 22px; color: var(--muted); line-height: 1.6; }
.management-confirm { width: 100%; cursor: pointer; }
.management-confirm:disabled { opacity: .62; cursor: wait; }
.management-result-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: white;
  background: var(--accent-2);
  font-size: 30px;
  font-weight: 800;
}
.order-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.order-summary span { color: var(--muted); }
.order-summary p {
  margin: 3px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.provider-note {
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.provider-note span { margin-right: 6px; color: #aaa6ff; }
.pay-button,
.secondary-button {
  width: 100%;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 17px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 20px 45px rgba(73, 66, 210, .28);
  cursor: pointer;
  text-decoration: none;
  font-weight: 780;
  font-size: 17px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pay-button:hover { transform: translateY(-2px); box-shadow: 0 24px 52px rgba(73, 66, 210, .4); }
.pay-button:disabled { cursor: wait; opacity: .72; transform: none; box-shadow: none; }
.payment-pending .plan-picker { opacity: .72; }
.payment-pending .plan-option { pointer-events: none; }
.payment-error {
  margin: 14px 0 0;
  color: #ff9b9b;
  font-size: 14px;
  text-align: center;
}
.legal-note,
.prototype-note {
  margin: 17px auto 0;
  color: #858da8;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}
.legal-note a { color: #c4c1ff; }
.prototype-note {
  padding: 11px 13px;
  border: 1px dashed rgba(170, 166, 255, .26);
  border-radius: 12px;
  color: #aaa6c6;
}
.checkout-footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px;
  color: #737c98;
  font-size: 12px;
}
.checkout-footer a { text-decoration: none; }
.checkout-footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .payment-embed-heading { align-items: start; flex-direction: column; }
  .payment-embed-heading > span { text-align: left; }
  .payment-frame { min-height: 780px; }
}

.placeholder-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.placeholder-card {
  width: min(100%, 610px);
  padding: clamp(34px, 7vw, 60px);
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(20, 26, 51, .97), rgba(9, 13, 30, .99));
  box-shadow: 0 42px 100px rgba(0, 0, 0, .42);
  text-align: center;
}
.placeholder-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 23px;
  color: #c7c4ff;
  background: var(--accent-soft);
  font-size: 30px;
}
.placeholder-card > p:not(.eyebrow) {
  margin: 22px 0 28px;
  color: var(--muted);
  line-height: 1.65;
}
.placeholder-order {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
}
.placeholder-order div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
}
.placeholder-order div + div { border-top: 1px solid var(--line); }
.placeholder-order dt { color: var(--muted); }
.placeholder-order dd { margin: 0; font-weight: 740; }
.placeholder-actions { display: grid; gap: 11px; }
.secondary-button {
  color: #cbcfe0;
  background: rgba(255, 255, 255, .065);
  box-shadow: none;
}
.secondary-button:hover { background: rgba(255, 255, 255, .1); }

.flow-card { width: min(100%, 660px); }
.success-mark { color: #d9fff0; background: rgba(56, 196, 139, .16); }
.conflict-mark { color: #dedcff; font-weight: 800; }
.compact-order { margin-bottom: 18px; }
.recovery-key {
  display: grid;
  gap: 15px;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  text-align: left;
}
.recovery-key > div:first-child { display: grid; gap: 8px; }
.recovery-key strong { overflow-wrap: anywhere; font: 750 16px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
.recovery-key p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.live-success-card { overflow: hidden; }
.payment-state-icon {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .08em;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
[data-payment-state="checking"] .payment-state-icon {
  animation: payment-pulse 1.15s ease-in-out infinite alternate;
}
[data-payment-state="confirmed"] .payment-state-icon {
  color: #d9fff0;
  background: rgba(56, 196, 139, .16);
  font-size: 30px;
}
[data-payment-state="return-to-app"] .payment-state-icon {
  color: #dedcff;
  font-size: 28px;
}
[data-payment-state="unavailable"] .payment-state-icon {
  color: #ffd6d6;
  background: rgba(232, 92, 92, .14);
  font-size: 28px;
}
.live-recovery-key { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.live-recovery-key > p { grid-column: 1 / -1; }
.copy-key-button { min-height: 42px; white-space: nowrap; }
.success-download {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 750;
}
.success-footnote {
  margin: 18px 0 0 !important;
  color: #c3c8da !important;
  font-size: 13px;
}
.prototype-note a { color: #c9c6ff; }
@keyframes payment-pulse {
  from { opacity: .55; transform: scale(.96); }
  to { opacity: 1; transform: scale(1.03); }
}
.recovery-label,
.section-label { color: var(--muted); font-size: 12px; font-weight: 720; text-transform: uppercase; letter-spacing: .08em; }
.key-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.key-button,
.quiet-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #d8daea;
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
}
.key-button:hover,
.quiet-button:hover { background: rgba(255, 255, 255, .1); }
.account-shell { width: min(calc(100% - 32px), 900px); margin: 0 auto; padding: 28px 0 72px; }
.account-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.demo-pill,
.status-pill,
.device-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #c9c6ff;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 740;
}
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: #45d39a; }
.account-card { margin-top: 24px; padding: clamp(25px, 5vw, 48px); border: 1px solid var(--line-strong); border-radius: 30px; background: linear-gradient(145deg, rgba(20, 26, 51, .97), rgba(9, 13, 30, .99)); box-shadow: 0 42px 100px rgba(0, 0, 0, .42); }
.account-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow.left { text-align: left; }
.account-title h1 { margin: 0; font-size: clamp(34px, 6vw, 50px); letter-spacing: -.055em; }
.account-grid { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; }
.account-section { padding: 20px; }
.account-section + .account-section { border-top: 1px solid var(--line); }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.account-row + .account-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-row > div:first-child { display: grid; gap: 5px; min-width: 0; }
.account-row strong { overflow-wrap: anywhere; }
.account-row small { color: var(--muted); line-height: 1.45; }
.key-row > div:first-child strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.flow-next { display: grid; gap: 14px; margin-top: 28px; }
.flow-next p { margin: 0; color: var(--muted); line-height: 1.55; }
.device-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .035); text-align: left; }
.device-card > div:nth-child(2) { display: grid; gap: 5px; }
.device-card small { color: var(--muted); }
.device-card > span { color: #aaa6ff; font-size: 12px; }
.device-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #cfccff; background: var(--accent-soft); font-weight: 800; }
.success-device { color: #d9fff0; background: rgba(56, 196, 139, .16); }
.transfer-note { margin-bottom: 24px; padding: 15px; border-radius: 14px; color: #c8cbe0; background: rgba(122, 115, 246, .1); font-size: 13px; line-height: 1.55; text-align: left; }

@media (max-width: 600px) {
  .checkout-header { min-height: 70px; }
  .quiet-link { font-size: 12px; }
  .checkout-main { margin-top: 8px; }
  .checkout-card { border-radius: 25px; }
  .plan-option {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 17px;
  }
  .plan-price {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
  .plan-badge { right: 14px; }
  .account-title { align-items: flex-start; flex-direction: column; }
  .account-row.stacked-mobile,
  .key-row { align-items: flex-start; flex-direction: column; }
  .device-card { grid-template-columns: auto minmax(0, 1fr); }
  .device-card > span { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .payment-stage-spinner,
  [data-payment-state="checking"] .payment-state-icon { animation: none !important; }
}

/* The paywall deliberately follows the warm editorial landing page. Other
   checkout/account prototypes retain their dark presentation. */
html:has(.paywall-page) {
  color-scheme: light;
  background: #f3f1eb;
}
.paywall-page {
  --bg: #f3f1eb;
  --surface: #ffffff;
  --surface-2: #f7f6f2;
  --line: rgba(24, 24, 23, .12);
  --line-strong: rgba(24, 24, 23, .18);
  --text: #181817;
  --muted: #686760;
  --accent: #1e3aff;
  --accent-2: #1830d8;
  --accent-soft: rgba(30, 58, 255, .09);
  min-height: 100vh;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
.paywall-page .checkout-header {
  width: min(calc(100% - 40px), 980px);
  min-height: 76px;
}
.paywall-page .checkout-brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}
.paywall-page .checkout-brand img {
  box-shadow: 0 8px 22px rgba(30, 58, 255, .15);
}
.paywall-page .quiet-link {
  color: var(--muted);
  font-size: 15px;
}
.paywall-page .checkout-main {
  width: min(calc(100% - 32px), 620px);
  margin: 22px auto 52px;
}
.paywall-page .checkout-card {
  padding: clamp(30px, 6vw, 52px);
  border-color: var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(31, 32, 37, .09);
}
.paywall-page .paywall-eyebrow {
  margin: 0 0 12px;
  color: #3148d8;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}
.paywall-page .checkout-card h1 {
  color: var(--text);
  font-size: clamp(34px, 7vw, 50px);
  font-weight: 700;
  letter-spacing: -.045em;
}
.paywall-page .checkout-lead {
  max-width: 430px;
  margin: 14px auto 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.paywall-page .canary-note {
  display: grid;
  gap: 4px;
  margin: -12px 0 22px;
  padding: 13px 15px;
  border: 1px solid rgba(30, 58, 255, .18);
  border-radius: 12px;
  color: #2539b9;
  background: rgba(30, 58, 255, .055);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.paywall-page .canary-note[hidden] { display: none; }
.paywall-page .canary-note strong { color: var(--text); font-size: 15px; }
.paywall-page .web-purchase-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.paywall-page .web-purchase-note[hidden] { display: none; }
.paywall-page .plan-picker {
  margin-top: 0;
  padding: 0;
  border-color: var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
}
.paywall-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.paywall-page .plan-option {
  min-height: 76px;
  padding: 14px 18px;
  background: transparent;
}
.paywall-page .plan-option + .plan-option { border-top-color: var(--line); }
.paywall-page .plan-option:hover { background: #faf9f6; }
.paywall-page .plan-option:has(input:checked) {
  background: var(--accent-soft);
}
.paywall-page .radio-mark { border-color: #77766f; }
.paywall-page .plan-option input:checked + .radio-mark {
  border-color: var(--accent);
  background: white;
}
.paywall-page .plan-copy,
.paywall-page .plan-price { gap: 5px; }
.paywall-page .plan-copy strong,
.paywall-page .plan-price strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
}
.paywall-page .plan-copy small,
.paywall-page .plan-price small {
  color: var(--muted);
  font-size: 13px;
}
.paywall-page .plan-badge {
  padding: 5px 9px;
  color: #1731d8;
  background: rgba(30, 58, 255, .1);
  font-size: 12px;
  font-weight: 650;
}
.paywall-page .launch-required {
  margin-top: 18px;
  padding: 18px;
  border-color: rgba(30, 58, 255, .18);
  border-radius: 14px;
  background: rgba(30, 58, 255, .055);
}
.paywall-page .launch-required strong {
  color: var(--text);
  font-size: 18px;
}
.paywall-page .launch-required p {
  color: var(--muted);
  font-size: 15px;
}
.paywall-page .launch-required .secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  text-decoration: none;
}
.paywall-page .pay-button {
  min-height: 58px;
  margin-top: 20px;
  border-radius: 13px;
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(30, 58, 255, .2);
  font-size: 17px;
  font-weight: 650;
}
.paywall-page .payment-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(30, 58, 255, .16);
  border-radius: 14px;
  color: var(--text);
  background: rgba(30, 58, 255, .055);
}
.paywall-page .payment-stage-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(30, 58, 255, .2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: paywall-spin .8s linear infinite;
}
.paywall-page .payment-stage > span:last-child { display: grid; gap: 3px; }
.paywall-page .payment-stage strong { font-size: 15px; }
.paywall-page .payment-stage small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.paywall-page .payment-pending .pay-button { margin-top: 10px; }
.paywall-page .recurring-consent {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(49, 72, 216, .24);
  border-radius: 15px;
  background: rgba(49, 72, 216, .055);
}
.paywall-page .recurring-consent label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: #252a3b;
  font-size: 13px;
  line-height: 1.52;
  cursor: pointer;
}
.paywall-page .recurring-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.paywall-page .recurring-consent-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1.5px solid #7c8296;
  border-radius: 6px;
  color: transparent;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}
.paywall-page .recurring-consent input:focus-visible + .recurring-consent-mark {
  outline: 3px solid rgba(49, 72, 216, .25);
  outline-offset: 2px;
}
.paywall-page .recurring-consent input:checked + .recurring-consent-mark {
  border-color: #3148d8;
  color: #fff;
  background: #3148d8;
}
.paywall-page .provider-assurance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-top: 17px;
  color: var(--muted);
  text-align: left;
}
.paywall-page .provider-assurance-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #1731d8;
  background: rgba(30, 58, 255, .09);
  font-size: 15px;
  font-weight: 800;
}
.paywall-page .provider-assurance > span:last-child { display: grid; gap: 2px; }
.paywall-page .provider-assurance strong { color: var(--text); font-size: 14px; font-weight: 650; }
.paywall-page .provider-assurance small { font-size: 12px; line-height: 1.4; }
.paywall-page .pay-button:hover {
  box-shadow: 0 18px 38px rgba(30, 58, 255, .28);
}
.paywall-page .secondary-button {
  min-height: 48px;
  border: 1px solid rgba(30, 58, 255, .22);
  border-radius: 11px;
  color: #1731d8;
  background: white;
  box-shadow: none;
  font-size: 15px;
  font-weight: 650;
}
.paywall-page .provider-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.paywall-page .payment-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.paywall-page .payment-fallback a {
  color: #3148d8;
  font-weight: 650;
}
.paywall-page .legal-note {
  margin-top: 10px;
  min-height: 3em;
  color: #77766f;
  font-size: 13px;
  line-height: 1.5;
}
.paywall-page .legal-note a { color: #3148d8; }
.paywall-page .payment-error {
  color: #b42318;
  font-size: 15px;
}
.paywall-page .checkout-footer {
  color: #77766f;
  font-size: 13px;
}

.success-page {
  color-scheme: light;
  color: #181816;
  background:
    radial-gradient(circle at 50% -10%, rgba(30, 58, 255, .11), transparent 34rem),
    #f3f1eb;
}
.success-page-root { background: #f3f1eb; }
.success-page .placeholder-main { min-height: 100vh; padding: 36px 18px; }
.success-page .live-success-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dedcd5;
  color: #181816;
  background: #fff;
  box-shadow: 0 28px 80px rgba(31, 32, 37, .1);
}
.success-page .live-success-card::before,
.success-page .live-success-card::after {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #1e3aff;
  opacity: 0;
  content: "";
  pointer-events: none;
}
.success-page [data-payment-state="confirmed"] .live-success-card::before {
  left: 15%;
  top: 17%;
  animation: pro-spark 1.15s ease-out .1s 1;
}
.success-page [data-payment-state="confirmed"] .live-success-card::after {
  right: 16%;
  top: 23%;
  background: #8179f6;
  animation: pro-spark 1.15s ease-out .28s 1;
}
.success-page .placeholder-card h1 { color: #181816; }
.success-page .placeholder-card > p,
.success-page .prototype-note { color: #77766f; }
.success-page .success-footnote { color: #686760 !important; }
.success-page .prototype-note {
  border-color: #dedcd5;
  background: #faf9f6;
}
.success-page .prototype-note a { color: #3148d8; }
.success-page .payment-state-icon { color: #1731d8; background: rgba(30, 58, 255, .1); }
.success-page [data-payment-state="confirmed"] .payment-state-icon {
  color: white;
  background: #1e3aff;
  box-shadow: 0 18px 40px rgba(30, 58, 255, .2);
}
.success-page .compact-order,
.success-page .live-recovery-key { border-color: #dedcd5; background: #faf9f6; }
.success-page .recovery-label,
.success-page .compact-order dt { color: #77766f; }
.success-page .compact-order dd,
.success-page .live-recovery-key strong { color: #181816; }
.success-page .secondary-button {
  border: 1px solid rgba(30, 58, 255, .2);
  color: #1731d8;
  background: white;
  box-shadow: none;
}

@keyframes pro-spark {
  0% { opacity: 0; transform: translateY(10px) rotate(0deg) scale(.5); }
  35% { opacity: .85; }
  100% { opacity: 0; transform: translateY(-30px) rotate(70deg) scale(1); }
}

@keyframes paywall-spin { to { transform: rotate(360deg); } }

/* One monthly plan needs a price, not a one-option plan selector. */
.subscription-checkout .checkout-main { width: min(calc(100% - 32px), 480px); }
.subscription-checkout .checkout-card { padding: 32px; border-radius: 24px; }
.subscription-checkout .checkout-card h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.6px; margin: 12px 0 24px; }
.subscription-checkout .paywall-eyebrow { font-size: 12px; }
.subscription-price { display: grid; gap: 4px; margin-bottom: 10px; text-align: center; }
.subscription-price strong { font-size: 44px; line-height: 1.15; color: #181816; }
.subscription-price span, .subscription-renewal { color: #686760; font-size: 14px; }
.subscription-renewal { margin: 10px 0 20px; text-align: center; }
.subscription-checkout .recurring-consent {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.subscription-checkout .recurring-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #e2e1ea;
  border-radius: 12px;
  background: #f7f7fb;
}
.subscription-checkout .recurring-consent input[type=checkbox] { position: static; opacity: 1; appearance: auto; width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; accent-color: #2738ef; }
.subscription-checkout .recurring-consent-mark { display: none; }
.subscription-checkout [data-recurring-consent-text] { white-space: pre-wrap; font-size: 13px; line-height: 1.5; color: #42424a; }
.subscription-checkout [data-recurring-consent-detail] {
  margin: 12px 4px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #686760;
}
.subscription-checkout .pay-button { margin: 0; min-height: 52px; padding: 14px; font-size: 17px; box-shadow: none; }
.subscription-checkout .provider-assurance { font-size: 12px; color: #686760; margin: 12px 0 20px; }
.subscription-checkout .legal-note { font-size: 12px; line-height: 1.6; margin: 0; }
.subscription-management-page .placeholder-card { padding: 20px 0; background: none; border: 0; box-shadow: none; }
.subscription-management-page .placeholder-card h2 { font-size: 21px; }
.subscription-management-page .placeholder-card p { font-size: 15px; line-height: 1.6; color: #686760; }
.subscription-management-page .management-help { margin-top: 20px; font-size: 13px; line-height: 1.6; color: #686760; }

/* Resume is one consent action, not a card nested inside another card. */
.subscription-management-page [data-management-mode="resume"] {
  padding: 0;
  margin: 24px 0 20px;
  border: 0;
  background: transparent;
}
.subscription-management-page [data-management-mode="resume"] h2 { font-size: 21px; }
.subscription-management-page [data-management-mode="resume"] [data-management-consent-detail] {
  margin: 16px 0 12px;
  text-align: left;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.subscription-management-page [data-management-mode="resume"] .management-confirm {
  margin-top: 20px;
  background: #2738ef;
  color: #fff;
  border-color: transparent;
}
.subscription-management-page [data-management-mode="resume"] .management-confirm:disabled { cursor: not-allowed; }
.subscription-management-page [data-management-mode="resume"] [data-management-cancel-note] { display: none; }

@media (max-width: 600px) {
  .paywall-page .checkout-header { width: min(calc(100% - 28px), 980px); }
  .paywall-page .checkout-main { width: min(calc(100% - 20px), 620px); }
  .paywall-page .checkout-card { padding: 28px 20px; border-radius: 22px; }
  .paywall-page .plan-option {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px 14px;
  }
  .paywall-page .plan-price { grid-column: auto; justify-items: end; text-align: right; }
  .paywall-page .plan-price strong { white-space: nowrap; }
  .paywall-page .plan-price small { font-size: 12px; }
  .paywall-page .plan-heading { column-gap: 6px; row-gap: 3px; }
  .paywall-page .plan-badge { padding: 4px 7px; font-size: 10px; }
  .paywall-page .pay-button {
    padding-inline: 16px;
    font-size: 15px;
    white-space: nowrap;
  }
  .live-recovery-key { grid-template-columns: 1fr; }
  .copy-key-button { width: 100%; }
}

/* Keep the price in place while the authoritative quote is loading. */
.paywall-page.subscription-checkout .checkout-main { width: min(calc(100% - 32px), 480px); }
.subscription-checkout .plan-form { min-height: 430px; }
.subscription-checkout .subscription-price { min-height: 76px; }
.subscription-checkout .subscription-price strong { white-space: nowrap; }
.subscription-checkout .plan-form[data-loading="true"] > :not(.subscription-price):not(.pay-button) { visibility: hidden; }
