@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");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #16181d;
  --ink-soft: #2c3038;
  --body: #3a404c;
  --muted: #5a6170;
  --line: #e2e5ea;
  --line-strong: #d5d9e0;
  --control-line: #8a909c;
  --canvas: #eef0f3;
  --surface: #fbfbfc;
  --white: #fff;
  --focus: #2f55c8;
  --link-hover: #1f3f9e;
  --live: #00795a;
  --term: #0f1114;
  --term-line: #2a2e36;
  --term-text: #e6e8ec;
  --term-muted: #a3a9b5;
  --change: #c04a00;
  --add: #e69f00;
  --remove: #a8457e;
  --question: #0072b2;
  --font: geist, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --dots: radial-gradient(rgb(22 24 29 / 9%) 1px, transparent 1px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

html:has(dialog[open]) {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--focus);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.sprite {
  position: absolute;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1100;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.icon {
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-fill {
  fill: currentcolor;
  stroke: none;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.brand {
  display: block;
  max-width: 100%;
}

.brand img {
  display: block;
  width: 280px;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nl {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--body);
  font-size: 14px;
  text-decoration: none;
}

.nl:hover {
  background: var(--canvas);
  color: var(--ink);
}

.nl-outline {
  gap: 8px;
  border: 1px solid var(--line-strong);
}

/* Buttons */
.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.cta {
  padding: 0 20px;
  background: var(--ink);
  color: var(--white);
}

.cta:hover {
  background: var(--ink-soft);
  color: var(--white);
}

.ghost {
  padding: 0 18px;
  border: 1px solid var(--control-line);
  background: var(--white);
  color: var(--ink);
}

.ghost:hover {
  background: #f3f4f6;
  color: var(--ink);
}

/* Hero */
.hero {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--canvas);
  background-image: var(--dots);
  background-size: 20px 20px;
}

.hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 0;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.pulse {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

h1 {
  max-width: 900px;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.install-cmd,
.term {
  font-family: var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.install-cmd {
  width: fit-content;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--term-text);
  font-size: 14px;
  text-align: left;
}

.install-cmd .line {
  display: block;
}

.prompt {
  color: var(--control-line);
}

.hero-shot {
  width: 100%;
  max-width: 1040px;
  margin-top: 24px;
  padding: 10px 10px 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--white);
  box-shadow: 0 24px 64px rgb(22 24 29 / 14%);
}

.hero-shot .shot {
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}

/* Screenshots and lightbox trigger */
.shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgb(22 24 29 / 5%), 0 18px 48px rgb(22 24 29 / 10%);
}

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

.zoom:focus-visible {
  outline-offset: 3px;
}

/* Sections */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 24px;
}

.section-first,
.section-modes,
.section-install {
  padding-top: 88px;
}

.section h2,
.closing h2 {
  max-width: 640px;
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 680px;
  margin-bottom: 40px;
  color: var(--body);
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-steps {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid-notes {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.grid-modes {
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 28px;
}

.grid-install {
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

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

.step h3 {
  font-size: 19px;
  font-weight: 600;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}

/* Marks: a note takes the next of four colours by its number, never by what it asks for. */
.mark-1 {
  --i: var(--change);
  --i-text: var(--ink);
  --i-on: var(--white);
}

.mark-2 {
  --i: var(--add);
  --i-text: var(--ink);
  --i-on: var(--ink);
}

.mark-3 {
  --i: var(--question);
  --i-text: var(--ink);
  --i-on: var(--white);
}

.mark-4 {
  --i: var(--remove);
  --i-text: var(--ink);
  --i-on: var(--white);
}

.badge {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--i);
  color: var(--i-on);
  font-size: 14px;
  font-weight: 600;
}

.badge-sm {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--i-text);
  font-weight: 600;
}

.label-sm {
  gap: 4px;
  font-size: 12.5px;
  font-weight: 500;
}

.kind {
  padding: 20px;
}

.kind p {
  font-size: 15px;
}

.kind kbd {
  font-family: var(--mono, monospace);
  font-size: 13px;
}

.dots {
  display: inline-flex;
}

.dots span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--i);
  box-shadow: 0 0 0 2px var(--white);
}

.dots span + span {
  margin-left: -6px;
}

.kind-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Modes */
.mode {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.mode h3 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 600;
}

.mode p {
  color: var(--body);
}

/* The one card without a partner spans the row, its text beside the shot when there is room. */
.mode-wide {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
}

/* Demo */
.demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background-color: var(--canvas);
  background-image: var(--dots);
  background-size: 20px 20px;
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}

.demo-canvas {
  flex: 1 1 440px;
  min-width: 0;
}

.demo-doc {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.demo-doc text {
  font-family: var(--font);
}

.demo-panel {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 340px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.demo-panel-title {
  font-size: 14px;
  font-weight: 600;
}

.note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.note-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-kind {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.note-text {
  font-size: 14px;
  line-height: 1.45;
}

.term {
  background: var(--term);
  color: var(--term-text);
}

.demo-out {
  padding: 16px 20px;
  border: 1px solid var(--term-line);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.8;
}

.out-line {
  display: block;
}

.out-muted {
  color: var(--term-muted);
}

.out-head {
  color: var(--white);
}

.d-mark {
  transform-box: fill-box;
  transform-origin: center;
}

.d-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.d-cursor {
  transform: translate(486px, 282px);
  opacity: 0;
}

/* Output */
.output {
  margin-top: 72px;
  background: var(--ink);
  color: #f4f5f7;
}

.output-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

.output-copy {
  flex: 1 1 380px;
  min-width: 0;
}

.output-copy h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.output-copy p {
  color: #c9ced8;
  font-size: 17px;
}

.output-copy p + p {
  margin-top: 16px;
}

.output-window {
  flex: 1 1 460px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--term-line);
  border-radius: 14px;
  background: var(--term);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid #22262d;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3e47;
}

.window-title {
  margin-left: 8px;
  color: var(--term-muted);
  font-size: 12px;
}

.output-pre {
  margin: 0;
  padding: 20px;
  font-size: 13px;
  line-height: 1.75;
}

/* Install */
.install-card {
  gap: 12px;
  padding: 22px;
}

.install-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.install-card p {
  font-size: 15px;
}

.install-card-main {
  border-color: var(--ink);
}

.more {
  margin-top: auto;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* Closing */
.closing {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.closing-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}

.closing-copy {
  flex: 1 1 360px;
  min-width: 0;
}

.closing h2 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.closing p {
  color: var(--body);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 64px 24px 32px;
  overflow: auto;
  border: 0;
  background: rgb(15 17 20 / 88%);
  cursor: zoom-out;
}

.lightbox:not([open]) {
  display: none;
}

.lb-img {
  display: block;
  width: min(1440px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgb(0 0 0 / 50%);
}

.lb-x {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  background: rgb(15 17 20 / 70%);
  color: var(--white);
  cursor: pointer;
}

.lb-x:focus-visible {
  outline-color: var(--white);
}

/* Motion: everything animated lives here, the static state is the final state */
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .hero-in > :nth-child(1) {
    animation-delay: 0.05s;
  }

  .hero-in > :nth-child(2) {
    animation-delay: 0.15s;
  }

  .hero-in > :nth-child(3) {
    animation-delay: 0.28s;
  }

  .hero-in > :nth-child(4) {
    animation-delay: 0.4s;
  }

  .hero-in > :nth-child(5) {
    animation-delay: 0.5s;
  }

  .hero-in > :nth-child(6) {
    animation-delay: 0.65s;
    animation-duration: 1s;
  }

  .hero {
    animation: drift 60s linear infinite;
  }

  .pulse {
    animation: pulse 2.4s ease-out infinite;
  }

  .lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgb(22 24 29 / 10%);
  }

  .kind:hover .num {
    animation: bump 0.45s ease;
  }

  .shot {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  .mode:hover .shot {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 4px 8px rgb(22 24 29 / 6%), 0 28px 64px rgb(22 24 29 / 16%);
  }

  .cta,
  .ghost {
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .cta:hover,
  .ghost:hover {
    transform: translateY(-1px);
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }

  .lightbox[open] {
    animation: lb-in 0.2s ease-out;
  }

  .d-box {
    animation: d-draw1 12s ease-in-out infinite;
  }

  .d-arrow {
    animation: d-draw2 12s ease-in-out infinite;
  }

  .d-pin1 {
    animation: d-pop1 12s ease-out infinite;
  }

  .d-pin2 {
    animation: d-pop2 12s ease-out infinite;
  }

  .d-card1 {
    animation: d-slide1 12s ease-out infinite;
  }

  .d-card2 {
    animation: d-slide2 12s ease-out infinite;
  }

  .d-out0 {
    animation: d-line0 12s ease-out infinite;
  }

  .d-out1 {
    animation: d-line1 12s ease-out infinite;
  }

  .d-out2 {
    animation: d-line2 12s ease-out infinite;
  }

  .d-cursor {
    animation: d-cursor 12s ease-in-out infinite;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  to {
    background-position: 20px 20px;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(0 121 90 / 45%);
  }

  70%,
  100% {
    box-shadow: 0 0 0 9px rgb(0 121 90 / 0%);
  }
}

@keyframes bump {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes lb-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes d-draw1 {
  0%,
  6% {
    stroke-dashoffset: 1;
    opacity: 1;
  }

  20% {
    stroke-dashoffset: 0;
  }

  92% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  97%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes d-draw2 {
  0%,
  34% {
    stroke-dashoffset: 1;
    opacity: 1;
  }

  46% {
    stroke-dashoffset: 0;
  }

  92% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  97%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes d-pop1 {
  0%,
  19% {
    opacity: 0;
    transform: scale(0);
  }

  24% {
    opacity: 1;
    transform: scale(1.25);
  }

  27%,
  92% {
    opacity: 1;
    transform: scale(1);
  }

  97%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes d-pop2 {
  0%,
  45% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }

  53%,
  92% {
    opacity: 1;
    transform: scale(1);
  }

  97%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes d-slide1 {
  0%,
  22% {
    opacity: 0;
    transform: translateX(28px);
  }

  29%,
  92% {
    opacity: 1;
    transform: none;
  }

  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes d-slide2 {
  0%,
  48% {
    opacity: 0;
    transform: translateX(28px);
  }

  55%,
  92% {
    opacity: 1;
    transform: none;
  }

  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes d-line0 {
  0%,
  56% {
    opacity: 0;
    transform: translateY(6px);
  }

  60%,
  92% {
    opacity: 1;
    transform: none;
  }

  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes d-line1 {
  0%,
  62% {
    opacity: 0;
    transform: translateY(6px);
  }

  66%,
  92% {
    opacity: 1;
    transform: none;
  }

  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes d-line2 {
  0%,
  68% {
    opacity: 0;
    transform: translateY(6px);
  }

  72%,
  92% {
    opacity: 1;
    transform: none;
  }

  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes d-cursor {
  0% {
    transform: translate(470px, 140px);
    opacity: 0;
  }

  3% {
    transform: translate(470px, 140px);
    opacity: 1;
  }

  8% {
    transform: translate(178px, 84px);
  }

  18%,
  26% {
    transform: translate(342px, 218px);
  }

  34% {
    transform: translate(470px, 205px);
  }

  44%,
  50% {
    transform: translate(318px, 248px);
  }

  58% {
    transform: translate(486px, 282px);
    opacity: 1;
  }

  64%,
  100% {
    transform: translate(486px, 282px);
    opacity: 0;
  }
}
