/* G3 Flow's public site: one set of tokens and parts for every page, and for sign-in (web/login.html). */
:root {
  color-scheme: dark;
  --night: #050810;
  --night-rgb: 5, 8, 16;
  --band: #070c18;
  --surface: #0b1322;
  --surface-2: #0f1a2d;
  --inset: #070d19;
  --line: rgba(148, 163, 184, 0.13);
  --line-2: rgba(148, 163, 184, 0.24);
  --ink: #f1f5f9;
  --ink-2: #a9b6c9;
  --ink-3: #7d8ba1;
  --sky: #99dcfd;
  --signal: #38bdf8;
  --paid: #34d399;
  --amber: #fbbf24;
  --flow: linear-gradient(90deg, #38bdf8 0%, #818cf8 55%, #c084fc 100%);
  --s1: #38bdf8; --s2: #53abf8; --s3: #6d99f8; --s4: #888bf8; --s5: #a488fa; --s6: #c084fc;
  /* Primary buttons show the first half of this; hovering slides toward violet. White text passes 4.5:1 throughout. */
  --primary-fill: #0277b6;   /* one solid color: no gradient on buttons */
  --primary-ink: #ffffff;
  --primary-edge: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(15, 12, 60, 0.55), 0 1px 2px rgba(0, 0, 0, 0.5);
  --panel: linear-gradient(180deg, rgba(16, 27, 47, 0.82), rgba(9, 15, 28, 0.82));
  --panel-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shot-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.8);
  --marker-bg: #050810;
  --logo-ink: #99dcfd;
  --logo-overlay-op: 0.5;
  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --scroll-thumb: rgba(148, 163, 184, 0.28);
  --scroll-thumb-hover: rgba(148, 163, 184, 0.46);
  --scroll-thumb-active: rgba(148, 163, 184, 0.58);
}
html[data-theme="light"] {
  color-scheme: light;
  --night: #f4f7fb;
  --night-rgb: 244, 247, 251;
  --band: #edf2f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --inset: #f3f6fb;
  --line: rgba(15, 23, 42, 0.09);
  --line-2: rgba(15, 23, 42, 0.18);
  --ink: #0f172a;
  --ink-2: #44546a;
  --ink-3: #5f6f86;
  --sky: #0369a1;
  --signal: #0284c7;
  --paid: #047857;
  --amber: #b45309;
  --flow: linear-gradient(90deg, #0ea5e9 0%, #6366f1 55%, #a855f7 100%);
  --s1: #0ea5e9; --s2: #2b8ff0; --s3: #4a79ea; --s4: #6b64ef; --s5: #8a5bf3; --s6: #a855f7;
  --primary-fill: #0279bb;
  --primary-ink: #ffffff;
  --primary-edge: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 0 1px rgba(49, 46, 129, 0.16), 0 1px 2px rgba(15, 23, 42, 0.16);
  --panel: #ffffff;
  --panel-shadow: 0 30px 80px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shot-shadow: 0 28px 56px -30px rgba(15, 23, 42, 0.3);
  --marker-bg: #ffffff;
  --logo-ink: url(#g3BrandGradLight);
  --logo-overlay-op: 0;
  --scroll-thumb: rgba(15, 23, 42, 0.2);
  --scroll-thumb-hover: rgba(15, 23, 42, 0.34);
  --scroll-thumb-active: rgba(15, 23, 42, 0.44);
}
@view-transition { navigation: auto; }
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
/* The scrollbar's space is kept even on a page that fits the screen (sign-in), so the bar sits in the same place on every page. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  min-height: 100vh; overflow-x: hidden; background: var(--night); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
::selection { background: rgba(56, 189, 248, 0.28); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

/* Scrollbars: a slim thumb on a clear track, the same on the page and in every box that scrolls (as in the app). */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: var(--scroll-thumb) padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
::-webkit-scrollbar-thumb:active { background-color: var(--scroll-thumb-active); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports selector(::-webkit-scrollbar) {
  /* A browser that forces its own scrollbar width or color (with !important) turns the styling above off. */
  html, html * { scrollbar-width: auto !important; scrollbar-color: auto !important; }
}
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
}
a { color: inherit; text-decoration: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--surface); color: var(--ink); }
.skip:focus { top: 12px; }
.link { color: var(--sky); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 0.92em; }

/* What this server offers: set on <html> by the server (src/web.py). */
html:not([data-signup="1"]) .if-signup, html[data-signup="1"] .if-no-signup { display: none !important; }
html[data-contact=""] .if-contact, html:not([data-contact]) .if-contact { display: none !important; }
html[data-signup="1"] .if-contact-only { display: none !important; }
html:not([data-status-page="1"]) .if-status { display: none !important; }
html[data-status-page="1"] .if-no-status { display: none !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px;
  border-radius: 12px; font: inherit; font-size: 15px; font-weight: 650; line-height: 1; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background-color 150ms, border-color 150ms, color 150ms, transform 120ms var(--ease);
}
.btn-primary {
  color: var(--primary-ink); background: var(--primary-fill) 0 0 / 200% 100%; box-shadow: var(--primary-edge);
  transition: background-position 350ms var(--ease), filter 150ms, transform 120ms var(--ease);
}
.btn-primary:hover { background-position: 40% 0; }
.btn-primary:active { filter: brightness(0.92); }
.btn:active { transform: translateY(1px); }
.btn-quiet { color: var(--ink); border-color: var(--line-2); background: rgba(148, 163, 184, 0.04); }
.btn-quiet:hover { border-color: var(--ink-3); background: rgba(148, 163, 184, 0.1); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cta-note { font-size: 14px; color: var(--ink-3); }
.cta-note a { color: var(--sky); font-weight: 600; }
.cta-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Top bar ── */
.bar { position: sticky; top: 0; z-index: 50; view-transition-name: g3-bar; transition: background-color 200ms, border-color 200ms; border-bottom: 1px solid transparent; }
.bar.is-scrolled, .bar.is-open { background: rgba(var(--night-rgb), 0.82); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
.bar-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 28px; }
.bar-logo { display: inline-flex; padding: 6px 0; border-radius: 6px; view-transition-name: g3-logo; }
.bar-logo svg { display: block; height: 25px; width: auto; }
.bar-nav { display: flex; align-items: center; gap: 2px; }
.bar-nav > a { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 150ms, background-color 150ms; }
.bar-nav > a:hover { color: var(--ink); background: rgba(148, 163, 184, 0.07); }
.bar-nav > a[aria-current="page"] { color: var(--ink); background: rgba(148, 163, 184, 0.09); }
.nav-drop { position: relative; }
.nav-drop::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border: 0; border-radius: 8px;
  background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; cursor: pointer;
  transition: color 150ms, background-color 150ms;
}
.nav-drop-btn .ic { width: 14px; height: 14px; transition: transform 160ms var(--ease); }
.nav-drop-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-drop-btn:hover, .nav-drop-btn[aria-current="page"], .nav-drop-btn[aria-expanded="true"] { color: var(--ink); background: rgba(148, 163, 184, 0.09); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 232px; padding: 6px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
html[data-theme="light"] .nav-menu { box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14); }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: rgba(148, 163, 184, 0.10); }
.nav-menu a[aria-current="page"] { background: color-mix(in srgb, var(--sky) 14%, transparent); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bar-signin {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 13px; border-radius: 11px;
  font-size: 14px; font-weight: 650; color: var(--ink); white-space: nowrap; border: 1px solid var(--line-2);
  background: rgba(148, 163, 184, 0.06); transition: border-color 150ms, background-color 150ms, transform 120ms var(--ease);
}
.bar-signin .ic { width: 16px; height: 16px; color: var(--sky); transition: transform 220ms var(--ease); }
.bar-signin:hover { border-color: var(--ink-3); background: rgba(148, 163, 184, 0.12); }
.bar-signin:active { transform: translateY(1px); }
.bar-signin:hover .ic { transform: translateX(2px); }
.bar-cta { gap: 8px; height: 38px; padding: 0 14px 0 16px; border-radius: 11px; font-size: 14px; }
.bar-cta .ic { width: 15px; height: 15px; stroke-width: 2.2; transition: transform 220ms var(--ease); }
.bar-cta:hover .ic { transform: translateX(3px); }
.theme-btn, .menu-btn {
  height: 38px; min-width: 38px; border-radius: 11px; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); border: 1px solid var(--line-2); background: rgba(148, 163, 184, 0.06);
  transition: border-color 150ms, background-color 150ms, transform 120ms var(--ease);
}
.theme-btn:hover, .menu-btn:hover { border-color: var(--ink-3); background: rgba(148, 163, 184, 0.12); }
.theme-btn:active, .menu-btn:active { transform: translateY(1px); }
.theme-btn .ic { width: 16px; height: 16px; color: var(--sky); transition: transform 220ms var(--ease); }
.theme-btn:hover .moon { transform: rotate(-14deg); }
.theme-btn:hover .sun { transform: rotate(45deg); }
.theme-btn .moon, html[data-theme="light"] .theme-btn .sun { display: none; }
html[data-theme="light"] .theme-btn .moon { display: block; }
.menu-btn { display: none; grid-auto-flow: column; gap: 7px; padding: 0 12px; font: inherit; font-size: 13.5px; font-weight: 600; }
.menu-btn .ic { width: 16px; height: 16px; color: var(--sky); }
.menu-panel { max-width: var(--wrap); margin: 0 auto; padding: 4px var(--gutter) 22px; }
.menu-panel nav a { display: block; padding: 13px 0; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.menu-panel nav a[aria-current="page"] { color: var(--sky); }
.menu-label { margin: 8px 0 0; padding: 16px 0 4px; font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.menu-panel nav a.menu-sub { padding-left: 12px; font-size: 16px; font-weight: 550; }
.menu-panel .cta-row { margin-top: 18px; }
.menu-theme {
  display: none; align-items: center; gap: 10px; width: 100%; height: 44px; margin-top: 14px; padding: 0 14px; border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: rgba(148, 163, 184, 0.06); border: 1px solid var(--line-2);
  cursor: pointer; transition: border-color 150ms, background-color 150ms;
}
.menu-theme:hover { border-color: var(--ink-3); background: rgba(148, 163, 184, 0.12); }
.menu-theme .ic { width: 16px; height: 16px; color: var(--sky); }
.menu-theme .moon, html[data-theme="light"] .menu-theme .sun { display: none; }
html[data-theme="light"] .menu-theme .moon { display: block; }

/* ── Page heads ── */
/* A page's title block stays short, so what the page is about starts in the first screen. */
.page-hero { position: relative; isolation: isolate; padding: clamp(28px, 5.5vh, 60px) 0 clamp(22px, 3.5vh, 40px); }
.page-hero::before, .hero::before { content: none; }
.page-hero h1, .display {
  font-family: var(--display); font-stretch: 110%; font-weight: 780; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(40px, 5.4vw, 72px); text-wrap: balance;
}
.page-hero h1 { max-width: 24ch; font-size: clamp(32px, 3.7vw, 52px); line-height: 1.06; }
.page-hero .lede { margin-top: 14px; max-width: 62ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); }
.page-hero .cta-row { margin-top: 22px; }
.lede { font-size: 17.5px; line-height: 1.65; color: var(--ink-2); }

/* ── Sections ── */
.section { padding: clamp(80px, 12vh, 136px) 0; scroll-margin-top: 40px; }
.section.tight { padding-top: clamp(40px, 6vh, 72px); }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2, .h2 {
  max-width: 22ch; font-family: var(--display); font-stretch: 108%; font-weight: 740;
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -0.016em; text-wrap: balance;
}
.section h2.lines { max-width: none; }
.section h2.lines span { display: block; }
.section-lede { margin-top: 20px; max-width: 60ch; font-size: 17.5px; line-height: 1.65; color: var(--ink-2); }
.rule { border: 0; height: 1px; background: var(--line); }
.more { display: inline-flex; margin-top: 28px; font-size: 15px; font-weight: 600; color: var(--sky); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Stage dots: the sky-to-violet order of the cycle, as on the home page's claim. */
.stage { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; color: var(--ink); }
.stage::before { content: ''; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--s1)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--s1)) 16%, transparent); }

