/* Goliath landing page. One survey sheet: cool paper, a kilometre grid, contour relief, one vermilion route. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f7f6;
  --paper-deep: #e9eeed;
  --card: #ffffff;
  --ink: #14181b;
  --ink-2: #3c454b;
  --ink-3: #5b656c;
  --rule: #dce1e1;
  --rule-strong: #c2c9cb;
  --plus: #8f999e;
  --route: #d2341a;
  --route-deep: #b02810;
  --live: #1b6aa8;
  --cached: #a14a22;
  --published: #4a5157;
  --failed: #6b7378;
  --night: #0f1a22;
  --night-2: #13222d;
  --on-night: #eef3f5;
  --on-night-2: #a9b8c2;
  --rule-night: rgba(214, 228, 236, 0.13);
  --frame: var(--rule);
  --grid-line: rgba(20, 24, 27, 0.034);
  --forest-field: #dde8d3;
  --water-field: #d6e6ee;
  --wrap: 1280px;
  --frame-inset: clamp(16px, 3vw, 40px);
  --gutter: clamp(20px, 3.4vw, 44px);
  --section-y: clamp(88px, 10vw, 148px);
  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 16px;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-float: 0 1px 2px rgba(20, 24, 27, 0.06), 0 16px 40px -12px rgba(20, 24, 27, 0.26);
  interpolate-size: allow-keywords;
}

*,
*::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(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
canvas,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: color-mix(in srgb, var(--route) 18%, transparent);
}

input,
textarea {
  caret-color: var(--route);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- The grid board: framed columns and hairline rules with crosses ---------- */

.wrap {
  position: relative;
  width: min(100% - 2 * var(--frame-inset), var(--wrap));
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-inline: 1px solid var(--frame);
}

.band {
  position: relative;
  border-top: 1px solid var(--frame);
}

.band > .wrap {
  padding-block: var(--section-y);
}

.band:not(.hero)::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) center top / 64px 64px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) center top / 64px 64px;
  pointer-events: none;
}

/* Contour lines drawn on the paper and the tint fields themselves. */
.band > .relief--survey {
  z-index: 0;
}

.relief--corner {
  -webkit-mask-image: radial-gradient(ellipse 62% 75% at 100% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 75% at 100% 0%, #000 25%, transparent 78%);
}

.relief--low {
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 0% 100%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 55% 70% at 0% 100%, #000 25%, transparent 80%);
}

.band > .wrap::before,
.band > .wrap::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--plus), var(--plus)) center / 1px 100% no-repeat,
    linear-gradient(var(--plus), var(--plus)) center / 100% 1px no-repeat;
  pointer-events: none;
}

.band > .wrap::before {
  left: -6px;
}

.band > .wrap::after {
  right: -6px;
}

.band--night {
  --frame: var(--rule-night);
  --plus: rgba(214, 228, 236, 0.4);
  --grid-line: rgba(214, 228, 236, 0.035);
  background: var(--night);
  color: var(--on-night);
}

/* Tint fields own whole sections: woodland green for the figures, glacier water for developers. */
.band--forest {
  --frame: rgba(52, 84, 40, 0.2);
  --rule: rgba(52, 84, 40, 0.22);
  --plus: rgba(52, 84, 40, 0.55);
  --grid-line: rgba(52, 84, 40, 0.06);
  background: var(--forest-field);
}

.band--water {
  --frame: rgba(28, 92, 132, 0.18);
  --rule: rgba(28, 92, 132, 0.2);
  --plus: rgba(28, 92, 132, 0.5);
  --grid-line: rgba(28, 92, 132, 0.06);
  background: var(--water-field);
}

/* ---------- Shared type ---------- */

h2 {
  margin: 16px 0 0;
  font-size: clamp(2.25rem, 4.3vw, 3.75rem);
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1.02;
  letter-spacing: -0.032em;
}

main h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.05vw, 2.75rem);
  font-weight: 640;
  font-stretch: 125%;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

