/* ==========================================================================
   Podstránka produktu (Figma „Podstránka“)
   ========================================================================== */

.page-sub {
  --c-title-muted: #98a7a5;              /* druhý řádek nadpisu v hero */
  --c-card-grey: #edf2f1;                /* šedé karty a plochy */
  --c-border-card: rgb(31 75 67 / 0.08);
  --c-border-tile: rgb(27 66 59 / 0.05);
  --shadow-tile: 0 5px 25px rgb(0 0 0 / 0.08);
  --shadow-soft: 0 5px 20px rgb(0 0 0 / 0.05);
}

/* Tmavší varianta tlačítka (#1B423B) použitá na podstránce */
.btn--deep {
  background: var(--c-forest-2);
}

.btn--deep:hover {
  background: var(--c-ink);
}

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

.sub-hero__blob {
  max-width: none;
}

/* Elipsy 631 a 730 px (rozmazané), pozice z rámu 1440 px */
.sub-hero__blob--left {
  left: calc(50% - 720px - 569px);
  top: -504px;
  width: 1699px;
}

.sub-hero__blob--right {
  left: calc(50% - 720px + 279px);
  top: -326px;
  width: 1798px;
}

.sub-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  padding-block: clamp(3rem, 1rem + 6vw, 8.5rem) clamp(3.5rem, 1rem + 5vw, 6.25rem);
}

.sub-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.sub-hero__badge {
  gap: 0.625rem;
}

.sub-hero__badge img {
  width: 1.25rem;
  height: 1.25rem;
}

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

.sub-hero__title-muted {
  display: block;
  color: var(--c-title-muted);
}

@media (min-width: 64em) {
  .sub-hero__inner {
    padding-block: 8.5rem 6.25rem; /* obsah začíná 230 px od vrchu, jako ve Figmě */
  }
}

/* --------------------------------------------------------------------------
   Velká karta funkce (text + chat / obrázek)
   -------------------------------------------------------------------------- */
.feature {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--r-xl);
  background: var(--c-white);
  box-shadow: 0 5px 12.5px rgb(0 0 0 / 0.1);
}

.feature--grey {
  border: 1px solid var(--c-border-card);
  background: var(--c-card-grey);
  box-shadow: none;
}

.feature__media {
  display: flex;
  justify-content: center;
  overflow: clip;
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

.feature__media--white {
  background: var(--c-white);
  box-shadow: 0 15px 20px rgb(0 0 0 / 0.05);
}

.feature__media--chat {
  height: 20rem;
  padding-top: 1.75rem;
}

.feature__chat {
  flex: none;
  max-width: 100%;
}

.feature__media--chat .chat {
  box-shadow: var(--shadow-soft);
}

.feature__media--shot {
  align-items: center;
  padding: 1.25rem 0.75rem;
}

.feature__shot {
  width: 100%;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-soft);
}

.feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0.5rem 0.5rem;
}

.feature__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.feature__title {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  max-width: 18.75rem;
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.233;
  color: var(--c-ink);
}

.integration__card .feature__title {
  max-width: none;
}

.feature__desc {
  max-width: 33.75rem;
}

@media (min-width: 64em) {
  .feature {
    flex-direction: row;
    gap: 2.5rem;
    min-height: 31.25rem; /* 500px */
    padding: 1.25rem;
    border-radius: var(--r-3xl);
  }

  .feature > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .feature__media--chat {
    height: auto;
    max-height: 28.75rem;
    padding-top: 3.125rem;
  }

  .feature__media--shot {
    padding: 0 1.25rem;
  }

  .feature__body {
    padding: 1.25rem;
  }

  .feature__body--center {
    padding-inline: 1.25rem 1.25rem;
  }

  .feature__body--center .feature__text {
    margin-block: auto;
  }

  .feature__body--center:not(:has(.feature__cta)) {
    padding-inline: 0;
  }

  .feature__cta {
    align-self: flex-end;
  }

  .feature__text {
    gap: 1.25rem;
  }

  .feature {
    height: 31.25rem;
  }

  .feature__media {
    min-height: 0;
  }

  .integration__card {
    height: 28.125rem; /* 450px */
    min-height: 0;
  }

  .integration__card .feature__body {
    padding: 1.25rem;
  }

  .integration__card .feature__text {
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Integrace
   -------------------------------------------------------------------------- */
.integration__card {
  margin-top: 3.75rem;
}

/* --------------------------------------------------------------------------
   Mozaika funkcí
   -------------------------------------------------------------------------- */
.bento__title {
  color: var(--c-forest-2);
}

.section-title .section-title__soft {
  display: block;
}

.bento__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 3.75rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.75rem;
  border: 1px solid var(--c-border-tile);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-tile);
  color: var(--c-forest-2);
}

