/* Enterprise Design System - workplacebots.com */
:root {
  --accent: #6366F1;
  --accent-rgb: 99, 102, 241;
  --accent-dark: #4f46e5;
  --accent-light: #a5b4fc;
  --accent-soft: rgba(99, 102, 241, 0.08);
  --accent-border: rgba(99, 102, 241, 0.22);
  --accent-glow: rgba(99, 102, 241, 0.15);
  
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --surface: #f8fafc;
  --surface-card: #ffffff;
  --surface-hover: #f1f5f9;
  
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --success: #16a34a;
  
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1120px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 12px 24px -6px rgba(15, 23, 42, 0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #fafbfc;
  background-image: 
    radial-gradient(ellipse 80% 45% at 50% -15%, rgba(99, 102, 241, 0.07), transparent 70%),
    radial-gradient(circle at 100% 0%, rgba(15, 23, 42, 0.02) 0px, transparent 350px);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 15.5px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  min-height: 100vh;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Enterprise Header */
header.site {
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none !important;
}
.brand span {
  color: var(--accent);
}
nav.site {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
nav.site a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  font-weight: 500;
}
nav.site a:hover {
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}
@media (max-width: 640px) {
  nav.site { display: none; }
}

/* Hero Section */
.hero {
  padding: 56px 0 16px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  max-width: 24ch;
  color: #090d16;
  font-weight: 800;
}
.hero p.lede {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 66ch;
  margin: 0 0 12px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Form & Calculator Grid */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 36px 0 12px;
  align-items: start;
}
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
}

/* Cards with Elevation */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card-hover);
}
.card h2 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 10px;
}

/* Input Fields */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
  display: block;
  line-height: 1.45;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Sticky Results Panel */
.results {
  position: sticky;
  top: 84px;
}
@media (max-width: 860px) {
  .results { position: static; }
}
.big {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
  color: #090d16;
  font-variant-numeric: tabular-nums;
}
.big.neg {
  color: var(--warn);
}
.sub {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* KPIs Display */
.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: transparent;
  border: none;
  margin-top: 22px;
}
.kpi {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  transition: transform 0.15s ease;
}
.kpi:hover {
  transform: translateY(-1px);
}
.kpi .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.kpi .v {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Visual Progress Bars */
.bars {
  margin-top: 22px;
}
.bar-row {
  margin-bottom: 14px;
}
.bar-row .lbl {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--ink-secondary);
}
.bar-row .lbl b {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}
.track {
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.fill.human {
  background: #94a3b8;
}
.fill.ai {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* Breakdown Table */
.breakdown {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.breakdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.breakdown th {
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.breakdown td {
  padding: 9px 0;
  border-top: 1px solid var(--line-subtle);
  font-variant-numeric: tabular-nums;
}
.breakdown td:last-child, .breakdown th:last-child {
  text-align: right;
}
.breakdown tr.total td {
  font-weight: 700;
  border-top: 2px solid var(--ink);
  color: var(--ink);
  padding-top: 12px;
}

/* Content Section (Guides & Editorial) */
section.content {
  padding: 56px 0;
}
section.content h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  color: #090d16;
}
section.content h3 {
  font-size: 19px;
  margin: 32px 0 10px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #0f172a;
}
section.content p {
  max-width: 72ch;
  color: #334155;
  line-height: 1.7;
  font-size: 15.5px;
}
section.content ul, section.content ol {
  max-width: 72ch;
  color: #334155;
  padding-left: 24px;
  line-height: 1.65;
}
section.content li {
  margin-bottom: 10px;
}
.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Mini Cards Grid */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 860px) {
  .grid3 { grid-template-columns: 1fr; }
}
.mini {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.mini:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.mini h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.mini p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Note & Callout */
.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.6;
  border-top: 1px solid var(--accent-border);
  border-right: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
}
.note p {
  margin: 0;
  color: var(--ink-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  border-radius: 8px;
  padding: 9px 18px;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 3px 8px -1px rgba(99, 102, 241, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}
.btn.ghost {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}
.btn.ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Long-Form Prose Articles */
article.prose {
  max-width: 74ch;
  padding: 48px 0;
}
article.prose h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 800;
  color: #090d16;
}
article.prose .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
article.prose h2 {
  font-size: 23px;
  margin: 40px 0 12px;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: #0f172a;
}
article.prose h3 {
  font-size: 18px;
  margin: 28px 0 10px;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: #1e293b;
}
article.prose p, article.prose li {
  color: #334155;
  font-size: 15.5px;
  line-height: 1.7;
}
article.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
article.prose th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
article.prose td {
  padding: 10px 14px;
  border-top: 1px solid var(--line-subtle);
  vertical-align: top;
}
article.prose tr:hover td {
  background: #f8fafc;
}

/* Institutional Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  margin-top: 48px;
  font-size: 13px;
  color: var(--muted);
  background: #ffffff;
}
footer.site .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand .brand {
  font-size: 15px;
}
.footer-desc {
  font-size: 12px;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.5;
}
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer.site nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s ease;
}
footer.site nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted-light);
}
.footer-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
.footer-guarantee::before {
  content: "●";
  color: var(--success);
  font-size: 9px;
}
