/* QuatroPBC product page */

.crumb {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pbc-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  padding: 54px 0 42px;
  overflow: hidden;
  background: #0d132e;
}

.pbc-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.pbc-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(8, 14, 35, 0.72) 0%,
    rgba(12, 18, 42, 0.56) 40%,
    rgba(16, 22, 48, 0.46) 100%
  );
}

.pbc-hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

.pbc-hero .container {
  position: relative;
  z-index: 2;
}

.pbc-hero__copy {
  max-width: 50%;
}

.pbc-hero h1 {
  font-size: clamp(54px, 5.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
  text-wrap: balance;
}

.pbc-hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.pbc-hero__lead {
  max-width: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.pbc-hero .hero__ctas {
  gap: 10px;
  margin-bottom: 32px;
}

.pbc-hero .hero__ctas .btn {
  height: 62.39px;
  font-size: 16px;
  padding: 0 18px;
}

.pbc-hero .hero__ctas .btn--white {
  width: 219.55px;
}

.pbc-hero .hero__ctas .btn--ghost {
  width: 157.77px;
}

.plain,
.why,
.roi,
.scale,
.steps-sec,
.defects,
.proof {
  padding: 88px 0;
}

.plain h2,
.why h2,
.roi h2,
.scale h2,
.steps-sec h2,
.operator h2,
.defects h2,
.proof h2,
.contact h2 {
  font-size: 40px;
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: none;
}

.after-lede {
  margin-top: 59px;
}

.plain__cards {
  margin-top: 59px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px 28px;
}

.info-card h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #2c3c75;
}

.info-card p {
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.5;
  display: block;
  overflow: visible;
  height: auto;
  max-height: none;
  white-space: normal;
}

.why {
  background: var(--bg-alt);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0 36px;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--line);
}

