/*
 * Garden landing page. Quiet gray type and product windows, set against
 * vivid flowers. The flower images are named once here so they can be swapped.
 */
:root {
  --flora-hero: url('assets/flora-hero.jpg');
  --flora-sweetpeas: url('assets/flora-sweetpeas.jpg');
  --flora-tulip: url('assets/flora-tulip.jpg');
  --flora-panorama: url('assets/flora-panorama.jpg');

  --page: #f5f5f5;
  --stage: #e7ebf1;
  --ink: rgb(0 0 0 / 0.85);
  --ink-2: rgb(0 0 0 / 0.6);
  --ink-3: rgb(0 0 0 / 0.5);
  --ink-4: rgb(0 0 0 / 0.35);
  --tint: rgb(0 0 0 / 0.04);
  --line: rgb(0 0 0 / 0.1);
  --white: #fff;
  --blue: #1550d6;
  --brand: #5b9cf5;
  --green: #3fae4a;
  --amber: #d99a1c;
  --red: #d8452b;

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: Newsreader, Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: 48px;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--page);
  color: var(--ink);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Navigation: a floating pill ---------- */
.nav {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 4px 4px 4px 14px;
  border-radius: 8px;
  background: rgb(235 235 235 / 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  font-size: 12px;
  color: var(--ink-2);
}
.wordmark {
  margin-right: 14px;
  font: 400 19px/1 var(--serif);
  letter-spacing: -0.035em;
  color: var(--ink);
}
.nav-pill a.link {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 7px;
  border-radius: 6px;
}
.nav-pill a.link:hover {
  color: var(--ink);
  background: var(--tint);
}
.nav-rule {
  width: 1px;
  height: 16px;
  margin: 0 8px;
  background: rgb(0 0 0 / 0.12);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  background: var(--tint);
  color: var(--ink);
}
.btn:hover {
  background: rgb(0 0 0 / 0.07);
}
.btn.dark {
  background: #0b0b0b;
  color: #fff;
}
.btn.dark:hover {
  background: #2a2a2a;
}
.btn.sm {
  height: 28px;
}
.btn.on-image {
  background: rgb(255 255 255 / 0.18);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn.on-image:hover {
  background: rgb(255 255 255 / 0.28);
}
.btn.light {
  background: #fff;
  color: #0b0b0b;
}

/* ---------- Type ---------- */
.display {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.lede {
  color: var(--ink-3);
}
.title {
  font-size: 17px;
  line-height: 1.5;
}

/* ---------- Flower panels ---------- */
.flora {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #2f74c9 var(--art) var(--art-at, center bottom) / cover no-repeat;
}
.art-hero {
  --art: var(--flora-hero);
}
.art-sweetpeas {
  --art: var(--flora-sweetpeas);
  --art-at: right top;
}
.art-tulip {
  --art: var(--flora-tulip);
}
.art-panorama {
  --art: var(--flora-panorama);
  --art-at: right bottom;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  min-height: 100svh;
  padding: 100px 16px 16px var(--gutter);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-copy h1 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.hero-copy .lede {
  max-width: 400px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}
.points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 12px 0 4px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.points li {
  position: relative;
  padding-left: 22px;
}
.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.4 7.2 1.8 1.8 3.4-3.8'/%3E%3C/svg%3E");
}
.points b {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}
.hero-copy .actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.c-openai {
  color: #0d0d0d;
}
.hero-stage {
  align-self: stretch;
  min-height: 620px;
  padding: 48px 48px 190px;
}
.hero-stage .window {
  /* Sized by the stage, never by its rows, so an arriving row cannot move the page. */
  height: 0;
  min-height: 100%;
}
/* ---------- Works with ---------- */
.sources {
  padding: 120px var(--gutter);
  text-align: center;
}
.sources p {
  font-size: 12px;
  color: var(--ink-3);
}
.sources ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 48px 24px;
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
.sources li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
.sources .logo {
  width: 20px;
  height: 20px;
}
.sources .more {
  margin-top: 48px;
}

/* ---------- Thesis: a statement, then the contrast it describes ---------- */
.thesis {
  padding: 0 var(--gutter);
}
.thesis-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}
.thesis-copy h2 {
  max-width: 560px;
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.contrast {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 48px;
  font-size: 13px;
  line-height: 1.38;
  user-select: none;
  --art-at: right top;
}
.contrast .side {
  flex: 0 1 348px;
  min-width: 0;
}
.contrast .side > p {
  margin-bottom: 12px;
  color: #fff;
}
.contrast .w-card {
  background: #fcfcfc;
  box-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.14),
    0 20px 48px rgb(0 20 80 / 0.24);
  border-radius: 10px;
}
.contrast .w-row {
  padding: 9px 14px;
}
.contrast .w-row.lead {
  padding: 14px;
}
.contrast .w-row.off b {
  font-weight: 425;
  color: var(--ink-3);
}
.contrast .w-row.off .tile {
  opacity: 0.45;
}
.chip.none {
  color: var(--ink-4);
}

/* ---------- Capabilities: a statement, tabs, one product window at a time ---------- */
.caps {
  padding: 0 var(--gutter);
}
.statement {
  max-width: 1080px;
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.statement span {
  color: var(--ink-3);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  margin: 56px 0 28px;
}
.tabs button {
  position: relative;
  padding: 0 0 10px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  cursor: pointer;
}
.tabs button:hover {
  color: var(--ink-2);
}
.tabs button[aria-selected='true'] {
  color: var(--ink);
}
.tabs button[aria-selected='true']::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1.5px;
  background: var(--ink);
}
.caps:not(.tabbed) .tabs {
  display: none;
}
.panels .use.panel {
  margin-top: 0;
  padding: 0;
}
.caps:not(.tabbed) .panels .use.panel + .use.panel {
  margin-top: 96px;
}
.panel[hidden] {
  display: none;
}
.motion .tabbed .panel .use-copy,
.motion .tabbed .panel .use-stage {
  opacity: 0;
}
.motion .tabbed .panel.in .use-copy,
.motion .tabbed .panel.in .use-stage {
  opacity: 1;
  animation: rise 0.35s ease-out both;
}
.motion .tabbed .panel.in .use-stage {
  animation-delay: 0.06s;
}

/* ---------- Sub-pages: statement hero, sections of facts, questions ---------- */
.nav-pill a.link[aria-current='page'] {
  color: var(--ink);
}
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 168px var(--gutter) 0;
}
.page-hero .lede {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}
.page-hero .actions {
  display: flex;
  gap: 8px;
}
.page-stage {
  align-self: stretch;
  height: 720px;
  margin-top: 44px;
  padding: 56px 56px 0;
}
.page-stage .window {
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 10px 10px 0 0;
}
.page-band {
  align-self: stretch;
  height: 360px;
  margin-top: 44px;
}
.sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px;
  padding: 120px var(--gutter) 0;
}
.sec dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 32px;
  margin: 6px 0 0;
}
.sec dt {
  color: var(--ink);
}
.sec dd {
  max-width: 340px;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 880px;
  padding: 0 var(--gutter);
}
.faq details {
  border-radius: 6px;
  background: var(--tint);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-opacity='.5' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M7 2.5v9M2.5 7h9'/%3E%3C/svg%3E");
  transition: transform 0.2s ease-out;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  max-width: 640px;
  padding: 0 20px 18px;
  color: var(--ink-2);
}

