:root {
  --ink: #0c1018;
  --body: #3f4754;
  --muted: #6c7686;
  --faint: #98a1b0;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: #eef0fe;
  --line: #e9eaf0;
  --line-2: #d9dbe6;
  --bg: #ffffff;
  --bg-soft: #fafafc;
  --discord: #5865f2;
  --zoom: #2d8cff;
  --gchat: #00832d;
  --monday: #ff3d57;
  --ok: #1f9d57;
  --r: 14px;
  --r-sm: 10px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(12, 16, 24, 0.04);
  --shadow: 0 1px 3px rgba(12, 16, 24, 0.05), 0 22px 48px -28px rgba(12, 16, 24, 0.22);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", var(--sans);
  --maxw: 1080px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0;
  font-weight: 800;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-strong);
}
img {
  max-width: 100%;
  display: block;
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
}
:focus-visible {
  outline: 2.5px solid rgba(79, 70, 229, 0.5);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 104px 0;
  position: relative;
}
.soft {
  background: var(--bg-soft);
}
.bordered {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  margin-right: 10px;
  opacity: 0.6;
}
h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}
.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 14px 0 0;
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    background 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--faint);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  transition: gap 0.14s ease;
}
.btn-text:hover {
  gap: 10px;
}

/* nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--body);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links .btn {
  font-size: 14px;
  padding: 9px 16px;
}
@media (max-width: 720px) {
  .nav-links a.hide-sm {
    display: none;
  }
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  font-size: 14.5px;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.foot-links a {
  color: var(--muted);
}
.foot-links a:hover {
  color: var(--ink);
}

/* generic card */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.07s;
}
.reveal.d2 {
  transition-delay: 0.14s;
}
.reveal.d3 {
  transition-delay: 0.21s;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* doc / legal / prose pages */
.doc {
  padding: 56px 0 96px;
}
.doc .wrap {
  max-width: 760px;
}
.doc h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 10px;
}
.doc .updated {
  color: var(--faint);
  font-size: 14px;
  margin: 0 0 8px;
}
.doc .intro {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 36px;
  line-height: 1.6;
}
.prose h2 {
  font-size: 21px;
  margin: 40px 0 12px;
}
.prose h3 {
  font-size: 17px;
  font-family: var(--display);
  color: var(--ink);
  margin: 26px 0 8px;
}
.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.72;
  color: var(--body);
}
.prose p {
  margin: 12px 0;
}
.prose ul {
  padding-left: 20px;
  margin: 12px 0;
}
.prose li {
  margin: 7px 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink);
}

.prose .toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  margin: 4px 0 8px;
  font-size: 15px;
}
.prose .toc strong {
  color: var(--ink);
  font-family: var(--display);
}
.prose .toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
  columns: 2;
  color: var(--body);
}
.prose .note {
  background: var(--accent-soft);
  border: 1px solid #dfe1fb;
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* pricing tiers (shared by home + /discord/pricing) */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.tier.pop {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.pop-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--pill);
}
.tier .tn {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}
.tier .pr {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  margin: 8px 0 2px;
  letter-spacing: -0.03em;
}
.tier .pr small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.tier .sub {
  color: var(--muted);
  font-size: 13.5px;
  min-height: 18px;
}
.tier .inherits {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 18px 0 0;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.tier li {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 9px 0;
  padding-left: 26px;
  position: relative;
  color: #2c3142;
}
.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 800;
}
@media (max-width: 860px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}
