/* Software Reserve - premium dark storefront. */
:root {
  --bg: #060608;
  --surface: #0d0d11;
  --surface-2: #131318;
  --surface-3: #1a1a21;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f3f3f6;
  --text-2: #a3a3ad;
  --text-3: #6c6c76;
  --accent: #9aa8ff;
  --accent-2: #c3a6ff;
  --grad: linear-gradient(135deg, #9aa8ff 0%, #c3a6ff 100%);
  --green: #4ade80;
  --amber: #fbbf5a;
  --red: #ff6b6b;
  --r-lg: 22px;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 60px -20px rgba(0, 0, 0, .7);
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15.5px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
body::before {   /* soft light from above */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1000px 560px at 50% -180px, rgba(154, 168, 255, .13), transparent 70%),
    radial-gradient(700px 400px at 85% 10%, rgba(195, 166, 255, .06), transparent 70%);
}
main { flex: 1; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 600; letter-spacing: -.025em; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
img { max-width: 100%; }
code { font-family: "JetBrains Mono", Consolas, monospace; }
::selection { background: rgba(154, 168, 255, .35); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 440px; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.fine { color: var(--text-3); font-size: 13.5px; margin: 10px 0 0; }
.fine.warn, .warn { color: var(--amber); }
.grow { flex: 1; min-width: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons, pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  background: #f3f3f6; color: #0a0a0d; font: inherit; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 24px -8px rgba(154, 168, 255, .35);
}
.btn:hover { background: #fff; color: #000; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); color: #fff; }
.btn-danger { background: transparent; border-color: rgba(255, 107, 107, .3); color: var(--red); box-shadow: none; }
.btn-danger:hover { background: rgba(255, 107, 107, .1); color: var(--red); }
.btn-small { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.arrow { transition: transform .2s; }
.btn:hover .arrow, .card:hover .arrow { transform: translateX(3px); }

.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); vertical-align: 2px; }
.pill.ok { background: rgba(74, 222, 128, .08); color: var(--green); border-color: rgba(74, 222, 128, .2); }
.pill.warn { background: rgba(251, 191, 90, .08); color: var(--amber); border-color: rgba(251, 191, 90, .2); }
.pill.bad { background: rgba(255, 107, 107, .08); color: var(--red); border-color: rgba(255, 107, 107, .2); }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 6px;
  border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-size: 13px; color: var(--text-2); backdrop-filter: blur(8px);
}
.eyebrow-pill b { height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--grad); color: #0a0a0d; font-size: 11.5px; font-weight: 700; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.ok { color: var(--green); }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px) saturate(140%); background: rgba(6, 6, 8, .72); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand .serif { font-size: 19px; color: var(--text-2); margin-left: 1px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { color: var(--text-2); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 99px; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links .btn { margin-left: 8px; }

/* ---------- hero */
.hero { position: relative; padding: 110px 0 90px; text-align: center; overflow: hidden; }
.hero::before {   /* fine grid that fades out */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .55;
}
.hero h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: -.045em; max-width: 13em; margin: 28px auto 0; }
.hero h1 .serif { font-size: 1.08em; letter-spacing: -.02em; }
.hero .lede { margin: 26px auto 0; max-width: 34em; }
.lede { color: var(--text-2); font-size: 18px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.trust { display: flex; gap: 10px 30px; justify-content: center; flex-wrap: wrap; margin-top: 46px; color: var(--text-3); font-size: 13.5px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- sections */
.section { padding: 72px 0; }
.section-tight { padding-top: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin: 8px 0 0; color: var(--text-2); }
h2 { font-size: clamp(28px, 3.4vw, 40px); text-align: center; }
h2.left { text-align: left; }
h3.sub { font-size: 17px; margin: 40px 0 16px; color: var(--text); }
.panel { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.page-head h2 { font-size: clamp(30px, 4vw, 44px); }

/* product artwork tile: works for icons and screenshots alike */
.art {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(154, 168, 255, .16), transparent 60%),
    linear-gradient(180deg, var(--surface-3), var(--surface));
  border-bottom: 1px solid var(--line);
}
.art img { width: 46%; max-height: 72%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.art.photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.art .img-empty { font-size: 34px; color: var(--text-3); }

/* ---------- featured spotlight */
.spotlight {
  display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden;
  border-radius: 28px; border: 1px solid var(--line-2); color: var(--text);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow), 0 0 0 1px rgba(154, 168, 255, .04);
  transition: border-color .3s, transform .3s;
}
.spotlight:hover { color: var(--text); border-color: rgba(154, 168, 255, .3); }
.spotlight .art { min-height: 400px; border-bottom: 0; border-right: 1px solid var(--line); }
.spotlight .art img { width: 42%; }
.spotlight:hover .art img { transform: scale(1.04) translateY(-4px); }
.spot-body { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.spot-body h3 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.035em; margin: 6px 0 14px; }
.spot-body .lede { font-size: 16.5px; margin: 0 0 30px; }
.spot-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.price-big { font-size: 15px; color: var(--text-2); }
.price-big b { font-size: 26px; color: var(--text); font-weight: 600; letter-spacing: -.02em; margin-left: 4px; }

/* ---------- product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; color: var(--text);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow); transition: border-color .3s, transform .3s;
}
.card:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-3px); }
.card .art { aspect-ratio: 4 / 3; }
.card:hover .art img { transform: scale(1.05); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 17px; letter-spacing: -.015em; }
.card-body p { margin: 6px 0 18px; color: var(--text-2); font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.card-price { font-weight: 600; font-size: 14.5px; }
.card-price small { color: var(--text-3); font-weight: 500; font-size: 12.5px; margin-right: 4px; }
.card-link { color: var(--text-2); font-size: 13.5px; font-weight: 500; display: inline-flex; gap: 6px; }

/* ---------- value props */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.values > div { padding: 32px; background: var(--surface); }
.values .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 18px; background: rgba(154, 168, 255, .08); border: 1px solid rgba(154, 168, 255, .18); color: var(--accent); }
.values .ico svg { width: 19px; height: 19px; }
.values h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: -.01em; }
.values p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-media { position: sticky; top: 100px; }
.product-media .art { aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.product-media .art img { width: 50%; }
.product-media .art.photo { aspect-ratio: 4 / 3; }   /* wide cover art: show it whole */
.product-media .art.photo img { width: 100%; }
.spotlight .art.photo img { width: 100%; }
/* download page */
.dl { max-width: 880px; }
.dl-hero { text-align: center; padding: 30px 0 10px; }
.dl-mark { width: 76px; height: 76px; filter: drop-shadow(0 18px 40px rgba(154, 168, 255, .35)); }
.dl-title { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.04em; margin: 8px 0 12px; }
.dl-hero .lede { max-width: 560px; margin: 0 auto; }
.dl-btn { margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; padding-left: 30px; padding-right: 30px; }
.dl-btn svg { width: 20px; height: 20px; }
.dl-meta { margin-top: 14px; }
.dl-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 46px 0 10px; }
.dl-app { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line-2);
  border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, transform .2s; }
