/* MobiObs public site — shares tokens with web/src/index.css (Obsidian + Paper). */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ───────── Tokens ───────── */
:root,
:root[data-theme='obsidian'] {
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #121822;
  --surface-2: #182130;
  --surface-3: #1f2a3b;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
  --fg: #e6edf3;
  --muted: #9fb0c3;
  --faint: #8391a6;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --accent-fg: #06202a;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --sev-error: #fb923c;
  --sev-notice: #38bdf8;
  --glass: rgba(11, 15, 20, 0.78);
  --shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  --focus: #22d3ee;
  --selection: rgba(34, 211, 238, 0.3);
  --code-bg: #0f141b;
  --glow-1: rgba(34, 211, 238, 0.14);
  --glow-2: rgba(167, 139, 250, 0.12);
  --shot-border: rgba(255, 255, 255, 0.1);
}

:root[data-theme='paper'] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #e4e4e7;
  --border: rgba(0, 0, 0, 0.14);
  --border-strong: rgba(0, 0, 0, 0.4);
  --fg: #000000;
  --muted: #2f2f33;
  --faint: #52525b;
  --accent: #0b5f80;
  --accent-2: #4c1d95;
  --accent-fg: #ffffff;
  --ok: #065f46;
  --warn: #92400e;
  --danger: #9f1239;
  --sev-error: #9a3412;
  --sev-notice: #075985;
  --glass: rgba(255, 255, 255, 0.92);
  --shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.25);
  --focus: #0b5f80;
  --selection: rgba(11, 95, 128, 0.2);
  --code-bg: #f4f4f5;
  --glow-1: rgba(11, 95, 128, 0.06);
  --glow-2: rgba(76, 29, 149, 0.05);
  --shot-border: rgba(0, 0, 0, 0.18);
}

:root {
  --font-sans: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 0.875rem;
  --radius-sm: 0.5rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 3.75rem;
}

/* ───────── Base ───────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.6;
}
::selection {
  background: var(--selection);
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 650;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.125rem;
}
p {
  margin: 0 0 1em;
}
code,
kbd,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}
:not(pre) > code {
  font-size: 0.875em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.08em 0.35em;
  overflow-wrap: anywhere;
}
pre {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--code-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
  tab-size: 4;
}
pre:focus-visible {
  outline-offset: 2px;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
table {
  border-collapse: collapse;
  width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.75rem;
}
.muted {
  color: var(--muted);
}
.grad-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.075rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 28px;
  height: 28px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-list a:hover,
.nav-list a[aria-current='page'] {
  color: var(--fg);
  background: var(--surface-2);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}
.theme-toggle .i-sun,
:root[data-theme='paper'] .theme-toggle .i-moon {
  display: none;
}
:root[data-theme='paper'] .theme-toggle .i-sun {
  display: block;
}
.nav-toggle {
  display: none;
}

@media (max-width: 55rem) {
  .js .nav-toggle {
    display: inline-grid;
  }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .js .site-nav[data-open='true'] {
    display: block;
  }
  .js .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .js .nav-list a {
    padding: 0.75rem 0.75rem;
    font-size: 1rem;
  }
  /* Without JS the nav stays visible and wraps under the brand. */
  html:not(.js) .site-header .wrap {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }
  html:not(.js) .site-nav {
    order: 3;
    width: 100%;
  }
  html:not(.js) .nav-list {
    flex-wrap: wrap;
  }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--fg));
  text-decoration: none;
}
.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ───────── Sections ───────── */
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--border);
}
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 38rem;
  z-index: -1;
  background: radial-gradient(40rem 22rem at 20% 30%, var(--glow-1), transparent 70%),
    radial-gradient(34rem 20rem at 85% 20%, var(--glow-2), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  max-width: 38rem;
}
.hero .btn-row {
  margin-top: 1.75rem;
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.proto-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.proto-chips li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  background: var(--surface);
}
.device-frame {
  justify-self: center;
  width: min(100%, 300px);
  padding: 10px;
  border-radius: 2.4rem;
  background: linear-gradient(160deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px var(--border) inset;
}
.device-frame img {
  width: 100%;
  border-radius: 1.9rem;
  aspect-ratio: 390 / 844;
  background: #0b0f14;
}

/* ───────── Screenshots ───────── */
.shot {
  margin: 0;
}
.shot-frame {
  border-radius: var(--radius);
  border: 1px solid var(--shot-border);
  background: #0b0f14;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.9rem;
  padding: 0 0.8rem;
  background: #121822;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.shot-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #1f2a3b;
}
.shot-bar .shot-url {
  width: auto;
  height: auto;
  border-radius: 0.3rem;
  margin-left: 0.6rem;
  padding: 0 0.5rem;
  background: #0b0f14;
  color: #9fb0c3;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot img {
  width: 100%;
  aspect-ratio: 1440 / 900;
}
.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.925rem;
  color: var(--muted);
}
.shot figcaption strong {
  color: var(--fg);
  font-weight: 600;
}
.shot-feature {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* ───────── Steps ───────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
}
:root[data-theme='obsidian'] .card,
:root:not([data-theme]) .card {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.steps li {
  counter-increment: step;
  min-width: 0;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.steps p {
  color: var(--muted);
  margin-bottom: 0;
}
.steps pre {
  margin: 1rem 0 0;
  font-size: 0.78rem;
}
.tok-c {
  color: var(--faint);
}
.tok-k {
  color: var(--accent);
}
.tok-v {
  color: var(--accent-2);
}

/* ───────── Grids ───────── */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card p,
.card li {
  color: var(--muted);
}
.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}
.card ul {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}
.card li + li {
  margin-top: 0.35rem;
}
.ic {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.ic svg {
  width: 1.1rem;
  height: 1.1rem;
}
.ic-violet {
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  color: var(--accent-2);
}

/* Protocol grid */
.proto {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.proto h3 {
  margin-bottom: 0.1rem;
}
.proto .port {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}
.proto p {
  font-size: 0.925rem;
}
.note {
  margin-top: 1.5rem;
  font-size: 0.925rem;
  color: var(--muted);
}

/* ───────── Pricing ───────── */
.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.pricing th,
.pricing td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 0.925rem;
}
.pricing tbody tr:last-child th,
.pricing tbody tr:last-child td {
  border-bottom: 0;
}
.pricing thead th {
  font-size: 1rem;
  background: var(--surface-2);
  vertical-align: bottom;
}
.pricing thead th small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.pricing tbody th {
  font-weight: 500;
  color: var(--fg);
  width: 40%;
}
.pricing td {
  color: var(--muted);
  min-width: 6.5rem;
}
.pricing .price-row td,
.pricing .price-row th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--fg);
}
.tick,
.cross {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tick svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ok);
}
.cross svg {
  width: 1rem;
  height: 1rem;
  color: var(--faint);
}
.pricing-note {
  margin-top: 1rem;
  font-size: 0.925rem;
  color: var(--muted);
}

