:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --fg: #111111;
  --muted: #6b7280;
  --border: #d9dee7;
  --accent: #1677ff;
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --fg-soft: color-mix(in oklch, var(--fg) 6%, transparent);
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --fs-h1: clamp(44px, 6vw, 76px);
  --fs-h2: clamp(34px, 4vw, 48px);
  --fs-h3: 22px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-meta: 12px;
  --gap-xs: 8px; --gap-sm: 12px; --gap-md: 20px; --gap-lg: 32px; --gap-xl: 56px; --gap-2xl: 96px;
  --container: 1200px; --gutter: 32px; --radius: 8px; --radius-lg: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.55; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding-block: clamp(64px, 8vw, var(--gap-2xl)); }
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-lg); }

h1, .h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 400; line-height: 1.04; letter-spacing: -0.055em; margin: 0; }
h2, .h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 400; line-height: 1.1; letter-spacing: -0.04em; margin: 0; }
h3, .h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--muted); max-width: 60ch; margin: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- navigation ---------- */
.topnav { position: sticky; top: 0; z-index: 10; background: color-mix(in oklch, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topnav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 600; letter-spacing: -0.7px; min-height: 44px; }
.logo-mark { display: grid; place-items: center; width: 29px; height: 31px; border: 1.6px solid var(--fg); border-radius: 7px 7px 7px 0; font-family: var(--font-display); font-size: 25px; line-height: 1; font-style: italic; }
.topnav nav { display: flex; gap: 30px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.topnav nav a { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.topnav nav a:hover, .topnav nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.topnav .logo:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent; font-size: 13px; font-weight: 500; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); transform: translateY(-2px); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { background: var(--fg-soft); border-color: var(--muted); color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); padding-inline: 8px; }
.btn-ghost:hover { background: var(--fg-soft); color: var(--fg); }
.btn-arrow::after { content: '↗'; font-size: 16px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.card-rule { background: transparent; border: 0; border-top: 1px solid var(--border); padding: 24px 0 0; border-radius: 0; }
.pill, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 10px; }

/* ---------- hero ---------- */
.hero { padding-block: 80px 56px; }
.hero-center { text-align: center; max-width: 960px; margin-inline: auto; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.1; margin-bottom: 40px; }
.prompt-wrap { max-width: 800px; margin-inline: auto; text-align: left; }
.prompt-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--bg); box-shadow: 0 8px 32px var(--fg-soft); }
.prompt-box:focus-within { border-color: var(--fg); }
.prompt-box textarea { display: block; width: 100%; min-height: 88px; resize: vertical; border: 0; background: var(--bg); color: var(--fg); padding: 4px; font-size: 18px; line-height: 1.6; }
.prompt-box textarea::placeholder { color: var(--muted); opacity: 1; }
/* No ring of its own: the wrapper's border darkens to --fg on focus-within,
   which is the focus cue for this field. */