.ink,
.code-card-head,
.rules-panel-head,
.cal-head,
.float-label,
.footer-cols h2,
.collar h2 {
  font-stretch: 80%;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(44px, 5.5vw, 72px);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 32px 64px;
  max-width: none;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-lede {
  margin: 20px 0 0;
  max-width: 38em;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.section-head--split .section-lede {
  margin: 0;
}

.section-head--center .section-lede {
  margin-inline: auto;
}

.band--night .section-lede {
  color: var(--on-night-2);
}

.section-lede a,
.rules-list a,
.faq a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Buttons and small controls ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
}

.button:active {
  transform: scale(0.98);
}

.button--route {
  background: var(--route);
  color: #fff;
}

.button--route:hover {
  background: var(--route-deep);
}

.button--quiet {
  border-color: var(--rule-strong);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.button--quiet:hover {
  border-color: var(--ink-3);
  background: var(--card);
}

.button--light {
  background: var(--on-night);
  color: var(--ink);
}

.button--light:hover {
  background: #fff;
}

.button--ghost-light {
  border-color: rgba(238, 243, 245, 0.3);
  background: transparent;
  color: var(--on-night);
}

.button--ghost-light:hover {
  border-color: rgba(238, 243, 245, 0.6);
  background: rgba(238, 243, 245, 0.06);
}

.button--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.icon-button:hover {
  border-color: var(--rule-strong);
  background: var(--paper-deep);
}

.icon-button .icon {
  width: 18px;
  height: 18px;
}

.url-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 5px 5px 5px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.url-label {
  flex: none;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.url-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.url-copy {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.url-copy:hover {
  background: #2b3338;
}

.url-copy .icon {
  width: 16px;
  height: 16px;
}

.url-chip--night {
  border-color: rgba(238, 243, 245, 0.18);
  background: rgba(238, 243, 245, 0.06);
}

.url-chip--night .url-label {
  color: var(--on-night-2);
}

.url-chip--night .url-copy {
  background: var(--on-night);
  color: var(--ink);
}

/* ---------- Freshness inks ---------- */

.ink {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.22em 0.6em;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.ink::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.ink--live {
  color: var(--live);
}

.ink--cached {
  color: var(--cached);
}

.ink--published {
  color: var(--published);
}

.ink--failed {
  color: var(--failed);
}

.ink--failed::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.wordmark-mark {
  width: 22px;
  height: 22px;
  color: var(--route);
}

.wordmark-dot {
  color: var(--route);
}

.header-nav {
  display: flex;
  gap: 2px;
}

.header-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.header-nav a:hover {
  background: rgba(20, 24, 27, 0.05);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu {
  position: relative;
  display: none;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
  background: var(--card);
  box-shadow: var(--shadow-float);
  transform-origin: top right;
  transition:
    opacity 0.2s var(--ease),
    translate 0.2s var(--ease);
}

@starting-style {
  .menu[open] .menu-panel {
    opacity: 0;
    translate: 0 -6px;
  }
}

.menu-panel a {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
}

.menu-panel a:hover {
  background: var(--paper);
}

/* ---------- Hero ---------- */

.hero {
  border-top: 0;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(20, 24, 27, 0.055) 1px, transparent 1px) center top / 64px 64px,
    linear-gradient(90deg, rgba(20, 24, 27, 0.055) 1px, transparent 1px) center top / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 25% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero > .wrap::before,
.hero > .wrap::after {
  display: none;
}

.hero > .wrap.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
  padding-block: clamp(40px, 5.5vw, 80px) clamp(64px, 7vw, 112px);
}

.hero-copy {
  position: relative;
  max-width: 620px;
}

.hero-title {
  margin: 0;
  color: var(--ink-3);
  font-size: clamp(2.125rem, 3.65vw, 3.5rem);
  font-weight: 500;
  font-stretch: 102%;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: wrap;
}

.hero-title b {
  color: var(--ink);
  font-weight: 640;
}

.quote-stack {
  display: grid;
}

.quote-stack > * {
  grid-area: 1 / 1;
}

.quote-ghost {
  visibility: hidden;
}

.quote-live::after {
  content: "";
  display: inline-block;
  width: 0.055em;
  height: 0.9em;
  margin-left: 0.12em;
  vertical-align: -0.1em;
  border-radius: 1px;
  background: var(--route);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-lede {
  margin: 26px 0 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* The server URL with its one-line terms centred beneath it. */
.url-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
}

.hero-fine {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 0.875rem;
  text-align: center;
}

.hero-stage {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 800px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #dbeaf3;
  isolation: isolate;
  container-type: inline-size;
}

.relief,
.slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.relief {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.relief.is-drawn {
  opacity: 1;
}

.slot-img {
  object-fit: cover;
  transition: opacity 0.6s var(--ease);
}

.slot-img.is-loading {
  opacity: 0;
}

.hero-stage .phone {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52cqw;
  translate: -50% -50%;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-float);
  font-size: clamp(12px, 2.3cqw, 14px);
  line-height: 1.3;
  opacity: 0;
  translate: 0 10px;
  transition:
    opacity 0.5s var(--ease),
    translate 0.5s var(--ease);
}

.float-card.is-shown {
  opacity: 1;
  translate: 0 0;
}

.float-card--connected {
  top: 19%;
  left: 3.5%;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
}

.float-card--connected b {
  font-weight: 650;
}

.float-card--connected span span {
  color: var(--ink-3);
}

.float-check {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--live);
  color: #fff;
}

.float-check .icon {
  width: 1.2em;
  height: 1.2em;
  stroke-width: 2.4;
}

.float-card--spot {
  right: 2.5%;
  bottom: 2.5%;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 10px;
  padding: 10px 14px 11px;
}

.float-card--spot .float-label,
.float-card--spot .float-source {
  grid-column: 1 / -1;
}

.float-card--spot .float-figure {
  grid-row: 2;
  grid-column: 1;
}

.float-card--spot .ink {
  grid-row: 2;
  grid-column: 2;
  justify-self: start;
}

.float-label {
  color: var(--ink-3);
  font-weight: 500;
}

.float-figure {
  font-size: 1.3em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.float-source {
  color: var(--ink-2);
}

.float-card .ink {
  font-size: 0.9em;
}

.stage-toggle {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

/* Hidden when there is nothing to pause, such as under reduced motion. */
.stage-toggle[hidden] {
  display: none;
}

.stage-toggle .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* ---------- The phone ---------- */

.phone {
  aspect-ratio: 9 / 19.2;
  padding: 2.8%;
  border-radius: 15% / 7%;
  background: #0d1114;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(9, 20, 30, 0.2),
    0 40px 70px -24px rgba(9, 20, 30, 0.55);
  container-type: inline-size;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 12.6% / 5.9%;
  background: #fbfcfc;
  color: var(--ink);
  font-size: 4.6cqw;
  line-height: 1.35;
}

.phone-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.55em;
  width: 36%;
  height: 0.3em;
  border-radius: 999px;
  background: rgba(13, 17, 20, 0.85);
  translate: -50% 0;
}

.phone-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05em 1.7em 0.5em 2em;
  font-size: 0.95em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.island {
  position: absolute;
  left: 50%;
  top: 0.65em;
  width: 32%;
  height: 1.95em;
  border-radius: 999px;
  background: #0d1114;
  translate: -50% 0;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.status-icons i {
  display: block;
  height: 0.7em;
  border-radius: 0.15em;
  background: var(--ink);
}

.status-icons i:nth-child(1) {
  width: 1.05em;
  background: linear-gradient(
    90deg,
    var(--ink) 0 18%,
    transparent 18% 27%,
    var(--ink) 27% 45%,
    transparent 45% 54%,
    var(--ink) 54% 72%,
    transparent 72% 82%,
    var(--ink) 82%
  );
  -webkit-mask-image: linear-gradient(45deg, transparent 40%, #000 40%);
  mask-image: linear-gradient(45deg, transparent 40%, #000 40%);
}

.status-icons i:nth-child(2) {
  width: 0.95em;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  -webkit-mask-image: radial-gradient(circle at 50% 100%, #000 0 22%, transparent 22% 38%, #000 38% 58%, transparent 58% 72%, #000 72%);
  mask-image: radial-gradient(circle at 50% 100%, #000 0 22%, transparent 22% 38%, #000 38% 58%, transparent 58% 72%, #000 72%);
}

.status-icons i:nth-child(3) {
  width: 1.6em;
  height: 0.78em;
  border: 0.09em solid rgba(20, 24, 27, 0.45);
  background: linear-gradient(90deg, var(--ink) 0 78%, transparent 78%) padding-box;
  background-clip: content-box;
  padding: 0.09em;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 1.1em 0.75em;
  border-bottom: 1px solid #edf0f0;
}

.chat-avatar {
  width: 1.9em;
  height: 1.9em;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #6b7880, #2b3338);
}

/* An assistant's own logo, on white with a hairline ring in place of the plain disc. */
.chat-avatar--logo {
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dfe4e4;
}

.chat-avatar--logo img {
  width: 60%;
  height: 60%;
}

.chat-name {
  font-weight: 650;
}

.chat-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6em;
  min-height: 0;
  overflow: hidden;
  padding: 0.8em 0.95em 0.6em;
}

.phone--still .chat-log {
  padding-bottom: 2em;
}

.chat-log > * {
  flex: none;
  animation: rise 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 260ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6em);
  }
}

.msg {
  margin: 0;
}

.msg--user {
  align-self: flex-end;
  max-width: 84%;
  padding: 0.6em 0.85em;
  border-radius: 1.15em 1.15em 0.35em 1.15em;
  background: var(--ink);
  color: #fff;
}

.msg--assistant {
  color: var(--ink);
}

.tool-chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.75em 0.35em 0.5em;
  border-radius: 999px;
  background: #eef2f3;
  color: var(--ink-2);
  font-size: 0.82em;
  font-weight: 500;
}

.tool-mark {
  width: 1em;
  height: 1em;
  border: 0.16em solid rgba(20, 24, 27, 0.18);
  border-top-color: var(--route);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.tool-chip.is-done .tool-mark {
  border-color: var(--live);
  background: var(--live);
  box-shadow: inset 0 0 0 0.16em #eef2f3;
  animation: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-card {
  padding: 0.15em 0.85em;
  border: 1px solid #e2e7e8;
  border-radius: 0.95em;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 24, 27, 0.05);
}

.result-card > .result-row {
  animation: rise 0.4s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 260ms);
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding: 0.55em 0;
}

.result-row + .result-row {
  border-top: 1px solid #eef1f1;
}

.result-main {
  display: grid;
  min-width: 0;
}

.result-figure {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.result-source {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 0.82em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone .ink,
.window .ink {
  font-size: 0.74em;
}

.chat-input {
  display: flex;
  align-items: flex-end;
  gap: 0.5em;
  margin: 0.2em 0.75em 0.65em;
  padding: 0.4em 0.4em 0.4em 0.95em;
  border: 1px solid #dfe5e6;
  border-radius: 1.35em;
  background: #fff;
}

.input-text {
  flex: 1;
  min-width: 0;
  max-height: 4.4em;
  overflow: hidden;
  padding-block: 0.3em;
}

.input-text:empty::before {
  content: attr(data-placeholder);
  color: #98a2a8;
}

.phone.is-typing .input-text::after {
  content: "";
  display: inline-block;
  width: 0.1em;
  height: 1.1em;
  margin-left: 0.1em;
  vertical-align: -0.2em;
  border-radius: 1px;
  background: var(--live);
  animation: blink 1.05s steps(1) infinite;
}

.send {
  display: grid;
  place-items: center;
  width: 1.95em;
  height: 1.95em;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.send .icon {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.4;
}

.keyboard {
  display: grid;
  flex: none;
  gap: 0.42em;
  /* The keyboard's own height, measured by the script; the fallback is close to it. */
  max-height: var(--keyboard-h, 12.4em);
  overflow: hidden;
  padding: 0.5em 0.22em 1.9em;
  background: #d2d7db;
  transition:
    max-height 0.5s var(--ease),
    padding 0.5s var(--ease);
}

.phone.is-answering .keyboard {
  max-height: 0;
  padding-block: 0;
}

.chat-input {
  transition: margin-bottom 0.5s var(--ease);
}

.phone.is-answering .chat-input {
  margin-bottom: 1.6em;
}

.key-row {
  display: flex;
  justify-content: center;
  gap: 0.3em;
}

.key-row--inset {
  padding-inline: 4.6%;
}

.key-row span {
  display: grid;
  flex: 1;
  place-items: center;
  height: 2.3em;
  border-radius: 0.38em;
  background: #fff;
  box-shadow: 0 0.08em 0 rgba(0, 0, 0, 0.28);
  font-size: 0.98em;
  transition:
    background-color 0.12s,
    transform 0.12s;
}

.key-row .key-wide {
  flex: 1.45;
  background: #adb7be;
  font-size: 0.78em;
}

.key-row .key-space {
  flex: 5;
  font-size: 0.82em;
  color: var(--ink-2);
}

.key-row span.is-pressed {
  background: #aeb8bf;
  transform: scale(0.93);
}

/* The tool chip names Goliath and what it did; the generic phone reads "Used Goliath · Searched 5 sources". */
.tool-text {
  min-width: 0;
}

.tool-chip.is-done .tool-name::before {
  content: "Used ";
}

.tool-state::before {
  content: " · ";
}

.input-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.4em;
  min-width: 0;
}

.input-plus,
.input-mic,
.input-voice,
.chat-tabs {
  display: none;
}

/* ---------- Assistant looks: each phone wears the chat screen of the assistant it names ---------- */

.phone[data-assistant] .phone-screen {
  background: var(--screen);
}

.phone[data-assistant] .chat-head {
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.3em 0.85em 0.5em;
  border-bottom: 0;
}

.head-btn {
  display: grid;
  place-items: center;
  width: 2.15em;
  height: 2.15em;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(20, 24, 27, 0.06),
    0 0.15em 0.5em rgba(20, 24, 27, 0.08);
  color: var(--ink);
}

.head-btn .icon {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2;
}

.head-btn--text {
  width: auto;
  padding-inline: 0.85em;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 600;
}

.head-id {
  display: flex;
  align-items: center;
  gap: 0.45em;
  min-width: 0;
}

.head-text {
  display: grid;
  grid-template-rows: auto 0fr;
  min-width: 0;
  line-height: 1.2;
  transition: grid-template-rows 0.35s var(--ease);
}

/* While the tool runs, Muse and dots say what they are doing under their name. */
.phone.is-working .head-text {
  grid-template-rows: auto 1fr;
}

.phone[data-assistant] .chat-name {
  overflow: hidden;
  font-size: 0.88em;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-status {
  min-height: 0;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 0.68em;
}

.phone[data-assistant] .chat-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.phone[data-assistant] .chat-avatar img {
  width: 100%;
  height: 100%;
}

.chat-time {
  align-self: center;
  margin: 0 0 0.2em;
  color: #8d9296;
  font-size: 0.7em;
}

.phone[data-assistant] .msg--user {
  border-radius: var(--user-radius);
  background: var(--user-bubble);
  color: var(--user-ink);
}

.phone[data-assistant] .msg--assistant {
  align-self: flex-start;
  max-width: 88%;
  padding: 0.55em 0.8em;
  border-radius: var(--bot-radius, 1.1em);
  background: var(--bot-bubble);
}

.phone[data-assistant] .chat-input {
  align-items: center;
  border: 0;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(20, 24, 27, 0.06),
    0 0.2em 0.7em rgba(20, 24, 27, 0.08);
  padding: 0.3em 0.35em 0.3em 0.55em;
}

.phone[data-assistant] .input-plus,
.phone[data-assistant] .input-mic {
  display: grid;
  place-items: center;
  flex: none;
  color: #7c8287;
}

.phone[data-assistant] .input-plus .icon,
.phone[data-assistant] .input-mic .icon,
.phone[data-assistant] .input-voice .icon,
.phone[data-assistant] .send .icon {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2;
}

.phone[data-assistant] .send {
  display: none;
}

.phone[data-assistant].is-answering .chat-tabs:not(:empty),
.phone--still[data-assistant] .chat-tabs:not(:empty) {
  display: flex;
  transition:
    opacity 0.4s var(--ease) 0.2s,
    translate 0.4s var(--ease) 0.2s;
}

@starting-style {
  .phone[data-assistant].is-answering .chat-tabs:not(:empty) {
    opacity: 0;
    translate: 0 0.6em;
  }
}

.phone[data-assistant].is-answering:has(.chat-tabs:not(:empty)) .chat-input,
.phone--still[data-assistant]:has(.chat-tabs:not(:empty)) .chat-input {
  margin-bottom: 0.45em;
}

.phone--still[data-assistant] .chat-log {
  padding-bottom: 0.6em;
}

.phone--still[data-assistant] .chat-input {
  margin-bottom: 1.6em;
}

.chat-tabs {
  justify-content: space-around;
  margin: 0 0.85em 1.45em;
  padding: 0.3em;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(20, 24, 27, 0.06),
    0 0.2em 0.7em rgba(20, 24, 27, 0.08);
  color: #7c8287;
}

.chat-tab {
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 0.1em;
  padding: 0.3em 0;
  border-radius: 999px;
  font-size: 0.62em;
  font-weight: 600;
}

.chat-tab .icon {
  width: 1.9em;
  height: 1.9em;
  stroke-width: 1.9;
}

.chat-tab.is-current {
  color: var(--ink);
}

.phone[data-assistant] .tool-chip.is-done .tool-name::before {
  content: none;
}

/* Grok Bot: a pill naming the Bot, black and grey bubbles, a link card for each connected app. */
.phone[data-assistant="grok-bot"] {
  --screen: #fcfcfc;
  --user-bubble: #0d0d0d;
  --user-ink: #fff;
  --user-radius: 1.05em;
  --bot-bubble: #f2f2f2;
  --bot-radius: 1.05em;
}

.phone[data-assistant="grok-bot"] .chat-head {
  justify-content: flex-start;
}

.phone[data-assistant="grok-bot"] .head-id {
  padding: 0.22em 0.75em 0.22em 0.22em;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(20, 24, 27, 0.06),
    0 0.15em 0.5em rgba(20, 24, 27, 0.08);
}

.phone[data-assistant="grok-bot"] .chat-avatar {
  width: 1.7em;
  height: 1.7em;
  background: #000;
}

.phone[data-assistant="grok-bot"] .head-btn:last-child {
  margin-left: auto;
}

.phone[data-assistant="grok-bot"] .chat-input {
  gap: 0.45em;
  padding: 0;
  background: none;
  box-shadow: none;
}

.phone[data-assistant="grok-bot"] .input-plus {
  width: 2.15em;
  height: 2.15em;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(20, 24, 27, 0.06),
    0 0.15em 0.5em rgba(20, 24, 27, 0.08);
  color: var(--ink);
}

.phone[data-assistant="grok-bot"] .input-field {
  padding: 0.25em 0.25em 0.25em 0.9em;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(20, 24, 27, 0.06),
    0 0.15em 0.5em rgba(20, 24, 27, 0.08);
}

.phone[data-assistant="grok-bot"] .input-mic {
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  background: #efefef;
}

.phone[data-assistant="grok-bot"] .tool-chip {
  gap: 0.6em;
  padding: 0.45em 0.95em 0.45em 0.45em;
  border-radius: 0.9em;
  background: #f2f2f2;
  color: var(--ink);
}

.phone[data-assistant="grok-bot"] .tool-mark,
.phone[data-assistant="grok-bot"] .tool-chip.is-done .tool-mark {
  width: 2em;
  height: 2em;
  border: 0;
  border-radius: 0.5em;
  background: #fff url("/assets/mark.svg") center / 62% no-repeat;
  box-shadow: none;
  animation: none;
}

.phone[data-assistant="grok-bot"] .tool-text {
  display: grid;
  line-height: 1.25;
}

.phone[data-assistant="grok-bot"] .tool-name {
  font-weight: 650;
}

.phone[data-assistant="grok-bot"] .tool-state {
  color: var(--ink-3);
  font-size: 0.92em;
}

.phone[data-assistant="grok-bot"] .tool-state::before {
  content: none;
}

/* Muse: a centred card with the avatar, name and live status; blue user bubbles; a floating tab bar. */
.phone[data-assistant="muse"] {
  --screen: #fafafa;
  --user-bubble: #cce5ff;
  --user-ink: #111112;
  --user-radius: 1.3em;
  --bot-bubble: #eaeaec;
  --bot-radius: 1.3em;
}

.phone[data-assistant="muse"] .head-id {
  flex-direction: column;
  gap: 0.2em;
  padding: 0.35em 1em 0.4em;
  border-radius: 1.1em;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(20, 24, 27, 0.06),
    0 0.15em 0.5em rgba(20, 24, 27, 0.08);
  text-align: center;
}

.phone[data-assistant="muse"] .chat-avatar {
  width: 1.9em;
  height: 1.9em;
  box-shadow: inset 0 0 0 1px #e4e6e8;
}

.phone[data-assistant="muse"] .chat-avatar img {
  width: 62%;
  height: 62%;
}

.phone[data-assistant="muse"] .send {
  width: 1.75em;
  height: 1.75em;
  background: #cce5ff;
  color: #0064d4;
}

.phone[data-assistant="muse"].is-typing .send {
  display: grid;
}

.phone[data-assistant="muse"].is-typing .input-mic {
  display: none;
}

.phone[data-assistant="muse"] .tool-chip {
  padding: 0.4em 0.8em 0.4em 0.5em;
  border-radius: 0.8em;
  background: #eaeaec;
  color: var(--ink-2);
}

.phone[data-assistant="muse"] .tool-mark,
.phone[data-assistant="muse"] .tool-chip.is-done .tool-mark {
  border: 0;
  background: url("/assets/mark.svg") center / contain no-repeat;
  box-shadow: none;
}

/* Claude Duet: its logo in a large centred circle, peach user bubbles, Chat, Tasks and Make below. */
.phone[data-assistant="duet"] {
  --screen: #f9f9f7;
  --user-bubble: #fdceba;
  --user-ink: #0b0b0b;
  --user-radius: 1.2em 1.2em 0.3em 1.2em;
  --bot-bubble: #ededeb;
  --bot-radius: 1.2em;
}

.phone[data-assistant="duet"] .chat-avatar {
  width: 2.9em;
  height: 2.9em;
  box-shadow:
    0 0 0 1px rgba(20, 24, 27, 0.05),
    0 0.2em 0.7em rgba(20, 24, 27, 0.08);
}

.phone[data-assistant="duet"] .chat-avatar img {
  width: 52%;
  height: 52%;
}

.phone[data-assistant="duet"] .head-text {
  display: none;
}

.phone[data-assistant="duet"] .head-btn--text {
  width: 2.15em;
  padding: 0;
  border-radius: 50%;
  font-size: 1em;
  font-weight: 700;
}

.phone[data-assistant="duet"] .input-voice {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  flex: none;
  border-radius: 50%;
  background: #141413;
  color: #fff;
}

.phone[data-assistant="duet"] .chat-tab.is-current {
  background: #efeeea;
}

.phone[data-assistant="duet"] .result-card {
  border-radius: 1.3em;
}

.phone[data-assistant="duet"] .tool-chip {
  gap: 0.45em;
  padding: 0 0.2em;
  background: none;
  color: var(--ink-3);
  font-size: 0.74em;
}

.phone[data-assistant="duet"] .tool-mark {
  width: 0.95em;
  height: 0.95em;
  border: 0;
  border-radius: 0.22em;
  background: #d7e8fa;
  animation: none;
}

.phone[data-assistant="duet"] .tool-chip.is-done .tool-mark {
  background: #e3e2de;
  box-shadow: none;
}

/* dots: the dot's own avatar and name, user bubbles in its colour, handed-off work as bordered rows. */
.phone[data-assistant="dot"] {
  --screen: #fff;
  --user-bubble: #4164e8;
  --user-ink: #fff;
  --user-radius: 1.15em;
  --bot-bubble: #f3f3f3;
  --bot-radius: 1.15em;
}

.phone[data-assistant="dot"] .head-id {
  flex-direction: column;
  gap: 0.2em;
  text-align: center;
}

.phone[data-assistant="dot"] .chat-avatar {
  width: 2.2em;
  height: 2.2em;
  background: radial-gradient(circle at 35% 30%, #8ea5ff, #4164e8 62%, #2c48b8);
}

.phone[data-assistant="dot"] .head-btn:first-child {
  position: relative;
}

.phone[data-assistant="dot"] .head-btn:first-child::after {
  content: "";
  position: absolute;
  top: 0.15em;
  right: 0.15em;
  width: 0.5em;
  height: 0.5em;
  border: 0.12em solid #fff;
  border-radius: 50%;
  background: #4164e8;
}

.phone[data-assistant="dot"] .chat-input {
  background: rgba(255, 255, 255, 0.85);
}

.phone[data-assistant="dot"] .tool-chip {
  padding: 0.4em 0.8em 0.4em 0.55em;
  border: 1px solid #e6e6e6;
  border-radius: 0.75em;
  background: #fff;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--rule);
  list-style: none;
}

.step {
  position: relative;
  padding: 32px 28px 40px;
}

.step:nth-child(2) {
  --leg: 1;
}

.step:nth-child(3) {
  --leg: 2;
}

.step:nth-child(4) {
  --leg: 3;
}

/* Each step draws the leg across its own column and stops at a waypoint on the divider to its right;
   the last waypoint, filled, ends the line. */
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--route);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.25, 1);
  transition-delay: calc(var(--leg, 0) * 600ms + 200ms);
}

.step::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -6px;
  right: -7px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--route);
  border-radius: 50%;
  background: var(--paper);
  transition: scale 0.3s var(--ease);
  transition-delay: calc(var(--leg, 0) * 600ms + 800ms);
}

.step:last-child::after {
  background: var(--route);
}

.steps.route-pending .step:not(.is-drawn)::before {
  transform: scaleX(0);
}

.steps.route-pending .step:not(.is-drawn)::after {
  scale: 0;
}

.step + .step {
  border-left: 1px solid var(--rule);
}

.step:first-child {
  padding-left: 0;
}

.step-number {
  color: var(--ink-3);
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 80%;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.step h3 {
  margin: 48px 0 10px;
  font-size: 1.4375rem;
  font-weight: 620;
  letter-spacing: -0.018em;
}

.step p {
  margin: 0;
  max-width: 26em;
  color: var(--ink-2);
}

/* Three equal columns of cards: the title card fills the first column, all three rows tall, and the
   questions fill the other two. */
.asks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 56px;
}

/* The owner's accent card: the one vermilion fill on the sheet. White on vermilion is 4.6:1. */
.asks-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  border-radius: var(--r-m);
  background: var(--route);
  color: #fff;
  text-align: center;
}

.asks-title {
  margin: 0;
  font-size: 1.4375rem;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.asks-note {
  margin: 10px 0 0;
  max-width: 17em;
  color: #fff;
  font-size: 0.9375rem;
}

.ask-list {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The whole card copies the question; the circle shows what a click does. */
.ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 84px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

/* The opening quote mark hangs in the margin so every line starts on the same edge. */
.ask-text {
  flex: 1;
  min-width: 0;
  text-indent: -0.42em;
}

/* The same map symbols as the coverage survey, so each question shows what kind of travel it asks about. */
.ask-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
}

.ask-mark .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}

.ask-mark--plane .icon {
  rotate: 45deg;
}

.ask-copy {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--ink);
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.ask:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 16px 32px -24px rgba(15, 26, 34, 0.4);
  transform: translateY(-2px);
}

.ask:hover .ask-copy,
.ask:focus-visible .ask-copy {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ---------- Features bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  background: var(--paper-deep);
  isolation: isolate;
  container-type: inline-size;
}

.tile--wide {
  grid-column: span 7;
}

.tile--side {
  grid-column: span 5;
}

.tile--third {
  grid-column: span 4;
  min-height: 460px;
}

.tile-copy {
  position: relative;
  z-index: 3;
  padding: 26px 76px 22px 28px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.tile-copy h3 {
  margin: 0;
  font-size: 1.4375rem;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.tile-copy p {
  margin: 8px 0 0;
  max-width: 26em;
  color: var(--ink-2);
  font-size: 1rem;
}

.tile-open {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.3s var(--ease);
}

.tile-open:hover {
  background: #fff;
  transform: rotate(90deg);
}

.mock {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 24px 30px 30px;
  font-size: 0.9375rem;
}

.mock--devices {
  flex: 1;
  min-height: 320px;
  padding: 0;
}

.window {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 24px 60px -24px rgba(15, 26, 34, 0.32);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid #edf0f0;
}

.window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dde2e4;
}

.window-bar span {
  margin-left: 8px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.window-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 22px;
  font-size: 0.875rem;
}

.mock--calendar,
.mock--labels,
.mock--transfers {
  margin: auto 30px 30px;
  padding: 16px 18px 18px;
  border-radius: var(--r-m);
  background: var(--card);
  box-shadow: 0 20px 40px -24px rgba(15, 26, 34, 0.24);
}

.cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 650;
}

.cal-route {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 500;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.cal-dow {
  padding-bottom: 4px;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.cal-day {
  display: grid;
  place-content: center;
  min-height: 44px;
  border-radius: 9px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.15;
  text-align: center;
}

.cal-day i {
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 650;
}

.cal-day.is-seat {
  background: color-mix(in srgb, var(--cached) 11%, #fff);
  color: var(--cached);
  font-weight: 600;
}

.cal-day.is-picked {
  background: var(--ink);
  color: #fff;
}

.cal-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.mock--transfers {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.transfer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.transfer-from,
.transfer-to {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}

.transfer-ratio {
  position: relative;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.transfer-note {
  margin: 2px 2px 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.compare-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-card {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px -16px rgba(15, 26, 34, 0.28);
}

.compare-kind {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.compare-figure {
  font-size: 1.1875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

.compare-card .ink {
  margin-top: 4px;
  font-size: 0.75rem;
}

.compare-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
}

.compare-result b {
  font-weight: 650;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.label-row + .label-row {
  border-top: 1px solid #eef1f1;
}

.label-row .ink {
  font-size: 0.75rem;
}

.label-row--failed > span:first-child {
  color: var(--ink-3);
}

/* ---------- Coverage survey map ---------- */

.band--figures > .wrap {
  padding-block: clamp(64px, 8vw, 120px);
}

/* One trip drawn through every kind of travel. The terrain is an SVG at a fixed aspect ratio and the
   stops are HTML placed in percentages of it, so each symbol sits on the route at any width and its
   lettering stays at reading size. */
.survey {
  position: relative;
  margin: 0;
  aspect-ratio: 1200 / 470;
}

.survey-terrain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.survey-terrain--tall {
  display: none;
}

.sv-sea {
  fill: var(--water-field);
}

.sv-waterline {
  fill: none;
  stroke: rgba(28, 92, 132, 0.3);
}

.sv-waterline-gap {
  fill: none;
  stroke: var(--water-field);
}

.sv-coast {
  fill: none;
  stroke: rgba(28, 92, 132, 0.6);
  stroke-width: 1.5;
}

/* The river's ink is a gradient on the path itself, so it fades out at the edge of the sheet. */
.sv-river {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.sv-hill ellipse {
  fill: none;
  stroke: rgba(161, 74, 34, 0.5);
  stroke-width: 1.2;
}

.sv-trail {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 0.5 6;
}

.sv-town rect {
  fill: rgba(20, 24, 27, 0.24);
}

.sv-runway rect {
  fill: var(--ink-2);
}

.sv-runway path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.4;
  stroke-dasharray: 8 7;
}

.sv-rail {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
}

.sv-rail-ties {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2.6;
  stroke-dasharray: 10 10;
}

.sv-road {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 10;
  stroke-linecap: round;
}

.sv-road-fill {
  fill: none;
  stroke: var(--card);
  stroke-width: 7;
  stroke-linecap: round;
}

.sv-pier {
  stroke: var(--ink-2);
  stroke-width: 3;
  stroke-linecap: round;
}

.sv-lane {
  fill: none;
  stroke: rgba(28, 92, 132, 0.55);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 0.5 6;
}

/* The same flight paid with points: a dashed alternative beside the route. */
.sv-alt {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
}

.survey-route {
  fill: none;
  stroke: var(--route);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-north path {
  fill: var(--ink);
}

.sv-north text {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 640;
}

.survey-stops {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stop {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 0;
  height: 0;
}

.stop-mark {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 8px 16px -10px rgba(20, 24, 27, 0.45);
  translate: -50% -50%;
}

.stop-mark .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.stop--cash .stop-mark .icon {
  rotate: var(--heading);
}

/* Map lettering: no plate, just a halo of the forest field so a line under a name never cuts it. */
.stop-label {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  max-width: 11em;
  text-align: var(--align);
  text-shadow:
    0 0 2px var(--forest-field),
    0 0 3px var(--forest-field),
    0 0 6px var(--forest-field),
    0 0 10px var(--forest-field);
  transform: var(--shift);
}

.stop-name {
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* survey stops: wide */
.stop--cash {
  --x: 12.5%;
  --y: 35.74%;
  --shift: translate(-50%, calc(-100% - 30px));
  --align: center;
  --heading: 85.6deg;
}
.stop--awards {
  --x: 13.04%;
  --y: 70%;
  --shift: translate(-50%, 30px);
  --align: center;
}
.stop--stays {
  --x: 41.67%;
  --y: 53.62%;
  --shift: translate(-50%, 30px);
  --align: center;
}
.stop--ground {
  --x: 53.44%;
  --y: 49.47%;
  --shift: translate(-50%, calc(-100% - 30px));
  --align: center;
}
.stop--cars {
  --x: 71.75%;
  --y: 37.07%;
  --shift: translate(-50%, 30px);
  --align: center;
}
.stop--activities {
  --x: 81.5%;
  --y: 15.74%;
  --shift: translate(calc(-100% - 32px), -50%);
  --align: right;
}
.stop--cruises {
  --x: 92.59%;
  --y: 81.22%;
  --shift: translate(-50%, 30px);
  --align: center;
}
/* end survey stops: wide */

.stop--cash {
  --i: 0;
}
.stop--awards {
  --i: 1;
}
.stop--stays {
  --i: 2;
}
.stop--ground {
  --i: 3;
}
.stop--cars {
  --i: 4;
}
.stop--activities {
  --i: 5;
}
.stop--cruises {
  --i: 6;
}

/* Drawn once when the map scrolls in: the route runs out from the left, each symbol lands as it passes. */
.survey.route-pending .survey-route {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.8s cubic-bezier(0.45, 0, 0.25, 1) 0.2s;
}

.survey.route-pending .sv-alt,
.survey.route-pending .stop {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.survey.route-pending .stop-mark {
  scale: 0.4;
  transition: scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.survey.route-pending .stop,
.survey.route-pending .stop-mark {
  transition-delay: calc(var(--i) * 300ms + 400ms);
}

.survey.route-pending .sv-alt {
  transition-delay: 0.7s;
}

.survey.route-pending.is-drawn .survey-route {
  stroke-dashoffset: 0;
}

.survey.route-pending.is-drawn .sv-alt,
.survey.route-pending.is-drawn .stop {
  opacity: 1;
}

.survey.route-pending.is-drawn .stop-mark {
  scale: 1;
}

/* Below 960px the trip is drawn down the page instead of across it, so the lettering never collides. */
@media (max-width: 959px) {
  .survey {
    aspect-ratio: 400 / 900;
  }

  .survey-terrain--wide {
    display: none;
  }

  .survey-terrain--tall {
    display: block;
  }

  /* survey stops: tall */
  .stop--cash {
    --x: 32.12%;
    --y: 6.46%;
    --shift: translate(32px, -50%);
    --align: left;
    --heading: 166.96deg;
  }
  .stop--awards {
    --x: 17.38%;
    --y: 17.17%;
    --shift: translate(32px, -50%);
    --align: left;
  }
  .stop--stays {
    --x: 29.5%;
    --y: 39.11%;
    --shift: translate(32px, -50%);
    --align: left;
  }
  .stop--ground {
    --x: 38.37%;
    --y: 49.48%;
    --shift: translate(32px, -50%);
    --align: left;
  }
  .stop--cars {
    --x: 30.43%;
    --y: 66.06%;
    --shift: translate(32px, -50%);
    --align: left;
  }
  .stop--activities {
    --x: 75%;
    --y: 69.78%;
    --shift: translate(-50%, 30px);
    --align: center;
  }
  .stop--cruises {
    --x: 54.77%;
    --y: 92.41%;
    --shift: translate(32px, -50%);
    --align: left;
  }

  /* end survey stops: tall */
}

/* Tablets: the title stays in view beside the tall map. */
@media (min-width: 720px) and (max-width: 959px) {
  .band--figures > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    align-items: start;
    column-gap: clamp(28px, 5vw, 56px);
  }

  .band--figures .section-head {
    position: sticky;
    top: 104px;
    margin-bottom: 0;
  }
}

/* ---------- Results: the real MCP App table in an assistant window ---------- */

.results-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: clamp(88px, 12vw, 184px) clamp(12px, 4vw, 56px) clamp(12px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: #c8cfc9;
  isolation: isolate;
}

/* The walker on the path stays in view beside the window on wide screens. */
.results-stage > .slot-img {
  object-position: 0% 62%;
}

.window--results {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  width: min(100%, 760px);
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(15, 26, 34, 0.32);
}

.window--results .window-body {
  gap: 14px;
  padding: clamp(14px, 2.6vw, 28px);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/*
 * The box holds the table's height and eases between heights; the frame inside is always as tall
 * as the table it shows, so it never scrolls or clips. The starting height is about what the
 * example table measures, wide (a table) and narrow (cards), so the first answer barely moves it.
 */
.results-box {
  position: relative;
  overflow: hidden;
  height: 487px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  transition: height 0.5s var(--ease);
}

/* The outline of a table, shown while the example search runs: a heading, the sort chips, then rows. */
.results-box::before {
  content: "";
  position: absolute;
  inset: 14px 12px;
  background:
    linear-gradient(var(--paper-deep), var(--paper-deep)) 0 2px / 34% 18px no-repeat,
    linear-gradient(var(--paper-deep), var(--paper-deep)) 0 40px / 52% 26px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 86px, var(--rule) 86px 87px) 0 80px / 100% calc(100% - 80px) no-repeat;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

#results-demo.is-searching .results-box::before {
  opacity: 0.8;
}

@media (max-width: 645px) {
  .results-box {
    height: 845px;
  }
}

.results-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  color-scheme: light;
  transition:
    opacity 0.45s var(--ease),
    translate 0.45s var(--ease);
}

.results-answer {
  transition:
    opacity 0.5s var(--ease) 0.15s,
    translate 0.5s var(--ease) 0.15s;
}

/* While the example search runs, the chip spins; the table and the answer wait in the space they will fill. */
#results-demo.is-searching .results-frame {
  opacity: 0;
  translate: 0 8px;
}

#results-demo.is-searching .results-answer,
#results-demo.is-refreshing .results-answer {
  opacity: 0;
  translate: 0 0.5em;
  transition-delay: 0s;
}

/* A visitor's own search keeps the last table in place, dimmed, until the new one arrives. */
#results-demo.is-refreshing .results-frame {
  opacity: 0.45;
  pointer-events: none;
}

/* A visitor's own search: three fields and a button, like a composer under the answer. */
.results-ask {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.results-ask-title {
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.results-ask-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
  align-items: end;
  gap: 10px;
}

.results-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 500;
}

.results-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.results-field input:not([type="date"]) {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.results-field input:hover {
  border-color: var(--ink-3);
}

.results-field input:focus-visible {
  border-color: var(--route);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--route) 18%, transparent);
}

.results-field input[aria-invalid="true"] {
  border-color: var(--route);
}

.results-go[aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
}

/* Turnstile shows a box here only when Cloudflare asks the visitor to confirm; otherwise it takes no room. */
.results-challenge:empty {
  display: none;
}

.results-challenge {
  max-width: 100%;
}

.results-ask-note {
  min-height: 1.5em;
  margin: 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.results-ask-note.is-error {
  color: var(--route-deep);
}

@media (max-width: 520px) {
  .results-ask-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .results-field--date {
    grid-column: 1 / -1;
  }

  .results-go {
    grid-column: 1 / -1;
  }
}

/* ---------- Assistants ---------- */

.assist-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 56px) clamp(68px, 6vw, 84px);
  border-radius: var(--r-xl);
  background: var(--night-2);
  isolation: isolate;
}

.assist-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(15, 26, 34, 0.15), rgba(15, 26, 34, 0.55));
  pointer-events: none;
}

.assistant-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 270px) minmax(0, 1fr);
  grid-auto-flow: row dense;
  align-items: center;
  gap: 12px clamp(24px, 4vw, 56px);
}

.assistant-grid > .phone {
  grid-column: 2;
  grid-row: 1 / span 5;
  width: 100%;
}

.assistant-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  border: 1px solid rgba(238, 243, 245, 0.14);
  border-radius: var(--r-m);
  background: var(--night-2);
  color: var(--on-night);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.3s var(--ease);
}

.assistant-tile:hover {
  border-color: rgba(238, 243, 245, 0.32);
  background: #1b3040;
  transform: translateY(-2px);
}

/* Each assistant's icon sits on a white app tile so dark marks stay legible on night. */
.assistant-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
}

.assistant-words {
  display: grid;
  min-width: 0;
}

.assistant-name {
  font-weight: 620;
}

.assistant-sub {
  overflow: hidden;
  color: var(--on-night-2);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* ---------- Rules ---------- */

.rules-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.rules-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #dbeaf3;
  isolation: isolate;
}

.rules-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  padding: 16px 20px 6px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-float);
}

.rules-panel-head {
  margin: 0 0 4px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 4.6em;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.switch-row + .switch-row {
  border-top: 1px solid #eef1f1;
}

.switch {
  position: relative;
  width: 42px;
  height: 25px;
  border-radius: 999px;
  background: #d3d9db;
}

.switch i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 24, 27, 0.25);
}

.switch.is-on {
  background: var(--live);
}

.switch.is-on i {
  left: 20px;
}

.switch-state {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: right;
}

.rules-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.rule-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: var(--card);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rules-list h3 {
  margin: 2px 0 6px;
  font-size: 1.1875rem;
  font-weight: 620;
  letter-spacing: -0.012em;
}

.rules-list p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- Developers ---------- */

.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.tool-names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tool-names code {
  display: block;
  padding: 6px 11px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 0.875rem;
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.code-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.code-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--night);
  box-shadow: 0 24px 50px -28px rgba(15, 26, 34, 0.5);
}

