:root {
  --paper:      #fcfcfa;   /* base surface, warm white  */
  --paper-2:    #f1f2ec;   /* alternating section, cream */
  --surface:    #ffffff;
  --ink:        #131313;
  --ink-2:      #5c5f59;
  --ink-3:      #8e918a;
  --hair:       rgba(19, 19, 19, .10);
  --hair-soft:  rgba(19, 19, 19, .06);
  --green:      #0c8c5e;   /* the one signal colour: evidence that answers */
  --green-wash: rgba(12, 140, 94, .10);

  --radius:     18px;
  --radius-lg:  24px;

  --wrap:       1180px;
  --wrap-wide:  1320px;
  --gutter:     clamp(20px, 5vw, 44px);
  --pad:        clamp(88px, 11vw, 136px);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Inter, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.06; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--wrap-wide); }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px; font-weight: 560;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* -- type ---------------------------------------------------- */
.display {
  font-size: clamp(42px, 6.6vw, 84px);
  letter-spacing: -.035em;
  line-height: 1.03;
}
h2 {
  font-size: clamp(32px, 4.3vw, 54px);
  letter-spacing: -.03em;
  line-height: 1.06;
}
h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.35; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}

.lede {
  color: var(--ink-2);
  font-size: clamp(17.5px, 1.5vw, 21px);
  line-height: 1.55;
  letter-spacing: -.016em;
  max-width: 60ch;
  text-wrap: pretty;
}
.lede--center { margin-inline: auto; text-align: center; max-width: 54ch; }

/* -- buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 560;
  letter-spacing: -.012em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
}
.btn:hover { background: #2e2e2e; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair);
}
.btn--quiet:hover { background: rgba(19, 19, 19, .04); border-color: rgba(19, 19, 19, .18); }

.btn--sm { padding: 9px 18px; font-size: 14.5px; }

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

/* -- reveal -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Stagger, replacing inline custom properties so the CSP stays strict. */
.d1 { --d: 70ms; }
.d2 { --d: 140ms; }
.d3 { --d: 210ms; }
.d4 { --d: 280ms; }
.d5 { --d: 350ms; }
.d6 { --d: 420ms; }

/* -- nav ----------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck {
  background: rgba(252, 252, 250, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--hair-soft);
}
.nav__inner { display: flex; align-items: center; gap: 30px; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.028em;
}
.brand__mark { width: 25px; height: 25px; flex: none; }
.brand__mark line { stroke: rgba(19, 19, 19, .22); stroke-width: 1.5; stroke-linecap: round; }
.brand__mark circle { fill: rgba(19, 19, 19, .38); }
.brand__mark .mark--lead { fill: var(--ink); }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14.5px;
  letter-spacing: -.01em;
  color: var(--ink-2);
}
.nav__links a { transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* -- hero ---------------------------------------------------- */
.hero {
  padding: clamp(128px, 15vw, 172px) 0 clamp(72px, 8vw, 104px);
  text-align: center;
}
.hero .eyebrow { margin-bottom: 26px; }
.display { margin-bottom: 28px; }
.display br { display: none; }
@media (min-width: 880px) { .display br { display: inline; } }
.hero .actions { margin-top: 40px; }

/* product visual, framed the way a screenshot would be */
.showcase { margin: clamp(56px, 7vw, 84px) 0 0; }
.showcase__frame {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(19, 19, 19, .04),
    0 24px 48px -32px rgba(19, 19, 19, .28),
    0 60px 120px -60px rgba(19, 19, 19, .22);
  text-align: left;
}
.showcase__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--hair-soft);
  background: rgba(252, 252, 250, .7);
}
.showcase__dots { display: inline-flex; gap: 6px; }
.showcase__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(19, 19, 19, .12);
}
.showcase__title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
}

.showcase__cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--ink-3);
  text-align: center;
}
.live {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-wash);
  animation: live 2.8s ease-out infinite;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(12, 140, 94, .28); }
  70%  { box-shadow: 0 0 0 9px rgba(12, 140, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 140, 94, 0); }
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(28px, 5vw, 60px);
  list-style: none;
  margin: clamp(56px, 7vw, 82px) 0 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* -- code ---------------------------------------------------- */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--hair-soft);
}
@media (max-width: 820px) { .pair { grid-template-columns: 1fr; } }

.code { background: var(--surface); min-width: 0; }
.code__label {
  display: block;
  padding: 14px 20px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.code pre {
  margin: 0;
  padding: 12px 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--ink-2);
  tab-size: 2;
}
.code pre b { color: var(--ink); font-weight: 500; }
.code pre i { color: var(--ink-3); font-style: normal; }

/* -- sections ------------------------------------------------ */
.section { padding: var(--pad) 0; }
.section--paper {
  background: var(--paper-2);
  border-block: 1px solid var(--hair-soft);
}

.head { max-width: 68ch; margin: 0 auto clamp(52px, 6vw, 76px); text-align: center; }
.head h2 { margin-bottom: 24px; }
.head h2 br { display: none; }
@media (min-width: 760px) { .head h2 br { display: inline; } }
.head .lede { margin-inline: auto; max-width: 58ch; }
.head--left { text-align: left; margin-inline: 0; }
.head--left .lede { margin-inline: 0; }

