/* Block 03: original card composition within the shared site container. */
.case-section {
  padding: var(--sds-label-top) 0 56px;
  background: var(--sds-warm);
  box-shadow: inset 0 1px 0 rgba(7, 29, 66, .06);
  isolation: isolate;
  overflow: hidden;
}

.case-header {
  position: relative;
  padding-right: 260px;
  margin-bottom: 24px;
}

.case-title {
  margin: 0 0 44px;
}

.case-lead {
  width: calc(100% + 260px);
  max-width: none;
  margin: 0;
  color: var(--sds-muted);
  font-size: 20px;
  line-height: 1.45;
}

.case-motto {
  position: absolute;
  top: 22px;
  right: auto;
  left: calc(79% - 113px);
  width: 230px;
  max-width: none;
  padding: 0;
  border: 0;
  color: #173c74;
  text-align: center;
  transform: rotate(-8deg);
  pointer-events: none;
}

.case-motto::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 32px;
  width: 175px;
  height: 3px;
  border-radius: 100%;
  background: #0eb4a5;
  transform: rotate(-9deg);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.case-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--sds-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(9, 30, 69, .045);
}

.case-card:last-child {
  grid-column: auto;
  width: auto;
  justify-self: stretch;
}

.case-photo {
  position: relative;
  height: clamp(170px, 14.8vw, 225px);
  aspect-ratio: auto;
  overflow: visible;
}

.case-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-mark {
  position: absolute;
  right: auto;
  bottom: -23px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--color);
  color: #fff;
  box-shadow: none;
}

.case-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 29px 23px 22px;
}

.case-name {
  margin: 0 0 7px;
  font-size: clamp(23px, 1.78vw, 28px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
}

.case-intro {
  min-height: 66px;
  margin: 0 0 16px;
  color: var(--sds-muted);
  font-size: clamp(15px, 1.11vw, 17px);
  line-height: 1.35;
}

.case-features {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.case-features li {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  color: #47648e;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.3;
}

.case-feature-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 35px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--color);
}

.case-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-bottom {
  display: block;
  margin-top: auto;
  padding-top: 0;
}

.case-proof,
.case-orange .case-proof {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--dark);
  font-size: clamp(13px, .94vw, 15px);
  line-height: 1.3;
}

.case-proof .roundcheck {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.case-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 14px;
  padding: 14px 13px;
  border: 1.5px solid var(--color);
  border-radius: 12px;
  background: var(--soft);
  color: var(--color);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
}

.case-link:hover,
.case-link:focus-visible {
  background: var(--color);
  color: #fff;
  transform: translateY(-1px);
}

.case-link:focus-visible {
  outline: 3px solid #173d7c;
  outline-offset: 3px;
}

.case-link .arrow {
  font-size: 22px;
  line-height: 1;
}

.case-teal { --color: #009a8e; --soft: #eaf8f6; --dark: #087c73; }
.case-orange { --color: #f45120; --soft: #fff1eb; --dark: #dd481b; }
.case-blue { --color: #1676dc; --soft: #ebf4ff; --dark: #0a57a8; }

.case-closing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #e0e6e9;
  border-radius: 0;
  background: transparent;
  color: #527195;
  font-family: inherit;
  font-size: 16px;
  font-style: normal;
  line-height: 1.4;
  text-align: center;
}

.case-closing::before,
.case-closing::after {
  content: "";
  width: clamp(28px, 6vw, 100px);
  height: 1px;
  flex: none;
  background: #7298ba;
}

.case-closing strong { color: #0f356c; }

@media (min-width: 900px) {
  .case-lead { white-space: nowrap; }
}

@media (max-width: 1130px) {
  .case-grid { gap: 12px; }
  .case-body { padding-right: 16px; padding-left: 16px; }
  .case-features li { grid-template-columns: 31px minmax(0, 1fr); gap: 8px; }
  .case-feature-icon { width: 30px; height: 32px; }
  .case-proof { padding: 9px 10px; }
}

@media (max-width: 1010px) {
  .case-header { padding-right: 220px; }
  .case-lead { width: calc(100% + 220px); font-size: 18px; }
  .case-motto { left: calc(79% - 101px); width: 205px; }
  .case-grid { grid-template-columns: 1fr; max-width: 615px; margin-inline: auto; gap: 22px; }
  .case-card:last-child { grid-column: auto; width: auto; }
  .case-photo { height: clamp(210px, 39vw, 320px); }
  .case-body { padding: 32px 25px 24px; }
  .case-intro { min-height: 0; }
  .case-features li { grid-template-columns: 36px minmax(0, 1fr); font-size: 16px; }
  .case-feature-icon { width: 35px; height: 35px; }
  .case-proof { min-height: 55px; font-size: 15px; }
}

@media (max-width: 899px) {
  .case-lead { white-space: normal; }
}

@media (min-width: 621px) and (max-width: 899px) {
  .case-header { padding-right: 0; }
  .case-title { margin-bottom: 20px; }
  .case-lead { width: auto; }
  .case-motto {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 205px;
    margin: 40px 0 0 calc(75% - 99px);
  }
}

@media (max-width: 620px) {
  .case-section { padding-bottom: 36px; }
  .case-header { padding-right: 0; margin-bottom: 21px; }
  .case-title { margin-bottom: 11px; }
  .case-lead { width: auto; font-size: 16px; }
  .case-motto { display: none; }
  .case-grid { gap: 19px; }
  .case-photo { height: auto; aspect-ratio: 2.1; }
  .case-mark { bottom: -19px; left: 18px; width: 51px; height: 51px; }
  .case-mark svg { width: 25px; height: 25px; }
  .case-body { padding: 28px 17px 19px; }
  .case-name { font-size: 25px; }
  .case-intro { margin-bottom: 15px; font-size: 15.4px; line-height: 1.37; }
  .case-features { gap: 9px; margin-bottom: 15px; }
  .case-features li { font-size: 14px; }
  .case-proof { font-size: 14px; }
  .case-link { min-height: 49px; padding: 12px 9px; font-size: 15.5px; }
  .case-closing { gap: 10px; margin-top: 19px; padding-top: 22px; font-size: 13px; }
  .case-closing::before,
  .case-closing::after { width: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-link { transition: none; }
}

/* L04 uses two case columns across the Site-book tablet breakpoint. */
@media (min-width: 900px) and (max-width: 1199px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-inline: 0;
    gap: 20px;
  }
  .case-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 20px) / 2);
    justify-self: center;
  }
}
