/*
 * MageEnv extension pages (/extensions/*).
 * Light theme only (the rest of mageenv.com is dark).
 * Loaded after /style.css (Tailwind preflight + Lexend/Inter fonts).
 * All classes are prefixed `xp-` so they never collide with the main site.
 */

:root {
  --xp-bg: #ffffff;
  --xp-bg-deep: #f6f7fb;
  --xp-surface: #fbfcfd;
  --xp-surface-2: #ffffff;
  --xp-surface-3: #eef1f6;
  --xp-line: rgba(16, 24, 40, 0.08);
  --xp-line-2: rgba(16, 24, 40, 0.14);
  --xp-text: #0f172a;
  --xp-text-2: #475467;
  --xp-text-3: #667085;
  --xp-primary: #4a6cf7;
  --xp-primary-btn: #3f5ff0;
  --xp-primary-btn-hover: #3654e0;
  --xp-link: #3f5ff0;
  --xp-ok: #067647;
  --xp-warn: #b45309;
  --xp-radius-sm: 8px;
  --xp-radius: 12px;
  --xp-radius-lg: 18px;
  --xp-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 16px 40px -16px rgba(16, 24, 40, 0.16);
  --xp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --xp-head: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --xp-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --xp-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --acc: var(--xp-primary);
  color-scheme: light;
}

/* ---------- Base ---------- */

.xp {
  background: var(--xp-bg);
  color: var(--xp-text-2);
  font-family: var(--xp-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.xp main:focus {
  outline: none;
}

.xp h1,
.xp h2,
.xp h3 {
  font-family: var(--xp-head);
  color: var(--xp-text);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.xp p {
  text-wrap: pretty;
}

.xp a {
  color: var(--xp-link);
  text-decoration: none;
  transition: color 0.15s var(--xp-ease);
}

.xp a:hover {
  color: #2b47c9;
}

.xp :focus-visible {
  outline: 2px solid var(--xp-link);
  outline-offset: 3px;
  border-radius: 6px;
}

.xp code {
  font-family: var(--xp-mono);
  font-size: 0.875em;
  color: var(--xp-text);
  background: rgba(16, 24, 40, 0.06);
  padding: 0.12em 0.4em;
  border-radius: 5px;
}

.xp-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .xp-wrap {
    padding-inline: 2rem;
  }
}

.xp-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.xp-skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--xp-primary-btn);
  color: #fff !important;
  padding: 0.6rem 1rem;
  border-radius: var(--xp-radius-sm);
  font-weight: 600;
}

.xp-skip:focus {
  top: 1rem;
}

.xp-ico {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.xp-ico--xs {
  width: 1rem;
  height: 1rem;
}

.xp-ico--sm {
  width: 1.125rem;
  height: 1.125rem;
}

.xp-ico--md {
  width: 1.5rem;
  height: 1.5rem;
}

.xp-eyebrow {
  font-family: var(--xp-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xp-link);
  margin-bottom: 0.75rem;
}

.xp-detail .xp-eyebrow {
  color: var(--acc);
}

/* ---------- Buttons ---------- */

.xp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--xp-radius-sm);
  border: 1px solid transparent;
  font-family: var(--xp-head);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition:
    background-color 0.18s var(--xp-ease),
    border-color 0.18s var(--xp-ease),
    color 0.18s var(--xp-ease),
    transform 0.18s var(--xp-ease),
    box-shadow 0.18s var(--xp-ease);
}

.xp-btn:active {
  transform: translateY(1px);
}

.xp-btn--primary {
  background: var(--xp-primary-btn);
  color: #fff !important;
  box-shadow: 0 8px 24px -10px rgba(63, 95, 240, 0.8);
}

.xp-btn--primary:hover {
  background: var(--xp-primary-btn-hover);
}

.xp-btn--secondary {
  background: var(--xp-surface-3);
  color: var(--xp-text) !important;
  border-color: var(--xp-line-2);
}

.xp-btn--secondary:hover {
  background: #e4e8f0;
}

.xp-btn--ghost {
  background: transparent;
  color: var(--xp-text) !important;
  border-color: var(--xp-line-2);
}

.xp-btn--ghost:hover {
  background: rgba(16, 24, 40, 0.04);
  border-color: rgba(16, 24, 40, 0.24);
}

.xp-btn--sm {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.xp-btn--lg {
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
}

.xp-btn--block {
  width: 100%;
  margin-top: 0.75rem;
}

.xp-btn[disabled],
.xp-btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Header ---------- */

.xp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--xp-line);
}

