/* ============================================================
   CASE STUDY DETAIL PAGE — shared styles
   Loaded after global styles.css. Reuses .browser, .testimonials,
   .final-cta, .r-steps/.r-step, .eyebrow-wrap, btn-primary, .h-2,
   .em-italic from global.
   ============================================================ */

/* HERO ------------------------------------------------------- */
.cs-detail-hero {
  padding-top: 160px;
  padding-bottom: 96px;
}
.cs-detail-hero .container { max-width: 1200px; }
.cs-detail-hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}
.cs-detail-hero .crumb {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 22px;
}
.cs-detail-hero .crumb a { color: var(--mute); text-decoration: none; }
.cs-detail-hero .crumb a:hover { color: var(--terracotta); }
.cs-detail-hero .crumb .sep { color: var(--border); margin: 0 8px; }
.cs-detail-hero .industry {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 22px;
}
.cs-detail-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 22px;
  text-wrap: balance;
}
.cs-detail-hero .headline-result {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--terracotta);
  margin: 0 0 28px;
  max-width: 22ch;
  text-wrap: balance;
}
.cs-detail-hero .descriptor {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  max-width: 50ch;
  margin: 0;
}
.cs-detail-hero .hero-mock {
  width: 100%;
}
@media (max-width: 980px) {
  .cs-detail-hero { padding-top: 120px; padding-bottom: 64px; }
  .cs-detail-hero .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cs-detail-hero .headline-result { max-width: none; }
}

/* AT A GLANCE ------------------------------------------------ */
.cs-glance { padding-top: 80px; padding-bottom: 80px; }
.cs-glance .container { max-width: 1200px; }
.cs-glance .eyebrow-wrap { margin-bottom: 36px; }
.cs-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-stat {
  padding: 48px 24px 44px;
  border-right: 1px solid var(--border);
}
.cs-stat:last-child { border-right: none; }
.cs-stat .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 5.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: block;
  margin-bottom: 18px;
}
.cs-stat .num em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 500;
}
.cs-stat .lbl {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.cs-glance .glance-meta {
  margin: 40px auto 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--mute);
  max-width: 80ch;
  line-height: 1.55;
}
.cs-glance .glance-meta b {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 820px) {
  .cs-stat-strip { grid-template-columns: 1fr 1fr; }
  .cs-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 18px; }
  .cs-stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .cs-stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* LONG-FORM SECTIONS (Challenge, Playbook) ------------------- */
.cs-longform { padding-top: 120px; padding-bottom: 120px; }
.cs-longform .container { max-width: 1100px; }
.cs-longform .lf-head { max-width: 720px; margin-bottom: 48px; }
.cs-longform .lf-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.cs-longform .lf-intro {
  max-width: 640px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 48px;
}
.cs-prose {
  max-width: 720px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
}
.cs-prose p { margin: 0 0 24px; }
.cs-prose p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .cs-longform { padding-top: 88px; padding-bottom: 88px; }
  .cs-longform .lf-head h2 { font-size: 32px; }
  .cs-prose { font-size: 16px; }
}

/* PLAYBOOK steps reuse global .r-steps / .r-step --------------
   No extra rules needed — the Apply page's pattern is global. */

/* RESULTS ---------------------------------------------------- */
.cs-results { padding-top: 120px; padding-bottom: 120px; }
.cs-results .container { max-width: 1200px; }
.cs-results .lf-head { max-width: 880px; margin-bottom: 64px; }
.cs-results .lf-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 72px;
}
.result-block {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.result-block .r-num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(56px, 6.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 16px;
}
.result-block .r-num .arrow {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--mute);
  margin: 0 10px;
  font-size: 0.6em;
  vertical-align: 0.1em;
}
.result-block .r-num em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 500;
}
.result-block .r-lbl {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 18px;
}
.result-block p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
  max-width: 52ch;
}
@media (max-width: 820px) {
  .cs-results { padding-top: 88px; padding-bottom: 88px; }
  .results-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* CLIENT QUOTE — dark inverted (reuses .testimonials) -------- */
.cs-quote.testimonials {
  padding-top: 130px;
  padding-bottom: 130px;
  text-align: center;
}
.cs-quote .container { max-width: 900px; }
.cs-quote .eyebrow-wrap { justify-content: center; align-items: center; }
.cs-quote .eyebrow-wrap .section-rule { display: none; }
.cs-quote .pq {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--off-white);
  margin: 32px auto 36px;
  max-width: 28ch;
  text-wrap: balance;
}
.cs-quote .pq::before {
  content: "\201C";
  display: block;
  font-size: 1.4em;
  line-height: 0.6;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.cs-quote .attrib {
  display: inline-block;
  padding-top: 22px;
  position: relative;
  font-family: var(--sans);
  font-size: 14px;
  color: #C7C9CC;
  letter-spacing: 0.01em;
  line-height: 1.55;
}
.cs-quote .attrib::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 32px; height: 1px;
  background: var(--terracotta);
  transform: translateX(-50%);
}
.cs-quote .attrib .who { color: var(--off-white); font-weight: 500; display: block; margin-bottom: 4px; }
@media (max-width: 720px) {
  .cs-quote.testimonials { padding-top: 88px; padding-bottom: 88px; }
}

