/* Calm classic: one centred hero over a real window, then short sections. Colours come from the tokens. */

:root {
  --openbelt-color-neutral: var(--openbelt-color-backdrop);
  --card: var(--openbelt-color-surface);
  --card-2: var(--openbelt-color-subtle);
  --window: var(--openbelt-color-surface);
  --hairline: color-mix(in srgb, var(--openbelt-color-primary) 12%, transparent);
  --tile: var(--openbelt-color-surface);
  --page: min(1080px, 100% - 48px);
  --gap-section: 160px;
}

:root[data-theme="light"] {
  --card: var(--openbelt-color-subtle);
  --card-2: var(--openbelt-color-sidebar-selected);
  --window: var(--openbelt-color-subtle);
  --hairline: color-mix(in srgb, var(--openbelt-color-primary) 14%, transparent);
  --tile: var(--openbelt-color-subtle);
}

html {
  scroll-padding-top: 72px;
}

body {
  overflow-x: clip;
  background: var(--openbelt-color-backdrop);
}

.only-light {
  display: none;
}

/* App screenshots are light on the dark page and dark on the light page, so they stand off it;
   the light ones are dimmed a little so they don't glare. */
:root:not([data-theme="light"]) .window .only-dark,
:root:not([data-theme="light"]) .window picture.only-dark img {
  filter: brightness(0.94);
}

:root[data-theme="light"] .only-dark {
  display: none;
}

:root[data-theme="light"] .only-light {
  display: block;
}

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

p {
  margin: 0;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-inline: max(24px, (100% - 1080px) / 2);
  background: color-mix(in srgb, var(--openbelt-color-backdrop) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--openbelt-space-xs);
}

.nav-brand .badge {
  border-color: transparent;
  background: color-mix(in srgb, var(--openbelt-color-primary) 16%, transparent);
  color: var(--openbelt-color-primary);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: var(--openbelt-space-2xs);
  margin-right: -10px;
}

.nav nav a {
  padding: 7px 11px;
  border-radius: var(--openbelt-radius-full);
  color: var(--openbelt-color-muted);
  font: var(--openbelt-type-label);
  font-size: 14px;
  text-decoration: none;
}

.nav nav a.nav-signin {
  margin-left: var(--openbelt-space-xs);
  background: color-mix(in srgb, var(--openbelt-color-primary) 9%, transparent);
  color: var(--openbelt-color-primary);
}

/* Controls: hover lifts the tone, press gives a little. */

.logo,
.nav nav a,
.pill,
.copy-command,
.faq summary,
.foot nav a {
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--openbelt-duration) var(--openbelt-ease),
    color var(--openbelt-duration) var(--openbelt-ease),
    opacity var(--openbelt-duration) var(--openbelt-ease),
    transform var(--openbelt-duration) var(--openbelt-ease);
}

@media (hover: hover) {
  .nav nav a:hover {
    background: color-mix(in srgb, var(--openbelt-color-primary) 8%, transparent);
    color: var(--openbelt-color-primary);
  }

  .nav nav a.nav-signin:hover {
    background: color-mix(in srgb, var(--openbelt-color-primary) 15%, transparent);
  }

  .logo:hover {
    opacity: 0.8;
  }
}

.nav nav a:active {
  background: color-mix(in srgb, var(--openbelt-color-primary) 14%, transparent);
  transform: scale(0.96);
  transition-duration: 60ms;
}

.logo:active {
  opacity: 0.6;
}

