/* IoTAPS "orbit" landing theme, redesigned 2026-11 on the console's Default appearance.

   One design system for every page: zinc neutrals and the teal accent from tokens.css, Geist
   type, 16-20 px cards with hairline edges and a soft top light, orbit rings as the signature
   motif. Both colour themes are complete; nothing is drawn dark in the light theme.
   The product pictures on the home page (console window, Android app, widgets) are HTML and
   SVG, so they follow the theme and the accent (platform.js, /brand/brand.css) exactly.
   The CSP allows same-origin styles only: no inline style attributes anywhere. */

@font-face {
  font-family: "Geist";
  src: url("/_landing-theme/orbit/assets/fonts/geist-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/_landing-theme/orbit/assets/fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ base */

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

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

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

body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: currentColor;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 0;
}

strong,
b {
  font-weight: 600;
}

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

:not(pre) > code {
  padding: 0.1em 0.38em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--ink);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

sup {
  line-height: 0;
}

::selection {
  background: var(--accent-soft-2);
  color: var(--ink);
}

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

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

/* ------------------------------------------------------------------ utilities */

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

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

.icon {
  display: inline-block;
  flex: none;
  width: 1.125em;
  height: 1.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

/* The logo: a tile in the accent with letters on it; in the dark theme a dark tile with an
   accent outline and letters, as /_landing-theme/orbit/favicon.svg and platform.js draw it. */
.brand-mark {
  width: 28px;
  height: 28px;
  fill: var(--accent);
  stroke: none;
  color: var(--on-accent);
}

[data-theme="dark"] .brand-mark {
  fill: color-mix(in oklab, var(--accent) 10%, #0b0d0e);
  stroke: var(--accent);
  stroke-width: 1;
  color: var(--accent);
}

.brand-logos {
  display: inline-flex;
  align-items: center;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-line: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--btn-line);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.006em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    0 1px 2px rgb(0 0 0 / 0.12),
    0 8px 20px -10px var(--accent-glow);
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.2s,
    transform 0.15s;
}

/* A white-label or platform accent sets --accent only: pick white or near-black letters from
   its lightness where the browser can, so the button stays readable in either theme. */
@supports (color: oklch(from red clamp(0.12, (0.66 - l) * 1000, 1) 0 0)) {
  .btn,
  .hero-pill-tag,
  .mm-btn,
  .vc-ico,
  .fa-board > i {
    --btn-fg: oklch(from var(--accent) clamp(0.12, (0.66 - l) * 1000, 1) 0 0);
    --on-accent: oklch(from var(--accent) clamp(0.12, (0.66 - l) * 1000, 1) 0 0);
  }
}

.btn:hover {
  --btn-bg: var(--accent-hover);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 1px 2px rgb(0 0 0 / 0.12),
    0 12px 28px -10px var(--accent-glow);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(2px);
}

/* Secondary buttons: the page's surface with a hairline. */
.btn-quiet,
.btn-plain {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-line: var(--line-2);
  box-shadow: var(--shadow-xs), var(--highlight);
}

.btn-quiet:hover,
.btn-plain:hover {
  --btn-bg: var(--bg-3);
  --btn-fg: var(--ink);
  box-shadow: var(--shadow-xs), var(--highlight);
}

@supports (color: oklch(from red clamp(0.12, (0.66 - l) * 1000, 1) 0 0)) {
  .btn-quiet,
  .btn-plain {
    --btn-fg: var(--ink);
  }
}

.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}

.text-link .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-ink);
  transition: transform 0.2s var(--ease);
}

.text-link:hover {
  color: var(--accent-ink);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------ header */

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

.site-header.is-scrolled,
.site-header.is-open,
html:not(.js) .site-header {
  border-bottom-color: var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-right: auto;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.15s,
    background-color 0.15s;
}

.nav-links a:hover {
  background: var(--bg-3);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-signin {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-signin:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
}

.theme-switch button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.15s,
    background-color 0.15s;
}

.theme-switch button:hover {
  color: var(--ink);
}

.theme-switch button[aria-pressed="true"] {
  background: var(--bg-3);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .theme-switch button[aria-pressed="true"] {
  background: var(--surface-3);
}

.theme-switch .icon {
  width: 15px;
  height: 15px;
}

/* ------------------------------------------------------------------ section pieces */

.section {
  position: relative;
  padding-block: clamp(80px, 9vw, 128px);
}

.section-alt {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
}

.eyebrow,
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.eyebrow::before,
.page-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft-2);
}

.eyebrow:has(.icon)::before {
  display: none;
}

.eyebrow .icon {
  width: 16px;
  height: 16px;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2,
.orbit-copy h2,
.app-copy h2,
.dev-copy h2,
.price-copy h2,
.ops-copy h2,
.faq-head h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-head > p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

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

.section-head-center > p:not(.eyebrow) {
  margin-inline: auto;
}

/* The second line of a headline, in the accent. */
.grad {
  padding-bottom: 0.06em;
  background: linear-gradient(100deg, var(--accent-ink) 10%, var(--accent) 60%, var(--accent-ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .grad {
  background-image: linear-gradient(100deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 45%, #ffffff) 70%, var(--accent) 100%);
}

/* ================================================================== HOME */

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(80px, 8vw, 120px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-position: center top;
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 52% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 52% at 50% 0%, #000 25%, transparent 75%);
}

.hero-glow {
  position: absolute;
  top: -340px;
  left: 50%;
  width: min(1400px, 150vw);
  height: 900px;
  translate: -50% 0;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  opacity: 0.9;
}

/* Orbit rings around the headline, each carrying a satellite or two. The smallest ring is
   wider than the copy, so a satellite never crosses text; the box starts below the header
   (the mask clips everything outside it). */
.hero-orbits {
  position: absolute;
  inset: 72px 0 0;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 42%, transparent 82%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 42%, transparent 82%);
}

.ho-ring {
  position: absolute;
  top: 258px;
  left: 50%;
  translate: -50% -50%;
  border: 1px solid var(--ring);
  border-radius: 50%;
}

.ho-r1 {
  width: 1140px;
  height: 1140px;
}

.ho-r2 {
  width: 1460px;
  height: 1460px;
  border-color: var(--ring-faint);
}

.ho-r3 {
  width: 1820px;
  height: 1820px;
}

.ho-r4 {
  width: 2240px;
  height: 2240px;
  border-color: var(--ring-faint);
}

.ho-ring i {
  position: absolute;
  width: 7px;
  height: 7px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-soft-2),
    0 0 18px 2px var(--accent-glow);
}

/* Placed by angle on the ring: left = 50% + 50% cos(a), top = 50% + 50% sin(a). */
.ho-ring i {
  --a: 196deg;
  top: calc(50% + 50% * sin(var(--a)));
  left: calc(50% + 50% * cos(var(--a)));
}

.ho-r1 i:nth-child(2) {
  --a: -14deg;
}

.ho-r2 i:nth-child(1) {
  --a: 168deg;
}

.ho-r2 i:nth-child(2) {
  --a: -10deg;
}

.ho-r3 i:nth-child(1) {
  --a: 200deg;
}

.ho-r4 i:nth-child(1) {
  --a: 6deg;
}

.ho-r4 i:nth-child(2) {
  --a: 186deg;
}

.hero-inner {
  position: relative;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.hero-pill:hover {
  border-color: var(--accent-line);
  color: var(--ink);
}

.hero-pill-tag {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-pill .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}

.hero-pill:hover .icon {
  transform: translateX(2px);
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.75rem, 1.2rem + 5vw, 5rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 660px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.42vw, 1.25rem);
  line-height: 1.6;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 28px;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-ink);
}

/* ------------------------------------------------------------------ hero product picture */

.hero-visual {
  position: relative;
  max-width: 1120px;
  margin: clamp(56px, 7vw, 80px) auto 0;
  container-type: inline-size;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% 4% -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  filter: blur(36px);
}

/* Everything inside the window is sized in em on a base that follows the window's width. */
.mock-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mock-canvas);
  box-shadow:
    var(--shadow-lg),
    0 0 0 6px color-mix(in srgb, var(--surface) 55%, transparent);
  color: var(--ink);
  font-size: 1cqw;
  line-height: 1.4;
  text-align: left;
}

.mock-window b,
.mock-phone b,
.app-phone b {
  font-weight: 600;
}

.mock-window em,
.mock-phone em,
.app-phone em,
.mock-toast em {
  font-style: normal;
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 1.2em;
  height: 3.6em;
  padding: 0 1.4em;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mock-dots {
  display: flex;
  gap: 0.55em;
}

.mock-dots i {
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  background: var(--line-2);
}

.mock-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-width: 34%;
  margin-inline: auto;
  padding: 0.4em 1.2em;
  border-radius: 0.7em;
  background: var(--bg-3);
  color: var(--muted);
  font-size: 1.05em;
}

.mock-url .icon {
  width: 1em;
  height: 1em;
}

.mock-live,
.mm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--ok);
  font-weight: 600;
}

.mock-live i,
.mm-pill i,
.ms-status i,
.mm-st i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--ok-dot);
}

.mock-live i {
  box-shadow: 0 0 0 0.3em color-mix(in srgb, var(--ok-dot) 22%, transparent);
}

.mock-app {
  display: grid;
  grid-template-columns: 17.5em minmax(0, 1fr);
}

.mock-side {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  padding: 1.4em 1.1em;
  border-right: 1px solid var(--line);
  background: var(--mock-side);
}

.ms-brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.1em 0.4em 1.1em;
  font-size: 1.15em;
}

.ms-mark {
  width: 1.9em;
  height: 1.9em;
}

.ms-brand em {
  margin-left: auto;
  padding: 0.05em 0.6em;
  border: 1px solid var(--line);
  border-radius: 1em;
  color: var(--muted);
  font-size: 0.72em;
}

.ms-org {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: 0.9em;
  padding: 0.7em 0.8em;
  border: 1px solid var(--line);
  border-radius: 0.9em;
  background: var(--surface);
  box-shadow: var(--highlight);
}

.ms-org-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.6em;
  background: var(--accent-soft-2);
  color: var(--accent-ink);
}

.ms-org b,
.ms-org em {
  display: block;
  white-space: nowrap;
}

.ms-org b {
  font-size: 1.08em;
}

.ms-org em {
  color: var(--muted);
  font-size: 0.9em;
}

.ms-org-chev {
  margin-left: auto;
  color: var(--muted);
}