/* MORE CASE STUDIES ----------------------------------------- */
.cs-more { padding-top: 120px; padding-bottom: 120px; }
.cs-more .container { max-width: 1200px; }
.cs-more .lf-head { max-width: 880px; margin-bottom: 48px; }
.cs-more .lf-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.cs-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.cs-mini {
  background: var(--paper-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.cs-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift-card);
  border-color: var(--terracotta);
}
.cs-mini .cs-mock {
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
}
.cs-mini .cs-tag {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.cs-mini h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 10px;
}
.cs-mini .mini-result {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--terracotta);
  margin: 0 0 18px;
}
.cs-mini .mini-link {
  margin-top: auto;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cs-mini .mini-link .chev { transition: transform 180ms ease; }
.cs-mini:hover .mini-link .chev { transform: translateX(3px); }
@media (max-width: 960px) {
  .cs-more { padding-top: 88px; padding-bottom: 88px; }
  .cs-more-grid { grid-template-columns: 1fr; gap: 24px; }
  .cs-mini { max-width: 520px; margin: 0 auto; width: 100%; }
}

/* FINAL CTA — sub line under button */
.final-cta .since-line {
  margin-top: 18px;
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0.01em;
}

/* ============================================================
   SHARED MOCKUP INTERIORS — same patterns as case-studies.html
   Inlined here so case-study detail pages don't depend on the
   index page's <style> block.
   ============================================================ */
.cs-mock .browser-body {
  min-height: 0;
  height: 100%;
  padding: 0;
  background: var(--paper);
  overflow: hidden;
  position: relative;
}
.hero-mock .browser-body { min-height: 320px; }

/* SERP --------------------------------------------------- */
.mock-serp .g-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.mock-serp .g-logo {
  font-family: var(--serif); font-weight: 600;
  font-size: 13px; letter-spacing: -0.01em; color: var(--ink);
}
.mock-serp .g-logo span { color: var(--terracotta); }
.mock-serp .g-search {
  flex: 1;
  height: 22px; border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--paper-elev);
  display: flex; align-items: center; padding: 0 10px;
  font-family: var(--sans); font-size: 10px; color: var(--mute);
}
.mock-serp .g-results {
  padding: 10px 14px 0; display: flex; flex-direction: column; gap: 10px;
}
.mock-serp .g-tabs {
  display: flex; gap: 14px;
  font-family: var(--sans); font-size: 9px;
  color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.mock-serp .g-tabs .on {
  color: var(--terracotta); position: relative; padding-bottom: 6px; margin-bottom: -6px;
  border-bottom: 1.5px solid var(--terracotta);
}
.mock-serp .g-result {
  display: flex; flex-direction: column; gap: 3px;
  padding: 6px 8px; border-radius: 4px;
}
.mock-serp .g-result.featured {
  background: rgba(184, 71, 46, 0.06);
  border: 1px dashed rgba(184, 71, 46, 0.45);
}
.mock-serp .g-result .g-crumb {
  font-family: var(--sans); font-size: 9px; color: var(--mute); letter-spacing: 0.02em;
}
.mock-serp .g-result .g-title {
  font-family: var(--serif); font-weight: 600; font-size: 12px; color: var(--terracotta);
  line-height: 1.25;
}
.mock-serp .g-result .g-snippet {
  font-family: var(--sans); font-size: 9.5px; color: var(--body); line-height: 1.4;
}
.mock-serp .g-result .g-stars {
  font-family: var(--sans); font-size: 8.5px; color: var(--mute);
}
.mock-serp .g-result .g-stars b { color: var(--terracotta); font-weight: 600; }

/* Larger sizing when hero-mock for legibility */
.hero-mock .mock-serp .g-bar { padding: 14px 18px; }
.hero-mock .mock-serp .g-logo { font-size: 16px; }
.hero-mock .mock-serp .g-search { height: 28px; font-size: 12px; }
.hero-mock .mock-serp .g-results { padding: 14px 18px 18px; gap: 14px; }
.hero-mock .mock-serp .g-tabs { font-size: 10.5px; }
.hero-mock .mock-serp .g-result { padding: 10px 12px; gap: 5px; }
.hero-mock .mock-serp .g-result .g-crumb { font-size: 11px; }
.hero-mock .mock-serp .g-result .g-title { font-size: 15px; }
.hero-mock .mock-serp .g-result .g-snippet { font-size: 11.5px; }
.hero-mock .mock-serp .g-result .g-stars { font-size: 10.5px; }

/* Ads dashboard ---------------------------------------- */
.mock-ads .ads-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.mock-ads .ads-bar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terracotta);
}
.mock-ads .ads-bar .ttl {
  font-family: var(--sans); font-weight: 600;
  font-size: 10px; letter-spacing: 0.04em; color: var(--ink);
}
.mock-ads .ads-bar .crumb {
  font-family: var(--sans); font-size: 9px; color: var(--mute);
  margin-left: auto;
}
.mock-ads .ads-body {
  padding: 12px 14px 0; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.mock-ads .kpi { display: flex; align-items: baseline; gap: 10px; }
.mock-ads .kpi .lbl {
  font-family: var(--sans); font-weight: 600;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mute);
}
.mock-ads .kpi .val {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
}
.mock-ads .kpi .delta {
  font-family: var(--sans); font-weight: 600;
  font-size: 10px; color: var(--terracotta);
}
.mock-ads .chart {
  flex: 1; min-height: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper-elev);
  padding: 8px;
  display: flex;
}
.mock-ads .chart svg { width: 100%; height: 100%; display: block; }
.mock-ads .ads-foot {
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-size: 8.5px; color: var(--mute);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 0 8px;
}