.stats-row strong {
  display: block;
  font-size: clamp(32px, 3vw, 40px);
  color: #2c3c75;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stats-row span {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.35;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plain .card-grid-3,
.scale .card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.roi h2 {
  margin-bottom: 36px;
}

.roi-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.calculatorForm {
  padding: 36px 32px 28px;
}

.roi-intro {
  color: var(--ink-muted);
  font-size: 18px;
  margin-bottom: 22px;
  max-width: 52ch;
}

.roi-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.roi-hint {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9aa3b5;
  font-weight: 600;
}

.roi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.roi-action-btn {
  flex: 1 1 220px;
  height: 62.39px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.roi-calc-btn {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.roi-result {
  position: relative;
  color: #fff;
  padding: 40px 36px 32px;
  background:
    linear-gradient(180deg, rgba(22, 29, 51, 0.38), rgba(22, 29, 51, 0.58)),
    url("../assets/images/background.png") center / cover no-repeat;
  display: flex;
  flex-direction: column;
}

.roi-result__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.roi-result__total {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 8px 0 28px;
}

.roi-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  column-gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.roi-row__label {
  font-size: 18px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roi-row__qty {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.roi-row__sum {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.roi-note {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.btn--teal {
  margin-top: 18px;
  height: 62.39px;
  font-size: 16px;
  background: var(--teal);
  color: #123;
  border: 0;
  width: 100%;
}

.btn--teal:hover {
  filter: brightness(1.05);
}

.roi-full {
  margin-top: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 28px 20px;
}

.roi-full[hidden] {
  display: none !important;
}

.roi-full h3 {
  font-size: 18px;
  margin: 18px 0 12px;
  color: #2c3c75;
}

.roi-full h3:first-child {
  margin-top: 0;
}

.roi-table {
  display: grid;
  gap: 0;
}

.roi-table__head,
.roi-table__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}

.roi-table--4 .roi-table__head,
.roi-table--4 .roi-table__row {
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
}

.roi-table__head {
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.roi-table__row {
  border-bottom: 1px solid var(--line);
  color: #2c3c75;
}

.roi-table__row.is-sum {
  font-weight: 700;
}

.roi-full__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 24px;
  font-size: 18px;
  color: #2c3c75;
}

.roi-full__total strong {
  font-size: 28px;
}

.scale,
.proof {
  background: var(--bg-alt);
}

.scale-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 26px;
}

.scale-card__cat {
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.scale-card h3 {
  font-size: 22px;
  color: #2c3c75;
  margin-bottom: 16px;
}

.scale-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.scale-card li {
  display: flex;
  gap: 10px;
  color: #2c3c75;
  font-size: 18px;
}

.scale-card li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background: no-repeat center / 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.2L6.2 11.4L13 4.2' stroke='%2323E1D7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}

.operator {
  background: #4357a0;
  color: #fff;
  padding: 88px 0;
  overflow: hidden;
}

.operator__grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  width: 100%;
  padding-left: max(24px, calc((100vw - min(100vw - 48px, var(--container))) / 2));
}

@media (min-width: 1440px) {
  .operator__grid {
    padding-left: max(40px, calc((100vw - min(100vw - 80px, var(--container))) / 2));
  }
}

.operator__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.operator__shot {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: transparent;
}

body:not(.htc) .operator__grid {
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  gap: 56px;
}

body:not(.htc) .operator h2 {
  font-size: 40px;
}

body:not(.htc) .operator__lead {
  font-size: 18px;
  line-height: 1.5;
  max-width: none;
}

body:not(.htc) .op-tab strong {
  font-size: 22px;
  line-height: 1.3;
}

body:not(.htc) .op-tab__desc {
  font-size: 18px;
  line-height: 1.5;
}

/* One interface screenshot at every width, sitting on the right and scaling with the column. */
body:not(.htc) .operator__shot {
  position: relative;
  justify-self: end;
  align-self: center;
  width: min(1040px, calc(100% - 28px));
  aspect-ratio: 1920 / 1105;
  height: auto;
  margin-right: 28px;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f6fb;
  box-shadow: 0 22px 48px rgba(13, 19, 46, 0.22);
}

body:not(.htc) .operator__shot img.operator__ui {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body:not(.htc) .operator[data-operator="live"] .operator__ui--live,
body:not(.htc) .operator[data-operator="height"] .operator__ui--height,
body:not(.htc) .operator[data-operator="stats-shift"] .operator__ui--stats-shift,
body:not(.htc) .operator[data-operator="stats-cycles"] .operator__ui--stats-cycles,
body:not(.htc) .operator[data-operator="task"] .operator__ui--task {
  display: block;
}

.section-kicker--light {
  color: var(--teal);
}

.section-kicker--light::before {
  background: var(--teal);
}

.operator h2 {
  margin-bottom: 12px;
}

.operator__lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 42ch;
}

.op-tabs {
  display: grid;
  gap: 6px;
}

.op-tab {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.op-tab__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  color: #4357a0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.op-tab__icon svg,
.op-tab__icon img,
.op-tab__glyph {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.op-tab__glyph {
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.op-tab__glyph--live {
  -webkit-mask-image: url("../assets/images/features/live-pallet.svg");
  mask-image: url("../assets/images/features/live-pallet.svg");
}

.op-tab__glyph--height {
  -webkit-mask-image: url("../assets/images/features/height-density.svg");
  mask-image: url("../assets/images/features/height-density.svg");
}

.op-tab__glyph--stats {
  -webkit-mask-image: url("../assets/images/features/stats-shift.svg");
  mask-image: url("../assets/images/features/stats-shift.svg");
}

.op-tab__glyph--task {
  -webkit-mask-image: url("../assets/images/features/task-control.svg");
  mask-image: url("../assets/images/features/task-control.svg");
}

.op-tab__text {
  min-width: 0;
  padding-top: 2px;
}

.op-tab strong {
  display: block;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.op-tab__desc {
  display: block;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.op-tab.is-active {
  background: #fff;
}

.op-tab.is-active .op-tab__icon {
  background: #4357a0;
  color: #fff;
}

.op-tab.is-active strong {
  color: #2c3c75;
}

.op-tab.is-active .op-tab__desc {
  color: #5b647a;
}

.defects__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.2fr);
  gap: 48px 56px;
  align-items: start;
}

.defects__copy {
  min-width: 0;
}

.defects__copy .lede {
  max-width: 42ch;
  margin-bottom: 0;
}

.defects__cta {
  margin-top: 59px;
  white-space: nowrap;
  height: 62.39px;
  width: max-content;
  min-width: 219.55px;
  padding: 0 18px;
  font-size: 16px;
}

.defect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.defect-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  font-weight: 600;
  color: #2c3c75;
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

.defect-item span {
  display: block;
  min-width: 0;
  overflow: visible;
  white-space: normal;
  line-height: 1.35;
}

.defect-item svg,
.defect-item img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

.proof h2 {
  text-align: center;
  max-width: 18ch;
  margin: 0 auto;
}

.proof__lede {
  text-align: center;
  margin: 16px auto 36px;
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.proof__grid figure {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 240px;
  background: #dbe3f2;
}

.proof__grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.proof__grid figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  .why__grid,
  .roi-card,
  .operator__grid,
  .proof__grid {
    grid-template-columns: 1fr;
  }

  .plain .card-grid-3,
  .scale .card-grid-3,
  .why__grid {
    grid-template-columns: 1fr;
  }

  .plain .card-grid-3 .info-card p,
  .why__grid .info-card p,
  .scale-card li,
  .step-card p {
    display: block;
    overflow: visible;
    height: auto;
    max-height: none;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .operator__grid {
    grid-template-columns: 1fr;
    padding-right: 0;
    gap: 32px;
  }

  body:not(.htc) .operator__grid {
    grid-template-columns: 1fr;
  }

  body:not(.htc) .operator__shot {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin-right: 0;
    border-radius: 12px;
  }

  body:not(.htc) .operator[data-operator] .operator__shot img.operator__ui {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .plain h2,
  .why h2,
  .roi h2,
  .scale h2,
  .steps-sec h2,
  .operator h2,
  .defects h2,
  .proof h2,
  .contact h2 {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
  .defects__grid {
    grid-template-columns: 1fr;
  }

  .pbc-hero__copy {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .roi-fields,
  .roi-table__head,
  .roi-table__row,
  .roi-table--4 .roi-table__head,
  .roi-table--4 .roi-table__row {
    grid-template-columns: 1fr;
  }

  .defect-grid {
    grid-template-columns: 1fr;
  }

  .header.is-open .nav-drop__menu {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
  }
}