.dl-app:hover { border-color: rgba(154, 168, 255, .45); transform: translateY(-2px); }
.dl-app img { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.dl-app h3 { margin: 0; font-size: 16px; }
.dl-app p { margin: 2px 0 0; color: var(--text-2); font-size: 13.5px; }
.dl-app .arrow { margin-left: auto; color: var(--text-3); }
.dl-h { text-align: center; margin: 54px 0 22px; font-size: 26px; }
.dl-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.dl-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.dl-steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(154, 168, 255, .14); color: var(--accent); font-weight: 600; }
.dl-steps b { color: var(--text); }
.dl-steps span { color: var(--text-2); font-size: 14.5px; }
.dl-steps code { font-size: 13px; color: var(--text); }
@media (max-width: 720px) { .dl-apps { grid-template-columns: 1fr; } }
/* demo video under the cover */
.product-media:has(.demo) { position: static; }
.demo { margin: 22px 0 0; }
.demo figcaption { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.demo figcaption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px rgba(154, 168, 255, .9); }
.demo video { display: block; width: 100%; aspect-ratio: 1280 / 940; border-radius: 20px; background: #05060a;
  border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.back { display: inline-flex; gap: 6px; font-size: 13.5px; color: var(--text-3); }
.back:hover { color: var(--text); }
.product-title { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -.04em; margin: 18px 0 0; }
.product .lede { font-size: 17px; margin: 16px 0 30px; }
.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-opt {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer;
  font-size: 15px; color: var(--text);
  border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.plan-opt:hover { border-color: rgba(255, 255, 255, .22); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt .radio { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--text-3); transition: border-color .2s, box-shadow .2s; }
.plan-opt.on { border-color: rgba(154, 168, 255, .6); background: rgba(154, 168, 255, .06); box-shadow: 0 0 0 4px rgba(154, 168, 255, .08); }
.plan-opt.on .radio { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 9px var(--accent); }
.plan-opt.off { opacity: .45; cursor: not-allowed; }
.plan-opt .name { flex: 1; font-weight: 500; }
.plan-opt .price { font-weight: 600; letter-spacing: -.01em; }
.buy-box { margin-top: 18px; }
.buy-box .btn { width: 100%; }
.assure { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 18px; }
.assure span { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .02); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.assure svg { width: 16px; height: 16px; color: var(--accent); }
.description { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--text-2); }
.description h3 { color: var(--text); font-size: 17px; margin-bottom: 14px; }
.description p { margin: 0 0 14px; }
.description h4 { margin: 30px 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.description .checklist { grid-template-columns: 1fr; gap: 10px; }
.description a { color: var(--accent); }
.checklist.no li::before { background: rgba(255, 107, 107, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff6b6b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 5l6 6M11 5l-6 6'/%3E%3C/svg%3E") center / 11px no-repeat; }
.policy { max-width: 760px; }
.policy .description { border-top: 0; margin-top: 18px; padding-top: 0; }
.policy .description > p:first-child { color: var(--text); font-size: 17px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14.5px; }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(154, 168, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239aa8ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.form h2, .form h3 { margin-bottom: 2px; }
.auth-card { padding: 40px 36px; }
.auth-card h2 { font-size: 32px; letter-spacing: -.035em; }
.auth-card .intro { margin: -6px 0 6px; color: var(--text-2); font-size: 14.5px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); }
input, textarea, select {
  font: inherit; font-size: 15px; color: var(--text); background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 11px 13px; width: 100%; min-width: 0; transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(154, 168, 255, .7); box-shadow: 0 0 0 4px rgba(154, 168, 255, .12); }
input:disabled { color: var(--text-3); }
input[type=file] { padding: 9px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3ad' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; padding-right: 32px; }
textarea { resize: vertical; }
.form-error { margin: 0; color: var(--red); font-size: 13.5px; }
.form-error.ok { color: var(--green); }
.form-error:empty { display: none; }
.check { flex-direction: row; align-items: center; gap: 9px; color: var(--text); font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.inline { flex-direction: row; align-items: center; gap: 8px; }
.inline input { width: 90px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.two-col.tight { margin-top: 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- account library */
.library { display: flex; flex-direction: column; gap: 12px; }
.lib-item { display: flex; gap: 18px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.lib-img { width: 60px; height: 60px; flex: none; border-radius: 14px; object-fit: contain; padding: 6px; background: var(--surface-3); border: 1px solid var(--line); }
.lib-img.big { width: 104px; height: 104px; }
div.lib-img { display: grid; place-items: center; color: var(--text-3); }
.lib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.lib-top { display: flex; justify-content: space-between; gap: 12px; width: 100%; flex-wrap: wrap; }
.key-box { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px 10px 16px; border-radius: 12px; background: rgba(0, 0, 0, .4); border: 1px solid rgba(154, 168, 255, .25); }
.key-box code { flex: 1; font-weight: 600; font-size: 14px; letter-spacing: .04em; word-break: break-all; }
.empty { padding: 48px 28px; text-align: center; }
.empty p { margin: 0 0 18px; color: var(--text-2); }

/* ---------- admin */
.tabs { display: inline-flex; gap: 4px; margin: 22px 0 26px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.tabs a { padding: 8px 18px; border-radius: 99px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: color .2s, background .2s; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: #0a0a0d; background: #f3f3f6; }
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.editor .toolbar { margin: 8px 0 0; }
.table { display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.trow { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: rgba(255, 255, 255, .015); }
.trow .lib-img { width: 48px; height: 48px; border-radius: 12px; }
.trow code { color: var(--text); word-break: break-all; font-size: 13px; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; max-width: 520px; }
.image-edit { display: flex; gap: 18px; align-items: center; }
.image-edit .grow { display: flex; flex-direction: column; gap: 12px; }
.plan-edit { display: grid; grid-template-columns: 1.4fr .7fr 1.3fr 1fr auto; gap: 8px; align-items: center; padding: 10px; border-radius: var(--r); background: rgba(255, 255, 255, .02); border: 1px solid var(--line); margin-bottom: 8px; }
.plan-edit select[hidden] { display: block; visibility: hidden; }
.stock-box { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 4px 2px 2px; }
.stock-box textarea { min-height: 72px; }

/* ---------- support */
.support-head { max-width: 640px; margin-bottom: 36px; }
.support-title { font-size: clamp(38px, 6vw, 60px); letter-spacing: -.04em; margin: 6px 0 14px; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.support-form { padding: 32px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: -6px; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.topic { position: relative; flex-direction: row; gap: 0; cursor: pointer; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); transition: border-color .2s, background .2s; }
.topic:hover { border-color: rgba(154, 168, 255, .35); }
.topic.on { border-color: rgba(154, 168, 255, .8); background: rgba(154, 168, 255, .08); box-shadow: 0 0 0 3px rgba(154, 168, 255, .1); }
.topic input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.topic span { display: flex; flex-direction: column; gap: 3px; }
.topic b { color: var(--text); font-size: 14.5px; font-weight: 600; }
.topic small { color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.from-app { margin: -6px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(154, 168, 255, .06); border: 1px solid rgba(154, 168, 255, .18); }
.from-app b { color: var(--text); font-weight: 600; }
.counter { align-self: flex-end; margin: -2px 0 0; font-weight: 400; }
.extra { border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; background: rgba(255, 255, 255, .015); }
.extra summary { cursor: pointer; padding: 14px 0; color: var(--text); font-size: 14px; font-weight: 500; }
.extra summary .fine { margin: 0; font-weight: 400; }
.extra-body { display: flex; flex-direction: column; gap: 14px; padding: 0 0 16px; }
.extra-body .fine { margin: 2px 0 0; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.support-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.help { padding: 24px; }
.help h3 { font-size: 16px; margin-bottom: 14px; }
.qa { padding: 12px 0; border-top: 1px solid var(--line); }
.qa b { font-size: 14px; }
.qa p, .help.mail p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; }
.help a { color: var(--accent); }
.help code { font-size: 12.5px; color: var(--text); }
.support-done { text-align: center; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.support-done h3 { font-size: 24px; }
.support-done p { margin: 0; max-width: 440px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: var(--green); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .25); }
.ticket-list { padding: 22px 24px; margin-bottom: 24px; }
.ticket-list h3 { font-size: 16px; margin-bottom: 8px; }
.ticket-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ticket-row .grow { display: flex; flex-direction: column; }
.ticket-row .fine { margin: 2px 0 0; }
.ticket-row .arrow { color: var(--text-3); }
.ticket-row:hover .arrow { color: var(--text); }

.ticket-page { max-width: 820px; }
.ticket-head { display: flex; align-items: flex-end; gap: 16px; margin: 18px 0 4px; }
.ticket-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.ticket-meta { margin: 6px 0 24px; }
.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.msg { max-width: 88%; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.msg.mine { align-self: flex-end; background: rgba(154, 168, 255, .07); border-color: rgba(154, 168, 255, .22); }
.msg.support:not(.mine) { border-color: rgba(154, 168, 255, .18); }
.msg-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 6px; font-size: 13.5px; }
.msg-head .fine { margin: 0; font-size: 12px; }
.msg-body { white-space: pre-wrap; word-break: break-word; color: var(--text); font-size: 15px; }
.notice { padding: 12px 16px; border-radius: var(--r); background: rgba(74, 222, 128, .07); border: 1px solid rgba(74, 222, 128, .2); color: var(--text); font-size: 14px; margin: 0 0 18px; }
.reply { padding: 22px 24px; }
.reply .toolbar { margin: 0; }
.ticket-admin { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 20px; }
.ticket-facts { padding: 22px; position: sticky; top: 96px; }
.ticket-facts h3 { font-size: 14px; margin: 18px 0 10px; }
.ticket-facts h3:first-child { margin-top: 0; }
.ticket-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.ticket-facts dt { color: var(--text-3); }
.ticket-facts dd { margin: 0; color: var(--text); word-break: break-word; text-align: right; }
.ticket-facts .toolbar { margin: 18px 0 0; }
.mini-order { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mini-order .fine { margin: 2px 0 0; font-size: 12px; }
.ticket-trow { color: var(--text); }
.ticket-trow .preview { margin: 4px 0 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-help { margin: -8px 0 16px; }
.lib-help a { color: var(--accent); }

/* ---------- footer */
.footer { margin-top: 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 34px 24px; }
.footer .brand { font-size: 14.5px; }
.footer .brand-mark { width: 24px; height: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }

/* ---------- checkout modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(3, 3, 5, .7); backdrop-filter: blur(10px); animation: fade .2s ease-out; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: 26px; padding: 34px 30px 30px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8); animation: rise .28s cubic-bezier(.2, .8, .2, 1); }
.modal-card h3 { font-size: 22px; padding-right: 30px; letter-spacing: -.02em; }
.modal-card [data-done-body] { margin: 16px 0 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-card [data-done-body] p { margin: 0; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-x:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.co-price { font-size: 34px; font-weight: 600; letter-spacing: -.03em; margin: 6px 0 22px; }
#paypal-buttons { min-height: 110px; background: #fff; border-radius: 16px; padding: 16px 16px 6px; }
.co-status { min-height: 1.6em; margin: 14px 0 0; font-size: 13.5px; color: var(--text-2); }
.co-status.error { color: var(--red); }
.secure-note { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 12px; color: var(--text-3); font-size: 12.5px; }
.secure-note svg { width: 14px; height: 14px; }

/* ---------- motion */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.reveal > * { animation: up .7s cubic-bezier(.2, .8, .2, 1) both; }
.reveal > *:nth-child(2) { animation-delay: .06s; }
.reveal > *:nth-child(3) { animation-delay: .12s; }
.reveal > *:nth-child(4) { animation-delay: .18s; }
.reveal > *:nth-child(5) { animation-delay: .24s; }

/* ---------- auto-renew choice (off unless ticked) */
.auto-renew { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 14.5px; font-weight: 400; color: var(--text); line-height: 1.5; transition: border-color .2s, background .2s; }
.auto-renew[hidden], .renew-panel[hidden] { display: none; }
.auto-renew b { font-weight: 600; }
.auto-renew:hover { border-color: rgba(255, 255, 255, .22); }
.auto-renew input { position: absolute; opacity: 0; pointer-events: none; }
.auto-renew .tick { width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 5px; border: 1.5px solid var(--text-3); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.auto-renew input:checked + .tick { background: var(--accent); border-color: var(--accent); }
.auto-renew input:checked + .tick::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.auto-renew input:focus-visible + .tick { box-shadow: 0 0 0 3px rgba(154, 168, 255, .35); }
.auto-renew.on { border-color: rgba(154, 168, 255, .5); background: rgba(154, 168, 255, .05); }
.auto-renew .fine { color: var(--text-2); }
.auto-renew.small { padding: 10px 12px; margin-top: 4px; font-size: 14px; }
.co-note:empty { display: none; }
.co-note { margin: -12px 0 18px; color: var(--text-2); }

/* ---------- library: key cards */
h3.sub.small { font-size: 15px; margin-top: 28px; }
.key-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.key-facts dt { color: var(--text-3); }
.key-facts dd { margin: 0; color: var(--text-2); }
.key-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.key-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.key-msg { margin: 0; }
.key-msg.ok { color: var(--green); }
.renew-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; width: 100%; padding: 10px 14px; border-radius: 12px; font-size: 14px; background: var(--surface-3); border: 1px solid var(--line); }
.renew-line.ok { background: rgba(74, 222, 128, .05); border-color: rgba(74, 222, 128, .18); }
.renew-line.warn { background: rgba(251, 191, 90, .06); border-color: rgba(251, 191, 90, .2); color: var(--amber); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn[disabled] { opacity: .5; cursor: default; }
.renew-panel { width: 100%; padding: 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 12px; }
.renew-panel p { margin: 0; }
.renew-plans { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 120px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.plan-chip span { color: var(--text-2); font-size: 13px; }
.plan-chip:hover { border-color: rgba(154, 168, 255, .6); background: rgba(154, 168, 255, .06); }
.lib-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.lib-extras > :only-child { grid-column: 1 / -1; }
.lib-dl, .lib-discord { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.lib-dl img { width: 40px; height: 40px; border-radius: 10px; }
.lib-discord svg { width: 34px; height: 34px; flex: none; color: #8b95ff; }
.lib-dl > div, .lib-discord > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lib-discord code { background: rgba(0, 0, 0, .4); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.pay-history { margin-top: 12px; padding: 0; }
.pay-history summary { cursor: pointer; padding: 16px 22px; font-weight: 600; display: flex; align-items: center; gap: 12px; list-style: none; }
.pay-history summary > span { margin-left: auto; }
.pay-history summary::-webkit-details-marker { display: none; }
.pay-history summary::after { content: "▾"; color: var(--text-3); }
.pay-history[open] summary::after { content: "▴"; }
.pay-rows { padding: 0 22px 14px; }
.pay-row { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pay-row code { grid-column: 1 / -1; color: var(--text-3); }
.btn-trial { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%;
             height: auto; padding: 14px 20px; margin-top: 12px; background: rgba(61, 220, 132, .08); color: #3ddc84;
             border: 1px solid rgba(61, 220, 132, .35); box-shadow: none; }
.btn-trial span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.btn-trial:hover { background: rgba(61, 220, 132, .14); border-color: rgba(61, 220, 132, .6); }
.email-panel { margin-top: 24px; }
.email-panel .fine { margin: 0; }
.email-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.email-pending { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; color: var(--text-2);
                 background: rgba(154, 168, 255, .07); border: 1px solid rgba(154, 168, 255, .25); }
.email-pending b { color: var(--text); }
@media (max-width: 640px) { .email-fields { grid-template-columns: 1fr; } }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ---------- tablets / phones */
@media (max-width: 920px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight .art { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .spot-body { padding: 32px 28px; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product-media { position: static; max-width: 420px; }
  .two-col, .values { grid-template-columns: 1fr; }
  .plan-edit { grid-template-columns: 1fr 1fr; }
  .plan-edit [data-remove-plan] { justify-self: start; }
  .support-grid, .ticket-admin { grid-template-columns: 1fr; }
  .support-side, .ticket-facts { position: static; }
  .msg { max-width: 100%; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .footer-inner { padding: 28px 16px; }
  .nav-links .hide-sm { display: none; }
  .hero { padding: 72px 0 56px; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .assure, .checklist { grid-template-columns: 1fr; }
  .image-edit { flex-direction: column; align-items: stretch; }
  .trow .btn { flex: 1; }
  .auth-card { padding: 30px 22px; }
  .lib-extras { grid-template-columns: 1fr; }
  .lib-item.key-card { flex-direction: column; gap: 12px; }
  .pay-row { grid-template-columns: 1fr auto; }
}
@media (max-width: 400px) {
  .nav .brand .serif { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, .reveal > * { animation: none !important; transition: none !important; }
}