/* ───────── FAQ ───────── */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.15rem;
  font-weight: 600;
  position: relative;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq .answer {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}
.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ───────── CTA band ───────── */
.cta-band {
  text-align: center;
}
.cta-band .card {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  background: radial-gradient(30rem 14rem at 50% 0%, var(--glow-1), transparent 70%), var(--surface);
}
.cta-band p {
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
}
.cta-band .btn-row {
  justify-content: center;
  margin-top: 1.5rem;
}

/* ───────── Footer ───────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1.75rem;
}
.site-footer h2 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li + li {
  margin-top: 0.4rem;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--fg);
}
.copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* ───────── Document pages (privacy, terms, support) ───────── */
.doc {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  font-size: 0.9rem;
}
.doc-toc h2 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border-strong);
}
.doc-toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.doc-toc a:hover {
  color: var(--fg);
}
.prose {
  max-width: 46rem;
  min-width: 0;
}
.prose h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem);
}
.prose h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}
.prose h3 {
  margin-top: 1.75rem;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose strong {
  color: var(--fg);
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.prose li + li {
  margin-top: 0.35rem;
}
.prose .lede {
  font-size: 1.125rem;
}
.meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--faint);
}
.callout {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}
.callout p:last-child {
  margin-bottom: 0;
}
.checklist {
  list-style: none;
  padding-left: 0 !important;
}
.checklist li {
  position: relative;
  padding-left: 1.75rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.35em;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--accent);
  border-radius: 0.25rem;
}
.pre-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
  margin: 0 0 0.35rem;
}
.simple-table {
  margin: 0 0 1.5rem;
}
.simple-table th,
.simple-table td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.925rem;
  vertical-align: top;
}
.simple-table th {
  color: var(--fg);
  font-weight: 600;
}
.simple-table td {
  color: var(--muted);
}

