:root {
  --paper: #F3F5F7;
  --ink: #14213D;
  --marker: #F5D90A;
  --allowed: #1F8A70;
  --line: #C9D1DB;
  --muted: #5A6577;
  --button: #1A7A63;
  --band-green: #E4F1EC;
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);
  --text: "Schibsted Grotesk", system-ui, sans-serif;
  --code: "JetBrains Mono", ui-monospace, monospace;
  --gutter: 16px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  font-weight: 450; /* a little bolder than 400, easier to read */
  line-height: 1.55;
}

p, ul, ol, h1, h2, figure { margin: 0; }

a { color: inherit; }

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

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

/* Top bar: green from edge to edge, the first stripe of the zebra (no animation, it is in view at once) */
.top { background: var(--band-green); }
.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.25rem;
}
.wordmark {
  font-weight: 700;
  font-size: clamp(1.5rem, 6.5vw, 2.5rem);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  font-weight: 500;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--button);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 6px;
}
.button:hover { background: var(--ink); }

/* Hero */
.hero { padding-block: 4rem 6rem; }
h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.lead {
  margin-top: 1.25rem;
  font-size: 1.3125rem;
  max-width: 40ch;
}
.hero-demo { margin-block: 3rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero picture: a site form, marked by Sonder, and the tool it becomes */
.demo {
  display: grid;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 48rem) {
  .demo { grid-template-columns: minmax(0, 24rem) auto minmax(0, 1fr); gap: 2rem; }
}

/* The arrow from the form to the tool: across on a wide screen, down on a phone */
.arrow svg {
  display: block;
  width: 5rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 47.99rem) {
  .arrow svg { width: 3.5rem; transform: rotate(90deg); margin-left: 1rem; }
}
.arrow path {
  stroke-dasharray: 100;
  animation: arrow-draw 0.35s ease-out both;
  animation-delay: 1.45s;
}
.arrow path + path { animation-delay: 1.7s; animation-duration: 0.2s; }
@keyframes arrow-draw { from { stroke-dashoffset: 100; } }

.site-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}
.site-heading { font-weight: 700; font-size: 1.25rem; }
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 0.875rem;
  margin-top: 1rem;
}
.field:first-child, .fake-button { grid-column: 1 / -1; }
.field-label { display: block; font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.25rem; }
.field-box {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9375rem;
}
.fake-button {
  justify-self: start;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.55rem 1rem;
  border-radius: 4px;
}

/* The marker: a highlighter box that draws itself, one part after the other */
.mark { position: relative; }
.mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--marker);
  border-radius: 6px;
  background: color-mix(in srgb, var(--marker) 30%, transparent);
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: mark-draw 0.4s ease-out both;
  animation-delay: calc(0.3s + var(--i) * 0.25s);
}
@keyframes mark-draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.agent-view { container-type: inline-size; }
.agent-label { font-weight: 500; color: var(--muted); }
.tool-line {
  margin-top: 0.5rem;
  font-family: var(--code);
  /* 33 mono characters are about 20em wide, so 4.8% of the column keeps the line inside it */
  font-size: min(1.25rem, 4.8cqi);
}
.tool-line code {
  display: inline-block;
  width: 33ch; /* the number of characters in the tool line, for the typing steps */
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  font-family: inherit;
  animation: tool-type 1.2s steps(33) both;
  animation-delay: 1.95s;
}
@keyframes tool-type { from { width: 0; } }


@media (prefers-reduced-motion: reduce) {
  .mark::after, .arrow path, .tool-line code { animation: none; }
}

/* Sections: the heading sits in a left margin, like a note on a plan */
/* Bands: the sections change color like a zebra, gray (the page) and green, from edge to edge */
.band-green { background: var(--band-green); }

.block { padding-block: 5rem; }
h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
@media (min-width: 48rem) {
  .block {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: 3rem;
  }
  .block h2 { margin-bottom: 0; }
}
.block-body > p, .block-body > ul { max-width: 65ch; }
.block-body > * + * { margin-top: 1.25rem; }

/* What is WebMCP: the two ways an agent can use a site, side by side */
.block-body code { font-family: var(--code); font-size: 0.9em; overflow-wrap: anywhere; }
.compare {
  display: grid;
  gap: 1.25rem 2.5rem;
  max-width: 65ch;
}
@media (min-width: 48rem) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-side { padding-left: 1rem; border-left: 4px solid var(--muted); }
.compare-with { border-left-color: var(--allowed); }
.compare-side h3 { font-size: 1.125rem; }
.compare-side p { margin-top: 0.35rem; }

/* The problem: the loop an agent goes through today */
.flow code {
  font-family: var(--code);
  font-size: 0.9375rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Why now: three numbers with their sources */
.stats {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem 2.5rem;
}
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stats li { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.75rem; border-top: 3px solid var(--allowed); }
.stat-number { font-size: 2.25rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { font-weight: 500; }
.stat-source { font-size: 0.875rem; color: var(--muted); }
.punch { font-size: 1.25rem; font-weight: 700; }


/* How it works */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  max-width: 65ch;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  padding-block: 1rem;
}
.steps li + li { border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
}
.step-main { font-size: 1.25rem; font-weight: 550; }
.step-note { color: var(--muted); margin-top: 0.25rem; }

/* Proof */
.results { padding-left: 1.2rem; }
.results li + li { margin-top: 0.35rem; }

/* Contact: the two founders side by side */
h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.block-body > h3 { margin-top: 2rem; }
.block-body > h3:first-child { margin-top: 0; }
.people {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem 3rem;
  max-width: 40rem;
}
.block-body > h3 + .people { margin-top: 0.75rem; }
.person-name { font-size: 1.25rem; font-weight: 700; }
.people a { overflow-wrap: anywhere; }
.people p + p { margin-top: 0.2rem; }



/* Proof charts: two white panels, one legend, one scale for each chart */
.charts > * + * { margin-top: 1rem; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.key {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 3px;
  margin-right: 0.45rem;
  vertical-align: -0.1em;
}
.key-without, .bar-without { background: var(--muted); }
.key-with, .bar-with { background: var(--allowed); }

.chart-grid { display: grid; gap: 1.25rem; }
@media (min-width: 60rem) { .chart-grid { grid-template-columns: 1fr 1fr; } }
.chart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1.5rem;
}
.chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; }
.chart-title { font-weight: 700; font-size: 1.125rem; }
.chart-task { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.chart-task-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-weight: 500;
}
.chart-note { color: var(--button); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}
.bar {
  flex: none;
  /* the longest bar leaves room for its number after it */
  width: calc(var(--v) * (100% - 5rem));
  min-width: 4px;
  height: 1.25rem;
  border-radius: 3px;
}
.row-value { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The bars grow one time when the charts come into view (the class comes from the script in
   index.html). The "without" bars first, then the "with Sonder" bars, then the numbers. */
.charts.will-grow .bar { transform: scaleX(0); transform-origin: left center; }
.charts.will-grow .row-value, .charts.will-grow .chart-note { opacity: 0; }
.charts.grow .bar { transform: none; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.charts.grow .bar-with { transition-delay: 0.35s; }
.charts.grow .row-value, .charts.grow .chart-note { opacity: 1; transition: opacity 0.4s ease 1s; }

/* the header button is a little narrower, so the header fits in one row on a 360 px phone */
.top .button { padding-inline: 0.9rem; }
