/* 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: linear-gradient(100deg, #0277b6 0%, #4f46e5 50%, #6d28d9 100%);
  --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', -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: linear-gradient(100deg, #0279bb 0%, #5b5bf0 50%, #7c3aed 100%);
  --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 ── */
.page-hero { position: relative; isolation: isolate; padding: clamp(56px, 10vh, 108px) 0 clamp(44px, 7vh, 80px); }
.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: 17ch; }
.page-hero .lede { margin-top: 24px; max-width: 62ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); }
.page-hero .cta-row { margin-top: 32px; }
.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 ── */
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: clamp(80px, 12vh, 136px); }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; }
.toc p { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.toc a { display: flex; align-items: center; gap: 11px; padding: 6px 0; font-size: 14px; color: var(--ink-3); transition: color 150ms; }
.toc a::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--line-2)); opacity: 0.55; transition: opacity 150ms, box-shadow 150ms; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.toc a[aria-current="true"]::before { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--s1)) 18%, transparent); }
.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; }
  .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; }
}
