/* ─────────────────────────────────────────────────────────────────────
   ProdView · shared site chrome
   Used by Landing, Docs, Changelog, Blog. Page-specific styles go in
   their own <style> block inside each page.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --font: 'Inter', ui-sans-serif, -apple-system, system-ui, sans-serif;

  --productive: #10B981;
  --focus: #8B5CF6;
  --warn: #F59E0B;
  --distracting: #F43F5E;
  --meeting: #06B6D4;
}

html[data-theme="dark"] {
  --bg-0: #0B0D10;
  --bg-1: #14171C;
  --bg-2: #1B1F26;
  --bg-3: #252A33;
  --bg-grid: #11141a;
  --fg-0: #E6E8EB;
  --fg-muted: #9CA3AF;
  --fg-subdued: #6B7280;
  --border: #1f242c;
  --border-strong: #2a3038;
  --accent: #22D3B8;
  --accent-ink: #0B0D10;
  --grid-opacity: 0.6;
  --shadow-strong: 0 50px 100px -20px rgba(0,0,0,0.5);
  --shadow-mid: 0 30px 60px -20px rgba(0,0,0,0.5);
  --shadow-soft: 0 10px 24px -10px rgba(0,0,0,0.5);
}

html[data-theme="light"] {
  --bg-0: #FAFAFA;
  --bg-1: #FFFFFF;
  --bg-2: #F1F2F4;
  --bg-3: #E1E4E8;
  --bg-grid: #ECEEF1;
  --fg-0: #0F1218;
  --fg-muted: #4B5563;
  --fg-subdued: #6B7280;
  --border: #E4E7EB;
  --border-strong: #CDD2D8;
  --accent: #0FA88A;
  --accent-ink: #FFFFFF;
  --grid-opacity: 0.5;
  --shadow-strong: 0 30px 60px -15px rgba(15, 30, 50, 0.18), 0 1px 0 rgba(15, 30, 50, 0.04);
  --shadow-mid: 0 18px 38px -14px rgba(15, 30, 50, 0.18);
  --shadow-soft: 0 6px 16px -6px rgba(15, 30, 50, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-0); color: var(--fg-0); font-family: var(--font); }
body {
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11','ss01';
  overflow-x: hidden;
}
::selection { background: color-mix(in oklch, var(--accent) 40%, transparent); color: var(--fg-0); }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.92em; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

/* Background grid (decorative, masked at top) */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  opacity: var(--grid-opacity);
  z-index: 0;
}

/* Utilities */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--fg-subdued); letter-spacing: 0.14em; text-transform: uppercase;
}
.mono { font-family: var(--mono); }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 600; color: var(--fg-0); text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 18px; line-height: 1.3; }
p { margin: 0; color: var(--fg-muted); text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 6px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform 80ms ease, filter 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 40%, transparent),
              0 8px 24px -8px color-mix(in oklch, var(--accent) 60%, transparent);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--fg-0);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-1); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 7px; }

.kbd {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 5px; border: 1px solid var(--border); border-radius: 3px;
  font-family: var(--mono); font-size: 10px; color: var(--fg-subdued);
  background: var(--bg-1);
}

/* ─── nav ─── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklch, var(--bg-0) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 24px; height: 24px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
}
nav.links { display: flex; gap: 4px; align-items: center; }
nav.links a {
  padding: 6px 12px; border-radius: 5px;
  color: var(--fg-muted); font-size: 13.5px;
  transition: color 100ms ease, background 100ms ease;
}
nav.links a:hover { color: var(--fg-0); background: var(--bg-1); }
nav.links a.on { color: var(--fg-0); background: var(--bg-1); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

.theme-toggle {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 6px; cursor: pointer; color: var(--fg-muted);
  transition: background 100ms ease, color 100ms ease;
}
.theme-toggle:hover { color: var(--fg-0); background: var(--bg-1); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
html[data-theme="light"] .theme-toggle .sun { display: block; }
html[data-theme="light"] .theme-toggle .moon { display: none; }

/* ─── footer ─── */
footer.site {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.foot h4 { font-family: var(--mono); font-size: 11px; color: var(--fg-subdued); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; margin-bottom: 14px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot a { color: var(--fg-muted); font-size: 13.5px; transition: color 100ms ease; }
.foot a:hover { color: var(--fg-0); }
.foot-brand p { font-size: 13px; margin-top: 14px; max-width: 280px; color: var(--fg-muted); }
.foot-bot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--fg-subdued);
}
.foot-bot .status { display: inline-flex; align-items: center; gap: 6px; }
.foot-bot .status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--productive); box-shadow: 0 0 6px color-mix(in oklch, var(--productive) 70%, transparent); }

