/* ============================================================
   ProductTrio — Case study pages
   Loaded alongside blog.css (tokens, nav/footer, motion, buttons).
   Visual spine: the Test Card / Learning Card format ProductTrio
   actually runs experiments through (dashed borders + mono labels
   echo the real artifact style from the discovery workshops).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
}

.cs-wrap { max-width: 980px; margin: 0 auto; width: 100%; }
.cs-section { padding: 76px 5vw; }
.cs-section.tint { background: var(--surface-mint); }
.cs-section.dark { background: var(--dark); color: var(--ink-on-dark); }
.cs-kicker {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary); margin: 0 0 14px; display: block;
}
.cs-section.dark .cs-kicker { color: #a9adf0; }
.cs-section h2 {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.4px; margin: 0 0 16px; color: var(--ink); max-width: 720px;
}
.cs-section.dark h2 { color: #fff; }
.cs-lead { font-size: 19px; line-height: 1.6; color: var(--ink-muted); max-width: 700px; margin: 0 0 8px; }
.cs-section p { font-size: 17px; line-height: 1.7; color: var(--ink-muted); max-width: 700px; margin: 0 0 18px; }
.cs-section p strong { color: var(--ink); font-weight: 700; }
.cs-section.dark p { color: rgba(255,255,255,.75); }

/* ---------- Hero ---------- */
.cs-hero { padding: 56px 5vw 0; }
.cs-hero-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-bottom: 56px;
}
.cs-badge-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cs-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
  background: var(--tint-indigo); color: var(--primary); border-radius: var(--radius-pill);
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
}
.cs-hero h1 {
  font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; line-height: 1.08;
  letter-spacing: -1px; margin: 0 0 20px; color: var(--ink); max-width: 620px;
}
.cs-hero .cs-lead { margin-bottom: 30px; }
.cs-hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 30px 0 34px; }
.cs-hero-meta .hm-k { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.cs-hero-meta .hm-v { font-size: 15px; font-weight: 700; color: var(--ink); }
.cs-hero .btn { margin: 0; }

.cs-hero-media { position: relative; }
.cs-logo-tile {
  display: inline-flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 14px 20px; margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}
.cs-logo-tile img { height: 26px; width: auto; display: block; }
.cs-shot { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-hover); position: relative; }
.cs-shot img { display: block; width: 100%; height: auto; }

@media (max-width: 860px) {
  .cs-hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; padding-bottom: 40px; }
  .cs-badge-row, .cs-hero-meta { justify-content: center; }
  .cs-hero h1, .cs-hero .cs-lead { margin-left: auto; margin-right: auto; }
  .cs-hero .btn { margin: 0 auto; }
}

.cs-hero-media .cs-statstrip.mini { grid-template-columns: 1fr 1fr; }
.cs-hero-media .cs-statstrip.mini .st { padding: 24px 18px; }
.cs-hero-media .cs-statstrip.mini .st .n { font-size: clamp(26px, 3.4vw, 34px); }
.cs-hero-media .cs-statstrip.mini .st .l { font-size: 13px; }

/* ---------- Stat strip ---------- */
.cs-statstrip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; max-width: 980px; margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.cs-statstrip .st { background: var(--surface); padding: 30px 24px; text-align: center; }
.cs-statstrip .st .n { font-family: var(--mono); font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--primary); line-height: 1; letter-spacing: -1px; }
.cs-statstrip .st .l { font-size: 14px; color: var(--ink-muted); margin-top: 10px; line-height: 1.4; }

