/* Decorative hero-visual mocks: browser, ranking chart, dashboard, mail
   composer, voice waveform, alert feed. Pure presentational; no real data. */

/* ─── HERO — Website service mock browser ─── */
.mock-browser {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: hsl(var(--surface));
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  transform: rotate(2deg);
  transform-origin: center bottom;
  display: flex;
  flex-direction: column;
}

.mock-browser__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: hsl(var(--surface-raised));
  border-bottom: 1px solid hsl(var(--border));
}

.mock-browser__dots { display: flex; gap: 0.375rem; }
.mock-browser__dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: hsl(var(--border-strong));
}

.mock-browser__url {
  flex: 1;
  height: 1.5rem;
  background: hsl(var(--surface));
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: hsl(var(--foreground-muted));
  margin-left: var(--space-3);
  border: 1px solid hsl(var(--border));
}

.mock-browser__body {
  flex: 1;
  background: var(--gradient-hero);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.mock-browser__body::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 70% 20%, hsl(var(--brand-frost) / 0.55), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, hsl(var(--brand-surf) / 0.4), transparent 65%);
  mix-blend-mode: screen;
}

.mock-headline {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: var(--space-6);
}

.mock-headline h3 {
  color: white;
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.mock-headline p {
  color: hsl(var(--brand-frost));
  font-size: var(--text-sm);
  max-width: 24ch;
  margin: 0 auto;
  line-height: var(--leading-snug);
}

.mock-floater {
  position: absolute;
  background: hsl(var(--surface));
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid hsl(var(--border));
  font-size: var(--text-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
  animation: floater 6s var(--ease-in-out) infinite;
}

.mock-floater--tl { top: -1rem; left: -1.25rem; animation-delay: 0s; }
.mock-floater--br { bottom: 1rem; right: -1.5rem; animation-delay: 2s; }
.mock-floater--mr { top: 50%; right: -1rem; animation-delay: 1s; }

@keyframes floater {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ─── HERO — SEO ranking chart ─── */
.mock-rank {
  position: absolute;
  inset: 0;
  background: hsl(var(--surface));
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  overflow: hidden;
}

.mock-rank__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
}

.mock-rank__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: hsl(var(--foreground-muted));
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.mock-rank__big {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: hsl(var(--primary));
  line-height: 1;
  margin-top: var(--space-2);
}

.mock-rank__delta {
  font-size: var(--text-sm);
  font-weight: 700;
  color: hsl(var(--success));
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.mock-rank__chart {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 0.5rem;
}

.mock-rank__bar {
  background: var(--gradient-cta);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 8%;
  animation: bar-rise 1.4s var(--ease-out-expo) backwards;
  position: relative;
}

.mock-rank__bar:nth-child(1)  { height: 16%;  animation-delay: 0.10s; opacity: 0.40; }
.mock-rank__bar:nth-child(2)  { height: 22%;  animation-delay: 0.15s; opacity: 0.45; }
.mock-rank__bar:nth-child(3)  { height: 18%;  animation-delay: 0.20s; opacity: 0.45; }
.mock-rank__bar:nth-child(4)  { height: 30%;  animation-delay: 0.25s; opacity: 0.55; }
.mock-rank__bar:nth-child(5)  { height: 26%;  animation-delay: 0.30s; opacity: 0.55; }
.mock-rank__bar:nth-child(6)  { height: 38%;  animation-delay: 0.35s; opacity: 0.65; }
.mock-rank__bar:nth-child(7)  { height: 44%;  animation-delay: 0.40s; opacity: 0.70; }
.mock-rank__bar:nth-child(8)  { height: 56%;  animation-delay: 0.45s; opacity: 0.80; }
.mock-rank__bar:nth-child(9)  { height: 64%;  animation-delay: 0.50s; opacity: 0.85; }
.mock-rank__bar:nth-child(10) { height: 78%;  animation-delay: 0.55s; opacity: 0.90; }
.mock-rank__bar:nth-child(11) { height: 88%;  animation-delay: 0.60s; opacity: 0.95; }
.mock-rank__bar:nth-child(12) { height: 100%; animation-delay: 0.65s; opacity: 1;
  box-shadow: 0 -4px 20px hsl(var(--brand-surf) / 0.5); }

@keyframes bar-rise {
  from { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.mock-rank__keyword {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-top: 1px solid hsl(var(--border));
}

.mock-rank__kw { font-family: var(--font-mono); color: hsl(var(--foreground-muted)); font-size: var(--text-xs); }
.mock-rank__rank { font-weight: 700; color: hsl(var(--primary)); }

/* ─── HERO — Analytics dashboard ─── */
.mock-dash {
  position: absolute;
  inset: 0;
  background: hsl(var(--brand-twilight));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-3);
  color: hsl(var(--brand-frost));
  overflow: hidden;
}

.mock-dash__bar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: hsl(var(--brand-frost) / 0.7);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid hsl(var(--brand-frost) / 0.15);
}

.mock-dash__metric {
  background: hsl(var(--brand-deep) / 0.6);
  border-radius: var(--radius);
  padding: var(--space-4);
  border: 1px solid hsl(var(--brand-frost) / 0.1);
}

.mock-dash__metric-label {
  font-size: 0.7rem;
  color: hsl(var(--brand-frost) / 0.6);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 600;
}

.mock-dash__metric-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  margin-top: var(--space-2);
  line-height: 1;
}

.mock-dash__metric-delta {
  font-size: var(--text-xs);
  font-weight: 700;
  margin-top: var(--space-2);
  color: hsl(var(--brand-surf));
}

.mock-dash__chart {
  grid-column: 1 / -1;
  background: hsl(var(--brand-deep) / 0.6);
  border-radius: var(--radius);
  padding: var(--space-4);
  border: 1px solid hsl(var(--brand-frost) / 0.1);
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.mock-dash__sparkline {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.mock-dash__alert {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, hsl(var(--brand-surf) / 0.15), hsl(var(--brand-frost) / 0.05));
  border: 1px solid hsl(var(--brand-surf) / 0.4);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 500;
  color: hsl(var(--brand-frost));
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mock-dash__alert::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--brand-surf));
  box-shadow: 0 0 12px hsl(var(--brand-surf));
  flex-shrink: 0;
  animation: pulse 1.6s var(--ease-in-out) infinite;
}

/* ─── HERO — Email composer mock ─── */
.mock-mail {
  position: absolute;
  inset: 0;
  background: hsl(var(--surface));
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
}

.mock-mail__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: hsl(var(--foreground-subtle));
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid hsl(var(--border));
}

