/* Mobile Drawer & Shared Demo Persona Modal */
dialog.lp-drawer {
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.lp-drawer-sheet {
  width: min(320px, 86dvw);
  height: 100dvh;
  background: var(--card);
  color: var(--ink);
  padding: 18px 16px;
  overflow-y: auto;
  border-inline-end: 1px solid var(--bdr);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-drawer-nav a {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  background: var(--surf2);
}

.lp-drawer-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

dialog.inspector-modal[open] {
  width: min(980px, 94dvw);
  max-height: 88dvh;
  overflow-y: auto;
  border: 1px solid var(--bdr);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  padding: 20px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35);
}

.dlg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--bdr);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.kv-card {
  background: var(--surf2);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  padding: 12px;
}

.sub {
  font-size: 0.74rem;
  color: var(--muted);
}

/* Modern Custom Select Trigger & Full-Screen Mobile Picker for /saas/signup */
.so-modern-select-btn {
  width: 100%;
  min-block-size: var(--lp-target, 44px);
  padding: 9px 12px;
  border-radius: 11px;
  border: 1.5px solid var(--bdr);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.so-modern-select-btn:hover {
  border-color: var(--pri);
}

.so-sel-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.so-sel-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.so-sel-btn-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.so-sel-badge,
.so-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pri-soft);
  color: var(--pri);
  white-space: nowrap;
}

.so-sel-chev {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surf2);
  color: var(--pri);
  font-weight: 800;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

dialog.so-select-dialog[open] {
  width: min(640px, 94dvw);
  max-height: 88dvh;
  padding: 0;
  border: 1px solid var(--bdr);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.38);
  overflow: hidden;
}

.so-select-sheet {
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
}

.so-select-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bdr);
  background: var(--surf2);
}

.so-select-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
}

.so-select-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.so-select-search-wrap {
  padding: 12px 20px 4px;
}

.so-select-search-wrap input {
  width: 100%;
  min-block-size: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--bdr);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.so-select-list {
  padding: 14px 20px 22px;
  overflow-y: auto;
  display: grid;
  gap: 9px;
}

.so-select-card {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--bdr);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.so-select-card:hover {
  border-color: var(--pri);
  background: var(--surf2);
}

.so-select-card.is-selected {
  border-color: var(--pri);
  background: var(--pri-soft);
}

.so-card-emoji {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surf2);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.so-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.so-card-copy strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.so-card-copy small {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

.so-card-check {
  font-size: 1rem;
  font-weight: 900;
  color: var(--pri);
  flex-shrink: 0;
}

@media (max-width: 768px) {

  dialog.inspector-modal[open],
  dialog.so-select-dialog[open] {
    inset: 0;
    width: 100dvw;
    max-width: 100dvw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
  }

  .so-select-sheet {
    height: 100dvh;
    max-height: 100dvh;
  }
}

/* Tablet & Mobile Phone Breakpoints */
@media (max-width: 1080px) {
  .lp-nav {
    display: none;
  }

  .lp-menu-trigger {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .lp-hide-md {
    display: none !important;
  }

  .lp-cta-row>.lp-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 520px) {
  .lp-hide-sm {
    display: none !important;
  }

  .lp-brand-sub {
    display: none;
  }
}
