:root {
  --ink: #211d19;
  --muted: #70665f;
  --paper: #fffaf2;
  --indigo: #29225b;
  --violet: #6356a5;
  --line: rgba(48, 39, 33, 0.11);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(144, 123, 238, 0.17), transparent 29%),
    radial-gradient(circle at 94% 18%, rgba(240, 132, 101, 0.15), transparent 28%),
    radial-gradient(circle at 50% 95%, rgba(245, 190, 89, 0.1), transparent 24%),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
[hidden] { display: none !important; }
.site-legal-footer { display:flex; width:min(1120px,calc(100% - 40px)); margin:0 auto; padding:24px 0 36px; border-top:1px solid var(--line); justify-content:center; flex-wrap:wrap; gap:10px 22px; }
.site-legal-footer a { color:var(--muted); font-size:11px; text-decoration:none; }

.customer-header {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand-icon { display: block; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; object-fit: contain; }
.brand span, .product-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: white; background: var(--indigo); font-size: 14px; }
.logout-button { padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; color: #554d47; background: rgba(255, 255, 255, 0.62); cursor: pointer; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.download-access-notice {
  margin: 8px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(99, 86, 165, 0.18);
  border-radius: 16px;
  color: #493d80;
  background: #f1edff;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.login-layout {
  display: grid;
  min-height: calc(100vh - 120px);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
  padding: 45px 0 90px;
}

