@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --fg: #141821;
  --fg-strong: #0b0e15;
  --muted: #5b6474;
  --border: #e3e7ee;
  --border-strong: #cfd6e2;
  --primary: #2655c9;
  --primary-hover: #1e47ad;
  --primary-fill: #2655c9;
  --primary-fill-hover: #1e47ad;
  --primary-soft: #edf2fc;
  --primary-ring: rgba(38, 85, 201, 0.32);
  --on-primary: #ffffff;
  --red: #c43a48;
  --amber: #b7791f;
  --green: #177a4e;
  --green-soft: #e6f5ee;
  --attention-bg: #fdf7e3;
  --attention-fg: #7a4d0b;
  --attention-border: #f1dc9b;
  --ink-bg: #0c1120;
  --ink-surface: #131a2c;
  --ink-border: #232d45;
  --ink-fg: #e6eaf2;
  --ink-muted: #9ba6bb;
  --ink-accent: #8eaaf5;
  --grid-line: rgba(20, 24, 33, 0.055);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 48px -24px rgba(16, 24, 40, 0.22), 0 2px 6px rgba(16, 24, 40, 0.05);
  --radius: 8px;
  --radius-lg: 14px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0d16;
    --bg-soft: #0f1422;
    --surface: #121827;
    --fg: #e4e8f0;
    --fg-strong: #f5f7fb;
    --muted: #97a1b4;
    --border: #1f2739;
    --border-strong: #2c3650;
    --primary: #5a82ec;
    --primary-hover: #7396f0;
    --primary-fill: #3f67d6;
    --primary-fill-hover: #4d74e0;
    --primary-soft: #16213d;
    --primary-ring: rgba(115, 150, 240, 0.4);
    --red: #ef6b78;
    --amber: #e7b24f;
    --green: #4cc38a;
    --green-soft: #10291f;
    --attention-bg: #2a220c;
    --attention-fg: #f0cf7a;
    --attention-border: #4d3d12;
    --ink-bg: #060911;
    --ink-surface: #0e1424;
    --ink-border: #1d2640;
    --grid-line: rgba(228, 232, 240, 0.05);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d16;
  --bg-soft: #0f1422;
  --surface: #121827;
  --fg: #e4e8f0;
  --fg-strong: #f5f7fb;
  --muted: #97a1b4;
  --border: #1f2739;
  --border-strong: #2c3650;
  --primary: #5a82ec;
  --primary-hover: #7396f0;
  --primary-fill: #3f67d6;
  --primary-fill-hover: #4d74e0;
  --primary-soft: #16213d;
  --primary-ring: rgba(115, 150, 240, 0.4);
  --red: #ef6b78;
  --amber: #e7b24f;
  --green: #4cc38a;
  --green-soft: #10291f;
  --attention-bg: #2a220c;
  --attention-fg: #f0cf7a;
  --attention-border: #4d3d12;
  --ink-bg: #060911;
  --ink-surface: #0e1424;
  --ink-border: #1d2640;
  --grid-line: rgba(228, 232, 240, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--primary-fill);
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.button-primary {
  background: var(--primary-fill);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}

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

.button-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--fg);
}

.button-ghost:hover {
  background: var(--bg-soft);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.button-static {
  cursor: default;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: border-color 0.2s ease;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-strong);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--fg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--fg-strong);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  max-width: 700px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* Hero flow diagram */

.flow {
  display: grid;
  grid-template-columns: 1fr 40px 0.85fr 40px 1fr;
  align-items: stretch;
  margin-top: 72px;
  text-align: left;
}

.flow-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.flow-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-outside {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--bg-soft);
  box-shadow: none;
}

.flow-apps {
  display: grid;
  gap: 10px;
}

.flow-apps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.flow-apps li:nth-child(1) {
  transform: rotate(-1.2deg);
}

.flow-apps li:nth-child(2) {
  transform: translateX(10px) rotate(0.8deg);
}

.flow-apps li:nth-child(3) {
  transform: translateX(-4px) rotate(-0.4deg);
}

.flow-apps div {
  display: grid;
  min-width: 0;
}

.flow-apps strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.flow-apps span:not(.dot) {
  color: var(--muted);
  font-size: 13px;
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
}

.dot-red {
  background: var(--red);
}

.dot-amber {
  background: var(--amber);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
}

.flow-lock {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow:
    0 0 0 4px var(--primary-soft),
    var(--shadow-lg);
}

.flow-lock .flow-title {
  color: var(--primary);
}

