/* ==========================================================================
   Homepage
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: var(--header-h);
}

.hero__blob {
  left: -515px;
  top: -442px;
  width: 1627px;
  max-width: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding-block: 3.125rem 4.375rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
  max-width: 41.25rem;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-hero);
  letter-spacing: -0.005em;
  color: var(--c-ink);
}

.hero__title-muted {
  display: block;
  max-width: 17ch;
  color: var(--c-ink-60);
}

.hero__lead {
  max-width: 30rem;
}

@media (min-width: 67.5em) { /* ≥ 1080px — rozložení jako ve Figmě */
  .hero {
    min-height: 46.875rem; /* 750px */
  }

  .hero__inner {
    min-height: calc(46.875rem - var(--header-h));
    padding-block: 7.5rem 4.375rem;
  }
}

@media (max-width: 67.49em) {
  .hero__inner {
    padding-block: 2.5rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Produkty — přepínané karty
   -------------------------------------------------------------------------- */
.products {
  overflow-x: clip;
}

.products__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3.75rem;
}

.products__tabs {
  display: flex;
  gap: 0.625rem;
}

.products__tab {
  display: grid;
  place-items: center;
  width: 15.625rem;
  min-height: 3.375rem;
  padding: 0.4375rem 1.5625rem;
  border: 1px solid #e3ebea;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-lead);
  line-height: 1.2;
  color: var(--c-forest-2);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}

.products__tab:hover {
  border-color: rgb(27 66 59 / 0.15);
}

.products__tab[aria-selected="true"] {
  border-color: rgb(27 66 59 / 0.05);
  background: var(--c-surface-mint);
}

.products__tab--lilac[aria-selected="true"] {
  background: var(--c-surface-lilac);
}

.products__viewport {
  margin-top: 3.75rem;
}

/* Bez JS: karty jdou posouvat vodorovně */
.no-js .products__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.no-js .product-card {
  scroll-snap-align: start;
}

.products__track {
  display: flex;
  gap: 1.875rem;
  will-change: transform;
}

.product-card {
  flex: 0 0 100%;
  display: flex;
  gap: 2.5rem;
  min-height: 28.125rem; /* 450px */
  padding: 1.25rem;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-3xl);
  box-shadow: var(--shadow-card);
  transition: opacity 400ms var(--ease-out);
}

.product-card[inert] {
  opacity: 0.85;
}

.product-card--mint {
  background: var(--c-surface-mint);
}

.product-card--lilac {
  background: var(--c-surface-lilac);
}

.product-card__media {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  overflow: clip;
  padding-top: 3.125rem;
  border-radius: var(--r-lg);
  background: var(--c-paper);
  max-height: 25.875rem;
}

.product-card__media--center {
  align-items: center;
  padding: 1.25rem;
  background: #fbfafc;
}

.product-card__chat {
  flex: none;
}

.product-card__shot {
  width: 100%;
  border-radius: var(--r-sm);
  box-shadow: 0 3px 15px rgb(0 0 0 / 0.1);
}

.product-card__body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 1.25rem;
}

.product-card__text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.product-card__title {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.2;
}

.product-card__desc {
  max-width: 27.5rem;
}

@media (max-width: 63.99em) {
  .products__tabs {
    width: 100%;
  }

  .products__tab {
    flex: 1 1 0;
    width: auto;
    font-size: var(--fs-body);
    padding-inline: 1rem;
  }

  .products__viewport {
    margin-top: 2rem;
  }

  .products__track {
    gap: 1rem;
  }

  .product-card {
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    padding: 0.75rem;
    border-radius: var(--r-xl);
  }

  .product-card__media {
    flex: none;
    height: 20rem;
    padding-top: 1.75rem;
  }

  .product-card__media--center {
    height: auto;
    padding: 0.75rem;
  }

  .product-card__body {
    padding: 1rem 0.75rem 0.75rem;
  }

  .product-card__text {
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Přehledně — levý sloupec zůstává (sticky)
   -------------------------------------------------------------------------- */
.overview {
  padding-block: calc(var(--section-y) / 2);
}

.overview__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.overview__cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.overview-card {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.overview-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.overview-card .card__title {
  max-width: 25.875rem;
}

.overview-card--cta {
  align-items: flex-start;
  gap: 4.375rem;
}

.overview-card--cta .card__title {
  max-width: 20rem;
}

@media (min-width: 64em) {
  .overview__inner {
    grid-template-columns: minmax(0, 1fr) 40.625rem;
    gap: 0.9375rem;
  }

  .overview__aside,
  .overview__cards {
    padding-block: 3.125rem;
  }

  .overview__aside .section-head {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* --------------------------------------------------------------------------
   Kam Enloo nasadit
   -------------------------------------------------------------------------- */
.usecases__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.625rem;
  margin: 3.125rem 0 0;
  padding: 0;
}

.usecase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 13.125rem; /* 210px */
  border-color: var(--c-border-soft);
  color: var(--c-forest);
}

.usecase__title {
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: 1.2;
  text-align: right;
  color: inherit;
}

.usecase.card--dark {
  color: #edf2f1;
}

.usecase--wide p {
  max-width: 29rem;
}

.usecases__cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 3.125rem;
}

.usecases__cta .btn {
  width: min(100%, 18.28rem);
}

@media (min-width: 36em) {
  .usecases__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usecase--wide {
    grid-column: span 2;
  }
}

@media (min-width: 64em) {
  .usecases__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .usecase {
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
  }

  .usecase:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgb(19 44 43 / 0.08);
  }
}

/* --------------------------------------------------------------------------
   Jak Enloo funguje
   -------------------------------------------------------------------------- */
.how__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.how__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

.how__outro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
  padding-right: 3.125rem;
}

.how__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.625rem;
  margin: 0;
  padding: 0;
}

.how-step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 15rem;
  border-radius: var(--r-2xl);
}

.how-step--wide {
  gap: 1.5rem;
}

.how-step__main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.how-step__main p {
  max-width: 29.1875rem;
}

.how-step--dark {
  color: var(--c-lime);
  font-family: var(--f-display);
}

@media (min-width: 40em) {
  .how__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-step {
    min-height: 18.75rem; /* 300px */
  }

  .how-step--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }

  .how-step--wide > * {
    flex: 1 1 0;
  }

  .how-step__tags {
    align-content: flex-end;
  }
}

@media (min-width: 64em) {
  .how__inner {
    grid-template-columns: 28.125rem minmax(0, 1fr);
    gap: 3.125rem;
    align-items: center;
  }

  .how__intro {
    align-self: stretch;
    padding-bottom: 1.875rem;
  }
}
