/* Vigilance. Black, with one signature colour and a glow behind the fold.
   The only other colour is the alarm red, and it appears exactly once. */
:root {
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --text: #f4f5f7;
  --muted: #8d919b;
  --dim: #62666f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #7b6cf6;
  --accent-2: #4f8cff;
  --accent-soft: rgba(123, 108, 246, 0.16);
  --bad: #ff4d3d;
  --radius: 12px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Two layers behind everything. A wash of colour at the top of the page, and a
   dot grid that fades out before it reaches the copy. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(900px 520px at 50% -180px, rgba(123, 108, 246, 0.22), transparent 68%),
    radial-gradient(700px 400px at 88% 8%, rgba(79, 140, 255, 0.12), transparent 70%);
}

body::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(700px 460px at 50% 0, #000, transparent 75%);
  mask-image: radial-gradient(700px 460px at 50% 0, #000, transparent 75%);
}

/* ---------- nav ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  /* Line the bar up with the reading column while the blur still spans the
     whole window. */
  padding-inline: max(24px, calc((100% - 720px) / 2 + 24px));
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.wordmark svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 20px;
}

.quiet {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.quiet:hover {
  color: var(--text);
}

.ghost {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
}

.ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

/* ---------- layout ---------- */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

section {
  margin-top: 88px;
}

h1 {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 30%, #a9adb7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  font-weight: 600;
}

h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
}

.lede {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.cta a,
.tier > a {
  border-radius: 9px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(123, 108, 246, 0.32);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(123, 108, 246, 0.42);
}

.secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.chips span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}

/* A strip of plain numbers under the fold. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 56px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats div {
  text-align: center;
}

.stats b {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff, #9aa0ac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--dim);
}

/* ---------- terminal ---------- */

code,
pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
}

.window {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.titlebar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.titlebar span {
  margin-left: 8px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--dim);
}

.screen {
  padding: 22px;
  margin: 0;
  overflow-x: auto;
  line-height: 1.6;
}

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

.screen .bad {
  color: var(--bad);
  font-weight: 600;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--accent-soft);
  color: #b9b1ff;
}

.ico svg {
  width: 18px;
  height: 18px;
}

/* ---------- pricing ---------- */

#pricing {
  scroll-margin-top: 80px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.tier.featured {
  border-color: rgba(123, 108, 246, 0.45);
  background:
    linear-gradient(180deg, rgba(123, 108, 246, 0.1), rgba(123, 108, 246, 0.02)),
    var(--bg);
  box-shadow: 0 18px 50px rgba(123, 108, 246, 0.18);
}