/* ---------- Card components (Test Card / Learning Card) ---------- */
.cs-card {
  max-width: 900px; margin: 0 auto; background: var(--surface);
  border: 2px dashed rgba(77,83,196,.35); border-radius: 22px;
  padding: 8px; box-shadow: var(--shadow-card);
}
.cs-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 2px dashed rgba(77,83,196,.2);
}
.cs-card-title { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary); }
.cs-card-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.cs-card-body { padding: 22px; display: grid; gap: 18px; }
.cs-field { }
.cs-field .f-k { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.cs-field .f-v { font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.cs-field.hyp .f-v { font-size: 18px; font-weight: 600; color: var(--ink); background: rgba(220,185,88,.16); border-left: 3px solid var(--gold); padding: 14px 16px; border-radius: 0 10px 10px 0; }
.cs-field.result .f-v { font-size: 18px; font-weight: 700; color: var(--success); }
.cs-field ol, .cs-field ul { margin: 0; padding-left: 20px; }
.cs-field li { margin-bottom: 6px; font-size: 16px; color: var(--ink); line-height: 1.55; }
.cs-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .cs-field-grid { grid-template-columns: 1fr; } }

.cs-card.learning { border-color: rgba(45,202,115,.4); }
.cs-card.learning .cs-card-head { border-bottom-color: rgba(45,202,115,.25); }
.cs-card.learning .cs-card-title { color: var(--success); }
.cs-card.learning .f-k { color: var(--ink-soft); }

/* ---------- UX Pilot custom data-viz hero ---------- */
.cs-dataviz {
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-hover);
  padding: 32px 30px 26px; position: relative; overflow: hidden;
}
.cs-dataviz::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 60%;
  background: radial-gradient(60% 100% at 70% 0%, rgba(77,83,196,.16), transparent 70%);
}
.cs-dataviz-title { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px; position: relative; }
.cs-bars { display: flex; align-items: flex-end; gap: 34px; height: 200px; position: relative; margin-bottom: 14px; }
.cs-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.cs-bar { width: 100%; max-width: 92px; border-radius: 10px 10px 4px 4px; position: relative; }
.cs-bar.low { background: linear-gradient(180deg, #d8dae8, #c3c6e0); height: 8%; }
.cs-bar.high { background: linear-gradient(180deg, var(--primary), #343af0); height: 72%; }
.cs-bar-val { font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.cs-bar.high + .cs-bar-val, .cs-bar-col .cs-bar.high ~ .cs-bar-val { color: var(--primary); }
.cs-bar-label { font-size: 13px; color: var(--ink-muted); margin-top: 12px; text-align: center; line-height: 1.4; }
.cs-dataviz-foot { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 6px; position: relative; }
.cs-dataviz-foot b { color: var(--primary); }

/* ---------- Quote ---------- */
.cs-pull { max-width: 760px; margin: 8px auto 0; padding: 30px 34px; background: var(--surface-mint); border-radius: 20px; border-left: 4px solid var(--primary); }
.cs-pull p { font-size: 21px; font-weight: 600; line-height: 1.5; color: var(--ink); margin: 0; max-width: none; }

/* ---------- Cross-link ---------- */
.cs-cross {
  max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 26px 30px; box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cs-cross:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cs-cross .cx-l { font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.cs-cross .cx-t { font-size: 19px; font-weight: 700; color: var(--ink); }
.cs-cross .cx-arrow { color: var(--primary); font-size: 22px; flex: none; }

@media (max-width: 760px) {
  .cs-section { padding: 52px 6vw; }
  .cs-hero { padding: 44px 6vw 0; }
  .cs-card-body { padding: 18px; }
  .cs-bars { gap: 18px; }
}

/* ---------- Discovery phases (numbered) — FOUND ---------- */
.cs-phases { max-width: 900px; margin: 0 auto; display: grid; gap: 18px; }
.cs-phase {
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-card);
  padding: 28px 30px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cs-phase:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cs-phase .ph-num {
  font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--primary);
  background: var(--tint-indigo); width: 58px; height: 58px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.cs-phase .ph-k { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.cs-phase h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.cs-phase ul { margin: 0; padding-left: 20px; }
.cs-phase li { font-size: 16px; line-height: 1.6; color: var(--ink-muted); margin-bottom: 8px; }
.cs-phase li strong { color: var(--ink); font-weight: 700; }
@media (max-width: 600px) { .cs-phase { grid-template-columns: 1fr; gap: 14px; padding: 22px; } }

/* ---------- Card grid (challenges / impact) ---------- */
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.cs-gcard { background: var(--surface); border-radius: 16px; padding: 24px 26px; box-shadow: var(--shadow-card); border-top: 3px solid var(--primary); }
.cs-gcard h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.cs-gcard p { font-size: 15.5px; line-height: 1.55; color: var(--ink-muted); margin: 0; max-width: none; }
.cs-gcard.win { border-top-color: var(--success); }
.cs-gcard.win .n { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--success); line-height: 1; display: block; margin-bottom: 10px; letter-spacing: -1px; }
