/*
 * Swarm landing, direction D "Product".
 * The product is the hero: real dashboard screenshots in clean frames on a bright page.
 * Colour comes from the dashboard's Line system (theme-line.css): night for structure and
 * actions, green route for done, yellow signal only for "you are here / next step".
 * Light by default on every device; dark only when the reader picks it with the toggle.
 * Pages may use style="…" attributes: the build moves them into page-styles.css (site.mjs).
 */

/* ---------- Fonts (self-hosted, SIL OFL; licences in ../fonts) ---------- */
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-wght-normal.19f9c92546.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.18b2a1a39a.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  src: url('/assets/fonts/atkinson-hyperlegible-mono-latin-wght-normal.2706b1ee4f.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-tint: #eef1f6;
  --surface: #ffffff;
  --ink: #111827;
  --sub: #4b5568;
  --muted: #5f6879;
  --line: #e2e6ec;
  --line-strong: #cfd6e1;
  --control: #8a94a6;
  --night: #14203a;
  --night-hover: #22325a;
  --on-night: #ffffff;
  --route: #12724b;
  --route-rail: #1c8c5e;
  --route-soft: #e7f3ec;
  --signal: #ffc83d;
  --signal-soft: #ffe7a3;
  --warn: #8a5300;
  --warn-soft: #fff5db;
  --mark-dot: #14203a;

  /* The dark band (developers, install block) is night in both themes. */
  --band: #14203a;
  --band-2: #1d2b4b;
  --band-line: #33446a;
  --band-text: #e6ebf4;
  --band-sub: #b3bed3;

  --stage: linear-gradient(180deg, #f3f6fa 0%, #eef2f7 100%);
  --stage-line: #e3e8ef;
  --stage-end: #eef2f7;
  --frame-bar: #f4f6f9;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-card: 0 1px 2px rgba(17, 24, 39, 0.06), 0 10px 28px -14px rgba(17, 24, 39, 0.22);
  --shadow-frame:
    0 1px 1px rgba(17, 24, 39, 0.04), 0 18px 40px -18px rgba(20, 32, 58, 0.28),
    0 50px 90px -50px rgba(20, 32, 58, 0.4);
  --shadow-float:
    0 1px 2px rgba(17, 24, 39, 0.08), 0 16px 36px -12px rgba(20, 32, 58, 0.3),
    0 4px 10px -4px rgba(20, 32, 58, 0.12);

  --font-display: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:
    'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:
    'Atkinson Hyperlegible Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --wrap: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f1626;
  --bg-soft: #131c2f;
  --bg-tint: #18233a;
  --surface: #151f33;
  --ink: #eef2f8;
  --sub: #b9c2d2;
  --muted: #9ba6ba;
  --line: #243150;
  --line-strong: #33446a;
  --control: #6b7ea6;
  --night: #eef2f8;
  --night-hover: #ffffff;
  --on-night: #14203a;
  --route: #3fb884;
  --route-rail: #3fb884;
  --route-soft: #143326;
  --warn: #f0c46a;
  --warn-soft: #2e2512;
  --mark-dot: #eef2f8;
  --band: #0a101d;
  --band-2: #141d31;
  --band-line: #2a3756;
  --stage: linear-gradient(180deg, #162037 0%, #121a2c 100%);
  --stage-line: #243150;
  --stage-end: #121a2c;
  --frame-bar: #1b2640;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-frame: 0 1px 1px rgba(0, 0, 0, 0.3), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -12px rgba(0, 0, 0, 0.65);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  accent-color: var(--night);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
code,
kbd,
pre {
  font-family: var(--font-mono);
}
:not(pre) > code {
  font-size: 0.9em;
  padding: 0.1em 0.38em;
  border-radius: 6px;
  background: var(--bg-tint);
  color: var(--ink);
  overflow-wrap: anywhere;
}
::selection {
  background: var(--signal-soft);
  color: #111827;
}
:focus-visible {
  outline: 2px solid var(--night);
  outline-offset: 3px;
  border-radius: 4px;
}
.band-dark :focus-visible,
.install :focus-visible {
  outline-color: var(--signal);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--night);
  color: var(--on-night);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.btn svg {
  flex: none;
}
.btn-primary {
  background: var(--night);
  color: var(--on-night);
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-primary:hover {
  background: var(--night-hover);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--control);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--ink);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 9px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.link-arrow:hover {
  border-color: var(--ink);
}
.link-arrow svg {
  transition: transform 0.15s;
}
.link-arrow:hover svg {
  transform: translateX(2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Opaque where the browser can't blur what scrolls under it, so code blocks never show through. */
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
  }
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 650 21px/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: 8px;
}
.brand svg {
  flex: none;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--sub);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.15s,
    background-color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}
.nav-links a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
}
.icon-btn:hover {
  border-color: var(--line-strong);
}
.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.gh-link:hover {
  background: var(--bg-soft);
}
.theme-toggle .i-moon,
:root[data-theme='dark'] .theme-toggle .i-sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .i-moon {
  display: block;
}
.menu-btn {
  display: none;
}
.mobile-menu {
  display: none;
}
@media (max-width: 1023px) {
  .nav-links,
  .nav-end .gh-link,
  .nav-end .btn {
    display: none;
  }
  .menu-btn {
    display: inline-grid;
  }
  .nav {
    height: 64px;
    gap: 12px;
  }
  .mobile-menu {
    position: fixed;
    inset: 64px 0 auto 0;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(17, 24, 39, 0.25);
    padding: 8px var(--gutter) 24px;
  }
  .mobile-menu[data-open='true'] {
    display: block;
  }
  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mobile-menu li a {
    display: flex;
    align-items: center;
    min-height: 52px;
    border-bottom: 1px solid var(--line);
    font: 600 18px/1 var(--font-display);
    color: var(--ink);
    text-decoration: none;
  }
  .mobile-menu li a[aria-current='page'] {
    color: var(--route);
  }
  .mobile-menu .menu-ctas {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }
}

/* ---------- Badges, eyebrows ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 14px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.pill b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--route-soft);
  color: var(--route);
  font-size: 13px;
  font-weight: 700;
}
a.pill:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

/* ---------- Install block ---------- */
.install {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  background: var(--band);
  color: var(--band-text);
  border: 1px solid var(--band-line);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.2);
  max-width: 100%;
  min-width: 0;
}
.install pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 14px 4px 14px 18px;
  overflow-x: auto;
  font-size: 14.5px;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: var(--band-line) transparent;
}
.install code {
  font-family: var(--font-mono);
}
.install .ps {
  color: #7fd3a8;
  user-select: none;
  -webkit-user-select: none;
  margin-right: 10px;
}
.install .cm {
  color: var(--band-sub);
}
.copy-btn {
  flex: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 8px 8px 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--band-line);
  background: var(--band-2);
  color: var(--band-text);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.copy-btn:hover {
  border-color: #5a6c94;
}
.copy-btn[data-copied='true'] {
  color: #9be3bd;
  border-color: #2e7a57;
}
.install-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}
.install-note a {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 0;
  overflow: clip;
  isolation: isolate;
}
.hero::before {
  /* The lower part of the hero sits on the soft band the facts strip continues. */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  z-index: -2;
}
.hero::after {
  /* A route line runs across behind the product: done in green, the rest ahead in grey. */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(54% - 1px);
  height: 3px;
  background: linear-gradient(90deg, var(--route-rail) 0 50%, var(--line-strong) 50% 100%);
  opacity: 0.55;
  z-index: -1;
}
.hero-copy {
  max-width: 1200px;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.01;
  letter-spacing: -0.045em;
  font-weight: 620;
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  gap: 48px 56px;
  align-items: end;
  margin-top: 26px;
}
.hero .lead {
  font-size: clamp(17.5px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--sub);
  max-width: 33em;
}
.hero .lead strong {
  color: var(--ink);
  font-weight: 650;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-install .install-note {
  font-size: 14.5px;
}
.install.has-bar {
  flex-direction: column;
}
.install-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 0 16px;
  border-bottom: 1px solid var(--band-line);
  color: var(--band-sub);
  font-size: 14px;
  font-weight: 600;
}
.install-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.install.has-bar .copy-btn {
  margin: 7px 7px 7px 0;
  min-height: 32px;
}
.install.has-bar pre {
  padding: 12px 16px 14px;
  font-size: 14px;
}
.install-note a {
  white-space: nowrap;
}
.hero-visual {
  position: relative;
  margin-top: 44px;
  padding-bottom: 72px;
}
.hero-visual figure {
  position: relative;
  width: min(1280px, calc(100vw - 2 * var(--gutter)));
  margin-inline: auto;
  left: 50%;
  translate: -50% 0;
}

