/* Shared styles for the case study pages (Figma: NED — Case Study redesign).
   Nav, buttons, footer and sticky CTA mirror index.html — keep them in sync. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #f5f4f1; color: #111; font: 400 16px/1.5 "Inter", system-ui, sans-serif; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.cs-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: 50px; padding-right: 50px; }
@media (max-width: 1100px) { .cs-wrap { padding-left: 20px; padding-right: 20px; } }

.btn-primary, .btn-ghost-dark { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 14px 28px; font-weight: 600; font-size: 16px; line-height: 24px; transition: box-shadow .25s ease, transform .25s ease, background .25s ease; }
.btn-primary { background: #eaf790; color: #111; border: 0; }
.btn-ghost-dark { border: 1px solid rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-primary:hover, .btn-primary:focus-visible { background: #f0fa9f; box-shadow: 0 0 26px rgba(234,247,144,.65), 0 6px 18px rgba(0,0,0,.12); transform: translateY(-1px); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { box-shadow: 0 0 22px rgba(234,247,144,.5); border-color: rgba(234,247,144,.7); transform: translateY(-1px); }

.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease var(--rvd, 0ms), transform .6s ease var(--rvd, 0ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header (same as homepage) ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(245,244,241,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #e9e7e1; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo img { height: 17px; width: auto; display: block; }
.nav-links { display: flex; gap: 40px; font-weight: 500; font-size: 15px; color: #4a4a4a; }
.nav-links a:hover { color: #111; }
.nav .btn-primary { padding: 12px 24px; font-size: 15px; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 700px) {
  .logo img { height: 13px; }
  .nav { padding: 12px 0; }
  .nav .btn-primary { padding: 11px 18px; font-size: 13px; }
}

/* ---------- Shared type ---------- */
.cs-pill { display: inline-block; background: #eaf790; color: #111; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: 1.4px; text-transform: uppercase; }
.cs-h2 { font-weight: 700; font-size: 56px; line-height: 59px; letter-spacing: -1.4px; color: #111; }
.cs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.cs-head > div { width: 640px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cs-head > p { width: 520px; max-width: 100%; padding-bottom: 6px; font-size: 17px; line-height: 27px; color: #4a4a47; }
@media (max-width: 1100px) { .cs-head { flex-direction: column; align-items: flex-start; gap: 24px; } .cs-head > p { padding-bottom: 0; } }
@media (max-width: 700px) { .cs-h2 { font-size: 36px; line-height: 40px; letter-spacing: -0.8px; } .cs-head > p { font-size: 16px; line-height: 25px; } }

/* ---------- Hero ---------- */
.cs-hero { background: #111; padding-top: 96px; }
.cs-hero-grid { display: flex; align-items: center; gap: 64px; }
.cs-hero-copy { flex: 1 1 0; min-width: 0; }
.cs-eyebrow { font-weight: 600; font-size: 13px; line-height: 19.5px; letter-spacing: 1.6px; text-transform: uppercase; color: #eaf790; }
.cs-hero h1 { padding-top: 22px; font-weight: 700; font-size: 76px; line-height: 78px; letter-spacing: -2.4px; color: #eaf790; max-width: 756px; }
.cs-hero h1 span { color: #fff; }
.cs-hero-sub { padding-top: 28px; max-width: 600px; font-size: 21px; line-height: 32px; color: #e6e6e1; }
.cs-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 40px; }
.cs-hero-img { flex: none; width: 520px; height: 620px; border-radius: 24px; overflow: hidden; background: #2a2a28; }
.cs-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-meta { display: flex; margin-top: 80px; border-top: 1px solid rgba(255,255,255,.12); }
.cs-meta > div { flex: 1 1 0; min-width: 0; padding: 28px 0 32px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.cs-meta > div:first-child { padding-left: 0; }
.cs-meta > div:last-child { border-right: 0; }
.cs-meta dt { font-weight: 600; font-size: 11px; line-height: 19.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #8a8a85; }
.cs-meta dd { padding-top: 8px; font-weight: 600; font-size: 17px; line-height: 21px; color: #fff; }
@media (max-width: 1100px) {
  .cs-hero { padding-top: 64px; }
  .cs-hero-grid { flex-direction: column; align-items: stretch; gap: 48px; }
  .cs-hero-img { width: 100%; height: 420px; }
  .cs-meta { flex-wrap: wrap; margin-top: 48px; }
  .cs-meta > div { flex: 1 1 33%; padding: 20px 20px 20px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .cs-meta > div:first-child { padding-left: 0; }
}
@media (max-width: 700px) {
  .cs-hero { padding-top: 48px; }
  .cs-hero h1 { padding-top: 16px; font-size: 44px; line-height: 48px; letter-spacing: -1.4px; }
  .cs-hero-sub { padding-top: 20px; font-size: 18px; line-height: 28px; }
  .cs-hero-ctas { padding-top: 28px; }
  .cs-hero-ctas a { flex: 1 1 100%; }
  .cs-hero-img { height: 360px; }
  .cs-meta > div { flex-basis: 50%; }
  .cs-meta > div:nth-child(odd) { padding-right: 16px; }
}

/* ---------- Headline stats ---------- */
.cs-stats-sec { background: #111; padding: 40px 0 112px; }
.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cs-stat { background: #2a2a28; border-radius: 20px; padding: 32px 28px; }
.cs-stat b { display: block; font-weight: 700; font-size: 56px; line-height: 60px; letter-spacing: -1.6px; color: #eaf790; white-space: nowrap; }
.cs-stat span { display: block; padding-top: 12px; font-size: 15px; line-height: 22px; color: #a8a8a3; }
@media (max-width: 1100px) { .cs-stats { grid-template-columns: repeat(2, 1fr); } .cs-stats-sec { padding-bottom: 72px; } }
@media (max-width: 700px) {
  .cs-stats { gap: 12px; }
  .cs-stat { padding: 22px 18px; border-radius: 16px; }
  .cs-stat b { font-size: 34px; line-height: 38px; letter-spacing: -1px; }
  .cs-stat span { font-size: 14px; line-height: 20px; padding-top: 8px; }
}

/* ---------- Sections ---------- */
.cs-sec { padding: 112px 0; }
.cs-sec.white { background: #fff; }
@media (max-width: 700px) { .cs-sec { padding: 72px 0; } }

/* 01 · starting point: numbered problem cards */
.cs-problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.cs-problem { background: #fff; border-radius: 20px; padding: 32px 30px 36px; }
.cs-num { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: #eaf790; font-weight: 700; font-size: 13px; color: #111; }
.cs-problem h3 { padding-top: 40px; font-weight: 700; font-size: 22px; line-height: 27px; color: #111; }
.cs-problem p { padding-top: 12px; font-size: 16px; line-height: 24px; color: #4a4a47; }
.cs-problem.cta { background: #eaf790; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.cs-problem.cta p { padding: 0; font-weight: 600; font-size: 22px; line-height: 30px; letter-spacing: -0.3px; color: #111; }
.cs-problem.cta a { font-weight: 600; font-size: 15px; color: #111; }
.cs-problem.cta a:hover { opacity: .7; }
@media (max-width: 1100px) { .cs-problems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .cs-problems { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .cs-problem { padding: 26px 22px 28px; }
  .cs-problem h3 { padding-top: 24px; font-size: 20px; line-height: 26px; }
}

/* 02 · what we changed: numbered steps */
.cs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 28px; margin-top: 56px; }
.cs-step { border-top: 2px solid #111; padding-top: 24px; }
.cs-step > b { display: block; font-weight: 700; font-size: 72px; line-height: 72px; letter-spacing: -2px; color: #d9d7d0; }
.cs-step h3 { padding-top: 28px; font-weight: 700; font-size: 22px; line-height: 28px; color: #111; }
.cs-step p { padding-top: 10px; font-size: 16px; line-height: 25px; color: #4a4a47; }
@media (max-width: 1100px) { .cs-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .cs-steps { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .cs-step > b { font-size: 48px; line-height: 48px; }
  .cs-step h3 { padding-top: 16px; font-size: 20px; line-height: 26px; }
}

/* 03 · what it delivered: dark results panel */
.cs-results { background: #111; border-radius: 28px; padding: 64px; }
.cs-results-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.cs-results-head > div { width: 560px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cs-results-head .cs-h2 { color: #fff; }
.cs-results-head > p { width: 560px; max-width: 100%; padding-top: 44px; font-size: 18px; line-height: 29px; color: #c9c9c4; }
.cs-results-head > p strong { font-weight: 600; color: #fff; }
.cs-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.cs-chart { background: #2a2a28; border-radius: 20px; padding: 28px; }
.cs-chart-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-chart-top b { font-weight: 600; font-size: 15px; color: #fff; }
.cs-chip { flex: none; background: #eaf790; color: #111; border-radius: 999px; padding: 5px 10px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.cs-chart-vals { display: flex; align-items: flex-end; gap: 14px; padding-top: 28px; }
.cs-chart-vals .before { font-weight: 600; font-size: 22px; line-height: 27px; color: #8a8a85; padding-bottom: 6px; }
.cs-chart-vals .arrow { font-size: 20px; line-height: 24px; color: #8a8a85; padding-bottom: 8px; }
.cs-chart-vals .after { font-weight: 700; font-size: 48px; line-height: 50px; letter-spacing: -1.4px; color: #fff; }
.cs-chart img { width: 100%; height: 90px; margin-top: 18px; }
.cs-chart-axis { display: flex; justify-content: space-between; padding-top: 8px; font-size: 12px; color: #8a8a85; }
@media (max-width: 1100px) {
  .cs-results { padding: 48px 32px; }
  .cs-results-head { flex-direction: column; gap: 20px; }
  .cs-results-head > p { padding-top: 0; }
  .cs-charts { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cs-results { padding: 36px 20px; border-radius: 24px; }
  .cs-results-head > p { font-size: 16px; line-height: 26px; }
  .cs-charts { margin-top: 32px; gap: 12px; }
  .cs-chart { padding: 22px 20px; }
  .cs-chart-vals .after { font-size: 40px; line-height: 44px; }
}

/* Key takeaway */
.cs-takeaway { display: flex; align-items: flex-start; gap: 80px; }
.cs-takeaway .cs-pill { flex: none; }
.cs-takeaway > div { max-width: 980px; }
.cs-takeaway blockquote { font-weight: 600; font-size: 34px; line-height: 44px; letter-spacing: -0.7px; color: #111; }
.cs-takeaway mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: #eaf790; text-decoration-thickness: 10px; text-decoration-skip-ink: none; }
.cs-takeaway > div > p { padding-top: 28px; font-size: 16px; line-height: 24px; color: #6e6e69; }
@media (max-width: 1100px) { .cs-takeaway { flex-direction: column; gap: 24px; } }
@media (max-width: 700px) { .cs-takeaway blockquote { font-size: 24px; line-height: 33px; letter-spacing: -0.4px; } .cs-takeaway mark { text-decoration-thickness: 7px; } }

/* Closing CTA */
.cs-cta { background: #111; padding: 120px 0; }
.cs-cta-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.cs-cta-copy { max-width: 720px; }
.cs-avail { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(234,247,144,.5); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #eaf790; }
.cs-avail::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #eaf790; }
.cs-cta h2 { margin-top: 24px; font-weight: 700; font-size: 64px; line-height: 66px; letter-spacing: -1.8px; color: #fff; }
.cs-cta-copy > p { padding-top: 24px; max-width: 620px; font-size: 19px; line-height: 30px; color: #a8a8a3; }
.cs-cta-act { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cs-cta-act span { font-size: 14px; color: #a8a8a3; }
@media (max-width: 1100px) { .cs-cta-row { flex-direction: column; align-items: flex-start; gap: 36px; } .cs-cta-act { align-items: flex-start; } }
@media (max-width: 700px) {
  .cs-cta { padding: 80px 0; }
  .cs-cta h2 { font-size: 40px; line-height: 44px; letter-spacing: -1px; }
  .cs-cta-copy > p { font-size: 17px; line-height: 27px; }
  .cs-cta-act { align-self: stretch; align-items: center; }
  .cs-cta-act .btn-primary { width: 100%; }
}

/* ---------- Footer (same as homepage) ---------- */
footer { background: #111; border-top: 1px solid #242423; padding-top: 72px; padding-bottom: 48px; }
.f-inner { display: flex; flex-direction: column; gap: 64px; }
.f-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.f-brand { display: flex; flex-direction: column; gap: 14px; }
.f-logo img { height: 15px; width: auto; display: block; }
.f-brand p { font-size: 15px; line-height: 1.5; color: #a8a8a3; max-width: 360px; }
.f-cols { display: flex; gap: 80px; }
.f-col { display: flex; flex-direction: column; gap: 12px; }
.f-col b { font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: #fff; }
.f-col a { font-size: 15px; color: #a8a8a3; }
.f-col a:hover { color: #eaf790; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #242423; padding-top: 28px; font-size: 13px; color: #8a8a85; }
@media (max-width: 700px) { .f-cols { flex-wrap: wrap; gap: 40px; } }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #f5f4f1; padding: 12px 16px; box-shadow: 0 -6px 24px rgba(0,0,0,.12); transform: translateY(110%); transition: transform .35s ease; display: none; }
.sticky-cta .btn-primary { width: 100%; }
.sticky-cta.show { transform: none; }
@media (max-width: 760px) { .sticky-cta { display: block; } }
