.home-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin-top: 1.25rem;
  border: 1px solid rgba(21, 35, 29, 0.16);
  background: var(--home-white);
}

.home-proof__photo {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
}

.home-proof__photo img {
  filter: saturate(0.8) contrast(1.04);
}

.home-proof__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21, 35, 29, 0.5));
  pointer-events: none;
}

.home-proof__photo > p {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  max-width: 28rem;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.home-proof__content {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.home-proof__content > h2 {
  max-width: 14ch;
  margin-top: 2rem;
  font-size: clamp(2.5rem, 4.8vw, 4.9rem) !important;
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.home-proof__quote {
  margin: 2.2rem 0 0;
}

.home-proof__quote > svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--home-signal);
}

.home-proof__quote blockquote,
.home-proof__statement {
  max-width: 42rem;
  margin-top: 0.9rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  font-style: italic;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-proof__quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(21, 35, 29, 0.15);
  font-size: 0.75rem;
  font-weight: 700;
}

.home-proof__quote figcaption a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--home-muted);
}

.home-proof__quote figcaption svg {
  width: 0.85rem;
  height: 0.85rem;
}

.home-proof__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: auto 0 2rem;
  padding-top: 2.5rem;
  background: rgba(21, 35, 29, 0.15);
  border-top: 1px solid rgba(21, 35, 29, 0.15);
}

.home-proof__stats > div {
  min-width: 0;
  padding: 1rem;
  background: var(--home-white);
}

.home-proof__stats dt {
  color: var(--home-muted);
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-proof__stats dd {
  margin-top: 0.45rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 800;
}

.home-proof__stats span {
  display: block;
  margin-top: 0.2rem;
  color: var(--home-muted);
  font-size: 0.66rem;
}

.home-path {
  margin-top: clamp(5rem, 10vw, 9rem);
}

.home-path__heading {
  display: grid;
  grid-template-columns: 0.72fr minmax(0, 1.5fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: 2.25rem;
}

.home-path__heading h2 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 4.2vw, 4.4rem) !important;
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.home-path__heading > div > p {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--home-muted);
  line-height: 1.7;
}

.home-course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 0.75fr);
  gap: 1rem;
}

.home-course-feature {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  overflow: hidden;
  border: 1px solid rgba(21, 35, 29, 0.2);
  background: var(--home-white);
  color: var(--home-ink);
}

/* 16:9 matches the stored cover ratio; align-content: start above keeps the
   row from stretching, which would silently cancel the aspect-ratio. */
.home-course-feature__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 12rem;
  overflow: hidden;
}

.home-course-feature__visual img {
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-course-feature:hover .home-course-feature__visual img {
  transform: scale(1.025);
}

.home-course-feature__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.55rem 0.7rem;
  background: var(--home-signal);
  color: #fff;
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-course-feature__placeholder {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(125deg, rgba(83, 112, 255, 0.68), transparent 58%), var(--home-ink);
  color: var(--home-white);
}

.home-course-feature__placeholder span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(7rem, 18vw, 15rem);
  font-style: italic;
  letter-spacing: -0.1em;
  line-height: 0.65;
}

.home-course-feature__placeholder p {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.72);
}

.home-course-feature__content {
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.home-course-feature__content > h3 {
  max-width: 23ch;
  margin-top: 0.65rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem) !important;
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.home-course-feature__content > p:not(.home-mono-label) {
  max-width: 42rem;
  margin-top: 0.8rem;
  color: var(--home-muted);
  line-height: 1.6;
}

.home-course-feature__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(21, 35, 29, 0.15);
}

.home-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--home-muted);
  font-size: 0.72rem;
}

.home-course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.home-course-meta svg {
  width: 0.8rem;
  height: 0.8rem;
}

.home-price {
  white-space: nowrap;
  font-size: 1.35rem;
  font-weight: 850;
}

.home-course-feature__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--home-apple);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-course-feature__action svg {
  width: 1rem;
  height: 1rem;
}

.home-course-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-top: 1px solid rgba(21, 35, 29, 0.2);
}

.home-course-row {
  display: grid;
  flex: 1;
  min-height: 8.5rem;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(21, 35, 29, 0.2);
  color: var(--home-ink);
}

.home-course-row__number {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  opacity: 0.55;
}

.home-course-row h3 {
  font-size: 1.05rem !important;
  font-weight: 760;
  line-height: 1.2;
}

.home-course-row .home-course-meta {
  margin-top: 0.65rem;
}

.home-course-row__price {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 800;
}

.home-course-row__arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}

.home-course-row:hover .home-course-row__arrow {
  transform: translateX(4px);
}

.home-loading-block {
  width: 100%;
  border: 1px solid rgba(21, 35, 29, 0.12);
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.55) 8%,
    rgba(255, 255, 255, 0.9) 18%,
    rgba(255, 255, 255, 0.55) 33%
  );
  background-size: 200% 100%;
  animation: home-loading 1.4s linear infinite;
}

@keyframes home-loading {
  to {
    background-position-x: -200%;
  }
}

.home-empty-state {
  padding: 2rem;
  border: 1px solid rgba(21, 35, 29, 0.2);
  background: var(--home-white);
}

.home-empty-state a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.home-empty-state--dark {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--home-white);
}