/* Site hero -------------------------------------------- */
.mock-site { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-elev) 100%); }
.mock-site .site-nav {
  display: flex; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: #fff;
}
.mock-site .site-nav .brand {
  font-family: var(--serif); font-weight: 600;
  font-size: 11px; color: var(--ink); letter-spacing: -0.01em;
}
.mock-site .site-nav .links {
  display: flex; gap: 12px; margin-left: auto;
  font-family: var(--sans); font-size: 9px; color: var(--mute);
  letter-spacing: 0.04em;
}
.mock-site .site-nav .book {
  margin-left: 12px;
  background: var(--terracotta); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 9px;
  padding: 5px 9px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mock-site .site-hero {
  padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1; justify-content: center;
}
.mock-site .eb {
  font-family: var(--sans); font-weight: 600;
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terracotta);
}
.mock-site .h {
  font-family: var(--serif); font-weight: 600;
  font-size: 22px; line-height: 1.06; letter-spacing: -0.02em;
  color: var(--ink); max-width: 18ch;
}
.mock-site .h em { font-style: italic; color: var(--terracotta); font-weight: 500; }
.mock-site .row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.mock-site .cta {
  background: var(--terracotta); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 9px;
  padding: 7px 12px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mock-site .meta {
  font-family: var(--sans); font-size: 9px; color: var(--mute);
}

/* Map pack --------------------------------------------- */
.mock-map .map-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.mock-map .map-bar .q {
  flex: 1;
  height: 20px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--paper-elev);
  display: flex; align-items: center; padding: 0 10px;
  font-family: var(--sans); font-size: 10px; color: var(--ink);
}
.mock-map .map-bar .q .term { color: var(--terracotta); font-weight: 600; margin-right: 4px; }
.mock-map .map-body {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 0;
}
.mock-map .map-canvas {
  position: relative;
  background: linear-gradient(180deg, #EFEAE0 0%, #E8E2D6 100%);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.mock-map .map-canvas .road {
  position: absolute; background: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(184,71,46,0.08);
  border-bottom: 1px solid rgba(184,71,46,0.08);
}
.mock-map .map-canvas .road.r1 { left: -10%; right: -10%; top: 28%; height: 3px; transform: rotate(-12deg); }
.mock-map .map-canvas .road.r2 { left: -10%; right: -10%; top: 64%; height: 2px; transform: rotate(8deg); }
.mock-map .map-canvas .road.r3 { top: -10%; bottom: -10%; left: 38%; width: 2px; transform: rotate(6deg); }
.mock-map .map-canvas .pin {
  position: absolute;
  width: 18px; height: 18px;
  background: var(--terracotta);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 6px rgba(184,71,46,0.35);
}
.mock-map .map-canvas .pin::after {
  content: "1";
  position: absolute; inset: 0;
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700; font-size: 9px; color: #fff;
  padding-bottom: 2px; padding-right: 1px;
}
.mock-map .map-canvas .pin.p1 { top: 38%; left: 46%; }
.mock-map .map-canvas .pin.dim {
  background: rgba(15,20,25,0.45); box-shadow: none;
  width: 14px; height: 14px;
}
.mock-map .map-canvas .pin.dim::after { content: ""; }
.mock-map .map-canvas .pin.p2 { top: 22%; left: 18%; }
.mock-map .map-canvas .pin.p3 { top: 72%; left: 72%; }
.mock-map .map-list { display: flex; flex-direction: column; background: #fff; }
.mock-map .map-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex: 1;
}
.mock-map .map-row:last-child { border-bottom: none; }
.mock-map .map-row.featured { background: rgba(184,71,46,0.06); }
.mock-map .map-row .rank {
  font-family: var(--serif); font-weight: 600; font-size: 14px;
  color: var(--mute); width: 14px;
}
.mock-map .map-row.featured .rank { color: var(--terracotta); }
.mock-map .map-row .info { flex: 1; min-width: 0; }
.mock-map .map-row .biz {
  font-family: var(--sans); font-weight: 600; font-size: 10px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-map .map-row.featured .biz { color: var(--terracotta); }
.mock-map .map-row .stars {
  font-family: var(--sans); font-size: 8.5px; color: var(--mute);
}
.mock-map .map-row .stars b { color: var(--ink); font-weight: 600; }
.mock-map .map-row.featured .stars b { color: var(--terracotta); }