.ms-label {
  margin: 0.8em 0.6em 0.35em;
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 500;
}

.ms-nav {
  display: grid;
  gap: 0.12em;
  list-style: none;
}

.ms-nav li {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.55em 0.7em;
  border-radius: 0.6em;
  color: var(--ink-2);
  font-size: 1.06em;
}

.ms-nav .icon {
  width: 1.2em;
  height: 1.2em;
  color: var(--muted);
}

.ms-nav li.is-on {
  background: var(--bg-3);
  color: var(--ink);
  font-weight: 550;
}

[data-theme="dark"] .ms-nav li.is-on {
  background: var(--surface-3);
}

.ms-nav li.is-on .icon {
  color: var(--accent-ink);
}

.ms-nav li span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.88em;
}

.ms-nav li .ms-badge {
  padding: 0 0.55em;
  border-radius: 1em;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 600;
}

.ms-projects li i {
  width: 0.75em;
  height: 0.75em;
  margin: 0 0.25em;
  border-radius: 0.22em;
  background: var(--accent);
}

.ms-projects li:nth-child(2) i {
  background: var(--info);
}

.ms-projects li:nth-child(3) i {
  background: var(--warn-dot);
}

.ms-status {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: auto;
  padding: 1.6em 0.6em 0.2em;
  color: var(--muted);
  font-size: 0.95em;
}

.mock-main {
  display: flex;
  flex-direction: column;
  gap: 1.3em;
  min-width: 0;
  padding: 0 2em 2em;
}

.mm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -2em;
  padding: 1em 2em;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mm-crumbs {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--muted);
  font-size: 1.05em;
}

.mm-crumbs i {
  font-style: normal;
  opacity: 0.5;
}

.mm-crumbs b {
  color: var(--ink);
  font-weight: 550;
}

.mm-search {
  display: flex;
  align-items: center;
  gap: 0.6em;
  width: 22em;
  padding: 0.45em 0.6em 0.45em 0.8em;
  border: 1px solid var(--line);
  border-radius: 0.7em;
  background: var(--mock-canvas);
  color: var(--muted);
}

.mm-search kbd {
  margin-left: auto;
  padding: 0.1em 0.5em;
  border: 1px solid var(--line);
  border-radius: 0.4em;
  background: var(--surface);
  font-size: 0.85em;
}

.mm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em;
  padding-top: 0.4em;
}

.mm-title {
  display: block;
  font-size: 2.1em;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mm-meta {
  display: flex;
  gap: 1.1em;
  margin-top: 0.45em;
  color: var(--muted);
}

.mm-meta span + span::before {
  content: "·";
  margin-right: 1.1em;
  opacity: 0.6;
}

.mm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.15em;
  border-radius: 0.7em;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.05em;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16);
}

.mm-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1em;
}

.mm-kpi,
.mm-card {
  border: 1px solid var(--line);
  border-radius: 1.1em;
  background: var(--surface);
  box-shadow: var(--highlight);
}

.mm-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 1.1em 1.2em 1.2em;
}

.mm-kpi-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 1.02em;
  font-weight: 500;
}

.mm-kpi-label i {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border: 1px solid var(--accent-line);
  border-radius: 0.6em;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.mm-kpi.is-warn .mm-kpi-label i {
  border-color: color-mix(in srgb, var(--warn-dot) 40%, var(--line));
  background: var(--warn-soft);
  color: var(--warn);
}

.mm-kpi-value {
  font-size: 2.3em;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.mm-kpi-value small {
  margin-left: 0.25em;
  color: var(--muted);
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0;
}

.mm-kpi em {
  color: var(--muted);
  font-size: 0.95em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-meter {
  height: 0.45em;
  margin-top: 0.55em;
  overflow: hidden;
  border-radius: 1em;
  background: var(--bg-3);
}

.mm-meter i {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: inherit;
  background: var(--ok-dot);
}

.mm-kpi.is-warn .mm-meter i {
  width: 100%;
  background: var(--warn-dot);
}

.mm-ticks,
.mm-segs {
  display: flex;
  gap: 0.3em;
  margin-top: 0.55em;
}

.mm-ticks i,
.mm-segs i {
  flex: 1;
  height: 0.45em;
  border-radius: 0.25em;
  background: var(--bg-3);
}

.mm-ticks i:nth-child(n + 6) {
  background: var(--accent-soft-2);
}

.mm-ticks i:nth-child(n + 9) {
  background: var(--accent);
}

.mm-segs i {
  border-radius: 1em;
  background: var(--accent);
  opacity: 0.85;
}

/* Fleet health first: the phone covers the right end of the window. */
.mm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.35fr);
  gap: 1em;
}

.mm-chart {
  padding: 1.2em 1.3em 1em;
}

.mm-card-head {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.mm-card-head b {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.1em;
}

.mm-card-head .icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--accent-ink);
}

.mm-pill {
  padding: 0.12em 0.6em;
  border-radius: 1em;
  background: var(--ok-soft);
  font-size: 0.85em;
}

.mm-range {
  display: flex;
  gap: 0.2em;
  margin-left: auto;
  padding: 0.2em;
  border: 1px solid var(--line);
  border-radius: 0.6em;
  font-size: 0.85em;
}

.mm-range > * {
  padding: 0.15em 0.65em;
  border-radius: 0.4em;
  color: var(--muted);
  font-weight: 500;
}

.mm-range b {
  background: var(--bg-3);
  color: var(--ink);
}

.mm-stats {
  display: flex;
  align-items: flex-end;
  gap: 2.4em;
  margin-top: 1em;
}

.mm-rate b {
  font-size: 2.3em;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.mm-rate small {
  margin-left: 0.35em;
  color: var(--muted);
  font-size: 1em;
}

.mm-stats > span:not(.mm-rate) {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.3em;
}

.mm-stats em {
  color: var(--muted);
  font-size: 0.92em;
}

.mm-stats > span:not(.mm-rate) b {
  font-variant-numeric: tabular-nums;
}

.mm-plot {
  width: 100%;
  height: 13.5em;
  margin-top: 0.6em;
  overflow: visible;
  color: var(--accent);
}

.mm-plot-grid {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}

.mm-plot-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mm-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4em;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82em;
}

.mm-health {
  display: flex;
  flex-direction: column;
  padding: 1.2em 1.3em;
}

.mm-ring {
  position: relative;
  width: 11em;
  height: 11em;
  margin: 1.3em auto 1em;
}

.mm-ring svg {
  width: 100%;
  height: 100%;
  rotate: -90deg;
}

.mm-ring circle {
  fill: none;
  stroke-width: 9;
}

.mm-ring-track {
  stroke: var(--bg-3);
}

[data-theme="dark"] .mm-ring-track {
  stroke: var(--surface-3);
}

.mm-ring-value {
  stroke: var(--ok-dot);
  stroke-dasharray: 91.6 100;
  stroke-linecap: round;
}

.mm-ring > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.mm-ring > span b {
  font-size: 2.3em;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
}

.mm-ring > span small {
  color: var(--muted);
  font-size: 0.55em;
  font-weight: 500;
}

.mm-ring > span em {
  margin-top: 0.2em;
  color: var(--muted);
  font-size: 0.92em;
}

.mm-legend {
  display: grid;
  gap: 0.55em;
  margin-top: auto;
  list-style: none;
}

.mm-legend li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--ink-2);
}

.mm-legend i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--faint);
}

.mm-legend i.is-ok {
  background: var(--ok-dot);
}

.mm-legend i.is-bad {
  background: var(--danger-dot);
}

.mm-legend b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.mm-table {
  padding: 0.3em 0;
}

.mm-tr {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr 1.3fr;
  align-items: center;
  gap: 1em;
  padding: 0.75em 1.3em;
  color: var(--ink-2);
  font-size: 1.02em;
}

.mm-tr + .mm-tr {
  border-top: 1px solid var(--line-soft);
}

.mm-th {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 500;
}

.mm-dev {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95em;
  font-weight: 500;
}

.mm-dev i {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border: 1px solid var(--line);
  border-radius: 0.55em;
  background: var(--surface-2);
  color: var(--accent-ink);
}

.mm-dev .icon {
  width: 1.05em;
  height: 1.05em;
}

.mm-st {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--ok);
  font-weight: 550;
}

.mm-val {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95em;
  font-variant-numeric: tabular-nums;
}

.mm-val.is-warn {
  color: var(--warn);
  font-weight: 600;
}

/* The Android phone. Inside, 1em is 1/24.5 of the phone's width. */
.mock-phone,
.app-phone {
  padding: 0.62em;
  border-radius: 3.7em;
  background: #0d0d10;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    inset 0 0 0 0.25em #1c1c21;
  color: var(--ink);
  line-height: 1.35;
  text-align: left;
}

.mock-phone {
  position: absolute;
  right: -2.5%;
  bottom: -8%;
  width: 22.5%;
  aspect-ratio: 9 / 19.2;
  font-size: calc(22.5cqw / 24.5);
}

.mp-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  height: 100%;
  overflow: hidden;
  padding: 0.9em 1.05em;
  border-radius: 3.1em;
  background: var(--bg);
}

/* The punch-hole camera. */
.mp-screen::before {
  content: "";
  position: absolute;
  top: 0.95em;
  left: 50%;
  width: 0.95em;
  height: 0.95em;
  translate: -50% 0;
  border-radius: 50%;
  background: #050506;
}

.mp-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1em 0.7em 0;
  font-size: 0.95em;
}

.mp-status span {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.mp-status .icon {
  width: 1.05em;
  height: 1.05em;
  stroke-width: 2.2;
}

.mp-battery {
  position: relative;
  width: 1.8em;
  height: 0.9em;
  border: 1px solid currentColor;
  border-radius: 0.28em;
}

.mp-battery::after {
  content: "";
  position: absolute;
  inset: 0.12em 0.45em 0.12em 0.12em;
  border-radius: 0.1em;
  background: currentColor;
}

.mp-notif {
  display: flex;
  gap: 0.75em;
  padding: 0.85em;
  border: 1px solid var(--line);
  border-radius: 1.3em;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.mp-notif-mark {
  flex: none;
  width: 2.3em;
  height: 2.3em;
}

.mp-notif > div {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  min-width: 0;
}

.mp-notif-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85em;
}

.mp-notif-top b {
  color: var(--ink-2);
}

.mp-notif > div > b {
  font-size: 1.02em;
  font-weight: 650;
}

.mp-notif > div > span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.3em 0.2em 0;
}

