/* SQL Flow — public site and customer account. Brand kit v1.0: Flow Blue #2F6BFF, Flow Sky #8FB2FF, Ink #0A0A0B; Plus Jakarta Sans for headings, Inter for text.
   A quiet system after x.ai with Flow Blue as the one colour: tight tracking, a near-black or white canvas, hairline borders,
   pill buttons (the primary one is the inverse of the page), large light-weight headlines, framed code windows.
   Light and dark themes share every rule; only the tokens below change. The page follows the system theme until the
   visitor picks one with the header switch (assets/theme.js sets data-theme before the first paint). */

:root {
  --bg: #ffffff; --bg-2: #f7f7f8; --surface: #ffffff; --surface-2: #f4f4f5; --surface-3: #ececee;
  --line: rgba(10, 10, 12, .08); --line-2: rgba(10, 10, 12, .14); --line-3: rgba(10, 10, 12, .28);
  --text: #0a0a0b; --text-2: #4e4e56; --text-3: #75757e; --text-4: #a0a0a8;
  --inv-bg: #0a0a0b; --inv-text: #ffffff; --inv-hover: #2a2a2e;
  --chip-bg: rgba(10, 10, 12, .05);
  --code-bg: #0c0c0d; --code-line: rgba(255, 255, 255, .08); --code-text: #e7e7ea; --code-dim: #8a8a93;
  --glow-1: rgba(47, 107, 255, .14); --glow-2: rgba(143, 178, 255, .16);
  --ok: #15803d; --ok-soft: rgba(21, 128, 61, .10); --warn: #a16207; --warn-soft: rgba(161, 98, 7, .10); --bad: #c62828; --bad-soft: rgba(198, 40, 40, .09);
  --accent: #0a0a0b; --accent-soft: rgba(10, 10, 12, .06);
  --header-bg: rgba(255, 255, 255, .78);
  --brand: #2F6BFF; --brand-hover: #1D4ED8; --brand-sky: #8FB2FF; --brand-text: #ffffff;
  --font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", Menlo, monospace;
  --r-card: 20px; --r-sm: 12px; --r-tag: 999px; --max: 1200px; --gutter: 24px;
  --focus: 0 0 0 3px rgba(47, 107, 255, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b; --bg-2: #0e0e10; --surface: #111113; --surface-2: #18181b; --surface-3: #222226;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .13); --line-3: rgba(255, 255, 255, .28);
    --text: #f7f7f8; --text-2: #b3b3bb; --text-4: #6b6b74; --text-3: #8d8d96;
    --inv-bg: #ffffff; --inv-text: #0a0a0b; --inv-hover: #dcdce0;
    --chip-bg: rgba(255, 255, 255, .06);
    --code-bg: #0d0d0f; --code-line: rgba(255, 255, 255, .08);
    --glow-1: rgba(47, 107, 255, .24); --glow-2: rgba(143, 178, 255, .10);
    --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12); --bad: #f87171; --bad-soft: rgba(248, 113, 113, .12);
    --accent: #ffffff; --accent-soft: rgba(255, 255, 255, .08);
    --header-bg: rgba(10, 10, 11, .72);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --bg-2: #0e0e10; --surface: #111113; --surface-2: #18181b; --surface-3: #222226;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .13); --line-3: rgba(255, 255, 255, .28);
  --text: #f7f7f8; --text-2: #b3b3bb; --text-4: #6b6b74; --text-3: #8d8d96;
  --inv-bg: #ffffff; --inv-text: #0a0a0b; --inv-hover: #dcdce0;
  --chip-bg: rgba(255, 255, 255, .06);
  --code-bg: #0d0d0f; --code-line: rgba(255, 255, 255, .08);
  --glow-1: rgba(47, 107, 255, .24); --glow-2: rgba(143, 178, 255, .10);
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12); --bad: #f87171; --bad-soft: rgba(248, 113, 113, .12);
  --accent: #ffffff; --accent-soft: rgba(255, 255, 255, .08);
  --header-bg: rgba(10, 10, 11, .72);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; letter-spacing: -0.011em; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line-3); transition: text-decoration-color .15s, color .15s; }