.xp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.xp-header__logo img {
  height: 32px;
  width: auto;
}

.xp-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.xp-header__nav a:not(.xp-btn) {
  font-family: var(--xp-head);
  font-size: 0.95rem;
  color: var(--xp-text-2);
  position: relative;
  padding-block: 0.4rem;
}

.xp-header__nav a:not(.xp-btn):hover,
.xp-header__nav a[aria-current="page"] {
  color: var(--xp-text);
}

.xp-header__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--xp-primary);
}

.xp-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--xp-radius-sm);
  color: var(--xp-text);
  border: 1px solid var(--xp-line-2);
  background: transparent;
}

@media (max-width: 767px) {
  .xp-header__toggle {
    display: inline-flex;
  }

  .xp-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--xp-bg);
    border-bottom: 1px solid var(--xp-line);
    display: none;
  }

  .xp-header.is-open .xp-header__nav {
    display: flex;
  }

  .xp-header__nav a:not(.xp-btn) {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--xp-line);
  }

  .xp-header__nav a[aria-current="page"]::after {
    display: none;
  }

  .xp-header__nav .xp-btn {
    margin-top: 0.85rem;
  }
}

/* ---------- Hero ---------- */

.xp-hero {
  position: relative;
  overflow: hidden;
  padding-block: 2rem 3.5rem;
  border-bottom: 1px solid var(--xp-line);
}

.xp-hero__glow {
  position: absolute;
  inset: -40% -10% auto;
  height: 720px;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 75% 40%, color-mix(in srgb, var(--acc) 18%, transparent), transparent 70%),
    radial-gradient(35% 45% at 20% 20%, rgba(74, 108, 247, 0.1), transparent 70%);
}

.xp-hero > .xp-wrap {
  position: relative;
}

.xp-hero h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.xp-hero__lede {
  font-size: clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--xp-text-2);
  max-width: 38rem;
}

.xp-hero--list {
  padding-block: 4rem 4.5rem;
  text-align: center;
}

.xp-hero--list h1 {
  max-width: 21ch;
  margin-inline: auto;
}

.xp-hero--list .xp-hero__lede {
  margin-inline: auto;
}

.xp-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--xp-text-2);
}

.xp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.xp-trust .xp-ico {
  color: var(--xp-link);
}

.xp-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--xp-text-3);
  margin-bottom: 2rem;
}

.xp-crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: rgba(16, 24, 40, 0.25);
}

.xp-crumbs a {
  color: var(--xp-text-3);
}

.xp-crumbs a:hover {
  color: var(--xp-text);
}

.xp-crumbs [aria-current] {
  color: var(--xp-text-2);
}

.xp-hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .xp-hero--detail {
    padding-block: 2rem 5rem;
  }

  .xp-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.xp-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.xp-hero__cat {
  font-family: var(--xp-head);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--xp-text-2);
}

.xp-hero__checks {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.75rem;
  color: var(--xp-text);
  font-size: 0.975rem;
}

@media (min-width: 540px) {
  .xp-hero__checks {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }
}

.xp-hero__checks li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.xp-hero__checks .xp-ico {
  margin-top: 0.3rem;
  color: var(--acc);
}

.xp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (max-width: 539px) {
  .xp-hero__cta .xp-btn {
    flex: 1 1 100%;
  }
}

.xp-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--xp-line);
}

.xp-hero__facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xp-text-3);
  margin-bottom: 0.2rem;
}

.xp-hero__facts dd {
  font-family: var(--xp-head);
  color: var(--xp-text);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.xp-hero__facts dd span {
  font-family: var(--xp-body);
  font-size: 0.85rem;
  color: var(--xp-text-3);
}

/* Adobe Commerce Marketplace approval seal (live extensions only) */
.xp .xp-seal {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  max-width: 34rem;
  border-radius: var(--xp-radius);
  background: #f0fdf6;
  box-shadow: inset 0 0 0 1px rgba(6, 118, 71, 0.22);
  color: var(--xp-text-2);
  text-decoration: none;
  text-align: left;
  transition: box-shadow 0.2s var(--xp-ease), background 0.2s var(--xp-ease);
}

.xp .xp-seal:hover {
  background: #e7fbef;
  box-shadow: inset 0 0 0 1px rgba(6, 118, 71, 0.4);
}

.xp-seal:focus-visible {
  outline: 2px solid var(--xp-ok);
  outline-offset: 2px;
}

.xp-seal__seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #fff;
  background: var(--xp-ok);
}

.xp-seal__seal .xp-ico {
  width: 1.3rem;
  height: 1.3rem;
}