/* Pills: the page's buttons, at the copy pill's height or smaller. */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--openbelt-space-xs);
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--openbelt-radius-full);
  font: 550 15px/1 var(--openbelt-font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.pill-solid {
  background: var(--openbelt-color-primary);
  color: var(--openbelt-color-on-primary);
}

/* Sections set --pill-bg; hover and press mix the primary into it, so they show on every section. */
.pill-soft {
  --pill-bg: color-mix(in srgb, var(--openbelt-color-primary) 10%, transparent);
  background: var(--pill-bg);
  color: var(--openbelt-color-primary);
}

@media (hover: hover) {
  .pill-solid:hover {
    background: color-mix(
      in srgb,
      var(--openbelt-color-primary) 86%,
      var(--openbelt-color-backdrop)
    );
  }

  .pill-soft:hover {
    background: color-mix(in srgb, var(--openbelt-color-primary) 8%, var(--pill-bg));
  }
}

.pill:active {
  transform: scale(0.96);
  transition-duration: 60ms;
}

.pill-solid:active {
  background: color-mix(in srgb, var(--openbelt-color-primary) 76%, var(--openbelt-color-backdrop));
}

.pill-soft:active {
  background: color-mix(in srgb, var(--openbelt-color-primary) 14%, var(--pill-bg));
}

/* A link on its way to the next page stays pressed and breathes until it paints. */
.going {
  cursor: progress;
  transform: scale(0.96);
}

@media (prefers-reduced-motion: no-preference) {
  .going {
    animation: going 0.6s var(--openbelt-ease) 0.12s infinite alternate;
  }
}

@keyframes going {
  to {
    opacity: 0.6;
  }
}

/* Copy prompt (the live page's pill) */

.copy-prompt {
  position: relative;
  display: inline-grid;
  place-items: center;
  height: 56px;
  padding: 0 26px 0 22px;
  border: 0;
  border-radius: var(--openbelt-radius-full);
  background: var(--openbelt-color-primary);
  color: var(--openbelt-color-on-primary);
  font: 550 16px/1 var(--openbelt-font-body);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.2s var(--openbelt-ease),
    background-color var(--openbelt-duration) var(--openbelt-ease);
}

.copy-idle,
.copy-done {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  transition:
    opacity 0.16s,
    transform 0.24s var(--openbelt-ease);
}

.copy-idle {
  gap: 14px;
}

.copy-done {
  gap: var(--openbelt-space-xs);
  opacity: 0;
  transform: translateY(8px);
}

.copy-done .icon {
  color: var(--openbelt-color-success);
  stroke-width: 2.5;
}

:root:not([data-theme="light"]) .copy-done .icon {
  color: color-mix(in srgb, var(--openbelt-color-success) 60%, var(--openbelt-color-on-primary));
}

.copy-prompt.copied .copy-idle {
  opacity: 0;
  transform: translateY(-8px);
}

.copy-prompt.copied .copy-done {
  opacity: 1;
  transform: none;
}

.copy-marks {
  display: inline-flex;
  align-items: center;
  gap: var(--openbelt-space-2xs);
  transition: gap 0.24s var(--openbelt-ease);
}

.copy-marks i {
  width: 18px;
  height: 18px;
  background: currentcolor;
  mask: var(--mark) center / contain no-repeat;
  transform: rotate(-7deg);
  transition: transform 0.24s var(--openbelt-ease);
}

.copy-marks i:nth-child(even),
.copy-marks img:nth-child(even) {
  transform: rotate(7deg) translateY(1px);
}

.copy-marks img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transform: rotate(-7deg);
  transition: transform 0.24s var(--openbelt-ease);
}

/* The black marks sit on the light pill in dark mode; on the dark pill in light mode they turn white. */
:root:not([data-theme="light"]) .copy-marks img {
  filter: invert(1);
}

@media (hover: hover) {
  .copy-prompt:hover {
    background: color-mix(
      in srgb,
      var(--openbelt-color-primary) 88%,
      var(--openbelt-color-backdrop)
    );
  }

  .copy-prompt:hover .copy-marks {
    gap: 9px;
  }

  .copy-prompt:hover .copy-marks > * {
    transform: none;
  }
}

.copy-prompt:active {
  background: color-mix(in srgb, var(--openbelt-color-primary) 78%, var(--openbelt-color-backdrop));
  transform: scale(0.96);
  transition-duration: 60ms;
}

.copy-states {
  display: inline-grid;
}

.copy-states > span {
  grid-area: 1 / 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--openbelt-space-xs);
}

.copy-states > span:last-child,
.copied .copy-states > span:first-child {
  visibility: hidden;
}

.copied .copy-states > span:last-child {
  visibility: visible;
}

/* Hero */

.hero {
  display: grid;
  justify-items: center;
  padding-top: clamp(56px, 9vh, 104px);
  text-align: center;
}

.hero h1 {
  max-width: 12ch;
  font: var(--openbelt-type-hero);
  font-size: clamp(50px, 8.6vw, 104px);
  line-height: 1;
  letter-spacing: var(--openbelt-tracking-hero);
  text-wrap: balance;
}

.hero .lede {
  max-width: 34em;
  margin-top: var(--openbelt-space-lg);
  padding-inline: 24px;
  color: var(--openbelt-color-muted);
  font: var(--openbelt-type-body-lg);
  font-size: clamp(17px, 1.5vw, 20px);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--openbelt-space-sm);
  margin-top: var(--openbelt-space-xl);
}

.hero-actions .pill {
  height: 56px;
  padding: 0 26px;
  font-size: 16px;
}

.hero-note {
  margin-top: var(--openbelt-space-md);
  padding-inline: 24px;
  color: var(--openbelt-color-muted);
  font: var(--openbelt-type-body-md);
  text-wrap: balance;
}

/* The window rises from the fold: wider than the page, its top showing on the first screen. */
.hero-shot {
  width: min(1200px, 100% - 48px);
  margin: clamp(56px, 8vh, 80px) 0 0;
}

.window {
  overflow: hidden;
  border-radius: var(--openbelt-radius-lg);
  background: var(--window);
  box-shadow: 0 0 0 0.5px var(--hairline);
}