.ribbon {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.tier h3 {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 16px;
}

.tier.featured h3 {
  color: #b9b1ff;
}

.price {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.price span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.for {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.tier ul {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}

.tier li {
  position: relative;
  padding: 6px 0 6px 24px;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 11px;
  height: 6px;
  border-left: 1.6px solid var(--dim);
  border-bottom: 1.6px solid var(--dim);
  transform: rotate(-45deg);
}

.tier.featured li::before {
  border-color: var(--accent);
}

.tier > a {
  margin-top: auto;
  text-align: center;
  padding: 11px 16px;
  font-size: 14px;
}

/* ---------- comparison tables ---------- */

.tablewrap {
  overflow-x: auto;
  margin-top: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}

table.vs,
table.chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

table.vs {
  min-width: 640px;
}

table.chart {
  min-width: 940px;
  font-size: 14px;
}

table.vs th,
table.vs td,
table.chart th,
table.chart td {
  text-align: left;
  vertical-align: top;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}

table.vs tbody tr:last-child th,
table.vs tbody tr:last-child td,
table.chart tbody tr:last-child th,
table.chart tbody tr:last-child td {
  border-bottom: 0;
}

table.vs thead th,
table.chart thead th {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
}

table.vs tbody th {
  font-weight: 400;
  color: var(--text);
  width: 38%;
}

table.vs td {
  color: var(--muted);
  width: 31%;
}

table.vs td:last-child,
table.vs thead th:last-child {
  color: var(--text);
  background: rgba(123, 108, 246, 0.05);
}

table.chart thead th {
  vertical-align: bottom;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
}

table.chart thead th:first-child {
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

table.chart thead th span {
  display: block;
  max-width: 96px;
  margin: 0 auto;
}

table.chart tbody th {
  text-align: left;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}

table.chart tbody th a {
  color: var(--text);
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

table.chart td {
  text-align: center;
}

table.chart tr.mine {
  background: rgba(123, 108, 246, 0.09);
}

table.chart tr.mine th {
  font-weight: 600;
}

.m {
  display: inline-block;
  min-width: 52px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
}

.m.yes {
  color: #cfc7ff;
  background: rgba(123, 108, 246, 0.18);
}

tr.mine .m.yes {
  color: #fff;
  background: rgba(123, 108, 246, 0.42);
}

.m.some {
  color: #9aa0ab;
  background: rgba(255, 255, 255, 0.06);
}

.m.no {
  color: #5c6068;
  background: transparent;
}

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

.vslist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.vscard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.vscard:hover {
  border-color: rgba(123, 108, 246, 0.4);
  transform: translateY(-2px);
}

.vscard h3 {
  margin: 0 0 8px;
}

.vscard p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- close and footer ---------- */

.close {
  margin-top: 96px;
  padding: 48px 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(600px 260px at 50% 0, rgba(123, 108, 246, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  text-align: center;
}

.close p {
  color: var(--muted);
}

.close .cta {
  justify-content: center;
}

.fineprint {
  color: var(--dim);
  font-size: 14px;
}

footer {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

footer a {
  color: var(--muted);
}

a {
  color: var(--text);
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--muted);
}

/* Three cards and a wide chart want more room than the reading column. */
@media (min-width: 1060px) {
  .tablewrap,
  .vslist,
  .tiers {
    width: calc(100% + 190px);
    margin-left: -95px;
  }
}

@media (min-width: 1240px) {
  .tablewrap.wide {
    width: calc(100% + 340px);
    margin-left: -170px;
  }
}

/* Phones. The tables stop being tables and become one block per row, so
   nothing scrolls sideways and every answer keeps the question next to it. */
@media (max-width: 760px) {
  .tablewrap {
    overflow-x: visible;
    border: 0;
    background: none;
    margin-top: 22px;
  }

  table.vs,
  table.chart {
    min-width: 0;
    display: block;
  }

  table.vs thead,
  table.chart thead {
    display: none;
  }

  table.vs tbody,
  table.chart tbody {
    display: block;
  }

  table.vs tbody tr,
  table.chart tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  }

  table.chart tbody tr.mine {
    border-color: rgba(123, 108, 246, 0.45);
    background: rgba(123, 108, 246, 0.09);
  }

  table.vs tbody th,
  table.chart tbody th {
    display: block;
    width: auto;
    padding: 0 0 12px;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    white-space: normal;
  }

  table.vs tbody td,
  table.chart tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    width: auto;
    padding: 7px 0;
    border: 0;
    border-top: 1px solid var(--border);
    text-align: left;
    background: none;
  }

  table.vs tbody td::before,
  table.chart tbody td::before {
    content: attr(data-label);
    flex: 1;
    color: var(--dim);
    font-size: 14px;
  }

  table.vs tbody td {
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .topbar {
    padding-block: 12px;
    padding-inline: 18px;
  }
  .navlinks {
    gap: 14px;
  }
  main {
    padding: 48px 20px 72px;
  }
  section {
    margin-top: 64px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -0.03em;
  }
  h2 {
    font-size: 23px;
  }
  .lede {
    font-size: 17px;
  }
  .grid,
  .tiers,
  .vslist {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px 8px;
    margin-top: 40px;
  }
  .stats b {
    font-size: 26px;
  }
  /* The terminal is a picture of real output, so it must fit rather than
     scroll sideways on a phone. */
  .screen {
    padding: 16px 12px;
    font-size: 10px;
    line-height: 1.6;
  }
  /* One button per row. Two side by side wrap their labels onto two lines. */
  .cta {
    flex-direction: column;
    gap: 10px;
  }
  .cta a {
    text-align: center;
  }
  .close {
    padding: 36px 22px;
  }
}