.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 56px 12px 18px;
  border-bottom: 1px solid rgba(238, 243, 245, 0.08);
  color: var(--on-night-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.code-card--reply .code-card-head {
  padding-right: 18px;
}

.code-file {
  font-family: var(--mono);
  font-weight: 400;
}

.code-card pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #c6d3db;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  tab-size: 2;
}

.t-k {
  color: #8ec3ea;
}

.t-s {
  color: #e5c9a6;
}

.t-n {
  color: #f2a48e;
}

.t-p {
  color: #7c909c;
}

.t-live {
  color: #79c0ff;
  font-weight: 700;
}

.code-copy {
  position: absolute;
  top: 6px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--on-night-2);
  cursor: pointer;
}

.code-copy:hover {
  background: rgba(238, 243, 245, 0.08);
  color: var(--on-night);
}

.code-copy .icon {
  width: 17px;
  height: 17px;
}

/* ---------- Questions ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: 40px clamp(40px, 6vw, 96px);
}

.faq-intro {
  position: sticky;
  top: 112px;
}

.faq {
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: -0.012em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  transition:
    transform 0.35s var(--ease),
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.faq-icon .icon {
  width: 18px;
  height: 18px;
}

.faq summary:hover .faq-icon {
  border-color: var(--ink-3);
}

.faq details[open] .faq-icon {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: rotate(45deg);
}

.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.38s var(--ease),
    content-visibility 0.38s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
}

.faq details p {
  margin: -6px 0 28px;
  max-width: 42em;
  padding-right: 62px;
  color: var(--ink-2);
}

/* ---------- Closing ---------- */

