@font-face{font-family:'Inter Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2');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:'Inter Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2');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}
/* Marketing site styles.

   Design rules (keep them when you add to this file):
   - Palette: neutral greys and one accent. The accent marks links, focus and the current item, nothing decorative.
     No gradients, glows or gradient text.
   - Type: Inter on one scale (--fs-*). Headings are solid ink, tight tracking, sentence case.
   - Layout: one 12-column grid inside .wrap (max 1200px). Sections (.band) share one vertical rhythm and are
     separated by a hairline. Headings are left-aligned; only small blocks are centred.
   - Icons: Lucide line icons at 1.5 stroke, 16 to 20px, in the text colour, never on a tile.
   - Dark is the default; the light theme follows the system until the header toggle picks one (data-theme on
     <html>, set by site.js before the page paints). Colours outside the token blocks use the tokens only. */

:root {
  --bg: #000000;
  --bg-sunk: #0a0a0b;
  --surface: #0d0d0f;
  --raised: #161618;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #8b8b94;
  --rule: #1f1f23;
  --rule-strong: #2f2f35;
  --hover: rgba(255, 255, 255, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.6), 0 16px 40px -24px rgba(0, 0, 0, 0.9);
  --accent: #f4f4f5;
  --accent-hover: #ffffff;
  --accent-ink: #000000;
  --accent-soft: rgba(139, 156, 255, 0.12);
  --accent-text: #aab4ff;
  --brand: #8b9cff;
  --focus: #8b9cff;
  --logo: #a1a1aa;
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.1);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.1);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.1);
  --code-bg: #0b0b0d;
  --code-ink: #e4e4e7;
  --code-rule: #1f1f23;
  --code-c: #8b8b94;
  --code-s: #a7f3d0;
  --code-k: #c4b5fd;
  --code-n: #fcd34d;
  --code-v: #93c5fd;
  --tint: 255 255 255;
  --brand-rgb: 139 156 255;
  --accent-text-rgb: 170 180 255;
  --ok-rgb: 74 222 128;
  --bad-rgb: 248 113 113;
  --warn-rgb: 251 191 36;
  --info-rgb: 147 197 253;
  --info: #93c5fd;
  --title-fade: #a1a1aa;
  --surface-deep: #070708;
  --tile-a: #1a1a1d;
  --tile-b: #0d0d10;
  --shadow-deep: 0 1px 2px rgba(0, 0, 0, 0.6), 0 16px 40px -24px rgba(0, 0, 0, 0.9);
  --marquee-fade: #000000;

  --font-sans: 'Inter Variable', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* type scale */
  --fs-display: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
  --fs-h1: clamp(2.125rem, 1.6rem + 2.1vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);
  --fs-h3: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-2xs: 0.75rem;

  /* spacing: a 4px base */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --section: clamp(72px, 9vw, 128px);
  --col-gap: clamp(24px, 4vw, 64px);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;
  --gutter: 24px;
  --max: 1360px;
  --header-h: 64px;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #ffffff;
  --bg-sunk: #f7f7f8;
  --surface: #ffffff;
  --raised: #f4f4f5;
  --ink: #09090b;
  --ink-2: #27272a;
  --muted: #52525b;
  --faint: #67676f;
  --rule: #e7e7ea;
  --rule-strong: #d4d4d8;
  --hover: rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 1px 2px rgba(16, 24, 40, 0.06), 0 16px 40px -24px rgba(16, 24, 40, 0.22);
  --accent: #09090b;
  --accent-hover: #27272a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(67, 56, 202, 0.08);
  --accent-text: #4338ca;
  --brand: #4f46e5;
  --focus: #4f46e5;
  --logo: #52525b;
  --ok: #15803d;
  --ok-soft: rgba(22, 163, 74, 0.1);
  --warn: #b45309;
  --warn-soft: rgba(217, 119, 6, 0.1);
  --bad: #dc2626;
  --bad-soft: rgba(220, 38, 38, 0.08);
  --code-bg: #fafafa;
  --code-ink: #18181b;
  --code-rule: #e7e7ea;
  --code-c: #67676f;
  --code-s: #047857;
  --code-k: #6d28d9;
  --code-n: #b45309;
  --code-v: #1d4ed8;
  --tint: 9 9 11;
  --brand-rgb: 79 70 229;
  --accent-text-rgb: 67 56 202;
  --ok-rgb: 22 163 74;
  --bad-rgb: 220 38 38;
  --warn-rgb: 217 119 6;
  --info-rgb: 37 99 235;
  --info: #1d4ed8;
  --title-fade: #52525b;
  --surface-deep: #fbfbfc;
  --tile-a: #ffffff;
  --tile-b: #f1f1f4;
  --shadow-deep: 0 1px 2px rgba(16, 24, 40, 0.06), 0 16px 40px -24px rgba(16, 24, 40, 0.22);
  --marquee-fade: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #ffffff;
    --bg-sunk: #f7f7f8;
    --surface: #ffffff;
    --raised: #f4f4f5;
    --ink: #09090b;
    --ink-2: #27272a;
    --muted: #52525b;
    --faint: #67676f;
    --rule: #e7e7ea;
    --rule-strong: #d4d4d8;
    --hover: rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 1px 2px rgba(16, 24, 40, 0.06), 0 16px 40px -24px rgba(16, 24, 40, 0.22);
    --accent: #09090b;
    --accent-hover: #27272a;
    --accent-ink: #ffffff;
    --accent-soft: rgba(67, 56, 202, 0.08);
    --accent-text: #4338ca;
    --brand: #4f46e5;
    --focus: #4f46e5;
    --logo: #52525b;
    --ok: #15803d;
    --ok-soft: rgba(22, 163, 74, 0.1);
    --warn: #b45309;
    --warn-soft: rgba(217, 119, 6, 0.1);
    --bad: #dc2626;
    --bad-soft: rgba(220, 38, 38, 0.08);
    --code-bg: #fafafa;
    --code-ink: #18181b;
    --code-rule: #e7e7ea;
    --code-c: #67676f;
    --code-s: #047857;
    --code-k: #6d28d9;
    --code-n: #b45309;
    --code-v: #1d4ed8;
    --tint: 9 9 11;
    --brand-rgb: 79 70 229;
    --accent-text-rgb: 67 56 202;
    --ok-rgb: 22 163 74;
    --bad-rgb: 220 38 38;
    --warn-rgb: 217 119 6;
    --info-rgb: 37 99 235;
    --info: #1d4ed8;
    --title-fade: #52525b;
    --surface-deep: #fbfbfc;
    --tile-a: #ffffff;
    --tile-b: #f1f1f4;
    --shadow-deep: 0 1px 2px rgba(16, 24, 40, 0.06), 0 16px 40px -24px rgba(16, 24, 40, 0.22);
    --marquee-fade: #ffffff;
    color-scheme: light;
  }
}