.xp-seal__text {
  display: grid;
  gap: 0.1rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.xp-seal__text strong {
  font-family: var(--xp-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--xp-text);
}

.xp-seal__go {
  flex: none;
  margin-left: auto;
  color: var(--xp-ok);
}

/* Browser frame around the hero screenshot */
.xp-hero__visual {
  position: relative;
}

.xp-hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% 6% -4%;
  background: color-mix(in srgb, var(--acc) 30%, transparent);
  filter: blur(70px);
  opacity: 0.45;
  border-radius: 50%;
  pointer-events: none;
}

.xp-browser {
  position: relative;
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--xp-line-2);
  box-shadow:
    0 0 0 6px rgba(16, 24, 40, 0.04),
    0 40px 80px -30px rgba(16, 24, 40, 0.35);
  max-width: 560px;
  margin-inline: auto;
}

.xp-browser__bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  background: #e9ecf1;
  border-bottom: 1px solid #d9dde4;
}

.xp-browser__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c4c9d2;
}

.xp-browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Extension icon tile ---------- */

.xp-exticon {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  color: var(--acc);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--acc) 20%, transparent), color-mix(in srgb, var(--acc) 8%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 35%, transparent);
}

.xp-exticon--md {
  width: 44px;
  height: 44px;
}

.xp-exticon--md .xp-ico {
  width: 22px;
  height: 22px;
}

/* ---------- Badges and chips ---------- */

.xp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.xp-badge--soon {
  color: #92400e;
  background: #fef3c7;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.3);
}

.xp-badge--live {
  color: #065f46;
  background: #d1fae5;
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.3);
}

.xp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.xp-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--xp-text-2);
  background: #f2f4f7;
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-chip--trust {
  gap: 0.3rem;
  color: #065f46;
  background: #ecfdf3;
  box-shadow: inset 0 0 0 1px rgba(6, 118, 71, 0.25);
}

.xp-chip--trust .xp-ico {
  width: 0.85rem;
  height: 0.85rem;
}

.xp-chip--accent {
  color: var(--acc);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 40%, transparent);
  background: color-mix(in srgb, var(--acc) 10%, transparent);
}

/* ---------- Detail layout ---------- */

.xp-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem 1rem;
}

@media (min-width: 992px) {
  .xp-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3.5rem;
    padding-top: 3.5rem;
  }

  .xp-layout__main {
    grid-column: 1;
    grid-row: 1;
  }

  .xp-layout__aside {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 92px;
  }
}

@media (min-width: 1140px) {
  .xp-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 4.5rem;
  }
}

/* ---------- Buy panel ---------- */

.xp-panel {
  background: linear-gradient(180deg, var(--xp-surface-2), var(--xp-surface));
  border: 1px solid var(--xp-line-2);
  border-radius: var(--xp-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--xp-shadow);
  scroll-margin-top: 92px;
}

.xp-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.xp-panel__title {
  font-size: 1.2rem;
}

.xp-seg {
  margin-bottom: 1.1rem;
}

.xp-seg__legend {
  font-size: 0.8rem;
  color: var(--xp-text-3);
  margin-bottom: 0.45rem;
}

.xp-seg__track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  gap: 4px;
  border-radius: 10px;
  background: var(--xp-bg-deep);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-seg__opt {
  position: relative;
}

.xp-seg__opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.xp-seg__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 7px;
  font-family: var(--xp-head);
  font-size: 0.925rem;
  color: var(--xp-text-2);
  transition:
    background-color 0.18s var(--xp-ease),
    color 0.18s var(--xp-ease);
  cursor: pointer;
}

.xp-seg__opt input:checked + span {
  background: #ffffff;
  color: var(--xp-text);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14), inset 0 0 0 1px var(--xp-line-2);
}

.xp-seg__opt input:focus-visible + span {
  outline: 2px solid var(--xp-link);
  outline-offset: 2px;
}

/* Theme views: CSS-only switching (works without JavaScript). */
.xp-views--switch [data-view="hyva"] {
  display: none;
}

.xp-panel:has(input[value="hyva"]:checked) [data-view="hyva"] {
  display: block;
}

.xp-panel:has(input[value="hyva"]:checked) [data-view="luma"] {
  display: none;
}

.xp-view {
  animation: xp-fade 0.22s var(--xp-ease);
}

.xp-view__note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--xp-text-2);
  margin-bottom: 0.65rem;
}

.xp-view__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--xp-line-2);
  font-size: 0.9rem;
}

.xp-view__total strong {
  font-family: var(--xp-head);
  font-size: 1.15rem;
  color: var(--xp-text);
  font-variant-numeric: tabular-nums;
}

