/* Slide 08 (customers & B2B partners): segments, roles and payment matrix.
   Thin separators and plain text only; no decorative cards. */

#customers .customers-head h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem) !important;
  line-height: 1.08;
  margin-bottom: 0;
}

.customers-section .customers-intro {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 62ch;
}

.customers-section .cust-segments {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(142, 219, 200, 0.22);
}

.customers-section .cust-seg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 16px 0 0;
  border-right: 1px solid rgba(142, 219, 200, 0.1);
}

.customers-section .cust-seg + .cust-seg {
  padding-left: 16px;
}

.customers-section .cust-seg:last-child {
  border-right: 0;
}

.customers-section .cust-tag,
.customers-section .cust-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.customers-section .cust-seg h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.customers-section .cust-seg p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.customers-section .cust-roles {
  margin: 22px 0 0;
  padding: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 16px;
  border-top: 1px solid rgba(142, 219, 200, 0.14);
}

.customers-section .cust-roles > div {
  min-width: 0;
}

.customers-section .cust-roles dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 4px;
}

.customers-section .cust-roles dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.customers-section .cust-roles-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.customers-section .cust-pay-wrap {
  margin-top: 20px;
}

.customers-section .cust-pay {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.customers-section .cust-pay caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  padding-bottom: 8px;
}

.customers-section .cust-pay th,
.customers-section .cust-pay td {
  text-align: left;
  vertical-align: top;
  padding: 7px 12px 7px 0;
  border-bottom: 1px solid rgba(142, 219, 200, 0.1);
  line-height: 1.4;
}

.customers-section .cust-pay thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.customers-section .cust-pay tbody th {
  font-weight: 500;
  color: var(--text);
}

.customers-section .cust-operator {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(142, 219, 200, 0.14);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 760px;
}

.customers-section .cust-operator h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.customers-section .cust-operator p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Desktop (>=801px): fit the whole slide into one 900 px viewport.
   Heading, segments and roles span the full width; the payment matrix sits left and the strategic
   operator right, so the lower half no longer falls below the fold. */
@media (min-width: 801px) {
  #customers .customers-head h2 {
    font-size: clamp(2rem, 2.8vw, 2.4rem) !important;
  }

  .customers-section .customers-intro {
    font-size: 14px;
    margin-top: 8px;
    max-width: 110ch;
  }

  .customers-section .cust-segments {
    margin-top: 16px;
  }

  .customers-section .cust-seg,
  .customers-section .cust-seg + .cust-seg {
    padding-top: 10px;
    gap: 5px;
  }

  .customers-section .cust-seg p {
    font-size: 12px;
    line-height: 1.42;
  }

  .customers-section {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    column-gap: 40px;
    align-content: start;
  }

  .customers-section > .section-kicker,
  .customers-section > .customers-head,
  .customers-section > .cust-segments,
  .customers-section > .cust-roles,
  .customers-section > .cust-roles-note {
    grid-column: 1 / -1;
  }

  .customers-section > .cust-segments {
    display: grid;
  }

  .customers-section .cust-operator > .fineprint {
    display: block !important;
    margin: 14px 0 0;
    font-size: 11px;
    line-height: 1.45;
    max-width: none;
  }

  #customers.is-tall-slide {
    padding-top: 118px;
    padding-bottom: 24px;
  }

  .customers-section > .section-kicker {
    position: absolute;
    left: -3vw;
    top: 102px;
    margin: 0;
  }

  .customers-section > .cust-pay-details {
    grid-column: 1;
    margin-top: 16px;
  }

  .customers-section > .cust-operator {
    grid-column: 2;
    margin-top: 16px;
    padding-top: 0;
    border-top: 0;
    align-self: start;
  }

  .customers-section .cust-roles {
    margin-top: 12px;
    padding-top: 10px;
  }

  .customers-section .cust-roles-note {
    margin-top: 4px;
  }

  .customers-section .cust-pay th,
  .customers-section .cust-pay td {
    padding: 4px 12px 4px 0;
    font-size: 12px;
  }

  .customers-section .cust-pay-details {
    margin-top: 12px;
  }
}

/* "Who Pays / Ko plaća": collapsible on phones, always visible from 768 px up. */
.customers-section .cust-pay-details {
  margin-top: 20px;
}

.customers-section .cust-pay-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 0;
  border-top: 1px solid rgba(142, 219, 200, 0.22);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  cursor: pointer;
}

.customers-section .cust-pay-details > summary::-webkit-details-marker {
  display: none;
}

.customers-section .cust-pay-details > summary::after {
  content: "+";
  flex: none;
  font-size: 18px;
  line-height: 1;
  color: var(--mint);
}

.customers-section .cust-pay-details[open] > summary::after {
  content: "\2212";
}

.customers-section .cust-pay-details > summary:focus-visible {
  outline: 1px solid var(--mint);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .customers-section .cust-pay-details > summary {
    display: none;
  }
}

@media (max-width: 800px) {
  #customers .customers-head h2 {
    font-size: 26px !important;
  }

  .customers-section .customers-intro {
    font-size: 13px;
  }

  .customers-section .cust-segments {
    grid-template-columns: 1fr;
  }

  .customers-section .cust-seg,
  .customers-section .cust-seg + .cust-seg {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(142, 219, 200, 0.1);
  }

  .customers-section .cust-roles {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }

  .customers-section .cust-pay thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .customers-section .cust-pay,
  .customers-section .cust-pay tbody,
  .customers-section .cust-pay tr,
  .customers-section .cust-pay th,
  .customers-section .cust-pay td {
    display: block;
    width: 100%;
  }

  .customers-section .cust-pay tr {
    padding: 10px 0;
    border-bottom: 1px solid rgba(142, 219, 200, 0.1);
  }

  .customers-section .cust-pay th,
  .customers-section .cust-pay td {
    border: 0;
    padding: 0;
  }

  .customers-section .cust-pay tbody th {
    margin-bottom: 3px;
    font-size: 13px;
  }

  .customers-section .cust-pay td {
    font-size: 12px;
    line-height: 1.4;
  }

  .customers-section .cust-pay td::before {
    content: attr(data-label) " ";
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mint);
  }

  .customers-section .cust-roles > div {
    display: block;
  }

  .customers-section .cust-roles dt {
    display: inline;
    margin-right: 6px;
  }

  .customers-section .cust-roles dd {
    display: inline;
  }

  .customers-section .cust-seg,
  .customers-section .cust-seg + .cust-seg {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 4px;
    align-items: baseline;
    padding: 10px 0;
  }

  .customers-section .cust-seg .cust-tag {
    grid-column: 1;
    grid-row: 1;
  }

  .customers-section .cust-seg h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
  }

  .customers-section .cust-seg p {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
    line-height: 1.42;
  }
}