/* ───────── Base ───────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}
main {
  display: block;
  outline: none;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.025em;
  line-height: 1.12;
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: 1rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--accent-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.08em 0.35em;
  overflow-wrap: anywhere;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
  color: inherit;
}
img,
svg {
  max-width: 100%;
}
::selection {
  background: rgb(var(--brand-rgb) / 0.3);
  color: var(--ink);
}
.icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: var(--accent-ink);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.center {
  text-align: center;
}
.fine {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--faint);
  margin: var(--sp-5) 0 0;
}
.fine a {
  color: inherit;
}
.fine a:hover {
  color: var(--ink);
}

/* ───────── Layout: container, bands, section headings, grids ───────── */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap .wrap {
  padding: 0;
}
.wrap-narrow {
  max-width: calc(800px + 2 * var(--gutter));
}
.wrap .wrap.wrap-narrow {
  max-width: 800px;
}
.band {
  padding: var(--section) 0;
  border-top: 1px solid var(--rule);
}
.band-alt {
  background: var(--bg-sunk);
}
.head {
  max-width: 760px;
  margin-bottom: var(--sp-7);
}
.head-title {
  font-size: var(--fs-h2);
  margin: 0;
}
.head-lead {
  margin-top: var(--sp-4);
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 640px;
}
.head-lead p {
  margin: 0;
}
.head-lead p + p {
  margin-top: var(--sp-3);
}
.head-split {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sp-5);
  align-items: end;
}
.head-split .head-main {
  grid-column: 1 / span 7;
}
.head-split .head-lead {
  grid-column: 8 / span 5;
  margin-top: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0 0 var(--sp-3);
}
.kicker a {
  color: inherit;
  text-decoration: none;
}
.kicker a:hover {
  color: var(--ink);
}
.kicker-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--col-gap);
  align-items: start;
}
.split-5-7 {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--col-gap);
  align-items: center;
}
.split-5-7 .head {
  margin-bottom: var(--sp-6);
}
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-6);
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: var(--sp-5) 0 0;
}
.link-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  margin: var(--sp-5) 0 0;
}
.panel {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--sp-6);
}
.panel h3 {
  margin-bottom: var(--sp-4);
}

/* ───────── Buttons, links, tags ───────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font: inherit;
  font-weight: 550;
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
}
.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.button-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}
.button-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}
.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.button-secondary:hover {
  background: var(--hover);
  border-color: var(--faint);
  color: var(--ink);
}
.button-ghost {
  color: var(--ink);
}
.button-ghost:hover {
  background: var(--hover);
  color: var(--ink);
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 550;
  font-size: var(--fs-sm);
  color: var(--ink);
  text-decoration: none;
}
.more-link .icon {
  transition: transform 0.15s;
}
.more-link:hover {
  color: var(--accent-text);
}
.more-link:hover .icon {
  transform: translateX(2px);
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0;
  white-space: nowrap;
  border: 1px solid var(--rule-strong);
  color: var(--muted);
}
.tag-accent {
  color: var(--accent-text);
}
.tag-ok {
  color: var(--ok);
}
.tag-warn {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 35%, transparent);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
}
.status-ok {
  color: var(--ok);
  background: var(--ok-soft);
}

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  flex: none;
}
.logo:hover {
  color: var(--ink);
}
.logo-mark {
  flex: none;
}
/* ───────── Logo: the paper plane and the name in lowercase ───────── */
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  font-size: 1.4rem;
  line-height: 1;
}
.logo-plane {
  flex: none;
  height: 1.02em;
  width: auto;
  transform: translateY(0.06em);
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.logo:hover .logo-plane {
  transform: translate(0.08em, -0.04em);
}
.logo-word {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.logo-word b {
  font-weight: 700;
}
.logo-lockup {
  position: relative;
}
.logo-o {
  display: inline-block;
}
.logo-base {
  display: inline-block;
  width: 0;
  height: 1px;
  vertical-align: baseline;
}
.logo-flight {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}
.logo-flight g {
  opacity: 0;
}
/* the header logo's flight (site.js flyLogo, on the home page and the first page of a visit): until it starts, the parked plane and the "o" are hidden, and
   the script shows them as the plane circles the "o" and parks */
.logo-flight-pending [data-logo-flight] .logo-plane {
  visibility: hidden;
}
.logo-flight-pending [data-logo-flight] .logo-o {
  -webkit-mask-image: linear-gradient(transparent, transparent);
  mask-image: linear-gradient(transparent, transparent);
}
/* the small header logo on the first page of a visit (site.js sets .logo-intro): the plane flies in, the word follows */
.logo-intro .site-header .logo .logo-plane {
  opacity: 0;
  animation: logo-fly 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.logo-intro .site-header .logo .logo-word {
  opacity: 0;
  animation: logo-word 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
@keyframes logo-fly {
  from {
    opacity: 0;
    transform: translate(-1.4em, 1em) rotate(-14deg) scale(0.55);
  }
  40% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateY(0.06em);
  }
}
@keyframes logo-word {
  from {
    opacity: 0;
    transform: translateX(-0.5em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-intro .site-header .logo .logo-plane,
  .logo-intro .site-header .logo .logo-word {
    animation: none;
    opacity: 1;
  }
}
/* the logo alone on the left; the menu, theme and Get button together on the right */
.nav-desktop {
  margin-left: auto;
}
.nav-desktop ul,
.nav-mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop ul {
  display: flex;
  gap: 2px;
}
.nav-desktop a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current='page'] {
  color: var(--ink);
}
.header-actions {
  margin-left: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.theme-toggle,
.nav-mobile summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle:hover,
.nav-mobile summary:hover {
  color: var(--ink);
  background: var(--hover);
}
.theme-toggle .when-light {
  display: none;
}
:root[data-theme='light'] .theme-toggle .when-light {
  display: inline-block;
}
:root[data-theme='light'] .theme-toggle .when-dark {
  display: none;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .theme-toggle .when-light {
    display: inline-block;
  }
  :root:not([data-theme='dark']) .theme-toggle .when-dark {
    display: none;
  }
}
.nav-mobile {
  display: none;
  position: relative;
}
.nav-mobile summary {
  list-style: none;
}
.nav-mobile summary::-webkit-details-marker {
  display: none;
}
.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  background: var(--raised);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
}
.nav-mobile-panel a:not(.button) {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav-mobile-panel a:not(.button):hover,
.nav-mobile-panel a[aria-current='page'] {
  background: var(--hover);
}
.nav-mobile-panel .button {
  width: 100%;
  margin-top: var(--sp-2);
}

/* ───────── Page heads ───────── */
.page-head {
  padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 88px);
}
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.page-head-aside .page-head-grid {
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--col-gap);
  align-items: center;
}
.page-head-copy {
  max-width: 820px;
}
.page-title {
  font-size: var(--fs-h1);
  margin: 0;
}
.page-lead {
  margin-top: var(--sp-5);
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 680px;
}
.page-lead p:last-child {
  margin-bottom: 0;
}
.page-head-narrow {
  padding-bottom: var(--sp-6);
}
.page-head-compact {
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--sp-7);
}
.page-head-compact .page-lead {
  font-size: var(--fs-body);
}
.updated {
  font-size: var(--fs-xs);
  color: var(--faint);
  margin: var(--sp-3) 0 0;
}
.updated a {
  color: inherit;
}
.not-found {
  padding: clamp(64px, 10vw, 128px) 0;
}
.link-list {
  padding-left: 20px;
  color: var(--muted);
}
.link-list li {
  margin-bottom: var(--sp-2);
}
.not-found .link-list {
  margin-top: var(--sp-6);
}

/* ───────── Home: hero ───────── */
.hero-home {
  padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 7vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--col-gap);
  align-items: center;
}
.hero-title {
  font-size: var(--fs-display);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
  max-width: 11.5em;
}
.hero-lead {
  margin: var(--sp-5) 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.hero-meta {
  margin: var(--sp-5) 0 0;
  font-size: var(--fs-xs);
  color: var(--faint);
}

/* the routing trace: one message and its attempts, as the log shows it */
.trace {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  overflow: hidden;
}
.trace-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.trace-head code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-size: 0.8125rem;
}
.trace-head .status {
  margin-left: auto;
}
.trace-method {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--rule-strong);
  color: var(--muted);
}
.trace-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.trace-meta dt {
  font-size: var(--fs-2xs);
  color: var(--faint);
}
.trace-meta dd {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trace-steps {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.trace-steps li {
  display: grid;
  grid-template-columns: 8px minmax(84px, 0.9fr) minmax(0, 1.3fr) 7.5em;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: var(--muted);
}
.trace-steps b {
  color: var(--ink);
  font-weight: 550;
}
.trace-steps time {
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--faint);
}
.trace-steps .is-idle b,
.trace-steps .is-idle span {
  color: var(--faint);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--faint);
}
.is-ok .dot {
  background: var(--ok);
}
.is-bad .dot {
  background: var(--bad);
}
.is-idle .dot {
  background: var(--rule-strong);
}
.trace-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs);
  color: var(--faint);
}

