/* Theme selector + theme-aware helpers. Dark colors themselves are generated into css/theme-dark.css. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* System / Light / Dark segmented control (rendered by js/theme.js into [data-theme-picker]) */
.theme-picker {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--dk-bg-f2f4f7, #f2f4f7);
  border: 1px solid var(--dk-bd-eaecf0, #eaecf0);
}
.theme-picker button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--dk-fg-667085, #667085);
  cursor: pointer;
  transition:
    background-color 150ms,
    color 150ms;
}
.theme-picker button:hover {
  color: var(--dk-fg-101828, #101828);
}
.theme-picker button[aria-checked='true'] {
  background: var(--dk-bg-ffffff, #fff);
  color: var(--dk-fg-101828, #101828);
  box-shadow: 0 1px 2px var(--dk-sh-1018281a, rgba(16, 24, 40, 0.1));
}
.theme-picker button:focus-visible {
  outline: 2px solid var(--dk-bd-2563eb, #2563eb);
  outline-offset: 1px;
}
.theme-picker svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Logo and image swaps */
.logo-dark,
.img-dark {
  display: none !important;
}
:root[data-px-theme='dark'] .logo-light,
:root[data-px-theme='dark'] .img-light {
  display: none !important;
}
:root[data-px-theme='dark'] .logo-dark,
:root[data-px-theme='dark'] .img-dark {
  display: block !important;
}

/* @dark-manual */
/* ---------- Dark mode: hand-tuned details the generator can't infer ---------- */
:root[data-px-theme='dark'] body {
  background: #12141a;
}

/* Marketing site */
:root[data-px-theme='dark'] .btn--dark {
  background: #f2f4f7;
  color: #101828;
}
:root[data-px-theme='dark'] .btn--dark:hover {
  background: #fff;
}
:root[data-px-theme='dark'] .integ__img,
:root[data-px-theme='dark'] .about-story img {
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Guidelines: the contrast-ratio tag on color samples stays dark navy with white text */
:root[data-px-theme='dark'] .sw .ratio {
  background: #102651;
  color: #fff;
}

/* Landing: small colored kickers need lighter shades on dark cards */
:root[data-px-theme='dark'] .kicker {
  color: #84adff;
}
:root[data-px-theme='dark'] .kicker.kicker--green {
  color: #47cd89;
}

/* Pricing FAQ: the brand link needs a lighter blue on the dark page */
:root[data-px-theme='dark'] .faq__more,
:root[data-px-theme='dark'] .contact__email a {
  color: #84adff;
}