a:hover { text-decoration-color: var(--text); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--text); font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, kbd, pre { font-family: var(--mono); font-size: .875em; letter-spacing: 0; }
code { background: var(--chip-bg); border: 1px solid var(--line); padding: .12em .4em; border-radius: 6px; }
pre { background: var(--code-bg); color: var(--code-text); padding: 20px 22px; border-radius: var(--r-sm); border: 1px solid var(--code-line); overflow: auto; line-height: 1.65; margin: 0 0 1.25em; font-size: .85rem; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
::selection { background: var(--text); color: var(--bg); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--inv-bg); color: var(--inv-text); padding: 8px 14px; border-radius: var(--r-tag); z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 .8125rem/1 var(--mono); letter-spacing: 0; text-transform: none; color: var(--text-3); margin-bottom: 20px; text-decoration: none; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
a.eyebrow:hover { color: var(--text); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 640px; letter-spacing: -0.012em; }

/* Header: transparent over the page, frosted once it scrolls (site.js adds .scrolled). */
.announce { display: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.site-header.scrolled { background: var(--header-bg); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; color: var(--text); letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.brand .logo { display: block; width: auto; height: 30px; border-radius: 0; }
.brand .logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-on-light { display: none; } :root:not([data-theme="light"]) .brand .logo-on-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-on-light { display: none; }
:root[data-theme="dark"] .brand .logo-on-dark { display: block; }
.site-nav { display: flex; align-items: center; gap: 16px; flex: 1; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-tag); background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-nav li a { display: block; padding: 7px 14px; border-radius: var(--r-tag); color: var(--text-2); font-weight: 500; font-size: .875rem; text-decoration: none; transition: color .15s, background .15s; }
.site-nav li a:hover { color: var(--text); background: var(--chip-bg); }
.site-nav li a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav .actions { display: flex; gap: 8px; align-items: center; }
.site-nav .actions .link { font-size: .875rem; font-weight: 500; text-decoration: none; color: var(--text-2); padding: 8px 12px; }
.site-nav .actions .link:hover { color: var(--text); }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; flex: none; transition: color .15s, border-color .15s, background .15s; }
.theme-toggle:hover { color: var(--text); border-color: var(--line-2); background: var(--chip-bg); }
.theme-toggle .ic { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; } :root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } }
.menu-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 50%; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.menu-toggle span { width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; display: block; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 960px) {
  .site-header .bar { gap: 10px; min-height: 64px; }
  .menu-toggle { display: flex; }
  .site-header .theme-toggle { margin-left: auto; }
  .site-header .menu-toggle { margin-left: 0; }
  .site-nav { display: none; position: fixed; left: 0; right: 0; top: 64px; bottom: 0; background: var(--bg); padding: 16px var(--gutter) 32px; flex-direction: column; align-items: stretch; gap: 20px; overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; margin: 0; border: 0; padding: 0; background: none; border-radius: 0; gap: 0; }
  .site-nav li a { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); background: none; }
  .site-nav li a[aria-current="page"] { background: none; color: var(--text); }
  .site-nav .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .site-nav .actions .btn, .site-nav .actions .link { text-align: center; justify-content: center; }
  .site-nav .actions .link { border: 1px solid var(--line-2); border-radius: var(--r-tag); padding: 12px; color: var(--text); }
  body.menu-open { overflow: hidden; }
  /* A backdrop filter would make the header the containing block of the fixed menu panel, so it goes while open. */
  body.menu-open .site-header { background: var(--bg); border-bottom-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Buttons: pills. Primary is the inverse of the page, ghost a hairline, soft a filled grey. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-tag); font-family: inherit; font-weight: 500; font-size: .875rem; letter-spacing: -0.01em; line-height: 1;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn .ic { width: 16px; height: 16px; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-text); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--line-3); background: var(--chip-bg); }
.btn.soft { background: var(--surface-2); color: var(--text); }
.btn.soft:hover { background: var(--surface-3); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--line-2); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn.large { height: 48px; padding: 0 24px; font-size: .9375rem; }
.btn.small { height: 32px; padding: 0 12px; font-size: .8125rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--text); }
.arrow-link .ic { width: 16px; height: 16px; transition: transform .15s; }
.arrow-link:hover .ic { transform: translateX(3px); }