:where(.window img, .window picture) {
  display: block;
}

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

/* Sections */

main > section.block {
  width: var(--page);
  margin: var(--gap-section) auto 0;
}

.block h2 {
  max-width: 20ch;
  font: var(--openbelt-type-h1);
  font-size: clamp(32px, 3.6vw, 44px);
  letter-spacing: var(--openbelt-tracking-h1);
}

.block .line {
  max-width: 40em;
  margin-top: var(--openbelt-space-sm);
  color: var(--openbelt-color-muted);
  font: var(--openbelt-type-body-lg);
}

.block > .line + *,
.block > h2 + :not(.line) {
  margin-top: var(--openbelt-space-2xl);
}

.card {
  border-radius: var(--openbelt-radius-lg);
  background: var(--card);
}

.card h3,
.team-list h3 {
  font: var(--openbelt-type-h5);
  letter-spacing: var(--openbelt-tracking-h5);
}

.card p,
.team-list p {
  margin-top: 6px;
  color: var(--openbelt-color-muted);
  font: var(--openbelt-type-body-md);
  font-size: 15px;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--openbelt-space-md);
}

.steps .card {
  display: flex;
  flex-direction: column;
  padding: var(--openbelt-space-lg);
}

.num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: var(--openbelt-space-2xl);
  border-radius: 50%;
  corner-shape: round;
  background: var(--openbelt-color-primary);
  color: var(--openbelt-color-on-primary);
  font: 600 14px/1 var(--openbelt-font-mono);
}

.copy-command {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  height: 36px;
  margin-top: var(--openbelt-space-md);
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: var(--openbelt-radius-md);
  background: var(--openbelt-color-backdrop);
  color: var(--openbelt-color-primary);
  font: var(--openbelt-type-mono-sm);
  cursor: pointer;
}

.copy-command code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-command .dollar,
.copy-command .icon {
  flex: none;
  color: var(--openbelt-color-muted);
}

.copy-command .icon-check,
.copy-command.copied .icon-copy {
  display: none;
}

.copy-command.copied .icon-check {
  display: inline-block;
  color: var(--openbelt-color-success);
}

@media (hover: hover) {
  .copy-command:hover .icon-copy {
    color: var(--openbelt-color-primary);
  }

  .copy-command:hover {
    background: color-mix(in srgb, var(--openbelt-color-backdrop) 70%, var(--card-2));
  }
}

.copy-command:active {
  transform: scale(0.97);
  transition-duration: 60ms;
}

/* No walled garden */

.compare {
  display: grid;
  overflow: hidden;
  border-radius: var(--openbelt-radius-lg);
  clip-path: var(--openbelt-squircle-lg);
  background: var(--card);
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  align-items: center;
}

.compare-head > span,
.compare-row > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 var(--openbelt-space-lg);
}

.compare-head > span {
  min-height: 56px;
  color: var(--openbelt-color-muted);
  font: var(--openbelt-type-label);
}

.compare .ours {
  align-self: stretch;
  background: var(--card-2);
  color: var(--openbelt-color-primary);
}

.compare-head .ours {
  font-weight: 650;
}

.compare-row [role="rowheader"] {
  font: 550 15px/1.3 var(--openbelt-font-body);
}

.compare-row .theirs {
  color: var(--openbelt-color-muted);
  font-size: 15px;
}

.compare-row .ours {
  font-size: 15px;
}

.compare-row .theirs .icon {
  color: var(--openbelt-color-muted);
  opacity: 0.7;
}

.compare-row .ours .icon {
  color: var(--openbelt-color-success);
  stroke-width: 2;
}

.compare-row + .compare-row > span:not(.ours) {
  box-shadow: inset 0 0.5px 0 var(--hairline);
}

.compare-row + .compare-row > .ours {
  box-shadow: inset 0 0.5px 0 var(--hairline);
}

.compare-cards {
  display: none;
}

/* Connections */

.marks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--openbelt-space-sm);
}

.marks li,
.hosts li,
.agent-row li {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22%;
  background: var(--tile);
}

.marks img,
.hosts img,
.agent-row img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* White marks turn dark on paper; black ones turn light on black. */
:root[data-theme="light"] img.flip {
  filter: invert(1);
}

:root:not([data-theme="light"]) img.ink {
  filter: invert(1);
}

.block .marks + .screen {
  margin-top: var(--openbelt-space-xl);
}

/* Built in */

.grid.six {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--openbelt-space-md);
}

.grid.six .card {
  padding: var(--openbelt-space-lg);
}

.grid.six .icon {
  width: 22px;
  height: 22px;
  margin-bottom: var(--openbelt-space-xl);
}

/* Team */

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--openbelt-space-xl) var(--openbelt-space-2xl);
}

.team-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--openbelt-space-md);
  align-items: start;
}

