:root {
  color-scheme: dark;
  --bg: #12141a;
  --panel: #1b1e27;
  --surface: #20232d;
  --text: #e6e6e6;
  --text-muted: #9aa0ac;
  --primary: #6ea8fe;
  --primary-hover: #9cc3fe;
  --primary-muted: #3a4a63;
  --border: #2e3240;
  --warning: #e0b84a;
  --error: #e05a5a;
  --success: #5ac98a;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.nav-cta {
  text-decoration: none;
  background: var(--primary);
  color: var(--bg);
  padding: 0.5em 1.1em;
  border-radius: 4px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-hover);
  color: var(--bg);
}

.nav-account {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-account:hover,
.nav-account[aria-current="page"] {
  color: var(--text);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.hero {
  text-align: center;
  padding-block: 2rem 3rem;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.lede {
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  text-decoration: none;
  padding: 0.6em 1.3em;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--primary);
  color: var(--bg);
}

.button-primary:hover {
  background: var(--primary-hover);
  color: var(--bg);
}

.button-secondary {
  border-color: var(--primary-muted);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.features article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}

.features h2 {
  font-size: 1.05rem;
  margin-top: 0;
}

.page-header {
  text-align: center;
  padding-block: 1rem 2rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.plan-featured {
  border-color: var(--primary-muted);
}

.plan h2 {
  margin-top: 0;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.25rem 0 1rem;
}

.plan ul {
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.plans-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 2rem;
}

.faq article {
  border-bottom: 1px solid var(--border);
  padding-block: 1.25rem;
}

.faq article:first-child { padding-top: 0; }
.faq article:last-child { border-bottom: none; }

.faq h2 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.legal-draft-notice {
  color: var(--text-muted);
  font-style: italic;
}

.legal-draft-notice code {
  color: var(--text);
}

.legal-body {
  color: var(--text-muted);
  max-width: 44rem;
  margin: 0 auto;
}

/* The policy pages are long-form prose, unlike the rest of the site: give
   them a reading measure, headings that break the wall of text up, and
   lists that don't run to the full page width. */
.legal-body h2 {
  color: var(--text);
  font-size: 1.1rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  color: var(--text);
  font-size: 0.95rem;
  margin: 1.5rem 0 0.4rem;
}

.legal-body p,
.legal-body li {
  line-height: 1.7;
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body code {
  color: var(--text);
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

.legal-note {
  color: var(--text-muted);
  font-style: italic;
  max-width: 44rem;
  margin: 0.75rem auto 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
}

.footer-links {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a[aria-current="page"] {
  color: var(--text);
}

.footer-note {
  max-width: 960px;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.muted {
  color: var(--text-muted);
}

.section-label {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.account-section {
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem;
}

.account-section:first-of-type { padding-top: 0; }
.account-section:last-of-type { border-bottom: none; }

.session-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.session-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.4em 0.6em 0.4em 0;
  border-bottom: 1px solid var(--border);
}

.session-table td {
  padding: 0.5em 0.6em 0.5em 0;
  border-bottom: 1px solid var(--border);
}

.session-current td:first-child {
  color: var(--primary);
}

.export-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.export-list li {
  padding-block: 0.3em;
}
