/* Compact library treatment: stable crops, denser cards, and a shorter mobile hero. */
.hero {
  min-height: 460px;
}

.hero .shell {
  padding-top: 70px;
  padding-bottom: 44px;
}

.hero h1 {
  font-size: clamp(56px, 8vw, 96px);
}

.hero-stats {
  margin-top: 22px;
}

.workout-card {
  min-height: 354px;
}

.card-visual {
  height: 136px;
}

.hero-card .card-visual {
  position: relative;
  background-color: #171714;
  background-position: center, calc(100% - 16px) center !important;
  background-size: cover, 92px 92px !important;
  background-repeat: no-repeat !important;
}

.hero-card .card-visual::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 16px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  pointer-events: none;
}

.hero-card .card-visual span,
.hero-card .card-visual small {
  position: relative;
  z-index: 1;
}

.hero-card .card-visual small {
  max-width: calc(100% - 116px);
  line-height: 1.25;
}

.card-main {
  padding: 17px 18px 6px;
}

.card-top h3 {
  font-size: 38px;
}

.card-movements {
  margin: 12px 0;
}

.card-meta {
  padding: 13px 18px 16px;
}

.anywhere-feature {
  margin-top: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid #242424;
  border-radius: var(--radius);
  background: var(--black);
  color: #fff;
}

.anywhere-feature .eyebrow {
  color: var(--accent);
}

.anywhere-feature h2 {
  font-size: clamp(40px, 5vw, 58px);
}

.anywhere-feature p {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.anywhere-feature .btn {
  background: var(--accent);
  color: var(--black);
}

.footer-links a,
.footer-copy {
  color: #66615b;
}

@media (max-width: 640px) {
  .hero {
    min-height: 430px;
  }

  .hero .shell {
    padding-top: 42px;
    padding-bottom: 28px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 44px;
  }

  .hero p {
    width: 100%;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-stats {
    margin-top: 18px;
    gap: 8px;
  }

  .hero-stat {
    padding: 10px 12px;
  }

  .hero-stat strong {
    font-size: 21px;
  }

  .library-tools {
    position: relative;
    top: auto;
  }

  .tool-inner {
    padding: 10px 18px 12px;
  }

  .filters {
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .workout-section {
    padding-top: 42px;
  }

  .section-title {
    margin-bottom: 15px;
  }

  .section-title h2 {
    font-size: 39px;
  }

  .workout-grid {
    gap: 12px;
  }

  .workout-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 0;
  }

  .card-visual {
    grid-row: 1 / span 2;
    width: 116px;
    height: 100%;
    min-height: 168px;
    padding: 11px;
  }

  .hero-card .card-visual {
    background-position: center, center !important;
    background-size: cover, cover !important;
  }

  .hero-card .card-visual::after {
    display: none;
  }

  .card-visual span {
    padding: 6px 8px;
    font-size: 9px;
  }

  .card-visual small {
    font-size: 9px;
    line-height: 1.15;
  }

  .hero-card .card-visual small {
    max-width: 100%;
  }

  .card-main {
    min-width: 0;
    padding: 13px 13px 3px;
  }

  .card-top {
    display: block;
  }

  .card-top h3 {
    font-size: 31px;
  }

  .card-type {
    display: inline-block;
    margin-top: 5px;
  }

  .card-movements {
    margin: 8px 0;
    font-size: 12px;
    line-height: 1.4;
  }

  .card-meta {
    grid-column: 2;
    gap: 8px;
    padding: 9px 13px 12px;
  }

  .card-meta strong {
    font-size: 12px;
    line-height: 1.15;
  }

  .card-meta span {
    font-size: 8px;
  }

  .card-arrow {
    font-size: 17px !important;
  }

  .anywhere-feature {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 26px;
    padding: 22px;
  }

  .anywhere-feature h2 {
    font-size: 42px;
  }

  .anywhere-feature .btn {
    width: 100%;
    justify-content: center;
  }
}