/* Browser frame around a screenshot */
.frame {
  position: relative;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  background: var(--frame-bar);
  border-bottom: 1px solid var(--line);
}
.frame-dots {
  display: flex;
  gap: 7px;
}
.frame-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}
.frame-url {
  flex: 1;
  max-width: 420px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  transform: translateX(-30px);
}
.frame img {
  width: 100%;
}

/* Floating UI cards: single panels of the real dashboard */
.float {
  position: absolute;
  z-index: 2;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-float);
}
.float > img,
.float .clip {
  border-radius: 13px;
  overflow: hidden;
}
.float img {
  width: 100%;
}
.float-label {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #14203a;
  color: #fff;
  font: 600 12.5px/1 var(--font-body);
  box-shadow: 0 6px 16px -6px rgba(20, 32, 58, 0.5);
  white-space: nowrap;
}
.float-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fb884;
}
.float-checkup {
  width: 340px;
  left: -56px;
  bottom: -40px;
}
.float-checkup .float-label {
  top: -14px;
  left: 20px;
}
.float-route {
  width: 280px;
  right: -40px;
  top: 17%;
}
.float-route .clip {
  height: 372px;
  background: #f4f6f9;
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
}
.float-route .float-label {
  top: -14px;
  left: 20px;
}
.hero-phone {
  display: none;
}
@media (max-width: 1400px) {
  .float-checkup {
    left: -12px;
  }
  .float-route {
    right: -12px;
  }
}
@media (max-width: 1100px) {
  .hero-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }
  .hero-install {
    max-width: 600px;
  }
  .float-checkup {
    width: 340px;
    bottom: 6%;
  }
  .float-route {
    width: 240px;
  }
  .float-route .clip {
    height: 320px;
  }
}
@media (max-width: 860px) {
  .float-route {
    display: none;
  }
  .float-checkup {
    left: auto;
    right: -6px;
    bottom: -28px;
    width: min(340px, 52%);
  }
}
@media (max-width: 760px) {
  .br-wide {
    display: none;
  }
}
@media (max-width: 640px) {
  .hero {
    padding-top: 32px;
  }
  .hero h1 {
    font-size: clamp(36px, 10.4vw, 46px);
    letter-spacing: -0.042em;
    margin-top: 20px;
  }
  .hero-row {
    margin-top: 20px;
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
  .hero .lead {
    font-size: 17px;
  }
  .hero-install {
    /* On a phone the product comes first; the commands are in How it works. */
    display: none;
  }
  .hero-visual {
    margin-top: 40px;
    padding-bottom: 64px;
  }
  .hero .frame-desktop {
    display: none;
  }
  .hero-phone {
    display: block;
    position: relative;
    width: min(290px, 78%);
    margin: 0 auto;
    border-radius: 42px;
    padding: 30px 9px 9px;
    background: #0d1424;
    box-shadow:
      var(--shadow-frame),
      inset 0 0 0 1px #2a3756;
  }
  .hero-phone img {
    border-radius: 6px 6px 33px 33px;
    width: 100%;
  }
  .hero-phone::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 64px;
    height: 12px;
    border-radius: 999px;
    background: #1b2640;
    translate: -50% 0;
    z-index: 1;
  }
  .float-checkup {
    right: auto;
    left: 50%;
    translate: -50% 0;
    bottom: 20px;
    width: min(330px, 100%);
  }
  .hero::before {
    height: 40%;
  }
  .hero::after {
    top: 62%;
  }
}