/* Hero: centred, a soft glow behind, a pill badge, two pill actions, a framed code window below. */
.hero { position: relative; padding: 72px 0 40px; text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -72px 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, var(--glow-1), transparent 70%), radial-gradient(40% 40% at 75% 20%, var(--glow-2), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: -72px 0 auto; height: 720px; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(60% 60% at 50% 20%, #000 20%, transparent 75%); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 960px; margin: 0 auto 24px; }
.hero h1 .accent { color: var(--text-3); }
.hero .lead { margin: 0 auto; max-width: 680px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 36px 0 16px; }
.hero .fine { font-size: .875rem; color: var(--text-3); margin: 0; }
.hero .fine b { color: var(--text); font-weight: 500; }
.hero .showcase { width: 100%; max-width: 1040px; margin: 64px auto 0; text-align: left; }
.badge-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line-2); border-radius: var(--r-tag); background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .875rem; color: var(--text-2); text-decoration: none; margin-bottom: 28px; transition: border-color .15s; }
.badge-pill:hover { border-color: var(--line-3); color: var(--text); }
.badge-pill b { font-weight: 500; font-size: .75rem; background: var(--brand); color: var(--brand-text); padding: 4px 10px; border-radius: var(--r-tag); }
.badge-pill .ic { width: 14px; height: 14px; }
@media (max-width: 640px) { .hero { padding: 40px 0 24px; } .hero .showcase { margin-top: 40px; } .hero .cta .btn { flex: 1 1 100%; } }

