/* Overrides on top of the exported Webflow stylesheet (webflow.css).
   Keep fixes here so webflow.css stays a clean export. */

body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.w-webflow-badge { display: none !important; }

/* Menu button is a <button> now: reset native button styles. */
.menu-button { border: 0; position: relative; }
.menu-icon { transition: opacity .2s ease; }

/* Fix 1: phone and tablet menu opens from the burger. */
@media screen and (max-width: 991px) {
  .nav-menu {
    grid-column-gap: 16px; grid-row-gap: 16px;
    background-color: var(--accent-light);
    flex-flow: column; align-items: stretch;
    padding: 20px;
    position: absolute; inset: 80px 20px auto;
  }
  .nav-menu-items { flex-flow: column; grid-row-gap: 8px; }
  .nav.menu-is-open .nav-menu { display: flex; }
  .nav.menu-is-open .menu-icon.menu-open { opacity: 0; }
  .nav.menu-is-open .menu-icon.menu-close { opacity: 1; }
}

/* Forms: honeypot field stays off screen; Turnstile sits above the button. */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-wrap { position: relative; margin: 0 0 15px; }
.cf-turnstile { margin: 8px 0 16px; }
.form-wrap .w-form-done, .form-wrap .w-form-fail { display: none; }

@media screen and (max-width: 767px) {
  /* Fix 2: the dot-and-line graphics run off the screen edges on phones. */
  .section-image { display: none; }
  /* Fix 3: blank space above "From inputs to impact in minutes". */
  .section:has(.inputs-impact) { padding-top: 48px; }
  .section-left-heading:has(.inputs-impact) { margin-top: 0; }
}

/* Fix 4: product tab row scrolls sideways on phones instead of being cut off */
@media (max-width: 767px) {
  .tabs-menu.w-tab-menu { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 8px; max-width: 100%; }
  .tabs-menu.w-tab-menu::-webkit-scrollbar { display: none; }
  .tabs-menu .tab-link { flex: 0 0 auto; white-space: nowrap; }
}

/* Fix 7 and 9: Why RGM and patents cards */
.cards-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; max-width: 713px; margin: 0 auto 64px; }
.cards-head h2, .cards-head p { margin: 0; opacity: 1 !important; transform: none !important; }
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trust-card { background: var(--accent-light); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.trust-card h3, .trust-card p { margin: 0; }
.trust-badges { display: flex; justify-content: center; gap: 24px; margin-top: 40px; }
@media (max-width: 991px) { .trust-grid { grid-template-columns: 1fr; } .trust-card { padding: 24px; } }

/* Product tab screenshots open full screen on phones and tablets (site.js). */
.shot-tap-hint { display: none; }
@media (max-width: 991px) {
  .shot-zoomable { cursor: zoom-in; }
  .shot-tap-hint {
    display: block; margin: 8px 0 0; text-align: center; cursor: pointer;
    font-size: 13px; color: rgba(34, 34, 34, 0.6);
    font-family: system-ui, -apple-system, sans-serif; text-transform: none; letter-spacing: 0;
  }
}
.shot-viewer {
  position: fixed; inset: 0; z-index: 2000;
  background: #141414;
  display: flex; flex-direction: column;
}
.shot-viewer[hidden] { display: none; }
.shot-viewer-scroll {
  flex: 1; overflow: auto; display: flex; align-items: center;
  -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom;
}
.shot-viewer-scroll img { display: block; width: 100%; height: auto; margin: auto; cursor: zoom-in; }
.shot-viewer.is-zoomed .shot-viewer-scroll { align-items: flex-start; }
.shot-viewer.is-zoomed .shot-viewer-scroll img { width: 300%; max-width: none; cursor: zoom-out; }
.shot-viewer-close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 22px;
  background: #fff; color: #222; font-size: 28px; line-height: 44px; cursor: pointer;
}
.shot-viewer-hint {
  margin: 0; padding: 12px 16px 20px; text-align: center;
  color: rgba(255, 255, 255, 0.75); font-size: 14px;
  font-family: system-ui, -apple-system, sans-serif; text-transform: none; letter-spacing: 0;
}
.shot-viewer.is-zoomed .shot-viewer-hint { display: none; }
html.shot-viewer-open, html.shot-viewer-open body { overflow: hidden; }

/* Product tab text on phones: smaller and left-aligned so the picture leads. */
@media (max-width: 767px) {
  .tab-pane-product p.regular-s.no-caps.product {
    font-size: 14px; line-height: 1.45; text-align: left;
  }
}