.team-list .icon {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: var(--openbelt-radius-md);
  clip-path: var(--openbelt-squircle-md);
  background: var(--card);
}

.team-list p {
  margin-top: 4px;
}

.team-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--openbelt-space-md);
  margin-top: var(--openbelt-space-2xl);
}

.team-analytics {
  margin-top: var(--openbelt-space-md);
}

/* Open source */

.panel {
  border-radius: calc(var(--openbelt-radius-lg) * 1.6);
  background: var(--card);
}

.oss {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: var(--openbelt-space-2xl);
  align-items: center;
  padding: var(--openbelt-space-3xl);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--openbelt-space-sm);
  margin-top: var(--openbelt-space-xl);
}

.row-actions.center {
  justify-content: center;
}

.oss .pill-soft {
  --pill-bg: color-mix(in srgb, var(--openbelt-color-primary) 9%, var(--card));
}

.hosts {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: var(--openbelt-space-sm);
}

.hosts li {
  width: 72px;
  height: 72px;
  background: var(--openbelt-color-backdrop);
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--openbelt-space-md);
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: var(--openbelt-space-xl);
}

.plan-featured {
  background: var(--card-2);
}

.plan .price-unit {
  color: var(--openbelt-color-muted);
  font: var(--openbelt-type-body-md);
  letter-spacing: 0;
}

.plan h3 {
  color: var(--openbelt-color-muted);
  font: var(--openbelt-type-label);
  font-size: 15px;
}

.plan .price {
  margin-top: var(--openbelt-space-xs);
  font: var(--openbelt-type-h1);
  letter-spacing: var(--openbelt-tracking-h1);
}

.plan .plan-line {
  margin-top: var(--openbelt-space-xs);
  font-size: 15px;
}

.plan .pill {
  align-self: start;
  margin-top: var(--openbelt-space-lg);
  height: 44px;
}

.plan .pill-soft {
  --pill-bg: color-mix(in srgb, var(--openbelt-color-primary) 9%, var(--card));
}

.plan ul {
  display: grid;
  gap: var(--openbelt-space-sm);
  margin-top: var(--openbelt-space-xl);
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.plan li .icon {
  flex: none;
  margin-top: 2px;
  color: var(--openbelt-color-success);
  stroke-width: 2;
}

/* Questions */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr);
  gap: var(--openbelt-space-2xl);
  align-items: start;
}

.block.faq > h2 + .faq-list {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: var(--openbelt-space-xs);
}

.faq details {
  border-radius: var(--openbelt-radius-lg);
  clip-path: var(--openbelt-squircle-lg);
  background: var(--card);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--openbelt-space-md);
  padding: 18px var(--openbelt-space-lg);
  border-radius: var(--openbelt-radius-lg);
  font: 550 16px/1.35 var(--openbelt-font-body);
  list-style: none;
  cursor: pointer;
}

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

.faq summary .icon {
  flex: none;
  color: var(--openbelt-color-muted);
  transition: transform var(--openbelt-duration) var(--openbelt-ease);
}

.faq details[open] summary .icon {
  transform: rotate(90deg);
}

@media (hover: hover) {
  .faq summary:hover {
    background: var(--card-2);
  }
}

.faq summary:active {
  background: color-mix(in srgb, var(--card-2) 70%, var(--openbelt-color-primary) 6%);
}

.faq details p {
  max-width: 60ch;
  padding: 0 var(--openbelt-space-lg) var(--openbelt-space-lg);
  color: var(--openbelt-color-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Closing call to action */

.final {
  display: grid;
  justify-items: center;
  padding: var(--openbelt-space-4xl) var(--openbelt-space-xl);
  text-align: center;
}

.final h2 {
  max-width: 14ch;
  margin-top: var(--openbelt-space-2xl);
  font: var(--openbelt-type-display);
  font-size: clamp(40px, 5.6vw, 67px);
  letter-spacing: var(--openbelt-tracking-display);
}

.agent-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--openbelt-space-sm);
}

.agent-row li {
  width: 56px;
  height: 56px;
  background: var(--openbelt-color-backdrop);
}

.agent-row img {
  width: 26px;
  height: 26px;
}

.final .pill {
  height: 52px;
  padding: 0 24px;
}

.final .pill-soft {
  --pill-bg: color-mix(in srgb, var(--openbelt-color-primary) 9%, var(--card));
}

/* Footer */

.foot {
  margin-top: var(--gap-section);
  background: var(--openbelt-color-sidebar);
}

.foot-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: var(--openbelt-space-xl);
  width: var(--page);
  margin-inline: auto;
  padding-block: var(--openbelt-space-3xl);
}

.foot-brand {
  display: grid;
  gap: var(--openbelt-space-sm);
  align-content: start;
}

.foot .foot-heading {
  margin-bottom: var(--openbelt-space-sm);
  font: var(--openbelt-type-label);
}