/* ---------- Section heads ---------- */
.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 120px var(--gutter) 72px;
}

/* ---------- Use rows ---------- */
.use {
  display: grid;
  grid-template-columns: 340px minmax(0, 880px);
  justify-content: space-between;
  gap: 48px;
  padding: 0 var(--gutter) 16px;
}
.use + .use,
.thesis + .use {
  margin-top: 96px;
}
.use-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 4px 0 8px;
}
.use-copy .title + p {
  margin-top: 4px;
}
.use-copy .fact {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.use-copy .fact b {
  display: block;
  font-weight: 400;
  color: var(--ink);
}
.use-stage {
  overflow: hidden;
  height: 640px;
  padding: 48px 48px 0;
  border-radius: 6px;
  background: var(--stage);
}
.use.flip {
  grid-template-columns: minmax(0, 880px) 340px;
}
.use.flip .use-copy {
  order: 2;
}
.use.wide {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.use.wide .use-copy {
  flex-direction: row;
  align-items: flex-end;
}
.use.wide .use-copy > div {
  max-width: 340px;
}
.use.wide .fact {
  max-width: 300px;
}
.use.wide .window {
  max-width: 1040px;
  margin: 0 auto;
}
.use-stage .window {
  height: 100%;
  border-radius: 10px 10px 0 0;
  box-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.1),
    0 16px 48px rgb(30 50 90 / 0.12);
}

/* ---------- Connect, Discover and Automate windows ---------- */
.w-pad.list {
  padding: 8px 20px 0;
}
.window.plain.split {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.w-inspect {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #f9f9f9;
  box-shadow: inset 0.5px 0 0 rgb(0 0 0 / 0.12);
}
.w-inspect h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}
.w-inspect .obs {
  color: rgb(0 0 0 / 0.75);
}
.window h5 {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}
.w-inspect .w-row {
  padding: 9px 12px;
}
.w-row > .touch {
  flex: none;
  justify-content: flex-end;
  width: 56px;
  margin-right: 4px;
}
.freq {
  width: 84px;
  text-align: right;
}
.window.split .state {
  width: 136px;
  margin-left: 12px;
}
.w-pad.prop {
  gap: 18px;
  padding: 12px 28px 28px;
}
.w-pad.prop h5 {
  margin: 0 0 6px;
}
.w-pad.prop .said {
  max-width: none;
}
.decide {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.thesis-copy.sub {
  align-items: start;
  margin-bottom: 32px;
}
.thesis + .head {
  padding-top: 120px;
}
.on-lilac {
  background: #c9b8e6 url('assets/canvases/lilac.webp') center / cover;
}

/* ---------- People ---------- */
.person {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #d5e4fb;
}
.chip .mark {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  background-size: cover;
}

/* ---------- Security ---------- */
.security {
  padding: 0 var(--gutter);
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.facts dt {
  color: var(--ink);
}
.facts dd {
  max-width: 300px;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---------- MCP setup card ---------- */
.use-stage.fit {
  height: auto;
  padding-bottom: 48px;
}
.use-stage.fit .window {
  height: auto;
  border-radius: 10px;
}
.kv {
  display: flex;
  flex-direction: column;
  margin: 4px 20px 0;
  border-radius: 8px;
  background: #fdfdfd;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.12);
}
.kv div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 8px 16px;
}
.kv div + div {
  box-shadow: inset 0 0.5px 0 rgb(0 0 0 / 0.12);
}
.kv span {
  flex: none;
  width: 88px;
  color: var(--ink-3);
}
.kv code {
  min-width: 0;
  font: 400 12px var(--mono);
  overflow-wrap: anywhere;
}
.kv em {
  font-style: normal;
  color: var(--ink-3);
}
.w-main > p.said.answered {
  margin: 20px 28px 0;
}
.kv-note {
  margin: 12px 26px 20px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- Get started: two tall cards ---------- */
.starts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 var(--gutter);
}
.start {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 560px;
  padding: 32px;
  border-radius: 6px;
  color: #fff;
}
/* The second card is black, lifted by two soft lights so it is not a flat block. */
.start.soft {
  background:
    radial-gradient(90% 80% at 88% 0%, rgb(84 92 112 / 0.5) 0%, transparent 62%),
    radial-gradient(80% 70% at 0% 100%, rgb(52 56 70 / 0.55) 0%, transparent 60%), #08080a;
}
.start h3 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.start p {
  max-width: 420px;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.72);
}
.start.flora p {
  color: rgb(255 255 255 / 0.86);
}
.go {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  align-self: flex-start;
  gap: 40px;
  width: 200px;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  background: #f5f5f5;
  font-size: 13px;
  color: #0b0b0b;
}
.go:hover {
  background: #fff;
}
.go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease-out;
}
.go:hover svg {
  transform: translateX(3px);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px var(--gutter) 40px;
  font-size: 12px;
  color: var(--ink-3);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer a:hover {
  color: var(--ink);
}

/* ---------- Product window ---------- */
.window {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 10px;
  background: #fcfcfc;
  box-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.14),
    0 24px 60px rgb(0 20 80 / 0.28);
  font-size: 13px;
  line-height: 1.38;
  color: var(--ink);
  user-select: none;
}
.window.plain {
  grid-template-columns: minmax(0, 1fr);
}
.w-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 8px;
  background: #f7f7f7;
  box-shadow: inset -0.5px 0 0 rgb(0 0 0 / 0.12);
}
.w-side header {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 6px;
  color: rgb(0 0 0 / 0.75);
}
.w-side header i,
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font: 500 9px/1 var(--sans);
  font-style: normal;
}
.w-side small {
  display: block;
  padding: 0 10px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.w-side a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-bottom: 1px;
  padding: 0 8px;
  border-radius: 6px;
  color: rgb(0 0 0 / 0.75);
}
.w-side a.on {
  background: var(--tint);
  color: var(--ink);
}
.w-side a svg {
  flex: none;
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Logos and agent marks */
.logo {
  flex: none;
  width: 16px;
  height: 16px;
}
.logo.sm {
  width: 13px;
  height: 13px;
}
.c-github,
.c-vercel {
  color: #181717;
}
.c-slack {
  color: #4a154b;
}
.c-linear {
  color: #5e6ad2;
}
.c-sentry {
  color: #362d59;
}
.c-postgresql {
  color: #4169e1;
}
.c-intercom {
  color: #286efa;
}
.c-claude {
  color: #d97757;
}
.c-shopify {
  color: #5e8e3e;
}
.c-quickbooks {
  color: #2ca01c;
}
.agent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.agent.lg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.agent .logo {
  width: 13px;
  height: 13px;
}
.agent.lg .logo {
  width: 18px;
  height: 18px;
}
.agent {
  overflow: hidden;
}
.agent img {
  width: 100%;
  height: 100%;
  flex: none;
}
.on-cobalt {
  background: #1d46c8 url('assets/canvases/cobalt.webp') center / cover;
}
.on-sky {
  background: #7fb2e0 url('assets/canvases/sky.webp') center / cover;
}
.on-butter {
  background: #e6d98a url('assets/canvases/butter.webp') center / cover;
}
.a-white {
  background: #fff;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.14);
}
.touch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
  vertical-align: -2px;
}
.touch .logo {
  width: 12px;
  height: 12px;
}
.sw {
  position: relative;
  flex: none;
  width: 26px;
  height: 16px;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.12);
}
.sw::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.sw.on {
  background: var(--brand);
}
.sw.on::after {
  left: 12px;
}
.col {
  display: inline-flex;
  justify-content: center;
  flex: none;
  width: 48px;
}
.col.wide {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 96px;
  padding-right: 11px;
}
.g-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 12px 6px;
}
.g-head > div {
  flex: 1;
  min-width: 0;
}
.g-head h4,
.g-head p {
  margin: 0 !important;
}
.g-head .cols {
  align-self: flex-end;
  display: flex;
  font-size: 12px;
  color: var(--ink-3);
}
.spans {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 0 0 6px;
}
.span .logo {
  margin-right: -2px;
}
.w-pad.chat {
  gap: 20px;
  padding-top: 12px;
}
.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 44px;
  margin: auto 28px 24px;
  padding: 0 8px 0 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    inset 0 0 0 0.5px rgb(0 0 0 / 0.14),
    0 2px 8px rgb(0 0 0 / 0.04);
  color: var(--ink-4);
}
.composer i {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23000' stroke-opacity='.45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 19V9.5M10 13l4-4 4 4'/%3E%3C/svg%3E");
}
.chip.soft {
  background: var(--tint);
  color: rgb(0 0 0 / 0.75);
}
.chip.dark {
  background: #0b0b0b;
  color: #fff;
}
.w-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.w-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  flex: none;
  padding: 0 14px 0 20px;
}
.w-bar b {
  flex: none;
  font-weight: 500;
  white-space: nowrap;
}
.window.plain .w-bar b {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-bar .grow {
  flex: 1;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}
.chip.on {
  background: var(--tint);
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.12);
  color: var(--ink);
}
.chip.raised {
  background: #fff;
  box-shadow:
    inset 0 0 0 0.5px rgb(0 0 0 / 0.12),
    0 1px 3px rgb(0 0 0 / 0.04);
  color: var(--ink);
}
.chip.line {
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.12);
  color: var(--ink);
}
.chip.write {
  background: rgb(217 154 28 / 0.16);
  color: var(--ink);
}
.w-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 41px;
  flex: none;
  padding: 0 14px 0 20px;
  box-shadow:
    inset 0 0.5px 0 rgb(0 0 0 / 0.12),
    inset 0 -0.5px 0 rgb(0 0 0 / 0.12);
}
.w-group {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  flex: none;
  padding: 0 20px;
  background: #f7f7f7;
  box-shadow: inset 0 -0.5px 0 rgb(0 0 0 / 0.12);
  font-weight: 500;
}
.w-group span {
  font: 400 12px var(--mono);
  color: var(--ink-3);
}
.w-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: none;
  padding: 7px 14px 7px 20px;
  box-shadow: inset 0 -0.5px 0 rgb(0 0 0 / 0.12);
}
.w-row.on {
  background: var(--tint);
}
.w-row .what {
  flex: 1;
  min-width: 0;
}
.w-row .what div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.w-row .what b {
  font-weight: 500;
}
.w-row .what span {
  color: rgb(0 0 0 / 0.75);
}
.w-row .what small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink-3);
}
.w-row time,
.mono {
  flex: none;
  font: 400 12px var(--mono);
  color: var(--ink-3);
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  width: 156px;
  color: rgb(0 0 0 / 0.75);
  white-space: nowrap;
}
.state.fit {
  width: auto;
}
.mark {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
/* One family: a thin ring in the state's color with a small glyph inside. Nothing is filled, and the
   stroke is about one pixel so the marks sit with the type. */
.mark.ok {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233fae4a' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m5.4 8.2 1.8 1.8 3.4-3.8'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.mark.fail {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d8452b' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m6 6 4 4M10 6l-4 4'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.mark.deny {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d8452b' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m3.8 12.2 8.4-8.4'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.mark.run {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235b9cf5' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2a6 6 0 1 1-6 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.mark.wait {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d99a1c' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M8 5v3l2 1.4'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.mark.idle {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a8a8a' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M5.5 8h5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.mark.need {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a8a8a' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='2.4 2.4'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Trace rows */
.span {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  flex: none;
  padding-right: 20px;
  border-radius: 6px;
}
.span.on {
  background: var(--tint);
}
.span .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.span .name small {
  margin-left: 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.span .dur {
  flex: none;
  width: 48px;
  text-align: right;
  font: 400 12px var(--mono);
  color: var(--ink-3);
}
.span .axis {
  position: relative;
  flex: none;
  width: 32%;
  height: 6px;
  border-radius: 3px;
  background: var(--tint);
}
.span .axis i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: var(--brand);
}
.span.bad .axis i {
  background: var(--red);
}
.d1 {
  padding-left: 20px;
}
.d2 {
  padding-left: 44px;
}
.d3 {
  padding-left: 68px;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 16px 20px 12px;
}
.stats div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-2);
}
.stats b {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Cards inside a window */
.w-pad {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 28px 0;
}
.w-pad h4 {
  margin: 0 0 4px 6px;
  font-size: 13px;
  font-weight: 500;
}
.w-pad h4 + p {
  margin: 0 0 12px 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.w-card {
  border-radius: 8px;
  background: #fdfdfd;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.12);
}
.w-card .w-row:last-child {
  box-shadow: none;
}
.w-card .w-row {
  padding: 10px 16px;
}
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.12);
  font-size: 12px;
  font-weight: 500;
  color: rgb(0 0 0 / 0.75);
}
.gone {
  color: var(--ink-3);
  text-decoration: line-through;
}
.bubble {
  align-self: flex-end;
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--tint);
}
.said {
  max-width: 86%;
}

/* ---------- Live moments (only with .motion, set by the script) ---------- */
.w-row.arrival {
  display: none;
}
.motion .w-row.arrival {
  display: flex;
  overflow: hidden;
  min-height: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  box-shadow: none;
  background: rgb(91 156 245 / 0.1);
  transition:
    max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s ease-out 0.15s,
    background 1.6s ease-out 1.2s;
}
.motion .w-row.arrival.here {
  max-height: 60px;
  padding-top: 7px;
  padding-bottom: 7px;
  opacity: 1;
  box-shadow: inset 0 -0.5px 0 rgb(0 0 0 / 0.12);
  background: transparent;
}
.motion .w-row.arrival .agent {
  transform: scale(0.4);
  transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 0.25s;
}
.motion .w-row.arrival.here .agent {
  transform: none;
}
.born.answered {
  /* Keeps its space before it appears, so the page below does not move. */
  display: block;
  visibility: hidden;
}
[data-approval].done .born.answered {
  visibility: visible;
}
.motion [data-approval].done .born.answered {
  animation-delay: 0.6s;
}
.motion [data-approval].done .born .agent {
  animation: pop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 0.75s both;
}
@keyframes pop {
  from {
    transform: scale(0.3);
  }
}
.answered {
  display: none;
}
[data-approval].done .ask {
  display: none;
}
[data-approval].done .state.answered {
  display: inline-flex;
}
[data-approval].done p.answered {
  display: block;
}
[data-approval].pressed .chip.dark.ask {
  transform: scale(0.96);
  background: #333;
}
[data-approval].pressed .chip.go {
  transform: scale(0.96);
  background: var(--tint);
}
[data-approval].done .chip.answered {
  display: inline-flex;
}
.chip.go {
  transition:
    transform 0.15s ease-out,
    background 0.15s ease-out;
}
.sw,
.sw::after {
  transition:
    background 0.25s ease-out,
    left 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}
[data-approval].done .sw.toggle {
  background: var(--brand);
}
[data-approval].done .sw.toggle::after {
  left: 12px;
}
.motion .use .split .w-main > .w-row {
  opacity: 0;
}
.motion .use.in .split .w-main > .w-row {
  opacity: 1;
  animation: rise 0.4s ease-out both;
  animation-delay: calc(var(--i, 0) * 140ms + 200ms);
}
.chip.dark.ask {
  transition:
    transform 0.15s ease-out,
    background 0.15s ease-out;
}
.motion .mark.run {
  animation: spin 1.4s linear infinite;
}
.motion [data-approval].done .answered {
  animation: rise 0.4s ease-out both;
}
.motion [data-approval].done p.answered {
  animation-delay: 0.5s;
}
.motion .use .spans .span {
  opacity: 0;
}
.motion .use.in .spans .span {
  opacity: 1;
  animation: rise 0.35s ease-out both;
  animation-delay: calc(var(--i, 0) * 90ms + 250ms);
}
.motion .use.in .spans .axis i {
  transform-origin: left;
  animation: grow 0.5s ease-out both;
  animation-delay: calc(var(--i, 0) * 90ms + 400ms);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

/* ---------- Large screens ---------- */
@media (min-width: 1600px) {
  :root {
    --gutter: max(64px, calc((100vw - 1760px) / 2));
  }
  body {
    font-size: 16px;
  }
  .display {
    font-size: 34px;
  }
  .lede {
    font-size: 17px;
  }
  .hero {
    grid-template-columns: 600px minmax(0, 1fr);
    min-height: min(100svh, 1080px);
  }
  .hero-stage {
    max-height: 960px;
  }
  .hero-copy h1 {
    font-size: 56px;
  }
  .hero-copy .lede,
  .points {
    max-width: 460px;
  }
  .use {
    grid-template-columns: 400px minmax(0, 1040px);
  }
  .use.flip {
    grid-template-columns: minmax(0, 1040px) 400px;
  }
  .use.wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .use-stage {
    height: 720px;
    padding: 64px 64px 0;
  }
  .thesis-copy {
    font-size: 19px;
  }
  .thesis-copy h2 {
    max-width: 680px;
    font-size: 48px;
  }
  .statement {
    max-width: 1280px;
    font-size: 48px;
  }
  .contrast {
    padding: 64px;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Small laptops: the hero window gives up its sidebar, then its labels ---------- */
@media (max-width: 1400px) {
  .hero {
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 48px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .hero-stage {
    padding: 40px 40px 170px;
  }
  .hero-stage .window {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-stage .w-side {
    display: none;
  }
}
@media (max-width: 1240px) {
  .hero-stage .state {
    width: auto;
  }
  .hero-stage .state .label,
  .hero-stage .w-bar .chip:not(.on) {
    display: none;
  }
  .window.plain.split {
    grid-template-columns: minmax(0, 1fr);
  }
  .w-inspect {
    display: none;
  }
}
/* Stacked layout on tablets: the hero window is wide again, so its labels return. */
@media (min-width: 641px) and (max-width: 1080px) {
  .hero-stage .state {
    width: 156px;
  }
  .hero-stage .state .label,
  .hero-stage .w-bar .chip:not(.on) {
    display: inline-flex;
  }
}
/* Ultra-wide: the hero stops bleeding to the right edge. */
@media (min-width: 1900px) {
  .hero {
    padding-right: var(--gutter);
  }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1080px) {
  :root {
    --gutter: 24px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
    min-height: 0;
    padding: 132px var(--gutter) 0;
  }
  .hero-copy {
    max-width: 480px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .hero-stage {
    margin-right: calc(var(--gutter) * -1);
    min-height: 620px;
    padding: 32px 32px 150px;
  }
  .use {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .use-copy {
    gap: 16px;
    max-width: 440px;
  }
  .use-stage {
    height: 560px;
    padding: 32px 32px 0;
  }
  .use.flip {
    grid-template-columns: 1fr;
  }
  .use.flip .use-copy {
    order: 0;
  }
  .use.wide .use-copy {
    flex-direction: column;
    align-items: flex-start;
  }
  .thesis-copy {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 560px;
  }
  .thesis-copy h2 {
    font-size: 32px;
  }
  .statement {
    font-size: 32px;
  }
  .tabs {
    gap: 4px 24px;
    margin: 40px 0 24px;
  }
  .tabs button {
    font-size: 20px;
  }
  .contrast {
    padding: 32px;
  }
  .window.plain.split {
    grid-template-columns: minmax(0, 1fr);
  }
  .w-inspect {
    display: none;
  }
  .starts {
    grid-template-columns: 1fr;
  }
  .start {
    min-height: 440px;
  }
  .page-hero {
    padding-top: 132px;
  }
  .page-stage {
    height: 560px;
    padding: 32px 32px 0;
  }
  .sec {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 88px;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
  .head {
    padding: 88px var(--gutter) 40px;
  }
  .sources {
    padding: 88px var(--gutter);
  }
  .sources ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .nav-pill .link.wide,
  .nav-rule {
    display: none;
  }
  /* The pill spans the screen: wordmark on the left, actions on the right. */
  .nav {
    inset: 8px 8px auto;
  }
  .nav-pill {
    flex: 1;
    height: 44px;
    padding: 6px 6px 6px 16px;
    font-size: 13px;
  }
  .wordmark {
    margin-right: auto;
  }
  .nav-pill .btn.sm {
    height: 32px;
    padding: 0 12px;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
  .page-stage {
    height: 480px;
    padding: 16px 16px 0;
  }
  .page-band {
    height: 240px;
    --art-at: 82% bottom;
  }
  .sec dl {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .statement {
    font-size: 26px;
  }
  .tabs {
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs button {
    flex: none;
    font-size: 16px;
  }
  .start {
    min-height: 400px;
    padding: 24px;
  }
  .window {
    grid-template-columns: minmax(0, 1fr);
  }
  .w-side {
    display: none;
  }
  .contrast {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 132px 16px 16px;
    background:
      linear-gradient(to bottom, rgb(47 142 224 / 0) 170px, #2f8ee0 300px),
      #2f8ee0 var(--art) 88% top / auto 300px no-repeat;
  }
  .contrast .side {
    flex: none;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .use-stage.fit {
    padding-bottom: 16px;
  }
  .freq,
  .w-row > .touch {
    display: none;
  }
  /* Integrations rows keep the name readable: the status shrinks to its mark. */
  .w-pad.list .chip.soft {
    padding: 0;
    background: none;
    font-size: 0;
  }
  .w-pad.list .chip.soft .mark {
    width: 14px;
    height: 14px;
    margin: 0;
  }
  .w-pad.list .w-card .w-row,
  .w-pad .w-card .w-row {
    padding-left: 12px;
    padding-right: 12px;
  }
  .window.plain.split .state {
    width: auto;
    margin-left: 0;
  }
  .window.plain .w-bar .chip:not(.on) {
    display: none;
  }
  .hero-stage {
    padding: 16px 16px 120px;
  }
  .g-head p,
  .chat .w-row .mono:not(:last-child) {
    display: none;
  }
  .chat .w-card .w-row {
    flex-wrap: wrap;
  }
  .chat .w-card .tile + .what {
    flex-basis: calc(100% - 42px);
  }
  .w-pad {
    padding: 20px 16px 0;
  }
  .composer {
    margin: auto 16px 16px;
  }
  .use-stage {
    padding: 16px 16px 0;
  }
  .sources ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
    font-size: 15px;
  }
  .sources li {
    justify-content: flex-start;
    padding-left: 18%;
  }

  .state {
    width: auto;
  }
  .state span.label,
  .span .axis {
    display: none;
  }
  footer {
    flex-direction: column;
  }
}