.flow-steps {
  display: grid;
  gap: 4px;
  counter-reset: step;
}

.flow-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  animation: step-light 7.5s infinite;
}

.flow-steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.flow-steps li:nth-child(2) {
  animation-delay: 1.5s;
}

.flow-steps li:nth-child(3) {
  animation-delay: 3s;
}

.flow-steps li:nth-child(4) {
  animation-delay: 4.5s;
}

.flow-steps li:nth-child(5) {
  animation-delay: 6s;
}

@keyframes step-light {
  0%,
  20% {
    background: var(--primary-soft);
    color: var(--primary);
  }
  21%,
  100% {
    background: transparent;
    color: var(--fg);
  }
}

.seal {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1.5px dashed color-mix(in srgb, var(--green) 55%, var(--border));
  border-radius: var(--radius);
  background: var(--green-soft);
}

.seal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.seal-head code {
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 600;
}

.seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--green) 50%, var(--border));
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.seal-badge svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.seal-rules {
  display: grid;
  gap: 6px;
}

.seal-rules li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
}

.seal-rule-text,
.seal-rules li > span:nth-child(2) {
  color: var(--fg);
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.seal-dir {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.verdict {
  font-size: 11.5px;
  font-weight: 600;
}

.verdict-ok {
  color: var(--green);
}

.verdict-deny {
  color: var(--red);
}

.seal-foot {
  color: var(--muted);
  font-size: 12px;
}

.flow-arrow {
  display: grid;
  place-items: center;
}

.flow-arrow span {
  position: relative;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: var(--border-strong);
}

.flow-arrow span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--primary);
  animation: travel 1.8s ease-in-out infinite;
}

@keyframes travel {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(260%);
  }
}

/* Sections */

.section {
  padding: 104px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  color: var(--fg-strong);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  color: var(--fg-strong);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.section-lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.cards {
  display: grid;
  gap: 16px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.card p,
.mini p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  padding: 7px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.callout {
  margin-top: 40px;
  padding: 22px 26px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--primary-soft);
  color: var(--fg);
  font-size: 18px;
  font-weight: 500;
  text-wrap: pretty;
}

.fineprint {
  max-width: 760px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
}

.fineprint-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* How it works */

.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 56px;
}

