.case-study {
  --cs-ink: #13213b;
  --cs-muted: #465671;
  --cs-blue: #174fbe;
  --cs-line: #dce5f3;
  --cs-alt: #f3f7fe;
  --cs-radius: 18px;
  color: var(--cs-ink);
  background: #fff;
  line-height: 1.7;
}

.case-study h1,
.case-study h2,
.case-study h3 {
  color: var(--cs-ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0;
}

.case-study p {
  color: var(--cs-muted);
  margin: 0 0 16px;
}

.case-study p:last-child {
  margin-bottom: 0;
}

.case-study a:focus-visible,
.cs-faqs summary:focus-visible {
  outline: 3px solid #3785ff;
  outline-offset: 4px;
}

.cs-hero {
  color: #fff;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 4%, rgba(44, 111, 255, .35), transparent 53%),
    radial-gradient(ellipse at 90% 82%, rgba(117, 77, 243, .3), transparent 50%),
    linear-gradient(145deg, #08132f, #13295b 55%, #1b1943);
}

.cs-hub-hero {
  padding: 72px 0 58px;
}

.cs-detail-hero {
  padding: 56px 0 clamp(48px, 7vw, 105px);
}

.cs-hero .container {
  position: relative;
}

.cs-hero h1,
.cs-hero h2 {
  color: #fff;
  margin: 0 auto 16px;
  text-wrap: balance;
}

.cs-hero h1 {
  font-size: clamp(2.1rem, 4.7vw, 4rem);
}

.cs-hub-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.25rem);
}

.cs-hero h1 em {
  color: #a5ccff;
  font-style: normal;
}

.cs-hero p {
  max-width: 670px;
  margin-inline: auto;
  color: #dbe6ff;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
}

.cs-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 16px;
  border: 1px solid rgba(175, 202, 255, .35);
  border-radius: 100px;
  background: rgba(145, 184, 255, .12);
  color: #c9ddff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cs-back {
  display: block;
  width: fit-content;
  margin-bottom: 20px;
  color: #dbe6ff;
  font-size: .86rem;
  font-weight: 600;
}

.cs-back:hover {
  color: #fff;
  text-decoration: underline;
}

.cs-hero-copy {
  max-width: 980px;
  margin: 0 auto;
}

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.cs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 100px;
  color: #fff;
  background: #2159cd;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.cs-button:hover {
  color: #fff;
  background: #174ab5;
}

.cs-button-outline {
  border-color: rgba(215, 231, 255, .42);
  background: rgba(219, 230, 255, .07);
}

.cs-button-outline:hover {
  background: rgba(219, 230, 255, .16);
}

.cs-showcase {
  position: relative;
  max-width: 980px;
  margin: clamp(26px, 4vw, 44px) auto 0;
}

.cs-browser {
  max-width: 860px;
  overflow: hidden;
  margin: 0 auto 0 0;
  border: 1px solid #5b6e9a;
  border-radius: var(--cs-radius);
  background: #fff;
  box-shadow: 0 26px 65px rgba(0, 0, 0, .38);
}

.cs-browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  background: #152542;
}

.cs-browser-dots {
  display: flex;
  gap: 5px;
}

.cs-browser-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #879bc1;
}

.cs-browser-address {
  flex: 1;
  max-width: 250px;
  padding: 2px 10px;
  border-radius: 6px;
  background: #24385c;
  color: #dbe6ff;
  font-size: .72rem;
  text-align: left;
}

.cs-phone {
  position: absolute;
  right: 0;
  bottom: -22px;
  width: 20%;
  margin: 0;
  overflow: hidden;
  border: 7px solid #152542;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, .35);
}

.cs-browser img,
.cs-phone img,
.cs-card-image img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-listing {
  padding: clamp(32px, 4.5vw, 58px) 0;
  background: var(--cs-alt);
}

.cs-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.cs-listing-card {
  width: 100%;
  max-width: 420px;
  justify-self: start;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 42, 97, .08);
}

