@font-face {
  font-family: "Spectral";
  src: url("/fonts/spectral-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/fonts/spectral-latin-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/fonts/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/fonts/spectral-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --mist: #e8edeb;
  --mist-deep: #dbe3e0;
  --ink: #0d1f1b;
  --ink-soft: #4a5c57;
  --jade: #0e5a4b;
  --jade-bright: #3fbf9f;
  --brass: #b9822a;
  --line: #bfcbc6;
  --paper: #f5f8f7;
  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 38rem;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--jade);
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 2px;
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.brand {
  font: 500 1.6rem/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1rem, 3vw, 2rem);
  font-size: 0.95rem;
}
.top nav a {
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
}
.top nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero h1 {
  margin: 0;
  max-width: 15ch;
  font: 300 clamp(2.6rem, 6.4vw, 4.6rem) / 1 var(--serif);
  letter-spacing: -0.025em;
}
.hero .lead {
  margin: 1.75rem 0 0;
  max-width: var(--measure);
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.hero .status {
  margin: 1.5rem 0 0;
  max-width: var(--measure);
  padding-left: 1rem;
  border-left: 2px solid var(--brass);
  font-size: 0.98rem;
}

/* the app window */
.win {
  background: var(--ink);
  color: #d8e4e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(13, 31, 27, 0.55);
  font-size: 0.9rem;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #1e3530;
  color: #8fa8a1;
  font-size: 0.82rem;
}
.dots {
  display: inline-flex;
  gap: 6px;
}
.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a443d;
}
.win-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.chat {
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: 15.5rem;
}
.you {
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  background: #16302a;
  border-radius: 8px;
  color: #eef5f2;
  min-height: 4.2em;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--brass);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #a8c0b9;
}
.steps li::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.7em;
  border-radius: 50%;
  background: var(--jade-bright);
}
.steps li:last-child {
  color: #eef5f2;
}
.preview {
  background: var(--paper);
  color: var(--ink);
  padding: 1.25rem;
  min-height: 15.5rem;
}
.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.preview-head small {
  font-weight: 400;
  color: var(--ink-soft);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 7.5rem;
  border-bottom: 1px solid var(--line);
}
.bars span {
  flex: 1;
  height: var(--h);
  background: var(--jade);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
}
.bars span:nth-child(5) {
  background: var(--brass);
}
.months {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.months span {
  flex: 1;
  text-align: center;
}
.caption {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* per-item values live here because the CSP forbids inline styles */
.bars span:nth-child(1) {
  --h: 38%;
  --n: 0;
}
.bars span:nth-child(2) {
  --h: 52%;
  --n: 1;
}
.bars span:nth-child(3) {
  --h: 46%;
  --n: 2;
}
.bars span:nth-child(4) {
  --h: 68%;
  --n: 3;
}
.bars span:nth-child(5) {
  --h: 92%;
  --n: 4;
}
.bars span:nth-child(6) {
  --h: 74%;
  --n: 5;
}
.steps li:nth-child(1) {
  --i: 0;
}
.steps li:nth-child(2) {
  --i: 1;
}
.steps li:nth-child(3) {
  --i: 2;
}
.steps li:nth-child(4) {
  --i: 3;
}

/* animation: only when JS opts in; the finished state is the default */
.win.anim .steps li,
.win.anim .preview {
  opacity: 0;
}
.win.anim.on .steps li {
  animation: reveal 0.45s ease forwards;
  animation-delay: calc(var(--i) * 0.75s);
}
.win.anim.on .preview {
  animation: reveal 0.6s ease forwards;
  animation-delay: 3.1s;
}
.win.anim .bars span {
  transform: scaleY(0);
}
.win.anim.on .bars span {
  animation: grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(3.5s + var(--n) * 0.09s);
}
.win.anim.done .caret {
  display: none;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes grow {
  to {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .win.anim .steps li,
  .win.anim .preview {
    opacity: 1;
  }
  .win.anim .bars span {
    transform: none;
  }
  .win.anim.on .steps li,
  .win.anim.on .preview,
  .win.anim.on .bars span {
    animation: none;
  }
}

/* sections */
section.block {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.block h2 {
  margin: 0;
  max-width: 22ch;
  font: 400 clamp(1.9rem, 4vw, 2.8rem) / 1.08 var(--serif);
  letter-spacing: -0.015em;
}
.block .intro {
  margin: 1rem 0 0;
  max-width: var(--measure);
  color: var(--ink-soft);
}

/* how it works: a real sequence */
.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.6rem;
}
.flow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.5rem;
}
.flow li::before {
  content: counter(step);
  font: 300 2rem/1 var(--serif);
  color: var(--jade);
}
.flow strong {
  display: block;
  font-weight: 600;
}
.flow span {
  color: var(--ink-soft);
}

/* what changed: before / after rows */
.changes {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.change {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.change:first-child {
  border-top: 0;
  padding-top: 0;
}
.change h3 {
  margin: 0;
  font: 500 1.35rem/1.2 var(--serif);
}
.change p {
  margin: 0;
  max-width: 34rem;
}
.change .was {
  color: var(--ink-soft);
}
.change .who {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.change .was .who {
  color: var(--ink-soft);
}
.change .now .who {
  color: var(--jade);
}

/* plugins demo */
.mcp {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
.tools {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.tool {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.tool code {
  font-family: var(--mono);
  font-size: 0.95rem;
}
.tool small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}
.seg button {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  font: 500 0.88rem/1.2 var(--sans);
  cursor: pointer;
}
.seg button:last-child {
  border-right: 0;
}
.seg button:hover {
  background: var(--mist-deep);
}
.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.seg button:focus-visible {
  outline-offset: -3px;
  outline-color: var(--brass);
}
.seen {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  align-self: start;
}
.seen h3 {
  margin: 0 0 0.2rem;
  font: 500 1.15rem/1.3 var(--serif);
}
.seen p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.seen ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  min-height: 5.5rem;
}
.seen li::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--jade);
}
.seen .none {
  font-family: var(--sans);
  color: var(--ink-soft);
}
.seen .none::before {
  display: none;
}

/* origin */
.origin p {
  max-width: var(--measure);
  margin: 1.2rem 0 0;
}
.origin p:first-of-type {
  margin-top: 1.6rem;
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
}

/* privacy page */
.doc {
  max-width: 42rem;
  padding-top: 1rem;
  padding-bottom: 4rem;
}
.doc h1 {
  margin: 1rem 0 0.5rem;
  font: 300 clamp(2.2rem, 5vw, 3.2rem) / 1.05 var(--serif);
  letter-spacing: -0.02em;
}
.doc h2 {
  margin: 2.2rem 0 0.4rem;
  font: 500 1.35rem/1.2 var(--serif);
}
.doc p,
.doc li {
  color: var(--ink-soft);
}
.doc ul {
  padding-left: 1.2rem;
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }
  .win-body {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }
  .hero .visual {
    margin-right: calc(var(--gutter) * -0.5);
  }
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
  }
  .change {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
  }
  .change:first-child {
    padding-top: 0;
  }
  .tool {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .mcp {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 3rem;
  }
}
