:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --text: #14161f;
  --muted: #5b6072;
  --line: #dfe2ec;
  --accent: #2f55d4;
  --accent-ink: #ffffff;
  --accent-soft: #e6ecff;
  --good: #0f7a55;
  --hero-1: #1b2a6b;
  --hero-2: #3b5fe0;
  --radius: 18px;
  --shadow: 0 30px 80px -30px rgba(20, 30, 80, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f16;
    --surface: #161925;
    --surface-2: #1d2131;
    --text: #eef0f7;
    --muted: #9aa0b6;
    --line: #2a2f42;
    --accent: #5b7cff;
    --accent-ink: #ffffff;
    --accent-soft: #1d2650;
    --good: #3fcf96;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f16; --surface: #161925; --surface-2: #1d2131; --text: #eef0f7; --muted: #9aa0b6;
  --line: #2a2f42; --accent: #5b7cff; --accent-ink: #fff; --accent-soft: #1d2650; --good: #3fcf96;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand img { width: 28px; height: 28px; }
.nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav .links a { color: var(--muted); }
.nav .links a.btn { color: var(--accent-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Hero */
.hero { padding: 80px 0 40px; text-align: center; }
.hero .icon { width: 112px; height: 112px; margin: 0 auto 22px; filter: drop-shadow(0 18px 30px rgba(47, 85, 212, .35)); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.req { margin-top: 16px; font-size: 14px; color: var(--muted); }
.shot { margin: 56px auto 0; max-width: 1080px; }
.shot img { border-radius: 14px; box-shadow: var(--shadow); }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .glyph { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 20px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
kbd { font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--text); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: 22px 0 0; }
.split li { padding: 10px 0 10px 32px; position: relative; border-top: 1px solid var(--line); }
.split li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 700; }
.split img { border-radius: 12px; box-shadow: var(--shadow); }

/* Compare */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { background: var(--surface-2); font-weight: 600; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 120px; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--good); font-weight: 700; }
.no { color: var(--muted); }

/* Buy */
.buy { background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: #fff; border-radius: 28px;
  padding: 56px 32px; text-align: center; }
.buy h2 { color: #fff; }
.buy p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 auto 26px; }
.buy .btn { background: #fff; color: #1b2a6b; }
.buy .fine { font-size: 14px; margin-top: 18px; color: rgba(255, 255, 255, .7); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ol { color: var(--muted); margin: 0 0 16px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

/* Prose pages */
.prose { max-width: 720px; margin: 0 auto; padding: 64px 24px 80px; }
.prose h1 { font-size: 40px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--muted); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .nav .links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  section { padding: 56px 0; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: 70px; }
  .buy { padding: 40px 20px; border-radius: 20px; }
}

/* Store pages */
.store { max-width: 560px; margin: 0 auto; padding: 56px 24px 80px; }
.store h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 8px; }
.store .sub { color: var(--muted); margin: 0 0 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.product { display: flex; align-items: center; gap: 16px; }
.product img { width: 56px; height: 56px; }
.product .name { font-weight: 700; font-size: 18px; }
.product .meta { color: var(--muted); font-size: 14px; }
.product .price { margin-left: auto; font-size: 22px; font-weight: 700; white-space: nowrap; }
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
label .opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.full { width: 100%; justify-content: center; margin-top: 22px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 12px; }
.msg { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-top: 16px; display: none; }
.msg.show { display: block; }
.msg.error { background: color-mix(in srgb, #e5484d 14%, transparent); color: #e5484d; }
.msg.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.keybox { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.keybox code { font: 700 clamp(15px, 3.6vw, 19px)/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .03em;
  color: var(--text); word-break: break-all; flex: 1; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.paid, .badge.active { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.badge.revoked, .badge.failed, .badge.expired, .badge.refunded { background: color-mix(in srgb, #e5484d 16%, transparent); color: #e5484d; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite; margin: 8px auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { padding-left: 20px; color: var(--muted); }
.steps li { margin: 6px 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .what { font-weight: 600; }
.row .when { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }
.sandbox { background: #f5a524; color: #1b1300; font-size: 13px; font-weight: 700; text-align: center; padding: 6px; }
