/* Approved product screenshots. The product keeps its own dark interface in both themes. */
.product-browser {
  overflow: hidden;
  border: 1px solid #66749b66;
  border-radius: 15px;
  background: #111118;
}
.product-browser-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 43px;
  padding: 10px 17px;
  border-bottom: 1px solid #ffffff0d;
  background: #202029;
  color: #bfc4d2;
  font-family: Manrope, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.product-browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.product-browser-dots > :is(i, span) {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6460;
}
.product-browser-dots > :nth-child(2) { background: #e9bd52; }
.product-browser-dots > :nth-child(3) { background: #66bb64; }
.product-browser-address {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-product .product-browser .product-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* A quiet frame and clear full-screen affordance, without cropping the supplied UI. */
.product-shot {
  --shot-surface: #1b1b24;
  --shot-border: #657ab070;
  --shot-muted: #b9c2d5;
  --shot-accent: #bacbf8;
  --shot-shadow: 0 18px 40px -20px #000000ab, 0 0 44px -16px #3d5aa940;
  --shot-shadow-hover: 0 22px 46px -20px #000000c2, 0 0 48px -12px #3d5aa954;
  min-width: 0;
  margin: 0;
  border: 2px solid var(--shot-border);
  border-radius: 16px;
  background: var(--shot-surface);
  box-shadow: var(--shot-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
html[data-theme="light"] .product-shot {
  --shot-surface: #fff;
  --shot-border: #6d83b66b;
  --shot-muted: #526078;
  --shot-accent: #3d5aa9;
  --shot-shadow: 0 18px 40px -20px #09152b54, 0 0 44px -16px #3d5aa92b;
  --shot-shadow-hover: 0 22px 46px -20px #09152b66, 0 0 48px -12px #3d5aa93d;
}
.product-shot-open {
  display: block;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #111118;
  cursor: zoom-in;
}
.product-shot-open img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
}
.product-shot-open:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--shot-accent);
  outline-offset: 5px;
}
.product-shot-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 18px;
  padding: 15px 18px;
  border-top: 1px solid var(--shot-border);
  border-radius: 0 0 14px 14px;
  background: var(--shot-surface);
  color: var(--shot-muted);
  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}
.product-shot-caption > :first-child { min-width: 0; }
.product-shot-caption > :last-child {
  flex-shrink: 0;
  color: var(--shot-accent);
  font-weight: 700;
  white-space: nowrap;
}
.solution .compact-feature > .product-shot { margin-top: 30px; }
.solution .feature-row > .feature-copy { min-width: 0; }

@media (min-width: 1001px) {
  /* Share text rows so different description lengths cannot stagger the images. */
  html[data-theme] .solution .feature-pair {
    grid-template-rows: auto auto auto auto;
    row-gap: 0;
  }
  html[data-theme] .solution .feature-pair > .compact-feature {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-items: start;
  }
  html[data-theme] .solution .feature-row {
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    gap: clamp(36px, 4vw, 60px);
  }
  html[data-theme] .solution .feature-row.reverse {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  }
  html[data-theme] .solution .feature-row.reverse > .product-shot { order: 1; }
}
@media (max-width: 1000px) {
  html[data-theme] .solution .feature-row.reverse > .product-shot { order: 1; }
}
@media (hover: hover) and (pointer: fine) {
  .product-shot:hover {
    transform: translateY(-3px);
    border-color: #708bcf;
    box-shadow: var(--shot-shadow-hover);
  }
}

/* This viewer is independent of the homepage calculator's dialog styles. */
#product-shot-dialog {
  width: min(1440px, 92vw);
  max-width: 1440px;
  height: min(1000px, 92vh);
  height: min(1000px, 92dvh);
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #7287bb70;
  border-radius: 16px;
  background: #14141c;
  color: #fff;
  box-shadow: 0 30px 100px #00000080, 0 0 70px -20px #3d5aa959;
  color-scheme: dark;
}
#product-shot-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
#product-shot-dialog::backdrop {
  background: #09101edf;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#product-shot-dialog .product-shot-dialog-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 5px;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid #7287bb42;
  background: #1b1c26;
}
#product-shot-dialog .product-shot-dialog-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.03em;
}
#product-shot-dialog .product-shot-dialog-header > div { grid-column: 1; grid-row: 1; }
#product-shot-original {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  color: #bacbf8;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#product-shot-dialog .product-shot-dialog-header p {
  grid-column: 1;
  margin: 0;
  color: #bac4d9;
  font-size: 14px;
  line-height: 1.6;
}
#product-shot-dialog .product-shot-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #91a6d459;
  border-radius: 8px;
  background: #2a2f41;
  color: #fff;
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
#product-shot-dialog .product-shot-close svg {
  width: 22px;
  height: 22px;
}
#product-shot-dialog .product-shot-close:hover {
  border-color: #8da6e1;
  background: #35456b;
}
#product-shot-dialog .product-shot-close:focus-visible {
  outline: 3px solid #acec00;
  outline-offset: 4px;
}
#product-shot-dialog .product-shot-dialog-scroll {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #687ba9 #1b1c26;
  scrollbar-width: thin;
  background: #111118;
}
#product-shot-dialog #product-shot-large {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}
#product-shot-dialog #product-shot-large[hidden] { display: none; }
#product-shot-error { margin: 24px; color: #fff; }

@media (max-width: 600px) {
  .product-browser { border-radius: 9px; }
  .product-browser-bar { min-height: 35px; padding: 8px 12px; gap: 17px; font-size: 10px; }
  .product-browser-dots { gap: 5px; }
  .product-browser-dots > :is(i, span) { width: 7px; height: 7px; }
  .product-shot-caption { align-items: flex-start; flex-wrap: wrap; padding: 13px 15px; gap: 7px 16px; }
  #product-shot-dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 12px;
  }
  #product-shot-dialog .product-shot-dialog-header { column-gap: 14px; padding: 17px 16px; }
  #product-shot-dialog .product-shot-dialog-header h2 { font-size: 20px; }
  #product-shot-dialog .product-shot-dialog-header p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-shot { transition: none; }
  .product-shot:hover { transform: none; }
}
.reduced-motion .product-shot { transition: none; }
.reduced-motion .product-shot:hover { transform: none; }
