/* Styles for the case study page only. Shared header, footer, buttons and tags come from styles.css. */
.cs-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 64px 0 80px;
}
.cs-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -15%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14), transparent 65%);
  pointer-events: none;
}
.cs-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.cs-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  color: #8fa6ba;
  font-size: 12px;
}
.cs-breadcrumb a {
  color: #a9ded8;
}
.cs-breadcrumb a:hover {
  color: #fff;
}
.cs-hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}
.cs-hero h1 span {
  color: var(--teal);
}
.cs-lead {
  max-width: 560px;
  margin: 0 0 34px;
  color: #b9c8d6;
  font-size: 17px;
  line-height: 1.75;
}
.cs-facts {
  display: grid;
  grid-template-columns: 132px 80px 100px 100px;
  justify-content: space-between;
  gap: 18px 34px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.cs-facts dt {
  margin-bottom: 4px;
  color: #7f97ac;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cs-facts dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.cs-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 80% center;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Article and summary */
.cs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: start;
  padding: 88px 0 100px;
}
.cs-article {
  max-width: 760px;
}
.cs-block {
  position: relative;
  margin-bottom: 64px;
}
.cs-step {
  display: block;
  margin-bottom: 8px;
  color: #119e93;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.cs-block h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.cs-block > p {
  margin: 0 0 16px;
  color: #4b5e70;
  font-size: 16px;
  line-height: 1.85;
}

/* Chat excerpt */
.cs-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 0;
  padding: 26px;
  border: 1px solid #dfe9e7;
  border-radius: 18px;
  background: #f6faf9;
}
.cs-chat-q {
  align-self: flex-end;
  max-width: 80%;
  padding: 13px 17px;
  border-radius: 14px 14px 4px 14px;
  background: #d8f5ee;
  color: #153d51;
  font-size: 15px;
  line-height: 1.5;
}
.cs-chat-a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 88%;
}
.cs-chat-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eef7f5;
  border: 1px solid #d6ebe6;
}
.cs-chat-mark img {
  width: 30px;
  height: 30px;
}
.cs-chat-a p {
  margin: 0;
  padding: 13px 17px;
  border: 1px solid #e2ecea;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  color: #203e55;
  font-size: 15px;
  line-height: 1.55;
}
.cs-chat figcaption {
  color: #7a8a99;
  font-size: 12px;
  font-style: italic;
}

/* Findings */
.findings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.finding {
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.05);
}
.finding:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.finding-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.finding-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e6f6f2;
  color: #0f7a5a;
}
.finding-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.finding-num {
  color: #9aa9b6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.finding-status {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.finding-status-warn {
  background: #fdeeee;
  color: #a83a3f;
}
.finding-status-info {
  background: #eaf1f8;
  color: #2a4d6e;
}
.finding h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.finding dl {
  margin: 0;
}
.finding dt {
  margin-top: 10px;
  color: #119e93;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.finding dd {
  margin: 3px 0 0;
  color: #4b5e70;
  font-size: 14px;
  line-height: 1.65;
}
.finding code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #f0f4f7;
  color: #173b5b;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  white-space: nowrap;
}
.cs-block > .cs-note {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: #f3f9f8;
  color: #4b5e70;
  font-size: 14px;
  line-height: 1.7;
}

/* Takeaway quote */
.cs-quote {
  margin: 0 0 64px;
  padding: 40px 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0b2545, #0c3d52);
  color: #fff;
}
.cs-quote p {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.cs-quote p::before {
  content: "\201C";
  display: block;
  height: 38px;
  color: var(--teal);
  font-size: 64px;
  line-height: 1;
}

/* Benefits */
.cs-benefits {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-benefits li {
  position: relative;
  padding: 18px 20px 18px 54px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--ivory);
  color: #4b5e70;
  font-size: 15px;
  line-height: 1.7;
}
.cs-benefits li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 19px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1d9a4e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.cs-benefits b {
  color: var(--navy);
}
.cs-disclaimer {
  margin: 0;
  color: #7a8a99;
  font-size: 12px;
  line-height: 1.7;
}

/* Sticky summary card */
.cs-aside {
  position: sticky;
  top: 110px;
}
.cs-summary {
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.cs-summary-label {
  display: block;
  color: #a9ded8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.cs-summary-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cs-summary-stat b {
  color: var(--teal);
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.cs-summary-stat span {
  color: #c9d6e1;
  font-size: 14px;
  line-height: 1.4;
}
.cs-summary-tags {
  margin-bottom: 24px;
}
.cs-summary-tags li {
  font-size: 12px;
}
.cs-summary .button {
  width: 100%;
}

@media (max-width: 1050px) {
  .cs-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cs-article {
    max-width: none;
  }
  .cs-aside {
    position: static;
    order: -1;
    margin-bottom: 56px;
  }
}
@media (max-width: 900px) {
  .cs-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .cs-hero-media {
    max-width: 560px;
  }
  .cs-facts {
    grid-template-columns: repeat(2, auto);
  }
}
@media (max-width: 640px) {
  .cs-hero {
    padding: 44px 0 56px;
  }
  .cs-lead {
    font-size: 15px;
  }
  .cs-layout {
    padding: 56px 0 72px;
  }
  .cs-block {
    margin-bottom: 48px;
  }
  .cs-block > p {
    font-size: 15px;
  }
  .findings {
    grid-template-columns: 1fr;
  }
  .cs-chat {
    padding: 18px;
  }
  .cs-chat-q,
  .cs-chat-a {
    max-width: 100%;
  }
  .cs-quote {
    margin-bottom: 48px;
    padding: 28px 24px;
  }
}