.foot ul {
  display: grid;
  gap: var(--openbelt-space-xs);
}

.foot nav a {
  color: var(--openbelt-color-muted);
  text-decoration: none;
}

@media (hover: hover) {
  .foot nav a:hover {
    color: var(--openbelt-color-primary);
  }
}

.foot nav a:active {
  opacity: 0.6;
}

/* Sections ease in once, quickly. Only with script and motion; otherwise they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  .js main > section.block {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.32s var(--openbelt-ease),
      transform 0.32s var(--openbelt-ease);
  }

  .js main > section.block.in {
    opacity: 1;
    transform: none;
  }
}

/* Tablet */

@media (max-width: 960px) {
  :root {
    --gap-section: 120px;
  }

  .nav nav a.wide {
    display: none;
  }

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

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

  .hosts {
    grid-template-columns: repeat(6, 64px);
  }

  .hosts li {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 820px) {
  .team-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phone */

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 32px);
    --gap-section: 104px;
  }

  html {
    scroll-padding-top: 58px;
  }

  .nav {
    height: 50px;
    padding-inline: 16px;
  }

  .nav-brand {
    gap: 6px;
  }

  .nav .logo {
    --logo-size: 18px;
  }

  .nav-brand .badge {
    height: 18px;
    padding: 0 7px;
    font-size: 11px;
  }

  .nav nav {
    margin-right: 0;
  }

  .nav nav a.nav-signin {
    padding: 6px 11px;
    font-size: 13px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    padding-inline: 16px;
    font-size: clamp(46px, 13.4vw, 60px);
    line-height: 1.02;
  }

  .hero .lede {
    padding-inline: 20px;
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: calc(100% - 48px);
    max-width: 340px;
    margin-top: var(--openbelt-space-xl);
  }

  .hero-actions .pill,
  .copy-prompt {
    height: 54px;
  }

  .hero-note {
    padding-inline: 20px;
    font-size: 13px;
  }

  .hero-shot {
    width: auto;
    margin-top: 56px;
  }

  .block .line {
    font-size: 16px;
  }

  .block > .line + *,
  .block > h2 + :not(.line) {
    margin-top: var(--openbelt-space-xl);
  }

  .steps,
  .grid.six,
  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--openbelt-space-sm);
  }

  .num {
    margin-bottom: var(--openbelt-space-lg);
  }

  .grid.six .icon {
    margin-bottom: var(--openbelt-space-md);
  }

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

  .grid.six .card {
    padding: var(--openbelt-space-md);
  }

  .grid.six .card h3 {
    font-size: 16px;
  }

  .grid.six .card p {
    font-size: 14px;
  }

  /* On a phone the compare table becomes two clean stacked cards, each full width. */
  .compare {
    display: none;
  }

  .compare-cards {
    display: grid;
    gap: var(--openbelt-space-sm);
    margin-top: var(--openbelt-space-xl);
  }

  .compare-card {
    padding: 20px;
    border-radius: var(--openbelt-radius-lg);
  }

  .compare-card.theirs {
    background: var(--card);
  }

  .compare-card.ours {
    background: var(--card-2);
  }

  .compare-card h3 {
    margin-bottom: 14px;
    font: var(--openbelt-type-label);
    font-size: 14px;
  }

  .compare-card.theirs h3 {
    color: var(--openbelt-color-muted);
  }

  .compare-card.ours h3 {
    color: var(--openbelt-color-primary);
    font: var(--openbelt-type-h5);
    font-size: 16px;
  }

  .compare-card ul {
    display: grid;
    gap: 12px;
  }

  .compare-card li {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
  }

  .compare-card.theirs li {
    color: var(--openbelt-color-muted);
  }

  .compare-card.ours li {
    color: var(--openbelt-color-primary);
  }

  .compare-card .icon {
    flex: none;
    margin-top: 3px;
  }

  .compare-card.theirs .icon {
    color: var(--openbelt-color-muted);
    opacity: 0.65;
  }

  .compare-card.ours .icon {
    color: var(--openbelt-color-success);
    stroke-width: 2;
  }

  .marks {
    gap: var(--openbelt-space-xs);
  }

  .marks li {
    width: calc((100% - 4 * 8px) / 5);
    height: auto;
    aspect-ratio: 1;
  }

  .marks img {
    width: 44%;
    height: 44%;
  }

  .team-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--openbelt-space-lg);
  }

  .team-pair {
    gap: var(--openbelt-space-sm);
    margin-top: var(--openbelt-space-xl);
  }

  .team-analytics {
    margin-top: var(--openbelt-space-sm);
  }

  .oss {
    padding: var(--openbelt-space-xl) var(--openbelt-space-lg);
  }

  .hosts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--openbelt-space-xs);
  }

  .hosts li {
    width: auto;
    height: auto;
    aspect-ratio: 1;
  }

  .hosts img {
    width: 50%;
    height: 50%;
  }

  .row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .plan {
    padding: 20px;
  }

  .plan .price {
    font-size: 34px;
  }

  .plan .pill {
    align-self: stretch;
    margin-top: var(--openbelt-space-md);
  }

  .plan ul {
    gap: 10px;
    margin-top: var(--openbelt-space-lg);
  }

  .plan li {
    font-size: 14px;
  }

  .faq summary {
    padding: 16px;
    font-size: 15px;
  }

  .faq details p {
    padding: 0 16px 16px;
  }

  .final {
    padding: var(--openbelt-space-3xl) var(--openbelt-space-lg);
  }

  .agent-row {
    gap: var(--openbelt-space-xs);
  }

  .agent-row li {
    width: 44px;
    height: 44px;
  }

  .agent-row img {
    width: 22px;
    height: 22px;
  }

  .final .row-actions {
    width: 100%;
    max-width: 320px;
  }

  .foot-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: var(--openbelt-space-2xl);
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* The system's card and panel carry an outline; here they are solid fills only. */
.card,
.panel {
  border: 0;
}

