/* Dashboard showcase — laptop mockup + tab-driven backend demos */

.lp-dashboard-showcase {
  background: #fff;
  padding-top: clamp(48px, 8vh, 88px);
  padding-bottom: clamp(32px, 5vh, 56px);
  overflow: visible;
}

.lp-problem--continued {
  padding-top: clamp(24px, 4vh, 48px);
}

.lp-dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lp-dashboard-left {
  position: relative;
  z-index: 2;
  max-width: min(100%, 640px);
}

.lp-dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.lp-dashboard-controls {
  min-width: 0;
}

.lp-dashboard-mockup {
  position: relative;
  min-width: 0;
  align-self: start;
  width: 100%;
  overflow: visible;
  padding-bottom: 18px;
}

.lp-dashboard-mockup::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(11, 18, 32, 0.16) 0%,
    rgba(11, 18, 32, 0.05) 50%,
    transparent 75%
  );
  filter: blur(8px);
  pointer-events: none;
}

.lp-card-landing {
  position: relative;
  width: 0;
  margin: 0;
  overflow: visible;
  pointer-events: none;
}

.lp-card-landing[data-active] {
  width: var(--landed-card-w);
  aspect-ratio: 1.586 / 1;
  margin: 0 0 28px;
}

.lp-card-landing [data-tap-card].lp-card {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  width: var(--landed-card-w) !important;
  height: auto !important;
  transform: rotate(-16deg);
  transform-origin: 22% 88%;
  opacity: 1 !important;
}

