/* Components added in the 2026 site rebuild: products nav menu, product
   cards, measure chips, Fit legend, API code samples, and contact-form
   interest selector. Built on the tokens in design-system/. */

html, body { background: var(--ink-0); color: var(--fg-primary); overflow-x: clip; }
body { font-family: var(--font-sans); }

/* Anchor targets clear the sticky nav */
[id] { scroll-margin-top: 88px; }

/* ── Nav: Products dropdown ─────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger svg { transition: transform var(--dur-fast) var(--ease-standard); }
.nav-dropdown.is-open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), visibility 0s linear var(--dur-fast);
  z-index: 60;
}
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  width: 340px;
  background: var(--ink-0);
  border: 1px solid var(--border-hair);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
}
.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
}
.nav-dropdown-item:hover, .nav-dropdown-item.is-active { background: var(--brand-plum-mist); }
.nav-dropdown-name { font: 600 15px/1.2 var(--font-sans); color: var(--ink-8); }
.nav-dropdown-item.is-active .nav-dropdown-name { color: var(--brand-plum); }
.nav-dropdown-blurb { font: 400 13px/1.35 var(--font-sans); color: var(--fg-secondary); }
.nav-dropdown-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border-hair); }

/* ── Shared section helpers ─────────────────────────────── */
.section-intro { font-size: 18px; line-height: 1.6; color: var(--fg-secondary); max-width: 720px; margin: 22px 0 0; }
.section-link-row { margin: 32px 0 0; font-size: 16px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-cta-row { flex-wrap: wrap; }
.footer-address { margin-top: 20px; font-size: 14px; line-height: 1.7; color: var(--fg-secondary); }
.footer-address-name { font-weight: 600; font-size: 13px; color: var(--ink-8); margin-bottom: 4px; }

/* ── Product lineup cards ───────────────────────────────── */
.product-cards { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.product-cards--2 { grid-template-columns: repeat(2, 1fr); }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-0);
  border: 1px solid var(--border-hair);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.product-card:hover { border-color: var(--brand-plum); box-shadow: var(--shadow-plum); transform: translateY(-2px); }
.product-card-audience { font: 600 12px/1.4 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-gold); margin-bottom: 14px; }
.product-card-name { font-family: var(--font-serif); font-weight: 400; font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; color: var(--ink-8); }
.product-card-desc { font-size: 16px; line-height: 1.55; color: var(--fg-secondary); margin: 0 0 22px; }
.product-card-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.product-card-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--fg-body); }
.product-card-points svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--brand-plum); margin-top: 1px; }
.product-card-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font-sans); color: var(--brand-plum); }
.product-card:hover .product-card-cta svg { transform: translateX(3px); }
.product-card-cta svg { transition: transform var(--dur-fast) var(--ease-standard); }
@media (max-width: 980px) {
  .product-cards, .product-cards--2 { grid-template-columns: 1fr; }
}

/* ── Measures ───────────────────────────────────────────── */
.measure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.measure-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.measure-chips li { font: 500 13px/1 var(--font-sans); padding: 8px 12px; border-radius: 999px; background: var(--brand-plum-mist); border: 1px solid var(--brand-plum-tint); color: var(--brand-plum-deep); }
@media (max-width: 980px) { .measure-grid { grid-template-columns: 1fr; } }

/* ── Fit legend ─────────────────────────────────────────── */
.fit-legend { margin-top: 28px; display: grid; gap: 10px; }
.fit-legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fit-legend-label { font: 600 12px/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-tertiary); width: 84px; }
.fit-legend-pill { font: 500 13px/1 var(--font-sans); padding: 6px 11px; border-radius: 999px; background: var(--brand-plum-tint); color: var(--brand-plum-deep); }
.fit-legend-pill--measure { background: var(--brand-slate-tint); color: var(--ink-7); }

/* ── Grids for audience / hiring modes ──────────────────── */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.audience-grid .use-case-card { display: flex; flex-direction: column; }
.audience-grid .use-case-card .inline { margin-top: auto; padding-top: 12px; font-weight: 600; }
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mode-points { margin-top: 8px; }
@media (max-width: 980px) { .audience-grid, .mode-grid { grid-template-columns: 1fr; } }

/* ── API code samples ───────────────────────────────────── */
.code-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.code-stack { display: grid; gap: 16px; min-width: 0; }
.code-card { margin: 0; background: var(--brand-plum-deep); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-plum); }
.code-card-head { display: flex; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); font: 600 12px/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-gold-soft); }
.code-card pre { margin: 0; padding: 18px; overflow-x: auto; }
.code-card code { font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.9); white-space: pre; }
@media (max-width: 980px) { .code-grid { grid-template-columns: 1fr; gap: 40px; } }

.endpoint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.endpoint-card { background: var(--ink-0); border: 1px solid var(--border-hair); border-radius: 14px; padding: 28px; }
.endpoint-path { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--brand-plum-deep); background: var(--brand-plum-mist); border: 1px solid var(--brand-plum-tint); border-radius: 8px; padding: 6px 10px; }
.endpoint-method { font-weight: 700; color: var(--brand-gold); }
.endpoint-title { font: 600 20px/1.25 var(--font-sans); margin: 18px 0 8px; color: var(--ink-8); }
.endpoint-desc { font-size: 15px; line-height: 1.55; color: var(--fg-secondary); margin: 0; }
@media (max-width: 980px) { .endpoint-grid { grid-template-columns: 1fr; } }

/* ── Contact form: interest selector ────────────────────── */
.demo-interests { border: 0; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; }
.demo-interests legend { margin-bottom: 10px; padding: 0; }
.demo-label-hint { font-weight: 400; color: var(--fg-tertiary); font-size: 14px; }
.demo-interest {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border-hair);
  border-radius: 10px;
  cursor: pointer;
  background: var(--ink-0);
  transition: border-color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.demo-interest:hover { border-color: var(--brand-plum-soft); }
.demo-interest.is-checked { border-color: var(--brand-plum); background: var(--brand-plum-mist); }
.demo-interest input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.demo-interest-box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: var(--ink-0);
}
.demo-interest-box svg { width: 14px; height: 14px; }
.demo-interest.is-checked .demo-interest-box { background: var(--brand-plum); border-color: var(--brand-plum); color: #fff; }
.demo-interest input:focus-visible + .demo-interest-box { outline: 2px solid var(--brand-plum); outline-offset: 2px; }
.demo-interest-text { display: flex; flex-direction: column; gap: 2px; }
.demo-interest-name { font: 600 15px/1.2 var(--font-sans); color: var(--ink-8); }
.demo-interest-blurb { font: 400 13px/1.3 var(--font-sans); color: var(--fg-secondary); }
.demo-textarea { resize: vertical; min-height: 84px; line-height: 1.4; }
.demo-error { color: var(--danger); }
.demo-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