/* Code window: always dark, like a terminal, in both themes. */
.code-window { background: var(--code-bg); color: var(--code-text); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--code-line);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .02), 0 30px 80px -20px rgba(0, 0, 0, .35); }
.code-window .top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--code-line); }
.code-window .dots { display: flex; gap: 7px; flex: none; }
.code-window .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a40; display: block; }
.code-window .dots i:nth-child(1) { background: #ff5f57; } .code-window .dots i:nth-child(2) { background: #febc2e; } .code-window .dots i:nth-child(3) { background: #28c840; }
.code-window .tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.code-window .tabs::-webkit-scrollbar { display: none; }
.code-window .tabs button { background: none; border: 1px solid transparent; color: var(--code-dim); font: 500 .8125rem var(--font); letter-spacing: -0.01em; padding: 5px 12px; border-radius: var(--r-tag); cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.code-window .tabs button:hover { color: var(--code-text); }
.code-window .tabs button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .08); }
.code-window .path { margin-left: auto; font: .75rem var(--mono); color: var(--code-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-window pre { margin: 0; border-radius: 0; border: 0; background: transparent; padding: 24px; min-height: 280px; font-size: .8125rem; line-height: 1.75; }
.code-window [hidden] { display: none; }
@media (max-width: 640px) { .code-window .path { display: none; } .code-window pre { padding: 18px; font-size: .75rem; min-height: 220px; } }
.tok-k { color: #c4b5fd; } .tok-s { color: #86efac; } .tok-n { color: #fcd34d; } .tok-c { color: #6b6b74; font-style: italic; } .tok-p { color: #f9a8d4; }

/* Metrics row under the hero. */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; }
.metrics > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.metrics > div:first-child { border-left: 0; }
.metrics .n { display: block; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.metrics .k { display: block; color: var(--text-3); font-size: .875rem; margin-top: 6px; }
@media (max-width: 800px) { .metrics { grid-template-columns: 1fr 1fr; } .metrics > div:nth-child(3) { border-left: 0; } .metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Sections and cards. */
.section { padding: 112px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section + .section:not(.alt) { padding-top: 0; }
.section.alt + .section { padding-top: 112px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-bottom: 0; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head.split > div { max-width: 640px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; transition: border-color .2s, background .2s; }
.card:hover { border-color: var(--line-2); }
.card h3 { margin-top: 0; }
.card p { color: var(--text-2); }
.card p:last-child { margin-bottom: 0; }
.card .icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); margin-bottom: 24px; }
.card .icon .ic { width: 20px; height: 20px; }
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bento > .card { grid-column: span 2; display: flex; flex-direction: column; min-height: 260px; }
.bento > .card.wide { grid-column: span 4; }
.bento > .card h3 { font-size: 1.25rem; margin-top: auto; }
.bento > .card .icon { margin-bottom: 40px; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .bento > .card, .bento > .card.wide { grid-column: span 1; } }
@media (max-width: 680px) { .bento { grid-template-columns: 1fr; } .bento > .card { min-height: 0; } .bento > .card .icon { margin-bottom: 24px; } }
.with-icon { display: flex; gap: 10px; align-items: flex-start; }
.with-icon .ic { width: 18px; height: 18px; color: var(--text-3); margin-top: .2em; }
.stack { display: grid; gap: 16px; align-content: start; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { padding-left: 24px; position: relative; color: var(--text-2); }
.feature-list li b { color: var(--text); font-weight: 500; }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 1.5px; background: var(--text-3); }

/* "Built for" strip. */
.trust { padding: 0 0 8px; }
.trust .wrap { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-card); padding: 0; overflow: hidden; max-width: calc(var(--max) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.trust h2 { font-size: 1rem; font-weight: 500; margin: 0; color: var(--text); padding: 24px 28px; letter-spacing: -0.015em; line-height: 1.4; display: flex; align-items: center; }
.trust .tile { font-size: .9375rem; font-weight: 500; color: var(--text); padding: 24px; border-left: 1px solid var(--line); letter-spacing: -0.015em; }
.trust .tile .ic { display: block; width: 20px; height: 20px; margin-bottom: 12px; color: var(--text-3); }
.trust .tile small { display: block; font-weight: 400; color: var(--text-3); font-size: .8125rem; }
@media (max-width: 900px) {
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust h2 { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .trust .tile:nth-of-type(odd) { border-left: 0; } .trust .tile:nth-of-type(n+3) { border-top: 1px solid var(--line); }
}

/* Steps. */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: step; padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 28px; right: 28px; font: 500 .8125rem var(--mono); color: var(--text-4); }
.steps li .icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); margin-bottom: 28px; }
.steps li .icon .ic { width: 20px; height: 20px; }
.steps h3 { font-size: 1.0625rem; }
.steps p { color: var(--text-2); margin: 0; font-size: .9375rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } }
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat .n { display: block; font-size: 2.25rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.2; }
.stat .k { color: var(--text-3); font-size: .875rem; }

/* Comparison table. */
.compare { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); background: var(--surface-2); }
.compare td:first-child { color: var(--text-2); }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.yes::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.no { color: var(--text-4); }

/* Closing call to action: an inverse panel. */
.cta-band { position: relative; overflow: hidden; background: var(--inv-bg); color: var(--inv-text); border-radius: 28px; padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, var(--glow-1), transparent 70%); }
.cta-band h2 { color: var(--inv-text); margin: 0 0 10px; }
.cta-band p { margin: 0; color: var(--inv-text); opacity: .65; max-width: 560px; }
.cta-band .btn.primary { background: var(--inv-text); color: var(--inv-bg); }
.cta-band .btn.primary:hover { opacity: .88; }
.cta-band .btn.ghost { color: var(--inv-text); border-color: color-mix(in srgb, var(--inv-text) 25%, transparent); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ. */
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 500; font-size: 1.0625rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; letter-spacing: -0.015em; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--text-2), var(--text-2)) center / 10px 1.5px no-repeat, linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 10px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 14px 0 0; color: var(--text-2); max-width: 680px; }