.xp-pkgs {
  display: grid;
  gap: 0.6rem;
}

.xp-pkg {
  display: flex;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: var(--xp-radius);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-pkg__step {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--xp-text);
  background: var(--xp-surface-3);
}

.xp-pkg__body {
  flex: 1;
  min-width: 0;
}

.xp-pkg__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.xp-pkg__name {
  font-family: var(--xp-head);
  font-weight: 500;
  color: var(--xp-text);
  font-size: 0.975rem;
  line-height: 1.35;
}

.xp-pkg__sub {
  font-size: 0.83rem;
  color: var(--xp-text-3);
  line-height: 1.45;
}

.xp-pkg__price {
  font-family: var(--xp-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--xp-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}

.xp-pkg__price--free {
  font-size: 1rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  color: #065f46;
  background: #d1fae5;
}

.xp-pkg__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--xp-text-3);
  line-height: 1.4;
}

.xp-panel__soon {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--xp-line);
}

.xp-panel__soonline {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--xp-text-2);
  margin-bottom: 1rem;
}

.xp-panel__soonline .xp-ico {
  margin-top: 0.2rem;
  color: var(--xp-warn);
}

.xp-panel__includes {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--xp-line);
  font-size: 0.875rem;
  color: var(--xp-text-2);
}

.xp-panel__includes li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.xp-panel__includes .xp-ico {
  margin-top: 0.2rem;
  color: var(--acc);
}

.xp-panel__foot {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--xp-text-3);
}

/* ---------- Notify form ---------- */

.xp-notify__label {
  display: block;
  font-family: var(--xp-head);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--xp-text);
  margin-bottom: 0.5rem;
}

.xp-notify__row {
  display: grid;
  gap: 0.5rem;
}

.xp-notify input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--xp-radius-sm);
  background: var(--xp-bg-deep);
  border: 1px solid var(--xp-line-2);
  color: var(--xp-text);
  font-size: 1rem;
  transition:
    border-color 0.15s var(--xp-ease),
    box-shadow 0.15s var(--xp-ease);
}

.xp-notify input[type="email"]::placeholder {
  color: #98a2b3;
}

.xp-notify input[type="email"]:focus {
  outline: none;
  border-color: var(--xp-primary);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}

.xp-notify input[aria-invalid="true"] {
  border-color: #d92d20;
}

.xp-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.xp-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--xp-text-3);
  cursor: pointer;
}

.xp-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--xp-primary);
  cursor: pointer;
}

.xp-notify__status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.xp-notify__status:empty {
  display: none;
}

.xp-notify__status[data-type="error"] {
  color: #b42318;
}

.xp-notify__status[data-type="ok"] {
  color: #067647;
}

.xp-notify.is-done .xp-notify__row,
.xp-notify.is-done .xp-check,
.xp-notify.is-done .xp-notify__label {
  display: none;
}

.xp-notify.is-done .xp-notify__status {
  margin-top: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--xp-radius-sm);
  background: #ecfdf3;
  box-shadow: inset 0 0 0 1px rgba(6, 118, 71, 0.25);
}

/* ---------- In-page nav ---------- */

.xp-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.xp-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--xp-text-2);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--xp-line-2);
}

.xp-toc a:hover {
  color: var(--xp-text);
  background: #f2f4f7;
}

/* ---------- Sections ---------- */

.xp-sec {
  padding-block: 3rem;
  border-bottom: 1px solid var(--xp-line);
  scroll-margin-top: 84px;
}

.xp-layout__main > .xp-sec:last-child {
  border-bottom: 0;
}

.xp-sec__head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.xp-sec__head--center {
  text-align: center;
  margin-inline: auto;
}

.xp-sec h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.xp-sec__head p:not(.xp-eyebrow) {
  color: var(--xp-text-2);
}

.xp-problem {
  position: relative;
  padding: 2rem;
  border-radius: var(--xp-radius-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--acc) 9%, transparent), transparent 60%),
    var(--xp-surface);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-problem p:last-child {
  font-size: 1.075rem;
  line-height: 1.7;
}

/* Features */
.xp-features {
  display: grid;
  gap: 3.5rem;
}

.xp-feature__text {
  max-width: 40rem;
  margin-bottom: 1.25rem;
}

.xp-feature__num {
  display: inline-block;
  font-family: var(--xp-mono);
  font-size: 0.8rem;
  color: var(--acc);
  margin-bottom: 0.5rem;
}

.xp-feature h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.xp-feature__media {
  margin: 0;
}

