/* 02 — Hero banner (Figma 712:8671 desktop 1920×1114 / 353:2205 mobile) */
.hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface-card);
  /* client: green block + certification strip fill the viewport under the 72px header */
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
}

/* ---- top level: 2 equal columns ---- */
.hero__top {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: var(--surface-card);
}
.hero__content {
  background: var(--brand-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  padding: var(--page-pad);
  box-sizing: border-box;
}
.hero__media {
  background: #f6f6f6; /* matches the loop video's own background so the square blends into the column */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__video {
  position: absolute; inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 20px;
  border: 1px solid var(--text-inverse);
  border-radius: var(--radius-full);
  color: var(--text-inverse);
  white-space: nowrap;
}
.hero__title {
  margin: 0;
  color: var(--text-inverse);
  width: 100%;
  text-wrap: pretty;
}
.hero__title .nowrap { white-space: nowrap; }
.hero__lead {
  margin: 0;
  color: var(--text-inverse);
  opacity: 0.7;
  width: 100%;
}
.hero__btn {
  background: var(--surface-white);
  border-color: var(--text-inverse);
  color: var(--brand-primary);
  padding: 12px 24px;
}
.hero__btn:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}
/* the two hero actions on one row; "Contact us" is a ghost so the demo button stays the loud one */
.hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero__contact {
  background: transparent;
  border-color: var(--text-inverse);
  color: var(--text-inverse);
  padding: 12px 24px;
}
.hero__contact:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--brand-primary);
}

/* ---- bottom level: trust strip (natural height, 154px at 1920) ---- */
.hero__trust {
  flex-shrink: 0;
  width: 100%;
  background: var(--surface-page);
}
.hero__trust-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 32px var(--page-pad); /* Figma 712:8680 */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero__trust-title {
  margin: 0;
  font: 500 20px/24px var(--font); /* Headings/H5 */
  letter-spacing: -0.4px;
  color: var(--text-ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.hero__certs {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.hero__cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 200px;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.hero__cert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.hero__cert-icon img { width: 64px; height: 64px; display: block; }
.hero__cert-icon--pci { width: 87.7px; height: 64px; }
.hero__cert-icon--pci img { width: 87.7px; height: auto; } /* the mark sits inside the 64px box, aspect kept */
.hero__cert-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: center;
  overflow: hidden;
}
.hero__cert-name { font: 600 16px/20px var(--font); letter-spacing: -0.64px; color: var(--text-ink); width: 100%; }
.hero__cert-desc { font: 400 14px/18px var(--font); letter-spacing: -0.56px; color: var(--text-muted); width: 100%; }

/* ---- tablet: let it scale ---- */
@media (max-width: 1200px) {
  .hero__content { padding: 64px 48px; min-height: 560px; gap: 32px; }
  .hero__title { font-size: 54px; line-height: 58px; letter-spacing: -0.05em; }
  .hero__lead { font-size: 20px; line-height: 24px; }
  .hero__trust-inner { padding: 32px 48px; gap: 32px; flex-wrap: wrap; }
  .hero__certs { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .hero__cert { width: 180px; }
}

/* ---- mobile (Figma 353:2205, 375 wide, 1279 tall) ---- */
@media (max-width: 767px) {
  .hero { min-height: 0; height: auto; }
  .hero__top {
    display: flex;
    flex-direction: column;
    flex: none;
  }
  .hero__media {
    order: 0;
    width: 100%;
    height: 375px;
  }
  .hero__content {
    order: 1;
    width: 100%;
    min-height: 0;
    padding: 48px 16px; /* Figma 353:2207: 48 top/bottom, 16 sides */
    gap: 24px;
    align-items: stretch;
  }
  .hero__text { gap: 12px; align-items: center; }
  .hero__badge {
    min-width: 281px;
    max-width: 100%;
    padding: 8px 16px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
  }
  .hero__title {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -1.6px;
    text-align: center;
  }
  .hero__lead {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.54px;
    text-align: center;
    opacity: 1;
  }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero__btn, .hero__contact { width: 100%; box-sizing: border-box; }

  .hero__trust-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 48px 16px;
  }
  .hero__trust-title { text-align: center; white-space: normal; width: 100%; }
  .hero__certs {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    justify-content: stretch;
  }
  .hero__cert { width: auto; min-width: 1px; }
}
