/* Animated dashboard preview styles for the marketing page */

.dpv {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in oklab, var(--accent) 5%, transparent) 0%, transparent 60%),
    var(--paper);
}

.dpv-frame {
  margin-top: 56px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--ink) 6%, transparent),
    0 30px 80px -30px color-mix(in oklab, var(--ink) 22%, transparent),
    0 60px 140px -60px color-mix(in oklab, var(--accent) 30%, transparent);
  position: relative;
}

/* browser chrome */
.dpv-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: color-mix(in oklab, var(--paper) 92%, var(--ink) 4%);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.dpv-chrome i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}
.dpv-chrome i:nth-child(1) { background: #ff6058; }
.dpv-chrome i:nth-child(2) { background: #f5be4e; }
.dpv-chrome i:nth-child(3) { background: #2bca44; }
.dpv-chrome__url {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.dpv-chrome__pulse {
  margin-left: auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.dpv-chrome__pulse::before, .dpv-chrome__pulse::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: dpvPulse 2s ease-out infinite;
}
.dpv-chrome__pulse::after { animation-delay: 1s; }
@keyframes dpvPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* app shell */
.dpv-app {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 580px;
  background: var(--paper-2);
}
@media (max-width: 880px) { .dpv-app { grid-template-columns: 1fr; } .dpv-side { display: none; } }

.dpv-side {
  background: var(--paper);
  border-right: 1px solid var(--line-soft);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12px;
}
.dpv-side__brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; }
.dpv-side__brand .nav__logo-mark { width: 22px; height: 22px; }
.dpv-side__word::before {
  content: "praat";
  font-family: "Geist", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.dpv-side__word::after {
  content: "box";
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
  margin-left: 1px;
}

.dpv-side__team {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  margin-bottom: 12px;
}
.dpv-side__team-av {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #6b86ef, #4761d9);
  color: white;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.dpv-side__team-name { font-size: 12px; font-weight: 500; line-height: 1.1; }
.dpv-side__team-plan { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; color: var(--muted); margin-top: 2px; }

.dpv-side__group {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 10px 4px;
}
.dpv-side__item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12px;
  position: relative;
}
.dpv-side__item.is-active {
  background: color-mix(in oklab, var(--ink) 4%, transparent);
  color: var(--ink);
  font-weight: 500;
}
.dpv-side__dot {
  width: 5px; height: 5px;
  border-radius: 1.5px;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}
.dpv-side__dot.is-on { background: var(--accent); opacity: 1; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.dpv-side__badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.dpv-side__trial {
  margin-top: auto;
  padding: 10px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--accent) 7%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent);
}
.dpv-side__trial-bar {
  height: 3px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  border-radius: 2px;
  overflow: hidden;
}
.dpv-side__trial-bar > div {
  height: 100%;
  background: var(--accent);
}
.dpv-side__trial-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* main column */
.dpv-col { display: flex; flex-direction: column; min-width: 0; }
.dpv-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.dpv-top__search {
  flex: 1;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 11.5px;
}
.dpv-top__kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}
.dpv-top__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dpv-top__bell {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--ink-2);
  position: relative;
}
.dpv-top__bell-dot {
  position: absolute; top: 6px; right: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--paper);
}
.dpv-top__profile {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--ink);
}
.dpv-top__av {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
}

.dpv-main {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dpv-pagehead h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0;
}
.dpv-pagehead h3 em { font-style: italic; color: var(--accent); }
.dpv-pagehead p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* highlight ring system — applied to KPI strip / chart / inbox / AI when "is-spot" */
.dpv-kpis, .dpv-card, .dpv-ai {
  transition: box-shadow 380ms ease, transform 380ms ease, border-color 380ms ease;
}
.is-spot {
  box-shadow:
    0 0 0 1.5px var(--accent),
    0 0 0 6px color-mix(in oklab, var(--accent) 18%, transparent),
    0 12px 30px -10px color-mix(in oklab, var(--accent) 30%, transparent) !important;
  border-color: transparent !important;
  transform: translateY(-1px);
  z-index: 2;
}

/* KPI strip */
.dpv-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  overflow: hidden;
}
@media (max-width: 980px) { .dpv-kpis { grid-template-columns: repeat(2, 1fr); } }

.dpv-kpi {
  background: var(--paper);
  padding: 13px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 600ms cubic-bezier(.6,.05,.2,1), transform 600ms cubic-bezier(.6,.05,.2,1);
}
.dpv-kpi__lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dpv-kpi__val {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 2px;
  font-feature-settings: "tnum";
}
.dpv-kpi__val em { font-style: italic; color: var(--accent); }
.dpv-kpi__delta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ok, #1b6e3b);
  letter-spacing: 0.04em;
}
.dpv-spark { width: 100%; height: 32px; margin-top: 4px; }

