/* Case study page — extends /promo/styles.css */

.cs-main {
  padding-bottom: 5rem;
}

.cs-hero {
  padding: 7rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(0, 132, 61, 0.1), transparent),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  text-align: center;
}

.cs-hero-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(220px, 50vw);
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.cs-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 auto 1rem;
  color: var(--navy-dark);
  max-width: 40rem;
}

.cs-hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}

.cs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.cs-section {
  padding: 3.5rem 0;
}

.cs-section + .cs-section {
  border-top: 1px solid var(--border);
}

.cs-section-alt {
  background: #fff;
}

.cs-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.cs-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.cs-prose {
  max-width: 42rem;
}

.cs-prose p {
  margin: 0 0 1.1rem;
  color: var(--text);
  font-size: 1.05rem;
}

.cs-prose p:last-child {
  margin-bottom: 0;
}

.cs-prose a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cs-story-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.25rem;
  line-height: 1.35;
  max-width: 42rem;
}

.cs-feature-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cs-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cs-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cs-feature-grid .cs-feature:last-child:nth-child(odd) {
    grid-column: 2;
  }
}

.cs-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cs-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 48, 135, 0.12);
}

.cs-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.1), rgba(0, 132, 61, 0.12));
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.cs-feature-icon svg {
  width: 24px;
  height: 24px;
}

.cs-feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.cs-feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.cs-privacy {
  margin-top: 1.75rem;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.06), rgba(0, 132, 61, 0.08));
  border: 1px solid rgba(0, 48, 135, 0.12);
}

.cs-privacy h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.cs-privacy p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.cs-tech-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.cs-tech-list li {
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.cs-tech-list strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cs-tech-list span,
.cs-tech-list ul {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cs-tech-list ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.cs-section#demo .section-title {
  margin-bottom: 0.5rem;
}

.cs-section#demo .section-lead {
  margin-bottom: 1.75rem;
}

.cs-learnings {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.cs-learnings li {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow);
}

.cs-learnings strong {
  display: block;
  color: var(--navy-dark);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cs-learnings p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cs-cta {
  padding: 3.5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(0, 132, 61, 0.1), transparent),
    linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  border-top: 1px solid var(--border);
}

.cs-cta h2 {
  margin-bottom: 0.75rem;
}

.cs-cta-lead {
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cs-cta-soft {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}