/* ── Capability lists ── */
.caps { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.cap { padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.cap h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.005em; color: var(--ink); }
.cap p { margin-top: 6px; font-size: 15px; line-height: 1.62; color: var(--ink-2); max-width: 58ch; }
.cap .tags { margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.auto { color: var(--sky); border-color: color-mix(in srgb, var(--sky) 35%, transparent); }
.tag.you { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 38%, transparent); }
.tag.opt { color: var(--ink-3); }
.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 8px; font-family: var(--mono);
  font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--inset); border: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.legend { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 14px; color: var(--ink-3); }
.legend .tag { margin-right: 6px; }

/* ── In-page contents ── */
/* "On this page": the same plain menu as the Specialties page. A label with a count, full-width rows, and the section
   being read in bold on a light ground; no dots or glow. On a phone it becomes a dropdown (site.js adds it). */
.with-toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: clamp(80px, 12vh, 136px); }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; }
.toc p { display: flex; align-items: center; gap: 10px; height: 40px; margin: 0 0 4px; padding: 0 10px 0 12px; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.toc-count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11.5px; letter-spacing: 0; color: var(--ink-3); background: var(--inset); border: 1px solid var(--line); }
.toc a, .toc-menu a {
  display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px;
  font-size: 15px; font-weight: 550; color: var(--ink-2); transition: color 150ms, background-color 150ms;
}
.toc a:hover, .toc-menu a:hover { color: var(--ink); background: rgba(148, 163, 184, 0.06); }
.toc a[aria-current="true"], .toc-menu a[aria-current="true"] { color: var(--ink); font-weight: 650; background: rgba(148, 163, 184, 0.11); }
html[data-theme="light"] .toc a[aria-current="true"], html[data-theme="light"] .toc-menu a[aria-current="true"] { background: rgba(15, 23, 42, 0.06); }
.toc a:focus-visible, .toc-menu a:focus-visible, .toc-pick:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.toc-drop { display: none; }
.toc-body > section + section { margin-top: clamp(72px, 10vh, 112px); }
.toc-body > section { scroll-margin-top: 96px; }