/* Pricing. */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan[hidden] { display: none; }
.plan h3 { font-size: 1.25rem; }
.plan.featured { border-color: var(--line-3); background: linear-gradient(180deg, var(--accent-soft), transparent 40%), var(--surface); }
.plan .ribbon { position: absolute; top: 28px; right: 28px; background: var(--brand); color: var(--brand-text); font-size: .75rem; font-weight: 500; padding: 4px 10px; border-radius: var(--r-tag); }
.plan .installs { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); font-size: .9375rem; margin: 4px 0 16px; }
.plan .installs .ic { color: var(--text-3); width: 18px; height: 18px; }
.plan-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); font-size: .875rem; font-weight: 500; color: var(--text); cursor: pointer; margin-bottom: 4px; }
.plan-toggle input { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--line-3); position: relative; flex: none; cursor: pointer; margin: 0; transition: background .15s; }
.plan-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.plan-toggle input:checked { background: var(--brand); }
.plan-toggle input:checked::after { transform: translateX(16px); background: var(--inv-text); }
.plan-toggle input:focus-visible { outline: none; box-shadow: var(--focus); }
.plan-toggle small { margin-left: auto; color: var(--ok); font-weight: 500; font-size: .75rem; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 4px; flex-wrap: wrap; }
.plan .price [hidden] { display: none; }
.plan .price .amount { font-size: 2.75rem; font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.plan .price .interval { color: var(--text-3); font-size: .9375rem; }
.plan .price .was { color: var(--text-4); text-decoration: line-through; font-size: .9375rem; }
.plan .per { color: var(--text-3); font-size: .875rem; margin-bottom: 24px; }
.plan .promo { display: inline-block; background: var(--ok-soft); color: var(--ok); font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: var(--r-tag); }
.plan .feature-list { margin: 8px 0 28px; flex: 1; padding-top: 24px; border-top: 1px solid var(--line); }
.plan .feature-list li { padding-left: 28px; }
.plan .feature-list li::before { display: none; }
.plan .feature-list li .ic { position: absolute; left: 0; top: .22em; width: 18px; height: 18px; color: var(--text); padding: 3px; border-radius: 50%; background: var(--surface-2); }
.plan .btn, .plan .actions-row { margin-top: auto; }
.plan .btn { width: 100%; height: 44px; }
.renewal-note { color: var(--text-3); font-size: .875rem; }

/* Forms. */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 500; font-size: .875rem; margin-bottom: 8px; letter-spacing: -0.005em; color: var(--text); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: .9375rem; letter-spacing: -0.01em; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 14px; height: 46px;
  transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; min-height: 130px; resize: vertical; line-height: 1.55; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
input::placeholder, textarea::placeholder { color: var(--text-4); }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text-3); box-shadow: var(--focus); }
.help { color: var(--text-3); font-size: .8125rem; margin: 8px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text-2); }
.check input { margin-top: 5px; accent-color: var(--text); width: 16px; height: 16px; flex: none; }
.form-card { max-width: 440px; margin: 64px auto 96px; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); position: relative; }
.form-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, var(--line-2), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.form-card h1 { font-size: 1.875rem; margin-bottom: 8px; letter-spacing: -0.035em; }
.form-card .sub { color: var(--text-2); margin-bottom: 28px; }
.form-card .btn { width: 100%; margin-top: 6px; height: 46px; }
.form-card .alt { text-align: center; margin: 24px 0 0; color: var(--text-3); font-size: .875rem; }
@media (max-width: 520px) { .form-card { margin: 24px auto 64px; padding: 28px 22px; border-radius: 20px; } }
.code-box { font: 500 1.375rem var(--mono); letter-spacing: .06em; background: var(--surface-2); border: 1px dashed var(--line-3); padding: 20px; border-radius: var(--r-sm); text-align: center; user-select: all; word-break: break-all; }
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 12px; font-weight: 500; font-size: .9375rem; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.bad { background: var(--bad-soft); color: var(--bad); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.notice { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; color: var(--text-2); }

/* Prose: docs, CMS pages, blog. */
.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); margin-bottom: 24px; }
.prose h2 { font-size: 1.625rem; margin-top: 2.2em; padding-top: .8em; border-top: 1px solid var(--line); letter-spacing: -0.03em; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--text); text-decoration-color: var(--line-3); }
.prose a:hover { text-decoration-color: var(--text); }
.prose img { border-radius: var(--r-sm); border: 1px solid var(--line); }
.prose blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 2px solid var(--text); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--r-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text-2); }
.prose th { background: var(--surface-2); font-weight: 500; color: var(--text); }
.prose tr:last-child td { border-bottom: 0; }
.prose li.task { list-style: none; margin-left: -1.4em; }
.prose pre { font-size: .8125rem; }
.page-head { position: relative; padding: 88px 0 48px; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: -72px 0 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 20% 0%, var(--glow-1), transparent 70%); }
.page-head h1 { margin-bottom: 16px; max-width: 900px; }
.page-head .lead { margin-bottom: 0; }
.page-head + .section { padding-top: 0; }
.page-head.center::before { background: radial-gradient(50% 70% at 50% 0%, var(--glow-1), transparent 70%); }
.page-head.center h1 { margin-left: auto; margin-right: auto; }
section.wrap.narrow.prose { padding-top: 72px; padding-bottom: 96px; }