.closing {
  --frame: rgba(20, 24, 27, 0.08);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  background: #e4eff6;
  isolation: isolate;
}

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(245, 247, 246, 0.88), rgba(245, 247, 246, 0.6) 45%, rgba(245, 247, 246, 0.1) 80%);
  pointer-events: none;
}

.closing-grid {
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title title"
    "copy phone";
  align-items: end;
  column-gap: 48px;
  padding-top: clamp(88px, 10vw, 152px);
}

.closing-grid h2 {
  grid-area: title;
  margin: 0;
  font-size: clamp(2.75rem, 8.7vw, 8.25rem);
  font-weight: 680;
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.closing-copy {
  grid-area: copy;
  align-self: start;
  padding-bottom: clamp(88px, 10vw, 152px);
}

.closing-copy > p {
  margin: 36px 0 0;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 1.25rem;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.phone--closing {
  position: relative;
  grid-area: phone;
  width: clamp(240px, 21vw, 290px);
  margin-top: 72px;
  margin-bottom: -150px;
}

.phone--closing .chat-log {
  justify-content: flex-start;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}

.site-footer .wrap {
  padding-block: clamp(56px, 6vw, 88px) 32px;
}

.collar {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
  border: 1px solid var(--ink);
  background: var(--card);
}

.collar-cell {
  padding: 22px 24px 26px;
}

.collar-cell + .collar-cell {
  border-left: 1px solid var(--ink);
}

.collar-title p {
  margin: 14px 0 0;
  max-width: 22em;
  color: var(--ink-2);
}

.collar h2,
.footer-cols h2 {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.legend {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.legend li {
  display: grid;
  grid-template-columns: 7.6em minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

.legend .ink {
  justify-self: start;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.footer-cols a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  color: var(--ink);
  text-decoration: none;
}

.footer-cols a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.875rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0 auto;
  max-width: 62em;
}

/* ---------- Reveal on scroll ---------- */

.will-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  transition-delay: var(--delay, 0s);
}

.will-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Dialogs ---------- */

dialog {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: min(860px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-l);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(9, 20, 30, 0.55);
}

dialog::backdrop {
  background: rgba(15, 26, 34, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

dialog[open] {
  animation: dialog-in 0.3s var(--ease);
}

dialog[open]::backdrop {
  animation: backdrop-in 0.3s var(--ease);
}

@keyframes backdrop-in {
  from {
    background-color: rgba(15, 26, 34, 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
}

@supports (overlay: auto) {
  dialog,
  dialog::backdrop {
    transition:
      opacity 0.2s var(--ease),
      translate 0.2s var(--ease),
      background-color 0.2s var(--ease),
      backdrop-filter 0.2s var(--ease),
      overlay 0.2s allow-discrete,
      display 0.2s allow-discrete;
  }

  dialog:not([open]) {
    opacity: 0;
    translate: 0 8px;
  }

  dialog:not([open])::backdrop {
    background-color: rgba(15, 26, 34, 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
}

/* Scrolling to the end of a dialog's panel stops there instead of scrolling the page behind it. */
dialog,
dialog * {
  overscroll-behavior: contain;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

#connect-dialog[open] {
  display: flex;
  flex-direction: column;
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px 28px;
  border-bottom: 1px solid var(--rule);
}

.dialog-heading h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 620;
  font-stretch: 100%;
  letter-spacing: -0.015em;
}

.setup-layout {
  display: grid;
  flex: 1;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.client-navigation {
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  border-right: 1px solid var(--rule);
  background: var(--paper);
}

.mobile-client-label,
#mobile-client {
  display: none;
}

#client-tabs {
  display: grid;
  gap: 2px;
}

#client-tabs [role="tab"] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

#client-tabs [role="tab"]:hover {
  background: rgba(20, 24, 27, 0.04);
  color: var(--ink);
}

#client-tabs [role="tab"][aria-selected="true"] {
  background: var(--card);
  color: var(--ink);
  font-weight: 620;
  box-shadow:
    0 0 0 1px var(--rule),
    0 2px 8px -3px rgba(20, 24, 27, 0.16);
}

.client-icon {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  object-fit: contain;
}

#setup-panel {
  min-height: 0;
  overflow-y: auto;
  padding: 24px 30px 30px;
}

.guide-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.guide-heading h3 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

#guide-subtitle {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.setup-mode,
.setup-route {
  display: inline-flex;
  gap: 2px;
  margin-top: 18px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-deep);
}

.setup-route[hidden] {
  display: none;
}

.setup-route + .setup-mode {
  margin-left: 8px;
}

.setup-mode button,
.setup-route button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.setup-mode button[aria-pressed="true"],
.setup-route button[aria-pressed="true"] {
  background: var(--card);
  color: var(--ink);
  font-weight: 620;
  box-shadow: 0 1px 4px rgba(20, 24, 27, 0.14);
}

.prompt-instruction {
  margin: 18px 0 0;
  color: var(--ink-2);
}

.guide-steps {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.guide-steps[hidden],
.prompt-instruction[hidden] {
  display: none;
}

.guide-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  color: var(--ink-2);
  counter-increment: step;
}

.guide-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 650;
}

.guide-steps li span {
  padding-top: 2px;
  overflow-wrap: anywhere;
}

.code-block {
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--night);
  color: #dbe5eb;
}

.code-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 9px 9px 16px;
  border-bottom: 1px solid rgba(238, 243, 245, 0.08);
  color: var(--on-night-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

#copy-setup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(238, 243, 245, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--on-night);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

#copy-setup:hover {
  background: rgba(238, 243, 245, 0.08);
}

#copy-setup .icon {
  width: 16px;
  height: 16px;
}