.mp-head em {
  display: block;
  color: var(--muted);
  font-size: 0.85em;
}

.mp-head b {
  display: block;
  font-size: 1.75em;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mp-head i {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.mp-chips {
  display: flex;
  gap: 0.4em;
}

.mp-chips span {
  padding: 0.3em 0.75em;
  border: 1px solid var(--line);
  border-radius: 1em;
  color: var(--muted);
  font-size: 0.85em;
  white-space: nowrap;
}

.mp-chips .is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.mp-card {
  padding: 0.85em 0.95em;
  border: 1px solid var(--line);
  border-radius: 1.2em;
  background: var(--surface);
  box-shadow: var(--highlight);
}

.mp-card.is-alert {
  border-color: color-mix(in srgb, var(--warn-dot) 45%, var(--line));
  box-shadow: 0 0 0 0.25em color-mix(in srgb, var(--warn-dot) 12%, transparent);
}

.mp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92em;
}

.mp-card-top span {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--mono);
}

.mp-card-top i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--ok-dot);
}

.mp-card-top em {
  color: var(--muted);
  font-size: 0.9em;
}

.mp-card-value {
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  margin-top: 0.3em;
}

.mp-card-value b {
  font-size: 1.9em;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.mp-card-value small {
  color: var(--muted);
  font-size: 0.95em;
}

.is-alert .mp-card-value b {
  color: var(--warn);
}

.mp-trend {
  margin-left: auto;
  padding: 0.1em 0.5em;
  border-radius: 1em;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.82em;
  font-weight: 600;
}

.mp-spark {
  width: 100%;
  height: 2.3em;
  margin-top: 0.3em;
  overflow: visible;
}

.mp-spark path {
  fill: none;
  stroke: var(--warn-dot);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.mp-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-control b,
.mp-control em {
  display: block;
}

.mp-control em {
  color: var(--muted);
  font-size: 0.85em;
}

.mp-switch {
  position: relative;
  width: 3.4em;
  height: 1.95em;
  border-radius: 1em;
  background: var(--accent);
}

.mp-switch i {
  position: absolute;
  top: 0.25em;
  right: 0.25em;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}

.mp-tabs {
  display: flex;
  justify-content: space-around;
  margin: auto -1.05em -0.9em;
  padding: 0.75em 0.5em 1.1em;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8em;
}

.mp-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
}

.mp-tabs .icon {
  width: 1.6em;
  height: 1.6em;
}

.mp-tabs .is-on {
  color: var(--accent-ink);
  font-weight: 600;
}

/* Floating notes beside the window. */
.mock-toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.9em 1.3em 0.9em 0.9em;
  border: 1px solid var(--line);
  border-radius: 1.2em;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: 1.05cqw;
  line-height: 1.35;
  text-align: left;
}

.mock-toast b,
.mock-toast em {
  display: block;
  white-space: nowrap;
}

.mock-toast b {
  font-size: 1.1em;
}

.mock-toast em {
  color: var(--muted);
}

.mt-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  border-radius: 0.8em;
  background: var(--ok-soft);
  color: var(--ok);
}

.mt-ico .icon {
  width: 1.35em;
  height: 1.35em;
  stroke-width: 2.2;
}

.mt-ico-accent {
  background: var(--accent-soft-2);
  color: var(--accent-ink);
}

.mock-toast-a {
  top: 50%;
  left: -6%;
}

.mock-toast-b {
  bottom: -4.5%;
  left: 6%;
}

@container (max-width: 1180px) {
  .mock-toast-a {
    left: -1.5%;
  }
}

@container (max-width: 1040px) {
  .mock-toast-a {
    top: auto;
    bottom: 30%;
    left: 1.5%;
  }
}

/* Narrow screens: the window keeps the figures and the chart, larger. */
@container (max-width: 720px) {
  .mock-window {
    font-size: 2.15cqw;
  }

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

  .mock-side,
  .mm-search,
  .mm-health,
  .mm-table,
  .mm-stats > span:last-child,
  .mm-range,
  .mock-toast {
    display: none;
  }

  .mock-phone {
    right: -1%;
    bottom: -12%;
    width: 31%;
    font-size: calc(31cqw / 24.5);
  }

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

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

  .mm-head {
    padding-right: 34%;
  }
}

/* ------------------------------------------------------------------ works with */

.stack {
  padding: 0 0 clamp(24px, 4vw, 48px);
}

.stack-title {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-align: center;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  list-style: none;
}

.stack-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 18px 20px;
  background: var(--surface);
}

.stack-grid .icon {
  width: 22px;
  height: 22px;
  color: var(--accent-ink);
}

.stack-grid b,
.stack-grid em {
  display: block;
}

.stack-grid b {
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.stack-grid em {
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: normal;
}

/* ------------------------------------------------------------------ how it works */

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--highlight);
}

.flow-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 236px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--accent-glow-2), transparent 70%),
    var(--surface-2);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.flow-art b {
  font-weight: 600;
}

.flow-art em {
  font-style: normal;
}

.flow-body {
  padding: 24px 26px 28px;
}

.flow-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.flow-body h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

.flow-body p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Step 1: the device library. */
.flow-art.fa-library {
  justify-content: flex-start;
  -webkit-mask-image: linear-gradient(#000 70%, transparent 100%);
  mask-image: linear-gradient(#000 70%, transparent 100%);
}

.fa-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}

.fa-board {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.fa-board.is-picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
}

.fa-board b,
.fa-board em {
  display: block;
}

.fa-board em {
  color: var(--muted);
  font-size: 0.75rem;
}

.fa-pic {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--ink-2);
}

.is-picked .fa-pic {
  background: var(--accent-soft-2);
  color: var(--accent-ink);
}

.fa-board > i {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.fa-board > i .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}

/* Step 2: flashing over USB. */
.fa-flash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
}

.fa-flash-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 500;
}

.fa-flash-head .icon {
  width: 13px;
  height: 13px;
  color: var(--accent-ink);
}

.fa-flash-title {
  margin-top: 4px;
  font-size: 0.9375rem;
}

.fa-progress,
.to-bar {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--bg-3);
}

[data-theme="dark"] .fa-progress,
[data-theme="dark"] .to-bar {
  background: var(--surface-3);
}

.fa-progress i,
.to-bar i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgb(255 255 255 / 0.35), transparent) -60% 0 / 50% 100% no-repeat,
    var(--accent);
}

.fa-flash-pct {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.fa-flash-pct b {
  color: var(--ink);
}

.fa-log,
.to-checks {
  display: grid;
  gap: 6px;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.78rem;
}

.fa-log {
  margin-top: 4px;
}

.fa-log li,
.to-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fa-log .icon,
.to-checks .icon {
  width: 14px;
  height: 14px;
  color: var(--ok);
  stroke-width: 2.2;
}

.fa-log .is-next {
  color: var(--muted);
}

.fa-log .is-next .icon {
  color: var(--accent-ink);
}

/* Step 3: live widgets. */
.flow-art.fa-live {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.fa-widget,
.td-w {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.fa-w-title,
.td-title {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.fa-gauge,
.td-gauge {
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fa-gauge svg,
.td-gauge svg {
  width: 100%;
  max-width: 132px;
  margin-top: 6px;
}

.fa-gauge path,
.td-gauge path {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}

.fa-gauge-track,
.td-track {
  stroke: var(--bg-3);
}

[data-theme="dark"] .fa-gauge-track,
[data-theme="dark"] .td-track {
  stroke: var(--surface-3);
}

.fa-gauge-value,
.td-value {
  stroke: var(--accent);
  stroke-dasharray: 47 100;
}

.fa-gauge b,
.td-w.td-gauge b {
  margin-top: -10px;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.fa-gauge small,
.td-gauge small,
.fa-spark small {
  color: var(--muted);
  font-size: 0.65em;
  font-weight: 500;
}

.fa-switch {
  justify-content: space-between;
}

.fa-toggle,
.td-switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--accent);
}

.fa-toggle i,
.td-switch i {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}

.fa-switch em {
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 600;
}

.fa-spark svg {
  width: 100%;
  height: 26px;
  margin: 4px 0 2px;
  overflow: visible;
}

.fa-spark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.fa-spark b {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* "Check your board" (site.js initLaunch). */
.board-check {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 20px 48px;
  margin-top: 20px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--highlight);
}

.bc-title {
  display: block;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bc-copy p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.bc-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--field);
  border-radius: var(--r-md);
  background: var(--bg);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.bc-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft-2);
}

.bc-field > .icon {
  color: var(--muted);
}

.bc-field input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.bc-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.bc-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.bc-result {
  min-height: 1.5em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.bc-result[data-state="success"] {
  color: var(--ok);
}

.bc-result[data-state="warning"] {
  color: var(--warn);
}

.bc-result[data-state="error"] {
  color: var(--danger);
}

.bc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
}

.bc-chips button,
.chip {
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    color 0.15s;
}

.bc-chips button:hover,
.chip:hover {
  border-color: var(--line-2);
  background: var(--bg-3);
  color: var(--ink);
}

.bc-chips button.is-match,
.chip[aria-pressed="true"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

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

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

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--highlight);
  transition:
    border-color 0.2s,
    box-shadow 0.3s;
}

.tile:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md), var(--highlight);
}

.tile-wide {
  grid-column: span 2;
  flex-direction: row;
}

.tile-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 0;
}

.tile-wide .tile-copy {
  flex: 0 0 42%;
  padding: 32px;
}

.tile-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--shadow-xs);
  color: var(--accent-ink);
}

.tile-ico .icon {
  width: 20px;
  height: 20px;
}

.tile h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.tile-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tile-copy .text-link {
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.9375rem;
}

.tile-art {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px 28px;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.tile-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 70% at 70% 100%, var(--accent-glow-2), transparent 70%);
  pointer-events: none;
}

.tile-art b {
  font-weight: 600;
}

.tile-art em {
  font-style: normal;
}

/* Dashboards: a small dashboard of five widgets. */
.tile-art.td-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 12px;
  padding: 32px 32px 32px 4px;
}

.td-w {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
}

.td-gauge {
  grid-row: 1 / span 2;
  grid-column: 1;
}

.td-leds {
  grid-row: 3;
  grid-column: 1;
}

.td-chart {
  grid-row: 1;
  grid-column: 2;
}