.xp-shot {
  display: flex;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vw, 1.75rem);
  border-radius: var(--xp-radius-lg);
  background:
    radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%),
    var(--xp-surface);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(16, 24, 40, 0.1),
    0 24px 48px -20px rgba(16, 24, 40, 0.28);
}

@media (min-width: 768px) {
  .xp-feature--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 2.5rem;
    align-items: center;
  }

  .xp-feature--split .xp-feature__text {
    margin-bottom: 0;
  }
}

.xp-feature__media--phone {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  border-radius: var(--xp-radius-lg);
  background:
    radial-gradient(60% 70% at 50% 30%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%),
    var(--xp-surface);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-phone {
  width: min(250px, 100%);
  padding: 10px;
  border-radius: 34px;
  background: #0a0d13;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 30px 60px -25px rgba(16, 24, 40, 0.45);
}

.xp-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}

.xp-showcase {
  margin: 0;
  padding: clamp(0.75rem, 3vw, 1.75rem);
  border-radius: var(--xp-radius-lg);
  background: #f6f8f7;
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

/* Gallery */
.xp-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

@media (min-width: 768px) {
  .xp-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.xp-thumb {
  position: relative;
  display: block;
  border-radius: var(--xp-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--xp-line-2);
  transition:
    box-shadow 0.2s var(--xp-ease),
    transform 0.2s var(--xp-ease);
}

.xp-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top;
}

.xp-thumb:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--acc) 55%, transparent),
    0 18px 36px -18px rgba(16, 24, 40, 0.3);
}

.xp-thumb__zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: rgba(12, 17, 26, 0.75);
  opacity: 0;
  transition: opacity 0.2s var(--xp-ease);
}

.xp-thumb:hover .xp-thumb__zoom,
.xp-thumb:focus-visible .xp-thumb__zoom {
  opacity: 1;
}

.xp-thumb__cap {
  margin-top: 0.55rem;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--xp-text-3);
}

/* Steps */
.xp-steps {
  display: grid;
  gap: 0;
}

.xp-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-bottom: 1.75rem;
}

.xp-step:last-child {
  padding-bottom: 0;
}

.xp-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19.5px;
  top: 44px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--xp-line-2), transparent);
}

.xp-step__n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-family: var(--xp-head);
  font-weight: 600;
  color: var(--acc);
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent);
}

.xp-step h3 {
  font-size: 1.1rem;
  margin: 0.4rem 0 0.3rem;
}

.xp-step p {
  font-size: 0.95rem;
  max-width: 36rem;
}

/* Counts */
.xp-counts {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .xp-counts {
    grid-template-columns: 1fr 1fr;
  }
}

.xp-counts__col {
  padding: 1.5rem;
  border-radius: var(--xp-radius);
  background: var(--xp-surface);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-counts__col h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.xp-counts__col--yes h3 .xp-ico {
  color: var(--xp-ok);
}

.xp-counts__col--no h3 .xp-ico {
  color: var(--xp-text-3);
}

.xp-counts__col li {
  padding-block: 0.5rem;
  border-top: 1px solid var(--xp-line);
  font-size: 0.95rem;
}

/* Compatibility table */
.xp-tablewrap {
  border-radius: var(--xp-radius);
  box-shadow: inset 0 0 0 1px var(--xp-line);
  overflow: hidden;
}

.xp-compat {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.xp-compat thead th {
  text-align: left;
  font-family: var(--xp-head);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xp-text-3);
  background: var(--xp-surface);
  padding: 0.85rem 1.1rem;
}

.xp-compat tbody th,
.xp-compat td {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--xp-line);
  vertical-align: top;
  text-align: left;
}

.xp-compat tbody th {
  font-weight: 500;
  color: var(--xp-text);
}

.xp-compat__val {
  color: var(--xp-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.xp-compat__val--no {
  color: var(--xp-text-3);
}

.xp-compat__note {
  color: var(--xp-text-3);
  font-size: 0.875rem;
}

@media (max-width: 639px) {
  .xp-compat thead {
    display: none;
  }

  .xp-compat tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 1rem;
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--xp-line);
  }

  .xp-compat tbody tr:first-child {
    border-top: 0;
  }

  .xp-compat tbody th,
  .xp-compat td {
    padding: 0;
    border: 0;
  }

  .xp-compat td.xp-compat__note {
    grid-column: 1 / -1;
  }
}

/* Install */
.xp-install {
  display: grid;
  gap: 1.5rem;
}

.xp-install h3 {
  font-size: 0.975rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.xp-install__note {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--xp-text-3);
}