.eyebrow, .card-label { margin: 0; color: #9b4d76; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.login-copy h1, .account-heading h1 { max-width: 650px; margin: 15px 0 0; font-size: clamp(48px, 7vw, 76px); line-height: 0.99; letter-spacing: -0.06em; }
.login-copy > p:not(.eyebrow) { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.privacy-note { display: flex; max-width: 430px; gap: 13px; margin-top: 30px; padding: 17px 19px; border: 1px solid rgba(99, 86, 165, 0.12); border-radius: 18px; background: rgba(255, 255, 255, 0.52); }
.privacy-note > span { color: var(--violet); font-size: 22px; }
.privacy-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.privacy-note strong { display: block; color: var(--ink); font-size: 13px; }

.login-card {
  display: grid;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 85px rgba(68, 48, 35, 0.11);
  backdrop-filter: blur(22px);
}

.login-card h2 { margin: 9px 0 8px; font-size: 30px; letter-spacing: -0.04em; }
.login-card label { display: grid; gap: 8px; margin-top: 18px; color: #4d453f; font-size: 12px; font-weight: 750; }
.login-card input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 15px; outline: 0; color: var(--ink); background: rgba(255, 255, 255, 0.82); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.login-card input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99, 86, 165, 0.1); }
.login-card input[aria-invalid="true"] { border-color: #bc4949; }
.login-error { min-height: 18px; margin-top: 8px; color: #b53e3e; font-size: 12px; }
.login-card button { display: flex; min-height: 54px; padding: 0 22px; align-items: center; justify-content: space-between; border: 0; border-radius: 999px; color: white; background: linear-gradient(135deg, #e96042, #9b4d76 58%, #574b99); box-shadow: 0 13px 30px rgba(151, 74, 96, 0.2); font-weight: 750; cursor: pointer; }
.login-card button:disabled { cursor: wait; opacity: .7; }
.help-copy { margin: 17px 8px 0; color: #857a72; text-align: center; font-size: 11px; line-height: 1.6; }
.help-copy a { color: #675a91; }

.account { padding: 65px 0 90px; }
.account-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.account-heading h1 { font-size: clamp(42px, 6vw, 66px); }
.account-heading [data-customer-email] { margin: 14px 0 0; color: var(--muted); }
.buy-more { display: inline-flex; min-height: 48px; padding: 0 22px; align-items: center; border: 0; border-radius: 999px; color: white; background: var(--indigo); text-decoration: none; font-size: 13px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.account-actions { display: flex; align-items: center; gap: 9px; }
.download-app { display: inline-flex; min-height: 48px; padding: 0 20px; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.65); text-decoration: none; font-size: 12px; font-weight: 750; white-space: nowrap; }
.purchase-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 42px; }
.purchase-card { padding: 27px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 28px; background: rgba(255, 255, 255, .68); box-shadow: 0 24px 65px rgba(62, 45, 28, .07); backdrop-filter: blur(20px); }
.purchase-top { display: flex; align-items: center; gap: 13px; }
.product-mark { width: 43px; height: 43px; flex: 0 0 auto; }
.purchase-top p { margin: 0; font-size: 14px; font-weight: 800; }
.purchase-date { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.status-pill { margin-left: auto; padding: 7px 10px; border-radius: 999px; color: #28734d; background: #e5f5e9; font-size: 10px; font-weight: 800; }
.status-pill.refunded { color: #986420; background: #fff0d9; }
.status-pill.pending { color: #76500b; background: #fff0c7; }
.status-pill.pending.failed { color: #9b3f3f; background: #ffe1df; }
.purchase-details { display: grid; grid-template-columns: 1fr auto; gap: 20px; margin-top: 24px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.purchase-details span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.purchase-details code { color: #493d80; font-size: clamp(12px, 2.1vw, 15px); font-weight: 800; }
.purchase-details strong { white-space: nowrap; }
.pending-order-card { border-color: rgba(224, 166, 70, .22); }
.pending-copy { margin: 17px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.pay-button { display: flex; width: 100%; min-height: 46px; margin-top: 17px; padding: 0 18px; align-items: center; justify-content: center; border-radius: 999px; color: white; background: linear-gradient(135deg, #e96042, #9b4d76 58%, #574b99); text-align: center; text-decoration: none; font-size: 12px; font-weight: 800; }

.license-generator,
.license-ready {
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #29225b, #493b81);
  color: white;
}

.license-label { display: block; color: #f0bd73; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.license-generator > p, .license-ready > p { margin: 9px 0 0; color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.6; }
.license-generator label { display: grid; gap: 7px; margin-top: 15px; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 750; }
.license-generator input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; outline: 0; color: white; background: rgba(255,255,255,.1); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.license-generator input::placeholder { color: rgba(255,255,255,.38); }
.license-generator input:focus { border-color: #e0b676; box-shadow: 0 0 0 3px rgba(240,189,115,.12); }
.license-error { display: block; min-height: 16px; margin-top: 6px; color: #ffc0b5; font-size: 10px; }
.refund-license-notice { margin: 16px 0 0; padding: 14px 16px; border: 1px solid rgba(255,192,181,.24); border-radius: 14px; color: #ffd3cb; background: rgba(114,39,49,.24); font-size: 11px; line-height: 1.55; }
.license-generator button { width: 100%; min-height: 44px; border: 0; border-radius: 999px; color: #29225b; background: #f0bd73; font-size: 11px; font-weight: 800; cursor: pointer; }
.license-generator button:disabled { opacity: .65; cursor: wait; }
.license-key-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 7px 7px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.08); }
.license-key { min-width: 0; flex: 1; color: white; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.copy-license { padding: 9px 10px; border: 0; border-radius: 9px; color: #29225b; background: #f0bd73; font-size: 9px; font-weight: 800; cursor: pointer; }

.purchase-modal { width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: 0; border: 0; border-radius: 32px; color: var(--ink); background: transparent; box-shadow: 0 32px 100px rgba(33, 29, 25, .28); overflow: auto; }
.purchase-modal::backdrop { background: rgba(31, 25, 43, .58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.purchase-modal-card { position: relative; padding: 38px; background: radial-gradient(circle at 100% 0, rgba(231,171,238,.25), transparent 34%), #fffaf4; }
.purchase-modal-close { position: absolute; top: 18px; right: 18px; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid rgba(33,29,25,.1); border-radius: 50%; color: #655c55; background: rgba(255,255,255,.7); font-size: 25px; line-height: 1; cursor: pointer; }
.purchase-step { color: #9b4d76; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.purchase-modal h2 { margin: 10px 44px 0 0; font-size: clamp(30px, 7vw, 40px); line-height: 1.1; letter-spacing: -.045em; }
.purchase-intro { margin: 14px 0 0; color: var(--muted); line-height: 1.65; }
#purchase-form { display: grid; gap: 18px; margin-top: 26px; }
.purchase-field { display: grid; gap: 8px; color: #4d453f; font-size: 13px; font-weight: 750; }
.purchase-field input { width: 100%; height: 54px; padding: 0 17px; border: 1px solid rgba(54,45,39,.14); border-radius: 15px; outline: 0; color: var(--ink); background: rgba(255,255,255,.78); font: inherit; font-size: 16px; font-weight: 500; }
.purchase-field input:focus { border-color: #8f6cb0; box-shadow: 0 0 0 4px rgba(99,86,165,.1); }
.purchase-field input[aria-invalid="true"] { border-color: #c94949; }
.field-error, .purchase-api-error { color: #b53e3e; font-size: 12px; font-weight: 600; line-height: 1.45; }
.field-error:empty, .purchase-api-error:empty { display: none; }
.purchase-summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(33,29,25,.1); border-bottom: 1px solid rgba(33,29,25,.1); font-size: 14px; }
.repeat-discount-note { margin: -8px 0 0; padding: 11px 13px; border-radius: 12px; color: #28734d; background: #e5f5e9; font-size: 12px; font-weight: 700; }
.purchase-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: #625950; font-size: 13px; line-height: 1.45; }
.purchase-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: #29225b; }
.purchase-consent a { color: #29225b; text-decoration: underline; text-underline-offset: 2px; }
.purchase-submit { display: flex; width: 100%; min-height: 54px; padding: 0 22px; align-items: center; justify-content: center; border: 0; border-radius: 999px; color: white; background: linear-gradient(135deg, #e96042, #9b4d76 58%, #574b99); box-shadow: 0 13px 30px rgba(151,74,96,.2); font-weight: 750; cursor: pointer; }
.purchase-submit:disabled { cursor: wait; opacity: .72; }
.submit-loader { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: purchase-spin .7s linear infinite; }
.purchase-submit.is-loading > span:first-child { display: none; }
.purchase-submit.is-loading .submit-loader { display: block; }
@keyframes purchase-spin { to { transform: rotate(360deg); } }
.purchase-legal { margin: -4px 16px 0; color: #8a8078; text-align: center; font-size: 11px; line-height: 1.55; }

@media (max-width: 800px) {
  .login-layout { min-height: auto; grid-template-columns: 1fr; gap: 35px; padding-top: 45px; }
  .login-copy h1 { font-size: clamp(44px, 13vw, 62px); }
  .purchase-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .purchase-modal-card { padding: 32px 22px 26px; }
  .login-card { padding: 28px 21px; }
  .privacy-note { display: none; }
  .account { padding-top: 35px; }
  .account-heading { align-items: start; flex-direction: column; }
  .account-actions { width: 100%; flex-wrap: wrap; }
  .purchase-card { padding: 22px 18px; }
  .purchase-details { grid-template-columns: 1fr; }
}