/* ---------- Facts strip ---------- */
.facts {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.facts ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 30px 26px;
  border-left: 1px solid var(--line);
}
.facts li:first-child {
  border-left: 0;
  padding-left: 0;
}
.facts .fi {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--route);
}
.facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.facts span {
  display: block;
  margin-top: 4px;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 1023px) {
  .facts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts li {
    padding: 24px 20px;
    border-top: 1px solid var(--line);
  }
  .facts li:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .facts li:nth-child(-n + 2) {
    border-top: 0;
  }
}
@media (max-width: 560px) {
  .facts ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts li {
    border-left: 0;
    padding: 20px 0;
  }
  .facts li:nth-child(2) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
}
.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--route);
  font-weight: 700;
  font-size: 15px;
}
.kicker::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--route-rail);
}
.center .kicker::before {
  display: none;
}
.h2 {
  font-size: clamp(31px, 3.4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.section-head p {
  margin-top: 18px;
  color: var(--sub);
  font-size: 19px;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .section-head p {
    font-size: 17px;
  }
}

/* ---------- Feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: center;
}
.feature + .feature {
  margin-top: 140px;
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .feature-copy {
  order: 2;
}
.feature-copy .tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--route);
}
.feature-copy .tag svg {
  color: var(--route);
}
.feature-copy h3 {
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.feature-copy > p {
  margin-top: 16px;
  color: var(--sub);
  font-size: 18px;
}
.points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.points li {
  position: relative;
  padding-left: 34px;
  color: var(--sub);
  line-height: 1.55;
}
.points li strong {
  color: var(--ink);
  font-weight: 650;
}
.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--route-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312724b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
:root[data-theme='dark'] .points li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fb884' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.feature-copy .link-arrow {
  margin-top: 28px;
}

/* The stage: a soft panel the screenshots sit on */
.stage {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--stage);
  border: 1px solid var(--stage-line);
  padding: 40px;
  overflow: hidden;
  isolation: isolate;
}
.stage::before {
  /* A fine dotted grid, like squared paper under the product. */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    color-mix(in srgb, var(--sub) 22%, transparent) 1px,
    transparent 1.2px
  );
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
  opacity: 0.6;
  z-index: -1;
}
.shot {
  position: relative;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.shot img {
  width: 100%;
}
.shot.crop {
  /* Shows the top of a panel at its true size instead of shrinking it. */
  overflow: hidden;
}
.shot.crop img {
  max-width: none;
}
.shot.fade {
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
figure {
  margin: 0;
}
figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.stage figcaption {
  position: relative;
}

@media (max-width: 1023px) {
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .feature.flip .feature-copy {
    order: 0;
  }
  .feature + .feature {
    margin-top: 96px;
  }
  .feature-copy {
    max-width: 640px;
  }
}
@media (max-width: 640px) {
  .stage {
    border-radius: 18px;
  }
  .feature-copy > p {
    font-size: 17px;
  }
  .feature + .feature {
    margin-top: 80px;
  }
}

/* Media compositions: screenshots at their real size inside a stage that crops them, with an
   optional second panel layered over the stage's edge. */
.comp {
  position: relative;
}
.stage.bleed {
  padding: 0;
  height: var(--h, 600px);
}
.stage.bleed::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 88px;
  background: linear-gradient(180deg, transparent, var(--stage-end));
  z-index: 2;
  pointer-events: none;
}
.stage.bleed.no-fade::after {
  display: none;
}
.stage.bleed > .shot {
  position: absolute;
  top: 36px;
  left: max(20px, calc(50% - var(--w, 600px) / 2));
}
.stage.bleed > .shot.left {
  left: 36px;
}
.stage.bleed > .shot.second {
  top: var(--top2, 460px);
}
.shot.nat img {
  max-width: none;
}
.comp > .over {
  position: absolute;
  z-index: 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-float);
}
.comp > .over img {
  width: 100%;
}
.comp > .over .clip {
  height: var(--clip, 360px);
  overflow: hidden;
  background: #f4f6f9;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
}
.over-label {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #14203a;
  color: #fff;
  font: 600 12.5px/1 var(--font-body);
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(20, 32, 58, 0.5);
}
.over-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fb884;
}
.comp figcaption {
  margin-top: 16px;
}
@media (max-width: 1023px) {
  .stage.bleed > .shot {
    left: 32px;
  }
}
@media (max-width: 640px) {
  .stage.bleed {
    height: calc(var(--h, 600px) * 0.72);
  }
  .stage.bleed > .shot,
  .stage.bleed > .shot.left {
    top: 18px;
    left: 18px;
  }
  .stage.bleed > .shot.second {
    top: calc(var(--top2, 460px) * 0.72);
  }
  .shot.nat img {
    width: calc(var(--w, 600px) * 0.72) !important;
  }
  .comp > .over {
    position: relative;
    inset: auto !important;
    width: min(var(--ow, 300px), 82%) !important;
    margin: -64px 12px 0 auto;
  }
  .comp > .over-label {
    display: none;
  }
}

