/* QuatroHTC product page — layout from QUATROHTC mockup */

.htc-hero h1 span {
  font-style: normal;
  color: #fff;
}

.htc-hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.htc-hero .pbc-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.htc-why .lede {
  max-width: 54ch;
}

.htc .stats-row {
  margin: 59px 0 36px;
  padding: 4px 0 28px;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.htc .stats-row > div {
  padding-right: 32px;
  border-right: 1px solid var(--line);
}

.htc .stats-row > div:not(:first-child) {
  padding-left: 32px;
}

.htc .stats-row > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.htc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.htc-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
  align-items: start;
  min-height: 0;
  padding: 26px 24px 28px;
}

.htc-step .step-num {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.htc-step h3 {
  margin: 0;
  padding-top: 10px;
  font-size: 22px;
  line-height: 1.3;
  color: #2c3c75;
}

.htc-step p {
  grid-column: 2;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.5;
}

.htc-defects {
  padding: 88px 0;
}

.htc-defects h2 {
  font-size: 40px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.htc-defects .lede {
  max-width: 48ch;
}

.htc-defect-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.section-cta {
  margin-top: 36px;
}

.htc-defect-row figure {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #dbe3f2;
  aspect-ratio: 1;
}

.htc-defect-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.htc-defect-row figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2c3c75;
  white-space: nowrap;
}

.htc-browser {
  background: #eef1f7;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  width: 1132px;
  max-width: none;
}

.htc-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #f4f6fb;
  border-bottom: 1px solid #e4e8f1;
}

.htc-browser__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8dee9;
}

.htc-browser__bar i:nth-child(1) { background: #ff6058; }
.htc-browser__bar i:nth-child(2) { background: #ffbd2e; }
.htc-browser__bar i:nth-child(3) { background: #28c840; }

.htc .operator__shot {
  justify-self: end;
  width: min(1040px, calc(100% - 28px));
  height: auto;
  margin-right: 28px;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f6fb;
  box-shadow: 0 22px 48px rgba(13, 19, 46, 0.22);
}

.htc .operator__shot img {
  display: none;
  width: 100%;
  height: auto;
  max-width: none;
}

.htc .operator[data-operator="live"] .operator__ui--live,
.htc .operator[data-operator="defects"] .operator__ui--defects,
.htc .operator[data-operator="stats"] .operator__ui--stats {
  display: block;
}

@media (max-width: 1100px) {
  .htc-steps,
  .htc-defect-row,
  .htc .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .htc .stats-row > div {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 18px;
  }

  .htc .operator__shot,
  .htc .operator__shot img {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 820px) {
  .htc-hero h1 span,
  .htc-hero h1 em {
    white-space: normal;
  }

  .htc-steps,
  .htc-defect-row {
    grid-template-columns: 1fr;
  }

  .htc-defect-row figcaption {
    white-space: normal;
  }
}