/* ── Panels ── */
.panel { border-radius: 20px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--panel-shadow); }

/* ── Screenshots: one picture per theme, the one that matches shows ── */
.shot { margin-top: 44px; }
.shot-frame { overflow: hidden; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shot-shadow); }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.shot img { display: block; width: 100%; height: auto; }
.shot .on-light, html[data-theme="light"] .shot .on-dark { display: none; }
html[data-theme="light"] .shot .on-light { display: block; }
.shot figcaption { margin-top: 14px; max-width: 78ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }
.shot figcaption b { font-weight: 650; color: var(--ink); }
.shot.side { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 44px; align-items: center; }
.shot.side figcaption { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.shot.side figcaption b { display: block; margin-bottom: 8px; font-size: 18px; letter-spacing: -0.005em; }
.toc-body .shot.side { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 36px; }
@media (max-width: 1200px) {
  .toc-body .shot.side { display: block; }
  .toc-body .shot.side .shot-frame { max-width: 680px; }
  .toc-body .shot.side figcaption { margin-top: 14px; font-size: 14.5px; }
  .toc-body .shot.side figcaption b { margin-bottom: 4px; font-size: 15.5px; }
}
@media (max-width: 900px) {
  .shot.side { display: block; }
  .shot.side .shot-frame { max-width: 680px; }
  .shot.side figcaption { margin-top: 14px; font-size: 14.5px; }
  .shot.side figcaption b { margin-bottom: 4px; font-size: 15.5px; }
}

/* The home page's tour: tabs over screenshots. Without scripts, every screen shows. */
.tour { margin-top: 44px; }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); }
.tour-tabs button {
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 14px/1 var(--sans); color: var(--ink-2); transition: color 150ms, background-color 150ms;
}
.tour-tabs button:hover { color: var(--ink); background: var(--surface-2); }
.tour-tabs button[aria-selected="true"] { color: var(--night); background: var(--ink); }
.tour .shot { margin-top: 20px; }
html:not(.js) .tour-tabs, html.js .tour .shot:not(.is-on) { display: none; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 16px 14px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table th { font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.table td { color: var(--ink-2); }
.table td b { display: block; font-weight: 650; color: var(--ink); }
.table td small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); max-width: 56ch; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ── Questions ── */
.faq { margin-top: 44px; border-top: 1px solid var(--line); max-width: 880px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.faq-layout .faq { margin-top: 6px; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro p { margin-top: 18px; max-width: 36ch; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 650; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: 0 0 auto; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1; color: var(--ink-3); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 22px; max-width: 72ch; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.faq details p + p { margin-top: -8px; }

/* ── Resource pages ── */
.pieces { border-top: 1px solid var(--line); }
.piece { padding: 36px 0 38px; border-bottom: 1px solid var(--line); }
.piece .kicker { font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.piece h2 { margin-top: 8px; max-width: 28ch; font-size: clamp(26px, 2.6vw, 34px); }
.piece .body { margin-top: 14px; max-width: 68ch; }
.piece .body p { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.piece .body p + p { margin-top: 12px; }
.piece .more { margin-top: 16px; }

/* ── Closing call ── */
.cta-band { padding: clamp(80px, 12vh, 128px) 0; border-top: 1px solid var(--line); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 56px; align-items: end; }
.cta-band h2 { font-family: var(--display); font-stretch: 108%; font-weight: 760; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.016em; max-width: 18ch; text-wrap: balance; }
.cta-band p { margin-top: 16px; max-width: 54ch; color: var(--ink-2); font-size: 17px; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--line); background: var(--band); }
.foot-top { display: grid; grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.85fr); gap: 44px 48px; padding: 64px 0 52px; }
.foot-logo { display: inline-flex; border-radius: 6px; }
.foot-logo svg { display: block; height: 26px; width: auto; }
.foot-brand p { margin-top: 18px; max-width: 34ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.foot-cols h2 { margin-bottom: 14px; font-size: 12px; font-weight: 650; letter-spacing: 0.08em; line-height: 1.35; text-transform: uppercase; color: var(--ink-3); }
.foot-cols a { display: block; width: fit-content; padding: 5px 0; font-size: 15px; color: var(--ink-2); transition: color 150ms; }
.foot-cols a:hover, .foot-cols a[aria-current="page"] { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot-more { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-more a { transition: color 150ms; }
.foot-more a:hover { color: var(--ink); }

/* ── Smaller screens ── */
@media (max-width: 1120px) {
  .bar-nav { display: none !important; }
  .menu-btn { display: grid; }
}
@media (max-width: 1060px) {
  .with-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq-intro { position: static; }
  .faq-layout .faq { margin-top: 36px; }
  .toc { display: none; }
  /* the phone's dropdown, as on the Specialties page */
  .toc-drop { display: block; position: relative; z-index: 5; margin-bottom: 36px; }
  .toc-pick {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border-radius: 14px;
    border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  }
  html[data-theme="light"] .toc-pick { background: #fff; }
  .toc-pick small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
  .toc-pick b { display: block; font-size: 16px; font-weight: 650; }
  .toc-pick .ic { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); transition: transform 220ms var(--ease); }
  .toc-drop.is-open .toc-pick .ic { transform: rotate(180deg); }
  .toc-menu {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(70vh, 560px); overflow-y: auto; gap: 2px;
    padding: 8px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
  html[data-theme="light"] .toc-menu { background: #fff; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16); }
  .toc-drop.is-open .toc-menu { display: grid; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; padding-top: 52px; }
}
@media (max-width: 900px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .caps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bar-inner { gap: 8px; }
  .bar-logo svg { height: 22px; }
  .bar-end { gap: 5px; }
  .bar-end > .theme-btn { display: none; }
  .menu-theme { display: flex; }
  .bar-signin, .bar-cta { height: 36px; padding: 0 10px; font-size: 13.5px; }
  .bar-signin .ic, .bar-cta .ic { display: none; }
  .menu-btn { width: 36px; min-width: 36px; height: 36px; padding: 0; }
  .menu-btn span { display: none; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

@media (max-width: 374px) {
  .bar-signin { display: none; }
}
@media (max-width: 360px) {
  .btn:not(.btn-sm):not(.bar-cta) { height: auto; min-height: 48px; padding-top: 12px; padding-bottom: 12px; white-space: normal; line-height: 1.25; text-align: center; }
}

/* ── Phones: a lighter bar and menu, and screenshots big enough to read ── */
.shot-pan { display: block; }
@media (max-width: 560px) {
  /* The bar keeps the logo, one button and the menu. Sign in lives in the menu and under each page's headline. */
  .bar-end > .bar-signin { display: none; }

  /* The menu: the main pages as a two-by-three grid of tiles, the resources as a short two-column list. */
  .menu-panel { padding: 8px var(--gutter) 18px; max-height: calc(100svh - 68px); overflow-y: auto; }
  .menu-panel nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .menu-panel nav a {
    display: flex; align-items: center; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
    font-size: 15.5px; font-weight: 650; background: rgba(148, 163, 184, 0.05);
  }
  .menu-panel nav a[aria-current="page"] { border-color: color-mix(in srgb, var(--sky) 45%, transparent); background: color-mix(in srgb, var(--sky) 10%, transparent); }
  .menu-label { grid-column: 1 / -1; margin: 10px 0 0; padding: 0 2px; }
  .menu-panel nav a.menu-sub { min-height: 40px; padding: 6px 2px; border: 0; background: none; font-size: 15px; font-weight: 550; color: var(--ink-2); }
  .menu-panel .cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .menu-panel .cta-row .btn { width: 100%; justify-content: center; }
  .menu-panel .cta-row .if-contact-only { grid-column: 1 / -1; }
  .menu-theme { height: 40px; margin-top: 10px; font-size: 14px; justify-content: center; }

  /* The tour's tabs: one row you can swipe, instead of a pill that wraps. */
  .tour-tabs {
    flex-wrap: nowrap; width: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); border: 0; border-radius: 0;
    background: none; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs button { flex: 0 0 auto; border: 1px solid var(--line-2); background: var(--surface); }
  .tour-tabs button[aria-selected="true"] { border-color: var(--ink); }

  /* Screenshots: shown at nearly twice the size, swiped sideways to look around. */
  .shot-pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .shot-pan img { width: 190%; max-width: none; }
  .shot-bar { position: relative; }
  .shot-bar::after {
    content: 'Swipe to look around \2194'; position: absolute; right: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
    color: var(--ink-3); transition: opacity 300ms;
  }
  .shot-frame.is-panned .shot-bar::after { opacity: 0; }
  html:not(.js) .shot-pan img { width: 100%; }
  .shot figcaption { font-size: 15px; }
}

/* ── Phones: the footer as a small dashboard of panels, with a way back up ── */
.foot-up { display: none; }
@media (max-width: 560px) {
  .foot { position: relative; }
  .foot::before {
    content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--flow); opacity: 0.85;
    box-shadow: 0 0 24px color-mix(in srgb, var(--sky) 45%, transparent);
  }
  .foot-top { gap: 28px; padding: 44px 0 28px; }
  .foot-brand { display: grid; justify-items: start; gap: 0; }
  .foot-logo svg { height: 24px; }
  .foot-brand p { margin-top: 12px; font-size: 15px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .foot-cols > div {
    padding: 14px 14px 10px; border-radius: 16px; border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.07), rgba(148, 163, 184, 0.02));
  }
  .foot-cols h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11px; }
  .foot-cols h2::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); }
  .foot-cols > div:nth-child(2) h2::before { background: var(--s3, #818cf8); box-shadow: 0 0 10px var(--s3, #818cf8); }
  .foot-cols > div:nth-child(3) h2::before { background: var(--s5, #a78bfa); box-shadow: 0 0 10px var(--s5, #a78bfa); }
  .foot-cols > div:nth-child(4) h2::before { background: var(--paid, #34d399); box-shadow: 0 0 10px var(--paid, #34d399); }
  .foot-cols a { width: auto; padding: 7px 0; font-size: 14.5px; line-height: 1.3; }
  .foot-base { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; gap: 14px; padding: 22px 0 calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; }
  .foot-more { justify-content: center; gap: 8px; }
  .foot-more a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
  .foot-up {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
    font-size: 14px; font-weight: 650; color: var(--ink); border: 1px solid var(--line-2); background: rgba(148, 163, 184, 0.06);
  }
  .foot-up .ic { width: 15px; height: 15px; color: var(--sky); transform: rotate(-90deg); }
  .foot-base > p:first-child { order: 3; font-size: 12.5px; }
}

/* ── Platform and Specialties: a menu of groups beside one panel at a time ── */
/* The menu: a heading per group with its count, one group open at a time; a dropdown above the panel on narrow screens. */
.pf { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; scroll-margin-top: 92px; }
.spx-pick { display: none; }
.spx-menu { display: grid; gap: 6px; }
.spx-sec { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.spx-sec:last-child { border-bottom: 0; }
.spx-sec-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 10px 0 12px; border: 0; border-radius: 10px;
  background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
  transition: color 150ms, background-color 150ms;
}
.spx-sec-btn:hover { color: var(--ink); background: rgba(148, 163, 184, 0.06); }
.spx-count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11.5px; letter-spacing: 0; color: var(--ink-3); background: var(--inset); border: 1px solid var(--line); }
.spx-sec-btn .ic { width: 15px; height: 15px; transition: transform 220ms var(--ease); }
.spx-sec.is-open .spx-sec-btn { color: var(--ink); }
.spx-sec.is-open .spx-sec-btn .ic { transform: rotate(180deg); }
/* a section folds by its row height, so it opens and closes smoothly at any length */
.spx-sec-list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); }
.spx-sec.is-open .spx-sec-list { grid-template-rows: 1fr; }
.spx-sec-list > div { overflow: hidden; display: grid; gap: 2px; }
.spx-sec.is-open .spx-sec-list > div { padding: 2px 0 4px; }
.spx-item {
  display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  text-align: left; font: inherit; font-size: 15px; font-weight: 550; color: var(--ink-2); transition: color 150ms, background-color 150ms;
}
.spx-item:hover { color: var(--ink); background: rgba(148, 163, 184, 0.06); }
.spx-item[aria-pressed="true"] { color: var(--ink); font-weight: 650; background: rgba(148, 163, 184, 0.11); }
html[data-theme="light"] .spx-item[aria-pressed="true"] { background: rgba(15, 23, 42, 0.06); }
.spx-item:focus-visible, .spx-sec-btn:focus-visible, .spx-pick:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
html:not(.js) .spx-menu { display: none; }
.spx-sec-btn { height: 36px; }
.spx-sec { padding-bottom: 4px; }
.spx-item { min-height: 33px; font-size: 14.5px; }

/* ── The panel, top to bottom: the headline with Previous / Next, the features in one grid row, then the screenshot,
      which takes whatever height is left and runs off the panel's bottom edge. site.js sets --s (0 small,
      1 large) and the panel's height so the whole panel fits between the title and the window's bottom edge. ── */
.pf {
  --s: 1;
  --pad: calc(24px + 10px * var(--s)); --h2: calc(28px + 6px * var(--s)); --lede: calc(15.5px + 1px * var(--s));
  --gap: calc(14px + 8px * var(--s)); --li: calc(9px + 5px * var(--s)); --ft: calc(15px + 1.5px * var(--s)); --fd: calc(14px + 1px * var(--s));
}
.pf-panels { display: grid; }
.pf-panel {
  grid-area: 1 / 1; display: flex; flex-direction: column; height: var(--pf-h, auto); overflow: hidden;
  padding: var(--pad) calc(var(--pad) + 4px) 0; border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
}
html[data-theme="light"] .pf-panel { background: #fff; }
html.js .pf-panel:not(.is-on) { visibility: hidden; pointer-events: none; }
html.motion .pf-panel.is-on { animation: pf-in 240ms ease both; }
@keyframes pf-in { from { opacity: 0; } to { opacity: 1; } }
html:not(.js) .pf { grid-template-columns: 1fr; }
html:not(.js) .pf-panels { gap: 16px; }
html:not(.js) .pf-panel { grid-area: auto; }
html:not(.js) .pf-steps { display: none; }

.pf-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 24px; }
.pf-head h2 { max-width: none; font-family: var(--display); font-stretch: 108%; font-size: var(--h2); font-weight: 760; letter-spacing: -0.015em; line-height: 1.1; }
.pf-steps { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 8px; }
.pf-num { margin-right: 6px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pf-num span { font-weight: 500; color: var(--ink-3); }
.pf-arrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line-2); background: none; color: var(--ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 650;
  transition: border-color 150ms, background-color 150ms;
}
.pf-arrow:hover:not(:disabled) { border-color: var(--ink-3); background: rgba(148, 163, 184, 0.06); }
.pf-arrow:disabled { opacity: 0.35; cursor: default; }
.pf-arrow.is-text { width: auto; padding: 0 10px 0 14px; }
.pf-arrow .ic { width: 16px; height: 16px; }
.pf-arrow:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.pf-lede { grid-column: 1 / -1; margin-top: 8px; max-width: 64ch; font-size: var(--lede); line-height: 1.5; color: var(--ink-2); }

.pf-feats { list-style: none; flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: var(--gap); }
.pf-feats.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.pf-feats li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 8px; padding: var(--li) 0 calc(var(--li) + 1px); border-top: 1px solid var(--line); }
.pf-feats .n { padding-top: 2px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.pf-feats b { display: block; font-size: var(--ft); font-weight: 650; color: var(--ink); }
.pf-feats .what { display: block; margin-top: 3px; font-size: var(--fd); line-height: 1.5; color: var(--ink-2); }

.pf-shot { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: var(--gap) 0 0; border-bottom: 0; border-radius: 14px 14px 0 0; max-height: none; -webkit-mask-image: none; mask-image: none; }
.pf-shot .shot-bar { flex: none; height: 32px; margin: 0; max-width: none; line-height: 1.2; }
.pf-shot .shot-bar span { min-width: 0; margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--ink-3); }
.pf-shot .shot-bar b { font-weight: 650; color: var(--ink-2); }
@media (min-width: 1061px) {
  .pf-shot .shot-pan { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
  .pf-shot .shot-pan img { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
}
/* a window too short for the screenshot: the panel ends after the features */
.pf.pf-noshot .pf-shot { display: none; }
.pf.pf-noshot .pf-panel { padding-bottom: calc(var(--pad) - 4px); }
.pf-panel:not(:has(> .pf-shot)) { padding-bottom: calc(var(--pad) - 4px); }
/* on narrow screens the page scrolls anyway, so each panel takes its own height */
@media (max-width: 1060px) { html.js .pf-panel:not(.is-on) { display: none; } }

@media (max-width: 1060px) {
  .pf { grid-template-columns: 1fr; gap: 14px; }
  .spx-nav { position: relative; z-index: 5; }
  .spx-pick {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border-radius: 14px;
    border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  }
  html[data-theme="light"] .spx-pick { background: #fff; }
  .spx-pick small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
  .spx-pick b { display: block; font-size: 16px; font-weight: 650; }
  .spx-pick .ic { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); transition: transform 220ms var(--ease); }
  .spx-nav.is-open .spx-pick .ic { transform: rotate(180deg); }
  .spx-menu {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(70vh, 560px); overflow-y: auto;
    padding: 8px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
  html[data-theme="light"] .spx-menu { background: #fff; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16); }
  .spx-nav.is-open .spx-menu { display: grid; }
  .pf { --s: 0.5; }
}
@media (max-width: 760px) {
  .pf { --pad: 20px; }
  .pf-panel { border-radius: 18px; }
  .pf-head { grid-template-columns: minmax(0, 1fr); }
  .pf-steps { grid-column: 1; grid-row: 1; margin-bottom: 12px; }
  .pf-num { margin-right: auto; }
  .pf-feats, .pf-feats.n3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pf-shot .shot-bar::after { content: none; }
  .pf-shot .shot-bar { height: auto; min-height: 32px; padding-block: 7px; align-items: flex-start; }
  .pf-shot .shot-bar i { flex: none; margin-top: 3px; }
  .pf-shot .shot-bar span { white-space: normal; line-height: 1.4; }
}