/* Docs layout. */
.docs { display: grid; grid-template-columns: 232px minmax(0, 1fr) 200px; gap: 64px; padding: 48px var(--gutter) 96px; align-items: start; }
.docs .side, .docs .toc { position: sticky; top: 96px; font-size: .875rem; max-height: calc(100vh - 120px); overflow-y: auto; }
.docs .side h2, .docs .toc h2 { font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin: 0 0 10px; }
.docs .side ul, .docs .toc ul { list-style: none; padding: 0; margin: 0 0 28px; }
.docs .side li a, .docs .toc li a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; transition: color .15s, background .15s; }
.docs .side li a:hover, .docs .toc li a:hover { color: var(--text); background: var(--chip-bg); }
.docs .side li a[aria-current="page"] { color: var(--text); font-weight: 500; background: var(--surface-2); }
.docs .toc ul { border-left: 1px solid var(--line); }
.docs .toc li a { border-radius: 0; margin-left: -1px; border-left: 1px solid transparent; }
.docs .toc li a:hover { border-left-color: var(--text); background: none; }
.docs .toc li.l3 a { padding-left: 24px; font-size: .8125rem; }
@media (max-width: 1100px) { .docs { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; } .docs .toc { display: none; } }
@media (max-width: 820px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; } .docs .side { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; } }
.doc-cards .card h3 a { text-decoration: none; }
.doc-cards .card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.doc-cards .card:hover { border-color: var(--line-3); }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; font-weight: 500; }
.prev-next a { text-decoration: none; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.prev-next a:hover { border-color: var(--line-3); }

/* Account. */
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 48px var(--gutter) 96px; align-items: start; }
.account .side { position: sticky; top: 96px; }
.account .side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.account .side li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .9375rem; text-decoration: none; transition: color .15s, background .15s; }
.account .side li a .ic { width: 18px; height: 18px; color: var(--text-3); }
.account .side li a:hover { background: var(--chip-bg); color: var(--text); }
.account .side li a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.account .side li a[aria-current="page"] .ic { color: var(--text); }
.account .side .who { padding: 4px 12px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.account .side .who b { display: block; font-weight: 500; }
.account .side .who span { color: var(--text-3); font-size: .8125rem; word-break: break-all; }
.account h1 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -0.04em; }
.account .card { padding: 28px; }
.account .card + .card { margin-top: 16px; }
.account .card h2 { font-size: 1.125rem; letter-spacing: -0.02em; }
@media (max-width: 820px) {
  .account { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .account .side { position: static; }
  .account .side .who { display: none; }
  .account .side ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .account .side ul::-webkit-scrollbar { display: none; }
  .account .side li a { white-space: nowrap; border: 1px solid var(--line); border-radius: var(--r-tag); padding: 7px 14px; font-size: .875rem; }
  .account .card { padding: 22px; }
}
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.kv dt { color: var(--text-3); font-weight: 400; }
.kv dd { margin: 0; color: var(--text); }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.list th, table.list td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.list th { color: var(--text-3); font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
table.list tr:last-child td { border-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: var(--r-tag); background: var(--chip-bg); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; } .chip.accent { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--text-4); }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); } .status-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); } .status-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }
.subscription-card .plan-line { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.subscription-card .amount { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.04em; }

/* Downloads and blog. */
.download-cards .card { display: flex; flex-direction: column; }
.download-cards .card .btn { margin-top: auto; }
.download-cards .meta { color: var(--text-3); font-size: .875rem; margin: 6px 0 16px; }
.download-cards .sha { font-family: var(--mono); font-size: .6875rem; word-break: break-all; color: var(--text-3); }
.post-list article { padding: 32px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.03em; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { color: var(--text-2); }
.post-meta { color: var(--text-3); font-size: .875rem; font-family: var(--mono); }

/* Footer: a quiet multi-column index, like x.ai's. */
.site-footer { margin-top: 112px; border-top: 1px solid var(--line); color: var(--text-2); padding: 72px 0 40px; font-size: .875rem; }
.site-footer .grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer .brand { color: var(--text); }
.site-footer h2 { font-size: .875rem; font-weight: 500; color: var(--text); margin-bottom: 16px; letter-spacing: -0.01em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--text); }
.site-footer .about p { color: var(--text-3); margin-top: 18px; max-width: 360px; }
.site-footer .with-icon .ic { width: 16px; height: 16px; color: var(--text-4); }
.site-footer .legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-4); font-size: .8125rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer .legal p { margin: 0; max-width: 760px; }
.site-footer .wordmark { font-family: var(--font-display); font-size: min(9rem, 9.6vw); font-weight: 800; letter-spacing: -0.07em; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin: 56px 0 0; user-select: none; white-space: nowrap; overflow: hidden; }
@media (max-width: 900px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* Checkout. */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding: 48px var(--gutter) 96px; align-items: start; }
.summary { position: sticky; top: 96px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.summary .line.total { border-bottom: 0; font-weight: 500; font-size: 1.25rem; padding-top: 16px; color: var(--text); letter-spacing: -0.03em; }
.pay-options { display: grid; gap: 10px; }
.pay-options label { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.pay-options label:hover { border-color: var(--line-3); }
.pay-options label:has(input:checked) { border-color: var(--text); background: var(--surface-2); }
.pay-options input { margin-top: 4px; accent-color: var(--text); }
.pay-options small { display: block; color: var(--text-3); font-weight: 400; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } }
.copy-btn { font: 500 .75rem var(--font); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-tag); padding: 4px 10px; cursor: pointer; color: var(--text-2); margin-left: 8px; }
.copy-btn:hover { color: var(--text); border-color: var(--line-2); }