.tile--white {
  background: var(--c-white);
}

.tile--grey {
  background: var(--c-card-grey);
}

.tile__media {
  min-height: 11rem;
  border-radius: var(--r-lg);
}

.tile__media--grey {
  background: var(--c-card-grey);
}

.tile__media--white {
  background: var(--c-white);
}

.tile__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem;
}

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

.tile__text--pad {
  padding: 0.625rem;
}

.tile__text--tight {
  gap: 0.625rem;
}

.tile__title {
  max-width: 18.75rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.233;
}

.tile__title--sm {
  max-width: none;
  font-size: clamp(1.375rem, 1.1rem + 0.95vw, 1.8125rem); /* 29px */
}

.tile__cta {
  align-self: flex-end;
}

.bento__f {
  justify-content: space-between;
  gap: 2.5rem;
  padding: 1.5rem;
}

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

  .bento__a,
  .bento__d {
    grid-column: 1 / -1;
  }

  .tile--row {
    flex-direction: row;
    gap: 2.5rem;
    min-height: 21.875rem; /* 350px */
  }

  .tile--row > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .tile--row .tile__body {
    padding: 1.25rem 1.25rem 1.25rem 0;
  }

  .bento__b,
  .bento__c {
    min-height: 21.875rem;
  }

  .tile__media--fill {
    flex: 1;
  }
}

@media (min-width: 64em) {
  .bento__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 25rem;
    grid-template-areas:
      "a a e"
      "b c e"
      "d d f";
    gap: 1.875rem;
  }

  .bento__a { grid-area: a; }
  .bento__b { grid-area: b; }
  .bento__c { grid-area: c; }
  .bento__d { grid-area: d; }
  .bento__e { grid-area: e; }
  .bento__f { grid-area: f; }

  .tile {
    padding: 1.25rem;
    border-radius: var(--r-3xl);
  }

  .bento__f {
    padding: 2.5rem;
  }

  .bento__a,
  .bento__d,
  .bento__b,
  .bento__c,
  .bento__f {
    min-height: 21.875rem;
  }
}

/* --------------------------------------------------------------------------
   Detail funkcí
   -------------------------------------------------------------------------- */
.features__list {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
  margin-top: 3.75rem;
}

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

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

/* Menší karta: obrázek nahoře, text dole */
.feature-tile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.75rem;
  border-radius: var(--r-xl);
  background: var(--c-white);
  box-shadow: var(--shadow-tile);
}

.feature-tile__media {
  display: flex;
  overflow: clip;
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

.feature-tile__media--center {
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0.75rem;
}

.feature-tile__media--shot {
  align-items: flex-start;
  padding: 1.25rem;
}

.feature-tile__shot {
  width: 100%;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-soft);
}

.feature-tile__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.625rem;
}

@media (min-width: 64em) {
  .feature-tile {
    height: 31.25rem; /* 500px */
    padding: 1.25rem;
    border-radius: var(--r-3xl);
  }

  .feature-tile__media {
    flex: 1;
    min-height: 0;
  }

  .feature-tile__media--shot {
    padding: 1.875rem;
  }
}

/* Překrývající se kartičky (XML feed / Vlastní instrukce / AI mailbot) */
.skill-stack {
  display: grid;
  width: min(100%, 21.875rem);
  margin: 0;
}

.skill-card {
  grid-area: 1 / 1;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  width: 85.7%; /* 300 / 350 */
  min-height: 6.1875rem; /* 99px */
  margin-left: 7.15%;
  padding: 0.9375rem;
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: 0 4px 7.5px rgb(0 0 0 / 0.1);
  opacity: 0.5;
}

.skill-card--bottom {
  margin-top: 6rem;
}

.skill-card--front {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 7.1875rem; /* 115px */
  margin: 2.5rem 0 0;
  box-shadow: 0 5px 10px rgb(0 0 0 / 0.05);
  opacity: 1;
}

.skill-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  padding: 3px;
  border: 1px solid var(--c-lime-border);
  border-radius: var(--r-md);
  background: var(--c-lime);
}

.skill-card__icon img {
  width: 0.75rem;
  height: 0.75rem;
}

.skill-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.8125rem;
  min-width: 0;
}

.skill-card__name {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-ink);
}

.skill-card__desc {
  font-size: 0.625rem;
  line-height: 1.5;
  color: var(--c-ink);
}