/* ---------- Bento (deliverability detail cards) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 72px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.card-body {
  padding: 26px 28px 22px;
}
.card h3,
.card h4 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.card-body p {
  margin-top: 8px;
  color: var(--sub);
  font-size: 16px;
}
.card .peek {
  position: relative;
  margin: auto 0 0 28px;
  height: 260px;
  border-top-left-radius: 12px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-bottom: 0;
  overflow: hidden;
  background: #fff;
}
.card .peek img {
  max-width: none;
}
.card .peek::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92));
}
@media (max-width: 860px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .card-body {
    padding: 22px 20px 18px;
  }
  .card .peek {
    margin-left: 20px;
    height: 220px;
  }
}

/* ---------- Steps (how it works) ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps::before {
  /* The route that joins the three stops */
  content: '';
  position: absolute;
  top: 13px;
  left: 14px;
  right: calc(33.333% - 14px);
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}
.step {
  position: relative;
  counter-increment: step;
}
.stop {
  position: relative;
  display: block;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  background: var(--bg);
}
.step.is-next .stop {
  border: 0;
  background: var(--signal);
}
.step.is-next .stop::after {
  content: '';
  position: absolute;
  inset: 9.5px;
  border-radius: 50%;
  background: #14203a;
}
.step-num {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.step h3 {
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.step > p {
  margin-top: 10px;
  color: var(--sub);
}
.step .install,
.step .mini {
  margin-top: 20px;
}
.step .install pre {
  font-size: 13.5px;
  padding: 12px 4px 12px 14px;
}
.step .mini {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--sub);
}
.mini .services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.mini .services span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg);
}
.mini .services span em {
  margin-left: 6px;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-left: 46px;
  }
  .steps::before {
    top: 14px;
    bottom: 40px;
    left: 13px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .stop {
    position: absolute;
    left: -46px;
    top: 0;
  }
  .step-num {
    margin-top: 2px;
  }
}