.xp-copy {
  display: flex;
  align-items: stretch;
  border-radius: var(--xp-radius-sm);
  background: #0f172a;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
  overflow: hidden;
}

.xp-copy code {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  background: transparent;
  border-radius: 0;
  font-size: 0.85rem;
  color: #e2e8f0;
  overflow-wrap: anywhere;
}

.xp-copy code::before {
  content: "$ ";
  color: #64748b;
}

.xp-copy__btn {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  color: #cbd5e1;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  transition:
    color 0.15s var(--xp-ease),
    background-color 0.15s var(--xp-ease);
}

.xp-copy__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.xp-copy__done {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 4px;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #fff;
  background: var(--xp-ok);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.18s var(--xp-ease),
    transform 0.18s var(--xp-ease);
  pointer-events: none;
}

.xp-copy__btn.is-copied .xp-copy__done {
  opacity: 1;
  transform: none;
}

.xp-copy {
  overflow: visible;
}

/* FAQ */
.xp-faq {
  border-radius: var(--xp-radius);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-faq__item + .xp-faq__item {
  border-top: 1px solid var(--xp-line);
}

.xp-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.25rem;
  font-family: var(--xp-head);
  font-weight: 500;
  color: var(--xp-text);
  cursor: pointer;
  list-style: none;
}

.xp-faq__item summary::-webkit-details-marker {
  display: none;
}

.xp-faq__item summary:hover {
  background: #f9fafb;
}

.xp-faq__chev {
  color: var(--xp-text-3);
  transition: transform 0.22s var(--xp-ease);
}

.xp-faq__item[open] .xp-faq__chev {
  transform: rotate(180deg);
}

.xp-faq__a {
  padding: 0 1.25rem 1.25rem;
  max-width: 46rem;
}

.xp-faq__item[open] .xp-faq__a {
  animation: xp-fade 0.22s var(--xp-ease);
}

/* Changelog */
.xp-log {
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding-left: 1.5rem;
}

.xp-log::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--xp-line-2);
}

.xp-log__item {
  position: relative;
}

.xp-log__item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem + 1px);
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--xp-bg);
  box-shadow: 0 0 0 2px var(--xp-text-3);
}

.xp-log__item:first-child::before {
  box-shadow: 0 0 0 2px var(--acc);
  background: var(--acc);
}

.xp-log__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.xp-log__ver {
  font-family: var(--xp-head);
  font-weight: 600;
  color: var(--xp-text);
}

.xp-log__head time {
  font-size: 0.85rem;
  color: var(--xp-text-3);
}

.xp-log__item ul {
  display: grid;
  gap: 0.35rem;
  font-size: 0.925rem;
}

.xp-log__item li {
  position: relative;
  padding-left: 1rem;
}

.xp-log__item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 1px;
  background: var(--xp-text-3);
}

/* Help */
.xp-help {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .xp-help {
    grid-template-columns: 1fr 1fr;
  }
}

.xp-help__item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--xp-radius);
  background: var(--xp-surface);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-help__item > .xp-ico {
  color: var(--acc);
  margin-top: 0.2rem;
}

.xp-help__item h2 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.xp-help__item p {
  font-size: 0.925rem;
}

/* ---------- Cards (listing + related) ---------- */

.xp-catalog {
  padding-block: 3.5rem 1rem;
}

.xp-catalog__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.xp-catalog__title {
  font-size: 1.25rem;
}

.xp-catalog__title span {
  color: var(--xp-text-3);
  font-weight: 400;
}

.xp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.xp-filter {
  position: relative;
}

.xp-filter input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.xp-filter span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--xp-text-2);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--xp-line-2);
  cursor: pointer;
  transition:
    background-color 0.15s var(--xp-ease),
    color 0.15s var(--xp-ease);
}

.xp-filter span:hover {
  color: var(--xp-text);
}

.xp-filter input:checked + span {
  color: #fff;
  background: var(--xp-primary-btn);
  box-shadow: none;
}

.xp-filter input:focus-visible + span {
  outline: 2px solid var(--xp-link);
  outline-offset: 2px;
}

/* CSS-only filtering (JS only adds the empty state + announcement). */
.xp-catalog:has(input[value="paid"]:checked) .xp-card:not([data-tags~="paid"]),
.xp-catalog:has(input[value="free"]:checked) .xp-card:not([data-tags~="free"]),
.xp-catalog:has(input[value="hyva"]:checked) .xp-card:not([data-tags~="hyva"]) {
  display: none;
}

