/*
 * Patchwork site. A graphite ramp with one accent, the logo's sky blue, used for focus and the few
 * things that are live. Type is Inter at 400 and 500, with JetBrains Mono for files, commands and
 * meta. Blocks fade in once as they scroll into view, and nothing moves under reduced motion.
 * Spacing is on the 4px scale.
 */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Graphite ramp */
  --bg: #101113;
  --panel: #16171a;
  --raised: #1e1f23;
  --sunk: #0b0c0d;

  /* Text roles */
  --fg: #ededee;
  --fg-2: #a4a6ab;
  --fg-3: #76787e;

  /* Lines */
  --line: rgba(237, 237, 238, 0.08);
  --line-strong: rgba(237, 237, 238, 0.14);

  /* The logo's sky, for focus and for what is live. Amber is the app's "waiting" color. */
  --accent: #6cc0e8;
  --wait: #e0b25c;

  --font-ui: "Inter Variable", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

/* The header stays put above the page, and only the page under it scrolls, so the scrollbar starts
   below the header instead of running up beside it. */
body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: var(--bg);
}

.page:focus {
  outline: none;
}

.page::-webkit-scrollbar {
  width: 10px;
}

.page::-webkit-scrollbar-thumb {
  background: #3a3c41;
  border: 2px solid transparent;
  border-radius: 5px;
  background-clip: padding-box;
}

.page::-webkit-scrollbar-track {
  background: transparent;
}

@supports not selector(::-webkit-scrollbar) {
  .page {
    scrollbar-color: #3a3c41 transparent;
  }
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

code,
pre {
  font-family: var(--font-mono);
}

code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--raised);
  color: var(--fg);
  font-size: 0.88em;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
}

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

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Rows with screenshots run wider, so the pictures can be big. */
.wrap-wide {
  max-width: 1440px;
}

/* Header */

.nav {
  position: relative;
  z-index: 5;
  flex: none;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

/* The header and footer run edge to edge: the logo sits at the far left, the links at the far right. */
.nav-inner,
.footer-inner {
  max-width: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--fg-2);
  font-size: 14px;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav-links a:hover {
  background: var(--raised);
  color: var(--fg);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.nav-toggle .i-close,
.nav.is-open .nav-toggle .i-menu {
  display: none;
}

.nav.is-open .nav-toggle .i-close {
  display: block;
}

.i {
  width: 18px;
  height: 18px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* Buttons: an off-white primary and a hairline secondary. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--fg);
}

.btn-secondary:hover {
  border-color: rgba(237, 237, 238, 0.24);
  background: var(--raised);
}

/* Hero */

.hero {
  padding: 96px 0 0;
  overflow-x: clip;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--fg-2);
  font-size: 18px;
  text-wrap: balance;
}

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

/* The facts a visitor checks first, as one quiet mono line under the buttons. */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 13px;
}

.trust li + li::before {
  content: "·";
  padding: 0 12px;
}

/* Screenshots sit in a plain window frame. */

.shot {
  position: relative;
}

.window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--sunk);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(237, 237, 238, 0.14);
}

.window img {
  width: 100%;
  height: auto;
}

/* The hero's window runs off the bottom of the first screen. */
.shot-hero {
  max-width: 1280px;
  margin: 64px auto 0;
}

/* Sections */

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.hero + .section {
  border-top: 0;
}

.section h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p,
.split-copy p {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 17px;
  text-wrap: pretty;
}

/* A picture beside its words; every other one swaps sides. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: 64px;
}

.split + .split {
  margin-top: 128px;
}

.split-flip {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

.split-flip .split-copy {
  order: 2;
}

/* The section's name, in mono above its heading. */
.tag {
  display: block;
  margin-bottom: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 13px;
}

.split-copy .btn {
  margin-top: 28px;
}

/* Setup steps: numbers on a hairline. */
.steps {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 15px;
  width: 1px;
  background: var(--line-strong);
}

.steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--fg-2);
  font-size: 16px;
}

.steps b {
  color: var(--fg);
  font-weight: 500;
}