.plan .price {
  color: var(--openbelt-color-primary);
}

picture.only-dark {
  display: contents;
}

:root[data-theme="light"] picture.only-dark {
  display: none;
}

:root[data-theme="light"] picture.only-light {
  display: contents;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* Live cursors over the posters canvas: calm drifts with short pauses. */
.steps-shot {
  position: relative;
}

.live-cursors {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.live-cursors .cursor {
  position: absolute;
  display: inline-flex;
  align-items: flex-start;
  will-change: left, top;
  animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.live-cursors.is-active .cursor {
  animation-play-state: running;
}

.cursor .ptr {
  width: 15px;
  height: 17px;
  fill: var(--c);
  stroke: white;
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px color-mix(in srgb, black 35%, transparent));
}

.cursor .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 12px 0 0 -2px;
  padding: 3px 8px 3px 4px;
  border-radius: var(--openbelt-radius-full);
  corner-shape: round;
  background: var(--c);
  color: var(--ink);
  font: 600 11px/1.1 var(--openbelt-font-body);
  white-space: nowrap;
  box-shadow: 0 2px 8px color-mix(in srgb, black 24%, transparent);
}

.cursor .bot-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  width: 15px;
  height: 11px;
  border-radius: calc(var(--openbelt-radius-sm) * 0.4);
  background: color-mix(in srgb, black 90%, white);
}

.cursor .bot-face i {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  corner-shape: round;
  background: var(--c);
}

.cursor .init {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  corner-shape: round;
  background: var(--openbelt-color-art-coral);
  color: color-mix(in srgb, black 90%, white);
  font: 700 8px/1 var(--openbelt-font-body);
}

.c-pia {
  --c: var(--openbelt-color-art-coral);
  --ink: color-mix(in srgb, black 90%, white);
  left: 17%;
  top: 44%;
  animation-name: drift-pia;
  animation-duration: 15s;
}

.c-maya {
  --c: color-mix(in srgb, black 90%, white);
  --ink: white;
  left: 38%;
  top: 56%;
  animation-name: drift-maya;
  animation-duration: 13s;
  animation-delay: -3s;
}

.c-tali {
  --c: var(--openbelt-color-art-teal);
  --ink: color-mix(in srgb, black 90%, white);
  left: 64%;
  top: 45%;
  animation-name: drift-tali;
  animation-duration: 16s;
  animation-delay: -6s;
}

.c-bix {
  --c: var(--openbelt-color-art-blue);
  --ink: color-mix(in srgb, black 90%, white);
  left: 82%;
  top: 44%;
  animation-name: drift-bix;
  animation-duration: 14s;
  animation-delay: -9s;
}

@keyframes drift-pia {
  0%,
  14%,
  100% {
    left: 17%;
    top: 44%;
  }
  34%,
  50% {
    left: 13%;
    top: 65%;
  }
  68%,
  84% {
    left: 8%;
    top: 50%;
  }
}

@keyframes drift-maya {
  0%,
  16%,
  100% {
    left: 38%;
    top: 56%;
  }
  36%,
  52% {
    left: 41%;
    top: 69%;
  }
  70%,
  84% {
    left: 33%;
    top: 43%;
  }
}

@keyframes drift-tali {
  0%,
  15%,
  100% {
    left: 64%;
    top: 45%;
  }
  35%,
  50% {
    left: 57%;
    top: 67%;
  }
  70%,
  85% {
    left: 65%;
    top: 58%;
  }
}

@keyframes drift-bix {
  0%,
  16%,
  100% {
    left: 82%;
    top: 44%;
  }
  36%,
  52% {
    left: 84%;
    top: 66%;
  }
  70%,
  84% {
    left: 78%;
    top: 58%;
  }
}