/* ---------- Comparison ---------- */
.compare-wrap {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.compare th,
.compare td {
  padding: 20px 26px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.compare thead th {
  border-top: 0;
  padding-block: 22px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  background: var(--bg-soft);
}
.compare thead th.us {
  background: var(--band);
  color: #fff;
}
.compare thead th.us span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.compare tbody th {
  width: 24%;
  font-weight: 650;
  color: var(--ink);
}
.compare td {
  width: 38%;
  color: var(--sub);
}
.compare td.us {
  color: var(--ink);
  background: color-mix(in srgb, var(--route-soft) 45%, transparent);
}
.compare td.us::before {
  content: '';
  display: inline-block;
  vertical-align: -3px;
  width: 16px;
  height: 16px;
  margin-right: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312724b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
:root[data-theme='dark'] .compare td.us::before {
  filter: brightness(1.7);
}
.compare-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
}
@media (max-width: 760px) {
  .compare thead {
    display: none;
  }
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }
  .compare tr {
    border-top: 1px solid var(--line);
    padding: 18px 18px 20px;
  }
  .compare tr:first-child {
    border-top: 0;
  }
  .compare th,
  .compare td {
    border: 0;
    padding: 0;
  }
  .compare tbody th {
    width: auto;
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 10px;
  }
  .compare td {
    width: auto;
  }
  .compare td {
    padding: 10px 12px;
    border-radius: 10px;
    margin-top: 6px;
  }
  .compare td::after {
    display: block;
    order: -1;
  }
  .compare td[data-label]::before {
    content: attr(data-label);
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 3px;
    background: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    filter: none;
  }
  .compare td.us[data-label]::before {
    color: var(--route);
  }
  .compare td:not(.us) {
    background: var(--bg-soft);
  }
}

/* ---------- Developers band ---------- */
.band-dark {
  background: var(--band);
  color: var(--band-text);
  position: relative;
  overflow: hidden;
}
.band-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(179, 190, 211, 0.16) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.band-dark .wrap {
  position: relative;
}
.band-dark h2,
.band-dark h3 {
  color: #fff;
}
.band-dark .kicker {
  color: #7fd3a8;
}
.band-dark .kicker::before {
  background: #3fb884;
}
.band-dark .section-head p {
  color: var(--band-sub);
}
.band-dark :not(pre) > code,
.cta-box :not(pre) > code {
  background: #22325a;
  color: #fff;
}
.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.dev-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dev-list li {
  border-top: 1px solid var(--band-line);
  padding-top: 18px;
}
.dev-list h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dev-list h3 svg {
  color: #7fd3a8;
}
.dev-list p {
  margin-top: 8px;
  color: var(--band-sub);
  font-size: 15.5px;
}
.code-panel {
  border-radius: 14px;
  border: 1px solid var(--band-line);
  background: #0b1222;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.code-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--band-line);
  background: #0e1628;
  overflow-x: auto;
}
.code-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--band-sub);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.code-tabs button[aria-selected='true'] {
  color: #fff;
  border-bottom-color: #3fb884;
  background: #121c31;
}
.code-panel pre {
  margin: 0;
  padding: 22px 22px 26px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.75;
  color: #dbe3f0;
}
.code-panel .c {
  color: #8f9bb3;
}
.code-panel .s {
  color: #9be3bd;
}
.code-panel .k {
  color: #ffd677;
}
.code-panel [role='tabpanel'][hidden] {
  display: none;
}
.code-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--band-line);
  color: var(--band-sub);
  font-size: 14px;
}
.band-dark a.link-arrow {
  color: #fff;
  border-color: #5a6c94;
}
@media (max-width: 1023px) {
  .dev-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}
@media (max-width: 560px) {
  .dev-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
}
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 18px 48px 18px 0;
  cursor: pointer;
  list-style: none;
  font: 600 19px/1.35 var(--font-display);
  letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat;
  transform: rotate(180deg);
}
.faq .answer {
  padding: 0 48px 26px 0;
  color: var(--sub);
}
.faq .answer p + p,
.faq .answer p + ul,
.faq .answer ul + p {
  margin-top: 12px;
}
.faq .answer ul {
  margin: 0;
  padding-left: 20px;
}
.faq .answer a {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .faq summary {
    font-size: 17.5px;
  }
  .faq .answer {
    padding-right: 0;
  }
}

