/* Office Sentry website. The same colours as the portal (v2/officesentry/web/static/app.css), light and dark. */
:root {
  --bg: #ffffff; --bg-2: #f6f7f9; --surface: #ffffff; --sunken: #eef0f3;
  --text: #111827; --text-2: #374151; --muted: #5b6472; --decor: #9ca3af;
  --border: #e5e7eb; --border-strong: #d1d5db;
  --accent: #2563eb; --accent-hover: #1d4ed8; --accent-soft: #eff4ff; --accent-text: #ffffff;
  --ok: #15803d;
  --ink: #0f172a; --ink-2: #1e293b; --ink-text: #e2e8f0; --ink-muted: #a3b0c2;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06);
  --radius: 12px; --radius-sm: 8px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1017; --bg-2: #0f1620; --surface: #121923; --sunken: #0e141d;
    --text: #e5e7eb; --text-2: #cbd5e1; --muted: #94a3b8; --decor: #4b5a70;
    --border: #223042; --border-strong: #2f3f55;
    --accent: #60a5fa; --accent-hover: #93c5fd; --accent-soft: #14243b; --accent-text: #0b1017;
    --ok: #4ade80;
    --ink: #070b11; --ink-2: #121a26;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6), 0 0 0 1px var(--border);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .875em; background: var(--sunken); padding: .1em .35em; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
main:focus { outline: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9375rem; line-height: 1.3; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--decor); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.sm { padding: 6px 12px; font-size: .875rem; }
.btn.lg { padding: 12px 22px; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.more { font-weight: 600; }
.more::after { content: " →"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; padding: 4px; border-radius: 8px; background: var(--accent); fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text-2); font-weight: 500; font-size: .9375rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--text); text-decoration: none; }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }

/* Home: hero */
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.1875rem; color: var(--text-2); }
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 70%), var(--bg); padding: 72px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 2.875rem); letter-spacing: -.03em; margin-bottom: 20px; }
.hero .actions { margin: 28px 0 14px; }
.hero-note { color: var(--muted); font-size: .9375rem; margin: 0; }
.hero-shot { margin-right: -120px; }
.window { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.window-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--sunken); border-bottom: 1px solid var(--border); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }

/* Home: pillars */
.pillars { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); padding: 40px 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pillar svg { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.pillar h2 { font-size: 1.0625rem; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: .9375rem; margin: 0; }

/* Home: features */
section.features, section.examples, section.start, section.security { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -.025em; }
.section-head p:last-child { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-bottom: 96px; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.feature-copy > p { color: var(--text-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; color: var(--text-2); }
.tick { flex: none; width: 20px; height: 20px; margin-top: 3px; padding: 3px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.feature-media.pair { display: grid; grid-template-columns: minmax(0, 1fr) 26%; gap: 20px; align-items: end; }
.phone { border-radius: 18px; border: 6px solid var(--ink); box-shadow: var(--shadow-lg); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 20px; box-shadow: var(--shadow); }
.card img { border-radius: var(--radius-sm); border: 1px solid var(--border); aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; width: 100%; margin-bottom: 16px; }
.card h3 { font-size: 1.0625rem; padding: 0 4px; }
.card p { font-size: .9375rem; color: var(--muted); margin: 0; padding: 0 4px; }

/* Home: demo band */
.demo-band { background: var(--ink); color: var(--ink-text); padding: 56px 0; }
.demo-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.demo-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.demo-band p { color: var(--ink-muted); max-width: 640px; margin: 0; font-size: 1.0625rem; }
.demo-band .btn.primary { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.demo-band .btn.primary:hover { background: #60a5fa; border-color: #60a5fa; color: #0b1017; }

/* Home: examples */
.example-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.example-grid a { display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 14px; row-gap: 2px; height: 100%; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.example-grid a:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
.file-kind { grid-row: span 2; align-self: start; font-size: .6875rem; font-weight: 800; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 8px 6px; min-width: 44px; text-align: center; }
.example-grid strong { font-size: .9375rem; }
.example-grid span:last-child { font-size: .875rem; color: var(--muted); }

/* Home: security, steps, FAQ */
section.security { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.security-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; }
.security-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.security-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text-2); }
.security-list strong { color: var(--text); display: block; margin-bottom: 2px; }
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps li > span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.steps h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .9375rem; }
section.early-access { padding: 8px 0 56px; }
.early-box { text-align: center; padding: 36px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.early-access h2 { font-size: 1.75rem; margin-bottom: 12px; }
.early-access p { color: var(--text-2); margin: 0 auto 24px; max-width: 600px; }
.early-access .actions { margin: 0; }
section.faq { padding: 24px 0 96px; }
.faq h2 { font-size: 1.75rem; text-align: center; margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 1.0625rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.375rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); margin: 0 0 16px; }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 28px; font-size: .9375rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 340px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.site-footer nav a { color: var(--text-2); }
.fine-print { margin-top: 40px; color: var(--muted); font-size: .8125rem; }
.fine-print p { margin: 0; padding-top: 20px; border-top: 1px solid var(--border); }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 48px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.docs-layout.no-toc { grid-template-columns: 240px minmax(0, 1fr); }
.docs-nav, .toc { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; font-size: .9375rem; }
.docs-menu > summary { display: none; }
.docs-nav h2, .toc h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 6px; }
.docs-nav ul, .toc ul { list-style: none; padding: 0; margin: 0; }
.docs-nav li a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 6px; color: var(--text-2); }
.docs-nav li a:hover { background: var(--sunken); text-decoration: none; }
.docs-nav li a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.toc { font-size: .875rem; border-left: 1px solid var(--border); padding-left: 16px; }
.toc h2 { margin-top: 0; }
.toc li a { display: block; padding: 3px 0; color: var(--muted); }
.toc li a:hover { color: var(--text); text-decoration: none; }
.toc li.l3 a, .toc-inline li.l3 a { padding-left: 12px; font-size: .95em; }
.toc li a.active { color: var(--accent); font-weight: 600; }
.toc-inline { display: none; }
.search { position: relative; }
.search input { width: 100%; font: inherit; font-size: .9375rem; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-results { position: absolute; z-index: 30; left: 0; width: min(420px, calc(100vw - 48px)); margin: 6px 0 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 60vh; overflow-y: auto; }
.search-results a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); }
.search-results a:hover, .search-results a:focus, .search-results a.active { background: var(--accent-soft); text-decoration: none; outline: none; }
.search-results small { display: block; color: var(--muted); font-size: .8125rem; }
.search-results .snippet { display: block; color: var(--text-2); font-size: .8125rem; margin-top: 2px; }
.search-results mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 2px; }
.search-results .none { padding: 8px 10px; color: var(--muted); font-size: .875rem; }
.crumbs { font-size: .875rem; margin-bottom: 8px; }
.doc h1 { font-size: clamp(1.75rem, 3vw, 2.375rem); letter-spacing: -.025em; }
.doc-foot { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .9375rem; }
.doc-group { margin-top: 36px; }
.doc-group h2 { font-size: 1.125rem; }
.doc-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.doc-cards a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); }
.doc-cards a:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
.doc-cards span { display: block; color: var(--muted); font-size: .875rem; margin-top: 4px; }

