:root {
  --accent: #6B4EFF;
  --accent-hover: #5A3DF0;
  --on-accent: #FFFFFF;
  --bg: #FBFAFF;
  --bg-2: #F2EFFC;
  --card: #FFFFFF;
  --text: #1B1830;
  --text-2: #5C5873;
  --border: #E4E0F2;
  --badge: #EEEAFF;
  --shadow: 0 1px 2px rgba(27, 24, 48, 0.06), 0 8px 24px rgba(27, 24, 48, 0.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #B9A8FF;
    --accent-hover: #CBBEFF;
    --on-accent: #1C1340;
    --bg: #14121F;
    --bg-2: #1B1829;
    --card: #211E31;
    --text: #F1EEFF;
    --text-2: #ABA6C4;
    --border: #322E47;
    --badge: #2C2650;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; }
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.01em; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; color: var(--accent); }
.brand svg { height: 18px; width: auto; }
.site-nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--text-2); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-nav a.btn { color: var(--on-accent); }
@media (max-width: 640px) { .site-nav a.optional { display: none; } .site-nav { gap: 14px; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 600;
  border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.disabled { opacity: 0.55; cursor: default; pointer-events: none; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); }
.hero { padding: 72px 0 56px; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.badge { display: inline-block; background: var(--badge); color: var(--accent); padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 32px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--badge); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 12px; }

/* hero illustration: a tablet next to a monitor */
.devices { position: relative; aspect-ratio: 4 / 3; }
.devices .monitor { position: absolute; left: 0; top: 4%; width: 78%; aspect-ratio: 16 / 10; border-radius: 12px; background: linear-gradient(135deg, #8C72FF, #5536E8); box-shadow: 0 20px 50px rgba(85, 54, 232, 0.35); }
.devices .monitor::after { content: ""; position: absolute; left: 42%; bottom: -16%; width: 16%; height: 16%; background: var(--border); border-radius: 0 0 6px 6px; }
.devices .tablet { position: absolute; right: 0; bottom: 6%; width: 46%; aspect-ratio: 10 / 7; border-radius: 14px; background: var(--card); border: 8px solid #1B1830; box-shadow: 0 20px 50px rgba(27, 24, 48, 0.3); display: grid; place-items: center; }
.devices .tablet svg { width: 46%; color: var(--accent); }
.devices .pen { position: absolute; right: 14%; bottom: 2%; width: 6px; height: 34%; background: #1B1830; border-radius: 3px; transform: rotate(32deg); transform-origin: bottom; }

/* pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.price { font-size: 34px; font-weight: 700; margin: 4px 0; }
.price span { font-size: 16px; font-weight: 500; color: var(--text-2); }
.plan ul { padding-left: 0; list-style: none; margin: 14px 0 20px; flex: 1; }
.plan li { padding: 4px 0 4px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* documents (help, privacy, terms) */
.doc h2 { margin-top: 1.8em; font-size: 24px; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-2); }
.doc code { background: var(--bg-2); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
.toc { background: var(--bg-2); border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; }
.toc a { display: inline-block; margin-right: 16px; }
pre.notices { white-space: pre-wrap; font-size: 13px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; overflow-x: auto; }
.release { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.release h2 { font-size: 22px; margin-top: 0; }
.release .date { color: var(--text-2); font-weight: 400; font-size: 15px; margin-left: 8px; }

details.faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; color: var(--text-2); }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--text-2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--text-2); }
.site-footer .copy { margin-left: auto; }
