/* Tariffs case — Figma SxLL9HgYHErFG6Nfcjk5a3 / 90:12764.
   Shared components remain in styles.css; all adjustments are scoped to this page. */
.tariffs-case .tariff-heading {
  font-weight: 700;
}

.tariffs-case .tariff-section > div,
.tariffs-case .tariff-screen-comparison figure {
  min-width: 0;
}

.tariffs-case .tariff-section h2,
.tariffs-case .tariff-showcase h2,
.tariffs-case .tariff-next h2 {
  font-weight: 700;
}

.tariffs-case .tariff-lead p {
  margin: 0;
}

.tariffs-case .tariff-lead p + p {
  margin-top: 1.43em;
}

.tariffs-case .tariff-dark-panel {
  margin: 0;
}

.tariffs-case .tariff-immersion {
  margin-top: 0;
  padding-bottom: 112px;
}

.tariffs-case .tariff-bpmn-title {
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 46px 0 30px;
  font-size: 29px;
  letter-spacing: -.04em;
}

.tariffs-case .tariff-bpmn-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  aspect-ratio: 901 / 671;
}

.tariffs-case .tariff-bpmn-image img {
  position: absolute;
  left: 1.35%;
  top: 2.09%;
  width: 99.99%;
  height: 97.92%;
}

.tariffs-case .tariff-architecture-section {
  border-bottom: 0;
  padding-bottom: 43px;
}

.tariffs-case .case-architecture-visual figure:last-child img {
  border: 1px solid #d4d4d4;
  border-radius: 16px;
}

.tariffs-case .tariff-showcase {
  margin: 75px 0 0;
}

.tariffs-case .tariff-showcase h2 {
  margin: 60px 0 50px;
}

.tariffs-case .tariff-screen-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tariffs-case .tariff-screen-comparison figure {
  margin: 0;
}

.tariffs-case .tariff-screen-comparison figcaption {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0 40px;
}

.tariffs-case .tariff-screen-comparison figcaption span {
  font-size: 11px;
  color: var(--muted);
}

.tariffs-case .tariff-screen-comparison figcaption strong {
  font-size: 18px;
  font-weight: 700;
}

.tariffs-case .tariff-comparison-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 661 / 1013.031;
  background: #c4beb5;
  border-radius: 7px;
  overflow: hidden;
}

.tariffs-case .tariff-comparison-image img {
  display: block;
  width: 72.0121%;
  height: auto;
}

.tariffs-case .tariff-screen-after .tariff-comparison-image {
  align-items: flex-start;
  padding-top: 9.8336%;
}

.tariffs-case .device-stage {
  margin-top: 50px;
  aspect-ratio: 1340 / 1638.711;
  min-height: 0;
  padding: 9% 9% 7%;
}

.tariffs-case .device-desktop {
  position: absolute;
  left: 5.597%;
  top: 7.7183%;
  width: 66.4179%;
  height: 84.5176%;
}

.tariffs-case .device-phone {
  top: 17.8482%;
  left: 75.5224%;
  right: auto;
  bottom: auto;
}

.tariffs-case .tariff-hero-image {
  position: relative;
}

.tariffs-case .tariff-hero-image img {
  position: absolute;
  left: -.8451%;
  top: -11.9197%;
  width: 101.6197%;
  height: 123.7291%;
  max-width: none;
}

.tariffs-case .tariff-results {
  padding: 105px 0 0;
  min-height: 686px;
  border-bottom: 0;
}

/* Project cards use the layout from Figma and the owner's published cases. */
.tariffs-case .tariff-problem {
  border-bottom: 0;
}

.tariffs-case .tariff-result {
  border-top: 0;
  margin-top: 40px;
  min-height: 93px;
}

.tariffs-case .result-pulse {
  flex: none;
}

.tariffs-case .tariff-next {
  padding: 0 0 105px;
}

/* Layout adaptations retain the same content order and full screenshots. */
@media (max-width: 850px) {
  .tariffs-case .tariff-hero {
    padding-top: 36px;
  }

  .tariffs-case .tariff-section {
    grid-template-columns: minmax(0, 1fr);
    padding: 75px 0;
    gap: 30px;
  }

  .tariffs-case .tariff-heading {
    font-size: clamp(44px, 8vw, 68px);
    margin: 50px 0 36px;
  }

  .tariffs-case .tariff-architecture-section,
  .tariffs-case .tariff-immersion {
    padding-bottom: 75px;
  }

  .tariffs-case .tariff-section h2 {
    font-size: clamp(30px, 5vw, 44px);
  }

  .tariffs-case .tariff-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .tariffs-case .tariff-chips {
    justify-content: flex-start;
  }

  .tariffs-case .tariff-hero-bottom > p {
    font-size: clamp(23px, 3.5vw, 30px);
  }

  .tariffs-case .tariff-dark-panel {
    min-height: 0;
    padding: 28px;
    margin-top: 0;
  }

  .tariffs-case .tariff-dark-panel > p {
    margin: 48px 0;
  }

  .tariffs-case .tariff-immersion {
    margin-top: 0;
  }

  .tariffs-case .tariff-showcase {
    padding: 25px;
    margin-top: 35px;
  }

  .tariffs-case .tariff-showcase h2 {
    margin: 40px 0 30px;
    font-size: clamp(30px, 4.5vw, 42px);
  }

  .tariffs-case .tariff-screen-comparison figcaption {
    min-height: 104px;
    padding-bottom: 24px;
  }

  .tariffs-case .tariff-screen-comparison figcaption strong {
    font-size: 16px;
  }

  .tariffs-case .device-stage {
    padding: 9% 9% 7%;
    margin-top: 30px;
  }

  .tariffs-case .tariff-results {
    min-height: 0;
    padding-bottom: 75px;
  }


  .tariffs-case .tariff-next {
    padding-bottom: 75px;
  }
}

@media (max-width: 550px) {
  .tariffs-case .tariff-topline {
    gap: 15px;
    font-size: 9px;
  }

  .tariffs-case .tariff-hero-image {
    aspect-ratio: 1.6;
  }

  .tariffs-case .tariff-screen-comparison {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .tariffs-case .tariff-screen-comparison figcaption {
    min-height: 0;
    padding: 0 0 18px;
  }

  .tariffs-case .tariff-showcase-top {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 10px;
  }

  .tariffs-case .tariff-showcase {
    padding: 20px;
  }

  .tariffs-case .tariff-showcase h2 {
    font-size: clamp(26px, 6.5vw, 36px);
  }

  .tariffs-case .tariff-bpmn-title {
    padding-top: 28px;
    font-size: 24px;
  }

  .tariffs-case .device-desktop {
    border-width: 3px;
    border-radius: 6px;
  }






  .tariffs-case .device-phone {
    border-width: 2px;
    border-radius: 9px;
  }

  .tariffs-case .device-phone-island {
    height: 3px;
    top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .tariffs-case .result-pulse {
    animation: none;
  }
}