/* ───────── Provider logos ───────── */
.logos {
  padding: var(--sp-7) 0 var(--sp-8);
  border-top: 1px solid var(--rule);
}
.logos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  margin-bottom: var(--sp-6);
}
.logos-head h2 {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin: 0;
}
.logo-bar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-5);
  align-items: center;
}
.logo-bar li {
  display: flex;
  align-items: center;
  min-height: 32px;
  color: var(--logo);
  transition: color 0.15s;
}
.logo-bar li:hover {
  color: var(--ink);
}
.logo-bar .pmark {
  font-size: 1.125rem;
}
.pmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: inherit;
  min-width: 0;
}
.pmark-icon {
  flex: none;
}
.pmark-name {
  overflow-wrap: anywhere;
}
.tm-note {
  font-size: var(--fs-2xs);
  color: var(--faint);
  margin: var(--sp-6) 0 0;
}

/* the provider directory: every adapter, with its free plan */
.directory-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 var(--sp-4);
}
.directory {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--sp-5);
}
.directory li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  min-width: 0;
}
.directory-plan {
  font-size: var(--fs-xs);
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.directory-compact li {
  padding: 14px 0;
}
.directory-compact .pmark {
  font-size: var(--fs-sm);
}
.provider-wall {
  margin-top: var(--sp-7);
}

/* ───────── Product screenshots ───────── */
.shot {
  margin: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  min-width: 0;
}
.shot-media {
  position: relative;
}
.shot-img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-light {
  display: none;
}
:root[data-theme='light'] .shot-dark {
  display: none;
}
:root[data-theme='light'] .shot-light {
  display: block;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .shot-dark {
    display: none;
  }
  :root:not([data-theme='dark']) .shot-light {
    display: block;
  }
}
.shot figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  align-items: start;
}
.app-icon {
  display: block;
}

/* ───────── Proof points ───────── */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: var(--sp-8) 0 0;
  border-top: 1px solid var(--rule);
}
.facts div {
  padding: var(--sp-5) var(--sp-5) 0;
  border-left: 1px solid var(--rule);
}
.facts div:first-child {
  padding-left: 0;
  border-left: 0;
}
.facts dt {
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.facts dd {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 24ch;
}

/* ───────── Numbered steps and check lists ───────── */
.numbered {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
}
.numbered li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
}
.numbered li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  display: grid;
  place-items: center;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.numbered h3,
.numbered h4 {
  font-size: 1rem;
  margin: 2px 0 4px;
}
.numbered p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.numbered + .more-link,
.numbered + .code,
.checks + .more-link,
.checks + .fine,
.checks + .link-row {
  margin-top: var(--sp-6);
}
.fine + .more-link {
  margin-top: var(--sp-4);
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: var(--fs-sm);
}
.checks .icon {
  margin-top: 3px;
  color: var(--muted);
}
.steps-title {
  font-size: 1rem;
  margin: 0 0 var(--sp-4);
}
.steps-list {
  padding-left: 1.25em;
  color: var(--ink-2);
}
.steps-list li {
  margin-bottom: var(--sp-2);
}
/* self-host: the HTTPS example under the production cards */
.https-block {
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--rule);
}

/* ───────── Features ───────── */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-7) var(--sp-6);
}
.feature-grid li,
.feature {
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-5);
  min-width: 0;
}
.feature-icon {
  display: block;
  color: var(--ink-2);
  margin-bottom: var(--sp-4);
}
.feature-grid h3,
.feature .feature-title {
  font-size: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 6px;
}
.feature-grid p,
.feature-body p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.feature-body p + p {
  margin-top: var(--sp-2);
}
.feature .more-link {
  margin-top: var(--sp-4);
}
.item-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-6);
}
.item-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.item-grid li {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  min-width: 0;
}
.item-grid h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.item-grid p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
/* Features: an index of the sections, one card each */
.feature-index-band {
  padding: var(--sp-6) 0 var(--sp-8);
  border-bottom: 1px solid var(--rule);
}
.feature-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.feature-index a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.feature-index a:hover {
  border-color: var(--rule-strong);
  background: var(--bg-sunk);
}
.feature-index svg {
  grid-row: 1 / 3;
  margin-top: 1px;
  color: var(--accent-text);
}
.feature-index-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.feature-index-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}
.feature-section {
  scroll-margin-top: calc(var(--header-h) + 48px);
}
.feature-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--col-gap);
  align-items: start;
}
.feature-section-head .head-title {
  font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
}
.feature-section-head .head-lead {
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.feature-visual {
  margin-bottom: var(--sp-7);
}

/* ───────── Code ───────── */
.code,
.tabs {
  margin: 0;
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  min-width: 0;
}
.code-title,
.tabs-panel figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--code-rule);
  color: var(--code-c);
  font-size: var(--fs-2xs);
  font-family: var(--font-mono);
}
.code pre,
.tabs pre {
  margin: 0;
  padding: 16px 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--code-ink);
  tab-size: 2;
}
.code pre code,
.tabs pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
  color: inherit;
}
.code-stack {
  display: grid;
  gap: var(--sp-4);
  min-width: 0;
}
.code + .code {
  margin-top: var(--sp-4);
}
.tk-c {
  color: var(--code-c);
}
.tk-s {
  color: var(--code-s);
}
.tk-k {
  color: var(--code-k);
}
.tk-n {
  color: var(--code-n);
}
.tk-v,
.tk-f {
  color: var(--code-v);
}
/* code tabs: radio buttons switch the panels, so they work without JavaScript */
.tabs {
  position: relative;
}
.tabs-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tabs-bar {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--code-rule);
  scrollbar-width: none;
}
.tabs-tab {
  padding: 12px 16px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}
.tabs-tab:hover {
  color: var(--ink);
}
.tabs-panel {
  display: none;
  margin: 0;
}
.tabs-panel figcaption {
  border-bottom: 0;
  padding-bottom: 0;
}
#tab-node:checked ~ .tabs-panel-node,
#tab-curl:checked ~ .tabs-panel-curl,
#tab-python:checked ~ .tabs-panel-python,
#tab-resend:checked ~ .tabs-panel-resend,
#tab-smtp:checked ~ .tabs-panel-smtp {
  display: block;
}
#tab-node:checked ~ .tabs-bar .tabs-tab-node,
#tab-curl:checked ~ .tabs-bar .tabs-tab-curl,
#tab-python:checked ~ .tabs-bar .tabs-tab-python,
#tab-resend:checked ~ .tabs-bar .tabs-tab-resend,
#tab-smtp:checked ~ .tabs-bar .tabs-tab-smtp {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
#tab-node:focus-visible ~ .tabs-bar .tabs-tab-node,
#tab-curl:focus-visible ~ .tabs-bar .tabs-tab-curl,
#tab-python:focus-visible ~ .tabs-bar .tabs-tab-python,
#tab-resend:focus-visible ~ .tabs-bar .tabs-tab-resend,
#tab-smtp:focus-visible ~ .tabs-bar .tabs-tab-smtp {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
  border-radius: 6px;
}

