/* ═══════════════════════════════════════════════════════════════════════
   /customers — Customer Stories. Proof-forward: an animated stat bar as the
   hero signature, an industry-filterable quote wall, team-type columns.
   Hairline everywhere (never card fill), left-anchored, brand near-zero.
   ═══════════════════════════════════════════════════════════════════════ */
@import "../_ds/fonts.css";
@import "../_ds/theme.css";
@import "../_shared/chrome.css";
@import "../_shared/components.css";
@import "../_shared/audience-switcher.css";

.cs-main { background: var(--background); }
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 620ms cubic-bezier(0.22,1,0.36,1), transform 620ms cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ── ACT 1 — hero + proof bar ──────────────────────────────── */
.cs-hero {
  max-width: 1200px; margin-inline: auto;
  padding: clamp(120px, 15vh, 180px) clamp(20px, 5vw, 72px) clamp(48px, 7vh, 88px);
}
.cs-hero-h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-hero-xl); line-height: 0.98; letter-spacing: -0.03em;
  color: var(--text-primary); margin: 0;
}
.cs-hero-sub {
  font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.5; color: var(--text-secondary); margin: 24px 0 0; max-width: 60ch;
}
.cs-hero-cta { margin-top: clamp(26px, 4vh, 40px); }
.cs-hero-cta .link-cta { align-self: center; padding-top: 4px; }

.cs-stats {
  margin-top: clamp(48px, 8vh, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-subtle);
}
.cs-stat { padding: clamp(24px, 3vw, 36px) clamp(20px, 2vw, 32px) 0; border-right: 1px solid var(--border-subtle); }
.cs-stat:first-child { padding-left: 0; }
.cs-stat:last-child { border-right: none; padding-right: 0; }
.cs-stat-v {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-hero); line-height: 0.9; letter-spacing: -0.03em;
  color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.cs-stat-k {
  display: block; margin-top: 14px; font-family: var(--font-code);
  font-size: 12px; letter-spacing: 0.04em; color: var(--text-tertiary); line-height: 1.4;
}

/* ── ACT 2 — quote wall ────────────────────────────────────── */
.cs-wall {
  max-width: 1200px; margin-inline: auto;
  padding: clamp(56px, 9vh, 110px) clamp(20px, 5vw, 72px);
}
.cs-wall-head { max-width: 680px; margin-bottom: clamp(28px, 4vh, 40px); }
.cs-wall-h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 4.6vw, 72px); line-height: 1.0; letter-spacing: -0.03em;
  color: var(--text-primary); margin: 0;
}
.cs-wall-lead {
  font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.5; color: var(--text-secondary); margin: 16px 0 0; max-width: 54ch;
}

/* filter uses the DS seg-control atom (--underline); only layout is set here */
.cs-filter { flex-wrap: wrap; margin-bottom: clamp(28px, 4vh, 40px); }

.cs-quotes { columns: 3 300px; column-gap: 16px; }
.cs-quote {
  break-inside: avoid; margin: 0 0 16px;
  border: 1px solid var(--border-subtle); border-radius: 16px;
  padding: 26px 24px 22px; display: flex; flex-direction: column;
}
.cs-quote.is-hidden { display: none; }
.cs-quote-t {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(18px, 1.55vw, 22px); line-height: 1.3; letter-spacing: -0.01em;
  color: var(--text-primary); margin: 0; text-indent: -0.4em;
}
.cs-quote-t::before { content: "\201C"; color: var(--text-quaternary); }
.cs-quote-t::after { content: "\201D"; color: var(--text-quaternary); }
.cs-quote-by {
  margin-top: 20px; font-family: var(--font-base); font-size: 14px;
  font-weight: 500; color: var(--text-primary); line-height: 1.4;
}
.cs-quote-by span { display: block; font-weight: 400; color: var(--text-tertiary); }
.cs-quote-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-qchip {
  font-family: var(--font-code); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--text-tertiary); border: 1px solid var(--border-subtle);
  border-radius: 999px; padding: 4px 10px;
}
.cs-qchip--ind { color: var(--text-quaternary); }
.cs-empty { font-family: var(--font-base); font-size: 15px; color: var(--text-tertiary); margin: 8px 0 0; }

/* ── ACT 3 — runs here ─────────────────────────────────────── */
.cs-fit {
  max-width: 1200px; margin-inline: auto;
  padding: clamp(56px, 9vh, 110px) clamp(20px, 5vw, 72px);
}
.cs-fit-h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-h2); line-height: 1.02; letter-spacing: -0.028em;
  color: var(--text-primary); margin: 0 0 clamp(32px, 5vh, 52px); max-width: 18ch;
}
.cs-fit-h2 em { font-style: normal; color: var(--text-primary); }
.cs-fit-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.cs-fit-col { border-top: 1px solid var(--text-primary); padding-top: 20px; }
.cs-fit-k {
  font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h4);
  letter-spacing: -0.02em; color: var(--text-primary); margin: 0;
}
.cs-fit-d {
  font-family: var(--font-base); font-size: 15px; line-height: 1.55;
  color: var(--text-secondary); margin: 14px 0 0;
}
.cs-fit-col .link-cta { margin-top: 18px; display: inline-flex; }

/* ── ACT 4 — closer ────────────────────────────────────────── */
.cs-closer { padding: clamp(88px, 14vh, 190px) clamp(20px, 5vw, 72px); text-align: center; }
.cs-closer-h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-hero); line-height: 0.99; letter-spacing: -0.03em;
  color: var(--text-primary); margin: 0; max-width: 20ch; margin-inline: auto;
}
.cs-closer-lead {
  font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.5; color: var(--text-secondary); margin: 18px auto 0; max-width: 46ch;
}
.cs-closer-cta { margin-top: clamp(28px, 4vh, 44px); }

/* ── wide ──────────────────────────────────────────────────── */
@media (min-width: 1600px) { .cs-hero, .cs-wall, .cs-fit { max-width: 1360px; }  }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-stat:nth-child(odd) { padding-left: 0; }
  .cs-stat:nth-child(2) { border-right: none; padding-right: 0; }
  .cs-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); padding-bottom: 28px; }
  .cs-quotes { columns: 2 260px; }
  .cs-fit-cols { grid-template-columns: 1fr; gap: 0; }
  .cs-fit-col { border-top: 1px solid var(--border-subtle); padding: 24px 0; }
  .cs-fit-col:first-child { border-top-color: var(--text-primary); }
}
@media (max-width: 600px) {
  .cs-stats { grid-template-columns: 1fr; border-top: none; }
  .cs-stat { border-right: none; border-top: 1px solid var(--border-subtle); padding: 22px 0 0; }
  .cs-stat:nth-child(-n+2) { border-bottom: none; padding-bottom: 0; }
  .cs-quotes { columns: 1; }
  .cs-hero-cta .link-cta { align-self: flex-start; padding-top: 0; }
  /* filter scrolls one row */
  .cs-filter { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cs-filter::-webkit-scrollbar { display: none; }
  .cs-filter .seg-control-opt { flex: 0 0 auto; white-space: nowrap; }
}