/* Entrance: content fades up as it scrolls in (site.js adds .in; nothing hides without script). */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } * { transition-duration: 0s !important; } }

@media (max-width: 640px) { :root { --gutter: 16px; } .section { padding: 72px 0; } .section.alt + .section { padding-top: 72px; } .section-head { margin-bottom: 36px; } .cta-band { padding: 40px 24px; border-radius: 22px; } .card { padding: 24px; } .site-footer { margin-top: 72px; padding-top: 48px; } }
@media print { .announce, .site-header, .site-footer, .btn, .flash, .menu-toggle, .theme-toggle { display: none !important; } body { color: #000; background: #fff; } }

/* Two-up with a wider left column (the contact form), and three steps (the account's first-run guide). */
.grid-2.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2.wide-left { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .steps.three { grid-template-columns: minmax(0, 1fr); } }

/* Phones zoom into a form field whose text is under 16px (iOS Safari, some Android browsers): keep fields at 16px there. */
@media (max-width: 900px), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px; }
}

/* The assistant's sample conversations (Site\AssistantPage, the home page): drawn with the theme's tokens, so they follow
   light and dark and fold to one column on a phone. Nothing in them is a control; the figure carries an aria-label. */
.chat-demo { margin: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; text-align: left; font-size: .875rem; line-height: 1.5;
  box-shadow: 0 32px 80px -40px rgba(10, 10, 12, .35); }
