:root {
  --bg: #0a0e1a;
  --surface: #111827;
  --card: #151c2e;
  --accent: #8b5cf6;
  --accent-strong: #6d45d2;
  --text: #e8eaf0;
  --muted: #a2a8ba;
  --dim: #71788e;
  --border: rgba(255, 255, 255, 0.09);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

a { color: #bca7ff; }
a:hover { color: #d8ccff; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #c4b5fd;
  outline-offset: 3px;
  border-radius: 3px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem max(1rem, calc((100vw - 1080px) / 2));
  background: rgba(10, 14, 26, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; border-radius: 7px; }

.site-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-links a { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.site-links a:hover, .site-links a[aria-current="page"] { color: var(--text); }

main { max-width: 880px; margin: 0 auto; padding: 4.5rem 1.5rem 5rem; }
.wide { max-width: 1080px; }

.eyebrow {
  margin: 0 0 0.65rem;
  color: #bca7ff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.02em; }
h1 { margin: 0 0 1rem; font-size: clamp(2.25rem, 6vw, 3.8rem); }
h2 { margin: 3rem 0 0.8rem; font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { margin: 1.7rem 0 0.4rem; font-size: 1.12rem; }
p, li { color: var(--muted); }
strong { color: var(--text); }

.lede { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.12rem; }
.updated { margin-top: 1rem; color: var(--dim); font-size: 0.86rem; }

.notice {
  margin: 2rem 0;
  padding: 1rem 1.15rem;
  background: rgba(139, 92, 246, 0.09);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 12px;
}

.notice p { margin: 0; }

.cards, .plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.card, .plan {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.card h2, .plan h2 { margin-top: 0; }
.card p:last-child, .plan p:last-child { margin-bottom: 0; }
.plan.pro { border-color: rgba(139, 92, 246, 0.5); }
.price { margin: 0.4rem 0; color: var(--text); font-size: 2rem; font-weight: 700; }
.price-note { color: var(--dim); font-size: 0.84rem; }

.button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: #5c34bc; color: #fff; }

.comparison-wrap { overflow-x: auto; margin: 1.75rem 0; }
.comparison { width: 100%; min-width: 650px; border-collapse: collapse; }
.comparison th, .comparison td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.comparison th { color: var(--text); }
.comparison td { color: var(--muted); }
.comparison th:not(:first-child), .comparison td:not(:first-child) { text-align: center; }
.yes { color: #86efac; font-weight: 700; }
.no { color: var(--dim); }

.toc {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.toc p { margin: 0 0 0.4rem; color: var(--text); font-weight: 650; }
.toc ul { margin: 0; padding-left: 1.2rem; columns: 2; }

code { font-family: var(--mono); color: #ddd6fe; }

footer {
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--dim);
  text-align: center;
  font-size: 0.84rem;
}
footer nav { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 700px) {
  .site-nav { align-items: flex-start; }
  .site-links { justify-content: flex-end; gap: 0.8rem; }
  .site-links a:nth-child(2), .site-links a:nth-child(3) { display: none; }
  main { padding-top: 3rem; }
  .cards, .plans { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
