/*
 * customers.css — the customer stories section (/customers/ and each story).
 *
 * Builds on the global tokens in /styles.css (--ds-*). Like company.css this is
 * deliberately restrained: a case study is a page a sceptical developer reads
 * to decide whether anyone real runs this. It has to look like the rest of the
 * site, not like a marketing microsite bolted on.
 */

.cust-body {
  background: var(--ds-bg);
}

.cust-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

/* ---------- hero ---------- */
.cust-hero {
  padding: clamp(52px, 8.5vw, 96px) 0 clamp(24px, 3.5vw, 40px);
}

.cust-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

.cust-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds-accent-strong);
}

.cust-hero h1 {
  margin: 18px 0 0;
  font-family: var(--ds-display, inherit);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ds-text);
  text-wrap: balance;
}

.cust-lede {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
  color: var(--ds-muted);
}

/* ---------- sections ---------- */
.cust-section {
  padding: clamp(28px, 4.2vw, 48px) 0;
}

.cust-section h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ds-text);
  text-wrap: balance;
}

.cust-section h3 {
  margin: 26px 0 10px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.35;
  color: var(--ds-text);
}

.cust-section p {
  margin: 0 0 14px;
  max-width: 68ch;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.68;
  color: var(--ds-muted);
}

.cust-section p:last-child {
  margin-bottom: 0;
}

.cust-section strong {
  color: var(--ds-text);
  font-weight: 600;
}

.cust-section code {
  font-family: var(--ds-mono);
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: var(--ds-radius-sm);
  background: rgba(23, 19, 17, 0.05);
  color: var(--ds-text-soft);
}

/* The one section a prospect is really weighing: what it produced. */
.cust-section-accent .cust-inner {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-bg-soft);
  padding: clamp(24px, 3.4vw, 40px);
}

/* ---------- links ----------
 * Prose links must LOOK like links — the same fix company.css needed.
 */
.cust-lede a,
.cust-section p a,
.cust-list a,
.cust-related a,
.cust-story-card p a {
  color: var(--ds-accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--ds-accent-strong) 42%, transparent);
  transition: text-decoration-color 120ms ease, color 120ms ease;
}

.cust-lede a:hover,
.cust-section p a:hover,
.cust-list a:hover,
.cust-related a:hover,
.cust-story-card p a:hover {
  text-decoration-color: var(--ds-accent-strong);
}

.cust-lede a:focus-visible,
.cust-section p a:focus-visible,
.cust-list a:focus-visible,
.cust-related a:focus-visible,
.cust-story-card p a:focus-visible {
  outline: 2px solid var(--ds-accent-strong);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- fact strip ---------- */
.cust-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.cust-facts li {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-bg-soft);
  padding: 15px 17px;
}

.cust-facts .k {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ds-muted-soft);
}

.cust-facts .v {
  display: block;
  margin-top: 5px;
  font-size: clamp(14px, 1.3vw, 15px);
  line-height: 1.45;
  font-weight: 550;
  color: var(--ds-text);
}

/* ---------- bullet list ---------- */
.cust-list {
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  max-width: 68ch;
}

.cust-list li {
  position: relative;
  padding-left: 20px;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.62;
  color: var(--ds-muted);
}

.cust-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-accent-strong);
}

.cust-list strong {
  color: var(--ds-text);
  font-weight: 600;
}

/* ---------- code ---------- */
.cust-code {
  margin: 16px 0 6px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-surface);
  overflow: hidden;
}

.cust-code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--ds-divider);
  background: var(--ds-surface-soft);
  font-family: var(--ds-mono);
  font-size: 12px;
  color: var(--ds-muted);
}

.cust-code-head::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-accent-warm);
  flex: none;
}

.cust-code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--ds-mono);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ds-text-soft);
  -webkit-overflow-scrolling: touch;
}

.cust-code pre code {
  padding: 0;
  background: none;
  font-size: inherit;
  color: inherit;
}

.cust-code-note {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ds-muted-soft);
  max-width: 68ch;
}

/* ---------- pull quote ---------- */
.cust-quote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--ds-accent-strong);
  max-width: 62ch;
}

.cust-quote p {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ds-text);
  font-weight: 500;
}

.cust-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13.5px;
  color: var(--ds-muted);
}

/* ---------- related reading ---------- */
.cust-related {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 68ch;
}

.cust-related li {
  padding: 11px 0;
  border-top: 1px solid var(--ds-divider);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.55;
  color: var(--ds-muted);
}

.cust-related li:first-child {
  border-top: 0;
}

/* ---------- index: story cards ---------- */
.cust-stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.cust-story-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--ds-shadow-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.cust-story-card:hover {
  border-color: var(--ds-border-strong);
  box-shadow: var(--ds-shadow-md);
  transform: translateY(-1px);
}

.cust-story-card .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ds-accent-strong);
}

.cust-story-card h2 {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ds-text);
}

.cust-story-card h2 a {
  color: inherit;
  text-decoration: none;
}

.cust-story-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.cust-story-card {
  position: relative;
}

.cust-story-card h2 a:focus-visible {
  outline: 2px solid var(--ds-accent-strong);
  outline-offset: 3px;
  border-radius: 3px;
}

.cust-story-card p {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 15.5px);
  line-height: 1.62;
  color: var(--ds-muted);
}

.cust-story-card .meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ds-divider);
  font-size: 13px;
  color: var(--ds-muted-soft);
}

/* Prose links inside a card must stay clickable above the stretched title link. */
.cust-story-card p a {
  position: relative;
  z-index: 1;
}

/* ---------- closing CTA ---------- */
.cust-cta {
  padding: clamp(32px, 5vw, 60px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
}

.cust-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.4vw, 27px);
  color: var(--ds-text);
}

.cust-cta p {
  margin: 0 auto 20px;
  max-width: 56ch;
  color: var(--ds-muted);
  font-size: clamp(15px, 1.3vw, 16px);
  line-height: 1.62;
}

/* ---------- breadcrumb ---------- */
.cust-crumb {
  margin: 0;
  font-size: 13px;
  color: var(--ds-muted-soft);
}

.cust-crumb a {
  color: var(--ds-muted);
  text-decoration: none;
}

.cust-crumb a:hover {
  color: var(--ds-accent-strong);
  text-decoration: underline;
}