.td-toggle {
  grid-row: 2;
  grid-column: 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.td-toggle em {
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 600;
}

.td-slider {
  grid-row: 3;
  grid-column: 2;
}

.td-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 58px;
  margin-top: 10px;
}

.td-bars i {
  flex: 1;
  height: 50%;
  border-radius: 3px 3px 1px 1px;
  background: var(--accent-soft-2);
}

.td-bars i:nth-child(1) { height: 42%; }
.td-bars i:nth-child(2) { height: 55%; }
.td-bars i:nth-child(3) { height: 48%; }
.td-bars i:nth-child(4) { height: 63%; }
.td-bars i:nth-child(5) { height: 70%; }
.td-bars i:nth-child(6) { height: 58%; }
.td-bars i:nth-child(7) { height: 76%; }
.td-bars i:nth-child(8) { height: 84%; }
.td-bars i:nth-child(9) { height: 72%; }
.td-bars i:nth-child(10) { height: 66%; }
.td-bars i:nth-child(11) { height: 79%; }
.td-bars i:nth-child(12) { height: 88%; }
.td-bars i:nth-child(13) { height: 81%; }

.td-bars i:nth-child(14) {
  height: 94%;
  background: var(--accent);
}

.td-slider .td-title {
  display: flex;
  justify-content: space-between;
}

.td-slider .td-title b {
  color: var(--ink);
}

.td-track-h {
  position: relative;
  display: block;
  height: 8px;
  margin: 14px 4px 4px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
}

[data-theme="dark"] .td-track-h {
  background: var(--surface-3);
}

.td-track-h i {
  position: absolute;
  inset: 0 40% 0 0;
  border-radius: inherit;
  background: var(--accent);
}

.td-track-h i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 18px;
  height: 18px;
  translate: 0 -50%;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.td-led-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.75rem;
}

.td-led-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.td-led-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.td-led-row .is-ok {
  background: var(--ok-dot);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ok-dot) 70%, transparent);
}

.td-led-row .is-warn {
  background: var(--warn-dot);
  box-shadow: 0 0 8px color-mix(in srgb, var(--warn-dot) 70%, transparent);
}

/* Alerts: an incident and the channels it reaches. */
.ta-art {
  gap: 14px;
}

.ta-incident {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--warn-dot) 38%, var(--line));
  border-left: 3px solid var(--warn-dot);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ta-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--warn);
  font-size: 0.75rem;
  font-weight: 600;
}

.ta-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn-dot);
}

.ta-incident b,
.ta-incident em {
  display: block;
}

.ta-incident b {
  margin-top: 6px;
  font-size: 0.9375rem;
}

.ta-incident em {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.ta-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.ta-channels li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
}

.ta-channels .icon {
  width: 13px;
  height: 13px;
  color: var(--accent-ink);
}

/* Commands: a switch before and after the device's report. */
.tc-art {
  gap: 10px;
}

.tc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.tc-row:first-child {
  opacity: 0.62;
}

.tc-row b,
.tc-row em {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tc-row b {
  font-family: var(--mono);
  font-weight: 500;
}

.tc-row em {
  color: var(--muted);
  font-size: 0.78rem;
}

.tc-row.is-done {
  border-color: var(--accent-line);
}

.tc-row.is-done em {
  color: var(--ok);
}

.tc-row .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.tc-switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--line-2);
}

.tc-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}

.tc-switch.is-pending {
  background: color-mix(in srgb, var(--accent) 40%, var(--line-2));
}

.tc-switch.is-pending i {
  left: 12px;
}

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

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

/* Updates over the air. */
.to-versions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.to-versions span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
}

.to-versions .is-new {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.to-versions .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.to-bar {
  height: 6px;
  margin: 14px 0;
}

.to-bar i {
  width: 100%;
}

/* Access: members and their roles. */
.tm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.tm-row + .tm-row {
  margin-top: 8px;
}

.tm-row b,
.tm-row em {
  display: block;
}

.tm-row em {
  color: var(--muted);
  font-size: 0.75rem;
}

.tm-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft-2);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 650;
}

.tm-av-2 {
  background: var(--info-soft);
  color: var(--info);
}

.tm-av-3 {
  background: var(--warn-soft);
  color: var(--warn);
}

.tm-role {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 550;
  white-space: nowrap;
}

.tm-role.is-owner {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* History: min / max ranges with the average per bucket. */
.th-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.th-candles {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 128px;
  margin-top: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-2);
}

.th-candles i {
  --lo: 20%;
  --hi: 60%;
  --avg: 45%;
  position: relative;
  flex: 1;
  bottom: var(--lo);
  height: calc(var(--hi) - var(--lo));
  border-radius: 4px;
  background: var(--accent-soft-2);
}

.th-candles i::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: calc(var(--avg) - 1.5px);
  left: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.th-candles i:nth-child(1) { --lo: 22%; --hi: 58%; --avg: 48%; }
.th-candles i:nth-child(2) { --lo: 26%; --hi: 62%; --avg: 55%; }
.th-candles i:nth-child(3) { --lo: 18%; --hi: 54%; --avg: 40%; }
.th-candles i:nth-child(4) { --lo: 24%; --hi: 66%; --avg: 52%; }
.th-candles i:nth-child(5) { --lo: 30%; --hi: 70%; --avg: 58%; }
.th-candles i:nth-child(6) { --lo: 28%; --hi: 64%; --avg: 46%; }
.th-candles i:nth-child(7) { --lo: 34%; --hi: 74%; --avg: 60%; }
.th-candles i:nth-child(8) { --lo: 38%; --hi: 80%; --avg: 54%; }
.th-candles i:nth-child(9) { --lo: 32%; --hi: 72%; --avg: 44%; }
.th-candles i:nth-child(10) { --lo: 36%; --hi: 78%; --avg: 62%; }
.th-candles i:nth-child(11) { --lo: 42%; --hi: 84%; --avg: 50%; }
.th-candles i:nth-child(12) { --lo: 40%; --hi: 88%; --avg: 58%; }
.th-candles i:nth-child(13) { --lo: 46%; --hi: 90%; --avg: 47%; }
.th-candles i:nth-child(14) { --lo: 44%; --hi: 86%; --avg: 55%; }
.th-candles i:nth-child(15) { --lo: 50%; --hi: 94%; --avg: 60%; }

.th-candles i:nth-child(16) {
  --lo: 54%;
  --hi: 98%;
  --avg: 52%;
  background: color-mix(in srgb, var(--accent) 34%, var(--surface));
}

.th-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
}

.th-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.th-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.th-legend .is-range {
  background: var(--accent-soft-2);
}

.th-legend .is-avg {
  height: 3px;
  background: var(--accent);
}

/* White-label: the same console under two brands. */
.tile-art.tb-art {
  display: block;
  min-height: 300px;
  padding: 0;
}

.tb-window {
  --brand: var(--accent);
  position: absolute;
  width: 68%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.tb-w1 {
  top: 26%;
  left: 2%;
  z-index: 2;
}

.tb-w2 {
  --brand: #c2410c;
  top: 9%;
  right: 6%;
  opacity: 0.92;
}

[data-theme="dark"] .tb-w2 {
  --brand: #ea7a3e;
}

.tb-url {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.tb-url .icon {
  width: 11px;
  height: 11px;
}

.tb-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px 26px;
}

.tb-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  box-shadow: 0 6px 16px -6px var(--brand);
}

.tb-lines {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
}

.tb-lines i {
  width: 58%;
  height: 7px;
  border-radius: 4px;
  background: var(--bg-3);
}

[data-theme="dark"] .tb-lines i {
  background: var(--surface-3);
}

.tb-lines i + i {
  width: 38%;
}

.tb-btn {
  margin-top: 4px;
  padding: 6px 22px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
}

[data-theme="dark"] .tb-w2 .tb-btn {
  color: #1c0d04;
}

[data-theme="dark"] .tb-w1 .tb-btn {
  color: var(--on-accent);
}

/* ------------------------------------------------------------------ durable by design */

.orbit-band {
  overflow: hidden;
}

.orbit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.orbit-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.checkpoints {
  position: relative;
  display: grid;
  margin: 32px 0 28px;
  list-style: none;
}

.checkpoints::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 16px;
  width: 1px;
  background: linear-gradient(var(--accent-line), var(--line));
}

.checkpoints li {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 12px 0;
}

.cp-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.checkpoints h3 {
  padding-top: 5px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.checkpoints p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The platform at the centre; devices on the inner orbit, where data goes on the outer one. */
.orbit-visual {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1;
  margin-inline: auto;
  container-type: inline-size;
}

.ov-ring,
.ov-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
}

.ov-ring {
  border: 1px solid var(--line);
}

.ov-r1 {
  width: 32%;
  height: 32%;
  border-color: var(--accent-line);
  border-style: dashed;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}

/* The two orbits are far enough apart that their chips never touch while they turn. */
.ov-r2,
.ov-o1 {
  width: 56%;
  height: 56%;
}

.ov-r3,
.ov-o2 {
  width: 94%;
  height: 94%;
}

.ov-r2 {
  border-color: var(--line-2);
}

/* A short arc of the accent travels round each ring. */
.ov-r2::after,
.ov-r3::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 72%, var(--accent) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
}

.ov-r3::after {
  rotate: 160deg;
  background: conic-gradient(from 0deg, transparent 0 82%, var(--accent) 100%);
}

.ov-glow {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  filter: blur(18px);
}

.ov-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  translate: -50% -50%;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow:
    var(--shadow-md),
    0 0 0 6px color-mix(in srgb, var(--accent) 7%, transparent);
  text-align: center;
}

.ov-core::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  opacity: 0;
}

.ov-core .brand-mark {
  width: 46px;
  height: 46px;
}

.ov-core b {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ov-core em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(9px, 1.9cqw, 11px);
  font-style: normal;
  white-space: nowrap;
}

.ov-node {
  --a: 0deg;
  position: absolute;
  top: calc(50% + 50% * sin(var(--a)));
  left: calc(50% + 50% * cos(var(--a)));
  width: 0;
  height: 0;
}

.ov-o1 .ov-n1 { --a: -62deg; }
.ov-o1 .ov-n2 { --a: 28deg; }
.ov-o1 .ov-n3 { --a: 118deg; }
.ov-o1 .ov-n4 { --a: 208deg; }
.ov-o2 .ov-n1 { --a: -106deg; }
.ov-o2 .ov-n2 { --a: -34deg; }
.ov-o2 .ov-n3 { --a: 38deg; }
.ov-o2 .ov-n4 { --a: 110deg; }
.ov-o2 .ov-n5 { --a: 182deg; }