/* ───────── Pricing ───────── */
.plans-wrap {
  padding-bottom: var(--section);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--sp-6);
  min-width: 0;
}
.plan-featured {
  border-color: var(--muted);
}
.plan-product {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 var(--sp-2);
}
.plan-head h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 0;
}
.plan-price {
  margin: var(--sp-5) 0 var(--sp-2);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-amount {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan-period {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.plan-status {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.plan-offer {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  margin: 0 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}
.plan-alt {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.plan-blurb {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  margin: var(--sp-4) 0 0;
}
.plan-action {
  margin: var(--sp-5) 0;
}
.plan-actions {
  display: grid;
  gap: var(--sp-2);
}
.plan-actions .button {
  width: 100%;
}
.plan-action > .button {
  width: 100%;
}
.plan-items {
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-5);
  margin-top: auto;
}
.plans-foot {
  font-size: var(--fs-xs);
  color: var(--faint);
  margin: var(--sp-5) 0 0;
  max-width: 820px;
}
.plans-foot a {
  color: inherit;
}

/* buy form and the card around it */
/* Mac app launch pricing: the price on sale (left) and the ladder of tiers (right); see components/price-ladder.tsx */
.ladder {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
.ladder-main,
.ladder-steps {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
}
.ladder-main {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.ladder-main::before {
  content: '';
  position: absolute;
  inset: -40% -30% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(var(--brand-rgb) / 0.16), transparent);
  pointer-events: none;
}
.ladder-steps {
  display: flex;
  flex-direction: column;
  background: var(--bg-sunk);
}
.ladder-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}
.ladder-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--rule-strong);
  background: var(--raised);
  color: var(--accent-text);
}
.ladder-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgb(var(--brand-rgb) / 0.35);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.ladder-price {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: var(--sp-5) 0 0;
}
.ladder-amount {
  font-size: clamp(3rem, 2.4rem + 2.4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ladder-once {
  color: var(--muted);
  font-size: var(--fs-lg, 1.125rem);
}
.ladder-left {
  margin: var(--sp-3) 0 0;
  color: var(--accent-text);
  font-weight: 600;
}
.ladder-checks {
  margin: var(--sp-5) 0 var(--sp-6);
}
.ladder-main .buy-form .button {
  width: 100%;
  justify-content: center;
}
.ladder-title {
  margin: 0 0 var(--sp-4);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
}
.ladder-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ladder-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--rule);
}
.ladder-list li:first-child {
  border-top: 0;
}
.ladder-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--rule-strong);
}
.ladder-step {
  display: grid;
  gap: 2px;
}
.ladder-name {
  font-weight: 600;
  color: var(--ink);
}
.ladder-reach {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.ladder-step-price {
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ladder-now {
  visibility: hidden;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #0b0b12;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.ladder-list li.is-current .ladder-dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 4px rgb(var(--brand-rgb) / 0.2);
}
.ladder-list li.is-current .ladder-now {
  visibility: visible;
}
.ladder-list li.is-past .ladder-name,
.ladder-list li.is-past .ladder-reach,
.ladder-list li.is-past .ladder-step-price {
  color: var(--faint);
}
.ladder-list li.is-past .ladder-step-price {
  text-decoration: line-through;
}
.ladder-save {
  margin: auto 0 0;
  padding-top: var(--sp-5);
  color: var(--muted);
  font-size: var(--fs-sm);
}
@media (max-width: 900px) {
  .ladder {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 420px) {
  .ladder-head {
    flex-direction: column;
  }
  .ladder-badge {
    white-space: normal;
  }
}

/* self-host page: download with a license key (under the price card) */
.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--col-gap);
  margin-top: var(--sp-5);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(20px, 3vw, 32px);
}
.download-card h3 {
  margin: 0 0 var(--sp-2);
  font-size: 1.125rem;
}
.download-card p {
  margin: 0;
}
.install-command {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
}
.download-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.download-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
}
.download-form input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.download-form input::placeholder {
  color: var(--faint);
}
.download-form .buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.download-form [data-download-status] {
  margin: 8px 0 0;
}
.download-list {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.download-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 12px;
}
.download-list .download-sha {
  flex-basis: 100%;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--fs-xs);
  color: var(--faint);
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .download-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.buy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--col-gap);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(24px, 4vw, 48px);
}
.buy-card h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  margin: 0;
}
.buy-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--sp-4) 0 var(--sp-5);
}
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.buy-row .button {
  flex: 1 1 auto;
}
.buy-status {
  margin: var(--sp-3) 0 0;
}
/* the hosted cloud waitlist form (/cloud/) */
.waitlist-form[hidden],
.waitlist-fields[hidden],
.waitlist-alt[hidden],
.waitlist-status[hidden] {
  display: none;
}
.waitlist-fields {
  display: grid;
  gap: var(--sp-5);
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}
.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field > label,
.field > legend {
  display: block;
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: var(--sp-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
}
.field textarea {
  min-height: 104px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
}
.provider-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-4);
}
.provider-checks label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.field .provider-checks input {
  flex: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}
.waitlist-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.waitlist-status {
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.waitlist-status.is-done {
  margin: 0;
  color: var(--ink);
}
/* the Mac app waitlist (/mac/ before the release): one email field and the button on one line */
.mac-waitlist {
  max-width: 520px;
}
.waitlist-form-inline .waitlist-fields {
  gap: var(--sp-3);
}
.inline-field {
  display: flex;
  gap: var(--sp-2);
}
.inline-field input {
  flex: 1;
  min-width: 0;
}
.inline-field .button {
  flex: none;
}
@media (max-width: 480px) {
  .inline-field {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .provider-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
/* shown instead of the download buttons until the first release is published */
.download-soon {
  margin: var(--sp-5) 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--rule);
  border-radius: 8px;
  max-width: 60ch;
}
.release-facts {
  margin: var(--sp-6) 0 0;
}
.release-facts div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--sp-4);
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.release-facts dt {
  font-size: var(--fs-xs);
  color: var(--faint);
}
.release-facts dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-2);
  min-width: 0;
}