@media (max-width: 640px) {
  .c-pia {
    display: none;
  }

  .cursor .ptr {
    width: 13px;
    height: 15px;
  }

  .cursor .tag {
    margin: 10px 0 0 -2px;
    padding: 2.5px 7px 2.5px 3.5px;
    font-size: 10px;
  }

  .c-maya {
    left: 28%;
    top: 46%;
    animation-name: drift-maya-m;
  }

  .c-tali {
    left: 72%;
    top: 26%;
    animation-name: drift-tali-m;
  }

  .c-bix {
    left: 60%;
    top: 76%;
    animation-name: drift-bix-m;
  }
}

@keyframes drift-maya-m {
  0%,
  16%,
  100% {
    left: 28%;
    top: 46%;
  }
  36%,
  52% {
    left: 32%;
    top: 73%;
  }
  70%,
  84% {
    left: 18%;
    top: 26%;
  }
}

@keyframes drift-tali-m {
  0%,
  15%,
  100% {
    left: 72%;
    top: 26%;
  }
  35%,
  50% {
    left: 62%;
    top: 68%;
  }
  70%,
  85% {
    left: 74%;
    top: 50%;
  }
}

@keyframes drift-bix-m {
  0%,
  16%,
  100% {
    left: 60%;
    top: 76%;
  }
  36%,
  52% {
    left: 60%;
    top: 34%;
  }
  70%,
  84% {
    left: 20%;
    top: 68%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-cursors .cursor {
    animation: none !important;
  }
}

/* A part of the page that stays dark even in light mode: the tunnel frame is dark. */
:root[data-theme="light"] .dark-scope {
  color-scheme: dark;
  --openbelt-color-primary: color-mix(in srgb, white 97%, black);
  --openbelt-color-on-primary: color-mix(in srgb, black 95%, white);
  --openbelt-color-action: color-mix(in srgb, black 80%, white);
  --openbelt-color-on-action: color-mix(in srgb, white 97%, black);
  --openbelt-color-neutral: black;
  --openbelt-color-backdrop: black;
  --openbelt-color-surface: color-mix(in srgb, black 91%, white);
  --openbelt-color-subtle: color-mix(in srgb, black 87%, white);
  --openbelt-color-muted: color-mix(in srgb, white 64%, black);
  color: var(--openbelt-color-primary);
}

.dark-scope .copy-marks img {
  filter: invert(1);
}

.dark-scope .copy-done .icon {
  color: color-mix(in srgb, var(--openbelt-color-success) 60%, var(--openbelt-color-on-primary));
}

.home-shot {
  width: 100%;
  margin: var(--openbelt-space-2xl) 0 0;
}

.steps-shot {
  margin-top: var(--openbelt-space-md);
}

/* The stage: the tunnel frame fills the first screen, under the nav. */
.stage {
  position: relative;
  min-height: 100svh;
  margin-top: -64px;
  padding-top: 64px;
  overflow: hidden;
  background: black;
}

.stage-bg,
.stage-bg picture,
.stage-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-bg img {
  object-fit: cover;
}

/* The lit eyes, screened over the frame (site.js); it fades in once its layer has loaded. */
.stage-bg canvas.eyes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.stage-bg canvas.eyes.on {
  opacity: 1;
}

.stage-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: 100%;
}

.stage-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.stage .hero-actions .pill-soft {
  --pill-bg: var(--openbelt-color-subtle);
}

.nav.dark-scope {
  background: color-mix(in srgb, black 55%, transparent);
}

.stage.tunnel {
  display: grid;
  place-items: center;
}

.stage.tunnel .stage-copy {
  padding-block: 24px 40px;
}

.stage.tunnel .stage-copy::before {
  top: 50%;
  left: 50%;
  width: min(1040px, 92vw);
  aspect-ratio: 1.3 / 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, black 56%, transparent);
}

@media (max-width: 640px) {
  .stage {
    margin-top: -50px;
    padding-top: 50px;
  }

  .home-shot {
    width: auto;
    margin-top: var(--openbelt-space-xl);
  }

  .stage.tunnel {
    place-items: center;
  }

  .stage.tunnel .stage-copy {
    padding-block: 0 24px;
  }

  .stage.tunnel .stage-copy::before {
    top: 48%;
    width: 118vw;
    aspect-ratio: 1 / 1.22;
    background: radial-gradient(closest-side, black 60%, transparent);
  }

  .window.screen.close {
    width: auto;
    height: auto;
    margin-inline: 0;
    padding: 0;
    border-radius: var(--openbelt-radius-lg);
  }

  .window.screen.close img {
    border-radius: 0;
  }
}

/* Privacy page (/privacy) */
.nav nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin-left: var(--openbelt-space-xs);
  padding: 0 16px;
  border-radius: var(--openbelt-radius-full);
  background: var(--openbelt-color-primary);
  color: var(--openbelt-color-on-primary);
  font: 550 14px/1 var(--openbelt-font-body);
  text-decoration: none;
  white-space: nowrap;
}