/* 404 */
.not-found {
  min-height: calc(100vh - 16rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}
.not-found .code {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 2rem + 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}
.not-found .btn-row {
  justify-content: center;
}

/* ───────── Responsive ───────── */
@media (max-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .device-frame {
    width: min(100%, 260px);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-toc {
    position: static;
  }
}
@media (max-width: 30rem) {
  .btn-row .btn {
    width: 100%;
  }
  .pricing th,
  .pricing td {
    padding: 0.65rem 0.6rem;
    font-size: 0.85rem;
  }
  .pricing td {
    min-width: 5.5rem;
  }
}
@media (min-width: 120rem) {
  :root {
    --wrap: 80rem;
  }
  html {
    font-size: 106.25%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .doc-toc,
  .skip-link {
    display: none !important;
  }
}

.footer-blurb {
  margin-top: 0.75rem;
}
.not-found .btn-row {
  margin-top: 1.5rem;
}

/* Protocols: 3 x 3 */
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
@media (min-width: 62rem) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* Screenshots: 3 + 2 */
  .shot-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .shot-grid > .shot {
    grid-column: span 2;
  }
  .shot-grid > .shot:nth-child(n + 4) {
    grid-column: span 3;
  }
}

/* Pricing on narrow screens: one block per capability, tier values in three labelled columns. */
@media (max-width: 40rem) {
  .table-scroll {
    overflow-x: visible;
  }
  .pricing thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .pricing tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
  }
  .pricing tbody tr:last-child {
    border-bottom: 0;
  }
  .pricing tbody th {
    grid-column: 1 / -1;
    width: auto;
    border-bottom: 0;
    padding-bottom: 0.25rem;
  }
  .pricing tbody td {
    min-width: 0;
    border-bottom: 0;
    padding-top: 0.25rem;
    overflow-wrap: anywhere;
  }
  .pricing tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 0.15rem;
  }
}

/* ───────── Launch-list signup ───────── */
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.signup-grid .section-head {
  margin-bottom: 0;
}
.signup-points {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  color: var(--muted);
}
.signup-points li {
  position: relative;
  padding-left: 1.6rem;
}
.signup-points li + li {
  margin-top: 0.45rem;
}
.signup-points li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.signup-form {
  display: grid;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.field label,
.field .label {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--fg);
}
.field .hint {
  font-weight: 400;
  color: var(--muted);
}
.field input:not([type='checkbox']),
.field select,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.field textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.field [aria-invalid='true'] {
  border-color: var(--danger);
}
.field-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 0.65rem;
}
.field-check input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
}
.field-check label {
  font-weight: 400;
  color: var(--muted);
}
.field-check .field-error {
  grid-column: 1 / -1;
}
.field-error {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--danger);
}
.field-error[hidden] {
  display: none;
}
.form-status {
  margin: 0;
  font-size: 0.925rem;
  color: var(--muted);
}
.form-status:empty {
  display: none;
}
.form-status.is-error {
  color: var(--danger);
  font-weight: 600;
}
.signup-form .btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.signup-form .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.signup-done {
  border-left: 3px solid var(--ok);
  padding-left: 1rem;
}
.signup-done h3 {
  margin-bottom: 0.4rem;
}
.signup-done p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.signup-fineprint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
/* Honeypot: never shown to people. */
.hp {
  display: none !important;
}
.footer-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem 2rem;
  align-items: start;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-signup p {
  margin: 0;
}
.signup-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 0.75rem;
  align-items: end;
}
.signup-compact .field-check,
.signup-compact .form-status,
.signup-compact .signup-done {
  grid-column: 1 / -1;
}
.signup-compact .field-email {
  grid-column: 1;
}
.signup-compact .btn {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-top: 1.7rem;
}
.signup-compact .field-check label {
  font-size: 0.875rem;
}
.brand-center {
  margin: 0 auto 1.5rem;
}

/* ───────── Guides ───────── */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  padding: 0 !important;
  margin: 0 0 1rem !important;
  font-size: 0.85rem;
}
.breadcrumb li {
  color: var(--faint) !important;
  margin: 0 !important;
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--faint);
}
.breadcrumb a {
  color: var(--muted);
}
.prose .shot {
  margin: 1.5rem 0 1.75rem;
}
.prose .shot figcaption {
  margin-top: 0.6rem;
}
@media (max-width: 30rem) {
  .simple-table th,
  .simple-table td {
    padding: 0.5rem 0.4rem;
    overflow-wrap: anywhere;
  }
}
.related {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0 !important;
}
.related-list li {
  margin: 0 !important;
}
.related-list a {
  display: block;
  height: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
.related-list a:hover {
  border-color: var(--accent);
}
.related-list span {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--muted);
}
.guide-cards {
  margin-bottom: 2rem;
}
.guide-cards .card a {
  font-weight: 600;
}

@media (max-width: 60rem) {
  .signup-grid,
  .footer-signup {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 30rem) {
  .signup-compact {
    grid-template-columns: 1fr;
  }
  .signup-compact .btn {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
    width: 100%;
  }
}
.prose-wide {
  max-width: none;
}
.prose-wide > .lede,
.prose-wide > p,
.prose-wide > .simple-table {
  max-width: 46rem;
}
.guide-cards .card h3 {
  margin-top: 0;
}