/* -- cards --------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(19, 19, 19, .3);
}
.card__num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 12px; }
.card p:last-child { color: var(--ink-2); font-size: 15.5px; line-height: 1.58; }

/* -- split --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }

.specs { margin: 0; display: grid; }
.spec { padding: 24px 0; border-top: 1px solid var(--hair); }
.spec:last-child { border-bottom: 1px solid var(--hair); }
.spec dt { font-size: 17px; font-weight: 600; letter-spacing: -.022em; margin-bottom: 8px; }
.spec dd { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.58; max-width: 52ch; }

.panel {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  box-shadow: 0 24px 56px -40px rgba(19, 19, 19, .32);
}
@media (max-width: 940px) { .panel { position: static; } }

.panel__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.panel__title { font-size: 23px; letter-spacing: -.026em; margin-bottom: 14px; }
.panel__body { color: var(--ink-2); font-size: 15.5px; line-height: 1.58; }

.fork { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--hair-soft); }
.fork__row { display: flex; align-items: center; gap: 13px; }
.fork__text { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.fork__text em { font-style: normal; color: var(--ink); }
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
  background: rgba(19, 19, 19, .34);
}
.dot--new { background: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }
.fork__arm {
  display: block;
  width: 1px; height: 26px;
  margin: 5px 0 5px 4px;
  background: linear-gradient(to bottom, rgba(19, 19, 19, .22), var(--green));
}
.fork__note { margin-top: 20px; font-size: 14px; line-height: 1.55; color: var(--ink-3); }

/* -- steps --------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--hair);
}
.step { position: relative; padding: 32px 26px 36px 0; border-right: 1px solid var(--hair-soft); }
.step:last-child { border-right: 0; }
@media (min-width: 760px) { .step { padding-left: 26px; } .step:first-child { padding-left: 0; } }
@media (max-width: 759px) {
  .step { border-right: 0; border-bottom: 1px solid var(--hair-soft); padding-right: 0; }
}
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 32px; height: 2px;
  background: var(--ink);
}
.step__num {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 11px; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.58; }

.pull {
  margin: clamp(64px, 8vw, 100px) auto 0;
  max-width: 24ch;
  text-align: center;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* -- stats --------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 34px 28px;
}
.stat__value {
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.stat__label { color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 28ch; }

.source { margin-top: 28px; font-size: 13.5px; color: var(--ink-3); }
.source a { color: var(--ink-2); border-bottom: 1px solid var(--hair); transition: color .2s var(--ease); }
.source a:hover { color: var(--ink); }

/* -- cta ----------------------------------------------------- */
.section--cta { text-align: center; }
.cta { display: grid; justify-items: center; }
.cta h2 { margin-bottom: 22px; }
.cta .actions { margin-top: 40px; }
.cta__alt { margin-top: 28px; font-size: 15px; color: var(--ink-3); }
.mail { color: var(--ink-2); border-bottom: 1px solid var(--hair); transition: color .2s var(--ease); }
.mail:hover { color: var(--ink); }

/* -- interior pages: docs, crawler, legal -------------------- */
.page { padding: clamp(112px, 13vw, 152px) 0 var(--pad); }
.page__head { max-width: 64ch; }
.page__head h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -.032em;
  margin-bottom: 22px;
}

.doc { max-width: 76ch; margin-top: clamp(44px, 5.5vw, 64px); }
.doc > * + * { margin-top: 18px; }
.doc h2 {
  font-size: clamp(23px, 2.6vw, 29px);
  letter-spacing: -.026em;
  margin-top: clamp(40px, 4.6vw, 56px);
}
.doc h3 { margin-top: 30px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.62; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink-2); border-bottom: 1px solid var(--hair); }
.doc a:hover { color: var(--ink); }
.doc code {
  font-family: var(--mono);
  font-size: 13.5px;
  background: var(--paper-2);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--ink);
}
.doc .code { margin-top: 22px; border: 1px solid var(--hair); border-radius: var(--radius); }
.doc .code pre { padding-top: 18px; }

.note {
  background: var(--paper-2);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.note p { margin: 0; }
.note p + p { margin-top: 12px; }
.section--paper .note { background: var(--surface); }

.table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.table th, .table td {
  text-align: left;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--hair-soft);
  vertical-align: top;
}
.table th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--hair);
}
.table td { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.table td:first-child { color: var(--ink); white-space: nowrap; }
.table code { background: none; padding: 0; font-size: 13px; }
@media (max-width: 620px) {
  .table td:first-child { white-space: normal; }
}

/* -- footer -------------------------------------------------- */
.footer { border-top: 1px solid var(--hair-soft); padding: 36px 0; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--ink-3);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--ink); }
.footer .brand { font-size: 16px; }
.footer .brand__mark { width: 22px; height: 22px; }
.footer__copy { margin-left: auto; }
@media (max-width: 620px) { .footer__copy { margin-left: 0; } }

/* -- reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