/* row 2 */
.dpv-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px;
}
@media (max-width: 980px) { .dpv-row { grid-template-columns: 1fr; } }

.dpv-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dpv-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.dpv-card__head h4 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0;
}
.dpv-card__head p {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 0;
}

/* volume bars */
.dpv-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 130px;
  padding: 4px 0;
}
.dpv-bars__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 1px;
}
.dpv-bars__a, .dpv-bars__h {
  width: 100%;
  transition: height 800ms cubic-bezier(.6,.05,.2,1);
  min-height: 0;
}
.dpv-bars__h {
  background: var(--ink-3, color-mix(in oklab, var(--ink) 35%, var(--paper)));
  border-radius: 2px 2px 0 0;
}
.dpv-bars__a {
  background: var(--accent);
  opacity: 0.9;
}

.dpv-chart__legend {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 10.5px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-2);
}
.dpv-chart__legend i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* inbox */
.dpv-inbox { gap: 0; }
.dpv-inbox .dpv-card__head { padding-bottom: 6px; }
.dpv-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--paper-2);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}
.dpv-conv-list { display: flex; flex-direction: column; }

.dpv-conv {
  display: grid;
  grid-template-columns: 26px 1fr auto auto;
  gap: 10px;
  padding: 9px 0;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  transition: opacity 600ms cubic-bezier(.6,.05,.2,1);
}
.dpv-conv:first-child { border-top: none; }
.dpv-conv__av {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  border: 1px solid var(--line-soft);
}
.dpv-conv__body { min-width: 0; }
.dpv-conv__name {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dpv-conv__msg {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.dpv-conv__time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.dpv-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.dpv-tag.is-ok    { background: color-mix(in oklab, #16a34a 14%, var(--paper)); color: #14633d; }
.dpv-tag.is-warn  { background: #fff3e0; color: #c4532b; }
.dpv-tag.is-info  { background: #e8efff; color: #2f5dc1; }
[data-theme="dark"] .dpv-tag.is-warn { background: #3a2a1c; color: #e9a37a; }
[data-theme="dark"] .dpv-tag.is-info { background: #1c2538; color: #8aa9e6; }
[data-theme="dark"] .dpv-tag.is-ok   { background: #18331f; color: #7adb9c; }

.dpv-conv.is-new {
  animation: dpvSlideIn 600ms cubic-bezier(.5,.05,.2,1) both;
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  margin: 0 -16px;
  padding: 10px 16px;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
.dpv-conv.is-new + .dpv-conv { border-top: none; }

@keyframes dpvSlideIn {
  from { opacity: 0; transform: translateY(-12px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 80px; }
}

.dpv-conv__live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  margin-left: 2px;
}
.dpv-conv__live::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: dpvLive 1.6s ease-out infinite;
}
@keyframes dpvLive {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* AI suggestion floater */
.dpv-ai {
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  background: color-mix(in oklab, var(--accent) 6%, var(--paper));
  border-radius: 11px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms cubic-bezier(.4,0,.2,1), transform 500ms cubic-bezier(.4,0,.2,1), box-shadow 380ms;
  pointer-events: none;
}
.dpv-ai.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }

.dpv-ai__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink);
}
.dpv-ai__badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.dpv-ai__title { font-weight: 500; }
.dpv-ai__time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.dpv-ai__body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}
.dpv-ai__cites {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dpv-cite {
  font-family: var(--font-mono);
  font-size: 9.5px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--accent);
}
.dpv-ai__actions { display: flex; gap: 6px; }
.dpv-btn {
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.dpv-btn--accent {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* caption strip */
.dpv-caption {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  background: color-mix(in oklab, var(--paper) 96%, var(--ink) 2%);
}
@media (max-width: 720px) { .dpv-caption { grid-template-columns: 1fr 1fr; } }

.dpv-caption__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-right: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
  transition: color 300ms, background 300ms;
}
.dpv-caption__step:last-child { border-right: none; }
.dpv-caption__step span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: all 300ms;
}
.dpv-caption__step.is-on {
  color: var(--ink);
  background: color-mix(in oklab, var(--accent) 7%, transparent);
}
.dpv-caption__step.is-on span {
  background: var(--accent);
  color: var(--accent-ink);
}

.dpv-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
