/*
 * Prosqo — gedeelde basisstijl en componenten voor de publieke site en de admin.
 * Vereist brand/tokens.css. Alle kleuren komen uit tokens; geen losse hexwaarden in componenten.
 */

@import url("tokens.css");

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

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

body {
  margin: 0;
  background: var(--pq-bg);
  color: var(--pq-text);
  font-family: var(--pq-font-sans);
  font-size: 15px;
  line-height: 1.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--pq-link);
}

:focus-visible {
  outline: 2px solid var(--pq-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.pq-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Typografie */
.pq-display,
h1,
h2,
h3 {
  font-family: var(--pq-font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
.pq-display-xl {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.pq-display-l {
  font-size: clamp(32px, 4vw, 48px);
}
.pq-display-m {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pq-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--pq-text-muted);
  max-width: 34em;
  margin: 0;
}
.pq-muted {
  color: var(--pq-text-subtle);
}
.pq-eyebrow {
  font-family: var(--pq-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pq-text-subtle);
}
.pq-data {
  font-family: var(--pq-font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--pq-text-subtle);
}

/* Layout */
.pq-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.pq-stack {
  display: flex;
  flex-direction: column;
  gap: var(--pq-space-4);
}
.pq-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pq-space-3);
}

/* Logo */
.pq-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pq-text);
  text-decoration: none;
}
.pq-lockup img {
  width: 32px;
  height: 32px;
}
.pq-wordmark {
  font-family: var(--pq-font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Knoppen */
.pq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--pq-radius-md);
  border: 1px solid transparent;
  font: 600 15px/1 var(--pq-font-sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.pq-btn--primary {
  background: var(--pq-action-bg);
  color: var(--pq-action-text);
}
.pq-btn--primary:hover {
  filter: brightness(0.94);
}
.pq-btn--secondary {
  background: transparent;
  color: var(--pq-text);
  border-color: var(--pq-border);
}
.pq-btn--secondary:hover {
  background: var(--pq-surface);
}
/* Alleen voor de ene actie die naar 'heet' leidt, maximaal één per scherm. */
.pq-btn--heat {
  background: var(--pq-heet);
  color: var(--pq-nacht);
}
.pq-btn--heat:hover {
  filter: brightness(1.06);
}
.pq-btn--small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

/* Formulieren */
.pq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pq-label {
  font-size: 13px;
  color: var(--pq-text-subtle);
}
.pq-input,
.pq-select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--pq-radius-md);
  border: 1px solid var(--pq-border);
  background: var(--pq-surface);
  color: var(--pq-text);
  font: 400 15px var(--pq-font-sans);
  width: 100%;
}
.pq-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-height: 32px;
}
.pq-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Kaarten en panelen */
.pq-card {
  background: var(--pq-surface);
  border: 1px solid var(--pq-border);
  border-radius: var(--pq-radius-lg);
  padding: var(--pq-space-5);
}

/* Chips */
.pq-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--pq-radius-pill);
  border: 1px solid var(--pq-border);
  font-size: 13px;
  color: var(--pq-text-muted);
  white-space: nowrap;
}

/* Warmte-indicator: aantal punten én kleur én woord */
.pq-heat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.pq-heat__dots {
  display: inline-flex;
  gap: 3px;
}
.pq-heat__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--pq-dot-empty);
}
.pq-heat__label {
  font-weight: 600;
}
.pq-heat__score {
  font-family: var(--pq-font-mono);
  font-size: 12px;
  color: var(--pq-text-subtle);
}

.pq-heat__dots span:nth-child(1) {
  --dot: var(--pq-temp-koud);
}
.pq-heat__dots span:nth-child(2) {
  --dot: var(--pq-temp-lauw);
}
.pq-heat__dots span:nth-child(3) {
  --dot: var(--pq-temp-warm);
}
.pq-heat__dots span:nth-child(4) {
  --dot: var(--pq-temp-heet);
}

.pq-heat--koud .pq-heat__dots span:nth-child(-n + 1),
.pq-heat--lauw .pq-heat__dots span:nth-child(-n + 2),
.pq-heat--warm .pq-heat__dots span:nth-child(-n + 3),
.pq-heat--heet .pq-heat__dots span:nth-child(-n + 4) {
  background: var(--dot);
  border-color: var(--dot);
}

.pq-heat--koud .pq-heat__label {
  color: var(--pq-temp-koud-text);
}
.pq-heat--lauw .pq-heat__label {
  color: var(--pq-temp-lauw-text);
}
.pq-heat--warm .pq-heat__label {
  color: var(--pq-temp-warm-text);
}
.pq-heat--heet .pq-heat__label {
  color: var(--pq-temp-heet-text);
}

/* Verdeling over de temperaturen; het enige doorlopende element van de schaal is de scoremeter */
.pq-distribution {
  display: flex;
  height: 12px;
  border-radius: var(--pq-radius-pill);
  overflow: hidden;
}
.pq-distribution span:nth-child(1) {
  background: var(--pq-temp-heet);
}
.pq-distribution span:nth-child(2) {
  background: var(--pq-temp-warm);
}
.pq-distribution span:nth-child(3) {
  background: var(--pq-temp-lauw);
}
.pq-distribution span:nth-child(4) {
  background: var(--pq-temp-koud);
}

.pq-meter {
  height: 8px;
  border-radius: var(--pq-radius-pill);
  background: linear-gradient(
    90deg,
    var(--pq-temp-koud),
    var(--pq-temp-lauw),
    var(--pq-temp-warm),
    var(--pq-temp-heet)
  );
  position: relative;
}
.pq-meter__mark {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--pq-bg);
  border: 3px solid var(--pq-text);
}

/* Tabellen */
.pq-table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--pq-border);
  border-radius: var(--pq-radius-lg);
}
.pq-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}
.pq-table th {
  text-align: left;
  font-weight: 500;
  color: var(--pq-text-subtle);
  background: var(--pq-surface);
  padding: 12px 16px;
}
.pq-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--pq-border);
  vertical-align: middle;
}
.pq-table td:last-child {
  text-align: right;
}
.pq-table tr.is-customer td {
  color: var(--pq-text-subtle);
}

/* Contourveld: decoratieve achtergrond van het merk */
.pq-contour {
  position: relative;
  overflow: hidden;
  background: var(--pq-surface-sunken);
  border-radius: var(--pq-radius-xl);
}
.pq-contour > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