.ov-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  translate: -50% -50%;
  padding: 0.5em 0.85em 0.5em 0.6em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: clamp(10px, 2.3cqw, 13px);
  font-weight: 550;
  white-space: nowrap;
}

/* A small picture keeps the centre compact, clear of the inner orbit. */
@container (max-width: 460px) {
  .ov-core {
    padding: 10px 12px;
    border-radius: 16px;
  }

  .ov-core em {
    display: none;
  }

  .ov-core .brand-mark {
    width: 32px;
    height: 32px;
  }

  .ov-core b {
    font-size: 0.8125rem;
  }
}

.ov-chip .icon {
  width: 1.25em;
  height: 1.25em;
  padding: 0.15em;
  border-radius: 50%;
  background: var(--accent-soft-2);
  color: var(--accent-ink);
}

.ov-chip-out .icon {
  background: var(--bg-3);
  color: var(--ink-2);
}

[data-theme="dark"] .ov-chip-out .icon {
  background: var(--surface-3);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(56px, 7vw, 88px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--line);
}

.stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 28px;
  background: var(--surface);
}

.stats dd {
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 55%, var(--surface)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.stats dt {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ Android app */

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.app-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1.08;
  margin-inline: auto;
  container-type: inline-size;
}

.app-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid var(--ring);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow-2), transparent 72%);
}

.app-orbit::before,
.app-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.app-orbit::before {
  inset: 17%;
  border: 1px solid var(--ring-faint);
}

.app-orbit::after {
  top: 13%;
  right: 16%;
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow:
    0 0 0 5px var(--accent-soft-2),
    0 0 20px 2px var(--accent-glow);
}

.app-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  aspect-ratio: 9 / 19.2;
  font-size: calc(46cqw / 24.5);
}

.app-phone-front {
  z-index: 2;
  translate: -18% -50%;
}

.app-phone-back {
  z-index: 1;
  translate: -96% -46%;
  rotate: -7deg;
  opacity: 0.94;
}

.ap-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  padding: 0.85em 0.9em;
  border: 1px solid var(--line);
  border-radius: 1.1em;
  background: var(--surface);
}

.ap-alert > i {
  flex: none;
  width: 0.7em;
  height: 0.7em;
  margin-top: 0.35em;
  border-radius: 50%;
  background: var(--ok-dot);
}

.ap-alert.is-firing {
  border-color: color-mix(in srgb, var(--warn-dot) 45%, var(--line));
}

.ap-alert.is-firing > i {
  background: var(--warn-dot);
  box-shadow: 0 0 0 0.25em color-mix(in srgb, var(--warn-dot) 20%, transparent);
}

.ap-alert b,
.ap-alert em {
  display: block;
}

.ap-alert em {
  color: var(--muted);
  font-size: 0.85em;
}

.ap-top {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding-top: 0.3em;
}

.ap-back {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border: 1px solid var(--line);
  border-radius: 50%;
  rotate: 90deg;
}

.ap-top b,
.ap-top em {
  display: block;
}

.ap-top b {
  font-family: var(--mono);
  font-size: 1.05em;
}

.ap-top em {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: var(--muted);
  font-size: 0.82em;
}

.ap-top em i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--ok-dot);
}

.ap-hero {
  display: flex;
  flex-direction: column;
  padding: 1em 1.05em;
  border: 1px solid var(--line);
  border-radius: 1.3em;
  background:
    radial-gradient(90% 120% at 100% 0%, var(--accent-glow-2), transparent 70%),
    var(--surface);
}

.ap-hero span,
.ap-hero em {
  color: var(--muted);
  font-size: 0.85em;
}

.ap-hero b {
  font-size: 3em;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.ap-hero b small {
  margin-left: 0.1em;
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
}

.ap-chart {
  width: 100%;
  height: 6em;
  overflow: visible;
  color: var(--accent);
}

.ap-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}

.ap-grid span {
  padding: 0.7em 0.85em;
  border: 1px solid var(--line);
  border-radius: 1em;
  background: var(--surface);
}

.ap-grid em,
.ap-grid b {
  display: block;
}

.ap-grid em {
  color: var(--muted);
  font-size: 0.82em;
}

.ap-grid b {
  font-size: 1.35em;
  letter-spacing: -0.02em;
}

.ap-update {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.75em 0.9em;
  border: 1px dashed var(--line-2);
  border-radius: 1.1em;
  color: var(--accent-ink);
}

.ap-update b,
.ap-update em {
  display: block;
  color: var(--ink);
}

.ap-update em {
  color: var(--muted);
  font-size: 0.82em;
}

.app-lede {
  max-width: 540px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.app-features {
  display: grid;
  gap: 18px;
  margin: 32px 0 36px;
  list-style: none;
}

.app-features li {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.app-features b {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.af-ico,
.sg-ico,
.uc-ico,
.contact-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.af-ico .icon,
.sg-ico .icon,
.uc-ico .icon,
.contact-icon .icon {
  width: 19px;
  height: 19px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* The Google Play badge: white with a black edge in the light theme, black with a grey edge
   in the dark one; the logo keeps its own colours in both. */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 22px 0 16px;
  border: 1.5px solid #000000;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  color: #000000;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s,
    border-color 0.2s;
}

[data-theme="dark"] .play-badge {
  border-color: #a6a6a6;
  background: #000000;
  color: #ffffff;
}

.play-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #000000;
}

[data-theme="dark"] .play-badge:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.play-logo {
  flex: none;
  width: 27px;
  height: 30px;
}

.play-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.play-kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.play-name {
  margin-top: 4px;
  font-size: 1.4375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.play-badge-sm {
  gap: 9px;
  height: 44px;
  margin-top: 22px;
  padding: 0 16px 0 12px;
  border-radius: 8px;
}

.play-badge-sm .play-logo {
  width: 20px;
  height: 22px;
}

.play-badge-sm .play-kicker {
  font-size: 0.5625rem;
}

.play-badge-sm .play-name {
  margin-top: 3px;
  font-size: 1.0625rem;
}

/* A white-label landing site (/brand/brand.css, 06-brand.sh) is another company's: it does not
   show the IoTAPS office or the IoTAPS app. */
:root:has(link[href^="/brand/brand.css"]) .iotaps-only {
  display: none !important;
}

/* ------------------------------------------------------------------ developers */

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

.dev-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.dev-specs {
  margin: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.dev-specs > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.dev-specs dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.dev-specs dd {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.dev-actions,
.price-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

/* ------------------------------------------------------------------ code (every page) */

.code {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--code-line);
  border-radius: var(--r-lg);
  background: var(--code-bg);
  box-shadow: var(--shadow-sm);
  color: var(--code-fg);
}

.code-window {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--code-line);
  background: var(--code-head);
}

.code-window .code-head {
  min-height: 52px;
}

.code-file {
  overflow: hidden;
  color: var(--code-muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.code-dots {
  display: flex;
  flex: none;
  gap: 6px;
}

.code-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.code-tabs {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.code-tabs::-webkit-scrollbar {
  display: none;
}

.code-tabs button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--code-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.15s,
    background-color 0.15s;
}

.code-tabs button:hover {
  color: var(--code-fg);
}

.code-tabs button[aria-selected="true"] {
  background: var(--code-bg);
  box-shadow:
    inset 0 0 0 1px var(--code-line),
    var(--shadow-xs);
  color: var(--code-fg);
}

.code-panel {
  position: relative;
}

.code pre {
  overflow-x: auto;
  padding: 20px 22px;
  color: var(--code-fg);
  font-size: 0.8125rem;
  line-height: 1.7;
  tab-size: 2;
}

.code-window pre {
  padding: 24px 26px;
  font-size: 0.84rem;
}

.code pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.t-k {
  color: var(--t-key);
}

.t-s {
  color: var(--t-str);
}

.t-n {
  color: var(--t-num);
}

.t-c {
  color: var(--t-com);
  font-style: italic;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--code-line);
  border-radius: 8px;
  background: var(--code-head);
  color: var(--code-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.15s,
    color 0.15s;
}

.code-panel:hover .copy-btn,
.copy-btn:focus-visible,
.copy-btn.is-copied {
  opacity: 1;
}

.copy-btn:hover {
  color: var(--code-fg);
}

.copy-btn.is-copied {
  border-color: var(--accent-line);
  color: var(--accent-ink);
}

@media (hover: none) {
  .copy-btn {
    opacity: 1;
  }
}

.code-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------------ security */

.secure-grid,
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.secure-grid li,
.use-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs), var(--highlight);
}

.sg-ico,
.uc-ico {
  margin-bottom: 18px;
}

.secure-grid h3,
.use-card h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

.secure-grid p,
.use-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.secure-more {
  margin-top: 36px;
  text-align: center;
}

/* ------------------------------------------------------------------ pricing teaser */

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.price-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.price-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0;
}

.price-facts > div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs), var(--highlight);
}

.price-facts > div > b {
  display: block;
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price-facts > div > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.rate-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md), var(--highlight);
}

.rate-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.rate-card-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.rate-card-head span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok-dot);
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.rate-table th,
.rate-table td {
  padding: 13px 24px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

[data-theme="dark"] .rate-table th,
[data-theme="dark"] .rate-table td {
  border-bottom-color: var(--line);
}

.rate-table thead th {
  padding-block: 10px;
  border-bottom-color: var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rate-table tbody th {
  color: var(--ink);
  font-weight: 550;
  white-space: nowrap;
}

.rate-table tbody th small {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

[data-theme="dark"] .rate-table tbody th small {
  background: var(--surface-3);
}

.rate-table td {
  color: var(--muted);
}

.rate-table td b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rate-table td:last-child,
.rate-table thead th:last-child {
  text-align: right;
}

.rate-table td:last-child {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

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

.rt-ico {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--accent-ink);
  vertical-align: middle;
}

[data-theme="dark"] .rt-ico {
  background: var(--surface-3);
}

.rt-ico .icon {
  width: 15px;
  height: 15px;
}

.rate-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------------ use cases */

.use-card {
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.25s,
    transform 0.25s var(--ease);
}

.use-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md), var(--highlight);
  color: inherit;
}

.use-card p {
  flex: 1;
}

.use-card .uc-metric {
  align-self: flex-start;
  margin-top: 18px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--ink-2);
  font-size: 0.78rem;
}