/* ---------- Final CTA ---------- */
.cta-final {
  padding: 0 0 120px;
}
.cta-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 64px;
  border-radius: 28px;
  background: var(--band);
  color: var(--band-text);
  overflow: hidden;
}
.cta-box::after {
  content: '';
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 30px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3fb884 0 62%, var(--band-line) 62% 100%);
}
.cta-box h2 {
  color: #fff;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.cta-box p {
  margin-top: 16px;
  color: var(--band-sub);
  font-size: 18px;
}
.cta-box .hero-ctas {
  margin-top: 28px;
}
.cta-box .btn-primary {
  background: #fff;
  color: #14203a;
}
.cta-box .btn-primary:hover {
  background: #e6ebf4;
}
.cta-box .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #5a6c94;
  box-shadow: none;
}
.cta-box .btn-secondary:hover {
  border-color: #c5cfe2;
}
.cta-box .install {
  background: #0b1222;
}
.cta-box .install-note {
  color: var(--band-sub);
}
.cta-box .install-note a {
  color: #fff;
}
@media (max-width: 900px) {
  .cta-box {
    grid-template-columns: minmax(0, 1fr);
    padding: 44px 28px 64px;
    gap: 28px;
  }
  .cta-box::after {
    left: 28px;
    right: 28px;
  }
}
@media (max-width: 640px) {
  .cta-final {
    padding-bottom: 80px;
  }
  .cta-box {
    padding: 36px 20px 56px;
    border-radius: 20px;
  }
  .cta-box::after {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 56px 0 40px;
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}
@media (max-width: 1100px) {
  .foot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .foot-about {
    grid-column: 1 / -1;
  }
}
.foot-grid h2 {
  font-size: 15px;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.foot-grid a {
  color: var(--sub);
  text-decoration: none;
}
.foot-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot-grid a.brand {
  color: var(--ink);
}
.foot-grid a.brand:hover {
  text-decoration: none;
}
.foot-about p {
  margin-top: 14px;
  color: var(--sub);
  max-width: 34em;
}
.foot-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-about {
    grid-column: 1 / -1;
  }
}

/* ---------- Sub pages ---------- */
.page-hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .crumbs {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}
.page-hero .crumbs a {
  color: var(--sub);
  text-decoration: none;
}
.page-hero .crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.page-hero h1 {
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 16em;
}
.page-hero .lead {
  margin-top: 20px;
  max-width: 40em;
  color: var(--sub);
  font-size: clamp(17px, 1.4vw, 20px);
}
.page-hero .hero-ctas {
  margin-top: 28px;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--sub);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.toc a span {
  color: var(--muted);
  font-weight: 500;
}

/* Feature index cards */
.area-group + .area-group {
  margin-top: 96px;
}
.area-group > header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 32px;
}
.area-group > header p {
  margin-top: 10px;
  color: var(--sub);
  max-width: 40em;
}
.areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.areas .card .peek {
  height: 280px;
}
.card .card-link {
  margin-top: 16px;
  display: inline-flex;
}
.card-body ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--sub);
  font-size: 15.5px;
}
.card-body ul li + li {
  margin-top: 4px;
}
.placeholder {
  position: relative;
  margin: auto 28px 28px;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  border: 1.5px dashed var(--line-strong);
  background: repeating-linear-gradient(-45deg, var(--bg-soft) 0 12px, var(--bg) 12px 24px);
  color: var(--muted);
  font-size: 14.5px;
}
.placeholder b {
  display: block;
  color: var(--sub);
  font-size: 15px;
  margin-bottom: 4px;
}
@media (max-width: 860px) {
  .areas {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .placeholder {
    margin: auto 20px 20px;
  }
  .areas .card .peek {
    height: 230px;
  }
}

/* How-it-works pages: steps on a vertical route */
.route-steps {
  position: relative;
  margin: 0;
  padding: 0 0 0 76px;
  list-style: none;
}
.route-steps::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 20px;
  bottom: 40px;
  width: 3px;
  border-radius: 2px;
  background: var(--line);
}
.route-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.route-step + .route-step {
  margin-top: 112px;
}
.route-step .marker {
  position: absolute;
  left: -76px;
  top: 0;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  background: var(--bg);
  font: 700 15px/1 var(--font-display);
  color: var(--ink);
}
.route-step:first-child .marker {
  border-color: var(--signal);
  background: var(--signal);
  color: #14203a;
}
.route-step h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.028em;
}
.route-step .copy > p {
  margin-top: 14px;
  color: var(--sub);
}
.route-step .copy .points {
  margin-top: 20px;
}
.route-step .copy .note {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--sub);
  font-size: 15.5px;
}
.route-step .copy .note strong {
  color: var(--ink);
}
.route-step .stage {
  padding: 32px;
}
@media (max-width: 1023px) {
  .route-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 640px) {
  .route-steps {
    padding-left: 52px;
  }
  .route-steps::before {
    left: 14px;
  }
  .route-step .marker {
    left: -52px;
    width: 31px;
    height: 31px;
    font-size: 13px;
  }
  .route-step + .route-step {
    margin-top: 80px;
  }
  .route-step .stage {
    padding: 14px;
  }
}