/* ───────── Questions ───────── */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--col-gap);
  align-items: start;
}
.faq {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h3 {
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  margin: 0;
}
.faq-item summary:hover h3 {
  color: var(--ink);
}
.faq-plus {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  color: var(--muted);
}
.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s;
}
.faq-plus::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-plus::after {
  transform: rotate(0deg);
}
.faq-answer {
  padding: 0 32px 20px 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 720px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.support-box {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.support-box h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

/* ───────── Closing call to action ───────── */
.cta-band {
  border-top: 1px solid var(--rule);
  background: var(--bg-sunk);
  padding: clamp(64px, 8vw, 112px) 0;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6) var(--sp-7);
}
.cta-title {
  font-size: var(--fs-h2);
  margin: 0;
  max-width: 18em;
}
.cta-text {
  margin: var(--sp-4) 0 0;
  max-width: 600px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.cta-actions {
  margin-top: 0;
}

/* ───────── Mac app page ───────── */
.mac-head-copy {
  max-width: 760px;
}
.mac-head-copy .app-icon {
  margin-bottom: var(--sp-5);
}
.mac-head .shot-wide {
  margin-top: var(--sp-8);
}

/* ───────── Footer ───────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--sp-8) 0 var(--sp-6);
  font-size: 0.875rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--col-gap);
}
.footer-brand p {
  color: var(--muted);
  max-width: 300px;
  margin: var(--sp-4) 0;
}
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
}
.footer-mail:hover {
  color: var(--ink);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-5);
}
.footer-col h2 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
}
.footer-bottom p {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--faint);
}
.footer-bottom a {
  color: inherit;
}
.footer-bottom a:hover {
  color: var(--ink);
}
.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.theme-switch[hidden] {
  display: none;
}
.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}
.theme-switch button:hover {
  color: var(--ink);
}
.theme-switch button[aria-checked='true'] {
  background: var(--raised);
  color: var(--ink);
}
/* the large product wordmark under the footer: faint by default, lit by the pointer */
.footer-mark {
  position: relative;
  max-width: 1440px;
  margin: var(--sp-8) auto 0;
  padding: 0 16px;
  height: 0.74em;
  overflow: hidden;
  font-size: clamp(4.5rem, 1rem + 19vw, 18rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-align: center;
  user-select: none;
  cursor: default;
}
.footer-mark span {
  display: block;
  white-space: nowrap;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.footer-mark-base {
  background-image: linear-gradient(180deg, rgb(var(--tint) / 0.12), rgb(var(--tint) / 0.03) 80%);
}
.footer-mark-lit {
  position: absolute;
  inset: 0 16px;
  background-image: linear-gradient(100deg, transparent 35%, rgb(var(--brand-rgb) / 0.55) 50%, transparent 65%);
  background-size: 260% 100%;
  background-position: 100% 0;
  animation: footer-sweep 12s ease-in-out infinite;
}
.footer-mark.is-lit .footer-mark-lit {
  animation: none;
  background-size: 100% 100%;
  background-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--brand), rgb(var(--brand-rgb) / 0.35) 45%, transparent 72%);
}
@keyframes footer-sweep {
  0%,
  15% {
    background-position: 100% 0;
  }
  65%,
  100% {
    background-position: 0% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-mark-lit {
    animation: none;
    background-position: 50% 0;
  }
}

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .nav-desktop {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .nav-mobile {
    display: block;
  }
}
@media (max-width: 1024px) {
  .hero-grid,
  .split-5-7,
  .feature-section-grid,
  .faq-layout,
  .page-head-aside .page-head-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid .trace {
    max-width: 560px;
  }
  .head-split {
    display: block;
  }
  .head-split .head-lead {
    margin-top: var(--sp-4);
    max-width: 640px;
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .logo-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}
@media (max-width: 860px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .facts div:nth-child(n + 3) {
    margin-top: var(--sp-5);
  }
  .feature-grid,
  .cols-3,
  .item-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .buy-card,
  .shot-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .logo-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }
  .header-inner {
    gap: var(--sp-3);
  }
  .header-cta {
    padding: 0 12px;
  }
  .feature-grid,
  .cols-3,
  .item-grid,
  .item-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .logo-bar,
  .directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .logo-bar .pmark {
    font-size: 1rem;
  }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }
  .facts div,
  .facts div:nth-child(n) {
    padding: var(--sp-4) 0;
    margin-top: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .facts dd {
    max-width: none;
  }
  .trace-steps li {
    grid-template-columns: 8px minmax(0, 1fr) auto;
  }
  .trace-steps time {
    display: none;
  }
  .cta-actions,
  .actions {
    width: 100%;
  }
  .hero-home .actions .button,
  .cta-actions .button {
    flex: 1 1 auto;
  }
  .release-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .faq-answer {
    padding-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ───────── Docs, guides, research, legal and the API reference ─────────
   Reading pages: sidebar, article, on-this-page, prose, tables and endpoint references. */
.split-code {
  align-items: start;
}
.research-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
  padding-bottom: 80px;
}
.toc {
  position: sticky;
  top: 88px;
  font-size: 0.875rem;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.toc ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-left: 1px solid var(--rule);
}
.toc a {
  display: block;
  padding: 5px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
  border-left-color: var(--rule-strong);
}
.toc a[aria-current='page'] {
  color: var(--accent-text);
  border-left-color: var(--accent);
  font-weight: 600;
}
.doc-link {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, background-color 0.15s;
}
.doc-link:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.source-note code {
  white-space: nowrap;
}
.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  grid-template-areas: 'nav body toc';
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
  padding-bottom: 80px;
}
.guide-nav {
  grid-area: nav;
}
.guide-body {
  grid-area: body;
  min-width: 0;
}
.guide-toc {
  grid-area: toc;
}
.guide-prose {
  max-width: 760px;
}
.guide-prose h2,
.guide-prose h3 {
  scroll-margin-top: 88px;
}
.toc .guide-nav-sub {
  margin: 0 0 4px 12px;
  border-left: 0;
}
.toc .guide-nav-sub a {
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 0.8125rem;
}
.link-list-cards {
  list-style: none;
  padding: 0 0 64px;
  display: grid;
  gap: 12px;
}
.link-list-cards li {
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.link-list-cards a {
  font-weight: 600;
  font-size: 1.0625rem;
}
.link-list-cards p {
  margin: 4px 0 0;
}
.prose {
  color: var(--ink-2);
  overflow-wrap: break-word;
  max-width: 820px;
  padding-bottom: 32px;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  padding-top: 0.25em;
}
.prose h3 {
  font-size: 1.125rem;
  margin-top: 1.6em;
}
.prose > :first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose a {
  overflow-wrap: anywhere;
}
.prose .table-wrap a {
  overflow-wrap: normal;
}
.prose .table-wrap td:first-child a {
  white-space: nowrap;
}
.prose blockquote {
  margin: 0 0 1.2em;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg-sunk);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p:last-child {
  margin: 0;
}
.prose pre {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 14px 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.8125rem;
}
.prose pre code {
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.5em;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.table-wrap thead th {
  background: var(--bg-sunk);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.table-wrap tbody th {
  font-weight: 500;
  color: var(--muted);
  width: 40%;
}
.table-wrap tr:last-child td,
.table-wrap tr:last-child th {
  border-bottom: 0;
}
.research-body {
  min-width: 0;
}
.research-prose {
  max-width: none;
}
.research-source {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.legal-prose h2 {
  font-size: 1.25rem;
}
.security-cards {
  margin-bottom: 40px;
}
.draft-wrap {
  padding-top: 24px;
}
.draft-banner {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--rule));
  background: var(--warn-soft);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.draft-banner strong {
  color: var(--warn);
}
@media (max-width: 1080px) {
  .guide-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: 'nav toc' 'nav body';
  }
  .guide-toc {
    position: static;
    max-height: none;
    padding: 14px 16px 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .guide-toc ul {
    columns: 2;
    column-gap: 16px;
    border: 0;
  }
  .guide-toc a {
    border: 0;
    padding: 3px 0;
    break-inside: avoid;
  }
}
@media (max-width: 960px) {
  .research-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'toc' 'body' 'nav';
  }
  .guide-nav {
    border-top: 1px solid var(--rule);
    padding-top: 24px;
  }
  .guide-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    border: 0;
  }
  .guide-nav a {
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 3px 10px;
    margin: 0;
  }
  .guide-nav a[aria-current='page'] {
    border-color: var(--accent);
  }
  .toc .guide-nav-sub {
    display: contents;
  }
  .toc {
    position: static;
    max-height: none;
  }
  .research-nav {
    order: 2;
    border-top: 1px solid var(--rule);
    padding-top: 24px;
  }
  .research-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    border: 0;
  }
  .research-nav a {
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 3px 10px;
    margin: 0;
  }
  .research-nav a[aria-current='page'] {
    border-color: var(--accent);
  }
}
@media (max-width: 640px) {
  .guide-toc ul {
    columns: 1;
  }
  .table-wrap tbody th {
    width: auto;
  }
}
@media (max-width: 360px) {
  .logo-name {
    font-size: 1rem;
  }
  .logo-lockup {
    font-size: 1.25rem;
  }
}
.license-key[hidden] { display: none; }
.license-key code {
  display: inline-block;
  padding: 12px 16px;
  border: 1px solid var(--rule-strong, #d0d5dd);
  border-radius: 8px;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  user-select: all;
}
.shot-mac {
  border-radius: 12px;
  border-color: var(--rule-strong);
}
.guide-layout {
  max-width: 1360px;
  grid-template-columns: 236px minmax(0, 1fr) 208px;
  gap: clamp(32px, 4vw, 64px);
  padding-top: 40px;
  padding-bottom: 96px;
}
.docs-index {
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-areas: 'nav body';
}
.guide-nav {
  top: 88px;
  max-height: calc(100vh - 104px);
  padding-right: 8px;
  scrollbar-width: thin;
}
.guide-nav .toc-title {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  margin: 22px 0 6px 10px;
}
.guide-nav ul {
  border-left: 0;
  margin: 0;
}
.guide-nav a {
  margin: 1px 0;
  padding: 5px 10px;
  border-left: 0;
  border-radius: 7px;
  color: var(--faint);
  font-size: 0.84rem;
  line-height: 1.4;
}
.guide-nav a:hover {
  color: var(--ink);
  background: rgb(var(--tint) / 0.04);
}
.guide-nav a[aria-current='page'] {
  color: var(--ink);
  background: rgb(var(--tint) / 0.07);
  font-weight: 500;
}
.guide-nav-top {
  padding-bottom: 6px !important;
  border-bottom: 1px solid var(--rule) !important;
}
.toc .guide-nav-sub {
  margin: 0 0 2px 10px;
  padding-left: 8px;
  border-left: 1px solid var(--rule);
}
.guide-toc .toc-title {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}
.guide-toc ul {
  border-left: 1px solid var(--rule);
}
.guide-toc a {
  color: var(--faint);
  font-size: 0.8125rem;
  padding: 4px 12px;
}
.guide-toc a:hover {
  color: var(--ink);
  border-left-color: var(--ink);
}
.guide-crumb {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--faint);
}
.guide-crumb a {
  color: var(--accent-text);
  text-decoration: none;
}
.guide-title {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.guide-lead {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 680px;
  margin: 0 0 8px;
}
.guide-prose {
  max-width: 740px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 0.96875rem;
}
.guide-prose h2 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  margin-top: 2.4em;
  padding-top: 0;
}
.guide-prose h3 {
  font-size: 1.0625rem;
  margin-top: 1.8em;
}
.guide-prose pre,
.prose pre {
  background: var(--surface-deep);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.prose blockquote {
  background: rgb(var(--tint) / 0.03);
  border-left: 2px solid var(--brand);
  border-radius: 0 10px 10px 0;
  color: var(--ink-2);
}
.prose table,
.prose .table-wrap {
  border-color: var(--rule);
}
.prose th {
  background: rgb(var(--tint) / 0.03);
}
.docs-h2 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
}
.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
}
.docs-card {
  display: grid;
  gap: 6px;
  padding: 18px 18px 20px;
  border-radius: 14px;
  border: 1px solid rgb(var(--tint) / 0.08);
  background: rgb(var(--tint) / 0.02);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.docs-card:hover {
  border-color: rgb(var(--tint) / 0.18);
  background: rgb(var(--tint) / 0.04);
  color: var(--ink);
}
.docs-card-title {
  font-weight: 550;
  font-size: 0.9375rem;
}
.docs-card-text {
  color: var(--faint);
  font-size: 0.875rem;
}
.docs-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  max-width: 820px;
}
.docs-groups h3 {
  font-size: 0.875rem;
  font-weight: 550;
  margin: 0 0 10px;
}
.docs-groups ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.docs-groups a {
  color: var(--faint);
  font-size: 0.875rem;
  text-decoration: none;
}
.docs-groups a:hover {
  color: var(--ink);
}
.docs-foot {
  margin-top: 48px;
  color: var(--faint);
  font-size: 0.875rem;
}
@media (max-width: 1180px) {
  .guide-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas: 'nav body';
  }
  .guide-toc {
    display: none;
  }
}
@media (max-width: 860px) {
  .guide-layout,
  .docs-index {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'body' 'nav';
  }
  .guide-nav {
    position: static;
    max-height: none;
    border-top: 1px solid var(--rule);
    padding-top: 16px;
  }
  .docs-cards,
  .docs-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
}
.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.compare th,
.compare td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  font-weight: 450;
}
.compare thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  padding-top: 18px;
  padding-bottom: 18px;
}
.compare tbody th {
  text-align: left;
  color: var(--ink-2);
}
.compare td {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare .compare-pro {
  background: rgb(var(--tint) / 0.03);
  color: var(--ink);
}
.compare thead .compare-pro {
  background: rgb(var(--tint) / 0.05);
}
.compare-group th {
  padding-top: 22px;
  color: var(--faint) !important;
  font-size: 0.75rem;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left !important;
  background: rgb(var(--tint) / 0.02);
}
.compare-yes {
  color: var(--ok);
}
.compare-no {
  color: var(--faint);
}
.api-layout .guide-body {
  max-width: 860px;
}
.api-facts {
  display: grid;
  gap: 6px;
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgb(var(--tint) / 0.02);
  font-size: 0.875rem;
  color: var(--muted);
}
.api-facts p {
  margin: 0;
}
.api-facts strong {
  color: var(--ink);
  font-weight: 550;
  margin-right: 6px;
}
.api-facts code,
.api-meta code,
.api-route code {
  overflow-wrap: anywhere;
}
.api-method {
  display: inline-block;
  min-width: 3.6em;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  vertical-align: middle;
  /* mixed toward the ink: darker on light, lighter on dark, so the small label keeps 4.5:1 on its tint */
  color: color-mix(in srgb, var(--info) 80%, var(--ink));
  background: rgb(var(--info-rgb) / 0.12);
}
.api-method-get {
  color: color-mix(in srgb, var(--ok) 80%, var(--ink));
  background: rgb(var(--ok-rgb) / 0.12);
}
.api-method-put {
  color: color-mix(in srgb, var(--warn) 80%, var(--ink));
  background: rgb(var(--warn-rgb) / 0.12);
}
.api-method-delete {
  color: color-mix(in srgb, var(--bad) 80%, var(--ink));
  background: rgb(var(--bad-rgb) / 0.12);
}
.api-groups {
  display: grid;
  gap: 28px;
}
.api-group h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.api-group h3 a {
  color: var(--ink);
  text-decoration: none;
}
.api-group h3 a:hover {
  color: var(--accent-text);
}
.api-group-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.875rem;
}
.api-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.api-list li + li {
  border-top: 1px solid var(--rule);
}
.api-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.8125rem;
}
.api-list a:hover {
  background: rgb(var(--tint) / 0.04);
  color: var(--ink);
}
.api-list code {
  background: none;
  padding: 0;
  overflow-wrap: anywhere;
}
.api-list-summary {
  color: var(--muted);
}
.api-op {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 80px;
}
.api-op h2 {
  margin: 0 0 10px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.api-op h3 {
  margin: 24px 0 10px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.api-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.api-route code {
  font-size: 0.875rem;
}
.api-desc {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.api-auth,
.api-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 12px 0;
}
.api-auth strong {
  color: var(--ink-2);
  font-weight: 550;
}
.api-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.api-table th,
.api-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.api-table th {
  color: var(--faint);
  font-weight: 550;
  background: rgb(var(--tint) / 0.02);
}
.api-table tr:last-child td {
  border-bottom: 0;
}
.api-table td {
  color: var(--muted);
}
.api-table td:first-child {
  white-space: nowrap;
  color: var(--ink);
}
.api-table td:first-child code {
  color: var(--ink);
}
.api-type {
  color: var(--accent-text);
  overflow-wrap: anywhere;
}
.api-req {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  color: var(--warn);
}
.api-code {
  font-weight: 600;
}
.api-shape {
  margin: 8px 0 0;
  padding: 14px 16px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface-deep);
  font-size: 0.78125rem;
  line-height: 1.6;
}
.api-shape code {
  background: none;
  padding: 0;
  color: var(--code-ink);
  white-space: pre;
}
.api-errors {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}
.api-errors summary {
  cursor: pointer;
  color: var(--ink-2);
}
.api-errors ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
@media (max-width: 640px) {
  .api-list a {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .api-list-summary {
    grid-column: 2;
  }
  .api-table td:first-child {
    white-space: normal;
  }
}
.api-table td:has(> .api-type) {
  min-width: 150px;
}
.api-desc > :last-child {
  margin-bottom: 0;
}
.compare-wrap,
.api-table-wrap {
  position: relative;
}

/* ───────── Workspace mockups (components/workspace.tsx) ─────────
   Drawn like the dashboard: one surface, hairlines, small type, status colours only for meaning. */
.mock {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
  overflow: hidden;
  min-width: 0;
}
.mock b {
  color: var(--ink);
  font-weight: 550;
}
.mock-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.mock-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: var(--fs-2xs);
  min-width: 0;
}
.mock-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  color: var(--muted);
}
.mock-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-2xs);
  color: var(--faint);
}
.mock-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.mock-swatch-a {
  background: var(--brand);
}
.mock-swatch-b {
  background: var(--ok);
}
.mock-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  font-size: var(--fs-2xs);
  font-weight: 550;
  white-space: nowrap;
}
.mock-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.mock .is-current {
  background: rgb(var(--tint) / 0.05);
}