.legal {
  width: min(680px, 100% - 32px);
  margin-inline: auto;
  padding-block: var(--openbelt-space-2xl) 96px;
}

.legal h1 {
  margin-bottom: var(--openbelt-space-2xs);
}

.legal h2 {
  margin-top: var(--openbelt-space-2xl);
  margin-bottom: var(--openbelt-space-sm);
  font-size: 20px;
}

.legal ul {
  display: grid;
  gap: var(--openbelt-space-xs);
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.legal a {
  color: var(--openbelt-color-primary);
}

/* Documentation pages (/docs, /docs/<slug>) */

.docs-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: var(--openbelt-space-2xl);
  align-items: start;
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
  padding-block: var(--openbelt-space-2xl) 96px;
}

.docs-sidebar {
  position: sticky;
  top: 84px;
}

.docs-mobile-nav {
  display: none;
}

.docs-group + .docs-group {
  margin-top: var(--openbelt-space-lg);
}

.docs-group-title {
  margin: 0 0 var(--openbelt-space-xs);
  color: var(--openbelt-color-muted);
  font: var(--openbelt-type-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-sidebar ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-sidebar a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--openbelt-radius-sm);
  color: var(--openbelt-color-muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.docs-sidebar a[aria-current="page"] {
  background: var(--card);
  color: var(--openbelt-color-primary);
  font-weight: 550;
}

@media (hover: hover) {
  .docs-sidebar a:hover {
    color: var(--openbelt-color-primary);
  }
}

.docs-prose {
  min-width: 0;
  max-width: 74ch;
  line-height: 1.65;
}

.docs-prose h1 {
  margin-bottom: var(--openbelt-space-md);
}

.docs-prose h2 {
  margin-top: var(--openbelt-space-2xl);
  margin-bottom: var(--openbelt-space-sm);
  font-size: 22px;
}

.docs-prose h3 {
  margin-top: var(--openbelt-space-xl);
  margin-bottom: var(--openbelt-space-xs);
  font-size: 17px;
}

.docs-prose p,
.docs-prose ul,
.docs-prose ol,
.docs-prose pre,
.docs-prose table,
.docs-prose blockquote {
  margin-block: 0 var(--openbelt-space-md);
}

.docs-prose ul,
.docs-prose ol {
  display: grid;
  gap: var(--openbelt-space-xs);
  padding-left: 22px;
}

.docs-prose ul {
  list-style: disc;
}

.docs-prose ol {
  list-style: decimal;
}

.docs-prose a {
  color: var(--openbelt-color-primary);
  text-underline-offset: 2px;
}

.docs-prose code {
  padding: 1px 5px;
  border-radius: var(--openbelt-radius-sm);
  clip-path: var(--openbelt-squircle-sm);
  background: var(--card);
  font-family: var(--openbelt-font-mono);
  font-size: 0.9em;
}

.docs-prose pre {
  overflow-x: auto;
  padding: var(--openbelt-space-md);
  border-radius: var(--openbelt-radius-md);
  clip-path: var(--openbelt-squircle-md);
  background: var(--card);
  font-size: 13.5px;
  line-height: 1.55;
}

.docs-prose pre code {
  padding: 0;
  border-radius: 0;
  clip-path: none;
  background: transparent;
  font-size: inherit;
}

.docs-prose table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.docs-prose th,
.docs-prose td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--openbelt-color-border);
  text-align: left;
  vertical-align: top;
}

.docs-prose th {
  color: var(--openbelt-color-muted);
  font: var(--openbelt-type-label);
  font-size: 13px;
}

.docs-prose blockquote {
  padding: var(--openbelt-space-md);
  border-radius: var(--openbelt-radius-md);
  clip-path: var(--openbelt-squircle-md);
  background: var(--card);
  color: var(--openbelt-color-muted);
}

.docs-source {
  margin-top: var(--openbelt-space-2xl);
  padding-top: var(--openbelt-space-md);
  border-top: 1px solid var(--openbelt-color-border);
  font-size: 13.5px;
}

@media (max-width: 820px) {
  .docs-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--openbelt-space-lg);
    padding-top: var(--openbelt-space-lg);
  }

  .docs-sidebar {
    position: static;
  }

  .docs-desktop-nav {
    display: none;
  }

  .docs-mobile-nav {
    display: block;
    padding: 12px 14px;
    border-radius: var(--openbelt-radius-md);
    clip-path: var(--openbelt-squircle-md);
    background: var(--card);
  }

  .docs-mobile-nav summary {
    font: var(--openbelt-type-label);
    cursor: pointer;
  }

  .docs-mobile-nav nav {
    margin-top: var(--openbelt-space-md);
  }
}
