:root {
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --green: #059669;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--blue); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3); }
.btn-gold { background: linear-gradient(135deg, #fbbf24, var(--amber)); color: var(--ink); box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 55%, #fffbeb 100%);
  padding: 72px 0 56px;
  text-align: center;
}
.hero .logo { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 12px 30px rgba(30, 58, 138, 0.25); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: #dbeafe;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; color: var(--ink); font-weight: 900; letter-spacing: -0.02em; }
.hero p.lead { font-size: 18px; max-width: 640px; margin: 16px auto 28px; color: var(--muted); }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platforms { margin-top: 26px; font-size: 14px; color: var(--muted); }
.platforms b { color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.5vw, 32px); color: var(--ink); font-weight: 800; letter-spacing: -0.01em; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 8px auto 36px; max-width: 600px; }
h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.card .icon { font-size: 28px; margin-bottom: 10px; }
.card p { font-size: 15px; }
.tag-free, .tag-pro {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.tag-free { background: #dcfce7; color: #166534; }
.tag-pro { background: var(--ink); color: #fbbf24; }

/* ---------- Free vs Pro table ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 15px;
}
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; text-align: center; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare th { background: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.compare .pro { background: #eff6ff; color: var(--blue); font-weight: 700; }
.compare th.pro { background: var(--blue); color: #fff; }
.compare .no { color: #cbd5e1; }

/* ---------- Pricing ---------- */
.plans-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 720px; margin: 0 auto 22px; }
.plan {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 30px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18); }
.plan.lifetime { border: 2px solid var(--amber); box-shadow: 0 16px 40px rgba(245, 158, 11, 0.16); }
.plan .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
}
.plan.lifetime .badge { background: var(--amber); color: var(--ink); }
.plan .price { font-size: 44px; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan p { color: var(--muted); font-size: 14px; margin-bottom: 18px; flex: 1; }

.plans-mini { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.plan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.plan-row div { flex: 1; font-size: 13px; color: var(--muted); }
.plan-row strong { display: block; color: var(--ink); font-size: 15px; }
.plan-row .p { font-weight: 800; color: var(--ink); white-space: nowrap; }
.plan-row .p small { font-weight: 500; color: var(--muted); }
.or { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; margin: 4px 0 14px; }
.fine { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 20px 20px 72px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step p, .step li { font-size: 15px; }
.step ul { margin: 8px 0 0 18px; }
kbd, code {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.callout {
  background: var(--amber-soft);
  border: 1px solid #fcd34d;
  color: #78350f;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
}
.callout.ok { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }

/* ---------- FAQ ---------- */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details p { margin-top: 8px; font-size: 15px; }

/* ---------- Legal ---------- */
.legal h1 { font-size: 34px; text-align: left; }
.legal h2 { text-align: left; font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 15.5px; margin-bottom: 10px; }
.legal ul { margin-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 16px; background: #fff; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: #fff; padding: 28px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); margin-left: 16px; }
footer a:first-child { margin-left: 0; }

/* ---------- Visitor vs. just-installed (index.html?installed=1) ---------- */
.installed-only { display: none !important; }
body.installed .installed-only { display: revert !important; }
body.installed .ctas.installed-only { display: flex !important; }
body.installed .nav-links .installed-only { display: inline-flex !important; }
body.installed .eyebrow.installed-only { display: inline-block !important; }
body.installed .store-only { display: none !important; }
.eyebrow-ok { background: #dcfce7; color: #166534; }
#getting-started { scroll-margin-top: 70px; }

.center { text-align: center; }
.mt { margin-top: 28px; }

/* License key box (activate.html?key=txn_...) */
.hidden { display: none !important; }
.key-box {
  margin: 0 auto 28px; padding: 18px 20px; border-radius: 14px;
  background: #ecfdf5; border: 2px solid #34d399; text-align: center;
}
.key-box p { margin: 0 0 10px; color: #065f46; }
.key-row { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.key-row code {
  font-size: 16px; padding: 10px 14px; background: #fff; border: 1px solid #a7f3d0;
  border-radius: 10px; word-break: break-all; user-select: all;
}
