:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f5f4fb;
  --text: #17142b;
  --muted: #5d5a73;
  --line: #e4e1f0;
  --brand: #5b3df5;
  --brand-deep: #3a2bc4;
  --brand-ink: #ffffff;
  --accent: #14b89c;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(29, 22, 112, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110f1f;
    --bg-soft: #181530;
    --text: #f1effa;
    --muted: #a9a5c2;
    --line: #2b2747;
    --brand: #7c63ff;
    --brand-deep: #5b3df5;
    --card: #1a1733;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #1d1670); display: grid; place-items: center; color: #fff; font-size: 13px; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
@media (max-width: 640px) { .top nav a:not(.button) { display: none; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.button:hover { background: var(--brand-deep); }
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.secondary:hover { background: var(--bg-soft); }
.button.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.button.disabled, .button[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 auto 18px; max-width: 820px; }
.hero p.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.shot { margin: 44px auto 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }

/* Sections */
section { padding: 64px 0; }
section h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.015em; margin: 0 0 10px; }
section .intro { color: var(--muted); margin: 0 0 32px; max-width: 680px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 820px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 21px; }
.price { font-size: 40px; font-weight: 750; margin: 8px 0 2px; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { padding: 0; margin: 16px 0 22px; list-style: none; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 820px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Text pages */
.page { max-width: 760px; padding: 48px 20px 64px; margin: 0 auto; }
.page h1 { font-size: 36px; letter-spacing: -0.015em; margin: 0 0 6px; }
.page .updated { color: var(--muted); margin: 0 0 28px; }
.page h2 { font-size: 21px; margin: 32px 0 8px; }
.page p, .page li { color: var(--text); }

/* License page */
.keybox { font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 18px 0; user-select: all; }
.status { color: var(--muted); }
.error { color: #d93a3a; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
footer a { color: var(--muted); }