.cs-listing-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.cs-card-image {
  overflow: hidden;
  border-radius: var(--cs-radius) var(--cs-radius) 0 0;
  border-bottom: 1px solid var(--cs-line);
}

.cs-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px clamp(16px, 3vw, 24px) 16px;
}

.cs-card-body .cs-kicker {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  letter-spacing: .055em;
}

.cs-card-body h2 {
  margin: 2px 0 10px;
  font-size: 1.6rem;
}

.cs-card-body p {
  font-size: .95rem;
}

.cs-card-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--cs-line);
  color: var(--cs-blue);
  font-weight: 700;
}

.cs-card-arrow {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  font-size: 1.1rem;
  line-height: 1;
}

.cs-listing-card a:hover .cs-card-arrow,
.cs-listing-card a:focus-visible .cs-card-arrow {
  color: #fff;
  background: var(--cs-blue);
}

.cs-section-nav {
  height: auto;
  background: #13213e;
  line-height: inherit;
  box-shadow: none;
}

.cs-section-nav .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  padding-block: 12px;
}

.cs-section-nav a {
  padding: 5px 6px;
  color: #dbe6ff;
  font-size: .86rem;
  font-weight: 600;
}

.cs-section-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.cs-section {
  padding: clamp(44px, 7vw, 88px) 0;
  scroll-margin-top: 70px;
}

.cs-section-alt {
  background: var(--cs-alt);
}

.cs-section h2,
.cs-final-cta h2 {
  margin-bottom: 20px;
  font-size: clamp(1.65rem, 3.4vw, 2.6rem);
  text-wrap: balance;
}

.cs-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--cs-blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cs-intro {
  max-width: 760px;
}

.cs-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 24px 0 0;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  background: var(--cs-line);
}

.cs-specs > div {
  padding: 20px;
  background: #f8faff;
}

.cs-specs dt {
  color: var(--cs-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cs-specs dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.cs-specs a {
  color: var(--cs-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cs-split,
.cs-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cs-split {
  align-items: start;
  gap: clamp(22px, 5vw, 64px);
}

.cs-feature-grid {
  margin-top: 26px;
}

.cs-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 42, 97, .05);
}

.cs-panel h3 {
  margin-bottom: 12px;
  font-size: 1.14rem;
}

.cs-checks,
.cs-steps {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--cs-muted);
}

.case-study .cs-checks {
  list-style: disc;
}

.case-study .cs-steps {
  list-style: decimal;
}

.case-study .cs-checks li,
.case-study .cs-steps li {
  margin: 0;
  list-style: inherit;
}

.case-study .cs-checks li + li,
.case-study .cs-steps li + li {
  margin-top: 8px;
}

.cs-checks li::marker,
.cs-steps li::marker {
  color: var(--cs-blue);
  font-weight: 700;
}

.cs-process {
  columns: 2;
  column-gap: 48px;
}

.cs-process li {
  break-inside: avoid;
}

.cs-faqs {
  max-width: 850px;
}

.cs-faqs details {
  margin-top: 12px;
  border: 1px solid var(--cs-line);
  border-radius: 12px;
  background: #fff;
}

.cs-faqs summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
}

.cs-faqs summary::marker {
  color: var(--cs-blue);
}

.cs-faqs details p {
  padding: 0 18px 16px;
}

.cs-final-cta {
  padding: clamp(48px, 7vw, 82px) 0;
}

@media (max-width: 767px) {
  .cs-hub-hero {
    padding: 48px 0 44px;
  }

  .cs-detail-hero {
    padding-top: 32px;
  }

  .cs-browser {
    display: none;
  }

  .cs-phone {
    position: static;
    width: min(74%, 250px);
    margin: 0 auto;
  }

  .cs-split,
  .cs-feature-grid {
    grid-template-columns: 1fr;
  }

  .cs-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-process {
    columns: 1;
  }
}

@media (max-width: 450px) {
  .cs-specs {
    grid-template-columns: 1fr;
  }
}