/* team inbox */
.mock-inbox {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}
.mock-rail {
  border-right: 1px solid var(--rule);
  padding: 12px 8px;
  background: var(--bg-sunk);
}
.mock-rail-head {
  margin: 10px 8px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--faint);
}
.mock-rail-head:first-child {
  margin-top: 0;
}
.mock-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mock-rail li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink-2);
}
.mock-rail li b {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--faint);
  font-weight: 500;
}
.mock-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mock-list li {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
}
.mock-list li:last-child {
  border-bottom: 0;
}
.mock-from {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-list .is-unread .mock-from {
  color: var(--ink);
  font-weight: 600;
}
.mock-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-subject b {
  font-weight: 500;
}
.mock-list .is-unread .mock-subject b {
  font-weight: 600;
}
.mock-subject span {
  color: var(--faint);
}
.mock-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.mock-meta time {
  font-size: var(--fs-2xs);
  color: var(--faint);
  min-width: 4.2em;
  text-align: right;
}
.mock-label {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}
.mock-label-a {
  color: var(--accent-text);
  background: var(--accent-soft);
}
.mock-label-b {
  color: color-mix(in srgb, var(--ok) 80%, var(--ink));
  background: var(--ok-soft);
}
.mock-note {
  font-size: 0.6875rem;
  color: var(--warn);
}
.mock-avatar {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--raised);
  color: var(--ink-2);
  font-size: 0.625rem;
  font-weight: 600;
}