/* Docs: the Markdown */
.prose { color: var(--text-2); overflow-wrap: break-word; }
.prose h2 { font-size: 1.5rem; color: var(--text); margin-top: 2.2em; padding-top: .4em; }
.prose h3 { font-size: 1.1875rem; color: var(--text); margin-top: 1.8em; }
.prose h4 { font-size: 1rem; color: var(--text); margin: 1.6em 0 .5em; }
.prose .header-anchor { margin-left: .35em; color: var(--decor); opacity: 0; font-weight: 400; text-decoration: none; }
.prose :is(h2, h3, h4):hover .header-anchor, .prose .header-anchor:focus { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose li > p { margin: 0 0 .5em; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose pre { background: var(--sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; font-size: .875rem; line-height: 1.55; margin: 0 0 1.2em; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--text); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.not-found { padding: 96px 24px 120px; text-align: center; }
.not-found h1 { font-size: 2.25rem; }

/* Laptops and smaller */
@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .toc { display: none; }
  .toc-inline { display: block; margin: 0 0 28px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); font-size: .9375rem; }
  .toc-inline summary { cursor: pointer; font-weight: 600; }
  .toc-inline ul { list-style: none; padding: 8px 0 0; margin: 0; columns: 2; column-gap: 24px; }
  .toc-inline li { break-inside: avoid; padding: 2px 0; }
  .toc-inline a { color: var(--text-2); }
  .hero-shot { margin-right: 0; }
}
@media (max-width: 960px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner, .feature, .security-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature { margin-bottom: 72px; }
  .feature.flip .feature-copy { order: 0; }
  .pillar-grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .demo-inner { flex-direction: column; align-items: flex-start; }
  section.features, section.examples, section.start, section.security { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 800px) {
  .menu { display: block; }
  .site-nav.wide { display: none; }
  .menu .site-nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .menu .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .menu .site-nav a[aria-current] { box-shadow: none; color: var(--accent); }
  .menu .site-nav .btn { margin-top: 16px; }
  .docs-layout, .docs-layout.no-toc { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .docs-nav { position: static; max-height: none; overflow: visible; }
  .docs-menu { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 12px; background: var(--bg-2); }
  .docs-menu > summary { display: list-item; cursor: pointer; font-weight: 600; }
  .docs-menu:not([open]) > :not(summary) { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15.5px; }
  .lead { font-size: 1.0625rem; }
  .pillar-grid, .cards { grid-template-columns: 1fr; gap: 24px; }
  .feature-media.pair { grid-template-columns: 1fr; }
  .feature-media.pair .phone { display: none; }
  .actions .btn { flex: 1 1 auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .toc-inline ul { columns: 1; }
  .menu .site-nav { padding: 8px 16px 20px; }
}
