:root {
  --accent: #2F6FEB;
  --accent-soft: #DCE7FF;
  --ink: #0E1116;
  --ink-2: #4a4f5a;
  --ink-3: #8a8f99;
  --surface: #F8FAFD;
  --surface-2: #EEF2F8;
  --divider: #e2e7ef;
  --radius: 16px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  padding: 28px 0 0;
  display: flex;
  justify-content: center;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}
.brand strong {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }

/* Hero (landing only) */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
  max-width: 760px;
  margin: 0 auto;
}
.hero .icon-xl {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  margin: 0 auto 32px;
  box-shadow: 0 18px 40px -20px rgba(47, 111, 235, 0.45),
              0 4px 16px -8px rgba(14, 17, 22, 0.18);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero p.lede {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 auto 36px;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: #2459c4; transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--divider); }

/* Features grid */
.features {
  padding: 64px 24px;
  background: white;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.features .wrap { max-width: 980px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.feature {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
}
.feature .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 20px;
}
.feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--ink-2);
  max-width: 580px;
  font-size: 16px;
}

/* Doc pages (privacy/terms/eula/support) */
.doc {
  padding: 56px 24px 80px;
  max-width: 760px;
  margin: 0 auto;
}
.doc h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.doc .updated {
  color: var(--ink-3);
  font-size: 14px;
  margin-bottom: 32px;
}
.doc h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 12px;
}
.doc p, .doc li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol {
  margin: 0 0 18px 22px;
}
.doc li { margin-bottom: 8px; }
.doc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.doc a:hover { border-bottom-color: var(--accent); }
.doc code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.doc strong { font-weight: 600; }

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 15px;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--divider);
  padding: 16px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--divider); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

/* Footer */
footer {
  padding: 40px 24px 60px;
  border-top: 1px solid var(--divider);
  margin-top: 60px;
  font-size: 14px;
  color: var(--ink-3);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
}
footer a {
  color: var(--ink-2);
  text-decoration: none;
}
footer a:hover { color: var(--accent); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 540px) {
  .nav { gap: 14px; font-size: 13px; }
  .hero { padding: 56px 24px 40px; }
  .hero .icon-xl { width: 96px; height: 96px; border-radius: 22px; }
  .site-header { padding-top: 20px; }
}
