:root {
  --paper: #f6f7f5;
  --panel: #ffffff;
  --ink: #12181f;
  --mute: #5b6670;
  --rule: #d8dddb;
  --accent: #1f3df0;
  --accent-ink: #ffffff;
  --cut: #d7263d;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 8px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* header */
.top {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand svg { width: 22px; height: 22px; }
.top nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
}
.top nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.top nav a:hover, .top nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* type */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 750; margin-top: 0; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 16px; max-width: var(--measure); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--mute); }
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin: 0 0 14px;
}
.key {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.key .cut { color: var(--cut); text-decoration: line-through; text-decoration-thickness: 2px; }
code, pre { font-family: var(--mono); font-size: 0.92em; }
code { overflow-wrap: anywhere; }
pre {
  background: var(--ink);
  color: #e9edf2;
  padding: 14px 16px;
  border-radius: 6px;
  overflow-x: auto;
  max-width: 100%;
}

/* sections */
section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.hero { padding: 64px 0 56px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* diagram */
.diagram { width: 100%; height: auto; display: block; }
.diagram text { font-family: var(--mono); font-size: 12px; fill: var(--ink); }
.diagram .node { fill: var(--panel); stroke: var(--ink); stroke-width: 1.5; }
.diagram .wire {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.6s ease-out forwards;
}
.diagram .arm {
  stroke: var(--cut);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 380px 150px;
  animation: open 0.5s ease-out 1.9s forwards;
}
.diagram .mark {
  fill: var(--cut);
  opacity: 0;
  animation: show 0.3s ease-out 2.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes open { to { transform: rotate(-38deg); } }
@keyframes show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diagram .wire { animation: none; stroke-dashoffset: 0; }
  .diagram .arm { animation: none; transform: rotate(-38deg); }
  .diagram .mark { animation: none; opacity: 1; }
}

/* form */
form.signup {
  display: grid;
  gap: 12px;
  max-width: 460px;
  margin-top: 24px;
}
form.signup label { font-size: 14px; font-weight: 600; display: grid; gap: 6px; }
form.signup input, form.signup select {
  font: inherit;
  padding: 11px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  width: 100%;
}
.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 4px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
}
.button:hover { background: #1632c9; }
.button.quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.button.quiet:hover { background: var(--panel); }
.small { font-size: 14px; color: var(--mute); }

/* lists and grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px 32px;
}
.grid h3 { margin-bottom: 8px; }
.grid p { margin-bottom: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 720px; }
.facts li { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts time, .facts .when { font-family: var(--mono); font-size: 13px; color: var(--mute); padding-top: 3px; }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 4px; } }
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 760px; }
ol.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--rule); }
ol.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 14px; color: var(--mute); padding-top: 5px; }
ol.steps > li:last-child { border-bottom: 1px solid var(--rule); }
ol.steps h3 { margin-bottom: 6px; }
ol.steps p:last-child { margin-bottom: 0; }
ul.plain { padding-left: 20px; max-width: var(--measure); }
ul.plain li { margin-bottom: 8px; }
.note { border-left: 3px solid var(--accent); padding: 4px 16px; max-width: var(--measure); background: var(--panel); margin: 24px 0; }
.note p:last-child { margin-bottom: 0; }

/* pricing */
table { border-collapse: collapse; width: 100%; max-width: 920px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-top: 1px solid var(--rule); }
thead th { border-top: 0; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); font-weight: 600; }
tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
td .price { font-weight: 800; font-size: 20px; display: block; }
.table-wrap { overflow-x: auto; }

/* breadcrumb */
.crumbs { font-size: 14px; color: var(--mute); margin: 20px 0 0; padding: 0; list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.crumbs a { color: var(--mute); }

/* footer */
footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 14px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; }
footer a { color: var(--mute); }

.cta { background: var(--ink); color: #e9edf2; border-bottom: 0; }
.cta h2 { color: #fff; }
.cta p { color: #c6cdd6; }
.cta .button { background: #fff; color: var(--ink); }
.cta .button:hover { background: #e9edf2; }
.cta a:not(.button) { color: #fff; }
.cta .status, .cta .status a { color: var(--ink); }

details { max-width: var(--measure); border-top: 1px solid var(--rule); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: 10px; }
.status { border-left: 3px solid var(--rule); padding: 4px 16px; max-width: var(--measure); background: var(--panel); margin: 24px 0; }
.status p:last-child { margin-bottom: 0; }
.status-headline { font-weight: 700; font-size: 24px; }
.status[data-state="ok"] { border-left-color: var(--ink); }
.status[data-state="bad"] { border-left-color: var(--cut); }
.status[data-state="bad"] .status-headline { color: var(--cut); }