.steps {
  display: grid;
  gap: 8px;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.step-number {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.review {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.review-title {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.review-sub {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  flex: none;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 550;
}

.badge-attention {
  border-color: var(--attention-border);
  background: var(--attention-bg);
  color: var(--attention-fg);
}

.review-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.review-table th {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.review-table th:last-child,
.review-table td:last-child {
  text-align: right;
}

.review-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.review-kind {
  display: block;
  font-weight: 500;
}

.review-table code {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.action {
  color: var(--green);
  font-weight: 550;
  white-space: nowrap;
}

.action-deny {
  color: var(--red);
}

.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

.review-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.checkbox {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--primary-fill);
}

.checkbox::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2.5px;
  width: 5px;
  height: 10px;
  border: solid var(--on-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.review figcaption {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
}

/* Architecture graph */

.graph {
  margin-bottom: 40px;
}

.graph-scroll {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.graph-svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  font-family: var(--font);
}

.g-cluster {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 1.5;
}

.g-cluster-label {
  fill: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.g-ext {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-dasharray: 5 4;
}

.g-box {
  fill: var(--bg-soft);
  stroke: var(--border-strong);
}

.g-box-trusted {
  stroke: var(--green);
}

.g-title {
  fill: var(--fg-strong);
  font-size: 15px;
  font-weight: 600;
}

.g-sub {
  fill: var(--muted);
  font-size: 12.5px;
}

.g-seal {
  fill: var(--green-soft);
  stroke: var(--green);
  stroke-dasharray: 6 4;
  stroke-width: 1.5;
}

.g-seal-label {
  fill: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.g-gateway {
  fill: var(--surface);
  stroke: var(--green);
  stroke-width: 1.5;
}

.g-gw-text {
  fill: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.g-app {
  fill: var(--surface);
  stroke: var(--border-strong);
}

.g-app-text {
  fill: var(--fg);
  font-size: 13px;
  font-weight: 500;
}

.g-edge {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}

.g-edge-dashed {
  stroke-dasharray: 4 4;
}

.g-arrow {
  fill: var(--muted);
}

.g-label {
  fill: var(--muted);
  font-size: 11.5px;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.legend-swatch {
  display: inline-block;
  width: 16px;
  height: 11px;
  margin-right: 8px;
  border-radius: 3px;
  vertical-align: -1px;
}

.legend-ext {
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}

.legend-box {
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
}

.legend-seal {
  border: 1px dashed var(--green);
  background: var(--green-soft);
}

.cards-flat .mini {
  padding-top: 18px;
  border-top: 2px solid var(--primary);
}

/* Open source */

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

.oss-group {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.oss-group h3 {
  margin-bottom: 18px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 6.5px;
  width: 4px;
  height: 8px;
  border: solid var(--primary);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.graph-hint {
  display: none;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Compare */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
}

.compare article {
  padding: 28px;
  background: var(--surface);
}

.compare p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */

.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  color: var(--fg-strong);
  font-size: 17px;
  font-weight: 550;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq p {
  padding: 0 40px 22px 0;
  color: var(--muted);
  font-size: 16px;
}

/* Overview facts */

.what {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.what .section-lead {
  margin-top: 0;
}

.what h2 {
  margin-bottom: 18px;
}

.facts {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.fact {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.fact:first-child {
  border-top: 0;
}

.fact dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.fact dd {
  margin: 0;
  font-size: 15px;
}

/* Early access */

.access {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.access-copy p {
  margin: 18px 0 28px;
  color: var(--ink-muted);
  font-size: 17px;
}

.section-ink .checklist li::before {
  background: rgba(142, 170, 245, 0.16);
}

.section-ink .checklist li::after {
  border-color: var(--ink-accent);
}

.access-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > span,
.field legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 550;
}

fieldset.field legend {
  margin-bottom: 8px;
}

.required {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.field [aria-invalid="true"] {
  border-color: var(--red);
}

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

.chips label {
  position: relative;
}

.chips input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.chips span:hover {
  border-color: var(--primary);
}

.chips input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 550;
}

.chips input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-status {
  font-size: 14px;
}

.form-status[data-tone="error"] {
  color: var(--red);
}

.form-status[data-tone="success"] {
  color: var(--green);
  font-weight: 550;
}

.form-privacy {
  color: var(--muted);
  font-size: 13px;
}

.access-form[data-done] .field,
.access-form[data-done] .field-row,
.access-form[data-done] .form-privacy {
  display: none;
}

/* Footer */

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 14px;
}

.brand-small {
  font-size: 16px;
}

.brand-small .brand-mark {
  width: 22px;
  height: 22px;
}

.footer-copy {
  margin-left: auto;
}

/* Plain pages (thanks, errors, 404) */

.plain-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--bg-soft);
}

.plain-card {
  display: grid;
  gap: 16px;
  max-width: 480px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.plain-card h1 {
  font-size: 32px;
}

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

.plain-card .brand {
  justify-self: center;
}

/* Ink sections */

.section-ink {
  background: var(--ink-bg);
  color: var(--ink-fg);
}

.section-ink h2,
.section-ink h3 {
  color: #fff;
}

.section-ink .kicker {
  color: var(--ink-accent);
}

.section-ink .card {
  border-color: var(--ink-border);
  background: var(--ink-surface);
}

.section-ink .card p,
.section-ink .fineprint {
  color: var(--ink-muted);
}

/* Responsive */

@media (max-width: 1024px) {
  .flow {
    grid-template-columns: 1fr 28px 1fr 28px 1fr;
  }

  .access {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .flow {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .flow-arrow {
    height: 36px;
  }

  .flow-arrow span {
    width: 2px;
    height: 100%;
  }

  .flow-arrow span::after {
    width: 100%;
    height: 40%;
    animation-name: travel-down;
  }

  @keyframes travel-down {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(260%);
    }
  }

  .cards-3,
  .oss,
  .what,
  .compare,
  .how {
    grid-template-columns: 1fr;
  }

  .how {
    gap: 32px;
  }

  .review {
    position: static;
  }

  .graph-hint {
    display: block;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .eyebrow {
    font-size: 13px;
  }

  .header-actions .button {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .card,
  .oss-group,
  .compare article {
    padding: 22px;
  }

  .access-form {
    padding: 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .graph-scroll {
    padding: 10px;
  }

  .fact {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px 16px;
  }

  .review-table th,
  .review-table td,
  .review-head,
  .review-foot,
  .review figcaption {
    padding-left: 14px;
    padding-right: 14px;
  }

  .footer-copy {
    margin-left: 0;
  }
}

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

  .flow-steps li,
  .flow-arrow span::after {
    animation: none;
  }

  .faq summary::after {
    transition: none;
  }
}
