/* WorkstationFit.com — Ergonomic Lab Design System */
:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-muted: #f1efe9;
  --surface-tint: #eef6f3;
  --text: #14191f;
  --text-muted: #52606d;
  --text-light: #7b8794;
  --border: #e4e2dc;
  --border-strong: #d1cec6;

  --accent: #0f6e5c;
  --accent-hover: #0a5446;
  --accent-soft: #e2f2ee;
  --warm: #c25e1a;
  --warm-soft: #fef3eb;
  --danger: #b42318;
  --danger-soft: #fef3f2;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, 0.08);

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 820px;
}

/* Disclosure Banner */
.disclosure-bar {
  background: #14191f;
  color: #cbd2d9;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
}

.disclosure-bar a {
  color: #7ee2cc;
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none !important;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* Hero */
.hero {
  padding: 44px 0 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-sub {
  margin: 0;
  max-width: 680px;
  font-size: 17px;
  color: var(--text-muted);
}

/* Calculator Shell */
.calc-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 26px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.control-group {
  margin-bottom: 20px;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.height-readout {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.height-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-light);
  margin-left: 6px;
}

/* Segmented Control */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--surface-muted);
  padding: 4px;
  border-radius: 11px;
  gap: 4px;
}

.segmented button {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.segmented button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.segmented button:hover:not(.active) {
  color: var(--text);
}

/* Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--surface-muted);
  border-radius: 999px;
  outline: none;
  margin: 10px 0 6px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 110, 92, 0.35);
  cursor: pointer;
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-light);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

select, input[type="number"], input[type="text"], input[type="email"], textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

select:focus, input:focus, textarea:focus {
  outline: 2px solid rgba(15, 110, 92, 0.25);
  border-color: var(--accent);
}

/* Results Panel */
.results-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.diagram-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9f7 100%);
}

.diagram-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: center;
}

.svg-stage {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.svg-stage svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
}

.metric-box.primary {
  background: var(--surface-tint);
  border-color: #bfe0d6;
}

.metric-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.metric-box.primary .metric-val {
  color: var(--accent);
}

.metric-alt {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}

/* Diagnosis Banner */
.diagnosis-box {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid #f7d6bc;
  background: var(--warm-soft);
  color: #6b3007;
  margin-top: 16px;
}

.diagnosis-box.good {
  border-color: #bfe0d6;
  background: var(--surface-tint);
  color: #0b4a3d;
}

.diagnosis-box strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14.5px;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-muted);
}

.btn-sm {
  padding: 8px 13px;
  font-size: 13px;
}

/* Product Cards */
.section {
  padding: 44px 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.section-header h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
}

.pill-fit {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-warn {
  background: var(--warm-soft);
  color: var(--warm);
}

.product-brand {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.product-card h3 {
  margin: 3px 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 8px;
}

.product-summary {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

/* Height Grid */
.height-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 10px;
}

.height-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 10px;
  text-align: center;
  color: var(--text);
  text-decoration: none !important;
  transition: all 0.15s;
}

.height-chip:hover {
  border-color: var(--accent);
  background: var(--surface-tint);
  transform: translateY(-1px);
}

.height-chip .h-imp {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 16px;
}

.height-chip .h-met {
  display: block;
  font-size: 12px;
  color: var(--text-light);
}

/* Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
  text-decoration: none !important;
  transition: all 0.15s;
}

.guide-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  line-height: 1.35;
}

.guide-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.guide-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.filter-item {
  flex: 1;
  min-width: 170px;
}

.filter-item label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
}

/* Article / Prose */
.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.prose h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.2;
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.prose p {
  margin: 0 0 14px;
  color: #2d3748;
  font-size: 16px;
}

.prose ul {
  padding-left: 20px;
  color: #2d3748;
}

.prose li {
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

details.faq-item summary {
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--accent);
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 56px;
  background: #14191f;
  color: #cbd2d9;
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.footer-grid a {
  color: #cbd2d9;
}

.footer-grid a:hover {
  color: #7ee2cc;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #9aa5b1;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #14191f;
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s;
  z-index: 99;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .diagram-wrap {
    grid-template-columns: 1fr;
  }
  .product-grid,
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 12px;
    font-size: 13px;
  }
  .nav-cta {
    display: none;
  }
  .product-grid,
  .guides-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .prose {
    padding: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
