/*
  Shared stylesheet for every page on the site (home, docs, changelog,
  security, terms, privacy). No build step: each page links this file.

  Design rules, so later edits stay consistent:
  - One accent colour (--accent). Everything else is greys.
  - Square-ish corners (--radius is 3px). No shadows, no gradients, no blur.
  - Structure comes from 1px borders (--line), not from cards floating on glow.
  - Body copy is 16px; headings are tight and only a little larger.
*/
:root {
  --bg: #111213;
  --bg-raised: #17181a;
  --line: #2b2d30;
  --line-strong: #3b3e42;
  --text: #dcdcd7;
  --text-dim: #9a9b97;
  --accent: #e0893c;
  --accent-hover: #ea9a52;
  --on-accent: #141414;
  --radius: 3px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Author display rules (e.g. the flex form) would otherwise beat [hidden]. */
[hidden] { display: none !important; }

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #f0f0eb;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

section {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

/* Small label above each section heading. */
.label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

h2 { font-size: 22px; margin-bottom: 20px; }
h3 { font-size: 16px; }

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

/* ---------- Header / hero ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f0f0eb;
  text-decoration: none;
}
.wordmark:hover { color: #f0f0eb; }

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.topnav a { color: var(--text-dim); text-decoration: none; }
.topnav a:hover { color: var(--text); }
.topnav a[aria-current="page"] { color: var(--text); }

.status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 8px;
}

.hero { border-top: 0; padding: 56px 0 64px; }

.hero h1 {
  font-size: clamp(28px, 5.2vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 20ch;
  margin-bottom: 16px;
}

.hero p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 28px;
}

.button {
  display: inline-block;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

/* ---------- Features grid ----------
   The 1px gap over a --line background draws the inner rules, so every
   cell shares its borders with its neighbours like a table. */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--bg);
  padding: 18px 20px 20px;
}

.features h3 { margin-bottom: 4px; }

.features p {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
}

@media (min-width: 600px) {
  .features { grid-template-columns: 1fr 1fr; }
}

/* ---------- Pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
}

.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* The early access tier is the only one that gets the accent. */
.tier.current {
  border-color: var(--line-strong);
  border-top: 3px solid var(--accent);
  background: var(--bg-raised);
}

.tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}

.price {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #f0f0eb;
  margin-bottom: 6px;
}

/* "per seat / month" next to the amount; quieter than the number. */
.price .unit {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-dim);
}

.tier > p.price-note {
  margin-bottom: 0.6em;
  color: var(--accent);
}

/* Second price line inside a card (Solo Pro). Grey, not accent. */
.tier > p.price-alt {
  margin-bottom: 0.6em;
  color: var(--text);
}

.tier > p {
  font-size: 15px;
  color: var(--text-dim);
}

.tier ul {
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
}

.tier li { padding: 3px 0 3px 14px; position: relative; }
.tier li strong { font-weight: 600; color: #f0f0eb; }

/* Plain square bullet instead of icon checkmarks. */
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 5px;
  height: 5px;
  background: var(--text-dim);
}

.tier.current li::before { background: var(--accent); }

/* ---------- Waitlist ---------- */

.signup {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-raised);
}

.signup h2 { margin-bottom: 8px; }

.signup form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.signup label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.signup input {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 16px; /* 16px stops iOS Safari zooming in on focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.signup input::placeholder { color: #6c6d6a; }

.signup input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.signup .button { flex: 0 0 auto; }

.confirm {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  color: #f0f0eb;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 15px;
  color: var(--text-dim);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footnav, footer .contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footnav a { color: var(--text-dim); }

footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Text pages (docs, changelog, security, terms, privacy) ----------
   These pages are long-form reading, so they get normal list bullets and
   h2s with a rule above them instead of the homepage's bordered sections. */

.page { padding: 40px 0 64px; }

.page h1 {
  font-size: clamp(26px, 4.6vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page .meta {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.page .lede { color: var(--text-dim); font-size: 17px; }

.page h2 {
  font-size: 20px;
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page h3 { margin: 24px 0 8px; }

.page ul, .page ol { padding-left: 1.3em; margin: 0 0 1em; }
.page li { margin-bottom: 0.35em; }
.page li::marker { color: var(--text-dim); }

/* A plain bordered box for "this is a draft" style notes. */
.note {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 15px;
}

/* Table of contents on the docs page. */
.toc {
  border: 1px solid var(--line);
  padding: 14px 18px;
  margin-bottom: 8px;
  font-size: 15px;
}
.toc ol { margin: 0; }

code, pre {
  font-family: var(--mono);
  font-size: 14px;
}

code {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1px 5px;
}

pre {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 1em;
  overflow-x: auto;
  line-height: 1.5;
}

pre code { background: none; border: 0; padding: 0; }

/* ---------- Changelog ----------
   One row per release: version and date on the left, notes on the right.
   Newest first. On narrow screens the version and date sit on one line
   above the notes. */

.page .changelog { list-style: none; padding: 0; margin: 28px 0 0; }

.changelog > li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 24px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin: 0;
}

.changelog > li:last-child { border-bottom: 1px solid var(--line); }

.changelog .release h2 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.changelog .release h2 a { color: #f0f0eb; text-decoration: none; }
.changelog .release h2 a:hover { color: var(--accent); }

.changelog time {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

/* For a release that was built and withdrawn. */
.pulled {
  display: inline-block;
  margin-top: 4px;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.release-title {
  font-weight: 600;
  font-size: 17px;
  color: #f0f0eb;
  margin-bottom: 6px;
}

/* Added / Changed / Removed / Fixed labels inside an entry. */
.changelog h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin: 14px 0 4px;
}

.changelog .notes > :first-child { margin-top: 0; }
.changelog .notes p { margin-bottom: 0.5em; }
.changelog ul { margin: 0; list-style: disc; }
.changelog li li { margin-bottom: 0.2em; }

@media (max-width: 560px) {
  .changelog > li { grid-template-columns: 1fr; }
  .changelog .release { display: flex; align-items: baseline; gap: 12px; }
  .changelog time, .pulled { margin-top: 0; }
}

@media (max-width: 480px) {
  section { padding: 40px 0; }
  .hero { padding: 36px 0 48px; }
  .signup { padding: 20px; }
  .signup .button { width: 100%; }
  .page { padding: 28px 0 48px; }
  /* Not enough room for the badge beside the nav; the hero says it anyway. */
  .topnav .status { display: none; }
}