.prompt-box textarea:focus-visible { outline: none; }
.prompt-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.upload-btn { padding-inline: 8px; color: var(--muted); font-size: 13px; }
.upload-btn:hover { color: var(--fg); }
.prompt-tools .send-btn { width: auto; flex: 0 0 auto; padding-inline: 16px; font-size: 13px; font-weight: 500; background: var(--accent); color: #ffffff; border-color: var(--accent); min-height: 44px; border-radius: var(--radius); }
.prompt-tools .send-btn:hover { background: var(--accent); color: #ffffff; transform: translateY(-2px); border-color: var(--fg); }
.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.attachment-list button { display: flex; align-items: center; gap: 12px; min-height: 44px; max-width: 100%; padding: 8px 12px; font-size: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.attachment-list button span { overflow-wrap: anywhere; }
.attachment-list button:hover { background: var(--fg-soft); border-color: var(--fg); }
.prompt-wrap .conversation-followup { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.prompt-wrap .agent-message { font-size: 17px; }
.prompt-wrap .user-message { font-size: 16px; overflow-wrap: anywhere; }
.conversation-followup { margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.user-message { margin-left: auto; max-width: 78%; width: fit-content; background: var(--surface); border: 1px solid var(--border); padding: 20px 24px; border-radius: var(--radius); font-size: 18px; line-height: 1.65; }
.agent-message { display: block; margin-top: 28px; font-size: 20px; line-height: 1.65; }
.agent-message p { margin: 0 0 16px; }
.agent-message p:last-child { margin-bottom: 0; }
.agent-name { font-weight: 600; font-size: 14px; margin: 0 0 12px; }
.database-note { max-width: 640px; margin: 32px auto 0; color: var(--muted); font-size: 16px; line-height: 1.7; text-align: center; }
.database-note strong { font-weight: 500; color: var(--fg); }
.channel-strip { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.channel-strip span:not(:first-child) { color: var(--fg); font-size: 12px; font-weight: 500; }
.channel-strip .teams-channel { display: inline-flex; align-items: center; gap: 8px; }
.channel-strip .pill { color: var(--fg); background: var(--surface); border-radius: var(--radius); font-size: 10px; font-weight: 400; }

/* ---------- sections ---------- */
.section-heading { max-width: 590px; margin-bottom: 48px; }
.section-heading .lead { font-size: 17px; margin-top: 20px; }
.examples-section { padding-block: 64px 80px; }
.examples-section .section-heading { max-width: none; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.examples-section h2 { font-size: clamp(28px, 3vw, 36px); }
.example-card { display: flex; flex-direction: column; min-width: 0; }
.example-card h3 { font-size: 19px; margin-bottom: 24px; }
.example-card .example-user { margin: 0 0 24px; padding: 16px; border-radius: var(--radius); background: var(--surface); color: var(--fg); font-size: 15px; line-height: 1.6; }
.example-card .agent-name { margin-bottom: 8px; font-size: 13px; }
.example-card .example-answer { color: var(--fg); font-size: 16px; line-height: 1.7; margin: 0; }
.example-card .text-link { align-self: flex-start; margin-top: auto; padding-top: 24px; }
.text-link { border: 0; background: transparent; color: var(--fg); text-align: left; font-size: 13px; min-height: 44px; padding-inline: 0; display: inline-flex; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.closing { text-align: center; padding-block: 88px; }
.closing h2 { font-size: clamp(32px, 4vw, 48px); }
.closing .lead { margin: 20px auto 28px; font-size: 17px; }
.coworker-section { padding-block: 72px; }
.coworker-section .lead { max-width: 50ch; margin: 20px auto 24px; font-size: 17px; }
.conversation-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.coworker-section .conversation-prompts { justify-content: center; margin-top: 0; }
.conversation-prompts button { min-height: 44px; padding: 8px 12px; background: var(--bg); color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; text-align: left; }
.conversation-prompts button:hover { background: var(--surface); border-color: var(--fg); }

/* ---------- footer ---------- */
.pagefoot { border-top: 1px solid var(--border); padding-block: 56px 40px; color: var(--muted); font-size: 13px; }
.pagefoot a { display: inline-flex; align-items: center; min-height: 36px; }
.pagefoot a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gap-lg); align-items: start; }
.foot-brand .logo { font-size: 16px; color: var(--fg); margin-bottom: 10px; }
.foot-brand p { margin: 0; max-width: 34ch; line-height: 1.7; }
.foot-col h2 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 8px 0 8px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; }

/* ---------- content pages ---------- */
.page-head { padding-block: 72px 40px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; margin-bottom: 20px; }
.page-head .lead { font-size: 18px; max-width: 62ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.prose { max-width: 74ch; padding-block: 48px 80px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 18px; margin: 32px 0 10px; }
.prose p { margin: 0 0 18px; color: var(--fg); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.prose a:hover { text-decoration-color: var(--fg); }
.prose strong { font-weight: 600; }
.prose .callout { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; font-size: 15px; color: var(--muted); }
.prose .callout p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 20px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--muted); }
.back-link:hover { color: var(--fg); }

/* article */
.article-head { padding-block: 64px 32px; }
.article-head h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -0.035em; margin: 16px 0 0; }
.article-head .lead { margin-top: 20px; }
.article-body { max-width: 68ch; padding-block: 40px 24px; font-size: 17px; line-height: 1.75; }
.article-body h2 { font-size: 23px; line-height: 1.35; margin: 44px 0 14px; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 20px; }
.article-body li { margin-bottom: 10px; }
.article-footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-block: 24px; margin-top: 8px; }

/* blog index */
.post-list { display: flex; flex-direction: column; padding-bottom: 72px; }
.post-row { display: grid; grid-template-columns: 150px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--border); align-items: baseline; }
.post-row:last-child { border-bottom: 1px solid var(--border); }
.post-row h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 10px; }
.post-row h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-row p { margin: 0; color: var(--muted); max-width: 66ch; }
.post-row .meta { margin-top: 12px; display: block; }

/* ---------- demo modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.45); }
.modal-panel { position: relative; width: min(440px, 100%); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 24px 64px rgba(17, 17, 17, 0.18); }
.modal-panel h2 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.02em; }
.modal-panel .modal-lead { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 24px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.modal-close:hover { background: var(--fg-soft); color: var(--fg); }
.modal-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.modal-field label { font-size: 13px; color: var(--muted); }
.modal-field input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--fg); font: inherit; min-height: 44px; }
.modal-field input:focus-visible { outline-offset: 2px; border-color: var(--fg); }
.modal-panel .btn-primary { width: 100%; }
body.modal-open { overflow: hidden; }

/* 404 */
.notfound { text-align: center; padding-block: 120px; }
.notfound h1 { font-size: clamp(56px, 9vw, 120px); line-height: 1; margin-bottom: 24px; }
.notfound .lead { margin: 0 auto 32px; }

@media (max-width: 920px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-split { gap: 40px; }
  .examples-section .grid-3 { gap: 40px; }
  .example-card .text-link { margin-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
  .post-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 620px) {
  :root { --gutter: 22px; }
  .topnav-inner { min-height: 70px; gap: 12px; }
  .topnav nav { gap: 14px; }
  .topnav nav a { font-size: 12px; }
  .nav-actions { gap: 8px; }
  .logo { font-size: 17px; }
  .topnav .btn { padding-inline: 10px; font-size: 11px; }
  .hero { padding-block: 48px; }
  .hero h1 { font-size: clamp(36px, 9vw, 48px); margin-bottom: 32px; }
  .prompt-box { padding: 16px; }
  .prompt-box textarea { font-size: 16px; min-height: 112px; }
  .user-message { max-width: 100%; font-size: 16px; padding: 16px; }
  .agent-message { font-size: 18px; margin-top: 24px; }
  .database-note { font-size: 15px; }
  .examples-section .section-heading { display: block; margin-bottom: 32px; }
  .examples-section .section-heading .meta { display: block; margin-top: 12px; }
  .examples-section, .coworker-section { padding-block: 48px; }
  .prompt-wrap .conversation-followup { padding: 20px; }
  .channel-strip { gap: 13px 22px; margin-top: 25px; }
  .channel-strip > span:first-child { flex-basis: 100%; text-align: center; }
  .closing { padding-block: 64px; }
  .page-head { padding-block: 48px 32px; }
  .prose { padding-block: 32px 64px; }
  .article-head { padding-block: 40px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .notfound { padding-block: 72px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Who-it's-for menu in the top bar: a <details> disclosure, so it works with
   no script and keeps keyboard access. The seven role pages do not fit inline
   at 920px, and this bar hides its nav below 620px, so the footer carries the
   same links as a column. */
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 13px; color: var(--muted); }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: '▾'; font-size: 9px; line-height: 1; }
.nav-menu > summary:hover, .nav-menu[open] > summary, .nav-menu > summary:focus-visible { color: var(--fg); }
.nav-menu-list { position: absolute; top: calc(100% - 6px); right: 0; z-index: 30; margin: 0; padding: 8px; list-style: none; min-width: 292px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 14px 40px var(--fg-soft); }
.nav-menu-list a { display: block; padding: 9px 12px; border-radius: 5px; font-size: 13px; color: var(--fg); }
.nav-menu-list a span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.nav-menu-list a:hover, .nav-menu-list a[aria-current="page"] { background: var(--surface); }
.persona-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-lg); margin: 28px 0 36px; }
.dialogue { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 24px; margin: 24px 0 32px; }
.dialogue-turn { margin: 0; font-size: 15px; line-height: 1.7; color: var(--fg); }
.dialogue-turn + .dialogue-turn { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.dialogue-turn b { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 6px; }
.persona-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.persona-switch a { font-size: 12px; padding: 9px 12px; min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); }
.persona-switch a:hover { color: var(--fg); border-color: var(--fg); }
.persona-switch a[aria-current="page"] { color: var(--fg); border-color: var(--fg); }
@media (max-width: 920px) { .persona-cards { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 620px) {
  .nav-menu > summary { font-size: 12px; }
  .nav-menu-list { right: -52px; min-width: 264px; }
  .foot-grid { grid-template-columns: 1fr; }
}