.step-dot {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* The rest of the features, as small cards. */

.more-head {
  margin: 144px 0 40px;
  text-align: center;
}

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

/* The home page's eight cards sit four across. */
@media (min-width: 1001px) {
  .cards:not(.cards-plain) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 150ms ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.card h3 {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
}

.card p {
  margin-top: 6px;
  color: var(--fg-2);
  font-size: 15px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  color: var(--fg-2);
}

.card-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Comparison table: scrolls inside its own box on a phone, never the page. */
.compare {
  max-width: 1080px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.compare:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.compare table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare th,
.compare td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare thead th {
  font-weight: 500;
  color: var(--fg);
}

.compare tbody th {
  color: var(--fg-3);
  font-weight: 400;
  white-space: nowrap;
}

.compare td {
  color: var(--fg-2);
}

.compare .group th {
  padding-top: 24px;
  background: var(--sunk);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
}

.compare .is-us,
.compare td:nth-child(2) {
  background: var(--raised);
  color: var(--fg);
}

/* FAQ: native disclosures, so they open with the keyboard and without JavaScript. */
.faq {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  transition: transform 200ms var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover h3 {
  color: var(--fg);
}

.faq-item h3 {
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
}

.faq-item p {
  padding: 0 4px 20px;
  color: var(--fg-2);
}

/* Agents */

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

.agents li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 32px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-align: center;
  transition: border-color 150ms ease;
}

.agents li:hover {
  border-color: var(--line-strong);
}

.agent-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.agent-name {
  font-weight: 500;
  font-size: 16px;
}

.agent-vendor {
  color: var(--fg-3);
  font-size: 14px;
}

/* Gateways: the chat apps as small tiles, four to a row beside the words, with a short last row
   centered under the others. */

.gateways {
  --per-row: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.gateways li {
  flex: 0 0 calc((100% - (var(--per-row) - 1) * 12px) / var(--per-row));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--fg-2);
  font-size: 14px;
  text-align: center;
}

.gateway-logo {
  width: 28px;
  height: 28px;
  color: var(--fg);
}

/* Phone: the Android app, in front of the desktop window that runs the same chat. */

.phone-section {
  overflow-x: clip;
}

.phone-facts {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  color: var(--fg-2);
  font-size: 15px;
}

.phone-facts li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
}

.phone-facts svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  fill: none;
  stroke: var(--fg-3);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-facts b {
  color: var(--fg);
  font-weight: 500;
}

.split-copy .phone-meta {
  margin-top: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 13px;
}

.phone-stage {
  position: relative;
  height: 664px;
}

/* The desktop behind: the same task, running off the right edge. */
.phone-stage .window {
  position: absolute;
  top: 64px;
  left: 168px;
  width: 960px;
}

.phone {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 312px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 44px;
  background: #050506;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* A real screenshot of the Android app, status bar included. */
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

/* Downloads */

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

.dl {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.dl h3 {
  font-size: 18px;
  font-weight: 500;
}

.dl-file {
  margin-top: 4px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.dl-note {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 15px;
}

.dl pre {
  margin-top: 12px;
  padding: 10px 12px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--sunk);
  font-size: 12px;
}

.dl pre code {
  padding: 0;
  background: none;
}

.dl .btn {
  margin-top: auto;
}

.dl-note,
.dl pre {
  margin-bottom: 24px;
}

/* The visitor's own system gets the primary button. */
.dl.is-yours {
  border-color: var(--line-strong);
}

.dl.is-yours .btn {
  border-color: transparent;
  background: var(--fg);
  color: var(--bg);
}

/* Footer */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

/* The brand and the copyright take equal sides, so the page links sit in the true center. */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 32px;
}

.footer-legal {
  grid-column: 1 / -1;
  color: var(--fg-3);
  font-size: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.footer-line {
  justify-self: end;
  color: var(--fg-3);
  font-size: 14px;
}

.footer-line a {
  color: var(--fg-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.footer-line a:hover {
  color: var(--fg);
}

/* Motion: each block fades up once, the first time it scrolls into view. Without JavaScript, or
   with reduced motion, nothing waits to be revealed. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-seen) {
    opacity: 0;
  }

  .js .reveal.is-seen {
    animation: fade-up 480ms var(--ease) backwards;
  }

  .js .cards .reveal.is-seen:nth-child(4n + 2),
  .js .downloads .reveal.is-seen:nth-child(2) {
    animation-delay: 60ms;
  }

  .js .cards .reveal.is-seen:nth-child(4n + 3),
  .js .downloads .reveal.is-seen:nth-child(3) {
    animation-delay: 120ms;
  }

  .js .cards .reveal.is-seen:nth-child(4n),
  .js .downloads .reveal.is-seen:nth-child(4) {
    animation-delay: 180ms;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

/* A carousel: tabs beside the picture name each slide, the slides are stacked in one cell, and under
   them a short bar for each fills while its slide shows. The next slide comes when the fill's
   animation ends, so pausing one pauses both. Without JavaScript the slides are simply listed. */
.tabs {
  display: grid;
  gap: 2px;
  margin: 24px 0 0 -16px;
  list-style: none;
}

.tab {
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--fg-3);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease;
}

.tab b {
  color: var(--fg-2);
  font-size: 16px;
  font-weight: 500;
  transition: color 200ms ease;
}

.tab span {
  font-size: 15px;
  line-height: 1.45;
}

.tab:hover b {
  color: var(--fg);
}

.tab.is-active {
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg-2);
}

.tab.is-active b {
  color: var(--fg);
}

.slide img,
.slide video {
  display: block;
  width: 100%;
  height: auto;
}

.js .slides {
  display: grid;
  aspect-ratio: 5 / 3;
}

.js .slide {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 400ms var(--ease),
    visibility 0s 400ms;
}

.js .slide.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.js .slide img,
.js .slide video {
  height: 100%;
  object-fit: cover;
}

.pills {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.js .pills {
  display: flex;
}

.pill-dots {
  display: flex;
  align-items: center;
}

/* A pill is a short bar inside a 24px target; the one showing is longer and fills as it plays. */
.pill {
  width: 24px;
  height: 24px;
  padding: 11px 4px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 300ms var(--ease);
}

.pill.is-active {
  width: 48px;
}

.pill i {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--line-strong);
  transition: background-color 150ms ease;
}

.pill:not(.is-active):hover i {
  background: var(--fg-3);
}

/* Only transform moves, so the browser never lays the page out again while it runs. */
.pill i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1px;
  background: var(--fg-2);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.pill.is-active i::after {
  opacity: 1;
  animation: pill-fill 6s linear forwards paused;
}

.is-running .pill.is-active i::after {
  animation-play-state: running;
}

/* Stopped with the button, or never started under reduced motion: the bar is simply full. */
.is-stopped .pill.is-active i::after {
  transform: none;
  animation: none;
}

@keyframes pill-fill {
  to {
    transform: none;
  }
}

.pill-toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--fg-3);
  cursor: pointer;
  transition: color 150ms ease;
}

.pill-toggle:hover {
  color: var(--fg);
}

.pill-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill-toggle .icon-play,
.is-stopped .pill-toggle .icon-pause {
  display: none;
}

.is-stopped .pill-toggle .icon-play {
  display: block;
  fill: currentColor;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }
}

/* Narrow screens */

@media (max-width: 1000px) {
  .cards,
  .downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  /* One column: brand, links, copyright and the notice stack in the middle. */
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-line {
    justify-self: center;
    text-align: center;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 16px;
  }

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

  .split {
    gap: 40px;
  }

  .split-flip .split-copy {
    order: 0;
  }

  .split + .split {
    margin-top: 96px;
  }

  /* On a phone the phone stands alone, without the desktop behind it. */
  .phone-stage {
    display: flex;
    justify-content: center;
  }

  .phone-stage .window {
    display: none;
  }

  .phone {
    position: relative;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding-top: 64px;
  }

  .section {
    padding: 80px 0;
  }

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

  .gateways {
    --per-row: 3;
  }

  .trust {
    flex-direction: column;
    align-items: center;
  }

  .trust li + li::before {
    content: none;
  }
}

/* The landing pages (claude-code/, codex/, …): cards without icons, a narrow column for the
   steps, and the links between pages. */
.wrap-narrow {
  max-width: 720px;
}

.cards-plain .card h3 {
  margin-top: 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 14px;
}

.footer-links a,
a.agent-name {
  color: var(--fg-2);
  text-decoration: none;
}

a.agent-name {
  color: var(--fg);
}

.footer-links a:hover,
a.agent-name:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