/* Tables on sub pages */
.table-wrap {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.table th,
.table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.table thead th {
  border-top: 0;
  background: var(--bg-soft);
  font-weight: 650;
  font-size: 14.5px;
  color: var(--sub);
}
.table td {
  color: var(--sub);
}
.table td:first-child,
.table th[scope='row'] {
  color: var(--ink);
  font-weight: 600;
}
.table code {
  white-space: nowrap;
}

/* Install page */
.req-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.req {
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.req .fi {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--route-soft);
  color: var(--route);
  margin-bottom: 18px;
}
.req h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}
.req p {
  margin-top: 8px;
  color: var(--sub);
  font-size: 16px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.two-col .h2 {
  font-size: clamp(28px, 2.8vw, 40px);
}
.two-col .side p {
  margin-top: 16px;
  color: var(--sub);
}
.ordered {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: o;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.ordered li {
  position: relative;
  counter-increment: o;
  padding: 18px 0 18px 52px;
  border-bottom: 1px solid var(--line);
  color: var(--sub);
}
.ordered li::before {
  content: counter(o);
  position: absolute;
  left: 0;
  top: 17px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  font: 700 13px/1 var(--font-display);
  color: var(--ink);
}
.ordered li strong {
  color: var(--ink);
}
.cost-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cost-list li {
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--sub);
}
.cost-list li b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cost-list li.zero b {
  color: var(--route);
}
.callout {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--warn-soft);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
}
.callout svg {
  flex: none;
  color: var(--warn);
  margin-top: 2px;
}
.callout p {
  color: var(--ink);
}
.callout p + p {
  margin-top: 6px;
}
@media (max-width: 1023px) {
  .req-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
@media (max-width: 640px) {
  .cost-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.7s var(--ease),
      transform 0.7s var(--ease);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .js .reveal-d1 {
    transition-delay: 0.08s;
  }
  .js .reveal-d2 {
    transition-delay: 0.16s;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Captions that make room for a hanging panel (class cap-room) lose that room on smaller screens. */
@media (max-width: 1023px) {
  .comp figcaption.cap-room {
    margin-top: 16px !important;
    padding: 0 !important;
  }
}

/* Panels that hang over the stage edge, as far as the page margin allows. */
.comp {
  --hang: clamp(12px, calc((100vw - 1200px) / 2 - 12px), 104px);
}
.comp > .over.hang-r {
  right: calc(-1 * var(--hang));
}
.comp > .over.hang-l {
  left: calc(-1 * var(--hang));
}
.comp > .over-label.hang-r {
  right: calc(var(--lw, 160px) - var(--hang));
}
.comp > .over-label.hang-l {
  left: calc(var(--lw, 28px) - var(--hang));
}
@media (max-width: 1023px) {
  .comp {
    --hang: 12px;
  }
}

.route-wide {
  grid-column: 1 / -1;
  margin-top: -16px;
}
.route-wide .table-wrap {
  margin-top: 0;
}

/* Tables stack into labelled rows on a phone. */
@media (max-width: 640px) {
  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }
  .table tr:first-child {
    border-top: 0;
  }
  .table td {
    border: 0;
    padding: 0;
  }
  .table td + td {
    margin-top: 8px;
  }
  .table td:first-child {
    font-family: var(--font-display);
    font-size: 17px;
  }
  .table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
  }
  .table code {
    white-space: normal;
  }
  .route-steps {
    padding-left: 44px;
  }
  .route-steps::before {
    left: 13px;
  }
  .route-step .marker {
    left: -44px;
    width: 29px;
    height: 29px;
  }
}

@media (max-width: 640px) {
  /* Panels in cards show more of themselves on a phone. */
  .card .peek img {
    zoom: 0.72;
  }
}

/* ---------- Light bands (the owner wants no dark backgrounds on the light page) ----------
   The developers band and the closing call to action were night blocks. In the light theme they
   are soft, bordered surfaces; code panels and the install terminal stay dark, as code does. */
:root:not([data-theme='dark']) .band-dark {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-tint));
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
:root:not([data-theme='dark']) .band-dark::before {
  background-image: radial-gradient(rgba(20, 32, 58, 0.09) 1px, transparent 1.2px);
}
:root:not([data-theme='dark']) .band-dark h2,
:root:not([data-theme='dark']) .band-dark h3 {
  color: var(--ink);
}
:root:not([data-theme='dark']) .band-dark .kicker {
  color: var(--route);
}
:root:not([data-theme='dark']) .band-dark .kicker::before {
  background: var(--route-rail);
}
:root:not([data-theme='dark']) .band-dark .section-head p,
:root:not([data-theme='dark']) .band-dark .dev-list p,
:root:not([data-theme='dark']) .band-dark .code-foot {
  color: var(--sub);
}
:root:not([data-theme='dark']) .band-dark :not(pre) > code {
  background: var(--bg-tint);
  color: var(--ink);
  border: 1px solid var(--line);
}
:root:not([data-theme='dark']) .band-dark .dev-list li {
  border-top-color: var(--line-strong);
}
:root:not([data-theme='dark']) .band-dark .dev-list h3 svg {
  color: var(--route);
}
:root:not([data-theme='dark']) .band-dark a.link-arrow {
  color: var(--ink);
  border-color: var(--line-strong);
}
:root:not([data-theme='dark']) .band-dark :focus-visible {
  outline-color: var(--night);
}
:root:not([data-theme='dark']) .cta-box {
  background:
    radial-gradient(120% 140% at 100% 0%, var(--route-soft), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg-soft));
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.06),
    0 30px 60px -36px rgba(20, 32, 58, 0.28);
}
:root:not([data-theme='dark']) .cta-box::after {
  background: linear-gradient(90deg, var(--route-rail) 0 62%, var(--line-strong) 62% 100%);
}
:root:not([data-theme='dark']) .cta-box h2 {
  color: var(--ink);
}
:root:not([data-theme='dark']) .cta-box p {
  color: var(--sub);
}
:root:not([data-theme='dark']) .cta-box :not(pre) > code {
  background: var(--bg-tint);
  color: var(--ink);
  border: 1px solid var(--line);
}
:root:not([data-theme='dark']) .cta-box .btn-primary {
  background: var(--night);
  color: var(--on-night);
}
:root:not([data-theme='dark']) .cta-box .btn-primary:hover {
  background: var(--night-hover);
}
:root:not([data-theme='dark']) .cta-box .btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line-strong);
}
:root:not([data-theme='dark']) .cta-box .btn-secondary:hover {
  border-color: var(--control);
}
:root:not([data-theme='dark']) .cta-box .install {
  background: var(--band);
}
:root:not([data-theme='dark']) .cta-box .install-note {
  color: var(--sub);
}
:root:not([data-theme='dark']) .cta-box .install-note a {
  color: var(--ink);
}