.mock-mail__head .badge { text-transform: none; letter-spacing: 0; }

.mock-mail__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-3);
  font-size: var(--text-sm);
  align-items: baseline;
}

.mock-mail__label { color: hsl(var(--foreground-subtle)); font-weight: 500; }

.mock-mail__field {
  color: hsl(var(--primary));
  font-weight: 500;
  border-bottom: 1px dashed hsl(var(--border));
  padding-bottom: var(--space-2);
}

.mock-mail__body {
  flex: 1;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: hsl(var(--foreground));
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}

.mock-mail__body p { color: hsl(var(--foreground-muted)); }

.mock-mail__token {
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent-strong));
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.mock-mail__cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: hsl(var(--accent));
  vertical-align: text-bottom;
  animation: cursor-blink 0.9s steps(1) infinite;
}

@keyframes cursor-blink { 50% { opacity: 0; } }

.mock-mail__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid hsl(var(--border));
}

.mock-mail__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: hsl(var(--accent-strong));
  background: hsl(var(--accent) / 0.08);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* ─── HERO — Voice waveform / call mock ─── */
.mock-call {
  position: absolute;
  inset: 0;
  background: hsl(var(--brand-twilight));
  color: hsl(var(--brand-frost));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  overflow: hidden;
}

.mock-call::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, hsl(var(--brand-surf) / 0.25), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, hsl(var(--brand-frost) / 0.15), transparent 65%);
  pointer-events: none;
}

