:root {
  --brand: #6b238e;
  --brand-dark: #4f176d;
  --ink: #18131d;
  --muted: #6d6670;
  --paper: #f8f6f9;
  --card: #ffffff;
  --line: rgba(71, 37, 82, .14);
  --success: #16734a;
  --warning: #9a5b00;
  --danger: #b42318;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; min-width: 0; }
html { overflow-x: hidden; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 12% 0, #f1e9f7, transparent 30rem), var(--paper); }
a { color: inherit; text-underline-offset: .18em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
:focus-visible { outline: 3px solid rgba(107, 35, 142, .35); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--brand); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.paid-header { border-bottom: 1px solid var(--line); background: rgba(248, 246, 249, .92); backdrop-filter: blur(18px); }
.paid-header .wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.paid-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 780; }
.paid-brand img { width: 34px; height: 34px; }
.paid-nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.paid-nav a[aria-current="page"] { color: var(--brand); font-weight: 760; }

.paid-main { padding: 72px 0 96px; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 13ch; margin: 0; overflow-wrap: anywhere; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.buy-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 64px; align-items: start; }

.products { display: grid; gap: 12px; margin-top: 42px; }
.product-choice { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 15px; align-items: center; width: 100%; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: rgba(255, 255, 255, .78); text-align: left; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.product-choice:hover { transform: translateY(-1px); border-color: rgba(107, 35, 142, .36); box-shadow: 0 16px 40px rgba(65, 31, 78, .08); }
.product-choice:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.product-choice[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(107, 35, 142, .1); }
.choice-dot { width: 20px; height: 20px; border: 1.5px solid #a69ba8; border-radius: 50%; box-shadow: inset 0 0 0 5px #fff; background: transparent; }
.product-choice[aria-pressed="true"] .choice-dot { border-color: var(--brand); background: var(--brand); }
.product-copy strong, .product-price strong { display: block; font-size: 17px; }
.product-copy small, .product-price small { display: block; color: var(--muted); line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.product-copy { overflow: hidden; }
.product-price { text-align: right; white-space: nowrap; }
.purchase-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.purchase-facts div { padding-right: 16px; }
.purchase-facts dt { color: var(--muted); font-size: 12px; }
.purchase-facts dd { margin: 5px 0 0; font-size: 13px; font-weight: 700; line-height: 1.45; }
.renewal-note { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
.renewal-note strong { color: var(--ink); font-size: 14px; }
.renewal-note p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.free-tools { margin-top: 48px; }
.free-tools h2 { max-width: 18ch; margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; }
.free-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.free-entry { display: flex; min-height: 214px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: rgba(255,255,255,.76); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.free-entry:hover { transform: translateY(-1px); border-color: rgba(107,35,142,.36); box-shadow: 0 16px 40px rgba(65,31,78,.08); }
.free-entry > span { color: var(--brand); font-size: 12px; font-weight: 800; }
.free-entry > strong { margin-top: 9px; font-size: 24px; }
.free-entry p { margin: 12px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.free-entry em { margin-top: auto; color: var(--brand); font-size: 13px; font-style: normal; font-weight: 760; }
.service-strip { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 14px; padding: 19px 21px; border-radius: 17px; color: #fff; background: var(--brand-dark); text-decoration: none; }
.service-strip strong, .service-strip small { display: block; }
.service-strip small { margin-top: 5px; color: rgba(255,255,255,.74); line-height: 1.5; }
.service-strip em { flex: none; color: var(--lime, #caff3d); font-size: 13px; font-style: normal; font-weight: 760; }

.checkout-card, .account-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 28px 80px rgba(48, 24, 59, .1); }
.checkout-card { position: sticky; top: 24px; }
.step-label { display: inline-flex; margin-bottom: 12px; color: var(--brand); font-size: 12px; font-weight: 850; }
.checkout-card h2, .account-card h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.muted { color: var(--muted); }
.checkout-steps { display: grid; gap: 14px; margin: 24px 0 0; padding: 22px 0; border-block: 1px solid var(--line); list-style: none; }
.checkout-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.checkout-steps li > span { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--brand); background: var(--paper); font-size: 12px; font-weight: 800; }
.checkout-steps p { margin: 3px 0 0; color: var(--ink); font-size: 14px; line-height: 1.55; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.form-stack { display: grid; gap: 12px; margin-top: 22px; }
label span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
input, textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #cfc6d2; border-radius: 11px; color: var(--ink); background: #fff; }
textarea { min-height: 92px; padding-block: 12px; resize: vertical; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.primary, .secondary, .quiet, .danger { min-height: 48px; padding: 0 18px; border-radius: 11px; font-weight: 760; }
.primary { border: 1px solid var(--brand); color: #fff; background: var(--brand); }
.primary:hover { background: var(--brand-dark); }
.secondary { border: 1px solid var(--brand); color: var(--brand); background: #fff; }
.quiet { min-height: 40px; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.danger { min-height: 40px; border: 1px solid rgba(180, 35, 24, .28); color: var(--danger); background: #fff; }
.status { min-height: 1.5em; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.status[data-tone="success"] { color: var(--success); }
.status[data-tone="warning"] { color: var(--warning); }
.status[data-tone="danger"] { color: var(--danger); }
.checkout-action { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.trust-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.trust-line strong { display: block; margin-bottom: 2px; color: var(--ink); }

.account-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.account-head h1 { max-width: none; font-size: clamp(38px, 6vw, 64px); }
.account-grid { display: grid; grid-template-columns: minmax(250px, .66fr) minmax(0, 1.34fr); gap: 24px; align-items: start; }
.account-card + .account-card { margin-top: 18px; }
.license-list { display: grid; gap: 16px; }
.license-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.license-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.license-head h3 { margin: 0 0 6px; font-size: 20px; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; color: var(--success); background: #e8f6ef; font-size: 12px; font-weight: 760; white-space: nowrap; }
.badge[data-state="refunded"], .badge[data-state="revoked"] { color: var(--danger); background: #fff0ee; }
.badge[data-state="awaiting_scope"], .badge[data-state="awaiting_payment"], .badge[data-state="scheduled"] { color: var(--warning); background: #fff7df; }
.badge[data-state="refund_pending"], .badge[data-state="cancelled"] { color: var(--danger); background: #fff0ee; }
.devices { display: grid; gap: 9px; margin-top: 20px; }
.device { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.device strong, .device small { display: block; }
.device small { margin-top: 3px; color: var(--muted); }
.empty { padding: 28px; border: 1px dashed #cfc6d2; border-radius: 18px; color: var(--muted); text-align: center; }
.refund-form { display: none; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.refund-form[data-open="true"] { display: grid; }
.section-divider { margin: 42px 0 28px; border-top: 1px solid var(--line); }
.service-order-list { display: grid; gap: 16px; margin-top: 16px; }
.service-order .fine { overflow-wrap: anywhere; }

.service-page { width: min(980px, calc(100% - 48px)); }
.service-hero { max-width: 820px; }
.service-hero h1 { max-width: none; }
.service-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.service-plan { display: flex; min-height: 100%; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 22px 64px rgba(48,24,59,.08); }
.service-plan.featured { border-color: rgba(107,35,142,.45); box-shadow: 0 28px 80px rgba(72,29,91,.14); }
.service-plan h2 { margin: 0; font-size: 32px; letter-spacing: -.035em; }
.service-price { display: flex; align-items: baseline; gap: 6px; margin: 20px 0; }
.service-price strong { font-size: 42px; letter-spacing: -.045em; }
.service-price span { color: var(--muted); font-size: 14px; }
.service-plan ul { margin: 0 0 26px; padding-left: 1.2em; color: var(--muted); }
.service-plan li { line-height: 1.7; }
.service-plan li + li { margin-top: 9px; }
.service-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; text-align: center; text-decoration: none; }
.service-boundary { margin-top: 18px; box-shadow: none; }
.service-boundary p, .service-boundary li { color: var(--muted); line-height: 1.75; }
.service-boundary ol { margin-bottom: 0; padding-left: 1.25em; }

.paid-footer { padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.paid-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.paid-footer nav { display: flex; gap: 14px; }
.terms { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.terms h1 { max-width: none; }
.terms .account-card { margin-top: 18px; }
.terms .account-card h2 { margin-bottom: 12px; }
.terms .account-card p, .terms .account-card li { color: var(--muted); line-height: 1.75; }
.terms .account-card ul { margin-bottom: 0; padding-left: 1.2em; }
.prelaunch { padding: 14px 16px; border: 1px solid #e1b965; border-radius: 12px; color: #744500; background: #fff9e8; font-size: 13px; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .buy-layout, .account-grid, .service-plans { grid-template-columns: 1fr; gap: 36px; }
  .checkout-card { position: static; }
  .account-head { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 520px); }
  .terms { width: min(100% - 28px, 520px); }
  .paid-header .wrap { min-height: 62px; }
  .paid-brand span { display: none; }
  .paid-nav .mobile-hide { display: none; }
  .paid-main { padding: 48px 0 72px; }
  h1 { font-size: 43px; }
  h1, .lead { max-width: 100%; word-break: break-word; }
  .lead { font-size: 16px; }
  .purchase-facts { grid-template-columns: 1fr; gap: 12px; }
  .product-choice { grid-template-columns: 22px 1fr; }
  .product-price { grid-column: 2; text-align: left; }
  .checkout-card, .account-card, .license-card { padding: 20px; border-radius: 18px; }
  .code-row { grid-template-columns: 1fr; }
  .trust-line { grid-template-columns: 1fr; text-align: left; }
  .device, .license-head { align-items: start; flex-direction: column; }
  .free-entry-grid { grid-template-columns: 1fr; }
  .service-strip { align-items: flex-start; flex-direction: column; }
  .service-page { width: min(100% - 28px, 520px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