.code-block pre {
  max-height: 320px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guide-note {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.guide-bottom {
  margin-top: 14px;
}

#guide-docs {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dialog-footnote {
  padding: 14px 28px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-3);
  font-size: 0.875rem;
  text-align: center;
}

.dialog-footnote a {
  color: var(--ink-2);
}

#about-dialog {
  width: min(720px, calc(100vw - 32px));
}

#about-dialog[open] {
  display: flex;
  flex-direction: column;
}

.about-topline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 18px 0 30px;
}

.about-body {
  min-height: 0;
  overflow-y: auto;
  padding: 6px 30px 22px;
}

.about-body h2 {
  margin: 6px 0 18px;
  font-size: clamp(1.75rem, 3.2vw, 2.375rem);
  font-weight: 620;
  font-stretch: 104%;
  letter-spacing: -0.028em;
}

#about-content p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

#about-content .fine-print {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

#about-content a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.about-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 30px 24px;
  border-top: 1px solid var(--rule);
}

.about-tabs button {
  padding: 8px 15px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.about-tabs button:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.about-tabs button[aria-current="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.feature-dialog {
  width: min(580px, calc(100vw - 32px));
}

.feature-text {
  margin: 0;
  padding: 22px 30px 0;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.feature-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px 30px 0;
  list-style: none;
}

.feature-points li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
}