.xp-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .xp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1140px) {
  .xp-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xp-cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.xp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--xp-radius-lg);
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--acc) 8%, transparent), transparent 70%),
    var(--xp-surface);
  box-shadow: inset 0 0 0 1px var(--xp-line);
  transition:
    box-shadow 0.2s var(--xp-ease),
    transform 0.2s var(--xp-ease);
}

.xp-card--linked:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent),
    0 24px 50px -28px rgba(16, 24, 40, 0.3);
}

.xp-card--linked:focus-within {
  box-shadow: inset 0 0 0 2px var(--xp-link);
}

.xp-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.xp-card__cat {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acc);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.xp-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.xp-card__link {
  color: var(--xp-text) !important;
}

/* Stretch the title link over the whole card. */
.xp-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.xp-card__link:focus-visible {
  outline: none;
}

.xp-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.xp-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.xp-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--xp-line);
}

.xp-card__price {
  font-family: var(--xp-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--xp-text);
  font-variant-numeric: tabular-nums;
}

.xp-card__price span {
  display: block;
  font-family: var(--xp-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--xp-text-3);
}

.xp-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--xp-head);
  font-size: 0.9rem;
  color: var(--xp-link);
  white-space: nowrap;
}

.xp-card--linked:hover .xp-card__more .xp-ico {
  transform: translateX(3px);
}

.xp-card__more .xp-ico {
  transition: transform 0.2s var(--xp-ease);
}

.xp-card__more--muted {
  color: var(--xp-text-3);
  font-family: var(--xp-body);
  font-size: 0.83rem;
}

.xp-empty {
  padding: 2rem;
  text-align: center;
  border-radius: var(--xp-radius);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

/* Why */
.xp-why {
  margin-top: 4rem;
  padding-block: 4.5rem;
  background: var(--xp-bg-deep);
  border-block: 1px solid var(--xp-line);
}

.xp-why h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.xp-why__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .xp-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.xp-why__grid li {
  padding: 1.75rem;
  border-radius: var(--xp-radius-lg);
  background: var(--xp-surface);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-why__grid .xp-ico {
  color: var(--xp-link);
  margin-bottom: 1rem;
}

.xp-why__grid h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.xp-why__grid p {
  font-size: 0.95rem;
}

/* CTA band */
.xp-cta {
  padding-block: 4rem 1rem;
}

.xp-cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--xp-radius-lg);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(74, 108, 247, 0.12), transparent 70%),
    var(--xp-surface);
  box-shadow: inset 0 0 0 1px var(--xp-line-2);
}

.xp-cta__box h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  margin-bottom: 0.4rem;
}

/* Related */
.xp-related {
  padding-block: 3.5rem 1rem;
  border-top: 1px solid var(--xp-line);
  margin-top: 2rem;
}

.xp-related h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ---------- Mobile sticky bar ---------- */

.xp-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--xp-line-2);
  transform: translateY(110%);
  transition: transform 0.25s var(--xp-ease);
}

.xp-stickybar.is-visible {
  transform: none;
}

.xp-stickybar__info {
  display: grid;
  line-height: 1.3;
  min-width: 0;
}

.xp-stickybar__info strong {
  font-family: var(--xp-head);
  color: var(--xp-text);
  font-weight: 600;
}

.xp-stickybar__info span {
  font-size: 0.85rem;
  color: var(--xp-text-3);
}

@media (min-width: 992px) {
  .xp-stickybar {
    display: none !important;
  }
}

/* ---------- Lightbox ---------- */

.xp-lightbox {
  color-scheme: dark;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--xp-text);
}

.xp-lightbox::backdrop {
  background: rgba(6, 9, 14, 0.92);
  backdrop-filter: blur(4px);
}

.xp-lightbox[open] {
  animation: xp-fade 0.2s var(--xp-ease);
}

.xp-lightbox__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 4rem 1rem 3.5rem;
}

@media (min-width: 768px) {
  .xp-lightbox__inner {
    padding: 4rem 5.5rem 3.5rem;
  }
}

.xp-lightbox__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.xp-lightbox__fig img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  object-fit: contain;
}

.xp-lightbox__fig figcaption {
  font-size: 0.925rem;
  color: #e2e8f0;
  text-align: center;
}

.xp-lightbox__close,
.xp-lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.15s var(--xp-ease);
}

.xp-lightbox__close:hover,
.xp-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.xp-lightbox__close {
  top: 0.9rem;
  right: 0.9rem;
}

.xp-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.xp-lightbox__nav--prev {
  left: 1rem;
}

.xp-lightbox__nav--next {
  right: 1rem;
}

