/* Real product screenshots (templates/marketing/components/_product_shot.html).
   Tokens come from tokens-school-os.css only; no raw colours. The inactive theme image is
   display:none, so the browser never fetches it (both are loading="lazy"). */

.mkt-pshot {
  margin: 0 auto;
  inline-size: 100%;
  max-inline-size: 60rem;
  color: var(--school-ink);
}

.mkt-pshot__frame {
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid var(--mkt-rule);
  background: var(--school-tile);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--school-ink) 10%, transparent),
    0 24px 60px color-mix(in srgb, var(--school-ink) 18%, transparent);
}

.mkt-pshot__bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.55rem 0.8rem;
  border-block-end: 1px solid var(--mkt-rule);
  background: var(--school-manila);
}

.mkt-pshot__bar span {
  inline-size: 0.6rem;
  block-size: 0.6rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--school-ink) 22%, transparent);
}

.mkt-pshot__media { display: block; line-height: 0; }

.mkt-pshot__pic { display: block; }

.mkt-pshot__pic img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

/* Theme switch: exactly one picture is displayed, and a lazy image that is display:none is never
   fetched. This sheet is linked (render-blocking) by the sections that place a shot, so the rule
   exists before the browser decides which lazy image to load. */
.mkt-pshot__pic--dark { display: none; }

html[data-theme="dark"] .mkt-pshot[data-pshot-dark] .mkt-pshot__pic--light,
html[data-theme="oled"] .mkt-pshot[data-pshot-dark] .mkt-pshot__pic--light { display: none; }

html[data-theme="dark"] .mkt-pshot[data-pshot-dark] .mkt-pshot__pic--dark,
html[data-theme="oled"] .mkt-pshot[data-pshot-dark] .mkt-pshot__pic--dark { display: block; }

.mkt-pshot__caption {
  margin-block-start: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
  color: var(--school-ink-muted);
}

.mkt-pshot__what { color: var(--school-ink); font-weight: 600; }

.mkt-pshot__honest { color: var(--school-ink-muted); }

/* Phone captures: a handset-narrow column with a rounded bezel instead of a window bar. */
.mkt-pshot--phone { max-inline-size: 17.5rem; }

.mkt-pshot--phone .mkt-pshot__frame {
  border-radius: 1.75rem;
  border-width: 0.5rem;
  border-color: var(--school-ink);
}

@media (max-width: 575.98px) {
  .mkt-pshot__frame { border-radius: 0.6rem; }
  .mkt-pshot--phone { max-inline-size: 15rem; }
}

/* Side-by-side layout used beside lead copy on platform pages and in the home gallery. */
.mkt-pshot-section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.mkt-pshot-section__head {
  max-inline-size: 42rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.mkt-pshot-section__title { margin: 0 0 0.5rem; }

.mkt-pshot-section__lede { margin: 0; color: var(--school-ink-muted); }

.mkt-pshot-section__row { margin-block-start: clamp(1.5rem, 3vw, 2.5rem); }

.mkt-pshot-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 992px) {
  .mkt-pshot-grid--pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mkt-pshot-grid--pair .mkt-pshot { max-inline-size: none; }
  .mkt-pshot-grid--phone { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
  .mkt-pshot-grid--phone .mkt-pshot { max-inline-size: none; }
  .mkt-pshot-grid--phone .mkt-pshot--phone { max-inline-size: 17.5rem; justify-self: center; }
}