.feature-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin: 9px 0 0 4px;
  background: var(--route);
  transform: rotate(45deg);
}

.feature-actions {
  padding: 26px 30px 30px;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  translate: -50% 10px;
  transition:
    opacity 0.25s var(--ease),
    translate 0.25s var(--ease);
}

#toast.visible {
  opacity: 1;
  translate: -50% 0;
}

#toast.dialog-toast {
  position: absolute;
  bottom: 18px;
}

.noscript-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  padding: 14px 18px;
  border-radius: var(--r-m);
  background: var(--ink);
  color: #fff;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1080px) {
  .header-nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .tile--wide,
  .tile--side {
    grid-column: span 12;
  }

  .tile--third {
    grid-column: span 6;
  }

  .tile--third:last-child {
    grid-column: span 12;
  }

  .asks {
    grid-template-columns: minmax(0, 1fr);
  }

  .ask-list {
    grid-column: auto;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    border-bottom: 0;
  }

  .step,
  .step:first-child {
    --leg: 0;
    padding: 24px 0 28px 34px;
    border-bottom: 1px solid var(--rule);
  }

  /* On one column the route runs down the left edge; each waypoint sits on the divider below its step. */
  .step::before {
    top: 0;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 2px;
    height: auto;
    transform-origin: center top;
  }

  .step::after {
    top: auto;
    right: auto;
    bottom: -7px;
    left: 0;
  }

  .steps.route-pending .step:not(.is-drawn)::before {
    transform: scaleY(0);
  }

  .step + .step {
    border-left: 0;
  }

  .step h3 {
    margin-top: 16px;
  }
}

