/* ============================================================================
 *  components.css — buttons, nav bits, service cards, quotes, fields, ratings,
 *  the "diagnostic" spec panel, and the chip mark.
 * ========================================================================== */

/* ---- Buttons (squared, tech) ------------------------------------------- */
.btn {
  --_bg: var(--azure); --_fg: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.45em; font-family: var(--font); font-size: var(--step-0); font-weight: 600;
  line-height: 1; color: var(--_fg); background: var(--_bg); border: 1.5px solid transparent;
  border-radius: var(--r-sm); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-azure); color: var(--_fg); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn--lg { padding: 1.0em 1.7em; font-size: var(--step-1); border-radius: var(--r); }
.btn--ghost { --_bg: transparent; --_fg: var(--slate); border-color: var(--line-strong); }
.btn--ghost:hover { --_bg: var(--surface); box-shadow: var(--shadow-1); border-color: var(--azure-300); color: var(--slate); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.arrow-link { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; text-decoration: none; color: var(--azure-700); }
.arrow-link svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---- Pills / stars ------------------------------------------------------ */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.4em 0.85em;
  font-size: var(--step--1); font-weight: 500; background: var(--surface); color: var(--slate);
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.pill svg { width: 1em; height: 1em; color: var(--azure-700); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 1.05em; height: 1.05em; }

/* ---- Chip brand mark ---------------------------------------------------- */
.chip-mark { width: 1.9em; height: 1.9em; flex: none; color: var(--azure); }

/* ---- Service cards ------------------------------------------------------ */
.svc-group + .svc-group { margin-top: var(--space-xl); }
.svc-group__title {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--azure-700); margin-bottom: var(--space-m);
  display: flex; align-items: center; gap: 0.7em;
}
.svc-group__title::before { content: ""; width: 0.6em; height: 0.6em; background: var(--cyan); border-radius: 2px; flex: none; }
.svc-group__title span { height: 1px; flex: 1; background: var(--line); }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: var(--space-s); }
.svc {
  display: grid; gap: 0.55em; padding: var(--space-l);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--azure-300); }
.svc__icon {
  width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border-radius: var(--r-sm);
  background: var(--azure-100); color: var(--azure-700); margin-bottom: var(--space-2xs);
}
.svc__icon svg { width: 1.45rem; height: 1.45rem; }
.svc h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.svc p { color: var(--muted); font-size: var(--step-0); }

/* ---- Quote / review ----------------------------------------------------- */
.quote {
  display: flex; flex-direction: column; gap: var(--space-s);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--space-l); box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.quote::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--cyan), var(--azure)); }
.quote__text {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.4;
  letter-spacing: -0.01em; color: color-mix(in oklab, var(--slate) 92%, var(--paper));
}
.quote__foot { margin-top: auto; display: flex; align-items: center; gap: 0.8em; }
.quote__avatar {
  width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--azure-100); color: var(--azure-700); font-weight: 700; font-size: var(--step-0);
}
.quote__who { font-weight: 600; font-size: var(--step-0); line-height: 1.2; }
.quote__src { font-family: var(--font-mono); font-size: 0.78em; color: var(--muted); letter-spacing: 0.02em; }

/* ---- Diagnostic spec panel (type-forward "about" visual) --------------- */
.spec {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.spec__bar {
  display: flex; align-items: center; gap: 0.55em; padding: 0.8em 1.1em;
  background: var(--navy); color: oklch(90% 0.012 250);
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.02em;
}
.spec__dot { width: 0.65em; height: 0.65em; border-radius: 50%; background: oklch(72% 0.14 215 / 0.55); flex: none; }
.spec__dot:nth-child(2) { background: oklch(80% 0.13 90 / 0.6); }
.spec__dot:nth-child(3) { background: oklch(70% 0.16 145 / 0.6); }
.spec__bar b { margin-left: 0.6em; color: #fff; font-weight: 600; }
.spec__body { padding: var(--space-l); display: grid; gap: var(--space-s); }
.spec__row { display: grid; grid-template-columns: auto 1fr; gap: 0.9em; align-items: baseline; }
.spec__k { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.spec__v { font-weight: 600; color: var(--slate); text-align: right; }
.spec__v .stars { vertical-align: -0.15em; }
.spec__rule { height: 1px; background: var(--line); }
.spec__tags { display: flex; flex-wrap: wrap; gap: 0.4em; }
.spec__tag {
  font-family: var(--font-mono); font-size: 0.78em; letter-spacing: 0.03em;
  padding: 0.35em 0.7em; border-radius: var(--r-pill);
  background: var(--azure-50); color: var(--azure-700); border: 1px solid var(--azure-300);
}

/* ---- Form fields -------------------------------------------------------- */
.field { display: grid; gap: 0.45em; }
.field > label { font-size: var(--step--1); font-weight: 600; }
.field .req { color: var(--azure-700); }
.input, .textarea, .select {
  width: 100%; padding: 0.8em 0.95em; font: inherit; color: var(--slate);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: color-mix(in oklab, var(--muted) 80%, transparent); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px var(--azure-100); }
.textarea { min-height: 120px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 0.6em; font-size: var(--step--1); color: var(--muted); }
.check input { margin-top: 0.18em; accent-color: var(--azure); width: 1.05em; height: 1.05em; flex: none; }

.rule { height: 1px; background: var(--line); border: 0; }