/* spam filter */
.mock-score {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bad);
}
.mock-score span {
  margin-left: 4px;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--faint);
  font-weight: 400;
}
.mock-signals {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.mock-signals li {
  display: grid;
  grid-template-columns: 8px 6.5em minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 7px 16px;
}
.mock-signals li span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.is-warn .dot {
  background: var(--warn);
}
.mock-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 14px;
}

/* calendar */
.mock-week {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mock-day {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px;
  min-height: 150px;
  border-right: 1px solid var(--rule);
}
.mock-day:last-child {
  border-right: 0;
}
.mock-day-name {
  margin: 0 0 2px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--faint);
}
.mock-event {
  display: grid;
  padding: 6px 8px;
  border-radius: 6px;
  border-left: 2px solid var(--brand);
  background: rgb(var(--brand-rgb) / 0.1);
  min-width: 0;
}
.mock-event time,
.mock-event span {
  font-size: 0.6875rem;
  color: var(--faint);
}
.mock-event b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-event-b {
  border-left-color: var(--ok);
  background: rgb(var(--ok-rgb) / 0.1);
}
.mock-event-c {
  border-left-color: var(--warn);
  background: rgb(var(--warn-rgb) / 0.1);
}
.mock-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--rule);
}
.mock-rsvp {
  display: inline-flex;
  gap: 6px;
}

/* booking page */
.mock-book-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 16px 0;
}
.mock-book-days span {
  padding: 6px 0;
  text-align: center;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: var(--fs-2xs);
  font-weight: 550;
}
.mock-book-days .is-current {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.mock-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 16px 16px;
}
.mock-slot {
  padding: 7px 0;
  text-align: center;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
}
.mock-slot.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* drive */
.mock-files {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.mock-files li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}
.mock-files li b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-files li span:last-child {
  font-size: var(--fs-2xs);
  color: var(--faint);
  white-space: nowrap;
}
.mock-file-icon {
  width: 12px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid var(--faint);
}
.mock-file-folder {
  height: 11px;
  border-radius: 2px 2px 3px 3px;
  background: rgb(var(--brand-rgb) / 0.25);
  border-color: var(--brand);
}
.mock-link {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--rule);
}
.mock-link p {
  margin: 0 0 8px;
}
.mock-link dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.mock-link dt {
  font-size: 0.6875rem;
  color: var(--faint);
}
.mock-link dd {
  margin: 2px 0 0;
  color: var(--ink-2);
}