.lp-eyebrow--dark {
  color: var(--lp-accent, #009fd8);
}

.lp-dashboard-intro {
  margin-bottom: clamp(20px, 3vh, 32px);
}

.lp-dashboard-intro .lp-h2 {
  margin-bottom: 10px;
}

.lp-dashboard-tabs {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lp-border, #e5e9ef);
  border-radius: var(--lp-radius, 12px);
  overflow: hidden;
  background: #fff;
  margin-bottom: 20px;
}

.lp-dash-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--lp-border, #e5e9ef);
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.lp-dash-tab:last-child {
  border-bottom: 0;
}

.lp-dash-tab:hover {
  background: var(--lp-surface, #f6f8fb);
}

.lp-dash-tab.is-active {
  background: linear-gradient(135deg, rgba(0, 159, 216, 0.1), rgba(0, 0, 0, 0.02));
  padding-left: 20px;
}

.lp-dash-tab-label {
  font-weight: 800;
  font-size: 15px;
  color: #0b1220;
  line-height: 1.25;
}

.lp-dash-tab-desc {
  font-size: 13px;
  color: var(--lp-muted, #64748b);
  line-height: 1.35;
}

.lp-dashboard-tab-panel {
  padding: 4px 0 0;
}

.lp-dashboard-tab-panel .lp-h3 {
  margin-bottom: 8px;
}

.lp-dash-points {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.lp-dash-points li + li {
  margin-top: 6px;
}

/* Tablet mockup — landscape iPad-style frame (same in-flow screen pattern as hero phone) */
.lp-dashboard-showcase .lp-tablet {
  position: relative;
  width: min(100%, 680px);
  margin-left: auto;
  padding: 4px;
  border-radius: 28px;
  background: linear-gradient(145deg, #eceef2 0%, #d2d8e0 48%, #b8bfc9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(0, 0, 0, 0.07);
}

.lp-dashboard-showcase .lp-tablet-bezel {
  position: relative;
  z-index: 1;
  padding: clamp(14px, 2.4vw, 20px);
  border-radius: 24px;
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.lp-dashboard-showcase .lp-tablet-bezel::before,
.lp-dashboard-showcase .lp-tablet-bezel::after {
  content: '';
  position: absolute;
  top: 22%;
  bottom: 22%;
  width: 2px;
  border-radius: 1px;
  background: rgba(110, 118, 130, 0.35);
  pointer-events: none;
}

.lp-dashboard-showcase .lp-tablet-bezel::before {
  left: -1px;
}

.lp-dashboard-showcase .lp-tablet-bezel::after {
  right: -1px;
}

.lp-dashboard-showcase .lp-tablet-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  overflow: hidden;
  background: #f4f7fb;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* In-app demo chrome */
.lp-dashboard-showcase .lp-dash-app {
  position: absolute;
  inset: 0;
  display: flex;
  min-height: 0;
  font-size: clamp(7px, 0.72vw, 9px);
  line-height: 1.35;
  color: #334155;
  background: #f4f7fb;
}

.lp-dash-app-sidebar {
  width: 36px;
  flex-shrink: 0;
  background: #0b1220;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 10px;
}

.lp-dash-app-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--lp-accent, #009fd8);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-dash-app-nav {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.55;
}

.lp-dash-app-nav.is-active {
  background: rgba(0, 159, 216, 0.55);
  opacity: 1;
}

.lp-dash-app-main {
  flex: 1;
  min-width: 0;
  position: relative;
  background: #f4f7fb;
  padding: clamp(6px, 0.8vw, 10px);
  overflow: hidden;
}

.lp-dash-screen {
  position: absolute;
  inset: clamp(6px, 0.8vw, 10px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  overflow: auto;
  scrollbar-width: thin;
}

.lp-dash-screen.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

[data-dash-screen="analytics"].lp-dash-screen {
  inset: clamp(4px, 0.6vw, 8px);
  overflow: hidden;
}

.lp-dash-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.lp-dash-screen-head h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: #0b1220;
}

.lp-dash-pill {
  font-size: 8px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 159, 216, 0.14);
  color: #007aa8;
  white-space: nowrap;
}

.lp-dash-pill--muted {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.lp-dash-pill--success {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

/* Contact book demo — matches real app UI at tablet scale */
.lp-cb-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 0;
  font-size: clamp(6px, 0.65vw, 8px);
  line-height: 1.35;
  color: #334155;
}

.lp-cb-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  flex-shrink: 0;
}

.lp-cb-stat {
  background: #fff;
  border-radius: 5px;
  padding: 5px 3px;
  text-align: center;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lp-cb-stat.is-active {
  border-color: #009fd8;
  box-shadow: 0 2px 6px rgba(0, 159, 216, 0.15);
}

.lp-cb-stat.is-demo-pulse {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 159, 216, 0.25);
}

.lp-cb-stat-val {
  display: block;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 800;
  line-height: 1.1;
}

.lp-cb-stat--total .lp-cb-stat-val { color: #009fd8; }
.lp-cb-stat--new .lp-cb-stat-val { color: #f59e0b; }
.lp-cb-stat--contacted .lp-cb-stat-val { color: #3b82f6; }
.lp-cb-stat--won .lp-cb-stat-val { color: #22c55e; }
.lp-cb-stat--lost .lp-cb-stat-val { color: #ef4444; }

.lp-cb-stat-label {
  display: block;
  margin-top: 2px;
  font-size: clamp(5px, 0.52vw, 6.5px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.lp-cb-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.lp-cb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 5px;
  flex-shrink: 0;
}

.lp-cb-card-title {
  margin: 0;
  font-size: clamp(7px, 0.75vw, 9px);
  font-weight: 800;
  color: #0b1220;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  border-bottom: 2px solid #009fd8;
}

.lp-cb-card-actions {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.lp-cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: clamp(5px, 0.52vw, 6.5px);
  font-weight: 700;
  border: 0;
  font-family: inherit;
  white-space: nowrap;
}

.lp-cb-btn--scan,
.lp-cb-btn--search,
.lp-cb-btn--save {
  background: #009fd8;
  color: #fff;
}

.lp-cb-btn--export {
  background: #007aa8;
  color: #fff;
}

.lp-cb-btn--clear,
.lp-cb-btn--outline {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.lp-cb-btn.is-demo-active {
  box-shadow: 0 0 0 2px rgba(0, 159, 216, 0.35);
  transform: scale(1.03);
}

.lp-cb-search-row {
  display: flex;
  gap: 3px;
  margin-bottom: 5px;
  flex-shrink: 0;
}

.lp-cb-search-input {
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: clamp(6px, 0.62vw, 7.5px);
  font-family: inherit;
  background: #fff;
  color: #0b1220;
  transition: border-color 0.2s ease;
}

.lp-cb-search-input.is-demo-focus {
  border-color: #009fd8;
  outline: none;
}

.lp-cb-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.lp-cb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(5.5px, 0.58vw, 7px);
}

.lp-cb-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 4px 4px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
  font-size: clamp(5px, 0.52vw, 6.5px);
}

.lp-cb-table td {
  padding: 4px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.lp-cb-table tr[data-cb-row][hidden] {
  display: none;
}

.lp-cb-name {
  font-weight: 700;
  color: #009fd8;
}

.lp-cb-email {
  color: #009fd8;
}

.lp-cb-phone {
  color: #64748b;
}

.lp-cb-status {
  display: inline-block;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: clamp(5px, 0.52vw, 6.5px);
  white-space: nowrap;
}

.lp-cb-status--new { background: #fef3c7; color: #b45309; }
.lp-cb-status--contacted { background: #dbeafe; color: #1d4ed8; }
.lp-cb-status--won { background: #dcfce7; color: #16a34a; }
.lp-cb-status--lost { background: #fee2e2; color: #dc2626; }

.lp-cb-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #64748b;
  cursor: default;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.lp-cb-action--edit.is-demo-hover,
.lp-cb-action--edit.is-demo-active {
  background: #e7f5ff;
  color: #009fd8;
  border-color: #009fd8;
  box-shadow: 0 2px 6px rgba(0, 159, 216, 0.25);
}

.lp-cb-action-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 2px 5px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: clamp(5px, 0.52vw, 6.5px);
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lp-cb-action--edit.is-demo-hover .lp-cb-action-tip {
  opacity: 1;
}

/* Edit modal */
.lp-cb-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.lp-cb-modal[hidden] {
  display: none;
}

.lp-cb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.lp-cb-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 220px);
  max-height: 100%;
  overflow: auto;
  background: #fff;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.lp-cb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.lp-cb-modal-head h5 {
  margin: 0;
  font-size: clamp(8px, 0.82vw, 10px);
  font-weight: 800;
  color: #0b1220;
}

.lp-cb-modal-close {
  border: 0;
  background: none;
  font-size: 14px;
  line-height: 1;
  color: #94a3b8;
  padding: 0;
  cursor: default;
}

.lp-cb-field {
  display: block;
  margin-bottom: 5px;
}

.lp-cb-field span {
  display: block;
  margin-bottom: 2px;
  font-size: clamp(5px, 0.52vw, 6.5px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.lp-cb-field input,
.lp-cb-field select,
.lp-cb-field textarea {
  width: 100%;
  padding: 3px 5px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  font-size: clamp(6px, 0.62vw, 7.5px);
  font-family: inherit;
  background: #fff;
  color: #0b1220;
}

.lp-cb-field textarea {
  min-height: 36px;
  resize: none;
}

.lp-cb-field textarea.is-demo-focus {
  border-color: #009fd8;
  outline: none;
}

.lp-cb-date-added {
  margin: 4px 0 0;
  font-size: clamp(5.5px, 0.58vw, 7px);
  color: #64748b;
}

.lp-cb-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
}

.lp-cb-btn--save.is-demo-active {
  background: #007aa8;
}

/* Analytics dashboard demo */
.lp-an-demo {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #eef2f6;
}

.lp-an-scroll {
  height: 100%;
  overflow: hidden scroll;
  scroll-behavior: auto;
  scrollbar-width: thin;
  padding: 5px;
}

.lp-an-scroll.is-demo-scrolling {
  pointer-events: none;
}

.lp-an-section {
  margin-bottom: 5px;
  opacity: 0.35;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lp-an-section.is-an-visible {
  opacity: 1;
  transform: none;
}

.lp-an-top-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4px;
}

.lp-an-profile,
.lp-an-range,
.lp-an-card {
  background: #fff;
  border-radius: 5px;
  padding: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.lp-an-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 6px;
  align-items: start;
}

.lp-an-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009fd8, #007aa8);
  grid-row: span 2;
}

.lp-an-profile strong {
  display: block;
  font-size: clamp(7px, 0.72vw, 8.5px);
  color: #0b1220;
}

.lp-an-profile span {
  display: block;
  font-size: clamp(5.5px, 0.58vw, 7px);
  color: #64748b;
}

.lp-an-co {
  color: #009fd8 !important;
  font-weight: 600;
}

.lp-an-insight {
  grid-column: 1 / -1;
  font-size: clamp(5px, 0.52vw, 6.5px);
  color: #334155;
  padding: 4px;
  background: #f0fdf4;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
}

.lp-an-insight-badge {
  display: inline-block;
  font-weight: 700;
  color: #15803d;
  margin-right: 3px;
}

.lp-an-range-label {
  display: block;
  font-size: clamp(5px, 0.52vw, 6.5px);
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.lp-an-range-track {
  height: 3px;
  background: #e2e8f0;
  border-radius: 999px;
  margin-bottom: 4px;
  overflow: hidden;
}

.lp-an-range-fill {
  display: block;
  width: 0;
  height: 100%;
  background: #009fd8;
  border-radius: inherit;
  transition: width 1.2s ease;
}

.lp-an-section.is-an-visible .lp-an-range-fill {
  width: 55%;
}

.lp-an-range-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.lp-an-range-btns span {
  font-size: clamp(4.5px, 0.48vw, 6px);
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
  color: #64748b;
  background: #f1f5f9;
}

.lp-an-range-btns span.is-active {
  background: #009fd8;
  color: #fff;
}

.lp-an-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.lp-an-metric {
  background: #fff;
  border-radius: 5px;
  padding: 5px 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  border-left: 2px solid #009fd8;
  text-align: center;
}

.lp-an-metric-val {
  display: block;
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 800;
  color: #009fd8;
  line-height: 1.1;
}

.lp-an-metric-val--sm {
  font-size: clamp(6px, 0.62vw, 7.5px);
  font-weight: 700;
}

.lp-an-metric-label {
  display: block;
  margin-top: 2px;
  font-size: clamp(5px, 0.52vw, 6.5px);
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.lp-an-metric-sub {
  display: block;
  font-size: clamp(4.5px, 0.48vw, 6px);
  color: #94a3b8;
}

.lp-an-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.lp-an-card h6 {
  margin: 0 0 4px;
  font-size: clamp(5.5px, 0.58vw, 7px);
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-an-card--wide {
  width: 100%;
}

.lp-an-line-chart {
  width: 100%;
  height: auto;
  display: block;
}

.lp-an-line-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.4s ease;
}

.lp-an-line-area {
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}

.lp-an-section.is-an-visible .lp-an-line-path {
  stroke-dashoffset: 0;
}

.lp-an-section.is-an-visible .lp-an-line-area {
  opacity: 1;
}

.lp-an-donut {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
}

.lp-an-donut-seg {
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-dasharray: 0 176;
  transition: stroke-dasharray 1s ease;
}

.lp-an-section.is-an-visible .lp-an-donut-seg:nth-child(1) { stroke-dasharray: 44 132; transition-delay: 0.1s; }
.lp-an-section.is-an-visible .lp-an-donut-seg:nth-child(2) { stroke-dasharray: 35 132; transition-delay: 0.2s; }
.lp-an-section.is-an-visible .lp-an-donut-seg:nth-child(3) { stroke-dasharray: 28 132; transition-delay: 0.3s; }
.lp-an-section.is-an-visible .lp-an-donut-seg:nth-child(4) { stroke-dasharray: 25 132; transition-delay: 0.4s; }

.lp-an-donut--device .lp-an-donut-seg:nth-child(1) { stroke-dasharray: 0 163; }
.lp-an-donut--device .lp-an-donut-seg:nth-child(2) { stroke-dasharray: 0 163; }
.lp-an-section.is-an-visible .lp-an-donut--device .lp-an-donut-seg:nth-child(1) { stroke-dasharray: 82 163; }
.lp-an-section.is-an-visible .lp-an-donut--device .lp-an-donut-seg:nth-child(2) { stroke-dasharray: 81 163; }

.lp-an-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  font-size: clamp(4px, 0.45vw, 5.5px);
  color: #64748b;
}

.lp-an-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
}

.lp-an-bars span {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(180deg, #009fd8, #007aa8);
  border-radius: 2px 2px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-an-section.is-an-visible .lp-an-bars span {
  transform: scaleY(1);
}

.lp-an-bars span:nth-child(odd) { transition-delay: 0.05s; }
.lp-an-bars span:nth-child(even) { transition-delay: 0.12s; }

.lp-an-axis {
  margin-top: 3px;
  font-size: clamp(4px, 0.45vw, 5.5px);
  color: #94a3b8;
  text-align: center;
}

.lp-an-geo-map {
  position: relative;
  height: 28px;
  margin-bottom: 4px;
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
  border-radius: 4px;
}

.lp-an-geo-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.5s ease;
}

.lp-an-section.is-an-visible .lp-an-geo-dot {
  transform: scale(1);
}

.lp-an-geo-dot--uk { background: #0b1220; top: 30%; left: 44%; transition-delay: 0.1s; }
.lp-an-geo-dot--us { background: #0b1220; top: 38%; left: 22%; transition-delay: 0.25s; }
.lp-an-geo-dot--br { background: #009fd8; top: 62%; left: 32%; transition-delay: 0.4s; }

.lp-an-geo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(5px, 0.52vw, 6.5px);
}

.lp-an-geo-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 4px;
  align-items: center;
  margin-bottom: 3px;
}

.lp-an-geo-list li span:nth-child(2) {
  font-weight: 800;
  color: #009fd8;
}

.lp-an-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.lp-an-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: #009fd8;
  border-radius: inherit;
  transition: width 1s ease;
}

.lp-an-section.is-an-visible .lp-an-bar i {
  width: var(--w, 0%);
}

.lp-an-device-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 4px;
  text-align: center;
  font-size: clamp(4.5px, 0.48vw, 6px);
}

.lp-an-device-stats strong {
  display: block;
  font-size: clamp(8px, 0.82vw, 10px);
  color: #009fd8;
}

.lp-an-device-stats em {
  display: block;
  font-style: normal;
  color: #94a3b8;
  font-size: clamp(4px, 0.45vw, 5.5px);
}

.lp-an-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.lp-an-breakdown > div {
  text-align: center;
  padding: 4px 2px;
  background: #f8fafc;
  border-radius: 4px;
}

.lp-an-breakdown-val {
  display: block;
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 800;
  color: #009fd8;
}

.lp-an-breakdown span:last-child {
  display: block;
  margin-top: 2px;
  font-size: clamp(4.5px, 0.48vw, 6px);
  color: #64748b;
}

.lp-an-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.lp-an-activity-head span {
  font-size: clamp(5px, 0.52vw, 6.5px);
  font-weight: 700;
  color: #009fd8;
}

.lp-an-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid #009fd8;
  padding-top: 4px;
}

.lp-an-activity li {
  position: relative;
  padding: 3px 0 3px 8px;
  font-size: clamp(5px, 0.52vw, 6.5px);
  color: #334155;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lp-an-section.is-an-visible .lp-an-activity li {
  opacity: 1;
  transform: none;
}

.lp-an-section.is-an-visible .lp-an-activity li:nth-child(1) { transition-delay: 0.1s; }
.lp-an-section.is-an-visible .lp-an-activity li:nth-child(2) { transition-delay: 0.2s; }
.lp-an-section.is-an-visible .lp-an-activity li:nth-child(3) { transition-delay: 0.3s; }
.lp-an-section.is-an-visible .lp-an-activity li:nth-child(4) { transition-delay: 0.4s; }
.lp-an-section.is-an-visible .lp-an-activity li:nth-child(5) { transition-delay: 0.5s; }

.lp-an-activity-dot {
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #009fd8;
}

.lp-an-activity em {
  color: #94a3b8;
  font-style: normal;
}

[data-dash-screen="branding"].lp-dash-screen {
  inset: clamp(4px, 0.6vw, 8px);
  overflow: hidden;
}

.lp-branding-demo {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #eef2f6;
}

.lp-branding-scroll {
  height: 100%;
  overflow: hidden scroll;
  scroll-behavior: auto;
  scrollbar-width: thin;
}

.lp-branding-scroll.is-demo-scrolling {
  pointer-events: none;
}

.lp-branding-frame {
  opacity: 0.88;
  transition: opacity 0.5s ease;
}

.lp-branding-frame.is-br-visible {
  opacity: 1;
}

.lp-branding-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-branding-frame + .lp-branding-frame {
  margin-top: -12%;
}

/* Card editor demo */
[data-dash-screen="card-editor"].lp-dash-screen {
  inset: clamp(4px, 0.6vw, 8px);
  overflow: hidden;
}

.lp-ce-demo {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #eef2f6;
}

.lp-ce-scroll {
  height: 100%;
  overflow: hidden scroll;
  scroll-behavior: auto;
  scrollbar-width: thin;
}

.lp-ce-scroll.is-demo-scrolling {
  pointer-events: none;
}

.lp-ce-frame {
  opacity: 0.88;
  transition: opacity 0.5s ease;
}

.lp-ce-frame.is-ce-visible {
  opacity: 1;
}

.lp-ce-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-ce-frame + .lp-ce-frame {
  margin-top: -12%;
}

.lp-ce-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #eef2f6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lp-ce-stage.is-active {
  opacity: 1;
  visibility: visible;
}

.lp-ce-stage-img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-ce-stage.is-delete-mode .lp-ce-stage-img {
  filter: brightness(0.72);
}

.lp-ce-delete-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.lp-ce-delete-dialog {
  display: block;
  width: min(72%, 280px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  animation: lp-ce-delete-in 0.35s ease;
}

@keyframes lp-ce-delete-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Branding screen */
.lp-dash-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.lp-dash-theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: default;
  font-size: 8px;
  font-weight: 700;
  color: #334155;
  font-family: inherit;
}

.lp-dash-theme.is-active {
  border-color: #009fd8;
}

.lp-dash-theme-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.lp-dash-colours {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-dash-colour {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 600;
}

.lp-dash-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lp-dash-font {
  font-size: 8px;
  color: #64748b;
}

/* Card editor screen */
.lp-dash-editor {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 8px;
}

.lp-dash-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lp-dash-editor-fields label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 7px;
  font-weight: 700;
  color: #64748b;
}

.lp-dash-input {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 8px;
  color: #0b1220;
  font-weight: 500;
}

.lp-dash-input--area {
  min-height: 28px;
}

.lp-dash-editor-preview {
  background: #fff;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.lp-dash-mini-profile {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.lp-dash-mini-hero {
  height: 36px;
  background: linear-gradient(135deg, #009fd8, #007aa8);
}

.lp-dash-mini-body {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 8px;
}

.lp-dash-mini-body strong {
  font-size: 9px;
  color: #0b1220;
}

.lp-dash-mini-co {
  color: #64748b;
  font-size: 7px;
}

/* Card in flight — same locked dimensions as hero; glow when resting at destination */
[data-tap-card].lp-card.is-flying {
  animation: none !important;
  margin: 0;
  z-index: 60;
  box-sizing: border-box;
}

[data-tap-card].lp-card.is-flying.is-resting {
  animation: lp-card-glow-pulse 2.8s ease-in-out infinite !important;
}

[data-tap-card].lp-card.is-flying.is-resting .lp-card-shine {
  animation: lp-card-shine-sweep 4.5s ease-in-out infinite;
}

@media (max-width: 960px) {
  .lp-dashboard-split {
    grid-template-columns: 1fr;
  }

  .lp-dashboard-showcase .lp-tablet {
    margin: 0 auto;
  }

  .lp-card-landing {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .lp-dashboard-showcase {
    padding-top: 32px;
  }

  .lp-dash-editor {
    grid-template-columns: 1fr;
  }

  .lp-dash-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-dash-screen {
    transition: none;
  }

  .lp-cb-stat,
  .lp-cb-btn,
  .lp-cb-action,
  .lp-cb-search-input,
  .lp-cb-field textarea,
  .lp-an-section,
  .lp-an-bars span,
  .lp-an-line-path,
  .lp-an-line-area,
  .lp-an-donut-seg,
  .lp-an-bar i,
  .lp-an-geo-dot,
  .lp-an-activity li,
  .lp-an-range-fill {
    transition: none;
  }

  .lp-branding-frame {
    transition: none;
  }

  .lp-ce-frame {
    transition: none;
  }

  .lp-ce-delete-dialog {
    animation: none;
  }
}