.mock-call > * { position: relative; z-index: 1; }

.mock-call__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-call__caller { display: flex; gap: var(--space-3); align-items: center; }

.mock-call__avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--brand-surf)), hsl(var(--brand-frost)));
  color: white;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: var(--text-sm);
}

.mock-call__name { font-size: var(--text-sm); color: white; font-weight: 600; line-height: 1.2; }
.mock-call__sub { font-size: var(--text-xs); color: hsl(var(--brand-frost) / 0.7); }

.mock-call__time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: hsl(var(--brand-surf));
  font-weight: 600;
}

.mock-call__wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 4rem;
}

.mock-call__wave span {
  width: 4px;
  background: linear-gradient(to top, hsl(var(--brand-surf)), hsl(var(--brand-frost)));
  border-radius: var(--radius-pill);
  animation: wave 1.2s var(--ease-in-out) infinite;
  opacity: 0.85;
}

@keyframes wave {
  0%, 100% { height: 18%; }
  50%      { height: 100%; }
}

.mock-call__wave span:nth-child(1)  { animation-delay: -0.0s; }
.mock-call__wave span:nth-child(2)  { animation-delay: -0.1s; }
.mock-call__wave span:nth-child(3)  { animation-delay: -0.2s; }
.mock-call__wave span:nth-child(4)  { animation-delay: -0.3s; }
.mock-call__wave span:nth-child(5)  { animation-delay: -0.4s; }
.mock-call__wave span:nth-child(6)  { animation-delay: -0.5s; }
.mock-call__wave span:nth-child(7)  { animation-delay: -0.6s; }
.mock-call__wave span:nth-child(8)  { animation-delay: -0.7s; }
.mock-call__wave span:nth-child(9)  { animation-delay: -0.8s; }
.mock-call__wave span:nth-child(10) { animation-delay: -0.9s; }
.mock-call__wave span:nth-child(11) { animation-delay: -1.0s; }
.mock-call__wave span:nth-child(12) { animation-delay: -1.1s; }
.mock-call__wave span:nth-child(13) { animation-delay: -1.0s; }
.mock-call__wave span:nth-child(14) { animation-delay: -0.9s; }
.mock-call__wave span:nth-child(15) { animation-delay: -0.8s; }
.mock-call__wave span:nth-child(16) { animation-delay: -0.7s; }
.mock-call__wave span:nth-child(17) { animation-delay: -0.6s; }
.mock-call__wave span:nth-child(18) { animation-delay: -0.5s; }
.mock-call__wave span:nth-child(19) { animation-delay: -0.4s; }
.mock-call__wave span:nth-child(20) { animation-delay: -0.3s; }

.mock-call__transcript {
  background: hsl(var(--brand-deep) / 0.6);
  border-radius: var(--radius);
  padding: var(--space-4);
  border: 1px solid hsl(var(--brand-frost) / 0.1);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 9rem;
  overflow: hidden;
}

.mock-call__line { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3); }
.mock-call__who { color: hsl(var(--brand-surf)); font-weight: 600; }
.mock-call__say { color: hsl(var(--brand-frost) / 0.9); }
.mock-call__line--ai .mock-call__who { color: hsl(var(--brand-frost)); }

/* ─── Alert mock for instant-reports section ─── */
.alert-mock {
  background: hsl(var(--brand-deep));
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid hsl(var(--brand-frost) / 0.15);
  color: hsl(var(--brand-frost));
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.alert-mock__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: hsl(var(--brand-twilight) / 0.5);
  border-radius: var(--radius-sm);
  border-left: 2px solid hsl(var(--brand-surf));
}

.alert-mock__row--warn { border-left-color: hsl(var(--warning)); }
.alert-mock__row--success { border-left-color: hsl(var(--success)); }

.alert-mock__time {
  color: hsl(var(--brand-frost) / 0.5);
  flex-shrink: 0;
  min-width: 4rem;
}

.alert-mock__msg { color: white; }
.alert-mock__msg b { color: hsl(var(--brand-surf)); font-weight: 600; }