.cd-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cd-top .dots { display: flex; gap: 7px; flex: none; }
.cd-top .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.cd-top .dots i:nth-child(1) { background: #ff5f57; } .cd-top .dots i:nth-child(2) { background: #febc2e; } .cd-top .dots i:nth-child(3) { background: #28c840; }
.cd-title { font-weight: 500; color: var(--text); white-space: nowrap; }
.cd-company { margin-left: auto; font: .75rem var(--mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.cd-side { border-right: 1px solid var(--line); padding: 14px 10px; background: var(--bg-2); }
.cd-side-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 12px; color: var(--text); }
.cd-new { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 500; background: var(--brand); color: var(--brand-text); padding: 4px 10px; border-radius: var(--r-tag); }
.cd-new .ic { width: 12px; height: 12px; }
.cd-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cd-side li { padding: 8px 10px; border-radius: 10px; display: grid; gap: 1px; min-width: 0; }
.cd-side li span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-side li small { color: var(--text-3); font-size: .75rem; }
.cd-side li.here { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.cd-side-label { margin: 16px 10px 6px; font: 500 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.cd-main { display: flex; flex-direction: column; min-width: 0; }
.cd-thread { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.cd-msg { display: flex; gap: 10px; max-width: 88%; min-width: 0; }
.cd-msg p { margin: 0 0 .5em; } .cd-msg p:last-child { margin-bottom: 0; }
.cd-msg.me { align-self: flex-end; flex-direction: column; align-items: flex-end; gap: 6px; }
.cd-msg.me p { background: var(--brand); color: var(--brand-text); padding: 9px 14px; border-radius: 16px 16px 4px 16px; margin: 0; }
.cd-msg.ai { align-self: flex-start; }
.cd-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); border: 1px solid var(--line); }
.cd-avatar .ic { width: 16px; height: 16px; }
.cd-bubble { min-width: 0; background: var(--surface-2); border: 1px solid var(--line); padding: 12px 14px; border-radius: 4px 16px 16px 16px; color: var(--text); }
.cd-bubble table { width: 100%; border-collapse: collapse; margin: 4px 0 10px; font-size: .8125rem; }
.cd-bubble th, .cd-bubble td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.cd-bubble th { font: 500 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.cd-bubble .num { text-align: right; font-variant-numeric: tabular-nums; }
.cd-bubble tr:last-child td { border-bottom: 0; }
.cd-file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--text); font-size: .8125rem; }
.cd-file .ic { color: var(--bad); }
.cd-file small { color: var(--text-3); }
.cd-proposal { margin-top: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; }
.cd-proposal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cd-chip { font-size: .6875rem; font-weight: 500; padding: 3px 9px; border-radius: var(--r-tag); background: var(--warn-soft); color: var(--warn); }
.cd-proposal dl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 12px; margin: 0 0 12px; font-size: .8125rem; }
.cd-proposal dt { color: var(--text-3); }
.cd-proposal dd { margin: 0; color: var(--text); }
.cd-checks { list-style: none; margin: 0 0 14px; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .8125rem; }
.cd-checks li { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.cd-checks .ic { width: 14px; height: 14px; }
.cd-checks .ok .ic { color: var(--ok); }
.cd-checks .rule .ic { color: var(--brand); }
.cd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cd-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-tag); border: 1px solid var(--line-2); font-weight: 500; font-size: .8125rem; color: var(--text); }
.cd-btn.primary { background: var(--inv-bg); color: var(--inv-text); border-color: var(--inv-bg); }
.cd-composer { margin: 0 20px 20px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); }
.cd-input { flex: 1; min-width: 0; color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-attach { display: grid; color: var(--text-3); }
.cd-attach .ic { width: 18px; height: 18px; }
.cd-send { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-text); }
.cd-send .ic { width: 16px; height: 16px; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.cd-chips span { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: var(--r-tag); background: var(--surface-2); font-size: .875rem; color: var(--text); }
@media (max-width: 760px) {
  .cd-body { grid-template-columns: minmax(0, 1fr); }
  .cd-side, .cd-company { display: none; }
  .cd-thread { padding: 18px 12px; gap: 14px; }
  .cd-msg { max-width: 100%; }
  .cd-msg.me { max-width: 88%; }
  .cd-avatar { display: none; }
  .cd-composer { margin: 0 10px 10px; }
  .cd-proposal { padding: 12px; }
  .cd-proposal dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cd-proposal dd { margin-bottom: 6px; }
  .cd-bubble th, .cd-bubble td { padding: 6px 4px; }
}
@media (max-width: 420px) { .cd-bubble th:nth-child(3), .cd-bubble td:nth-child(3) { display: none; } }

.phone-wrap { display: flex; justify-content: center; }
.phone-demo { margin: 0; width: 100%; max-width: 360px; border: 1px solid var(--line-2); border-radius: 36px; padding: 10px; background: var(--surface); font-size: .875rem; line-height: 1.45;
  box-shadow: 0 32px 80px -40px rgba(10, 10, 12, .35); }
.pd-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pd-head b { display: block; font-size: .9375rem; color: var(--text); }
.pd-head small { color: var(--text-3); font-size: .75rem; }
.pd-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-text); }
.pd-avatar .ic { width: 18px; height: 18px; }
.pd-thread { padding: 14px 10px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); border-radius: 0 0 28px 28px; }
.pd-msg { max-width: 86%; padding: 8px 12px; color: var(--text); }
.pd-msg p { margin: 0 0 .5em; }
.pd-msg p:last-of-type { margin-bottom: 0; }
.pd-msg.me { align-self: flex-end; background: var(--ok-soft); border-radius: 14px 14px 4px 14px; }
.pd-msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
.pd-buttons { display: grid; margin: 10px -12px -8px; border-top: 1px solid var(--line); }
.pd-buttons span { display: block; text-align: center; padding: 9px; color: var(--brand); font-weight: 500; }
.pd-buttons span + span { border-top: 1px solid var(--line); }