@media (max-width: 900px) {
  .hero > .wrap.hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
  }

  .hero-copy {
    max-width: none;
  }

  /* Stacked over the image, the actions and the server URL centre on the column. */
  .hero-actions {
    justify-content: center;
  }

  .url-block {
    margin-inline: auto;
  }

  .hero-stage {
    max-height: none;
  }

  .section-head--split,
  .rules-grid,
  .dev-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .collar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-intro {
    position: static;
  }

  .assistant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-grid > .phone {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: center;
    width: min(260px, 70%);
    margin-bottom: 16px;
  }

  .rules-card {
    max-width: 520px;
  }

  .closing-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "copy";
  }

  .closing-copy {
    padding-bottom: clamp(72px, 12vw, 120px);
  }

  .phone--closing {
    display: none;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}

@media (max-width: 760px) {
  #connect-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .setup-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .client-navigation {
    display: grid;
    gap: 8px;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  #client-tabs {
    display: none;
  }

  .mobile-client-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-3);
    font-size: 0.875rem;
    font-weight: 600;
  }

  #mobile-client {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--rule-strong);
    border-radius: 12px;
    background: var(--card);
    font-size: 1rem;
  }

  #mobile-client-icon .client-icon {
    width: 18px;
    height: 18px;
  }

  #setup-panel {
    padding: 20px 18px 24px;
  }

  .dialog-heading {
    padding-left: 18px;
  }

  .dialog-footnote {
    padding-inline: 18px;
  }
}

