/* Zenvor Apps — Strict Monochrome Zinc + Electric Cobalt (#2563EB) Design System */
:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --obsidian: #09090b;
  --obsidian-2: #18181b;
  --ink: #09090b;
  --ink-2: #52525b;
  --ink-3: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --dark-border: #27272a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --max-w: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--obsidian);
  text-decoration: none !important;
  line-height: 1;
}
.brand-zenvor {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.045em;
  color: var(--obsidian);
}
.brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 5px 0 2px;
  transform: translateY(-1px);
}
.brand-apps {
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-2); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); text-decoration: none; }
.nav-cta {
  padding: 8px 14px;
  border-radius: 7px;
  background: var(--obsidian);
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13.5px;
}
.nav-cta:hover { background: var(--obsidian-2); }

/* Product Subnav */
.subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.subnav-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}
.subnav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 500;
  flex-wrap: wrap;
}
.subnav-links a { color: var(--ink-2); }
.subnav-links a:hover, .subnav-links a.active { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Buttons — Strict Obsidian Primary + Hairline Secondary */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--obsidian);
  color: #ffffff;
}
.btn-primary:hover { background: #27272a; }
.btn-accent {
  background: var(--accent);
  color: #ffffff;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface); border-color: #a1a1aa; }

/* Editorial Hero — Zero Dot-Grids, Zero Pill Clutter */
.hero {
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 4.8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 780px;
  color: var(--ink);
}
.hero p.lead {
  margin: 0 0 32px;
  font-size: 17.5px;
  color: var(--ink-2);
  max-width: 620px;
  line-height: 1.6;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Hairline Metrics Bar (Vercel / Stripe Style) */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.metric-cell {
  padding: 26px 28px;
  border-right: 1px solid var(--border);
}
.metric-cell:last-child { border-right: none; }
.metric-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.metric-lbl {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* Sections */
.section { padding: 84px 0; }
.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-dark {
  background: var(--obsidian);
  color: #ffffff;
  padding: 84px 0;
}
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
}
.section-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}
.section-dark .section-head p { color: #a1a1aa; }
.section-dark .kicker { color: #a1a1aa; }

/* Architectural Hairline Grid (Zero Floating Box Shadow Slop) */
.hairline-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.hairline-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.hairline-cell {
  padding: 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hairline-grid-3 .hairline-cell:nth-child(3n) { border-right: none; }
.hairline-grid-3 .hairline-cell:nth-last-child(-n+3) { border-bottom: none; }
.hairline-grid-2 .hairline-cell:nth-child(2n) { border-right: none; }
.hairline-grid-2 .hairline-cell:nth-last-child(-n+2) { border-bottom: none; }

.hairline-cell h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.hairline-cell p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.58;
}
.cell-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

/* Dark Grid */
.dark-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  overflow: hidden;
}
.dark-cell {
  padding: 32px;
  border-right: 1px solid var(--dark-border);
  background: var(--obsidian);
}
.dark-cell:last-child { border-right: none; }
.dark-cell h3 {
  margin: 0 0 10px;
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
}
.dark-cell p {
  margin: 0;
  font-size: 14.5px;
  color: #a1a1aa;
  line-height: 1.6;
}

/* Spec Rows */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 13px 0; }
.spec-table td:first-child { color: var(--ink-3); width: 44%; }
.spec-table td:last-child { color: var(--ink); font-weight: 600; text-align: right; }

/* Pricing */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  background: var(--surface);
  margin-bottom: 32px;
}
.billing-btn {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.billing-btn.active {
  background: var(--obsidian);
  color: #ffffff;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.plan-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border: 1.5px solid var(--accent);
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.plan-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.plan-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.price-val {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price-unit { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.price-note { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 20px; }
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.plan-list li {
  padding-left: 14px;
  position: relative;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

/* Docs Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 56px 28px 84px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.docs-sidebar {
  position: sticky;
  top: 132px;
  align-self: start;
  border-right: 1px solid var(--border);
  padding-right: 20px;
}
.docs-sidebar h4 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}
.docs-sidebar a { color: var(--ink-2); font-weight: 500; }
.docs-sidebar a:hover { color: var(--ink); text-decoration: none; }

/* Prose / Legal */
.prose-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 84px;
}
.prose-body h1, .prose-wrap h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.prose-meta {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.prose-body h2, .prose-wrap h2 {
  margin: 36px 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  scroll-margin-top: 130px;
}
.prose-body p, .prose-wrap p { margin: 0 0 14px; color: var(--ink-2); }
.prose-body ul, .prose-body ol, .prose-wrap ul, .prose-wrap ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-2);
}
.prose-body li, .prose-wrap li { margin-bottom: 7px; }
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--obsidian);
  border-radius: 6px;
  padding: 15px 18px;
  margin: 22px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: 14px;
  border: 1px solid var(--border);
}
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.data-table th { background: var(--surface); font-weight: 700; color: var(--ink); }
.data-table td { color: var(--ink-2); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 52px 0 36px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--ink-2); }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 960px) {
  .metrics-bar, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-cell:nth-child(2n) { border-right: none; }
  .metric-cell { border-bottom: 1px solid var(--border); }
  .hairline-grid-2, .hairline-grid-3, .dark-grid-3, .docs-layout { grid-template-columns: 1fr; }
  .hairline-cell, .dark-cell { border-right: none !important; border-bottom: 1px solid var(--border); }
  .dark-cell { border-bottom-color: var(--dark-border); }
  .docs-sidebar { position: static; border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .metrics-bar, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .metric-cell { border-right: none; }
  .hero { padding: 56px 0 48px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-cta { display: none; }
}

/* v6 Refinements: Centered balanced hero + Obsidian featured plan + clean preview frame */
.hero-centered {
  text-align: center;
}
.hero-centered h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}
.hero-centered p.lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}
.hero-centered .cta-row {
  justify-content: center;
}
.product-frame {
  margin: 44px auto 0;
  max-width: 980px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(9, 9, 11, 0.06);
}
.product-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.plan-card.featured {
  border: 1.5px solid var(--obsidian);
  box-shadow: 0 10px 28px rgba(9, 9, 11, 0.06);
}
.plan-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 14px;
  min-height: 36px;
}
.plan-list li.inherited {
  color: var(--ink);
  font-weight: 600;
  padding-left: 0;
}
.plan-list li.inherited::before {
  display: none;
}

/* Native Architectural Product Showcase (replaces pasted slide image) */
.pf-board-showcase {
  margin: 48px auto 0;
  max-width: 960px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  text-align: left;
}
.pf-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.pf-board-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.pf-board-meta {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.pf-board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pf-board-col {
  padding: 26px 24px;
}
.pf-board-col + .pf-board-col {
  border-left: 1px solid var(--border);
  background: var(--surface);
}
.pf-col-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.pf-step-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.pf-step-row:last-child { border-bottom: none; }
.pf-step-row span { color: var(--ink-2); }
.pf-step-row strong { color: var(--ink); font-weight: 600; text-align: right; }
@media (max-width: 760px) {
  .pf-board-grid { grid-template-columns: 1fr; }
  .pf-board-col + .pf-board-col { border-left: none; border-top: 1px solid var(--border); }
}

/* Docs sidebar scroll-spy active highlight */
.docs-sidebar a {
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  margin-left: -12px;
  transition: color 0.15s, border-color 0.15s;
}
.docs-sidebar a.active {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--accent);
}