/* ------------------------------------------------------------------ FAQ (home) */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}

.faq-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.faq-head > p:not(.eyebrow) {
  max-width: 380px;
  margin-top: 18px;
  color: var(--muted);
}

.faq-list,
.faq {
  border-top: 1px solid var(--line);
}

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

.faq-list summary,
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary {
  padding-block: 18px;
  font-size: 1rem;
}

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

.faq-list summary:hover,
.faq summary:hover {
  color: var(--accent-ink);
}

.faq-icon,
.faq summary::after {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  translate: -50% -50%;
  border-radius: 1px;
  background: var(--ink-2);
  transition: rotate 0.25s var(--ease);
}

.faq-icon::after {
  rotate: 90deg;
}

details[open] .faq-icon::after {
  rotate: 0deg;
}

details[open] > summary .faq-icon {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* Inner pages: the same plus, drawn with two gradients (a pseudo-element has no children). */
.faq summary::after {
  content: "";
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 1.5px 10px no-repeat,
    var(--surface);
}

.faq details[open] summary::after {
  border-color: var(--accent-line);
  background-color: var(--accent-soft);
  background-size: 10px 1.5px, 1.5px 0, auto;
}

.faq-list details > p,
.faq details > p {
  max-width: 680px;
  padding: 0 52px 24px 2px;
  color: var(--muted);
  line-height: 1.65;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  position: relative;
  background: var(--bg);
}

.footer-cta {
  padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 8vw, 104px);
}

/* Not .wrap: platform.js appends its links to the footer's first .wrap. */
.cta-shell {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(70% 90% at 50% 0%, var(--accent-glow), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-md), var(--highlight);
  text-align: center;
}

.cta-panel h2 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(2rem, 1.25rem + 2.8vw, 3.5rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.cta-lede {
  max-width: 580px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

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

.cta-orbits {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, #000 30%, transparent 75%);
}

.cta-orbits span {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% -50%;
  border: 1px solid var(--ring);
  border-radius: 50%;
}

.cta-orbits span:nth-child(1) {
  width: 520px;
  height: 520px;
}

.cta-orbits span:nth-child(2) {
  width: 820px;
  height: 820px;
  border-color: var(--ring-faint);
}

.cta-orbits span:nth-child(3) {
  width: 1120px;
  height: 1120px;
}

.cta-orbits i {
  position: absolute;
  width: 7px;
  height: 7px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-soft-2),
    0 0 16px 2px var(--accent-glow);
}

.cta-orbits i:nth-of-type(1) {
  top: 76%;
  left: calc(50% - 236px);
}

.cta-orbits i:nth-of-type(2) {
  top: 58%;
  left: calc(50% + 372px);
}

.cta-orbits i:nth-of-type(3) {
  top: 40%;
  left: calc(50% - 500px);
}

/* Hairlines on the content width, not across the wrap's gutters. */
.footer-body,
.footer-bottom {
  position: relative;
}

.footer-body::before,
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  height: 1px;
  background: var(--line);
}

.footer-body {
  padding-top: 56px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.footer-about p {
  max-width: 330px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-facts {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-facts li,
.footer-facts a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.footer-facts .icon {
  margin-top: 0.15em;
}

address {
  font-style: normal;
}

.footer-facts a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-facts a:hover {
  color: var(--accent-ink);
}

.footer-facts .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.footer-nav h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.footer-nav ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-nav a,
.platform-links a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-nav a:hover,
.platform-links a:hover {
  color: var(--ink);
}

.platform-links {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-block: 24px 36px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* A page with its own closing call to action does not repeat the footer's. */
body:has(main .closer) .footer-cta {
  display: none;
}

body:has(main .closer) .footer-body::before {
  display: none;
}

/* ------------------------------------------------------------------ why IoTAPS */

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

.value-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--highlight);
}

.vc-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), color-mix(in oklab, var(--accent) 72%, #000000));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 10px 22px -12px var(--accent-glow);
  color: var(--on-accent);
}

.vc-ico .icon {
  width: 22px;
  height: 22px;
}

.value-card h3,
.audience-card h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.value-card > p {
  flex: 1;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.value-card ul {
  display: grid;
  align-content: start;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

/* Cards in a row share their rows, so titles, text and lists line up across them. */
@supports (grid-template-rows: subgrid) {
  .value-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }

  .vc-ico {
    align-self: start;
  }
}

[data-theme="dark"] .value-card ul {
  border-top-color: var(--line);
}

.value-card li {
  display: flex;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

.value-card li .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--accent-ink);
  stroke-width: 2.2;
}

/* ------------------------------------------------------------------ who it's for */

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

.audience-card {
  display: flex;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--highlight);
  transition:
    border-color 0.2s,
    box-shadow 0.25s;
}

.audience-card:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md), var(--highlight);
}

.ac-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.ac-ico .icon {
  width: 22px;
  height: 22px;
}

.audience-card > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.audience-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.audience-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
  list-style: none;
}

.audience-card li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.audience-card li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 2px;
  width: 9px;
  height: 5px;
  rotate: -45deg;
  border-bottom: 1.75px solid var(--accent);
  border-left: 1.75px solid var(--accent);
}

.audience-card .text-link {
  margin-top: auto;
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------------ build or buy */

.compare {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md), var(--highlight);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

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

[data-theme="dark"] .compare-table th,
[data-theme="dark"] .compare-table td {
  border-bottom-color: var(--line);
}

.compare-table thead th {
  padding-block: 14px;
  border-bottom-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* The IoTAPS column carries the accent tint from header to last row. */
.compare-table thead th:last-child,
.compare-table td:last-child {
  background: var(--accent-soft);
}

.compare-table tbody th {
  width: 21%;
  color: var(--ink);
  font-weight: 600;
}

.compare-table td {
  width: 39.5%;
  color: var(--muted);
}

/* A hanging indent keeps wrapped lines clear of the check mark. */
.compare-table td:last-child {
  padding-left: 46px;
  color: var(--ink);
  text-indent: -24px;
}

.compare-table td .icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: var(--accent-ink);
  stroke-width: 2.4;
  vertical-align: -3px;
}

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

.cmp-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cmp-head .icon {
  width: 15px;
  height: 15px;
}

.cmp-head .brand-mark {
  width: 18px;
  height: 18px;
}

.cmp-head-iotaps {
  color: var(--accent-ink);
}

/* ------------------------------------------------------------------ operations: reports, integrations */

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.ops-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 30px;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.check-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent-soft-2);
  color: var(--accent-ink);
  stroke-width: 2.6;
}

.price-perks {
  margin: 0 0 28px;
}

/* Room under the report for the chat card, which overlaps only its lower edge. */
.report-visual {
  position: relative;
  padding-bottom: 116px;
}

.rp-doc {
  position: relative;
  overflow: hidden;
  max-width: 540px;
  margin-left: auto;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.rp-doc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 45%, #ffffff));
}

.rp-doc b,
.rp-chat b {
  font-weight: 600;
}

.rp-doc em,
.rp-chat em {
  font-style: normal;
}

.rp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rp-head .brand-mark {
  width: 32px;
  height: 32px;
}

.rp-head b,
.rp-head em {
  display: block;
}

.rp-head b {
  font-size: 1rem;
  font-weight: 650;
}

.rp-head em {
  color: var(--muted);
  font-size: 0.75rem;
}

.rp-date {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

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

.rp-kpis span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.rp-kpis em {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.rp-kpis b {
  display: block;
  margin-top: 2px;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.rp-kpis b.is-warn {
  color: var(--warn);
}

.rp-kpis b.is-bad {
  color: var(--danger);
}

.rp-block + .rp-block {
  margin-top: 14px;
}

.rp-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.rp-row i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.rp-row i.is-warn {
  background: var(--warn-dot);
}

.rp-row i.is-bad {
  background: var(--danger-dot);
}

.rp-row em {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.rp-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  padding: 8px 12px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.rp-bars i {
  flex: 1;
  height: 70%;
  border-radius: 4px 4px 0 0;
  background: var(--accent-soft-2);
}

.rp-bars i:nth-child(2) { height: 78%; }
.rp-bars i:nth-child(3) { height: 74%; }
.rp-bars i:nth-child(4) { height: 83%; }
.rp-bars i:nth-child(5) { height: 88%; }
.rp-bars i:nth-child(6) { height: 84%; }

.rp-bars i:nth-child(7) {
  height: 96%;
  background: var(--accent);
}

/* The same report arriving in a team chat. */
.rp-chat {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 12px;
  width: min(470px, 90%);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.rp-chat-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft-2);
  color: var(--accent-ink);
}

.rp-chat-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rp-chat-top em {
  color: var(--muted);
  font-size: 0.72rem;
}

.rp-chat p {
  margin-top: 2px;
  color: var(--ink-2);
}

.rp-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rp-files span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.rp-files .icon {
  width: 13px;
  height: 13px;
  color: var(--accent-ink);
}

.integrations {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.int-title {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.int-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.int-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.int-list .icon {
  width: 15px;
  height: 15px;
  color: var(--accent-ink);
}

/* ------------------------------------------------------------------ from pilot to fleet */

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

/* One line through the four stages, behind their dots. */
.journey::before {
  content: "";
  position: absolute;
  top: 31px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-line), var(--accent), var(--accent-line));
}

.journey-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.js-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    0 0 0 8px var(--bg-2),
    var(--shadow-sm);
}

.js-dot::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft-2);
}

.js-when {
  margin-top: 18px;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.journey-step h3 {
  margin-top: 4px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.journey-step ul {
  display: grid;
  align-content: start;
  flex: 1;
  gap: 9px;
  width: 100%;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs), var(--highlight);
  list-style: none;
  text-align: left;
}

.journey-step li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

.journey-step li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------------------------------------------ enterprise */

.ent-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(70% 110% at 0% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(60% 90% at 100% 100%, var(--accent-glow-2), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-lg), var(--highlight);
}

.ent-orbits {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000 30%, transparent 75%);
}

.ent-orbits span {
  position: absolute;
  top: 0;
  right: 0;
  translate: 50% -50%;
  border: 1px solid var(--ring);
  border-radius: 50%;
}

.ent-orbits span:nth-child(1) {
  width: 520px;
  height: 520px;
}

.ent-orbits span:nth-child(2) {
  width: 840px;
  height: 840px;
  border-color: var(--ring-faint);
}