@media (max-width: 719px) {
  .survey {
    max-width: 440px;
    margin-inline: auto;
  }

  .wrap {
    width: 100%;
    border-inline-color: transparent;
  }

  .band > .wrap::before,
  .band > .wrap::after {
    display: none;
  }

  .tile--third,
  .tile--third:last-child {
    grid-column: span 12;
  }

  .tile {
    min-height: 440px;
  }

  .ask-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stage {
    aspect-ratio: 5 / 7;
  }

  .hero-stage .phone {
    width: 62cqw;
  }

  .float-card--spot,
  .float-card--connected {
    display: none;
  }

  .mock--devices .window {
    left: 18px;
    right: 18px;
  }

  .mock--devices {
    min-height: 360px;
  }

  .mock--calendar,
  .mock--labels {
    margin: auto 16px 16px;
  }

  .mock {
    padding: 20px 18px 20px;
  }

  .mock--devices {
    padding: 0;
  }

  .tile-copy {
    padding: 22px 70px 0 22px;
  }

  .faq summary {
    font-size: 1.125rem;
  }

  .faq details p {
    padding-right: 0;
  }

  .url-block,
  .url-chip {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-actions .button {
    display: none;
  }

  .hero-actions .button {
    flex: 1;
  }

  .assistant-grid {
    column-gap: 10px;
  }

  .assistant-tile {
    min-height: 52px;
    padding: 10px 14px;
  }

  .assistant-sub {
    display: none;
  }

  .compare-figure {
    font-size: 1.0625rem;
  }

  .collar {
    grid-template-columns: minmax(0, 1fr);
  }

  .collar-cell + .collar-cell {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }
}