/* the home page workspace section: the inbox beside its copy, then three tiles */
.ws-tiles {
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}
.ws-tiles > li {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
@supports (grid-template-rows: subgrid) {
  /* the three tiles line up: mockups, titles, texts and links each share a row */
  .ws-tiles > li {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }
  .ws-tiles > li > .mock {
    align-self: start;
  }
}
.ws-tiles > li > .mock {
  margin-bottom: var(--sp-5);
}
.ws-tiles > li > h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}
.ws-tiles > li > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.ws-tiles > li > .more-link {
  align-self: flex-start;
  margin-top: var(--sp-3);
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-7) var(--sp-6);
}
.included-grid > div {
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-5);
  min-width: 0;
}
.checks + .code {
  margin-top: var(--sp-5);
}
.included-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin: 0 0 var(--sp-4);
}
@media (max-width: 1024px) {
  .ws-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .included-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .mock-inbox {
    grid-template-columns: minmax(0, 1fr);
  }
  .mock-rail {
    display: none;
  }
  .mock-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
  }
  .mock-subject {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .mock-note {
    display: none;
  }
  .ws-tiles,
  .included-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 400px) {
  .mock-rsvp .mock-btn:nth-child(2) {
    display: none;
  }
  .mock-link dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ───────────── Free email tools (/tools/) and error fixes (/fix/) ───────────── */
.tools-page {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-8);
  max-width: 980px;
}
.tools-head h1,
.tool-title {
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
}
.tool-title {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}
.tools-page .lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 64ch;
  margin: 0 0 var(--sp-4);
}
.tools-group {
  margin-top: var(--sp-7);
}
.tools-group h2,
.tools-related h2 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 0 0 var(--sp-3);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-3);
}
.tool-card {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.tool-card:hover {
  border-color: var(--rule-strong);
  background: var(--raised);
}
.tool-card-name {
  font-weight: 600;
}
.tool-card-blurb {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}
.tool-hint {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: var(--sp-1) 0 0;
}
.tool {
  margin: var(--sp-5) 0 var(--sp-7);
  padding: var(--sp-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  align-items: end;
}
.tool-form .field-row {
  grid-column: 1 / -1;
}
.tool-form .tool-wide,
.tool-form fieldset {
  grid-column: 1 / -1;
}
.tool-inline {
  grid-template-columns: minmax(0, 1fr) auto;
}
.tool-inline:has(> :nth-child(3)) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto;
}
.tool-go {
  min-height: 44px;
}
.tool-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-2) var(--sp-4);
}
.tool-check {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.field .tool-check input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: none;
}
.field input[type='color'] {
  padding: 4px;
}
.tool-drop {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-7) var(--sp-4);
  border: 1.5px dashed var(--rule-strong);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
}
.tool-drop.is-over {
  border-color: var(--brand);
  background: var(--accent-soft);
}
.tool-drop-title {
  font-weight: 600;
}
.tool-drop input {
  font-size: var(--fs-xs);
  color: var(--muted);
  max-width: 100%;
}
.tool-out:not(:empty) {
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-2);
}
.tool-busy {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0;
}
.tool-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  font-size: var(--fs-sm);
}
.tool-row-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--hover);
}
.tool-row.is-ok .tool-row-mark {
  color: var(--ok);
  background: var(--ok-soft);
}
.tool-row.is-warn .tool-row-mark {
  color: var(--warn);
  background: var(--warn-soft);
}
.tool-row.is-bad .tool-row-mark {
  color: var(--bad);
  background: var(--bad-soft);
}
.tool-row-body {
  min-width: 0;
}
.tool-row-body strong {
  font-weight: 600;
}
.tool-row-detail {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.tool-row-detail .tool-code {
  margin-top: var(--sp-2);
}
.tool-sub {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin: var(--sp-4) 0 0;
}
.tool-code {
  margin: 0;
  padding: var(--sp-3);
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink-2);
}
.tool-code-sm {
  padding: var(--sp-2);
}
.tool-out code:not(.tool-code code) {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
.tool-output {
  display: grid;
  gap: var(--sp-2);
}
.tool-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-2);
  font-weight: 500;
}
.tool-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.tool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-xs);
}
.tool-table th,
.tool-table td {
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.tool-table th {
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-sunk);
  white-space: nowrap;
}
.tool-table tr:last-child td {
  border-bottom: 0;
}
.tool-slow {
  color: var(--warn);
  font-weight: 600;
}
.tool-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-2xs);
}
.tool-pill.is-ok {
  color: var(--ok);
  background: var(--ok-soft);
}
.tool-pill.is-warn {
  color: var(--warn);
  background: var(--warn-soft);
}
.tool-pill.is-bad {
  color: var(--bad);
  background: var(--bad-soft);
}
.tool-tree {
  list-style: none;
  margin: 0;
  padding-left: var(--sp-4);
  border-left: 1px solid var(--rule);
  display: grid;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
}
.tool-out > .tool-tree {
  padding-left: 0;
  border-left: 0;
}
.tool-tree li {
  display: grid;
  gap: var(--sp-1);
}
.tool-tree-bad {
  color: var(--bad);
}
.tool-block {
  display: grid;
  gap: var(--sp-2);
  padding-top: var(--sp-2);
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.tool-sig-preview {
  padding: var(--sp-5);
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--rule);
  overflow-x: auto;
}
.tool-score {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 600;
}
.tool-score-n {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.25rem;
}
.tool-score-n.is-ok {
  color: var(--ok);
  background: var(--ok-soft);
}
.tool-score-n.is-warn {
  color: var(--warn);
  background: var(--warn-soft);
}
.tool-score-n.is-bad {
  color: var(--bad);
  background: var(--bad-soft);
}
.tool-previews {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: var(--sp-3);
}
.tool-preview {
  margin-top: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.tool-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}
.tool-stats > div {
  display: grid;
  gap: 2px;
  padding: var(--sp-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg-sunk);
}
.tool-stat-n {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.tool-mail {
  display: grid;
  gap: var(--sp-3);
  min-width: 0;
}
.tool-mail-subject {
  font-size: var(--fs-h3);
  margin: 0;
}
.tool-mail-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px var(--sp-3);
  margin: 0;
  font-size: var(--fs-xs);
}
.tool-mail-meta dt {
  color: var(--muted);
}
.tool-mail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tool-mail-html {
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  overflow: hidden;
  background: #ffffff;
}
.tool-mail-text {
  margin: 0;
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--bg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: var(--fs-sm);
}
.tool-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}
.tool-files li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
}
.tool-raw summary {
  cursor: pointer;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.tool-raw pre {
  margin-top: var(--sp-2);
  max-height: 320px;
  overflow: auto;
}
.tool-search {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
}
.tool-mbox {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}
.tool-mbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 640px;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.tool-mbox-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-xs);
  text-align: left;
  cursor: pointer;
}
.tool-mbox-item:hover,
.tool-mbox-item.is-open {
  background: var(--hover);
}
.tool-mbox-from {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-mbox-subj {
  grid-column: 1 / -1;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-mbox-date {
  color: var(--faint);
  grid-row: 1;
  grid-column: 2;
}
.tool-offscreen {
  position: fixed;
  left: -9999px;
  top: 0;
}
.tool-about {
  max-width: 72ch;
}
.tools-related {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
}
.fix-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}
.fix-list li {
  padding: var(--sp-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.fix-list a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.fix-list a:hover {
  text-decoration: underline;
}
.fix-list p {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.55;
}
.fix-answer {
  max-width: 72ch;
  margin: 0 0 var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.fix-related {
  margin: 0;
  padding-left: var(--sp-5);
  display: grid;
  gap: var(--sp-1);
}
@media (max-width: 720px) {
  .tool {
    padding: var(--sp-4);
  }
  .tool-form,
  .tool-inline,
  .tool-inline:has(> :nth-child(3)),
  .tool-mbox,
  .tool-previews {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .tools-page {
    padding-top: var(--sp-6);
  }
}