/* On the inner ring (radius 260 px from the corner), clear of the cards. */
.ent-orbits i {
  position: absolute;
  top: 45px;
  right: 256px;
  width: 7px;
  height: 7px;
  translate: 50% -50%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-soft-2),
    0 0 16px 2px var(--accent-glow);
}

.ent-copy h2 {
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.ent-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.ent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

.ent-list li {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.ent-list .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: var(--accent-soft-2);
  color: var(--accent-ink);
}

.ent-list b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.9375rem;
}

/* ================================================================== INNER PAGES */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(56px, 6vw, 88px);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-position: center top;
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 75% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 75% 0%, #000 15%, transparent 70%);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  z-index: -1;
  width: min(900px, 80vw);
  aspect-ratio: 1;
  border: 1px solid var(--ring);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  box-shadow:
    0 0 0 120px transparent,
    0 0 0 121px var(--ring-faint);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.25rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.page-hero .lede {
  max-width: 660px;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero .actions {
  margin-top: 30px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--line);
  box-shadow: var(--shadow-md);
}

.hero-kpis > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 22px 24px;
  background: var(--surface);
}

.hero-kpis dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-kpis dd {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.hero-kpis .kpi-note {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

.notfound {
  display: flex;
  align-items: center;
  min-height: 64vh;
}

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

/* ------------------------------------------------------------------ inner sections */

.sec {
  padding-block: clamp(56px, 7vw, 96px);
}

.sec-alt {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
}

.sec h2 {
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

.sec-head h2 {
  margin-bottom: 12px;
}

.sec-head p {
  max-width: 560px;
  color: var(--muted);
}

.sec-grid > .sec-head:only-child {
  grid-column: 1 / -1;
}

.sec-grid > .sec-head:only-child p {
  max-width: 760px;
}

.note {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

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

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 22px;
}

.prose li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.prose ul + p,
.prose p + ul {
  margin-top: 16px;
}

.prose strong {
  color: var(--ink);
}

/* ------------------------------------------------------------------ docs layout */

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: 56px 96px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.toc-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ul {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
  list-style: none;
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 14px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.is-active {
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 550;
}

.doc-body {
  min-width: 0;
  max-width: 840px;
}

.doc-body > section {
  padding-bottom: 56px;
}

.doc-body > section + section {
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.doc-body h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.doc-body h3 {
  margin: 28px 0 8px;
  font-size: 1.0625rem;
}

.doc-body > section > p {
  max-width: 46rem;
  color: var(--ink-2);
}

.doc-body > section > p + p {
  margin-top: 12px;
}

.doc-body .defs,
.doc-body .kv,
.doc-body .tbl-wrap,
.doc-body .code,
.doc-body .two-col,
.doc-body .steps,
.doc-body .cols,
.doc-body .faq,
.doc-body .lab,
.doc-body .prose {
  margin-top: 24px;
}

/* Key and value pairs. */
.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
}

.kv > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
}

.kv > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.kv dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.kv dd {
  color: var(--ink);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

/* Definitions: two columns of cards, or one spec sheet (.defs-1). */
.defs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.defs > div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.defs dt {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.defs dd {
  color: var(--muted);
  font-size: 0.9375rem;
}

.defs-1 {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.defs-1 > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  border: 0;
  border-radius: 0;
}

.defs-1 > div + div {
  border-top: 1px solid var(--line);
}

.defs-1 dt {
  margin: 0;
}

/* Numbered steps. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  counter-reset: step;
}

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

.steps li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.steps h3,
.doc-body .steps h3 {
  margin: 0 0 6px;
  font-size: 0.9375rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Three lists side by side. */
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cols > div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.cols h3,
.doc-body .cols h3 {
  margin: 0 0 12px;
  font-size: 0.9375rem;
}

.cols ul,
.uses ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.cols li,
.uses li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.cols li::before,
.uses li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 2px;
  width: 9px;
  height: 5px;
  rotate: -45deg;
  border-bottom: 1.75px solid var(--accent);
  border-left: 1.75px solid var(--accent);
}

/* Tables. */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.tbl-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tbl-wrap th,
.tbl-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

[data-theme="dark"] .tbl-wrap th,
[data-theme="dark"] .tbl-wrap td {
  border-bottom-color: var(--line);
}

.tbl-wrap thead th {
  border-bottom-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tbl-wrap tbody th {
  color: var(--ink);
  font-weight: 550;
}

.tbl-wrap td {
  color: var(--ink-2);
}

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

.tbl-wrap tbody tr:hover > * {
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}

.tbl-matrix td.y {
  color: var(--ok);
  font-weight: 550;
}

.tbl-matrix td.n {
  color: var(--muted);
}

.tbl-codes tbody th {
  white-space: nowrap;
}

/* Field and code names in tables stay whole; the table scrolls instead. */
.tbl-wrap th code {
  white-space: nowrap;
  overflow-wrap: normal;
}

.tbl-title,
.doc-body .tbl-title {
  margin: 0 0 10px;
  font-size: 0.9375rem;
}

/* minmax(0, 1fr): a wide table scrolls inside its wrapper instead of widening the page. */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.req {
  display: block;
  width: fit-content;
  margin-top: 5px;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 600;
}

/* The envelope checker (lab.js). */
.lab {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.lab-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.lab-title {
  font-weight: 600;
}

.lab-sub {
  color: var(--muted);
  font-size: 0.8125rem;
}

.lab-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 18px 0;
}

.lab label {
  display: block;
  padding: 14px 18px 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.lab textarea {
  display: block;
  width: calc(100% - 36px);
  min-height: 250px;
  margin: 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--field);
  border-radius: var(--r);
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  resize: vertical;
}

.lab textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 4px var(--accent-soft-2);
}

.lab-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.875rem;
}

.lab-badge {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.lab-result[data-state="ok"] .lab-badge {
  background: var(--ok-soft);
  color: var(--ok);
}

.lab-result[data-state="error"] .lab-badge {
  background: var(--danger-soft);
  color: var(--danger);
}

.lab-detail {
  flex: 1;
  min-width: 200px;
  color: var(--ink-2);
}

.lab-bytes {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* The fleet cost calculator (pricing). */
.calc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md), var(--highlight);
}

.calc label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 550;
}

.calc input,
.calc select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--field);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}

.calc select {
  padding-right: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px, var(--bg);
  -webkit-appearance: none;
  appearance: none;
}

.calc input:focus,
.calc select:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 4px var(--accent-soft-2);
}

.calc-total {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.calc-total strong {
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Use cases (solutions). */
.uses {
  display: grid;
  gap: 20px;
}

.uses > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--highlight);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.uses h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.uses p {
  color: var(--muted);
}

.uses ul {
  margin-top: 18px;
}

.uses ul li {
  font-size: 0.9375rem;
}

/* The business result of each example, above its technical details. */
.uses .use-outcome {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.use-outcome b {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs), var(--highlight);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.25s,
    transform 0.25s var(--ease);
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md), var(--highlight);
  color: inherit;
}

.contact-card h3 {
  margin-top: 18px;
  font-size: 1.0625rem;
}

.contact-card p {
  flex: 1;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 550;
}

.contact-action .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.contact-card:hover .contact-action .icon {
  transform: translateX(3px);
}

.contact-direct {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: start;
  gap: clamp(32px, 5vw, 56px);
}

.contact-kv {
  margin-top: 24px;
}

.contact-aside {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 90% at 100% 0%, var(--accent-glow-2), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-md), var(--highlight);
}

.contact-aside-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.contact-aside-email {
  margin: 6px 0 20px;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-aside-email a {
  color: var(--ink);
  text-decoration: none;
}

.contact-aside-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* A closing call to action on an inner page. */
.closer {
  padding-block: clamp(56px, 7vw, 96px);
}

.closer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

/* The panel is drawn on the wrap's content box, so the gutters stay clear. */
.closer .closer-inner {
  position: relative;
  isolation: isolate;
  padding: clamp(32px, 4vw, 52px) clamp(24px, 4vw, 52px);
}

.closer .closer-inner::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter);
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(70% 140% at 100% 0%, var(--accent-glow), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow-md), var(--highlight);
}

.closer .closer-inner > * {
  position: relative;
  margin-inline: var(--gutter);
}

.closer h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.closer p {
  margin-top: 8px;
  color: var(--muted);
}

/* ================================================================== MOTION */

/* Sections rise into place once (site.js adds .is-in; without it everything is shown). */
.js [data-reveal],
.js body:not(.page-index) .page-hero-grid > *,
.js body:not(.page-index) .doc-body > section,
.js body:not(.page-index) .uses > article,
.js body:not(.page-index) .contact-card,
.js body:not(.page-index) .sec-grid > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js [data-reveal].is-in,
.js body:not(.page-index) .page-hero-grid > .is-in,
.js body:not(.page-index) .doc-body > section.is-in,
.js body:not(.page-index) .uses > article.is-in,
.js body:not(.page-index) .contact-card.is-in,
.js body:not(.page-index) .sec-grid > .is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js body:not(.page-index) .page-hero-grid > *,
  .js body:not(.page-index) .doc-body > section,
  .js body:not(.page-index) .uses > article,
  .js body:not(.page-index) .contact-card,
  .js body:not(.page-index) .sec-grid > * {
    transition: none;
  }
}

/* Siblings that arrive together come in one after another. */
.js [data-reveal]:nth-child(2),
.js .contact-card:nth-child(2) {
  transition-delay: 0.07s;
}

.js [data-reveal]:nth-child(3),
.js .contact-card:nth-child(3) {
  transition-delay: 0.14s;
}

.js [data-reveal]:nth-child(4),
.js .contact-card:nth-child(4) {
  transition-delay: 0.21s;
}

.js [data-reveal]:nth-child(5) {
  transition-delay: 0.28s;
}

