/* Final responsive refinements for the redesigned public site. */
.hero-inner { min-height: 520px; }
.hero-copy h1 { font-size: 54px; }
.hero-visual { padding: 16px 0 24px; }
.capability-section { background: #f0f3f1; }
.workflow-section { background: #fbf8f3; }
.contact-band { background: #244a46; }
.contact-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact-band-copy { flex: 1; min-width: 0; }

/* Render the original QR image at a scan-friendly size without cropping or filtering. */
.qq-qr-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-top: 30px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.qq-qr-panel img {
  width: 188px;
  height: 188px;
  flex: 0 0 188px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #fff;
}
.qq-qr-panel > div { min-width: 0; }
.qq-qr-panel strong { display: block; margin-top: 6px; font-size: 17px; line-height: 1.45; }
.qq-qr-panel p { margin: 7px 0; color: var(--muted); font-size: 12px; }
.qq-qr-panel small { display: block; color: var(--green); font-weight: 700; }
.contact-band .qq-qr-panel {
  width: min(430px, 42%);
  flex: 0 0 min(430px, 42%);
  margin: 0;
  color: var(--ink);
}
.contact-band .qq-qr-panel img { width: 154px; height: 154px; flex-basis: 154px; }
.contact-band .qq-qr-panel p { color: var(--muted); }
.contact-band .qq-qr-panel .eyebrow { color: var(--green); }
.contact-primary .qq-qr-panel { max-width: 540px; }
.capability-quote-image {
  display: block;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.capability-quote-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.downloads-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}
.downloads-layout:not(.has-qr) { grid-template-columns: minmax(0, 1fr); }
.downloads-main { min-width: 0; }
.downloads-qr-panel {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: none;
  margin: 0;
  padding: 22px 18px;
  text-align: center;
}
.downloads-qr-panel img { width: 188px; height: 188px; flex-basis: 188px; }
.downloads-qr-panel > div { width: 100%; }
.downloads-qr-panel p { margin-bottom: 4px; }

@media (max-width: 960px) {
  .hero-inner { min-height: 0; }
  .hero-visual { padding: 15px 0 32px; }
  .capability-quote-image { width: min(100%, 420px); justify-self: center; }
}

@media (max-width: 700px) {
  .contact-band .container { display: block; }
  .contact-band .qq-qr-panel { width: 100%; max-width: 480px; margin: 26px 0 0; }
  .qq-qr-panel { gap: 14px; padding: 14px; }
  .qq-qr-panel img { width: 144px; height: 144px; flex-basis: 144px; }
  .contact-band .qq-qr-panel img { width: 132px; height: 132px; flex-basis: 132px; }
  .qq-qr-panel strong { font-size: 15px; }
  .qq-qr-panel p { font-size: 11px; }
  .hero-copy h1 { font-size: 37px; }
  .hero-copy h1 br { display: none; }
}

@media (max-width: 900px) {
  .downloads-layout,
  .downloads-layout:not(.has-qr) { grid-template-columns: minmax(0, 1fr); }
  .downloads-qr-panel { width: min(100%, 460px); justify-self: center; }
}

/* Gallery screenshots use the full card width and keep their complete 16:10 frame. */
.gallery-visual {
  height: auto;
  aspect-ratio: 16 / 10;
  padding: 0;
  display: grid;
  place-items: center;
}
.gallery-image-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.gallery-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-visual .gallery-demo {
  width: 100%;
  height: 100%;
}

.software-download-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}
.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}
.download-filename {
  display: block;
  margin-top: 4px;
  color: #8a9b95;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.software-download-row > .button-primary {
  min-width: 132px;
  justify-self: end;
}

/* Keep the full desktop header from letting the final nav link collide with the CTA. */
.header-inner { gap: clamp(12px, 1.6vw, 22px); }
.wordmark {
  flex: 0 1 338px;
  min-width: 0;
  max-width: 338px;
  overflow: hidden;
}
.wordmark-copy { flex: 1 1 auto; overflow: hidden; }
.wordmark-copy strong,
.wordmark-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-nav {
  flex: 1 1 auto;
  justify-content: space-between;
  gap: clamp(9px, 1vw, 16px);
  margin: 0;
}
.desktop-nav a { flex: 0 0 auto; }
.header-action { flex: 0 0 auto; margin-left: clamp(8px, 1vw, 14px); }
@media (max-width: 1100px) {
  .desktop-nav,
  .header-action { display: none; }
  .header-inner { justify-content: space-between; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 24px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .mobile-nav a {
    padding: 11px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  .software-download-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
  }
  .software-download-row > .button-primary {
    grid-column: 2;
    justify-self: start;
  }
}