@media (max-width: 767px) {
  .xp-lightbox__nav {
    top: auto;
    bottom: 0.75rem;
    transform: none;
  }
}

.xp-lightbox__count {
  position: absolute;
  top: 1.35rem;
  left: 1.25rem;
  font-size: 0.875rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */

.xp-footer {
  margin-top: 5rem;
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--xp-line);
  background: var(--xp-bg-deep);
  font-size: 0.925rem;
}

.xp-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .xp-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.xp-footer__brand img {
  height: 34px;
  width: auto;
  margin-bottom: 1rem;
}

.xp-footer__brand p {
  max-width: 22rem;
  color: var(--xp-text-3);
}

.xp-footer__title {
  font-size: 0.8rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xp-text) !important;
  margin-bottom: 0.9rem;
}

.xp-footer ul {
  display: grid;
  gap: 0.55rem;
}

.xp-footer a {
  color: var(--xp-text-2);
}

.xp-footer a:hover {
  color: var(--xp-text);
}

.xp-footer__bottom {
  display: grid;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--xp-line);
  font-size: 0.8rem;
  color: var(--xp-text-3);
}

/* Room for the sticky bar on mobile detail pages. */
@media (max-width: 991px) {
  .xp:has(.xp-stickybar) .xp-footer {
    padding-bottom: 6rem;
  }
}

/* ---------- Motion ---------- */

@keyframes xp-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xp *,
  .xp *::before,
  .xp *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html:has(.xp) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.xp) {
    scroll-behavior: auto;
  }
}

/* Zoomed callout of the key UI, overlapping the hero browser frame. */
.xp-hero__callout {
  position: absolute;
  left: -1rem;
  bottom: -2rem;
  width: min(46%, 250px);
  padding: 6px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--acc) 40%, transparent),
    0 30px 60px -20px rgba(16, 24, 40, 0.35),
    0 0 40px -10px color-mix(in srgb, var(--acc) 45%, transparent);
  transform: rotate(-2deg);
}

.xp-hero__callout img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
}

@media (min-width: 992px) {
  .xp-hero__callout {
    left: -2.5rem;
    bottom: -2.5rem;
  }
}

@media (max-width: 539px) {
  .xp-hero__callout {
    left: -0.25rem;
    bottom: -1.25rem;
  }
}

/* Marketplace app icons */
.xp-appicon {
  display: block;
  flex: none;
  border-radius: 22.5%;
  box-shadow:
    0 0 0 1px rgba(16, 24, 40, 0.06),
    0 10px 22px -10px rgba(16, 24, 40, 0.4);
}

.xp-appicon--md {
  width: 52px;
  height: 52px;
}

.xp-appicon--lg {
  width: 64px;
  height: 64px;
}

/* Capability grid (e.g. what Store Guardian watches) */
.xp-caps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .xp-caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.xp-cap {
  padding: 1.35rem 1.4rem;
  border-radius: var(--xp-radius);
  background: var(--xp-surface);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-cap__icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  color: var(--acc);
  background: color-mix(in srgb, var(--acc) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 25%, transparent);
}

.xp-cap h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.xp-cap p {
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Progress styles: tabbed showcase (all panels stacked without JS) */
.xp-styles {
  display: grid;
  gap: 1rem;
}

.xp-styles__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: var(--xp-surface-3);
  justify-self: start;
}

.xp-styles__tabs[hidden] {
  display: none;
}

.xp-styles__tab {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--xp-text-2);
  font: 600 0.9rem/1.2 var(--xp-body);
  cursor: pointer;
}

.xp-styles__tab[aria-selected="true"] {
  background: var(--xp-surface-2);
  color: var(--xp-text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), inset 0 0 0 1px var(--xp-line);
}

.xp-styles__tab:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.xp-styles__panel {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--xp-radius);
  background: var(--xp-surface);
  box-shadow: inset 0 0 0 1px var(--xp-line);
}

.xp-styles__panel[hidden] {
  display: none;
}

.xp-styles__info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.xp-styles__info p {
  font-size: 0.925rem;
  line-height: 1.6;
}

.xp-styles__best {
  margin-top: 0.4rem;
  color: var(--xp-text-2);
}

.xp-styles__best span {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--acc);
  background: color-mix(in srgb, var(--acc) 10%, transparent);
}

.xp-styles__cart,
.xp-styles__mini {
  margin: 0;
}

.xp-styles__cart img,
.xp-styles__mini img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--xp-radius-sm);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--xp-line), var(--xp-shadow);
}

.xp-styles__mini img {
  max-width: 348px;
}

.xp-styles figcaption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--xp-text-3);
}
