/* Small visual corrections kept separate from the compact demo stylesheet. */
.spark .line {
  fill: none;
  stroke: var(--accent);
  stroke-linejoin: round;
  stroke-width: 2;
}

.picker-brand .brand-mark.official {
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.picker-brand .brand-mark.official img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.picker-brand {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.picker-brand > div,
.picker-brand strong,
.picker-brand .eyebrow {
  display: block;
  width: 100%;
  text-align: center;
}

.picker-tools {
  display: flex;
  justify-content: center;
  gap: 3px;
  width: max-content;
  margin: 0 auto 18px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.picker-tools button {
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.picker-tools button.active {
  color: #fff;
  background: var(--accent);
}

.apps-showcase {
  margin-top: 64px;
  padding-top: 58px;
  border-top: 1px solid var(--border);
}

.showcase-head {
  max-width: 650px;
  margin: 0 auto 26px;
  text-align: center;
}

.showcase-head h2 {
  margin: 9px 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.showcase-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}

.platform-showcase {
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.platform-copy {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.platform-copy > div {
  min-width: 0;
}

.platform-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--accent);
  background: var(--panel-2);
}

.platform-icon .icon {
  width: 20px;
  height: 20px;
}

.platform-copy h3 {
  margin: 0 0 4px;
  font-size: 17px;
  letter-spacing: -.025em;
}

.platform-copy p {
  margin: 0;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.android-showcase {
  margin-bottom: 18px;
}

.phone-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-2);
}

.phone-shots button,
.desktop-shot {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #080b1c;
  cursor: zoom-in;
  box-shadow: 0 14px 32px -26px rgba(17, 24, 39, .75);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.phone-shots button {
  max-height: 430px;
}

.phone-shots button:hover,
.desktop-shot:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 38px -24px rgba(91, 95, 239, .45);
}

.phone-shots img,
.desktop-shot img {
  display: block;
  width: 100%;
}

.phone-shots img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.desktop-showcase-grid {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: 18px;
}

.platform-text-only {
  display: flex;
  align-items: center;
}

.platform-text-only .platform-copy {
  margin-bottom: 0;
}

.desktop-shot {
  aspect-ratio: 16 / 10;
}

.desktop-shot img {
  height: 100%;
  object-fit: cover;
}

.modal:has(.app-lightbox-image) {
  width: min(1120px, 100%);
}

.app-lightbox-image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #090b14;
}

@media (max-width: 800px) {
  .demo-site-nav,
  .demo-site-nav__inner {
    height: 64px;
  }

  .demo-site-nav__inner {
    gap: 10px;
    padding-inline: 16px;
  }

  .demo-site-links {
    display: none;
  }

  .demo-mobile-nav {
    display: block;
  }

  .demo-site-brand {
    gap: 8px;
    font-size: 16px;
  }

  .demo-site-brand img {
    width: 28px;
    height: 28px;
  }

  .demo-site-actions {
    gap: 6px;
  }

  .demo-mobile-nav > summary {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .demo-site-language > summary {
    height: 34px;
    padding-inline: 9px;
    border-radius: 8px;
  }

  .demo-site-cta {
    height: 34px;
    padding-inline: 12px;
    border-radius: 9px;
    font-size: 12px;
  }

  .demo-mobile-menu {
    position: fixed;
    top: 58px;
    right: 16px;
  }

  .demo-picker-root .picker {
    min-height: calc(100vh - 64px);
  }

  html,
  body,
  #demoRoot,
  .picker,
  .picker-inner,
  .apps-showcase,
  .platform-showcase {
    min-width: 0;
    max-width: 100%;
  }

  html,
  body,
  #demoRoot,
  .picker {
    overflow-x: hidden;
  }

  .picker-inner {
    width: 100%;
  }

  .picker-brand {
    flex-wrap: wrap;
    max-width: 100%;
    text-align: center;
  }

  .picker-brand > div {
    min-width: 0;
  }

  .picker-brand .eyebrow,
  .picker h1,
  .picker-lead,
  .app-choice h2,
  .app-choice p,
  .separation-note,
  .platform-copy p {
    overflow-wrap: anywhere;
  }

  .app-choice,
  .app-choice-grid,
  .phone-shots,
  .desktop-showcase-grid {
    min-width: 0;
    max-width: 100%;
  }

  .apps-showcase {
    margin-top: 44px;
    padding-top: 40px;
  }

  .platform-showcase {
    padding: 16px;
    border-radius: 17px;
  }

  .phone-shots {
    gap: 8px;
    padding: 10px;
    border-radius: 13px;
  }

  .phone-shots button {
    max-height: 310px;
    border-radius: 10px;
  }

  .desktop-showcase-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .showcase-head {
    text-align: left;
  }

  .phone-shots {
    width: 100%;
    overflow-x: auto;
    grid-template-columns: repeat(3, 152px);
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
  }

  .phone-shots button {
    height: 294px;
    scroll-snap-align: start;
  }

  .desktop-shot {
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .demo-site-nav__inner {
    gap: 7px;
    padding-inline: 10px;
  }

  .demo-site-brand {
    gap: 6px;
  }

  .demo-site-brand img {
    width: 26px;
    height: 26px;
  }

  .demo-site-actions {
    gap: 4px;
  }

  .demo-site-cta {
    padding-inline: 9px;
  }
}