/* Responsive nav/footer */
@media (max-width: 1024px) {
  nav.links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────
   Shared marketing sections — drop-in building blocks used by index,
   Apps, People, Overview, Customers, Security-Center, Docs, etc.
   ───────────────────────────────────────────────────────────────────── */

/* Section wrapper used between blocks */
.mk-sec { padding: 72px 0; }
.mk-sec.tight { padding: 48px 0; }
.mk-sec-head { max-width: 720px; margin-bottom: 36px; }
.mk-sec-head h2 { margin-top: 10px; }
.mk-sec-head p { margin-top: 12px; font-size: 15px; color: var(--fg-muted); }

/* Logo bar — customer/partner strip */
.logo-bar {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 36px;
  align-items: center; justify-items: center;
  padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.logo-bar .logo {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--fg-subdued); opacity: 0.85;
  display: inline-flex; align-items: center; gap: 8px;
  filter: grayscale(1); transition: color 120ms ease, filter 120ms ease, opacity 120ms ease;
}
.logo-bar .logo::before {
  content: ''; width: 10px; height: 10px; border-radius: 2px;
  background: currentColor; opacity: 0.55;
}
.logo-bar .logo:hover { color: var(--fg-0); filter: grayscale(0); opacity: 1; }
@media (max-width: 880px) { .logo-bar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logo-bar { grid-template-columns: repeat(2, 1fr); } }

/* Proof strip — three stat tiles */
.proof-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.proof-strip .tile {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-1); padding: 22px 22px 20px;
}
.proof-strip .tile .num {
  font-family: var(--mono); font-size: 30px; font-weight: 600;
  color: var(--fg-0); letter-spacing: -0.02em; line-height: 1;
}
.proof-strip .tile .num .accent { color: var(--accent); }
.proof-strip .tile .lbl {
  margin-top: 10px; font-size: 13px; color: var(--fg-muted); line-height: 1.5;
}
.proof-strip .tile .sub {
  margin-top: 8px; font-family: var(--mono); font-size: 11px;
  color: var(--fg-subdued); letter-spacing: 0.06em; text-transform: uppercase;
}
@media (max-width: 720px) { .proof-strip { grid-template-columns: 1fr; } }

/* Demo frame — bordered screenshot card */
.demo-frame {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-1); overflow: hidden; box-shadow: var(--shadow-mid);
}
.demo-frame .chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  font-family: var(--mono); font-size: 11px; color: var(--fg-subdued);
}
.demo-frame .chrome .dots { display: inline-flex; gap: 5px; }
.demo-frame .chrome .dots span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong);
}
.demo-frame .body { display: block; line-height: 0; }
.demo-frame .body img { width: 100%; height: auto; display: block; }
.demo-frame .caption {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--fg-muted);
}
.demo-frame .caption a { color: var(--accent); }
.demo-frame .caption a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Feature row — alternating text + screenshot */
.feature-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px; align-items: center;
}
.feature-row + .feature-row { margin-top: 72px; }
.feature-row.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row.reverse .copy { order: 2; }
.feature-row .copy .eyebrow { display: block; }
.feature-row .copy h3 {
  margin-top: 12px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2;
  letter-spacing: -0.02em; color: var(--fg-0);
}
.feature-row .copy p { margin-top: 12px; font-size: 14.5px; line-height: 1.6; }
.feature-row .copy ul {
  margin: 16px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--fg-muted);
}
.feature-row .copy ul li { padding-left: 22px; position: relative; }
.feature-row .copy ul li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 600;
}
.feature-row .copy .cta {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-family: var(--mono); color: var(--accent);
}
.feature-row .copy .cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.feature-row .visual {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-1); overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.feature-row .visual img { width: 100%; height: auto; display: block; }
@media (max-width: 880px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .copy { order: 0; }
}

/* Testimonial grid — quote cards */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.testimonial-grid .quote {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-1); padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial-grid .quote blockquote {
  margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fg-0);
}
.testimonial-grid .quote blockquote::before { content: '"'; color: var(--accent); margin-right: 2px; }
.testimonial-grid .quote .by {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--fg-muted); margin-top: auto;
}
.testimonial-grid .quote .by .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 70%, transparent), var(--bg-2));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--fg-0); font-weight: 600;
  flex-shrink: 0;
}
.testimonial-grid .quote .by .who { color: var(--fg-0); font-weight: 500; }
.testimonial-grid .quote .by .role { color: var(--fg-subdued); }
@media (max-width: 880px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* Trust banner — security/privacy callouts */
.trust-banner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 22px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-1);
}
.trust-banner .item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 6px 8px;
}
.trust-banner .item .ic {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px; background: color-mix(in oklch, var(--accent) 14%, transparent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
}
.trust-banner .item .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trust-banner .item .tx strong { color: var(--fg-0); font-size: 13.5px; font-weight: 600; }
.trust-banner .item .tx span { font-size: 12px; color: var(--fg-muted); line-height: 1.4; }
.trust-banner .item .tx a { color: var(--accent); font-size: 12px; }
.trust-banner .item .tx a:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 880px) { .trust-banner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust-banner { grid-template-columns: 1fr; } }

/* Page hero used by feature pages (Apps, People, Overview) */
.mk-page-hero {
  padding: 64px 0 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.mk-page-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.06; }
.mk-page-hero p.lede { font-size: 16px; margin-top: 14px; color: var(--fg-muted); }
.mk-page-hero .cta-row { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 880px) { .mk-page-hero { grid-template-columns: 1fr; gap: 28px; } }