.js [data-reveal]:nth-child(6) {
  transition-delay: 0.35s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes rise-far {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.985);
  }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes spin-back {
  to {
    rotate: -360deg;
  }
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

@keyframes ping {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes glint {
  0%,
  35% {
    background-position: -60% 0, 0 0;
  }

  100% {
    background-position: 220% 0, 0 0;
  }
}

@keyframes fill {
  0% {
    transform: scaleX(0.04);
  }

  70%,
  100% {
    transform: scaleX(1);
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.8s var(--ease) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero-copy > :nth-child(5) {
    animation-delay: 0.24s;
  }

  .hero-visual {
    animation: rise-far 1.1s var(--ease) 0.28s both;
  }
}

/* Ambient motion is slow, decorative and stops when the page asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .ho-ring {
    animation: spin 160s linear infinite;
  }

  .ho-r2,
  .ho-r4 {
    animation-duration: 220s;
    animation-direction: reverse;
  }

  .ov-orbit {
    animation: spin 90s linear infinite;
  }

  .ov-chip {
    animation: spin-back 90s linear infinite;
  }

  .ov-o2,
  .ov-o2 .ov-chip {
    animation-duration: 140s;
    animation-direction: reverse;
  }

  .ov-core::before {
    animation: ping 3.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  }

  .ov-r2::after {
    animation: spin 7s linear infinite;
  }

  .ov-r3::after {
    animation: spin 11s linear infinite reverse;
  }

  .mock-toast-a {
    animation: float 7s ease-in-out infinite;
  }

  .mock-toast-b {
    animation: float 8s ease-in-out 1.5s infinite;
  }

  .mock-live i,
  .mm-pill i,
  .ta-state i {
    animation: blink 2.4s ease-in-out infinite;
  }

  .fa-progress i,
  .to-bar i {
    animation: glint 3.2s ease-in-out infinite;
  }

  .to-bar i {
    transform-origin: left;
    animation:
      fill 4.5s var(--ease) infinite,
      glint 3.2s ease-in-out infinite;
  }

  .fa-log .is-next .icon {
    animation: blink 1.6s ease-in-out infinite;
  }

  /* Off screen or in a hidden tab, nothing moves (site.js). */
  .is-paused,
  .is-paused * {
    animation-play-state: paused !important;
  }
}

/* ================================================================== RESPONSIVE */

@media (max-width: 1180px) {
  .footer-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-about p {
    max-width: 520px;
  }

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

  .tile-wide .tile-copy {
    flex-basis: 46%;
  }
}

/* Two-column sections stay side by side on a tablet in landscape. */
@media (max-width: 1024px) {
  .dev-layout,
  .price-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

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

  .tile-wide {
    grid-column: 1 / -1;
  }

  .secure-grid,
  .use-grid,
  .contact-grid,
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ent-copy > p:not(.eyebrow) {
    max-width: 640px;
  }
}

/* Documentation pages: the table of contents becomes a bar of pills under the header. */
@media (max-width: 1024px) {
  html:has(.toc) {
    scroll-padding-top: calc(var(--header-h) + 72px);
  }

  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 0;
  }

  .toc {
    top: var(--header-h);
    z-index: 20;
    max-height: none;
    margin: 0 calc(-1 * var(--gutter)) 32px;
    padding: 10px var(--gutter);
    overflow: visible;
    border-bottom: 1px solid var(--line);
    background: var(--glass);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
  }

  .toc-title {
    display: none;
  }

  .toc ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-left: 0;
    scrollbar-width: none;
  }

  .toc ul::-webkit-scrollbar {
    display: none;
  }

  .toc a {
    margin: 0;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    white-space: nowrap;
  }

  .toc a.is-active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-ink);
  }
}

/* ================================================================== RESPONSIVE */

@media (max-width: 960px) {
  .page-hero-grid,
  .orbit-layout,
  .app-layout,
  .dev-layout,
  .price-layout,
  .faq-layout,
  .contact-direct,
  .ops-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-head {
    position: static;
  }

  .report-visual {
    max-width: 600px;
  }

  .rp-doc {
    max-width: none;
  }

  .orbit-visual {
    max-width: 520px;
  }

  .app-layout .app-visual {
    max-width: 480px;
  }
}

/* The menu folds into a sheet under the header. */
@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle .icon {
    width: 20px;
    height: 20px;
  }

  .nav-toggle .icon-close,
  .site-header.is-open .nav-toggle .icon-open {
    display: none;
  }

  .site-header.is-open .nav-toggle .icon-close {
    display: inline-block;
  }

  .js .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
  }

  .js .site-header.is-open .site-nav {
    display: flex;
  }

  html.nav-open {
    overflow: hidden;
  }

  .nav-links {
    flex-direction: column;
    margin: 0;
  }
}

@media (max-width: 960px) {
  .nav-links a {
    display: flex;
    height: 52px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    color: var(--ink);
    font-size: 1.0625rem;
  }

  .nav-links a:hover {
    background: transparent;
    color: var(--accent-ink);
  }

  .nav-actions {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
  }

  .nav-actions .btn {
    flex: 1;
    min-height: 44px;
  }

  .nav-signin {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
  }

  .nav-actions .theme-switch {
    order: -1;
    flex-basis: 100%;
    justify-content: space-between;
    max-width: 132px;
  }

  /* Without JavaScript the links simply wrap under the logo. */
  html:not(.js) .site-header {
    position: static;
    height: auto;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .site-nav {
    flex-basis: 100%;
    flex-wrap: wrap;
  }

  html:not(.js) .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  html:not(.js) .nav-links a {
    display: inline-flex;
    height: 40px;
    padding: 0 10px 0 0;
    border: 0;
    font-size: 0.9375rem;
  }
}

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

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

  .flow-art {
    height: auto;
    min-height: 236px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .flow-body {
    align-self: center;
  }

  .board-check,
  .uses > article,
  .defs {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .tile-wide {
    flex-direction: column;
  }

  .tile-wide .tile-copy {
    flex-basis: auto;
    padding: 28px 28px 0;
  }

  .tile-art.td-art {
    padding: 24px 28px 28px;
  }

  .tile-art.tb-art {
    min-height: 260px;
  }

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

  /* The four stages turn into a vertical timeline: dot on the left, details beside it. */
  .journey {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 640px;
    margin-inline: auto;
  }

  .journey::before {
    display: none;
  }

  .journey-step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
    text-align: left;
  }

  .journey-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 64px;
    bottom: -24px;
    left: 31px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-line));
  }

  .js-dot {
    grid-row: 1 / span 3;
    grid-column: 1;
  }

  .js-when,
  .journey-step h3,
  .journey-step ul {
    grid-column: 2;
  }

  .js-when {
    margin-top: 8px;
  }

  .journey-step ul {
    margin-top: 12px;
  }
}

@media (max-width: 760px) {
  .cols,
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }

  .defs-1 > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .rate-table th,
  .rate-table td {
    padding-inline: 16px;
  }

  .rt-ico {
    display: none;
  }

  /* Build or buy: each capability becomes a card, its two answers labelled. */
  .compare-table thead {
    display: none;
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: auto;
  }

  .compare-table tbody tr {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

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

  .compare-table tbody th,
  .compare-table td {
    border-bottom: 0;
  }

  .compare-table tbody th {
    width: auto;
    padding: 18px 18px 8px;
    font-size: 1.0625rem;
  }

  .compare-table td {
    padding: 4px 18px 0;
  }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  /* Label across the top, then the check mark beside the text. */
  .compare-table td:last-child {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    column-gap: 8px;
    margin: 12px 12px 0;
    padding: 12px 14px;
    border: 1px solid var(--accent-line);
    border-radius: var(--r-lg);
    text-indent: 0;
  }

  .compare-table td:last-child::before {
    grid-column: 1 / -1;
    color: var(--accent-ink);
  }

  .compare-table td:last-child .icon {
    margin: 3px 0 0;
  }

  /* The chat card follows the report instead of overlapping it. */
  .report-visual {
    padding-bottom: 0;
  }

  .rp-chat {
    position: relative;
    width: auto;
    margin: -24px 14px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --header-h: 60px;
  }

  .section {
    padding-block: 72px;
  }

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .hero h1 br {
    display: none;
  }

  .hero h1 .grad {
    display: block;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-proof {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .stack-grid,
  .bento,
  .secure-grid,
  .use-grid,
  .contact-grid,
  .kv,
  .price-facts,
  .value-grid,
  .ent-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .stack-grid li {
    min-height: 72px;
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .flow-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-art {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tile {
    min-height: 0;
  }

  .tile-copy,
  .tile-wide .tile-copy {
    padding: 24px 22px 0;
  }

  .tile-art,
  .tile-art.td-art {
    padding: 22px;
  }

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

  .tile-art.tb-art {
    min-height: 230px;
  }

  .tb-window {
    width: 80%;
  }

  .board-check,
  .stats > div,
  .secure-grid li,
  .use-card,
  .value-card {
    padding: 22px;
  }

  .audience-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px 22px;
  }

  .audience-card ul {
    margin-bottom: 18px;
  }

  .rp-doc {
    padding: 22px 16px 18px;
  }

  .rp-kpis {
    gap: 8px;
  }

  .rp-kpis span {
    padding: 10px;
  }

  .rp-kpis b {
    font-size: 1.125rem;
  }

  .rp-row {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .rp-row em {
    flex-basis: 100%;
    margin-left: 18px;
  }

  .ent-panel {
    padding: 28px 22px;
  }

  .ent-actions .btn {
    flex: 1 1 100%;
  }

  .compare-table tbody th {
    padding-inline: 16px;
  }

  .compare-table td {
    padding-inline: 16px;
  }

  .compare-table td:last-child {
    margin-inline: 10px;
    padding-inline: 12px;
  }

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

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

  .dev-specs > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .faq-list details > p,
  .faq details > p {
    padding-right: 8px;
  }

  .code-window .code-dots {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .rate-table thead th:nth-child(3),
  .rate-table td:nth-child(3) {
    display: none;
  }

  .app-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------ no JavaScript, print */

/* Without JavaScript every code sample is shown, one after another. */
html:not(.js) .code-tabs,
html:not(.js) .copy-btn {
  display: none;
}

html:not(.js) .code-panel[hidden] {
  display: block !important;
}

html:not(.js) .code-panel + .code-panel {
  border-top: 1px solid var(--code-line);
}

@media (forced-colors: active) {
  .grad,
  .stats dd {
    background: none;
    color: CanvasText;
  }
}

@media print {
  .site-header,
  .toc {
    position: static;
  }

  .skip-link,
  .nav-toggle,
  .copy-btn,
  .code-tabs,
  .theme-switch,
  .hero-bg,
  .footer-cta {
    display: none !important;
  }

  .code-panel[hidden] {
    display: block !important;
  }

  .js [data-reveal],
  .js body:not(.page-index) .doc-body > section {
    opacity: 1 !important;
    transform: none !important;
  }
}
