/* Layout for the illustrated use-case page. */

.usecase-page {
  background: #fafafa;
}

.usecase-hero {
  padding: clamp(3rem, 7vw, 5rem) 20px 3.25rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9f0f2 100%);
}

.usecase-hero .container,
.featured-cases,
.more-cases {
  max-width: 1040px;
}

.hero-kicker,
.story-kind {
  color: #426c72;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.usecase-hero h2 {
  max-width: 750px;
  margin: .4rem 0 1rem;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.hero-intro {
  max-width: 760px;
  font-size: 1.15rem;
}

.hero-note {
  max-width: 760px;
  margin-top: 1rem;
  color: #52616a;
}

.featured-cases {
  padding-top: 3.5rem;
}

.featured-cases > h2,
.more-cases > h2 {
  font-size: 1.8rem;
  line-height: 1.25;
}

.featured-story {
  padding: 3rem 0;
  border-bottom: 1px solid #dce3e6;
}

.story-copy {
  max-width: 760px;
}

.story-copy h3 {
  margin: .45rem 0 .65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.story-copy > p:last-child {
  font-size: 1.05rem;
}

.featured-story figure {
  max-width: 960px;
  margin: 1.5rem 0 0;
}

.featured-story img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.featured-story figcaption {
  margin-top: .8rem;
  color: #59666d;
  font-size: .92rem;
}

.more-cases {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.more-cases > p {
  max-width: 760px;
  margin-top: .55rem;
  color: #52616a;
}

.case-group {
  margin-top: 2.5rem;
}

.case-group h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.case-card {
  padding: 1.25rem 1.4rem;
  background: white;
  border: 1px solid #e1e7e9;
  border-radius: 10px;
}

.case-card h4 {
  margin-bottom: .4rem;
  font-size: 1.08rem;
}

.case-card p {
  color: #52616a;
}

.usecase-next-step {
  padding: 3rem 20px 4rem;
  background: #edf4f3;
  border-top: 1px solid #dce8e5;
}

.usecase-next-step .container {
  max-width: 1040px;
}

.usecase-next-step h2 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.usecase-next-step p {
  max-width: 680px;
  margin: .6rem 0 1.5rem;
  color: #465b5e;
}

.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.language-control {
  display: inline-flex;
  align-items: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-theme="dark"] .usecase-page {
  background: #171e25;
}

html[data-theme="dark"] .usecase-hero {
  background: linear-gradient(135deg, #1d2a31 0%, #1b252c 100%);
}

html[data-theme="dark"] .hero-note,
html[data-theme="dark"] .more-cases > p,
html[data-theme="dark"] .featured-story figcaption,
html[data-theme="dark"] .case-card p {
  color: #becbd5;
}

html[data-theme="dark"] .hero-kicker,
html[data-theme="dark"] .story-kind {
  color: #9bc7c3;
}

html[data-theme="dark"] .featured-story {
  border-bottom-color: #384650;
}

html[data-theme="dark"] .case-card {
  background: #202831;
  border-color: #3a4651;
}

html[data-theme="dark"] .usecase-next-step {
  background: #1f2e32;
  border-top-color: #3a5053;
}

html[data-theme="dark"] .usecase-next-step p {
  color: #c2d3d4;
}

html[data-theme="dark"] .usecase-next-step .btn-secondary {
  color: #d4e7f6;
  border-color: #88afd1;
}

html[data-theme="dark"] .usecase-next-step .btn-secondary:hover {
  background: #2b424c;
}

@media (max-width: 700px) {
  .site-header .header-right {
    flex-wrap: wrap;
  }

  .featured-cases,
  .more-cases {
    padding-top: 2.5rem;
  }

  .featured-story {
    padding: 2.25rem 0;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }
}