/* ---------- Features menu in the header ----------
   A <details> element, so it opens without JavaScript; site.js closes it on Escape, on a click
   outside and after choosing a link. */
.nav-menu {
  position: relative;
}
.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px 0 12px;
  border-radius: 8px;
  color: var(--sub);
  font-size: 15.5px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition:
    color 0.15s,
    background-color 0.15s;
}
.nav-menu > summary::-webkit-details-marker {
  display: none;
}
.nav-menu > summary:hover,
.nav-menu[open] > summary {
  color: var(--ink);
  background: var(--bg-soft);
}
.nav-menu:has([aria-current='page']) > summary {
  color: var(--ink);
  font-weight: 600;
}
.nav-menu .chev {
  transition: transform 0.15s;
}
.nav-menu[open] .chev {
  transform: rotate(180deg);
}
.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  z-index: 60;
  width: min(880px, calc(100vw - 48px));
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
@media (max-width: 1120px) {
  /* Just above the phone layout the menu would run past the right edge: start it further left. */
  .nav-panel {
    left: -64px;
  }
}
.nav-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}
.nav-col-title {
  margin: 4px 0 6px 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-col ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-col a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.nav-col a:hover {
  background: var(--bg-soft);
}
.nav-col a[aria-current='page'] {
  background: var(--route-soft);
}
.mi {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--route-soft);
  color: var(--route);
}
.nav-col b {
  display: block;
  font: 600 15px/1.3 var(--font-display);
  letter-spacing: -0.01em;
}
.nav-col small {
  display: block;
  margin-top: 2px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.4;
}
.nav-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 12px;
  padding: 14px 10px 2px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.nav-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sub);
  font-weight: 500;
  text-decoration: none;
}
.nav-foot-link:hover,
.nav-foot-link[aria-current='page'] {
  color: var(--ink);
}
.nav-foot-link .mi {
  width: 28px;
  height: 28px;
}

/* The small-screen menu lists every feature page above the other links. */
@media (max-width: 1023px) {
  .mobile-menu .menu-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 14px 0 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .mobile-menu .menu-title a {
    color: var(--ink);
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
  }
  .mobile-menu .menu-title a[aria-current='page'] {
    color: var(--route);
  }
  .mobile-menu .menu-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu .menu-features li a {
    gap: 10px;
    min-height: 48px;
    border-bottom: 0;
    font: 600 15.5px/1.25 var(--font-display);
  }
  .mobile-menu .menu-features .mi {
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 400px) {
  .mobile-menu .menu-features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Feature pages ---------- */
/* A screen that can't be captured from the dashboard, in a step's stage. */
.route-step .placeholder,
.stage .placeholder {
  margin: 0;
  min-height: var(--ph, 360px);
}
.stage.bleed > .placeholder {
  position: absolute;
  inset: 36px;
}
/* Commands and code in a step. */
.route-step .install,
.route-step .code-panel {
  margin-top: 20px;
}
.route-step .code-panel {
  box-shadow: none;
}
.route-step .code-panel pre {
  padding: 18px 20px 20px;
  font-size: 13.5px;
}
.code-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--band-line);
  color: var(--band-sub);
  font-size: 14px;
  font-weight: 600;
}
.route-step .copy .install-note {
  margin-top: 10px;
}
/* A second figure under the first in a step. */
.comp + .comp {
  margin-top: 28px;
}

/* Where each part of Swarm runs (self-hosting). */
.where {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px;
}
.where-side {
  display: grid;
  gap: 20px;
  align-content: start;
}
.where-box {
  padding: 26px 28px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.where-box.is-main {
  background:
    radial-gradient(120% 120% at 100% 0%, var(--route-soft), transparent 50%), var(--surface);
  border-color: var(--line-strong);
}
.where-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.where-box > p {
  margin-top: 8px;
  color: var(--sub);
  font-size: 15.5px;
}
.where-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.where-list li {
  display: grid;
  grid-template-columns: minmax(0, 11em) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--sub);
  font-size: 15px;
}
.where-list li > :first-child {
  color: var(--ink);
  font-weight: 650;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.chips li em {
  margin-left: 6px;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}
@media (max-width: 1023px) {
  .where {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .where-box {
    padding: 22px 20px;
  }
  .where-list li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A short list of related pages at the end of a feature page. */
.next-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.next-pages a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  height: 100%;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s;
}
.next-pages a:hover {
  border-color: var(--line-strong);
}
.next-pages b {
  display: block;
  font: 600 17px/1.3 var(--font-display);
}
.next-pages small {
  display: block;
  margin-top: 4px;
  color: var(--sub);
  font-size: 14.5px;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .next-pages {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A step whose screenshot is a whole page wide: the words above, the picture across. */
.route-step.wide {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.route-step.wide .copy {
  max-width: 820px;
}

/* Links to a feature's own page, beside a heading or under a section. */
.group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.area-group > header .group-links {
  margin: 0 0 4px;
}
.card .card-link + .card-link {
  margin-left: 16px;
}
